bruce_lee has quit [Remote host closed the connection]
Littlemyu has joined #ruby
jgnagy has joined #ruby
tristanp has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
JeanCarloMachado has joined #ruby
ChiefAlexander has joined #ruby
railssmith has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
dviola has quit [Quit: WeeChat 1.6]
_djbkd has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
GodFather has quit [Ping timeout: 260 seconds]
aaronds has joined #ruby
nettoweb has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ChiefAlexander has quit [Quit: Leaving...]
ag4ve_ has joined #ruby
flashpoint9 has joined #ruby
aaronds has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has joined #ruby
arescorpio has quit [Quit: Leaving.]
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
pwnd_nsfw has joined #ruby
Devalo has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
whathappens has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
Devalo has quit [Ping timeout: 245 seconds]
solocshaw has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
ag4ve_ has quit [Ping timeout: 250 seconds]
tyang_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
BubonicPestilenc has joined #ruby
<BubonicPestilenc>
hey all
jaguarmagenta has joined #ruby
<BubonicPestilenc>
Question: Are there anyway to display current working window when using (capybara + poltergeist + phantomjs) ? currently doing .save_screenshot to check state; And yes, i already asked on #phantomjs
tyang has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 244 seconds]
tvw has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
bronson has joined #ruby
Rodya_ has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
pokalyis has quit [Ping timeout: 268 seconds]
pokalyis_ has joined #ruby
rismoney1 has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 250 seconds]
AndrewIs_ has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
hakunin has joined #ruby
Jayson_Virissimo has joined #ruby
toretore has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
AndrewIsHere has quit [Ping timeout: 260 seconds]
shmuli has quit [Remote host closed the connection]
railssmith has joined #ruby
palms has quit [Ping timeout: 260 seconds]
d^sh_ has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
palms has joined #ruby
hahuang61 has joined #ruby
tyang has joined #ruby
shmuli has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
palms has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
tyang_ has quit [Ping timeout: 260 seconds]
palms has joined #ruby
elenatanasoiu has joined #ruby
eljimmy has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
optiz0r has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
misterpink has quit [Ping timeout: 250 seconds]
aaronds has joined #ruby
elenatanasoiu has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 268 seconds]
mim1k|wo1k has joined #ruby
shmuli has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
aaronds has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
mim1k|work has quit [Ping timeout: 265 seconds]
Rodya_ has joined #ruby
trif has quit [Ping timeout: 248 seconds]
Littlemyu has quit [Quit: Leaving]
rkazak has quit [Quit: Sleep.....ing....]
solocshaw has quit [Ping timeout: 250 seconds]
SteenJobs has quit [Quit: SteenJobs]
User458764 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
whathappens has joined #ruby
govg has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
whathappens has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
_djbkd has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
yeticry has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 260 seconds]
christiandsg has joined #ruby
hutch34 has joined #ruby
NeverTired has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
flashpoint9 has joined #ruby
nchambers is now known as god
flashpoint9 has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
palms has quit [Ping timeout: 260 seconds]
revlit has joined #ruby
red_tail has joined #ruby
Rodya_ has quit [Quit: Leaving...]
hanmac has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
oyes_ has joined #ruby
oyes has quit [Ping timeout: 252 seconds]
oyes_ has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 265 seconds]
jwang has quit [Ping timeout: 250 seconds]
optiz0r has joined #ruby
pwnd_nsfw` has joined #ruby
biox has quit [Quit: brb servers are ded]
Jayson_Virissimo has quit []
pwnd_nsfw has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
aaronds has joined #ruby
biox has joined #ruby
gix has quit [Ping timeout: 250 seconds]
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
christiandsg has quit [Quit: Leaving...]
tristanp has quit [Ping timeout: 265 seconds]
aaronds has quit [Ping timeout: 256 seconds]
gix has joined #ruby
pawnbox has joined #ruby
AndrewIsHere has joined #ruby
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
AndrewIsHere has quit [Ping timeout: 260 seconds]
igniting has joined #ruby
JoshS has joined #ruby
PaulCapestany has quit [Quit: .]
whathappens has joined #ruby
PaulCapestany has joined #ruby
kent\n has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
igniting has quit [Ping timeout: 250 seconds]
Cohedrin has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
revlit has quit [Quit: Bye]
rkazak has joined #ruby
hammed has quit [Read error: Connection reset by peer]
Cohedrin has quit [Ping timeout: 256 seconds]
tristanp has joined #ruby
hutch34 has joined #ruby
SCHAAP137 has joined #ruby
aibot has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has quit [Read error: No route to host]
aibot has joined #ruby
aibot has quit [Remote host closed the connection]
igniting has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
aibot has joined #ruby
Capela has quit [Remote host closed the connection]
Mrgoose3 has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
hammed has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
igniting has quit [Ping timeout: 250 seconds]
Cohedrin has joined #ruby
red_tail has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
sepp2k1 has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
nchambers^ has joined #ruby
_djbkd has joined #ruby
User458764 has joined #ruby
pawnbox has joined #ruby
god has quit [Ping timeout: 248 seconds]
hahuang61 has joined #ruby
CloCkWeRX has joined #ruby
ben______ has quit [Remote host closed the connection]
ben__ has joined #ruby
Mrgoose3 has quit [Remote host closed the connection]
igniting has joined #ruby
ben__ has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
dgncn has quit [Quit: ^^]
crankharder has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 252 seconds]
elenatanasoiu has quit [Ping timeout: 250 seconds]
aaronds has joined #ruby
crankharder has joined #ruby
gix has joined #ruby
tdy has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
kent\n has quit [Ping timeout: 245 seconds]
igniting has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
muelleme has joined #ruby
nchambers^ has quit [Ping timeout: 248 seconds]
nchambers has joined #ruby
ur5us_ has quit [Remote host closed the connection]
crankharder has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
muelleme has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
igniting has joined #ruby
rkazak has joined #ruby
flashpoint9 has joined #ruby
User458764 has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
ngrin has joined #ruby
eizua has joined #ruby
hahuang61 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Immune_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
amclain_ has quit [Quit: Leaving]
<BubonicPestilenc>
Question: Are there anyway to display current working window when using (capybara + poltergeist + phantomjs) ? currently doing .save_screenshot to check state;
Immune_ has quit [Ping timeout: 260 seconds]
elenatanasoiu has joined #ruby
troys has joined #ruby
grh has joined #ruby
elenatanasoiu has quit [Ping timeout: 252 seconds]
Immune has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
aaronds has joined #ruby
rkazak has joined #ruby
aaronds has quit [Ping timeout: 245 seconds]
AndrewIsHere has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
User458764 has joined #ruby
AndrewIsHere has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
Devalo has joined #ruby
nchambers has quit [Ping timeout: 248 seconds]
Immune has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
whathappens has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
nchambers has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 268 seconds]
rkazak has quit [Quit: Sleep.....ing....]
ur5us has joined #ruby
hutch34 has joined #ruby
lxsameer has joined #ruby
shmuli has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Terens has quit [Disconnected by services]
muelleme has joined #ruby
Terens has joined #ruby
troys is now known as troys_
hutch34 has quit [Ping timeout: 265 seconds]
djellemah_ has joined #ruby
muelleme has quit [Ping timeout: 250 seconds]
u39 has joined #ruby
ngrin has quit [Quit: Leaving]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<u39>
what should you do after reading well grounded rubyist?
LoneHerm_ has quit [Ping timeout: 256 seconds]
harfangk has joined #ruby
<dminuoso_>
u39: Eloquent Ruby is a great read.
<u39>
i thought it was just like well grounded rubyist
<u39>
?
<u39>
i never reaad it
<u39>
read*
jenrzzz has quit [Ping timeout: 265 seconds]
<dminuoso_>
u39: It focuses more on patterns.
<dminuoso_>
Idioms
<u39>
ooh
<u39>
what should i read after that?
<u39>
i just bought it
<u39>
uploading it to my kindle
grh has quit [Ping timeout: 256 seconds]
<dminuoso_>
u39: You should start writing Ruby.
<dminuoso_>
u39: Just reading books will not make you proficient.
davix has quit [Quit: WeeChat 1.6]
<u39>
i wish there was a book with pure exercises
<u39>
like those coding challenge sites but in a book
<dminuoso_>
u39: There is.
<dminuoso_>
It's called github.
<u39>
no i mean in a book
<u39>
github is different
<dminuoso_>
;)
<u39>
still valuable
<dminuoso_>
Just github don't worry too much.
bocaneri has joined #ruby
<u39>
the reason i would like it in a book form is because authors are generally nice in the sense of giving you specific curated things
<u39>
making you "well-grounded"
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso_>
u39: You are not well grounded until you have picked up some years of experience.
<u39>
i disagree
gusrub has quit [Remote host closed the connection]
<u39>
you can learn more in 2 months than someone tried to learn in 2 years
<dminuoso_>
Clearly you know better.
<u39>
it depends what you're doing
<u39>
you could be practicing the same thing over and over again
<dminuoso_>
No you will not become proficient/well grounded in any non-trivial language in 2 months.
<u39>
or you could be practicing different things over and over again
<u39>
it just depends on what you're doing
<dminuoso_>
u39: One of the main factors to becoming proficient is knowing library facilities so you don't end up wasting time looking for them (or worse gems or reinvent the wheel to get the same job done). That simply takes times.
<dminuoso_>
You cant just "read" and then know it all.
<dminuoso_>
Solving problems is what gives you the intuition.
troys_ is now known as troys
<u39>
i made the mistake of doing the same thing over and over again like not practicing different things so that's how i know
<dminuoso_>
I never told you to repeat the same thing.
<dminuoso_>
I told you to practice.
<dminuoso_>
Which means write code, and then move on to the next code.
<u39>
repetition is practice
mark_66 has joined #ruby
<u39>
your code will generally have the same things
<dminuoso_>
Right because you develop habits.
troys has quit [Quit: Bye]
<dminuoso_>
For example when I write C++ code I always indent the same way: this is fucking useful.
<dminuoso_>
It makes code readable.
<u39>
like loops for this or input or output and most importantly what algorithm to use if any
<dminuoso_>
u39: Im sorry, if you think you know best how to become proficient in Ruby then go ahead.
<dminuoso_>
I have better things to do.
ziarkaen has joined #ruby
<u39>
i'm not very good at expressing myself
dminuoso_ has quit [Quit: leaving]
dminuoso_ has joined #ruby
lacour has quit [Quit: Leaving]
SJr has quit [Ping timeout: 245 seconds]
aaronds has joined #ruby
ziarkaen has quit [Ping timeout: 252 seconds]
aaronds has quit [Ping timeout: 268 seconds]
<kke>
i need to write or find an option parser type of thing (a parser for variable definitions, such as "type: enum, options: cat, dog, bird, default: dog, name: animal). any tips where to look for inspiration?
elifoster has joined #ruby
<dminuoso_>
kke: use plain yaml?
muelleme has joined #ruby
<dminuoso_>
That's as Rubyesque as it gets I think.
<kke>
yaml is where i'm parsing them from
benlieb has quit [Quit: benlieb]
Ishido has joined #ruby
<dminuoso_>
kke: Is something like parslet an option for you?
<kke>
so i need something a bit like virtus. i like clamp's (cli app framework) option parser. also mutations has some kind of option validator thing.
<dminuoso_>
It should be relatively trivial to either handwrite or use a parser/parser generator to parse this.
<kke>
you're on the wrong track :) i can just read in the yaml but i need to build objects out of variable definitions and perhaps validate / coerce the values
TomyWork has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
_djbkd has quit [Quit: My people need me...]
<kke>
so that i can do something like field = Field.new(type: :integer, range: (1..30)); field.value = STDIN.read.strip; field.valid?
<Fire-Dragon-DoL>
hello everyone... I was looking into monads implementation libraries in Ruby and found... 10000000000!!!! Any recommendation on which should I aim to? checked "monads", "deterministic", "dry-monads",
bronson has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
... and "monadic" (involuntarily pressed enter), but I'm about to write my own because of such wide choice
<Fire-Dragon-DoL>
(yeah, let's add a new one, lol)
djbkd_ has quit [Remote host closed the connection]
u39 has quit [Quit: Page closed]
crissae_ has joined #ruby
ngrin has joined #ruby
djbkd_ has joined #ruby
Robtop__ has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
crissae has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
<Burgestrand>
rashomoun it's very intrusive to reveal all instance variables of something, I wouldn't recommend doing it at all
<rashomoun>
Burgestrand: what's your solution then?
<Burgestrand>
rashomoun not doing it at all, why do you need to rip out the internals of something like this?
<blackbombay>
1) why do you assign a local variable that's never used? 2) why map twice? call to_s inside a single map block. 3) sub('@', '') instead of tr. 4) use to_h instead of reduce, it sould be faster: [[1, 2]].to_h => {1 => 2}.
AndChat59136 has joined #ruby
the_drow has joined #ruby
AndChat59136 has quit [Remote host closed the connection]
whathappens has joined #ruby
astrobunny has quit [Remote host closed the connection]
<hanmac>
blackbombay: did you know that Symbol has a #[] method too?
<blackbombay>
nope, i did not. id remove the to_s then.
mim1k|wo1k is now known as mim1k|work
quazimodo has quit [Read error: Connection reset by peer]
aaronds has joined #ruby
SJr has joined #ruby
<apeiros>
sub('@', '') and tr('@','') do different things. maybe meant gsub?
* apeiros
would use .delete('@'), though
aaronds has quit [Ping timeout: 260 seconds]
igniting has quit [Ping timeout: 252 seconds]
<kke>
is there any reason to have 2.0, 2.1, 2.2 and 2.3 in travis? if something works on 2.3 and 2.0, can you think of something that would not work in 2.1 or 2.2?
elenatanasoiu has joined #ruby
<ljarvis>
kke: absolutely
<ljarvis>
if you want to support those versions, they should all be in travis
tomphp has joined #ruby
quazimodo has joined #ruby
gruggo is now known as grug
<kke>
just for the fun of it?
<ljarvis>
...
<ljarvis>
no, because you want to support them?
<ljarvis>
if you don't, don't add them
<kke>
has there been a feature that worked in 2.0 and 2.3 but not in 2.1 or 2.2?
<ljarvis>
yes, probably quite a few
quazimodo has quit [Read error: Connection reset by peer]
<ljarvis>
oh wait in 2.0 and 2.3 but not in the others, probably not
<ljarvis>
i read that wrong :)
<kke>
well there could have been some temporary bug in 2.1 or 2.2
<Burgestrand>
testing is all about how confident you want to be
<ljarvis>
right, again it's possible and if you want to support them all then you certainly should add them all
<ljarvis>
^ exactly
<Burgestrand>
and how much that confidence costs
jsrn_ has joined #ruby
igniting has joined #ruby
CloCkWeRX has joined #ruby
igniting has quit [Max SendQ exceeded]
igniting has joined #ruby
<blackbombay>
apeiros: i think slicing was the better option after all.
nettoweb has joined #ruby
<apeiros>
ah, I see. all this was to remove the @ from an ivar name?
<blackbombay>
yup
<apeiros>
yeah, agreed, sym[1..-1] is IMO best for that.
ziarkaen has joined #ruby
<apeiros>
(and in that case, sub instead of gsub was correct too obvs. - I only saw tr vs. sub)
<hanmac>
i still think he should checkout Struct and OpenStruct too, because they already have to_h
<apeiros>
if they've got stable attributes, they should use Struct over OpenStruct for more than just the to_h :D
<hanmac>
hm yeah but he didnt told us where he wanted to use that feature
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igniting has quit [Ping timeout: 265 seconds]
conta has joined #ruby
manjaroi3 has joined #ruby
manjaroi3 is now known as anon123
anon123 is now known as anon19231231
<anon19231231>
hey all
<apeiros>
hey anon19231231
Jackneill_ has joined #ruby
tyang_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
tyang has quit [Ping timeout: 245 seconds]
<kke>
do you happen to know anon19231230?
koooge has quit [Quit: Leaving...]
Devalo has joined #ruby
<anon19231231>
I will try to explain my situation as best I can. I have to apply order of operations (division, multiplication, addition and subtraction) to an array of elements. I need to loop through the array until one particular operand is not present any more, then move on to the next. I can do this with a series of while loops, is there a better way to do this?
igniting has joined #ruby
<toretore>
anon19231231: you mean something like 1) divide all by 6, 2) multiply by 8, 3) add 12 to each, 4) subtract 3 from each ?
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndChat59136 has joined #ruby
shmuli has joined #ruby
Silthias has joined #ruby
mostlybadfly has joined #ruby
<Silthias>
Morning all, I'm still a newbie when it comes to ruby and I'm trying in vain to setup argument parsing for a script that allows me to set verbose/debug logging. Based on if i pass the argument of '-v' or '-vv'. I'v made it work by using '-d' instead of '-vv', but thats not what I'd like to use ideally. The code I'm using is: https://gist.github.com/anonymous/573f607efc7509c49eff202ff1725020 Anyone able to point me in the direction of w
shmuli has quit [Ping timeout: 245 seconds]
Silke[m] has joined #ruby
davix[matrix] has joined #ruby
M-shine has joined #ruby
bascht has joined #ruby
M-manveru has joined #ruby
MuffinPimp[m] has joined #ruby
Luca[m] has joined #ruby
serah[m] has joined #ruby
laithshadeed[m] has joined #ruby
velu_aon[m] has joined #ruby
meaggan[m] has joined #ruby
eliotk[m] has joined #ruby
fladson[m] has joined #ruby
cpfeilschifter[m has joined #ruby
M-mistake has joined #ruby
AndChat59136 has quit [Ping timeout: 256 seconds]
<jsaak>
it is against convention, that is why it is not supported i guess
<jsaak>
you can do a parameter with an argument like --debug-level=2
<Silthias>
Thats fair enough then, wasnt aware of that being the case. Thanks
yeticry has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
conta has joined #ruby
<jsaak>
(without the = sign)
humlereader has joined #ruby
JeanCarloMachado has joined #ruby
Immune_ has joined #ruby
_whitelogger has joined #ruby
<ljarvis>
let me know if you get stuck (or just open an issue, usually i'll fix stuff pretty quickly)
JeanCarloMachado has quit [Ping timeout: 252 seconds]
grh has quit [Ping timeout: 252 seconds]
gregf_ has joined #ruby
Immune_ has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
AndChat59136 has joined #ruby
JeanCarloMachado has joined #ruby
malconis has quit [Ping timeout: 250 seconds]
M-mistake has quit [Remote host closed the connection]
M-shine has quit [Remote host closed the connection]
MuffinPimp[m] has quit [Remote host closed the connection]
davix[matrix] has quit [Remote host closed the connection]
Silke[m] has quit [Remote host closed the connection]
bascht has quit [Remote host closed the connection]
laithshadeed[m] has quit [Read error: Connection reset by peer]
M-manveru has quit [Read error: Connection reset by peer]
eliotk[m] has quit [Read error: Connection reset by peer]
cpfeilschifter[m has quit [Read error: Connection reset by peer]
fladson[m] has quit [Read error: Connection reset by peer]
Luca[m] has quit [Read error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
meaggan[m] has quit [Read error: Connection reset by peer]
serah[m] has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
malconis has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
User458764 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
Silke[m] has joined #ruby
davix[matrix] has joined #ruby
Luca[m] has joined #ruby
M-shine has joined #ruby
bascht has joined #ruby
MuffinPimp[m] has joined #ruby
M-manveru has joined #ruby
laithshadeed[m] has joined #ruby
serah[m] has joined #ruby
meaggan[m] has joined #ruby
grh has joined #ruby
fladson[m] has joined #ruby
eliotk[m] has joined #ruby
velu_aon[m] has joined #ruby
cpfeilschifter[m has joined #ruby
M-mistake has joined #ruby
ziarkaen has quit [Ping timeout: 252 seconds]
kent\n has quit [Read error: Connection reset by peer]
kent\n has joined #ruby
cariveri has joined #ruby
<cariveri>
Hi. is there a database for ruby gems? In this case Im looking for a bootstrap gem
<dminuoso_>
cariveri: rubygems.org - gem can also search for you
meth has joined #ruby
bronson has joined #ruby
ziarkaen has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
augcesar has joined #ruby
claudiuinberlin has joined #ruby
sparch has joined #ruby
Vingador has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
igniting has quit [Quit: Ex-Chat]
igniting has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
fmcgeough has joined #ruby
claudiuinberlin has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 245 seconds]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
pawnbox has quit [Read error: Connection reset by peer]
rashomoun has quit [Remote host closed the connection]
pawnbox has joined #ruby
<sheepman>
just looking at the Unirest gem (https://github.com/Mashape/unirest-ruby) and I'm trying to set the user_agent but failing... I think I must be doing something wrong can someone explain how to use it? The documenation just states Unirest.user_agent("test") but that errors
minimalism has quit [Quit: minimalism]
pawnbox_ has joined #ruby
ben__ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
<blackbombay>
sheepman: what's the error? why did you choose that gem over, say, net/http?
<sheepman>
blackbombay: actually i think i just found the problem as there is an issue raised in Github for it
<sheepman>
should of checked there first really.
<sheepman>
sorry.
<blackbombay>
np.
<blackbombay>
fwiw Unipost.get '..', headers: {'User-Agent' => '...'} should work, if the gem works at all :)
Immune has joined #ruby
edwinvdg_ has quit [Ping timeout: 260 seconds]
ben__ has quit [Ping timeout: 260 seconds]
<sheepman>
blackbombay: in the end i needed to bundle the version from github as it differs from the one in rubygems for some reason :/
<blackbombay>
why are you using that gem?
<sheepman>
blackbombay: I've used it before but never needed to set the user agent :) worked fine for me in the past!
Immune has quit [Ping timeout: 260 seconds]
<blackbombay>
alright. it could be worth the time to learn how to use net/http as well, it works well too.
hanmac has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Ishido has joined #ruby
aaronds_ has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
Ishido has quit [Client Quit]
aaronds has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
<soahccc>
I use net-ssh to sometimes cat contents. Why is it that the encoding of the result string is not utf-8 while $LANG is set to utf8 inside the ssh env?
Capela has joined #ruby
minimalism has joined #ruby
aaronds_ has quit [Ping timeout: 244 seconds]
aaronds has joined #ruby
ramortegui has joined #ruby
dionysus69 has joined #ruby
<vktec>
How can I explicitly delete a variable?
edwinvdgraaf has joined #ruby
<soahccc>
vktec: local variable?
<vktec>
Yes
<soahccc>
I think there is no way
<vktec>
:-/
<vktec>
What about globals?
<soahccc>
you can just set it to nil
jrafanie has joined #ruby
<soahccc>
vktec: what are you doing? :D globals sounds horrible
<vktec>
dminuoso_: Yep, the error was elsewhere, thanks for the help
<dminuoso_>
apeiros: linky linky to your gisty gisty for soahccc?
<dminuoso_>
vktec: o/
crissae_ has quit [Quit: Leaving]
<soahccc>
dminuoso_: I don't have to get that right? :)
<dminuoso_>
soahccc: The immediate issue is this: The string is assumed to have the encoding of ASCII-8BIT, but \xC3 is not a valid ASCII-8BIT codepoint - so the encoding fails.
<dminuoso_>
soahccc: There's an immediate fix which requires using force_encoding - but that's just a hotfix. The real issue is somewhere else.
<soahccc>
The question is at which point the encoding changes since all chains are aligned to utf-8 :D
ben__ has quit [Read error: Connection reset by peer]
<dminuoso_>
(force_encoding is like saying "I know you think this is ascii-8bit but it's actually utf-8 codepoints")
mostlybadfly has quit [Quit: Connection closed for inactivity]
<soahccc>
dminuoso_: well they basically do force_encoding or did I pick the wrong solution?
<soahccc>
One does .force_encoding('ASCII-8BIT').encode('UTF-8') but that doesn't work, I just have to force_encoding("utf-8") but it seems wrong
tyang has joined #ruby
tk__ has quit [Quit: ばいばい]
Capela has quit [Remote host closed the connection]
Capela has joined #ruby
cdg has joined #ruby
<dminuoso_>
soahccc: Ive done some searching on japanese websites, it seems like net-ssh has been plagued a while with this - the fact that its not really actively maintained does not help.
<soahccc>
Hmm well I guess I stick with force_encoding for now. I personally only use utf-8 everywhere so it should work out
ziarkaen has quit [Ping timeout: 260 seconds]
d10n-work has joined #ruby
Burgestrand has joined #ruby
gigetoo_ has joined #ruby
ziarkaen has joined #ruby
igniting has quit [Ping timeout: 250 seconds]
Gasher has joined #ruby
igniting has joined #ruby
houhoulis has quit [Ping timeout: 250 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
gigetoo_ is now known as gigetoo
houhoulis has joined #ruby
GinoManWrx has joined #ruby
GinoManWrx has quit [Read error: Connection reset by peer]
GinoManWrx has joined #ruby
GinoManWrx has quit [Read error: Connection reset by peer]
GinoManWrx has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
houhoulis has quit [Ping timeout: 260 seconds]
GinoManWorks has quit [Ping timeout: 268 seconds]
Axy has quit [Ping timeout: 260 seconds]
meth has joined #ruby
grh has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
nikivi has quit [Quit: zzz]
grh has joined #ruby
cpruitt has joined #ruby
tuxaddicted has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Immune has quit [Ping timeout: 260 seconds]
cpruitt has quit [Read error: Connection reset by peer]
aaronds_ has joined #ruby
cpruitt has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
ChiefAlexander has joined #ruby
chouhoulis has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
whathappens has joined #ruby
aaronds has joined #ruby
jhack has quit [Quit: jhack]
alireza has quit [Ping timeout: 250 seconds]
igniting has quit [Ping timeout: 250 seconds]
riddley has joined #ruby
Gasher has quit [Ping timeout: 265 seconds]
aaronds_ has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby
<riddley>
I have an app that examines versioned data. The versioning works with Gem::Version, but I don't see a good way with Gem::Version to specify bigger ranges for example "this code works for versions 1.4.0 to 4.0.0. Does anyone have a good solution for this?
jhack has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
whathappens has quit [Ping timeout: 260 seconds]
dminuoso_ has joined #ruby
ta_ has quit [Remote host closed the connection]
jottr has joined #ruby
alireza has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
djellemah_ has quit [Ping timeout: 250 seconds]
SteenJobs has joined #ruby
<cariveri>
Whats a good traversable structure to store aribtrary number of rows and columns ? (not a grid)
SteenJobs has quit [Client Quit]
creat has quit [Ping timeout: 244 seconds]
SteenJobs has joined #ruby
mim1k|work has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
riddley has left #ruby ["Ex-Chat"]
edwinvdgraaf has joined #ruby
igniting has joined #ruby
Uranio has quit [Quit: while you read this, a kitty dies]
Gasher has joined #ruby
SCHAAP137 has joined #ruby
grh has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
alireza has quit [Ping timeout: 250 seconds]
grh has joined #ruby
nikivi has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
mhib_ has joined #ruby
Xentil has joined #ruby
vuoto has joined #ruby
<vktec>
How should I go about defining a foreign function in the root namespace using mruby?
mhib_ has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
gnufied has joined #ruby
ule has quit [Quit: leaving]
sepp2k has joined #ruby
chouhoul_ has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
ule has joined #ruby
harfangk has joined #ruby
demio has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
houhoulis has joined #ruby
bronson has joined #ruby
Kendos-Kenlen has joined #ruby
dviola has joined #ruby
nikivi has quit [Quit: zzz]
lenwood has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
rfoust_ is now known as rfoust
GodFather has joined #ruby
dn` has joined #ruby
jottr has quit [Quit: WeeChat 1.5]
millerti has joined #ruby
flashpoi_ has joined #ruby
gix has quit [Ping timeout: 260 seconds]
igniting has joined #ruby
shmuli has joined #ruby
jottr has joined #ruby
flashpoint9 has quit [Ping timeout: 265 seconds]
nikivi has joined #ruby
ule has quit [Quit: leaving]
polishdub has joined #ruby
gix has joined #ruby
jottr has quit [Client Quit]
<mvxlr>
any good way write `false || nil` so that it returns false ?
<vktec>
mvxlr: What should it return nil for?
<mvxlr>
false
<vktec>
Wait, what?
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<loincloth>
o.O
Silthias has quit [Quit: Leaving.]
<vktec>
You want it to return false if it's false, but nil if it's false?
edwinvdg_ has quit [Read error: Connection reset by peer]
<toretore>
cariveri: provide more information
edwinvdg_ has joined #ruby
<vktec>
Oh, on that note, is it better to use alias or alias_method?
edwinvdgraaf has quit [Ping timeout: 252 seconds]
gizless has joined #ruby
<cariveri>
toretore: the explicit cll to the function I want to call is Tree:TreeNode.new(a,b) and thats far too long. How cn I shorten it.? TN = Tree:: ... did not work by the wy
ocbtec has joined #ruby
cpruitt has quit [Quit: cpruitt]
ocbtec has quit [Client Quit]
cpruitt has joined #ruby
ocbtec has joined #ruby
<apeiros>
dminuoso: what what what? which link?
foooobear has quit [Quit: (null)]
<toretore>
cariveri: gist your code
<toretore>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<vktec>
cariveri: That's hardly very long...
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparch has quit [Ping timeout: 260 seconds]
<cariveri>
you must kidding.
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Max SendQ exceeded]
<cariveri>
toretore: that is the code: <% TN = Tree::TreeNode %> and it resolves to the error: dynamic constant assignment TN = Tree::TreeNode ^
<toretore>
cariveri: don't be a smartass. you ask because we know more than you, so when we ask you to provide more information you should trust that it's for a good reason. i don't have enough context to answer your question, so i'm asking you to provide more.
<cariveri>
thank you toretore
<cariveri>
vktec: can you see what long means in there?
skweek has joined #ruby
Guest57477 has joined #ruby
<vktec>
cariveri: From that link, I assume you're calling it a lot?
<cariveri>
THere is this line where you construct the tree and the methodname does render it unreadable, as you may assume the real world tree is much more complex.. dont you think?
mvxlr has joined #ruby
<vktec>
cariveri: Well, put 'include Tree' in your file, which will shorten it to TreeNode.new, and then use backslashes and indentation
Silthias has joined #ruby
phantompain has joined #ruby
<vktec>
That's what I'd do
<vktec>
Anyway, I'll be back later
<vktec>
o/
Silthias1 has joined #ruby
<toretore>
cariveri: the solution to your problem is most likely not at all what you think. if you provide the necessary information you will get a much better one.
<toretore>
and you should namespace it: module MyApp; module DurationCalc
tau has joined #ruby
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
mikecmpbll has quit [Ping timeout: 256 seconds]
<mvxlr>
hmmm, namesapce it how? and why?
igniting has joined #ruby
<toretore>
i just showed you. because you should namespace everything in your app. which is because you want to avoid having things in the top level global namespace. which is to avoid collisions with other code
sepp2k has quit [Ping timeout: 244 seconds]
wildleaf has quit [Disconnected by services]
<mvxlr>
but then when I want to use it in my code I would call MyApp::DurationCalc.years_within ?
<toretore>
not most of the time, because most of the time you will be in the scope of MyApp anyway, because you put everything there
houhoulis has quit [Remote host closed the connection]
<toretore>
your rails app already has a namespace like this if it was generated
<mvxlr>
where is the scope of my app defined?
<mvxlr>
you can probally tell i'm new to rails (and ruby for that matter)
djellemah_ has joined #ruby
<mvxlr>
i want to verify which scope to use
ta_ has quit [Remote host closed the connection]
<mvxlr>
ok found it, application.rb
<mvxlr>
:)
<toretore>
yes
shmuli has joined #ruby
SeepingN has joined #ruby
ec\ has joined #ruby
Ankhers has quit [Quit: Leaving]
terens has quit [Ping timeout: 256 seconds]
<mvxlr>
did it, but now rspec is unable to find it
<mvxlr>
LoadError: Unable to autoload constant DurationCalc, expected /Users/mveksler/Developer/referral-web/lib/duration_calc.rb to define it
<mvxlr>
./spec/lib/duration_calc_spec.rb:42:in `block (2 levels) in <top (required)>'
dionysus69 has joined #ruby
<mvxlr>
-e:1:in `<main>'
<mvxlr>
and in the specified path I did define the module
<mvxlr>
module ReferralWeb
<mvxlr>
module DurationCalc
<ljarvis>
lib/referral_web/duration_calc.rb
<toretore>
make a directory lib/referral_web and put all namespaced files in there
aufi has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
shmuli has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
frmendes has joined #ruby
aaronds_ has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
aaronds has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
aaronds_ has quit [Ping timeout: 250 seconds]
CoderFrank has quit [Remote host closed the connection]
shmuli has joined #ruby
amclain has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
Capela has quit [Remote host closed the connection]
speakingcode has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
creat has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 252 seconds]
Kendos-Kenlen_ has joined #ruby
lenwood has joined #ruby
[Butch] has joined #ruby
ziarkaen has quit [Ping timeout: 252 seconds]
jeanlinux has joined #ruby
Kendos-Kenlen_ has quit [Client Quit]
ramfjord has joined #ruby
whathappens has joined #ruby
ziarkaen has joined #ruby
atmosx_ has joined #ruby
boxrick1_ has quit [Ping timeout: 260 seconds]
rfoust_ has joined #ruby
electrostat has quit [Quit: uwotm8]
Lord_of_Life has quit [Excess Flood]
electrostat has joined #ruby
PaulCape_ has joined #ruby
Rush has quit [Quit: No Ping reply in 180 seconds.]
Lewix has quit [Ping timeout: 260 seconds]
rideh has quit [Ping timeout: 260 seconds]
zero7 has quit [Ping timeout: 260 seconds]
darthvorik has quit [Ping timeout: 260 seconds]
heyimwill has quit [Ping timeout: 260 seconds]
im0b has quit [Ping timeout: 260 seconds]
atmosx has quit [Ping timeout: 260 seconds]
jeanlinux has quit [Client Quit]
darthvorik has joined #ruby
alamar has quit [Ping timeout: 260 seconds]
LyndsySimon has quit [Ping timeout: 260 seconds]
Guest57477 has quit [Remote host closed the connection]
alamar has joined #ruby
zero7 has joined #ruby
boxrick1_ has joined #ruby
Rush has joined #ruby
rfoust has quit [Ping timeout: 260 seconds]
Qommand0r has quit [Ping timeout: 260 seconds]
edwinvdg_ has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
alamar is now known as Guest34862
Lewix has quit [Changing host]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
rideh has joined #ruby
im0b has joined #ruby
LyndsySimon has joined #ruby
Lord_of_Life has joined #ruby
flying has quit []
whathappens has quit [Ping timeout: 265 seconds]
SCHAAP137 has joined #ruby
phantompain has quit [Ping timeout: 260 seconds]
<soahccc>
It's not trivial to test UDP ports for reachability right? I have a socket and send stuff but I guess I have to wait for a response
shmuli has quit [Remote host closed the connection]
Devalo has joined #ruby
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rtail has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
Lord_of_Life has quit [Excess Flood]
Silthias1 has quit [Quit: Leaving.]
heyimwill has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Lord_of_Life has joined #ruby
nettoweb has joined #ruby
derpson has joined #ruby
phantompain has joined #ruby
acamargo has joined #ruby
tuxaddicted has quit [Ping timeout: 260 seconds]
<cariveri>
gem install rubytree ; added require 'tree' in helper.rb ; include 'Tree' ; but as soon as I use Tree::Treenode.new there is an error:ActionView::Template::Error (uninitialized constant Tree::Treenode)
<soahccc>
So when I recv I get ECONNREFUSED when the port is closed but when it's open it waits forever. So I timout and when it raises timeouterror I assume it works? :S
aganov has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
radic has joined #ruby
harai has quit [Ping timeout: 250 seconds]
igniting has quit [Ping timeout: 250 seconds]
igniting has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
mark_66 has quit [Remote host closed the connection]
aaronds has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aaronds has joined #ruby
Qommand0r has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
Burgestrand has joined #ruby
nankyokusei has quit [Remote host closed the connection]
Burgestrand has quit [Client Quit]
jhack has quit [Quit: jhack]
last_staff has quit [Quit: last_staff]
nitric has joined #ruby
<soahccc>
cariveri: rails project? don't you add it to your bundle?
<Brisr>
/usr/lib/ruby/2.1.0/open-uri.rb:36:in `open': no implicit conversion of nil into String (TypeError)
<Brisr>
from /usr/lib/ruby/2.1.0/open-uri.rb:36:in `open'
<Brisr>
from ruby:22:in `<main>'
<Brisr>
Guess I need to give it a URL? How do I do this please?
mrwn has joined #ruby
arup_r has joined #ruby
nikivi has quit [Quit: irc]
<toretore>
Brisr: you're not giving it a url
<toretore>
oh
<toretore>
second argument is url
railssmith has quit [Ping timeout: 260 seconds]
nanoz has joined #ruby
<arup_r>
Hi, I need 1 help from you people. I have added erb templates in odt files. Like "Hi, <%= @user.name %>" So, I want to fill it now, using ERB code. So with .odt how should I do it.
<arup_r>
?
<Brisr>
So should read: require 'example.com' ?
[Butch] has quit [Quit: I'm out . . .]
<arup_r>
if you guys have dome such work before, can you give me some hints?
<derpson>
hey, why does Time.strptime(date_time, "%Y-%m-%d-%H:%M-%Z") convert time correctly if given "-CET" or "-PST" but not for "-JST" (japanese time) or others?
<vktec>
arup_r: You'll need to parse the odt file, probably
<Brisr>
toretore, so how do I feed it my required url?
flashpoint9 has quit [Remote host closed the connection]
<derpson>
for JST it just returns the input in the server's time zone
<toretore>
Brisr: ruby filename.rb url
<Brisr>
Ah :)
flashpoint9 has joined #ruby
<toretore>
derpson: it probably doesn't know what JST is
Capela has joined #ruby
<cariveri>
soahccc: I added rubytree to the Gemfile also.
alireza has joined #ruby
<toretore>
cariveri: you are still wasting yours and others' time by not providing enough information
<cariveri>
soahccc: or rather 'tree'
tuxaddicted has joined #ruby
<toretore>
arup_r: the erb docs should tell you how to load a template and render it
shmuli has joined #ruby
<arup_r>
That's what I am using. But something wrong, let me spend some more times
SteenJobs has joined #ruby
<toretore>
arup_r: code plz
finisherr has joined #ruby
<arup_r>
yes sure. Let me put some more efforts
<arup_r>
:)
<toretore>
you are probably not using the appropriately scoped binding
nikivi has joined #ruby
aaronds_ has joined #ruby
Silthias has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
malconis has joined #ruby
shmuli has quit [Ping timeout: 245 seconds]
aaronds has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
jsrn_ has quit [Quit: Leaving]
rcvalle has joined #ruby
Silthias1 has joined #ruby
cdg has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 252 seconds]
whathappens has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
derpson has quit [Quit: 晚安]
shmuli has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toretore>
so: erb works as you think it does; something else doesn't
nankyokusei has joined #ruby
lenwood has joined #ruby
<arup_r>
ok so what is wrong in my case? because I have the exact code you have here. And <%= @x %> inside the odt doc.
Gasher has quit [Quit: Leaving]
JoshS has quit [Ping timeout: 268 seconds]
[Butch] has joined #ruby
chrisja has joined #ruby
flashpoint9 has joined #ruby
benlieb has joined #ruby
Chair has quit [Ping timeout: 265 seconds]
submitnine has quit [Remote host closed the connection]
shmuli has quit [Remote host closed the connection]
User458764 has joined #ruby
terens has joined #ruby
hahuang61 has quit [Read error: Connection timed out]
aufi has joined #ruby
hahuang61 has joined #ruby
nikivi has quit [Quit: irc]
jshjsh has quit [Ping timeout: 268 seconds]
jberkhahn has joined #ruby
claudiuinberlin has quit []
arup_r has quit [Remote host closed the connection]
shmuli has joined #ruby
rodfersou is now known as rodfersou|afk
conta has quit [Ping timeout: 268 seconds]
pragmaticus has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<jberkhahn>
Is there any sort of ETA for a 2.3.2 release? encountering issues with:: https://bugs.ruby-lang.org/issues/12292 and trying to determine a workaround.
lenwood has quit [Ping timeout: 250 seconds]
Lord_of_Life has quit [Excess Flood]
chouhoulis has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
antgel has quit [Ping timeout: 268 seconds]
Lord_of_Life has joined #ruby
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
jcao219 has joined #ruby
harai has joined #ruby
splud_ has joined #ruby
ixti has joined #ruby
hutch34 has joined #ruby
_djbkd has joined #ruby
arup_r has joined #ruby
jhack has joined #ruby
cdg has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
<baweaver>
You might hit the mailing list or comment on that thread. Most of the core devs tend to watch it.
shmuli has quit [Remote host closed the connection]
mikecmpb_ has quit [Quit: inabit. zz.]
creat has quit [Quit: Leaving]
vuoto has joined #ruby
benlieb has quit [Quit: benlieb]
tvw has quit [Remote host closed the connection]
<arup_r>
sorry i got disconnected toretore
jenrzzz has joined #ruby
ddffg has joined #ruby
raatiniemi has joined #ruby
aaronds has joined #ruby
aaronds_ has quit [Ping timeout: 265 seconds]
yardenbar has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
hutch34 has quit [Ping timeout: 268 seconds]
arup_r has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 256 seconds]
mniip has quit [Ping timeout: 608 seconds]
jcao219 has quit [Ping timeout: 268 seconds]
lenwood has joined #ruby
u39 has joined #ruby
marxarelli has joined #ruby
<terens>
hello
mrwn has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Lord_of_Life has quit [Excess Flood]
arup_r has joined #ruby
[Butch] has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
tirej has joined #ruby
[Butch] has joined #ruby
benlieb has joined #ruby
Lord_of_Life has joined #ruby
<alexandernst>
is there a way I can tell if a variable is an instance of something (whatever class) or if the variable just points to a class?
shmuli has joined #ruby
<alexandernst>
meaning, a = Foo a.is_instance? ==> false
<alexandernst>
a = Foo.new a.is_instance? => true
<ciawal>
a.instance_of?(Class)
<ciawal>
maybe
<alexandernst>
no, I don't know the class
<alexandernst>
I just want to check if it's an instance of whatever class
ych has joined #ruby
Lord_of_Life has quit [Excess Flood]
smlocal has joined #ruby
<ych>
hey , i'm building a ruby based CLI app. i have lib/ bin/ etc.. but whenever i call bin/myfile (which is executable) i get cannot load such file "myfile" which refers to the line in bin/myfile => require "myfile"
Devalo has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
Devalo has joined #ruby
hutch34 has joined #ruby
Vingador has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
Devalo has quit [Ping timeout: 250 seconds]
aufi has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
<lmc>
Can I ask questions aboud rbenv and bundler here?
derpson has joined #ruby
gusrub has quit [Remote host closed the connection]
<lmc>
I'm getting an error message like "Your bundle is locked to…" while attempting to initialize bundle in a clean project directory with a Gemfile and Gemfile.lock files. Pretty much all my coworkers are able to run the bundle command without issue, so I suppose I'm doing something wrong.
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lmc>
Would one of you be kind enough to help me figuring it out?
gusrub has joined #ruby
<lmc>
My complete error message is the sentence "Your bundle is locked to rake (10.5.0), but that version could not be found in any of the sources listed in your Gemfile."
<lmc>
And the command that triggers it is "bundle install --path=.bundle
moei has quit [Quit: Leaving...]
doyle has joined #ruby
jshjsh has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
whathappens has joined #ruby
millerti has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 245 seconds]
rodferso1 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
cajone has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
hotpancakes has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrwn has joined #ruby
tomphp has joined #ruby
Guest43 has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
derpson has quit [Quit: 晚安]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has joined #ruby
pokalyis_ has joined #ruby
last_staff has quit [Quit: last_staff]
pokalyis has quit [Ping timeout: 252 seconds]
pokalyis_ has quit [Client Quit]
jordanm has quit [Quit: Konversation terminated!]
pokalyis has joined #ruby
gingray has quit [Ping timeout: 256 seconds]
ramortegui has quit [Quit: Ex-Chat]
nopolitica has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PsionTheory has joined #ruby
rodferso1 is now known as rodfersou|dinner
ramfjord has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has joined #ruby
d0nn1e has quit [Ping timeout: 265 seconds]
djellemah_ has quit [Ping timeout: 260 seconds]
mrwn has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
d0nn1e has joined #ruby
Felipe__ has joined #ruby
anuxivm has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
ziarkaen has joined #ruby
pokalyis has joined #ruby
SeepingN has joined #ruby
muelleme has joined #ruby
pokalyis has quit [Client Quit]
pokalyis has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
SeepingN has quit [Read error: Connection reset by peer]
elenatanasoiu has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
grh has quit [Ping timeout: 244 seconds]
PsionTheory has quit [Read error: Connection reset by peer]
Frankenstein is now known as nchambers
blackwind_123 has quit [Ping timeout: 260 seconds]
Fichtenstein has quit [Quit: Fichtenstein]
Felipe__ has quit [Quit: Leaving]
ghormoon has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
blackwind_123 has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
muelleme has quit [Ping timeout: 245 seconds]
mooe has quit [Quit: Connection closed for inactivity]
ghormoon has joined #ruby
firstdayonthejob has joined #ruby
jcao219 has joined #ruby
gusrub has quit [Remote host closed the connection]
hotpancakes has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
elenatanasoiu has joined #ruby
marr has joined #ruby
Felipe__ has joined #ruby
crankharder has joined #ruby
<lmc>
Would any of you advise me against specifying my Rake version in my Gemfile? Would this cause issues with Bundler?
Madplatypus has joined #ruby
fmcgeough has joined #ruby
c3553eb has quit [Quit: Connection closed for inactivity]
brianpWins has quit [Quit: brianpWins]
edwinvdgraaf has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
aaronds has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
sdothum has joined #ruby
lanr has joined #ruby
moei has joined #ruby
aaronds has joined #ruby
nankyokusei has joined #ruby
hutch34 has joined #ruby
tyang_ has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
SuperLag has quit [Quit: Lost terminal]
E7F3RN4 has joined #ruby
elastix has joined #ruby
xall has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
shmuli has quit [Read error: Connection reset by peer]
shmuli has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has quit [Ping timeout: 260 seconds]
kareelee has quit []
xall has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
boombox_ has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
nfsnobody has quit [Changing host]
nfsnobody has joined #ruby
shmuli_ has joined #ruby
polishdub has quit [Quit: Leaving]
shmuli has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Remote host closed the connection]
c3553eb has joined #ruby
c3553eb is now known as c3553e3b
hotpancakes has joined #ruby
pragmaticus has quit [Remote host closed the connection]
boombox_ has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 260 seconds]
lanr has quit [Quit: Leaving]
Pazzaz has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smlocal has quit [Remote host closed the connection]
Pazzaz has joined #ruby
aaronds has quit [Ping timeout: 244 seconds]
binaryplease has joined #ruby
jhack has quit [Quit: jhack]
whathappens has quit [Ping timeout: 265 seconds]
tristanp has quit [Ping timeout: 260 seconds]
elastix has quit [Quit: Leaving]
Guest43 has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
aaronds has joined #ruby
Rubyenthusiast has joined #ruby
<Rubyenthusiast>
Hi
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
whathappens has joined #ruby
tristanp has joined #ruby
<Rubyenthusiast>
I had a question... I don't know if the book I'm reading is dated but I typed a bit of code directly in irb (from the book) and I'm getting errors
<Rubyenthusiast>
I'm trying to preload rbconfig into irb
<Rubyenthusiast>
how does one do this?
Jayson_Virissimo has quit []
malconis has quit [Read error: Connection reset by peer]
<Rubyenthusiast>
here is what I was instructed to use
<Rubyenthusiast>
$ irb --simple-prompt -rrbconfig
cschneid_ has quit [Remote host closed the connection]
quazimodo has joined #ruby
nekcode has joined #ruby
nekcode has quit [Client Quit]
<apeiros>
Rubyenthusiast: you typed that into irb?
<Rubyenthusiast>
yeah
<apeiros>
uh yeah, wrong place.
<apeiros>
the $ indicates your shell prompt. not irb.
malconis has joined #ruby
<Rubyenthusiast>
I see, I was never able to run anything with $ in irb...
<apeiros>
so in your shell, you type `irb --simple-prompt -rrbconfig`, and to be clear, that's without the `
SeepingN has joined #ruby
weemsledeux has joined #ruby
<Rubyenthusiast>
I haven't tried it yet
dionysus69 has quit [Ping timeout: 256 seconds]
mkinkles has joined #ruby
tyang has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
mkinkles has left #ruby [#ruby]
elenatanasoiu has quit [Ping timeout: 268 seconds]
bluOxigen has joined #ruby
justinmcp has quit [Read error: Connection reset by peer]
frmendes has quit [Quit: cya...]
justinmcp has joined #ruby
tyang_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
<Rubyenthusiast>
hey apeiros, sry for the long delay was rudely interrupted...
<Rubyenthusiast>
how do I run the ruby shell?
evidex has quit [Ping timeout: 265 seconds]
<apeiros>
not the ruby shell. your shell. bash or whatever it is you're using.
ben_____ has joined #ruby
<Rubyenthusiast>
i dont understand, I'm running ruby via cmd with ruby
<Rubyenthusiast>
I wrote the code I want to execute in notepad++
<Rubyenthusiast>
and execute the file, I launch irb through the ruby + cmd prompt
whathappens has quit [Read error: Connection reset by peer]
<apeiros>
how did you start irb?
<Rubyenthusiast>
windows command prompt
<Rubyenthusiast>
with ruby addition
<apeiros>
that's your shell.
Azure|dc is now known as Azure
<Rubyenthusiast>
so are you suggesting I just put the aforemention code in that?