apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nobitanobi has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
charliesome has quit [Quit: zzz]
ValicekB_ is now known as ValicekB
CookieJar has quit [Ping timeout: 245 seconds]
bluenemo_ has quit [Quit: Verlassend]
tachibana has quit [Remote host closed the connection]
renier has left #ruby ["Textual IRC Client: www.textualapp.com"]
Mars__ has quit [Ping timeout: 260 seconds]
Tricon has joined #ruby
diegoviola has joined #ruby
nanoyak has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
shosti has quit [Ping timeout: 246 seconds]
cirn0 has joined #ruby
cndiv has joined #ruby
nairys has quit [Quit: nairys]
jkline has quit [Quit: jkline]
tcrypt has quit [Remote host closed the connection]
manzo has joined #ruby
Zackio has joined #ruby
jkline has joined #ruby
shevy has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
bmurt has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
n_blownapart has quit [Remote host closed the connection]
Synthbread has quit [Quit: Leaving]
shevy has joined #ruby
Synthead has joined #ruby
_shrine is now known as _cake
davasaurous has joined #ruby
davasaurous has quit [Remote host closed the connection]
thagomizer has quit [Quit: Leaving.]
shlant1 has left #ruby [#ruby]
Cheezebox has joined #ruby
thumpba has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sepp2k1 has joined #ruby
shosti has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
davasaurous has joined #ruby
qualiabyte has joined #ruby
fabrice31 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 246 seconds]
britneywright has joined #ruby
deric_skibotn has joined #ruby
kobain has joined #ruby
xcv has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
rbenv has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has joined #ruby
lemur has joined #ruby
Kricir has joined #ruby
lolmaus_ has quit [Ping timeout: 272 seconds]
davasaurous has quit [Remote host closed the connection]
cndiv has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
lavaman has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
gattie has quit [Quit: Leaving...]
jimmyhoughjr has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
echevemaster has joined #ruby
hmsimha has joined #ruby
shock_one has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
lavaman has left #ruby [#ruby]
davasaurous has joined #ruby
gccostab_ is now known as gccostabr
Wolland has joined #ruby
j_mcnally has quit [Ping timeout: 258 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitano_ has quit [Ping timeout: 258 seconds]
renderful has joined #ruby
renderful has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 272 seconds]
jrhe_ has quit [Quit: Connection closed for inactivity]
binaryhat has joined #ruby
odlox_ has quit []
Wolland has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
mocfive has quit [Remote host closed the connection]
moted has quit [Ping timeout: 245 seconds]
unclouded has joined #ruby
Juzdan has joined #ruby
mocfive has joined #ruby
skammer has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
melik_ has quit [Quit: Computer has gone to sleep.]
phutchin1 has joined #ruby
mikepack has joined #ruby
Cecen_ is now known as Cecen
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Juzdan has quit [Ping timeout: 255 seconds]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mocfive has quit [Ping timeout: 272 seconds]
phutchins has quit [Disconnected by services]
phutchin1 is now known as phutchins
Kricir_ has joined #ruby
sevvie has joined #ruby
nobitanobi has joined #ruby
thumpba has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
andrewjanssen has joined #ruby
Cheezebox has quit [Remote host closed the connection]
mikeg has quit [Ping timeout: 245 seconds]
Cheezebox has joined #ruby
tkuchiki has joined #ruby
lolmaus_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tokik has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
thumpba has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 246 seconds]
Cheezebox has quit [Ping timeout: 260 seconds]
sevenseacat has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
andrewjanssen has quit [Quit: Leaving...]
davasaurous has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
reset has joined #ruby
choke has quit [Quit: Leaving]
djbkd has quit [Quit: My people need me...]
mkaesz has joined #ruby
sectionme has joined #ruby
mary5030 has joined #ruby
axsuul has joined #ruby
<hmsimha> So I noticed that any time I use a command-line tool installed as a gem package, I get the error "fatal: Not a git repository (or any of the parent directories): .git" beforehand
<hmsimha> I reproduced this with rubocop and sass
matchaw has quit [Read error: Connection reset by peer]
shosti has quit [Ping timeout: 246 seconds]
matchaw has joined #ruby
<hmsimha> Does anyone have an idea why I might be seeing this?
davasaurous has joined #ruby
phutchins has quit [Remote host closed the connection]
easier has quit [Quit: easier]
klmlfl has joined #ruby
reset has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: yawn]
sectionme has quit [Ping timeout: 250 seconds]
<shevy> hmsimha you have bundler installed?
<shevy> normal gem commands alone won't try to call git
mkaesz has quit [Ping timeout: 245 seconds]
<hmsimha> shevy: I do, but I haven't installed sass through bundler.. or rather, I probably have it as a dependency in projects where I use bundler, but I tried to install it globally
<hmsimha> gem install sass
<shevy> yeah, I guess bundler is trying to check for git stuff
kobain has quit [Ping timeout: 250 seconds]
<hmsimha> shevy: hmmm.. why would bundler affect globally installed gems? Is there a way to prevent this?
<shevy> hmsimha I dunno, I don't use bundler myself, but some days ago, a guy here showed code where one line was
<shevy> if defined? Bundler
<shevy> # do bla
<shevy> and calls Bundler
<hmsimha> shevy: thanks. That must be what's happening then
rkalfane has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
<shevy> I had a look into sass
<shevy> the Rakefile has this line:
<shevy> require 'bundler/gem_tasks'
<shevy> and some more, like:
<shevy> "bundle install & "
yetanotherdave has quit [Ping timeout: 260 seconds]
<shevy> bundler is not a direct dependency
<shevy> but it is weird that bundler is used as part of the project
<shevy> actually, it should be listed as a Development Dependency
<shevy> because that rakefile should fail if bundler is not installed, I think, due to the require 'bundler/gem_tasks' line
Pzzn has joined #ruby
mbwe1 is now known as mbwe
Tricon has quit [Quit: Leaving...]
mbwe has quit [Quit: WeeChat 0.4.2]
mbwe has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir_ has quit [Remote host closed the connection]
charliesome has joined #ruby
mocfive has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 245 seconds]
<hmsimha> shevy: I'm not using rake though. Or does the sass cl tool invoke rake?
einarj has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
<shevy> hmm
<shevy> I am not really familiar with sass
doritostains has joined #ruby
<shevy> I am however quite sure that that git checkout is somehow related to bundler, because bundler can use github-based projects, and I think gem alone can not use github-based projects
nobitanobi has quit [Remote host closed the connection]
stunder has quit [Quit: Screw you guys I'm going home]
<shevy> with which other command-line tools do you notice this behaviour btw?
<hmsimha> rubocop
<zwischenzug> hello, i'm trying to add hex characters to a binary string, but adding the characters changes the encoding of the original string
<hmsimha> that was just the first one to come to mind
andrewjanssen has joined #ruby
<zwischenzug> is there a way to add the hex chars such that the encoding of the string doesn't change?
<hmsimha> shevy (also bundler relies on a git repo I'm pretty sure.. not necessarily github specific, right?)
GriffinHeart has quit [Remote host closed the connection]
<zwischenzug> i suppose i could do a << "\xaa\xbb".force_encoding("ascii-8bit").......is that the best way?
<shevy> hmsimha hmm ... I think you can use bundler-based projects without git too
<shevy> but you are right hmsimha
<shevy> rubocop also has bundler
<shevy> Rakefile:require 'bundler'
<shevy> Rakefile:require 'bundler/gem_tasks'
<shevy> Rakefile: Bundler.setup(:default, :development)
narcan has joined #ruby
<wallerdev> wow shevy spam much
<shevy> there is no spam
<shevy> that is high quality information
<wallerdev> lol
sparrovv has joined #ruby
<shevy> hmsimha so whenever you, or anything else, taps into "rake", the Rakefile should be invoked, which should then trigger bundler to act
<wallerdev> zwischenzug: maybe consider using pack
<shevy> (for those projects that have bundler listed in Rakefile)
<hmsimha> shevy: that makes sense
davasaurous has quit []
<zwischenzug> yea, i guess i could use pack
<zwischenzug> wallerdev, thanks
GriffinHeart has joined #ruby
GinoMan has joined #ruby
davasaurous has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
kobain has joined #ruby
rkalfane has joined #ruby
Channel6 has joined #ruby
<wallerdev> np
sparrovv has quit [Ping timeout: 255 seconds]
lemur has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
rubie has joined #ruby
tcrypt has joined #ruby
bricker`1ork has joined #ruby
<rubie> really simple question: why am i getting an argument error from this? https://gist.github.com/gabrie30/12a4de875e59d5a2c0ad
agent_white has quit [Quit: brb]
agent_white has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> because new takes the arguments, not perimeter
zartoosh has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0]
bricker`work has quit [Ping timeout: 246 seconds]
<rubie> ok thanks
<rubie> got it
nb_bez__ has joined #ruby
<rubie> anyone on here want to go through RubyMonk together?
rubyonrailed has quit []
diegoviola has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
bricker`1ork has quit [Client Quit]
fgo has joined #ruby
Takle has joined #ruby
xcv has quit [Remote host closed the connection]
slester has joined #ruby
saarinen has quit [Quit: saarinen]
Wolland has joined #ruby
saarinen has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
j_mcnally has joined #ruby
Juzdan has joined #ruby
rostam has joined #ruby
GriffinHeart has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
Takle has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 246 seconds]
skammer has joined #ruby
Juzdan has quit [Ping timeout: 272 seconds]
mocfive has quit [Remote host closed the connection]
Akagi201 has joined #ruby
mocfive has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
davasaurous has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
davasaurous has joined #ruby
jimms has joined #ruby
kedare has joined #ruby
thumpba has joined #ruby
_lexjm has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
fgo has joined #ruby
sevvie has quit [Ping timeout: 258 seconds]
w4tna has quit [Read error: Connection reset by peer]
w4tna has joined #ruby
bruno- has joined #ruby
bruno-_ has joined #ruby
meinside has joined #ruby
sleepee has joined #ruby
Pzzn has quit [Quit: Pzzn]
BlkDynmt has quit [Quit: BlkDynmt]
wallerdev has quit [Quit: wallerdev]
maletor has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
hamakn has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 258 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
bruno-_ has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 255 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
KC9YDN has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
bmz345 has quit [Quit: Page closed]
saarinen has quit [Quit: saarinen]
bbloom has joined #ruby
mkaesz has joined #ruby
jottr_ has joined #ruby
AtumT has joined #ruby
cndiv has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
omosoj has quit [Quit: Leaving]
lsone has joined #ruby
fabrice31 has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
SegFaultAX has quit [Excess Flood]
saarinen has joined #ruby
SegFaultAX has joined #ruby
hamakn has joined #ruby
Lewix has joined #ruby
pushnell has joined #ruby
wallerdev has joined #ruby
Kricir has joined #ruby
shock_one has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ is now known as Phrogz
fabrice31 has quit [Ping timeout: 272 seconds]
easier has joined #ruby
<Phrogz> Does "quiet" gem mode work for anyone else? Fails for me both on Windows and OS X. https://gist.github.com/Phrogz/553419381601d586a6a7
manzo has quit [Ping timeout: 258 seconds]
phao has left #ruby ["Leaving"]
Kricir has quit [Ping timeout: 245 seconds]
cndiv has quit [Ping timeout: 258 seconds]
troyready has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
shock_one has quit [Ping timeout: 272 seconds]
saarinen has quit [Quit: saarinen]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theRoUS is now known as theRoUS|abest
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
zettam has quit [Ping timeout: 246 seconds]
AtumT has quit [Quit: AtumT]
Juanchito has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
fgo has joined #ruby
Juzdan has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
Juzdan has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
saarinen has joined #ruby
kobain has joined #ruby
dioms______ has quit [Quit: Connection closed for inactivity]
<ericwood> I'm refactoring a bunch of code from a pull request
kobain has quit [Max SendQ exceeded]
Wolland has quit [Ping timeout: 255 seconds]
<ericwood> the guy who submitted it did some awesome work, but the english was not great
kobain has joined #ruby
<ericwood> ...some interesting grammar in these variable names :P
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
skammer has joined #ruby
kobain has quit [Max SendQ exceeded]
BTRE has quit [Read error: Connection reset by peer]
lsone has quit [Ping timeout: 258 seconds]
jimms has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
mtncode has joined #ruby
BTRE has joined #ruby
skammer has quit [Ping timeout: 250 seconds]
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
radic has joined #ruby
davasaurous has quit [Remote host closed the connection]
<benzrf> oh
<benzrf> lol
fgo has quit []
radic_ has quit [Ping timeout: 258 seconds]
tanath has joined #ruby
mocfive has quit [Remote host closed the connection]
<Phrogz> ericwood: The same could be said of Ruby ^_^
<Phrogz> if my_string.end_with?(…)
havenwood has joined #ruby
GriffinHeart has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkline has quit [Quit: jkline]
tachibana has joined #ruby
melik_ has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
cndiv has joined #ruby
kobain has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
Cheezebox has joined #ruby
JBreit has left #ruby ["Leaving"]
<benzrf> Phrogz: my_string, do you end_with?
benzrf is now known as benzrf|offline
<agent_white> Hm. I'm having some wierd unicode issue -- in pry, I can print a unicode character in a terminal I have open, opened a new terminal and it won't display. http://imgur.com/J2LOrRO
St_Marx has joined #ruby
bmurt has quit []
<agent_white> I diff'ed each term's `printenv` and `export` but got no differences between the two.
amystephen has quit [Quit: amystephen]
grokdancer has joined #ruby
mkaesz has joined #ruby
grenierm has joined #ruby
lsone has joined #ruby
emmesswhy has joined #ruby
sinkensabe has joined #ruby
emmesswhy has quit [Max SendQ exceeded]
[kr]_park has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
[kr]_park has left #ruby [#ruby]
braincrash has quit [Quit: bye bye]
emmesswhy has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
<Phrogz> benzrf|offline: Hadn't considered that. Thanks.
emmesswhy has quit [Max SendQ exceeded]
emmesswhy has joined #ruby
Vile` has quit [Remote host closed the connection]
adironduck has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
braincrash has joined #ruby
adironduck has quit [Client Quit]
tlarevo has joined #ruby
davasaurous has joined #ruby
Cheezebox has quit [Ping timeout: 272 seconds]
zeroNones has joined #ruby
shock_one has joined #ruby
niklasb has joined #ruby
chrishough has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
sdwrage has joined #ruby
Vile` has joined #ruby
lsone has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has quit [Ping timeout: 255 seconds]
sparrovv has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
amystephen has joined #ruby
slester has quit [Ping timeout: 258 seconds]
Juzdan has joined #ruby
<ericwood> Phrogz: so true
<ericwood> the big one in this case I keep correcting is sensor vs. sensors
sparrovv has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
Juzdan has quit [Ping timeout: 272 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
rgsteele has joined #ruby
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
Wolland has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<ericwood> is this readable?
<ericwood> pack += signedness == :signed ? 'c' : 'C'
<ericwood> if you were reading code and you saw that would you hate me?
arup_r has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> no to the former, yes to the latter.
Wolland has quit [Ping timeout: 255 seconds]
<j416> "signedness".. o_O
<j416> ericwood: use << instead of += if possible
zeroNones has joined #ruby
troyready has joined #ruby
shock_one has joined #ruby
skammer has joined #ruby
mocfive has joined #ruby
bruno- has joined #ruby
bruno-_ has joined #ruby
<ericwood> good point
<ericwood> I'm refactoring more of this guy's code
nb_bez__ has quit [Quit: Connection closed for inactivity]
kiwnix has joined #ruby
lsone has joined #ruby
skip_freely has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
jay has joined #ruby
rgsteele has quit [Remote host closed the connection]
jay is now known as rubyonrailed
havenwood has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Phrogz has quit [Quit: Nighttime]
hiyosi has joined #ruby
bruno-_ has quit [Ping timeout: 272 seconds]
lsone has quit [Quit: ZNC - http://znc.in]
FL1SK has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
niklasb has quit [Ping timeout: 258 seconds]
axsuul has quit [Read error: No route to host]
chipotle_ has quit [Quit: cya]
lemur has joined #ruby
lsone has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
melik_ has quit [Quit: Computer has gone to sleep.]
melik_ has joined #ruby
lsone has quit [Quit: leaving]
diegoviola has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
skip_freely has quit [Quit: skip_freely]
<ericwood> fine, I got rid of the ternary
<ericwood> I hope y'all are happy now
stunder has joined #ruby
grokdancer has quit [Quit: Leaving.]
tkuchiki_ has joined #ruby
benlieb has joined #ruby
lsone has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
awc737 has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
axsuul has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
mkaesz has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
end_guy_ has joined #ruby
<awc737> does anyone know an ajax file/folder code viewer, similar to github code browsing?
end_guy has quit [Ping timeout: 264 seconds]
rubyonrailed has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
cirn0 has joined #ruby
stunder has quit [Ping timeout: 260 seconds]
cirn0 has quit [Ping timeout: 260 seconds]
shock_one has quit [Quit: Computer has gone to sleep.]
arup_r has quit [Quit: Leaving.]
Juzdan has joined #ruby
b00stfr3ak has joined #ruby
shock_one has joined #ruby
Juzdan has quit [Ping timeout: 258 seconds]
havenwood has quit [Ping timeout: 264 seconds]
Zesty has joined #ruby
end_guy_ has quit [Ping timeout: 264 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
tanath has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 264 seconds]
JoshGlzBrk has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
iamayam has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
ARCADIVS has joined #ruby
GriffinHeart has joined #ruby
iamayam has joined #ruby
jhc76 has quit [Ping timeout: 255 seconds]
rubyonrailed has quit [Remote host closed the connection]
synergyz has quit [Remote host closed the connection]
mrsolo has joined #ruby
davasaurous has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
DrCode has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
St_Marx has joined #ruby
tkuchiki has joined #ruby
tanath has joined #ruby
axsuul has joined #ruby
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
skammer has joined #ruby
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
niklasb has joined #ruby
mr-foobar has quit [Quit: Leaving...]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has joined #ruby
w4tna has quit [Ping timeout: 272 seconds]
spacemud has quit [Ping timeout: 250 seconds]
end_guy has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
spacemud has joined #ruby
hiyosi has joined #ruby
<agent_white> How can I read the remaining chars leftover from a STDIN.getch() ?
<agent_white> Remaining chars left in the buffer*
armyriad has quit [Ping timeout: 250 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
_lexjm has joined #ruby
Tomme has joined #ruby
oleo has quit [Quit: Verlassend]
yfeldblum has quit [Ping timeout: 255 seconds]
techsethi has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
mrsolo has quit [Quit: This computer has gone to sleep]
lxsameer has joined #ruby
lxsameer has joined #ruby
teddyp1cker has joined #ruby
mrsolo has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
tlarevo has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
tlarevo has joined #ruby
emocakes__ has joined #ruby
tlarevo has quit [Remote host closed the connection]
jhc76 has joined #ruby
tlarevo has joined #ruby
teddyp1c_ has quit [Ping timeout: 250 seconds]
Tomme has quit [Ping timeout: 246 seconds]
Tricon has quit [Ping timeout: 260 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
emocakes has quit [Ping timeout: 245 seconds]
uzo_ has joined #ruby
armyriad has joined #ruby
InhalingPixels has joined #ruby
mkaesz has joined #ruby
Wolland has joined #ruby
sinkensabe has joined #ruby
uzo_ has quit [Client Quit]
awc737 has quit [Ping timeout: 245 seconds]
Mars__ has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
mkaesz has quit [Ping timeout: 245 seconds]
Juzdan has joined #ruby
avi__ has left #ruby [#ruby]
karupa has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
tmba has joined #ruby
mikepack has quit [Remote host closed the connection]
<agent_white> Basically, I'm wanting to read a keypress on the arrow-keys pad. Trying to avoid using some outside gem to do it.
Juzdan has quit [Ping timeout: 245 seconds]
Waheedi has joined #ruby
jarjar_prime has joined #ruby
spectator has joined #ruby
kireevco1 has quit [Quit: Leaving.]
duncannz has joined #ruby
<tmba> Hi guys, I've got an issue. I have been doing RoR programming for a few years but do not consider myself master of Ruby or RoR still. Anyhow, I am now looking for jobs in the space after a few successful projects, and was asked to do an assignement kind of project as a test. I did the test in OOP style and got back that it did NOT pass their conditions. I'm really unsure as to what the problem is with my coding, and would surely appreciate any tips on
<sevenseacat> why dont you ask them what their conditions were?
<tmba> I have tested the code and dont think there are any bugs
<tmba> The conditions are it needs to be OOP style
<tmba> I get the feeling that there are some conventions I have broken
echevemaster has quit [Quit: Leaving]
kireevco has joined #ruby
axisys has quit [Ping timeout: 272 seconds]
kyb3r_ has joined #ruby
axisys has joined #ruby
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
<eam> tmba: where is your code?
<agent_white> Also for my issue, this worked: `while key = STDIN.getch; if key == "\e"; STDIN.getch; k = STDIN.getch; p k; end; end;
<agent_white> I guess I should've just simply called STDIN.getch again.. ;P
someothernick has joined #ruby
pontiki has joined #ruby
kireevco has quit [Client Quit]
<eam> agent_white: yeah, on most terminals arrow key are two-byte sequences
<eam> not true on all terminals however
<agent_white> eam: Hm. Yeah basically all I wanted was to grab an arrow key and have it immediately return... took much longer than it should've D:
spectator has quit [Remote host closed the connection]
pontiki has quit [Client Quit]
<agent_white> Just never thought to peel the buffer without using the return value.
<agent_white> `STDIN.readbytes(2)` or somethin would've been nice :P
GinoMan has quit [Ping timeout: 246 seconds]
<eam> well, you can send esc alone
<eam> there's no way for you to know
skip_freely has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<agent_white> eam: Not sure what you mean?
<eam> the arrow keys are compound sequences, you can send their sequences without using them, by using the escape key
Channel6 has quit [Quit: Leaving]
Mars__ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<eam> eg "down" on my terminal is the sequence 0x1b 0x5b 0x42
Mars__ has joined #ruby
arup_r has joined #ruby
<eam> or escape left bracket star
<eam> try it
AlexRussia_ has quit [Ping timeout: 250 seconds]
<eam> there's no difference between pressing the key and sending the characters individually
<eam> if your keyboard doesn't have arrow keys you can use the escape key
<agent_white> eam: Ahhh!
anaeem1_ has quit [Remote host closed the connection]
Wolland_ has joined #ruby
someothernick has quit [Quit: Page closed]
<agent_white> eam: Yeah right now I'm just reading "\e", eating the next char ("["), then reading that letter.
Wolland has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
<eam> that's ok assuming you're only dealing with arrow keys :)
<eam> there are other similar sequences
<agent_white> Yup! :D
<agent_white> Can I expand those... literals (sp?) into their sequences? -- Like \t, \e, \n ... etc?
<agent_white> Just to see what they are?
Mars__ has quit [Ping timeout: 272 seconds]
speaking1ode has joined #ruby
cina has joined #ruby
<agent_white> ...My lack of proper terminology kills my ability to search for what I want to figure out hahah.
Mars__ has joined #ruby
spectator has joined #ruby
skammer has joined #ruby
speakingcode has quit [Ping timeout: 272 seconds]
<eam> sure
SegFaultAX has quit [Excess Flood]
GriffinHeart has joined #ruby
SegFaultAX has joined #ruby
troyready has quit [Ping timeout: 260 seconds]
jbueza has joined #ruby
<Hanmac> shevy: currently checking my gemtree with rubocop ... man that is a shit ... because i fix one problem, and two more does appear >.<
Mars__ has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
sinkensabe has joined #ruby
axisys has quit [Ping timeout: 272 seconds]
skammer has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
axisys has joined #ruby
spectator has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
zakiazigazi has joined #ruby
hiyosi has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
p0sixpscl has joined #ruby
melik_ has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: This computer has gone to sleep]
StephenA1 has joined #ruby
relix has joined #ruby
AlexRussia_ has joined #ruby
StephenA1 has quit [Client Quit]
KnownSyntax_ has left #ruby [#ruby]
fabrice31 has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
<tmba> eam: Hi I put the code on gist.github
mofai has joined #ruby
ht__th has joined #ruby
mocfive has quit [Remote host closed the connection]
Waheedi has quit [Quit: Waheedi]
mocfive has joined #ruby
<Hanmac> i think i need to rewrite it to a class ... but i can already image what will happen like " Description: Avoid classes longer than 100 lines of code." ... i mean serously? good that it does not work for my c++ projects ... i mean some of my classes has nearly that much attributes ... and then i does not count the real code lines ...
hiyosi has quit [Ping timeout: 255 seconds]
spectator has joined #ruby
KnownSyntax has joined #ruby
wallerdev has quit [Quit: wallerdev]
Spami has joined #ruby
Juzdan has joined #ruby
Juzdan has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 272 seconds]
Juzdan has joined #ruby
spectator has quit [Read error: Connection reset by peer]
Juzdan has quit [Remote host closed the connection]
spectator has joined #ruby
tcrypt has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
tobago has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
chrishough has joined #ruby
endash has joined #ruby
teddyp1cker has quit [Read error: No route to host]
AlexRussia_ has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby
AlexRussia_ has joined #ruby
mskaesz has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
InhalingPixels has joined #ruby
endash has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
starkhalo has quit [Ping timeout: 260 seconds]
maniacal_ has joined #ruby
mikeg has quit [Ping timeout: 245 seconds]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
InhalingPixels has quit [Ping timeout: 272 seconds]
cheeti has quit [Ping timeout: 246 seconds]
kiki_lam1 is now known as kiki_lamb
Wolland has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
cina has quit [Quit: leaving]
p0sixpscl has quit [Quit: bye]
dopie has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0]
davasaurous has joined #ruby
mary5030 has quit [Remote host closed the connection]
zeroNones has joined #ruby
cirn0 has joined #ruby
mocfive has joined #ruby
Wolland_ has quit [Ping timeout: 258 seconds]
moritzschaefer has joined #ruby
Tomme has joined #ruby
codecop has joined #ruby
davasaurous has quit [Ping timeout: 260 seconds]
cirn0 has quit [Ping timeout: 250 seconds]
zorak8 has quit [Ping timeout: 246 seconds]
awestroke has joined #ruby
bal has joined #ruby
dapz has joined #ruby
synergyz has joined #ruby
aganov has joined #ruby
charliesome has joined #ruby
JoshGlzBrk has joined #ruby
davasaurous has joined #ruby
krisquigley has joined #ruby
Vile` has joined #ruby
yeboot has joined #ruby
kaspergrubbe has joined #ruby
<yeboot> hi, I'm trying to display simple graphics in ruby, someone recommended ruby-sdl but the API for that looks exactly the same as the C api, in terms of the number of calls
AlexRussia_ has quit []
JoshGlzBrk has quit [Client Quit]
IceDragon has quit [Quit: Space~~~]
<yeboot> just wondering what my options are, in your guys' opinion
sparrovv has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
maestrojed has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Wolland has quit [Remote host closed the connection]
HelperW has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
spectator has quit [Remote host closed the connection]
tectonic has quit []
timonv_ has joined #ruby
sectionme has joined #ruby
apeiros has joined #ruby
HelperW has quit [Remote host closed the connection]
HelperW has joined #ruby
adironduck has joined #ruby
skammer has joined #ruby
mtncode has quit [Ping timeout: 260 seconds]
spectator has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
<davasaurous> I haven't used it but Gosu for ruby might be worth a shot
skammer has joined #ruby
spectator has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
Wolland has joined #ruby
hiyosi has joined #ruby
davasaurous has quit [Remote host closed the connection]
yfeldblum has joined #ruby
pu22l3r has joined #ruby
skammer has quit [Ping timeout: 245 seconds]
spectator has joined #ruby
spectator has quit [Remote host closed the connection]
kaspergrubbe has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mollitz has joined #ruby
mityaz has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
moritzschaefer has quit [Ping timeout: 246 seconds]
spectator has joined #ruby
kaspergrubbe has joined #ruby
yottanami has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<yottanami> Is source_location usable for class name ?
hellangel7 has joined #ruby
<yottanami> to find out path of a class ?
spectator has quit [Remote host closed the connection]
<shevy> yottanami in my experience it kinda sucks
<shevy> I'd wish ruby would have better introspection
<shevy> Hanmac no wonder here, rubocop itself is shit
ramfjord has joined #ruby
grokdancer has joined #ruby
<yottanami> shevy: Should I use it on my Object or class name ?
Xiti has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
<shevy> >> class Foo; def foo; end; end; file, line = Foo.instance_method(:foo).source_location
<eval-in_____> shevy => ["/tmp/execpad-4e20929f8b05/source-4e20929f8b05", 2] (https://eval.in/193922)
<shevy> # => ["(irb)", 8]
<shevy> that's what I get in irb
<shevy> .instance_method gives me back an UnboundMethod object
<yottanami> shevy: But my class does not have any method yet
<shevy> yottanami so I assume that you have to invoke .source_location on an UnboundMethod
<shevy> hmm
Kricir has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
<apeiros> yottanami: a class does not have *one* path
InhalingPixels has joined #ruby
<apeiros> a class has as many paths as it was opened.
endash has joined #ruby
benlieb has quit [Quit: benlieb]
grokdancer has quit [Ping timeout: 272 seconds]
<shevy> yottanami look how sparse the official documentation is: http://www.ruby-doc.org/core-2.1.0/Method.html#method-i-source_location
<shevy> yottanami but the part "or nil if this method was not defined in Ruby (i.e. native)" kind of indicates that you must invoke it on a method
<shevy> the language Io had good introspection
niklasb has quit [Ping timeout: 246 seconds]
AxonetBE has joined #ruby
anarang has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
endash has quit [Ping timeout: 272 seconds]
<yottanami> shevy: Thanks
yottanami has left #ruby [#ruby]
noopq has joined #ruby
yfeldblum has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sparrovv has quit [Remote host closed the connection]
oivoodoo has joined #ruby
sparrovv has joined #ruby
tcrypt has joined #ruby
patrick99e99 has joined #ruby
fusilicode has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
threesixes has quit [Remote host closed the connection]
sigurding has joined #ruby
danijoo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
sparrovv has quit [Ping timeout: 260 seconds]
tcrypt has quit [Ping timeout: 246 seconds]
fusilicode has quit [Ping timeout: 246 seconds]
grenierm has quit [Quit: grenierm]
patrick99e99 has quit [Ping timeout: 246 seconds]
niklasb has joined #ruby
kyb3r_ has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
cougarten has joined #ruby
mengu has joined #ruby
Morkel has joined #ruby
ephemerian has joined #ruby
<DefV> /3
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
benlieb has joined #ruby
oivoodoo has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 250 seconds]
p0sixpscl has joined #ruby
alex88 has joined #ruby
oponder_ has quit [Remote host closed the connection]
benlieb has quit [Read error: Connection reset by peer]
cndiv has quit [Ping timeout: 255 seconds]
dingus_khan has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
andrewlio has joined #ruby
Lewix has joined #ruby
pu22l3r_ has joined #ruby
LiohAu has joined #ruby
relix has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Ping timeout: 272 seconds]
Fyyr13 has joined #ruby
siwica has joined #ruby
<siwica> What is a good database to store ruby objects in?
Pumukel has joined #ruby
<p0sixpscl> you can use any DB and store YAML dumps in a text field.
Fyyr13 has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<p0sixpscl> eg: user = User.first; user.data = YAML.dump({:age => 18, :preferred_locale => :de});
<p0sixpscl> to receive the object later: user = User.first; data = YAML.load(user.data); (check: http://ruby-doc.org/stdlib-2.0.0/libdoc/yaml/rdoc/YAML.html)
<p0sixpscl> Rails added support for hstore in PostgreSQL, you can store real ruby-hashes in Postgre
<Hanmac> ... real ruby hashs inside Postgre? i think there are some limitations, otherwise it might getting "funky" ;P
<siwica> I am using Grape to build an API and I need to access a common object between requests. As I want to focus on other parts of the app first I am looking to a database that basically accepts any ruby object and takes care of the serialization itself.
a_ has quit [Ping timeout: 250 seconds]
<siwica> I will optimize that whole process later on
enriclluelles has joined #ruby
<p0sixpscl> Hanmac: I just flew over the reddit post. I haven't used hstore myself. I also don't think they are real ruby objects :D.
chth0n has joined #ruby
dumdedum has joined #ruby
<p0sixpscl> Do you use Rails? You can use serialization which takes care of your ruby objects. http://api.rubyonrails.org/classes/ActiveModel/Serialization.html
arup_r_ has joined #ruby
<Hanmac> p0sixpscl: otherwise something like that might be fun in a database ;P
<Hanmac> >> o = {}: o[o]=o; o
<eval-in_____> Hanmac => /tmp/execpad-0d954eaaabd5/source-0d954eaaabd5:2: syntax error, unexpected ':', expecting keyword_end ... (https://eval.in/193988)
<Hanmac> >> o = {}; o[o]=o; o
<eval-in_____> Hanmac => {{...}=>{...}} (https://eval.in/193990)
<siwica> I am not using rails
<p0sixpscl> haha your right.
shredding has joined #ruby
<p0sixpscl> well if you're not using rails you should be able to create a wrapper which uses YAML.dump before saving to DB and YAML.load when reading from DB. depends on your code really.
arup_r_ has quit [Remote host closed the connection]
<Hanmac> siwica: for storing you could also use Marshal dump, or try to write your own format with using Array#pack
zakiazigazi has quit []
arup_r has quit [Ping timeout: 246 seconds]
Advocation has joined #ruby
hiyosi has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
jdj_dk_ has joined #ruby
siwica has quit [Quit: siwica]
jdj_dk_ has quit [Remote host closed the connection]
sparrovv has joined #ruby
sk87 has joined #ruby
siwica has joined #ruby
<siwica> Marshal dump
<siwica> Maybe I explain a little more what I have. There is one object that is pretty much a list of objects of type "Feature" for which I have written a XML serialization. Don't know if that helps...
<p0sixpscl> so you want to store the serialized objects (which after serialization is a basic XML string) to the database. right?
<siwica> p0sixpscl: yes
hiyosi has quit [Ping timeout: 246 seconds]
cajone has joined #ruby
<siwica> p0sixpscl: Actually I dont know if there is a better way, as I would have to parse all the XML again at each request
<p0sixpscl> mh you can use: https://github.com/ohler55/ox to dump objects to XML and parse objects from XML. just store the XML in your DB and load it using Ox.parse_obj(xml).
<siwica> That seems like a lot of wasted time?!
<p0sixpscl> it is.
sparrovv has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
<p0sixpscl> you can load the XML at runtime and keep the data in memory and save it whenever a change happens. Maybe use a different approach instead of XML.
oponder has joined #ruby
* Hanmac currently thinks about a Time#waste function ;P
sparrovv has joined #ruby
<siwica> p0sixpscl: that's what I thought, but the use of global variables seems to be discouraged with Grape
<p0sixpscl> I used to put a lot of sleep-calls in my code so people think: wow this tool does heavy calculations.. lul
<siwica> I don't know what the canonical way of doing this is
<siwica> Since I am pretty new to this
sparrovv has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
grokdancer has joined #ruby
sinkensabe has joined #ruby
<p0sixpscl> I'd create a database with fields matching the attributes of your ruby objects and read the database whenever a request comes in. databases are much faster than rubys serialization.
Xeago has joined #ruby
<siwica> So what database would you recommend with a Rack Application?
mskaesz has quit [Read error: Connection reset by peer]
roolo has joined #ruby
saarinen has quit [Quit: saarinen]
<p0sixpscl> you can use any database. Maybe start with SQLite and move to a different DB as soon as sqlite doesn't suit your need anymore.
<siwica> ok
mikecmpbll has joined #ruby
<siwica> Maybe this is a good idea
InhalingPixels has joined #ruby
cajone has quit [Remote host closed the connection]
endash has joined #ruby
ta has joined #ruby
cajone has joined #ruby
kalusn has joined #ruby
grokdancer has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has joined #ruby
ptrrr has joined #ruby
charliesome has quit [Quit: zzz]
<siwica> p0sixpscl: what do you think of mongoDB as I have read this as a recommendation somewhere else?!
cndiv has joined #ruby
InhalingPixels has quit [Ping timeout: 250 seconds]
mkaesz has joined #ruby
Juanchito has joined #ruby
<p0sixpscl> if your building an API i'd not choose mongoDB because it's not comparable with sql databases like MySQL or SQLite (in terms of speed).
sinkensabe has quit [Remote host closed the connection]
carraroj has joined #ruby
endash has quit [Ping timeout: 272 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
Takle has quit [Remote host closed the connection]
zaki has joined #ruby
zaki has quit [Client Quit]
amystephen has joined #ruby
dumdedum has quit [Ping timeout: 260 seconds]
qualiabyte has quit [Quit: Leaving]
krisquigley has joined #ruby
dingus_khan has quit []
Takle has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
zakiazigazi has joined #ruby
jds__ is now known as jds
zakiazigazi has quit [Client Quit]
ndrei has joined #ruby
maniacal_ has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
<_lazarevsky_> hey guys
<_lazarevsky_> a bit off topic
<Hanmac> hm if a channel is named #offtopic or similar, wouldnt be talking offtopic be topic again?
Advocation has quit [Quit: Advocation]
W0rmDr1nk has quit [Ping timeout: 258 seconds]
<tobiasvl> /r/showerthoughts
<mozzarella> no
<ddv> i like mozzarella pizza
<mozzarella> because offtopic channels are not about offtopicness
Advocation has joined #ruby
dumdedum has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
cndiv has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
Waheedi has joined #ruby
<Hanmac> ddv because you always did say how shitty my code at gemtree was i did try to check them with rubocop ... the bad thing is that some stuff is not so easy fixable ... because sometimes if i fix one thing two new things will appear ... and that it does already makes problems when a function does have more than 5 parameters is a bit stupid ...
elaptics`away is now known as elaptics
rdark has joined #ruby
PanPan has joined #ruby
aspiers has joined #ruby
sinkensabe has joined #ruby
marr has joined #ruby
<hmsimha> Trying to figure out what's going on here. Any command-line tool that was installed through 'gem install' outputs "fatal: Not a git repository (or any of the parent directories): .git" twice before running
<hmsimha> (and otherwise works fine)
<hmsimha> so far I've tried with 'rails', 'rake', 'sass', and 'rubocop'
<ddv> Hanmac: you can do a lot to improve your code (always), for example try to model out a couple of classes to group similar behaviour, give a methods a clearly defined task so a method has only one responseability. You could try watching some Uncle Bob videocasts or reading some books (for example classics such as code complete etc)
<hmsimha> all seem to work, but output that error twice beforehand
poulet_a has joined #ruby
shevy has joined #ruby
<ddv> Hanmac: it's not always avoidable but 98% of the time when a method is longer than 10-15 lines you're a doing something wrong
Hobogrammer has quit [Ping timeout: 255 seconds]
AlSquire has joined #ruby
Jake232 has joined #ruby
r0bby_ is now known as robbyoconnor
a has joined #ruby
a is now known as Guest53152
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
hiyosi has joined #ruby
terlar has joined #ruby
ashemark has joined #ruby
<ashemark> Hi everyone
bruno- has joined #ruby
bruno-_ has joined #ruby
pushnell has quit [Quit: pushnell]
jimms has joined #ruby
oivoodoo has joined #ruby
ramfjord has joined #ruby
agent_white has quit [Quit: goodnight]
carraroj has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
<ashemark> I'm a java programmer venturing into web development
<havenwood> ashemark: welcome
<ashemark> what would be the best place to learn ruby/ror
qba73 has joined #ruby
jimms has quit [Client Quit]
<havenwood> ashemark: Some good resources here: https://www.ruby-lang.org/en/documentation/
<havenwood> ashemark: JRuby is a fantastic Ruby implementation too, channel is #jruby.
hiyosi has quit [Ping timeout: 272 seconds]
<ashemark> havenwood: thanks
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
WormDrink has quit [Ping timeout: 272 seconds]
_lazarevsky_ has quit [Quit: Page closed]
_lazarevsky has quit [Quit: Page closed]
ashemark has left #ruby [#ruby]
timonv_ has joined #ruby
W0rmDr1nk has joined #ruby
ashemark has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
<ashemark> havenwood: can I also use ruby to automate system tasks?
<apeiros> yes
grokdancer has joined #ruby
<ashemark> that's great
<havenwood> indeed ;)
<ashemark> ruby rocks!!
<ashemark> feels like i've found a new best friend
Spami has quit [Quit: This computer has gone to sleep]
Xeago has quit [Read error: Connection reset by peer]
ashemark has left #ruby [#ruby]
zakiazigazi has joined #ruby
<zenspider> well that was quick
Xeago has joined #ruby
wpp has joined #ruby
DaniG2k has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
minver has joined #ruby
zakiazigazi has quit [Client Quit]
<minver> I try using the Regexp field with datamapper but my validation fails with ":my_field must be a string", any ideas? http://pastie.org/private/s5khvmndilswejandh0m6w
zakiazigazi has joined #ruby
AlSquire has quit [Ping timeout: 255 seconds]
InhalingPixels has joined #ruby
grokdancer has quit [Ping timeout: 245 seconds]
koderok has joined #ruby
endash has joined #ruby
Takle has quit [Remote host closed the connection]
banister has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
havenwood has quit []
endash has quit [Ping timeout: 272 seconds]
endash has joined #ruby
endash_ has joined #ruby
arup_r has joined #ruby
willgo has joined #ruby
AlSquire has joined #ruby
patrick99e99 has joined #ruby
arup_r has quit [Client Quit]
tvw has joined #ruby
arup_r has joined #ruby
mg^ has quit [Ping timeout: 272 seconds]
endash has quit [Ping timeout: 260 seconds]
endash_ is now known as endash
cirn0 has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
sevenseacat has quit [Remote host closed the connection]
mg^ has joined #ruby
MasterPiece has joined #ruby
abdulsattar has joined #ruby
MasterPiece has quit [Changing host]
MasterPiece has joined #ruby
adironduck has quit [Quit: adironduck]
cirn0 has quit [Ping timeout: 245 seconds]
amystephen has quit [Quit: amystephen]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<abdulsattar> Hi, when I add a gem called 'somegem', rails adds require 'somegem', right?
emmesswhy has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
<abdulsattar> But I have a gem called 'somegem-api', I want rails to add require 'somegem', can I do that?
einarj has joined #ruby
andrewlio has quit [Remote host closed the connection]
charliesome has joined #ruby
andrewlio has joined #ruby
bMalum has joined #ruby
pranny has joined #ruby
michele3 has joined #ruby
pwestlund has quit [Ping timeout: 250 seconds]
<michele3> hi
michele3 has left #ruby ["WeeChat 1.0"]
<Wolland> abdulsattar: you can do that
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<abdulsattar> Wolland: how?
mengu has quit [Ping timeout: 272 seconds]
<Wolland> I think like this:
<abdulsattar> aah require: 'somegem'
<Wolland> config.gem 'net-ssh', :lib => "net/ssh"
relix has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<abdulsattar> can I expose somegem-api in such a way, that rails automatically does a require somegem?
Xeago has quit [Remote host closed the connection]
<Wolland> that's what config.gem does
Takle_ has joined #ruby
bolsth has joined #ruby
ndrei has joined #ruby
krisquigley has quit [Remote host closed the connection]
doritostains has quit [Quit: doritostains]
<Wolland> although I think it has been deprecated and now you can just add it to your gemfile
grzywacz has joined #ruby
bolsth has left #ruby [#ruby]
<abdulsattar> Wolland: ya, the require :'somegem' shoudl take care of that
<abdulsattar> but I don't want to add require 'somegem' in the Gemfile
<abdulsattar> instead I want Rails to load require 'somegem' even though the gem is named 'somegem-api'
<abdulsattar> Let me be clear with you
<abdulsattar> I have a gem called 'freshdesk'
<abdulsattar> It was working properly
stef_204 has joined #ruby
<Wolland> there is still a lib: parameter you can use to rename it
<Wolland> gem "blah-api", lib: "blah"
<abdulsattar> can't I expose it as required_files in the gemspec itself?
lkba has quit [Ping timeout: 255 seconds]
<abdulsattar> Gem::Specification {|spec| spec.name = 'somgem-api'; spec.require_paths = 'somegem'} or something like this
<abdulsattar> so that gem 'somegem-api' in any gemfile automatically does require 'somegem'?
<abdulsattar> somegem-api is mine btw
<Wolland> i see
lolmaus__ has joined #ruby
<abdulsattar> It was working fine with 'somegem' as the name, but it was already taken in rubygems.org, so I renamed it to somegem-api
<abdulsattar> and it broke :(
lolmaus_ has quit [Ping timeout: 272 seconds]
<Wolland> is it in development? are there people using it?
<abdulsattar> still in development
<abdulsattar> github.com/abdulsattar/freshdesk
Takle_ has quit [Remote host closed the connection]
<Wolland> have you tried renaming all freshdesk/ to freshdesk-api
<abdulsattar> let me see
<Wolland> I guess that would change a lot of things and you just want to change its name
Insanity133 has joined #ruby
MasterPiece has quit [Quit: Leaving]
MasterPiece_ has joined #ruby
MasterPiece_ has quit [Remote host closed the connection]
<abdulsattar> this is the error message
MasterPiece has joined #ruby
<abdulsattar> I'm using local path: '/my source' in gemfile
Insanity133 has quit [Remote host closed the connection]
<abdulsattar> I renamed it to freshdesk-api
Wolland_ has joined #ruby
thomasxie has joined #ruby
fabrice31 has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
<abdulsattar> This is weird, it shouldn't have happened
<abdulsattar> oh, sorry
<abdulsattar> i get it
<abdulsattar> git ls-files checks for files that are already committed
hiyosi has joined #ruby
Insanity133 has joined #ruby
davasaurous has joined #ruby
francisfish has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<Wolland_> sorry got dced
tokik has quit [Ping timeout: 260 seconds]
<abdulsattar> Wolland_: it's working fine now!
<abdulsattar> Thanks so much!
<Wolland_> what did you end up doing?
davasaurous has quit [Client Quit]
<abdulsattar> just renamed the entire thing to freshdesk-api
Kricir has quit [Remote host closed the connection]
<abdulsattar> the gemspec, the folder, the file etc
<abdulsattar> committed it and it works now
<Wolland_> your namespace changed I guess?
<abdulsattar> no
<abdulsattar> It's still Freshdesk
<Wolland_> oh really, cool
Kricir has joined #ruby
ndrei has joined #ruby
<abdulsattar> That shouldn't be a problem, right?
<Wolland_> I don't think so?
AlSquirrel has joined #ruby
<abdulsattar> ya, I guess it won't be
<abdulsattar> thanks again!
<abdulsattar> But I don't like the name now, freshdesk-api
Insanity133 has quit [Remote host closed the connection]
francisfish has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
<abdulsattar> thinking I'll change it to rottendesk or something ;)
Voila has joined #ruby
Voila is now known as HelloGoodBye
shock_one has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
HelloGoodBye has quit [Client Quit]
<raldu> what are the best code exploration plugins for ruby besides ctags?
Insanity133 has joined #ruby
<Wolland_> hehe
grokdancer has joined #ruby
<Wolland_> abdulsattar: or freshchair
<abdulsattar> lol that's a nice one
francisfish has quit [Remote host closed the connection]
<Wolland_> freshlampi
nettoweb has joined #ruby
thomasxie has left #ruby [#ruby]
nettoweb has quit [Max SendQ exceeded]
karupa is now known as zz_karupa
nfk has joined #ruby
mocchi has quit [Ping timeout: 250 seconds]
agjacome has joined #ruby
mocchi has joined #ruby
nettoweb has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
duncannz has quit [Ping timeout: 272 seconds]
InhalingPixels has joined #ruby
grokdancer has quit [Ping timeout: 255 seconds]
<shevy> is it possible to create a chroot environment from within a ruby program?
doritostains has joined #ruby
poulet_a has quit [Quit: Quitte]
* wasamasa stares at shevy
ndrei has quit [Ping timeout: 260 seconds]
ddv is now known as aech
ndrei has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
Insanity133 has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
fabrice31 has joined #ruby
aech is now known as parzival
parzival is now known as aech
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> wasamasa well there must be! Process.daemon I think was it that also makes a chdir to '/' before unattaching the child process
Takle has joined #ruby
<wasamasa> just use cgroups
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
tokik has joined #ruby
Insanity133 has joined #ruby
ndrei has joined #ruby
adironduck has joined #ruby
<shevy> cgroups?
qba73 has quit [Remote host closed the connection]
sectionme has quit [Read error: Connection reset by peer]
catphish has joined #ruby
qba73 has joined #ruby
timonv_ has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
sectionme has joined #ruby
<catphish> i feel kinda helpless when it comes to memory leaking in ruby apps
fabrice31 has quit [Remote host closed the connection]
<shevy> catphish yeah it happens
maasha has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<wasamasa> shevy: a rather new linux feature to restrain processes
wpp has quit [Quit: ZZZzzz…]
<wasamasa> shevy: systemd uses it excessively
<wasamasa> shevy: alternatively, just use lxc containers
BlkDynmt has joined #ruby
<maasha> Is there a way from within a method to determine if it was called from one or some other place in ones code?
<tobiasvl> Kernel#caller
<maasha> Right, ty
MasterPiece_ has joined #ruby
xcv has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]
fabrice31 has joined #ruby
enriclluelles has quit [Remote host closed the connection]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
MasterPiece has quit [Quit: Leaving]
eivindml has joined #ruby
MasterPiece_ is now known as MasterPiece
end_guy has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
end_guy has joined #ruby
kaspertidemann has joined #ruby
elstif has joined #ruby
qba73 has joined #ruby
francisfish has joined #ruby
Insanity133 has quit [Ping timeout: 258 seconds]
sigurding has quit [Quit: sigurding]
KC9YDN has joined #ruby
niklas123 has joined #ruby
agjacome has quit [Ping timeout: 258 seconds]
alex88 has quit [Remote host closed the connection]
agjacome has joined #ruby
Tomasso has joined #ruby
yfeldblum has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
alex88 has joined #ruby
helpa has quit [Remote host closed the connection]
SpaceKookie has quit [Ping timeout: 260 seconds]
phrozen77 has quit [Ping timeout: 260 seconds]
kith has quit [Read error: Connection reset by peer]
W0rmDr1nk has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
easier has quit [Ping timeout: 255 seconds]
Insanity133 has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 258 seconds]
kith_ has joined #ruby
nemish has quit [Ping timeout: 250 seconds]
<Tomasso> i cant pass a regular expression as a parameter in a 'string'.gsub!(/s/) { |match| puts match } I tried using a to_regexp gem to convert the string variable to a regex , I tried using .gsub!(/#{ var.to_s}/) , i try setting a regex a = /myregex/ and the .gsub!(a) and none of them work, why is that ? this is frustrating..
agjacome has quit [Ping timeout: 272 seconds]
helpa has joined #ruby
SpaceKoo- has joined #ruby
<Tomasso> the only that works is to pass the regex inline /regex/ ,i cant pass it as a variable..
phrozen77 has joined #ruby
<canton7> >> r = 'l+'; "hello".gsub(/#{r}/, 'r')
<eval-in_____> canton7 => "hero" (https://eval.in/194152)
pranny has quit [Quit: Leaving.]
<canton7> >> r = 'l+'; "hello".gsub(Regexp.new(r), 'r')
<eval-in_____> canton7 => "hero" (https://eval.in/194154)
jottr_ has joined #ruby
Kilo`byte has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
emocakes__ is now known as emocakes
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<yeboot> >> puts("hello world")
<eval-in_____> yeboot => hello world ... (https://eval.in/194155)
hiyosi has joined #ruby
Kilo`byte has joined #ruby
cryptoca has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
francisfish has quit [Remote host closed the connection]
fabrice31 has joined #ruby
nemish has joined #ruby
Guest53152 has quit [Ping timeout: 250 seconds]
hiyosi has quit [Ping timeout: 255 seconds]
a has joined #ruby
enriclluelles has joined #ruby
sk87 has joined #ruby
W0rmDr1nk has joined #ruby
a is now known as Guest58422
LiohAu has quit [Quit: LiohAu]
agjacome has quit [Ping timeout: 246 seconds]
grokdancer has joined #ruby
cryptoca has joined #ruby
Advocation has quit [Quit: Advocation]
lxsameer has quit [Quit: Leaving]
Advocation has joined #ruby
InhalingPixels has joined #ruby
grokdancer has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
qqw has joined #ruby
drawingthesun has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
InhalingPixels has quit [Ping timeout: 260 seconds]
techsethi has joined #ruby
francisfish has joined #ruby
francisfish has quit [Remote host closed the connection]
<Macaveli> how do you remove hash options[:style] from options?
patrick99e99 has joined #ruby
Takle has quit [Remote host closed the connection]
mattp_ has quit [Read error: Connection reset by peer]
<maasha> delete
neersighted has quit [Quit: Updating details, brb]
LiohAu has joined #ruby
claw_ has quit [Read error: Connection reset by peer]
<maasha> Hash#delete
qohelet_ has joined #ruby
claw_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
neersighted has joined #ruby
toretore has joined #ruby
Advocation has quit [Quit: Advocation]
BRMatt has joined #ruby
mattp_ has joined #ruby
Takle has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
KC9YDN has quit [Ping timeout: 258 seconds]
awestroke has quit [Remote host closed the connection]
qohelet_ has quit [Client Quit]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
cirn0 has joined #ruby
arup_r has quit [Remote host closed the connection]
phutchins has joined #ruby
mattp_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
dmitrykorotkov has joined #ruby
dmitrykorotkov has quit [Remote host closed the connection]
cirn0 has quit [Ping timeout: 260 seconds]
zorak8 has joined #ruby
Takle has quit [Remote host closed the connection]
hiyosi has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
Dwarf has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
j4jackj has quit [Ping timeout: 272 seconds]
tmba has quit [Quit: Lost terminal]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Aaaal has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
Takle has joined #ruby
shock_one has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
heftig has joined #ruby
Xeago has joined #ruby
j4jackj has joined #ruby
j4jackj is now known as Guest57787
Xeago has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
Xeago has joined #ruby
kaspergrubbe has joined #ruby
browndawg has joined #ruby
Lewix has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
mityaz has quit [Quit: Leaving]
larissa has joined #ruby
Advocation has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
phoo1234567 has joined #ruby
Dwarf has joined #ruby
emocakes__ has joined #ruby
britneywright has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Xeago_ has joined #ruby
rimenes has joined #ruby
fsapo has joined #ruby
emocakes has quit [Ping timeout: 255 seconds]
emocakes__ is now known as emocakes
Xeago has quit [Read error: Connection reset by peer]
Wolland_ has quit [Remote host closed the connection]
mattp_ has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
cougarten has joined #ruby
PierreRambaud has joined #ruby
vesuvious has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PierreRambaud> Hi, I just write function with a begin / rescue block, but rubocop always say "Redundant begin block detected.", What can I do to fix this error? I need my begin / rescue :/
poulet_a has joined #ruby
<toretore> PierreRambaud: code code code show us your code code code
timonv_ has quit [Ping timeout: 258 seconds]
<toretore> and stop using stupid crap like rubocop
Guest58422 has quit [Ping timeout: 250 seconds]
<PierreRambaud> toretore, not sure rubocop is a stupid crap... and my problem is a checkstyle problem, not a syntax or anything else
<toretore> i don't see any code
<toretore> show me the code
<wasamasa> show me your moves
<shevy> show me your ass
<wasamasa> that escalated quickly
<PierreRambaud> wasamasa, can I only show my ass instead useless move? :)
<shevy> well if he does not show the code
<shevy> he has to show something else
<shevy> PierreRambaud come on man, pastie.org or anywhere else!
<shevy> shape up, gist up!
easier has joined #ruby
<wasamasa> PierreRambaud: nope
<wasamasa> PierreRambaud: shevy is the man for that
<PierreRambaud> wasamasa, dat sucks :/
<toretore> fucking pastebin
<toretore> your code is fine PierreRambaud
* wasamasa debates whether to write a bot that kicks people using pastebin.com
<toretore> but you can remove the begin and end lines
<shevy> well there are not many options to write that code differently
spastorino has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<PierreRambaud> toretore, that's why I said twice, this is a checkstyle problem :)
Insanity133 has quit [Remote host closed the connection]
<PierreRambaud> toretore, OH, dunno this way :O
<shevy> You want to intercept on rescue Errno::ESRCH
<wasamasa> I'm afraid it's less effective than having that bot educate them
<toretore> it's a problem regargind code, thus we deen to see the code
<toretore> PierreRambaud: a method definition is an implicit begin...end
Xeago has joined #ruby
<PierreRambaud> toretore, ruby impressed me everyday :o
<PierreRambaud> toretore, thanks
<wasamasa> another special case more
<wasamasa> whoop whoop
mengu has quit [Remote host closed the connection]
<toretore> PierreRambaud: http://pastebin.com/0nk0cRJF
claymore has joined #ruby
<PierreRambaud> awesome language :O
yeboot has quit [Ping timeout: 250 seconds]
<toretore> it doesn't know how to spell else if
timonv_ has joined #ruby
grokdancer has joined #ruby
<shevy> I hate that style of rescuing
<shevy> it would be on the same level of indent as def and end
mengu has joined #ruby
shock_one has joined #ruby
Macaveli has joined #ruby
yalue has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kalusn has quit [Remote host closed the connection]
grokdancer has quit [Ping timeout: 250 seconds]
Sgeo has quit [Read error: Connection reset by peer]
lyanchih_ has joined #ruby
InhalingPixels has joined #ruby
postmodern has quit [Quit: Leaving]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
sectionme has quit [Read error: Connection reset by peer]
claymore has quit [Ping timeout: 272 seconds]
zettam has joined #ruby
sectionme has joined #ruby
shredding has quit [Quit: shredding]
aric_ has joined #ruby
Advocation has quit [Quit: Advocation]
InhalingPixels has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
claymore has joined #ruby
pranny has joined #ruby
<aric_> I want to build a mobile app with rails and ionic framework, Can anybody recommend a tutorial or sample codes to help me ?
pranny has quit [Client Quit]
kalleth has quit [Ping timeout: 260 seconds]
kamilc__ has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
kalleth has joined #ruby
Advocation has joined #ruby
roolo has quit [Quit: Leaving...]
siwica has quit [Ping timeout: 250 seconds]
shock_one has quit [Quit: Computer has gone to sleep.]
GriffinHeart has quit [Remote host closed the connection]
tkuchiki has joined #ruby
shock_one has joined #ruby
britneywright has joined #ruby
britneywright has quit [Read error: Connection reset by peer]
himsin has joined #ruby
britneywright has joined #ruby
paulfm has joined #ruby
kalusn has joined #ruby
Tomme has joined #ruby
easier has quit [Ping timeout: 272 seconds]
hellangel7 has quit [Remote host closed the connection]
Takle has joined #ruby
Guest57787 is now known as j4jackj
j4jackj is now known as Guest95597
<shevy> aric_ rails folks are on #rubyonrails, I am sure they know how to build mobile apps too
doritostains has quit [Quit: doritostains]
wpp has joined #ruby
Ulrar has joined #ruby
fold has joined #ruby
<Ulrar> Hi, is there a simple way to wrap text at dash ? found lots of solution to wrap at word boundary but not dash
Takle has quit [Remote host closed the connection]
aric_ has quit [Ping timeout: 246 seconds]
roolo has joined #ruby
skammer has joined #ruby
<Hanmac> Ulrar: hm for the beginning look at
<Hanmac> >> "abc-def".split(/-/)
<eval-in_____> Hanmac => ["abc", "def"] (https://eval.in/194174)
manzo has joined #ruby
<Hanmac> and
<Hanmac> >> "abc-def".split(/(-)/)
<eval-in_____> Hanmac => ["abc", "-", "def"] (https://eval.in/194175)
yfeldblum has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
rubie has quit [Quit: Page closed]
kalusn has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
kalusn has joined #ruby
matchaw has quit [Ping timeout: 255 seconds]
lyanchih_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
<maasha> a tight loop with block call is painfully slow?
lkba has joined #ruby
dserodio_ has joined #ruby
<toretore> maasha: untighten it
<ptrrr> a loose loop :s
jottr_ has quit [Ping timeout: 246 seconds]
minver has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
francisfish has joined #ruby
lpaste_ has quit [Ping timeout: 260 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
{xenomorph} has joined #ruby
jottr_ has joined #ruby
kobain has quit [Max SendQ exceeded]
Janno-_ has quit [Quit: leaving]
kaspertidemann has quit []
kobain has joined #ruby
ptrrr has quit [Quit: ptrrr]
zly has quit [Ping timeout: 260 seconds]
az has quit [Ping timeout: 260 seconds]
fold has quit [Ping timeout: 246 seconds]
koderok has left #ruby [#ruby]
lele has quit [Ping timeout: 260 seconds]
sk87 has joined #ruby
pu22l3r_ has quit [Ping timeout: 272 seconds]
zly has joined #ruby
zz_LoRdToLsToI has quit [Ping timeout: 260 seconds]
lele has joined #ruby
az has joined #ruby
InhalingPixels has joined #ruby
HelperW_ has joined #ruby
bmurt has joined #ruby
lpaste has joined #ruby
cougarten has quit [Ping timeout: 245 seconds]
evrei_ has quit [Ping timeout: 250 seconds]
HelperW has quit [Ping timeout: 260 seconds]
BTRE has quit [Read error: Connection reset by peer]
willgo has quit [Remote host closed the connection]
<shevy> a lazy loop
LiohAu has quit [Quit: LiohAu]
shredding has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
banister has joined #ruby
LiohAu has joined #ruby
muhammadn has joined #ruby
toreto2 has quit [Ping timeout: 246 seconds]
anaeem1_ has quit [Remote host closed the connection]
<muhammadn> i would like to do a lexicographical sort using ruby
mleone has joined #ruby
Takle has joined #ruby
a has joined #ruby
mleone has quit [Max SendQ exceeded]
<muhammadn> which i tried doing with this:
a is now known as Guest18590
zz_LoRdToLsToI has joined #ruby
hellangel7 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
francisfish has quit [Remote host closed the connection]
hellangel7 has joined #ruby
grokdancer has joined #ruby
weems|mac has joined #ruby
weems|mac has joined #ruby
kith_ is now known as kith
phutchins has quit [Remote host closed the connection]
<arup_r> Since morning I have lost myself between nil(Ruby) and NULL(from DB) :-(
phutchins has joined #ruby
<shevy> Hanmac, do you know if custom .h files in C can become standard h files? so that I don't have to define an absolute path to my own .h files?
drawingthesun has joined #ruby
<shevy> arup_r I guess a NULL gives you more information
<arup_r> shevy: Humm.. You are smart but how ? Elaborate
<Hanmac> shevy: hm i dont know about that ... depending where the headers are in relation to the cpp files
<muhammadn> arup_r: nil is a ruby means empty.. nothing... while NULL in DB means empty. though in ruby @foo.method = nil in db will be NULL.
<shevy> arup_r well the NULL resides in some field or? but in ruby the nil could be anywhere, usually just a variable
Xeago has quit [Remote host closed the connection]
<shevy> var = nil
grokdancer has quit [Ping timeout: 245 seconds]
<arup_r> Yes.. for nil I will one day say it Bye!(but it is hard) .. All time I need to be more focus on nil.. Huhh
Advocation has quit [Quit: Advocation]
<shevy> Hanmac hmm you mean relative paths? the thing is, every now and then I change where I store my stuff
livingstn has joined #ruby
<arup_r> muhammadn: In Ruby there is nothing as "nothing" .. Nil is an powerfrul Ruby object..
<shevy> and then absolute paths don't work. relative paths might also not work. I kinda want a temporary stdlocation for my own .h files
<shevy> arup_r why is nil powerful?
<arup_r> nil is evil.. :p
hellangel7 has quit [Max SendQ exceeded]
<shevy> I mean you can add methods to it, sure
<Hanmac> shevy he means that even nil is nothing its still an object
<muhammadn> arup_r: i use nil to change my db values to NULL ?...
<shevy> but you can also add methods to false
hellangel7 has joined #ruby
<shevy> >> def false.foo; puts 'foo'; end; false.foo()
<eval-in_____> shevy => foo ... (https://eval.in/194191)
<muhammadn> i think arup_r is thinking about the evilness when the nil error spits out
<arup_r> Exactly... right
<shevy> well you can use nil.nil? arup_r
<shevy> >> nil.nil?
<eval-in_____> shevy => true (https://eval.in/194192)
<shevy> >> false.nil?
<eval-in_____> shevy => false (https://eval.in/194193)
techsethi has quit [Quit: techsethi]
<shevy> mapping a full language into a database model is kinda weird
<arup_r> true
<arup_r> right..right
techsethi has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
larissa has quit [Quit: Leaving]
bjornar has quit [Ping timeout: 272 seconds]
tanath has quit [Remote host closed the connection]
tanath has joined #ruby
amystephen has joined #ruby
dblessing has joined #ruby
tlarevo_ has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
techsethi has quit [Ping timeout: 246 seconds]
bjornar has joined #ruby
timgauthier has joined #ruby
DaniG2k has quit [Ping timeout: 272 seconds]
matty1234 has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
redlegion has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
xcv has quit [Remote host closed the connection]
sailias has joined #ruby
sk87 has quit [Ping timeout: 255 seconds]
jespada has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
jeremy04 has joined #ruby
koderok has joined #ruby
Guest95597 is now known as j4jackj
j4jackj is now known as Guest61389
oleo has joined #ruby
tanath has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
arup_r has quit []
jerius has quit []
wwalker_ has joined #ruby
yxhuvud has quit [Remote host closed the connection]
Hanmac has joined #ruby
flowerhack has joined #ruby
HelperW_ has quit [Remote host closed the connection]
silkfox has joined #ruby
Guest__ has joined #ruby
redlegion has quit [Quit: I quit.]
HelperW_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tanath has joined #ruby
orolo has joined #ruby
<Tomasso> how do i obligate a 13 characters string to have digits from 0-9 appart from a-z characters ?
chth0n has quit [Ping timeout: 260 seconds]
<Tomasso> my current expression is ( [[0-9][a-z]]{13}\s)
yfeldblum has quit [Ping timeout: 240 seconds]
<Tomasso> excuseme /( [[0-9][a-z]]{13}\s)/
<Tomasso> but it matches also xxxxxxxxxxxxx and i need it matches a string with a digit in any position
<Tomasso> at least one digit in any position i meant
sleepee has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
<maasha> Tomasso: playing with rubylar?
<maasha> rubular even
<Hanmac> Tomasso: i dont think its possible what you want with one regexp
hmsimha has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Tomasso> maasha: yesss
sigurding has quit [Quit: sigurding]
p0sixpscl has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
sepp2k has joined #ruby
Advocation has joined #ruby
Cheezebox has joined #ruby
<apeiros> Tomasso: you can't nest character classes
kiagyc has joined #ruby
zeroNones has joined #ruby
<apeiros> I'm surprised it doesn't raise because of ]]
<Tomasso> apeiros: you mean the double optional ?
<Tomasso> it works xD
<apeiros> I mean the [[char-class][char-class]]
<apeiros> it definitively does not work the way you think it does :)
<maasha> methinks you normally write the range as [0-9a-z]{13} ?
ta has quit [Remote host closed the connection]
<maasha> or is that just Perl
<apeiros> maasha: no, same for ruby
abdulsattar has quit [Ping timeout: 272 seconds]
<Tomasso> but have no idea how to validate a 13 length string has at least one digit
webguynow has joined #ruby
<maasha> Tomasso: you should look into forward looking assertion
<Hanmac> Tomasso & maasha [0-9a-z] => \w
<maasha> or forward lookahead
<eam> >> "foo]bar" =~ /(foo[]]bar)/; $1
<eval-in_____> eam => /tmp/execpad-438eee70d364/source-438eee70d364:2: warning: character class has ']' without escape: /(foo[]]bar)/ ... (https://eval.in/194206)
<apeiros> Hanmac: \w also includes _
<apeiros> and A-Z
<Hanmac> apeiros: oh yeah :/
<apeiros> hm… now I wonder whether oniguruma indeed folds nested char classes…
<maasha> however, in my mind you should stay away from lookahead and lookbehind since they are utterly confusing - better use two regexes :o)
<eam> apeiros: I believe it's flat
<eam> but the nesting has no effect
<mikecmpbll> as you can see it sets the attributes for each new subclass too
<mikecmpbll> is there a way i can set accessors for the subclass only?
heath has quit [Remote host closed the connection]
<mikecmpbll> not sure if that makes any sense tbh.
heath has joined #ruby
<Tomasso> Hanmac: i tried smth like that, it will accept strings with digits and lower case, but will also accept 13 length strings without one or more digits
<apeiros> eam: it looks like it accepts it and interprets the [] not as part of the "outer" char class
<apeiros> unexpected
jottr_ has quit [Quit: WeeChat 1.0]
<Hanmac> apeiros: did you read yesterday what i did say about Regexp named chapture group in combine with /..|../ regexp? ;P
<eam> apeiros: ah you're right
Insanity133 has joined #ruby
RandyT has joined #ruby
<apeiros> Tomasso: ok, I stand corrected. you can nest char classes. however, [[0-9][a-z]] is identical to [0-9a-z]
<mikecmpbll> nvm i'm an idiot.
<apeiros> which in turn is identical to [\da-z]
chth0n has joined #ruby
jerius has joined #ruby
<apeiros> Tomasso: /\A(?=.{0,12}\d)[a-z\d]{13}\z/
<Tomasso> exactly, mmm let me check that
<maasha> apeiros: confusing :o)
<apeiros> maasha: hm?
<maasha> apeiros: lookaraounds are confusing. do you need the second \d ?
<apeiros> check whether a digit is present with `(?=.{0,12}\d)`, check format
<apeiros> maasha: sure. otherwise it would not match.
<maasha> right
yxhuvud has joined #ruby
ursooperduper has joined #ruby
<apeiros> rather, it'd even never match.
Takle has quit [Remote host closed the connection]
Insanity133 has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
Ankhers has joined #ruby
failshell has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Xeago has joined #ruby
Cheezebox has joined #ruby
sylvanica has joined #ruby
sylvanica is now known as slester
DaniG2k has joined #ruby
mattp_ has quit [Read error: Connection reset by peer]
Guest__ has quit [Quit: Textual IRC Client: www.textualapp.com]
wpp has quit [Quit: ZZZzzz…]
cmxu has joined #ruby
cocotton has joined #ruby
niklas123 has quit [Quit: Leaving]
qmfnp has joined #ruby
Kricir has joined #ruby
Cheezebox has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
zeroNones has quit [Ping timeout: 246 seconds]
olekenneth has quit [Ping timeout: 240 seconds]
cougarten has joined #ruby
sectionm1 has joined #ruby
dblessing has quit [Quit: dblessing]
mary5030 has joined #ruby
Paul_McFreely has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Tomasso> thanks so much guys, last expression seemed to work :D
grokdancer has joined #ruby
mary5030 has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
<Hanmac> apeiros: look at this:
<Hanmac> >> "abc".match(/a(?<name>b)?c|x(?<name>y)?z/)[:name]
<eval-in_____> Hanmac => "b" (https://eval.in/194212)
cocotton has quit [Remote host closed the connection]
<Hanmac> >> "xyz".match(/a(?<name>b)?c|x(?<name>y)?z/)[:name]
<eval-in_____> Hanmac => "y" (https://eval.in/194213)
siwica has joined #ruby
koderok has quit [Ping timeout: 245 seconds]
timgauthier is now known as timgauthier_isaw
Jackneill has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
g0bl1n has joined #ruby
mr-foobar has quit [Quit: Leaving...]
grokdancer has quit [Ping timeout: 272 seconds]
PeterBoy has joined #ruby
Hanmac has quit [Remote host closed the connection]
shackleford has joined #ruby
janmuffino has joined #ruby
Takle has joined #ruby
timgauthier has joined #ruby
sigurding has joined #ruby
olekenneth has joined #ruby
dserodio_ is now known as dserodio
dserodio has quit [Changing host]
dserodio has joined #ruby
magoo has quit [Ping timeout: 245 seconds]
xcv has joined #ruby
Hanmac has joined #ruby
andrewjanssen has joined #ruby
tonybird has joined #ruby
mark_locklear has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
jerius has quit []
Macaveli has quit [Ping timeout: 272 seconds]
jxf has joined #ruby
jzigmund_ is now known as jzigmund
JohnFord has joined #ruby
chth0n has quit [Ping timeout: 246 seconds]
sigurding has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
djstorm has joined #ruby
sigurding has joined #ruby
koderok has joined #ruby
tonybird has quit [Quit: Textual IRC Client: www.textualapp.com]
koderok has quit [Remote host closed the connection]
sk87 has joined #ruby
qba73 has quit []
tonybird has joined #ruby
starkhalo has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
maasha has quit [Ping timeout: 246 seconds]
cocotton has joined #ruby
Guest61389 is now known as j4jackj
j4jackj is now known as Guest10258
b00stfr3ak has joined #ruby
bal has quit [Read error: Connection reset by peer]
bal has joined #ruby
himsin has quit [Quit: himsin]
ixti has joined #ruby
Advocation has quit [Quit: Advocation]
pandaant has quit [Quit: Lost terminal]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
himsin has joined #ruby
himsin has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
klmlfl has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Quit: Lost terminal]
bruno-_ has quit [Quit: Lost terminal]
LangeOortjes has joined #ruby
mengu has quit []
snath has quit [Ping timeout: 258 seconds]
jerius has joined #ruby
chth0n has joined #ruby
<Bish> is there a cool ruby way to say if string in ["abc","def"]
krisquigley has quit []
chth0n has quit [Remote host closed the connection]
<Bish> with .any and block checking for equality?
<apeiros> strings.include?(string)
<Bish> wow, im stupid, thank you
mark_locklear has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
mkaesz has quit [Quit: Leaving...]
zorak8 has joined #ruby
AlSquirrel has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
bruno- has joined #ruby
LangeOortjes has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
adac has joined #ruby
fsapo has quit [Remote host closed the connection]
matty1234 has quit []
matty1234 has joined #ruby
jdjkelly___ is now known as jdjkelly
mark_locklear has joined #ruby
tonybird has quit [Quit: Textual IRC Client: www.textualapp.com]
jespada has quit [Read error: Connection reset by peer]
tonybird has joined #ruby
IceDragon has joined #ruby
tomgavin has quit [Ping timeout: 260 seconds]
wpp has joined #ruby
ptrrr has joined #ruby
qohelet_ has joined #ruby
Tricon has joined #ruby
lemur has quit [Remote host closed the connection]
<adac> how can I chekc if a queue has been created with AMQP gem:
<adac> AMQP.start("amqp://guest:guest@dev.rabbitmq.com") do |connection, open_ok|
linojon has joined #ruby
lemur has joined #ruby
mtncode has joined #ruby
benzrf is now known as benzrf|offline
Aaaal has quit [Quit: Aaaal]
<muhammadn> I am almost there for the answer but it's not complete
vesuvious has quit [Quit: Leaving]
ffranz has joined #ruby
Aaaal has joined #ruby
Photism_ has quit [Quit: Leaving]
Macaveli has joined #ruby
jerius has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 272 seconds]
stunder has joined #ruby
qhartman has quit [Quit: Ex-Chat]
gvenkat_ has quit [Ping timeout: 255 seconds]
chrisramon has joined #ruby
livingstn has quit []
bal has quit [Quit: bal]
skammer has quit [Ping timeout: 260 seconds]
snath has joined #ruby
timgauthier is now known as timgauthier_isaw
gvenkat has joined #ruby
sk87 has joined #ruby
timgauthier_isaw is now known as timgauthier
carraroj has joined #ruby
jherbst has joined #ruby
rockosays has quit [Quit: Connection closed for inactivity]
francisfish has joined #ruby
bal has joined #ruby
mikeg has joined #ruby
zly has quit [Changing host]
zly has joined #ruby
darkxploit has joined #ruby
internet_user has joined #ruby
Guest18590 has quit [Ping timeout: 258 seconds]
maniacal_ has joined #ruby
bal has quit [Client Quit]
endash has quit [Quit: endash]
apeiros has quit [Remote host closed the connection]
internet_user is now known as elo
grokdancer has joined #ruby
apeiros has joined #ruby
aganov has quit [Quit: Leaving]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
jrhorn425 is now known as jrhorn424
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
paulfm_ has joined #ruby
sagittarian has joined #ruby
Advocation has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
narph has joined #ruby
grokdancer has quit [Ping timeout: 245 seconds]
manzo has quit [Ping timeout: 272 seconds]
apeiros has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
[gmi] has joined #ruby
pontiki has joined #ruby
paulfm has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
wpp has quit []
Mattias has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
elo is now known as ironoxide
anaeem1 has joined #ruby
treehug88 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jerius has joined #ruby
centrx has joined #ruby
renderful has quit [Remote host closed the connection]
vsipuli has joined #ruby
bMalum has quit [Quit: bMalum]
roolo has quit [Quit: Leaving...]
speaking1ode is now known as speakingcode
banister has joined #ruby
qohelet_ has quit [Quit: qohelet_]
carraroj has quit [Ping timeout: 272 seconds]
Mattias has joined #ruby
britneywright has joined #ruby
oivoodoo has quit []
fabrice31 has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
Ulrar has left #ruby ["WeeChat 0.4.3"]
ironoxide is now known as iron_oxide
adironduck has quit [Quit: adironduck]
iron_oxide is now known as ironoxide
ironoxide is now known as iron_oxide
fabrice31 has joined #ruby
Takle has quit [Remote host closed the connection]
a_ has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
[gmi] has joined #ruby
iron_oxide has quit []
internet_user has joined #ruby
skammer has joined #ruby
adac has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
Smujo_ has joined #ruby
maniacal_ has quit [Remote host closed the connection]
internet_user has left #ruby [#ruby]
[gmi] has quit [Read error: Connection reset by peer]
renderful has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
doritostains has quit [Quit: doritostains]
iron_oxide has joined #ruby
sinkensabe has joined #ruby
wwalker_ is now known as wwalker
Guest10258 is now known as j4jackj
Pumukel has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 240 seconds]
j4jackj is now known as Guest76956
cirn0 has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
iron_oxide has quit [Client Quit]
kirun has joined #ruby
Waheedi has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
Waheedi has joined #ruby
chth0n has joined #ruby
Rollabunna has joined #ruby
roolo has joined #ruby
paulfm_ has quit [Ping timeout: 258 seconds]
Tomasso has quit [Quit: Page closed]
Takle has joined #ruby
cirn0 has quit [Ping timeout: 255 seconds]
Waheedi has quit [Client Quit]
oponder has quit []
terlar has quit [Ping timeout: 272 seconds]
kaspertidemann has joined #ruby
cornfeedhobo_ is now known as cornfeedhobo
Insanity133 has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
qohelet_ has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
mjc__ is now known as mjc
mjc is now known as mjc_
icebourg has joined #ruby
IcyDragon is now known as IceDragon
kaspergrubbe has joined #ruby
sectionm1 has quit [Ping timeout: 260 seconds]
jobewan has joined #ruby
matchaw has joined #ruby
mattp_ has joined #ruby
Insanity133 has quit [Ping timeout: 272 seconds]
Tomme has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
Wolland has joined #ruby
bMalum has joined #ruby
krisquigley has quit [Remote host closed the connection]
mr-foobar has joined #ruby
shackleford has quit []
zorak8 has quit [Ping timeout: 245 seconds]
noopq has quit [Ping timeout: 255 seconds]
<mikecmpbll> how come this doesn't return "foo"? https://gist.github.com/mikecmpbll/bb32c02221d9c429e632
<mikecmpbll> i'm trying to base it off what Rails does here: https://github.com/rails/rails/blob/master/railties/lib/rails.rb#L31-L38
shackleford has joined #ruby
<mikecmpbll> it returns nil.
choke has joined #ruby
<centrx> mikecmpbll, I wouldn't be surprised if that line is a no-op
<centrx> in practice
krisquigley has joined #ruby
<centrx> mikecmpbll, I bet it adds the instance variables to the instance of the eigenclass or something
<mikecmpbll> the @var = "foo"?
<centrx> yes
<mikecmpbll> i see.
<centrx> class << self does some funky stuff
<centrx> and setting @application = nil is pointless
<centrx> as @any_unset_instance_variable == nil
vsipuli has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
<mikecmpbll> yeah indeed, it seems you're right
<mikecmpbll> if i move the @var = "foo" outside of the class << self block I get the desired effect.
qohelet_ has quit [Ping timeout: 272 seconds]
* mikecmpbll shrugs
<centrx> mikecmpbll, Looks like that Rails line was added only a month ago, probably is just wrong
hamakn has quit [Remote host closed the connection]
<mikecmpbll> thank you! that had me thrown.
renderful has joined #ruby
<Hanmac> hm yeah that line in rails is wrong, but who are we that we tell railians how to write code? ;P
kireevco has quit [Read error: Connection reset by peer]
chrisramon has quit [Quit: chrisramon]
nettoweb has joined #ruby
kireevco has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
abilon has joined #ruby
Takle has quit [Remote host closed the connection]
kireevco1 has joined #ruby
<mikecmpbll> Hanmac: :D
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leehambley has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
<leehambley> if I have a file in my project, that the filename is shadowing a file from a gem, how can I force the require from the gem ?
nobitanobi has joined #ruby
<leehambley> (I'm getting a "circular require" error)
matchaw has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
lemur has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
saarinen has joined #ruby
<Hanmac> leehambley: ruby version?
mikeg has joined #ruby
grzywacz has quit [Quit: :wq]
lemur has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
timonv_ has quit [Remote host closed the connection]
lsmola_ is now known as lsmola
nhhagen has joined #ruby
timonv_ has joined #ruby
Macaveli has quit [Ping timeout: 258 seconds]
lsmola is now known as lsmola______
Photism has joined #ruby
havenwood has joined #ruby
alex88 has quit [Quit: Leaving...]
wallerdev has joined #ruby
benzrf|offline is now known as benzrf
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Read error: Connection reset by peer]
iron_oxide has joined #ruby
sdegutis has joined #ruby
kaspergrubbe has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
iron_oxide has left #ruby [#ruby]
cndiv has joined #ruby
leehambley has quit [Quit: Leaving...]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
<wasamasa> Hanmac: it was /quit!
sdwrage has quit [Quit: This computer has gone to sleep]
maestrojed has joined #ruby
rubyonrailed has joined #ruby
sdwrage has joined #ruby
charliesome has quit [Quit: zzz]
rafacv has joined #ruby
rafacv has left #ruby [#ruby]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
sagittarian has quit [Quit: Leaving]
webguynow has quit [Ping timeout: 258 seconds]
webguynow has joined #ruby
hamakn has joined #ruby
jrhorn424 is now known as zz_jrhorn424
roolo has quit [Quit: Leaving...]
zz_jrhorn424 is now known as jrhorn424
DaniG2k has quit [Quit: leaving]
sdwrage has quit [Client Quit]
sdwrage has joined #ruby
grokdancer has joined #ruby
JohnFord has quit [Ping timeout: 260 seconds]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
HelperW__ has joined #ruby
shock_one has joined #ruby
sailias1 has joined #ruby
bMalum has quit [Quit: bMalum]
sailias has quit [Quit: Leaving.]
jaygen_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
matchaw has joined #ruby
davispuh has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
speakingcode is now known as MachoManRandySav
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has quit [Ping timeout: 240 seconds]
ryanleesipes has joined #ruby
MachoManRandySav is now known as speakingcode
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
HelperW_ has quit [Ping timeout: 260 seconds]
chth0n has quit [Ping timeout: 272 seconds]
jaygen has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
HelperW__ has quit [Ping timeout: 255 seconds]
jhc76 has quit [Quit: Leaving]
cougarten has joined #ruby
Lucky__ has joined #ruby
tjr9898 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
mark_locklear has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
sparrovv has joined #ruby
JohnFord has joined #ruby
deric_skibotn has joined #ruby
sparrovv has joined #ruby
jottr has joined #ruby
sdwrage has quit [Client Quit]
jrhorn424 is now known as zz_jrhorn424
sdegutis has left #ruby ["Leaving..."]
chrishough has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has quit [Quit: Leaving]
bking39116 has joined #ruby
ptrrr has quit [Quit: ptrrr]
jbueza has joined #ruby
jherbst has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
tjr9898 has quit []
a_ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
treehug88 has quit [Ping timeout: 272 seconds]
a_ has joined #ruby
treehug88 has joined #ruby
anarang has quit [Quit: Leaving]
jerius has quit []
sparrovv has quit [Ping timeout: 245 seconds]
guyz has quit [Quit: quit]
nettoweb has joined #ruby
fsapo has joined #ruby
roolo has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
Guest76956 is now known as j4jackj
troyready has joined #ruby
sailias1 has quit [Read error: Connection reset by peer]
digifiv5e has joined #ruby
j4jackj is now known as Guest32114
britneywright has joined #ruby
Xeago has quit [Remote host closed the connection]
digifiv5e is now known as Guest61726
superscott[8] has joined #ruby
poulet_a has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
sailias has joined #ruby
Guest61726 has quit [Changing host]
Guest61726 has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
gattie has joined #ruby
Guest61726 is now known as guyz
bMalum has joined #ruby
elstif has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blandflakes has joined #ruby
_lexjm has joined #ruby
dc__ has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
mrsolo has joined #ruby
guyz has quit [Quit: quit]
sectionme has joined #ruby
abdulsattar has joined #ruby
digifiv5e_ has joined #ruby
linojon has joined #ruby
Squarepy has joined #ruby
sevvie has joined #ruby
digifiv5e_ is now known as guyz
mikecmpbll has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
jerius has joined #ruby
Pumukel has joined #ruby
krisquigley has quit [Remote host closed the connection]
mrsolo has quit [Client Quit]
chipotle has quit [Quit: cya]
gattie has quit [Remote host closed the connection]
Lewix has joined #ruby
Takle has joined #ruby
melik_ has joined #ruby
gattie has joined #ruby
awc737 has joined #ruby
qmfnp has joined #ruby
tvw has quit []
sectionme has quit [Ping timeout: 260 seconds]
Guest32114 is now known as j4jackj
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
catphish has quit [Quit: Leaving]
ixti has joined #ruby
MasterPiece has quit [Quit: Leaving]
a_ has quit [Ping timeout: 245 seconds]
mocfive has quit [Remote host closed the connection]
JohnFord_ has joined #ruby
timonv_ has joined #ruby
Hobogrammer has joined #ruby
mocfive has joined #ruby
timgauthier has quit [Remote host closed the connection]
JohnFord has quit [Read error: Connection reset by peer]
claw__ has joined #ruby
kenneth has joined #ruby
timgauthier has joined #ruby
claw_ has quit [Ping timeout: 246 seconds]
Takle has quit [Remote host closed the connection]
mikeg has joined #ruby
jerius has quit []
mollitz has quit [Ping timeout: 272 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: WeeChat 1.0]
mocfive has quit [Ping timeout: 255 seconds]
gattie_ has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
dc__ has joined #ruby
Takle has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
cndiv has quit [Quit: WeeChat 0.4.3]
thagomizer has joined #ruby
doritostains has joined #ruby
cndiv has joined #ruby
renderful has quit [Remote host closed the connection]
gattie has quit [Ping timeout: 246 seconds]
cougarten has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
nobitanobi has joined #ruby
jkline has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has joined #ruby
enriclluelles has quit [Remote host closed the connection]
starless has joined #ruby
tcrypt has joined #ruby
Takle has quit [Remote host closed the connection]
renderful has joined #ruby
shackleford has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
p0sixpscl has joined #ruby
lemur has joined #ruby
klmlfl has quit [Remote host closed the connection]
p0sixpscl has quit [Max SendQ exceeded]
klmlfl has joined #ruby
gattie_ has quit [Read error: Connection reset by peer]
HelperW__ has joined #ruby
ptrrr has joined #ruby
p0sixpscl has joined #ruby
gattie has joined #ruby
mollitz has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
klmlfl has quit [Remote host closed the connection]
mikeg has quit [Remote host closed the connection]
p0sixpscl has quit [Max SendQ exceeded]
mollitz has quit [Max SendQ exceeded]
klmlfl has joined #ruby
mollitz has joined #ruby
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
p0sixpscl has joined #ruby
renderful has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 245 seconds]
icarus has joined #ruby
cndiv has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
timonv_ has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 258 seconds]
kaspertidemann has quit []
zz_jrhorn424 is now known as jrhorn424
mattmcclure has joined #ruby
doritostains has quit [Quit: doritostains]
agjacome has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lxsameer has joined #ruby
<lxsameer> hey guys, What version introduced this syntax "private def somemethod"
abdulsattar has quit [Ping timeout: 272 seconds]
Sht0 has joined #ruby
renderful has joined #ruby
W0rmDr1nk has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
wallerdev has joined #ruby
yfeldblum has joined #ruby
hamakn has quit [Remote host closed the connection]
<Hanmac> >> def abc;end
<eval-in_____> Hanmac => :abc (https://eval.in/194271)
<Hanmac> 19>> def abc;end
<eval-in_____> Hanmac => nil (https://eval.in/194272)
<havenwood> lxsameer: 2.0
<Hanmac> lxsameer: 2.0
<havenwood> lxsameer: (since the method returns a symbol like Hanmac showed)
<lxsameer> thanks guys
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
mrsolo has joined #ruby
cndiv has joined #ruby
Avahey_ has joined #ruby
zorak8 has joined #ruby
drawingthesun has quit [Ping timeout: 272 seconds]
codecop has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
leehambley has joined #ruby
starless has quit [Quit: Leaving]
<leehambley> sorry Hanmac, Rails 4.1, Ruby 2.1.2
lkba has quit [Ping timeout: 272 seconds]
<leehambley> seems like the file is in a rails engine (like archeology here)
nanoyak has joined #ruby
<Hanmac> with rails it might be the problem that autoload does fuck it up
<rdark> \quit
rdark has quit [Quit: leaving]
<leehambley> yeah, it seems to be, the engine gem's "lib" is on $:
Tricon has quit [Quit: Leaving...]
rdark has joined #ruby
<leehambley> but not the engines "app" where the file resides
<Hanmac> otherwise i would prefer to use "require" for external stuff and require_relative for internal
mocfive has joined #ruby
<leehambley> hrm, maybe that's something I can try, I can force require the gem/engine early, and then force require a fiel with any name to reopen the class
<leehambley> afaik rails expects that to be done in application.rb, rught
<leehambley> right*
nanoyak has quit [Client Quit]
RickyGreen has joined #ruby
<RickyGreen> Evening all :D
manzo has joined #ruby
<Hanmac> leehambley: for rails questions prefer #rubyonrails ... they did it, now they need to pay the price
JoshGlzBrk has joined #ruby
<leehambley> yeah
matchaw has quit [Read error: Connection reset by peer]
<leehambley> thanks for the pointer
<momomomomo> leehambley: come into #ror and I’ll introduce you to documentation; sounds like you haven’t added it to your engine config
<leehambley> momomomomo: i saw the paths[], thing
<leehambley> see you there
aspiers has quit [Ping timeout: 246 seconds]
nanoyak has joined #ruby
<leehambley> btw Hanmac - not from Hamburg, Germany are you ?
HelperW__ has quit [Remote host closed the connection]
HelperW has joined #ruby
renderful has quit [Remote host closed the connection]
nanoyak has quit [Client Quit]
matchaw has joined #ruby
nanoyak has joined #ruby
<Hanmac> leehambley: Saxony Dresden
Aaaal has quit [Quit: Aaaal]
linojon has quit [Quit: linojon]
<leehambley> Hanmac: I worked with a Hannes Maac in Hamburg last year
<leehambley> thought that would be a v.small world: )
arup_r has joined #ruby
<Hanmac> hm nope as far as i remember that is not me ;P
<leehambley> :D
Aaaal has joined #ruby
<leehambley> grüße aus Hamburg sowieso
timgauthier has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has quit [Remote host closed the connection]
Aaaal has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
hiyosi has joined #ruby
shosti has joined #ruby
Insanity133 has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
Tomme has joined #ruby
tlarevo has joined #ruby
shackleford has joined #ruby
matchaw has quit [Remote host closed the connection]
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
Smujo has quit [Read error: Connection reset by peer]
Waheedi has joined #ruby
matchaw has joined #ruby
guyz is now known as digifiv5e
wchun has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
nobitanobi has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
tachibana has quit [Remote host closed the connection]
Insanity133 has quit [Ping timeout: 258 seconds]
Norrin has quit [Excess Flood]
multi_io has quit [Ping timeout: 260 seconds]
Smujo has joined #ruby
multi_io has joined #ruby
RickyGreen has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 272 seconds]
tachibana has joined #ruby
chihhsin_cloud has quit [Read error: Connection reset by peer]
natewalck has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Read error: Connection reset by peer]
paulog__ has quit [Read error: Connection reset by peer]
incomprehensibly has quit [Read error: Connection reset by peer]
rfv has quit [Read error: Connection reset by peer]
TieSoul is now known as nick___
nick___ is now known as TieSoul
paulog__ has joined #ruby
finges has quit [Ping timeout: 272 seconds]
starless has joined #ruby
rfv_ has joined #ruby
mostlybadfly has joined #ruby
kirun has quit [Ping timeout: 272 seconds]
Waheedi has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
qpls has quit [Ping timeout: 272 seconds]
incomprehensibly has joined #ruby
chihhsin_cloud has joined #ruby
natewalck_ has joined #ruby
Waheedi has joined #ruby
Rollabunna has joined #ruby
<leehambley> it's magic…
gattie has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
premiumnode has joined #ruby
zorak8 has quit [Quit: Leaving]
shackleford has quit [Ping timeout: 272 seconds]
zorak8 has joined #ruby
<leehambley> the autoloader in the engine has a different pathset (those of the engine) to the rest of the app, so only if something from the engine which *is* in ./lib/ includes something which isn't, it works
gattie has joined #ruby
jonathanwallace_ is now known as jonathanwallace
sambao21 has quit [Quit: Computer has gone to sleep.]
qpls has joined #ruby
matchaw has quit [Remote host closed the connection]
tlarevo_ has joined #ruby
kirun has joined #ruby
dazeddev has quit [Ping timeout: 250 seconds]
finges has joined #ruby
pizzaops has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
pizzaops has joined #ruby
matchaw has joined #ruby
ssvo has quit [Quit: Textual IRC Client: www.textualapp.com]
dazeddev has joined #ruby
havenwood has quit []
sectionme has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
<premiumnode> Anyone willing to answer a twitter gem question? (-_-)
mercwith1mouth has quit [Ping timeout: 260 seconds]
fmcgeough has joined #ruby
gattie has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
jds has quit [Quit: Connection closed for inactivity]
tlarevo has quit [Ping timeout: 272 seconds]
muhammadn has quit [Ping timeout: 272 seconds]
grokdancer has quit [Quit: Leaving.]
<wasamasa> nobody in here is ever willing to do anything
<wasamasa> please move over to #ruby-paid-support after cashing a check
havenwood has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
<premiumnode> ok
sectionme has quit [Ping timeout: 240 seconds]
Norrin has joined #ruby
GhettoJava has joined #ruby
gattie has joined #ruby
rezzack has quit [Quit: Leaving.]
Tricon has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
<miah> ask a question; rather than asking if you can ask a question (which is a question itself)
<premiumnode> meh. seriously, so I'm trying to post using twitter gem... posting tweet + image is good when image is of course a file in the server. I want to post using a URL.. so what typically is the gem to use for this? Like..Should it be downloaded and then tweeted?
<premiumnode> ok sorry about that i am new to this freenode thingy
ursooperduper has joined #ruby
<wallerdev> if you post a tweet with like a jpg link in it, twitter will inline the image anyway
<wallerdev> unless you want it hosted on twitter's server
<premiumnode> ahh ya.. i want it hosted on twitter's server cos thats the only way it is gonna be displayed explicitly
jrhorn424 is now known as zz_jrhorn424
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_jrhorn424 is now known as jrhorn424
<wallerdev> then yeah youd have to download it and upload it
dda has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
rbenv has joined #ruby
ramfjord has joined #ruby
<premiumnode> alright then. thank you!
jbueza has joined #ruby
yfeldblum has joined #ruby
abilon has quit [Quit: Computer has gone to sleep.]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
abilon has joined #ruby
ursooperduper has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
klmlfl has joined #ruby
shackleford has joined #ruby
RickyGreen has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
klmlfl has quit [Remote host closed the connection]
jerius has joined #ruby
klmlfl has joined #ruby
abilon has quit [Ping timeout: 256 seconds]
linojon has joined #ruby
noopq has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jrhorn424 is now known as zz_jrhorn424
cougarten has joined #ruby
zz_jrhorn424 is now known as jrhorn424
claymore has joined #ruby
benlieb has joined #ruby
mikepack has joined #ruby
dkphenom has joined #ruby
Takle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jaygen has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
rdark has quit [Quit: leaving]
lemur has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhorn424 is now known as zz_jrhorn424
ta has joined #ruby
jaygen_ has quit [Ping timeout: 255 seconds]
Guest37358 has quit []
britneywright has joined #ruby
zz_jrhorn424 is now known as jrhorn424
renderful has joined #ruby
parduse has joined #ruby
computerex has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
gattie has quit [Remote host closed the connection]
<computerex> hey guys. I have an absolute path, what's the best way to get the path relative to the server's (rails) public directory?
gattie has joined #ruby
mark_locklear has joined #ruby
<computerex> I can always replace the path before it with an empty string but that's icky
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
britneywright has quit [Client Quit]
WormDrink has joined #ruby
pietr0 has joined #ruby
codecop has joined #ruby
saarinen has quit [Quit: saarinen]
kamilc__ has quit [Quit: Leaving...]
benzrf|offline is now known as benzrf
<computerex> I mean I can do url.gsub!(RAILS_ROOT, '')
<computerex> is there a better way?
<benzrf> computerex: i think there's some kind of relative thing
<benzrf> >> File.path_relative
<eval-in_____> benzrf => undefined method `path_relative' for File:Class (NoMethodError) ... (https://eval.in/194280)
<benzrf> >> Dir.path_relative
Synthead has quit [Ping timeout: 246 seconds]
<eval-in_____> benzrf => undefined method `path_relative' for Dir:Class (NoMethodError) ... (https://eval.in/194281)
<benzrf> meh
parduse has quit []
robbyoconnor has quit [Ping timeout: 258 seconds]
gattie has quit [Ping timeout: 255 seconds]
parduse has joined #ruby
BlkDynmt has joined #ruby
pushnell has joined #ruby
gattie has joined #ruby
tjbiddle has joined #ruby
<computerex> damn
<computerex> that's a nice site
cougarten has quit [Ping timeout: 250 seconds]
Lewix has joined #ruby
timgauthier is now known as timgauthier_isaw
<raldu> what are the best code exploration plugins for ruby besides ctags?
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
Cecen has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
gregf has quit [Quit: WeeChat 1.0]
momomomomo has joined #ruby
cocotton_ has joined #ruby
Cecen has joined #ruby
Takle has quit [Remote host closed the connection]
IcyDragon has joined #ruby
Mars___ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
grokdancer has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
edwardly_ has joined #ruby
sambao21 has joined #ruby
cocotton has quit [Ping timeout: 258 seconds]
grokdancer has quit [Client Quit]
xcv has quit [Remote host closed the connection]
reset has joined #ruby
cougarten has joined #ruby
proxie has joined #ruby
renderful has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
jkline has joined #ruby
gregf has joined #ruby
cndiv has quit [Ping timeout: 258 seconds]
treehug88 has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
Synthead has joined #ruby
renderful has joined #ruby
cougarten has quit [Ping timeout: 260 seconds]
mikeg has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
andrewjanssen has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Quit: momomomomo]
sparrovv has joined #ruby
hiyosi has joined #ruby
ursooperduper has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
leehambley has quit [Quit: Leaving...]
cndiv has joined #ruby
xcv has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
niklasb has joined #ruby
jkline has quit [Quit: jkline]
Waheedi has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 255 seconds]
Waheedi has joined #ruby
eivindml has joined #ruby
grokdancer has joined #ruby
AndroUser465 has joined #ruby
kobain has joined #ruby
cocotton_ has quit [Remote host closed the connection]
mary5030_ has joined #ruby
cocotton has joined #ruby
jkline has joined #ruby
mikeg has quit [Remote host closed the connection]
jkline has quit [Client Quit]
sectionme has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
mikepack has joined #ruby
p0sixpscl has joined #ruby
Synthead has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
p0sixpscl has joined #ruby
rezzack has joined #ruby
sectionme has quit [Ping timeout: 260 seconds]
jkline has joined #ruby
timgauthier has joined #ruby
timgauthier_isaw is now known as timgauthier
Lewix has quit [Remote host closed the connection]
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030_ has quit [Remote host closed the connection]
rezzack1 has joined #ruby
adac has joined #ruby
skammer has joined #ruby
mary5030 has joined #ruby
rezzack has quit [Ping timeout: 245 seconds]
chrishough has quit [Ping timeout: 258 seconds]
txdv has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
txdv has joined #ruby
ghr_ has joined #ruby
Lewix has joined #ruby
LiohAu has quit [Quit: LiohAu]
omosoj has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
andrewjanssen has quit [Quit: Leaving...]
thomaslnx has joined #ruby
recurrence has joined #ruby
jbueza has quit [Ping timeout: 260 seconds]
echevemaster has joined #ruby
<recurrence> Does ruby have a string test and set? eg: return string or empty string if anything in a.b.c.d is nil
momomomomo has joined #ruby
ghr_ has quit [Ping timeout: 255 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> recurrence, not sure what you mean
jbueza has joined #ruby
<recurrence> looking for something cleaner than var.property.string ? var.property.string : ''
sambao21 has joined #ruby
Takle has joined #ruby
bbloom has quit [Ping timeout: 250 seconds]
tlarevo_ has quit [Remote host closed the connection]
<recurrence> er sorry
Luyt has joined #ruby
<recurrence> var.property ? var.property.string : ''
endash has joined #ruby
tlarevo has joined #ruby
mityaz has joined #ruby
<recurrence> if "property" is nil in this case I'd get an exception so I need to check with that yucky looking ternary operator :)
jrhorn424 is now known as zz_jrhorn424
kamilc__ has joined #ruby
HelperW has quit [Quit: Computer has gone to sleep.]
<centrx> recurrence, ActiveSupport/Rails has Object#try which does that
<centrx> recurrence, var.property.try(:string)
<recurrence> oh cool
<Luyt> A while ago I transcribed an interview with DHH on Rails and how he became a software developer and came to love Ruby. Originally a FLOSS audio podcast, the transcription is here: http://www.transcribed-interview.com/dhh-rails-david-heinemeier-hansson-interview-randal-schwartz-floss.html
HelperW has joined #ruby
yetanotherdave has joined #ruby
<centrx> recurrence, If you don't want to use ActiveSupport, you can copy the code from here: http://api.rubyonrails.org/classes/Object.html#method-i-try
<recurrence> thanks centrx , this is close to what I want!
mityaz_ has joined #ruby
mityaz_ has quit [Client Quit]
andrewjanssen has joined #ruby
fabrice31 has joined #ruby
yfeldblu_ has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
HelperW has quit [Ping timeout: 260 seconds]
<Lewix> hi
<wallerdev> hi
andrewjanssen has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
<Lewix> How are you wallerdev
<wallerdev> really tired
<wallerdev> feeling kinda sick too
<wallerdev> you?
yfeldblum has quit [Ping timeout: 255 seconds]
<Lewix> wallerdev: you shouldn't be on the computer then =)
<Lewix> I'm great
<wallerdev> haha well ill take my lunch break soon
<wallerdev> hopefully ill feel better after some food
Aranshada|W has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
jkline has quit [Quit: jkline]
mikepack has joined #ruby
claudiop has joined #ruby
sigurding has quit [Quit: sigurding]
mikeg has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
andrewjanssen has joined #ruby
xcv has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<claudiop> Hi. I am looking to get some experience with ruby since i've learn a lot of theory but did nothing with it, and I am forgetting everything that i've learned. My idea (which is something that i really need right now) i a basic application that runs hidden, controllable from the tray, which limits eg. the daily time on steam
drawingthesun has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<claudiop> The problem is that i've got to use a graphical framework
<claudiop> I had previous experience with GTK on python. But its docs are miles away from ruby's GTK docs
Advocation has quit [Quit: Advocation]
rkalfane has joined #ruby
<claudiop> Is there any graphical framework gem with docs like these: https://lazka.github.io/pgi-docs/#Gtk-3.0 ?
mofai has quit []
icarus has quit [Ping timeout: 272 seconds]
tobago has quit [Remote host closed the connection]
<wallerdev> what os are you on
<Luyt> claudiop: You state three different problems, and suggest a solution at the same time. 1) Don't learn any stuff you won't need anyway, 2) Writing an app is the best way to learn a language, and 3) a 'tray' is highly desktop specific
<claudiop> I am on Gnu/Linux. I am a Gnome user, so gtk would be preferable
BBBThunda has quit [Quit: Leaving]
Xiti has quit [Quit: Leaving]
PeterBoy has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Luyt> Now I'm interested. Doesn't Gnome implement some kind of desktop standard for icons on the desktop, tray icons, etc?
<Luyt> What is this standard called?
matty1234 has quit [Quit: Connection closed for inactivity]
<eam> Luyt: gtk
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
<eam> the gnome toolkit
<Luyt> eam, no, it was something different, independent of what GUI toolkit one uses
<eam> there's no such standard
darkxploit has quit [Read error: Connection reset by peer]
<Luyt> like having a ./Desktop folder with shortcut files
alexherbo2 has quit [Quit: WeeChat 1.0]
<Luyt> yes yes there is
<claudiop> Yes, but other toolkits also work on it. It doesn't needs to be gtk. It is *best* for a gnome user. I am not looking for the best, i am looking for something with good docs
thomaslnx has quit [Quit: Saindo]
<claudiop> I didn't quite understood
Insanity133 has joined #ruby
Xiti has joined #ruby
<claudiop> Oh, i didn't meant desktop icons. And no, in gnome we're not really supposed to have desktop icons. I mean the "taskbar"(windows language) ones
<Luyt> I remember seeing desktop softwares advertised as 'XYZ' compliant, which means they can handle stuff in the ~/Desktop directory and have some messaging in place for taskbar icons etc
<claudiop> But any toolkit has those i think
saarinen has joined #ruby
sinkensabe has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 258 seconds]
<claudiop> Ok, forget about the desktop part. Let's shorten the question. "A ruby graphical toolkit gem with good, easy documentation."
icarus has joined #ruby
sinkensabe has joined #ruby
sambao21 has joined #ruby
agent_white has joined #ruby
Tomme has quit [Quit: Leaving]
<centrx> claudiop, Have you looked at Ruby Shoes?
Insanity133 has quit [Ping timeout: 272 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
<agent_white> I wear them daily!
<agent_white> Afternoon folks
<claudiop> centrx, no, i didn't, but i will :)
emmesswhy has joined #ruby
starless has quit [Quit: Leaving]
nobitano_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
<premiumnode> hello! what's the best tool to use if I want to run a simple job (it's just tweeting something) once a day...? I've read: resque, delayed_job, rufus-scheduler, Sidekiq, whenever
<premiumnode> I've read that delayed_job is the simplest for beginners or simple tasks..what can you suggest?
<eam> cron.
nobitanobi has quit [Ping timeout: 245 seconds]
<centrx> premiumnode, delayed_job and rufus_scheduler are the simplest yes
<centrx> premiumnode, but if it is just one a day on the regular, without any users/processes adding new jobs, just use cron
nobitano_ has quit [Remote host closed the connection]
Waheedi has quit [Quit: Waheedi]
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
bMalum has quit [Read error: Connection reset by peer]
Aranshada|W has quit [Ping timeout: 240 seconds]
Paul_McFreely has joined #ruby
benzrf is now known as benzrf|offline
claymore has quit [Quit: Leaving]
<premiumnode> I see. thanks eam and centrx
hiyosi has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
<failshell> is there a tool to document a gem's code bad on its methods, classes, comments, etc into a markdown file?
rgcouk has joined #ruby
<failshell> s/bad/based
DivineEn1ity has quit [Quit: Lost terminal]
premiumnode has quit [Quit: Page closed]
<claudiop> Luyt, thanks. Looking into it. Thanks for your help :)
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140830210550]]
klaas has quit [Remote host closed the connection]
<Luyt> claudiop: You're welcome. I'm also interested in this stuff myself, since I'm developing an utility to make desktop shortcuts reflect better their origins.
<claudiop> Best of luck in your development ;)
Aaaal has joined #ruby
<Luyt> claudiop: Thanks. I think I'll be good, since I already know how to develop software ;-)
darkxploit has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
leehambley has joined #ruby
<claudiop> Yes, that's a small advantage over newbies :b
<Luyt> claudiop: But you know, it's just like about people bitch about 'young persons' doing things, as if youth is an impediment.
Rollabunna has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
<Luyt> If age is really an issue, and being too young is an disadvantage, then, that disadvantage becomes less every day ;-)
saarinen has quit [Quit: saarinen]
kobain has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
mocfive has quit [Remote host closed the connection]
<Luyt> claudiop: Same goes for the so-called 'n00bs'... They might not know as much as the incrowd, but their knowlegdge gains every hour and day they're working on their code. And many (so-called) noobs often have a fresh view on problems, which can be beneficial.
<agent_white> Ruby is 2 days 2 years younger than me. I am old!
kalusn has quit [Remote host closed the connection]
mocfive has joined #ruby
<centrx> agent_white has exposed his secret agent birthday
<agent_white> :o !
* adrenaline_ is a N00b
Aranshada|W has joined #ruby
<agent_white> agent_not_so_secret_white!
<Luyt> agent_white: Hehe, of course, the language in which you express yourself is totally irrelevant to the so-called 'noob problem' ;-)
sectionme has joined #ruby
nobitanobi has joined #ruby
<Luyt> Hell, I'm a Haskell noob
kamilc__ has quit [Quit: Leaving...]
MeltedLux has quit [Ping timeout: 272 seconds]
<ineb> everyone is a noob. claiming otherwise only restricts one in thinking ;)
<agent_white> Haskell... I will learn after I take a hieroglyphics class!
sinkensabe has joined #ruby
<Luyt> but I watched an OCAML video last night which had quite some interesting views on concurrency
edoceo has joined #ruby
RickyGreen has quit [Quit: Leaving...]
Insanity133 has joined #ruby
<Luyt> I mean, a computer language could be decoupled from the concepts it implements
Rollabunna has quit [Ping timeout: 260 seconds]
<edoceo> Hey, ruby noob here - when I see rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system - that means bundler from my Gemfile directory?
<Luyt> That's why I'm learning Clojure right now. I think it has a place in the future
<agent_white> Luyt: I did see a good quote about that... "current issues are the results of current thinking..." followed by something-something 'so use new thinking!' ... you get the gist of it. ;)
<lolmaus__> Is there a non-destructive `array.delete`? That returns a new array rather than modifying existing one?
<agent_white> lolmaus__: You mean to pop the last element off the array?
<Luyt> YouTube is so full of fantastic lectures about computer programming issues that I even don't watch TV anymore. I watch those lectures.
<Luyt> I haven't watched the News or CNN in ages... just technical lectures on YouTube
<centrx> Latest news is: "TV is for old people"
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
tcrypt_ has joined #ruby
<agent_white> Like me!
sectionme has quit [Ping timeout: 258 seconds]
<lolmaus__> agent_white: no, i want to remove given object from the array and to have the resulting array returned, without modifying the original array.
kiwnix has quit [Read error: Connection reset by peer]
nDuff has joined #ruby
b00stfr3ak has joined #ruby
PeterBoy has joined #ruby
<centrx> lolmaus__, Array#reject
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
<centrx> lolmaus__, requires slightly lengthier syntax than #delete though
RyanV has joined #ruby
Insanity133 has quit [Remote host closed the connection]
eivindml has joined #ruby
<agent_white> Or map if you're wanting to fill that slot with nil
tcrypt has quit [Read error: Connection reset by peer]
<Luyt> centrx: When I enter my local Supermarket, I walk past the newspaper stand, and I quickly glance the headlines... that is enough to inform me what is going on in the World...
<lolmaus__> centrx: it's exactly what i need, thank you.
nDuff has left #ruby [#ruby]
nanoyak has joined #ruby
<Luyt> and it's always the same and never changes. I've given up on being globally aware. For the rest, I only read HackerNews.
mark_locklear has joined #ruby
SCHAAP137 has joined #ruby
<Luyt> not Reddit or Slashdot, but HackerNews
MeltedLux has joined #ruby
diegoviola has joined #ruby
<toretore> Luyt: do you have a link to the ocaml video?
grokdancer has quit [Quit: Leaving.]
<Luyt> toretore: Search YouTube for 'ocaml trading'
<Luyt> The guy who gives the talk is very energetic and enthusiastic about Ocaml
<Luyt> he has a beard, too
<Luyt> and a stout appearance
tesaf has joined #ruby
bking39116 has quit [Quit: bking39116]
<Luyt> toretore: I'm currently at a workstation which doesn't allow me to watch YouTube, so I can't confirm your link
mleone has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
linojon has quit [Quit: linojon]
KC9YDN has joined #ruby
<toretore> "cml trading - experiences with functional programming on wall street"
<toretore> caml*
<Luyt> yeah that could be the one, it was about wallstreet
<toretore> k thx brah
davispuh has joined #ruby
<Luyt> I found his talk enlightening, but it didn't win me over to the ML camp (yet)
sambao21 has quit [Quit: Computer has gone to sleep.]
fsapo has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
fold has joined #ruby
<Luyt> At the moment I'm more concerned about harnessing the powers of multiple cores
<Luyt> Because I think that's the future
<Luyt> Rich Hickey's approach to that development is really stirring my interest
benzrf|offline is now known as benzrf
<Luyt> Software Transactional Memory, and that kind of stuff
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> i like haskell
livingstn has joined #ruby
<benzrf> haskell... it's so good
ItSANgo has joined #ruby
<Luyt> benzrf: I think knowledge of Haskell could really benefit your efficacy as a developer
<centrx> What is the secret code name of Haskell?
sigurding has joined #ruby
<centrx> ruby -> rubby
blackmesa has joined #ruby
<centrx> go -> goo
Aaaal has quit [Quit: Aaaal]
<havenwood> php -> nooooo
<Luyt> Just like LISP can... I think it's really beneficial for a developer to disover paradigms outside one's usual languages and habits.
qmfnp has joined #ruby
Mars___ has quit [Remote host closed the connection]
<Luyt> omg PHP I have to do that from time to time too, I don't hate or love it, I just accept it as a fate of life.
<ineb> i started learning haskell and then i stopped because i couldnt come up with an idea to use it for a project.
Mars___ has joined #ruby
<agent_white> brainfuck -> ./...++<>,
fmcgeough has quit [Quit: fmcgeough]
<Luyt> ineb: You have a point there. You can't really learn a language if you don't have to write serious stuff in it
lemur has joined #ruby
<centrx> brainfuck -> wtfuck
<Luyt> hehe ;-)
<agent_white> hahah
<benzrf> ineb: write a scheme interpreter in it :y
<benzrf> scheme interpreters are to haskell as blogs are to web frameworks
PeterBoy has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
n_blownapart has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
<Luyt> Well my lovely friends, excuse me as I'm going to leave the channel, enriched with new viewpoints, but I feel I'm going to shoot some enemies in Battlefield 2: Vietnam now ;-)
adironduck has joined #ruby
<Luyt> If you want to shoot me, I'll be on the servers.
<benzrf> play tf2 instead
glebm has joined #ruby
<Luyt> Huh what? tf2? What's that?
<centrx> The sequel to Team Fortress Classic
<Luyt> Isn't that Quake?
<benzrf> Luyt: team fortress 2
<benzrf> it's sweet as ufck
<Luyt> I played a lot of Quake III Arena
<benzrf> 2 teams 9 classes
Mars___ has quit [Ping timeout: 258 seconds]
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> php's secret name is "I hear your teenage kid is good with websites"
adironduck has quit [Client Quit]
dc__ has quit [Remote host closed the connection]
<benzrf> shoot the other team or set up a sentry to shoot them or turn invisible and stab them inna back or launch rockets at em or
<centrx> Luyt, TF is more strategic and team-oriented, with different player classes who have strengths and weaknesses
<Luyt> eam: And he's working from his attic for just $10 an hour!
<benzrf> eam: as a teenage kid semi-good with websites i resent your implication
<ineb> Luyt is at a workstation, cant watch youtube videos, but playin BF2 is fine.
<benzrf> Luyt: i'd kill for 10 an hour
p0sixpsc_ has joined #ruby
linojon has joined #ruby
<agent_white> benzrf: Come make pizzas with me!
shinobi_one has joined #ruby
<benzrf> agent_white: for programming d:
postmodern has joined #ruby
<eam> benzrf: pre-teen then
Stalkr_ has joined #ruby
<Luyt> ineb: I play games not on this scruffy workstation, but on my Gaming Rig which is next to me on my desk!
grokdancer has joined #ruby
<benzrf> eam: in that case
<benzrf> yes
<eam> #preeteens
<agent_white> benzrf: So I like the pretend the pepperonis are my classes...
lemur has quit [Ping timeout: 240 seconds]
<benzrf> eam: i was a php user in my preteens ;-;
<Lewix> agent_white: I want some!
lxsameer has quit [Quit: Leaving]
<agent_white> s/the/to/
<benzrf> agent_white: ( ͡° ͜ʖ ͡°)
<eam> benzrf: I was a pascal user in my preteens
<agent_white> Lewix: CLASSES FOR ALL. We just need to think of what the cheeze it.
p0sixpscl has quit [Read error: Connection reset by peer]
<agent_white> s/it/is/icannotspelltoday/
<benzrf> i was a BASIC user in my prepreteens!
<eam> also basic, both GW and quick
mikeg has quit [Remote host closed the connection]
<agent_white> I modified CS 1.6 hacks in my pre-teens!
<havenwood> what we need is a batch web framework
Stalkr_ has quit [Remote host closed the connection]
<agent_white> havenwood: Let's call it "Soup"
carraroj has quit [Quit: Konversation terminated!]
Stalkr_ has joined #ruby
yfeldblum has joined #ruby
sectionme has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
<havenwood> agent_white: uh, jesus, they've already done it... http://www.secretgeek.net/dod_intro
Morkel_ has joined #ruby
<benzrf> i used True Basic
<havenwood> DOS on Dope
Morkel_ has quit [Client Quit]
<havenwood> Ruby on Rails in Batch scripts. :O
<centrx> omg
endash has quit [Quit: endash]
freerobby has quit [Read error: Connection timed out]
freerobby has joined #ruby
<eam> I've used ruby on DOS
Morkel has quit [Ping timeout: 260 seconds]
kyb3r_ has quit [Ping timeout: 246 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
decoponio has quit [Quit: Leaving...]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
<ericwood> ewwww
<benzrf> eam: gross.
BRMatt has quit [Quit: Connection closed for inactivity]
jkline has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
grokdancer has quit [Quit: Leaving.]
emmesswhy has joined #ruby
<lolmaus__> Is there short yet self-explanatory way to replace `!!obj`, e. g. return true if object exists and isn't falsy?
blackmesa has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Remote host closed the connection]
<centrx> lolmaus__, ActiveSupport/Rails has Object#present?
mclee has quit [Ping timeout: 272 seconds]
mikeg has joined #ruby
<centrx> lolmaus__, !obj.nil? is native Ruby
<lolmaus__> centrx: thx
ramfjord has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
zB0hs has joined #ruby
grokdancer has joined #ruby
Guest77659 has quit [Ping timeout: 245 seconds]
pasv has joined #ruby
pasv is now known as Guest37038
klaas has joined #ruby
ht__th has quit [Remote host closed the connection]
lkba has joined #ruby
nobitanobi has joined #ruby
wallerdev has joined #ruby
sectionme has quit [Ping timeout: 255 seconds]
vallieres_ has joined #ruby
deric_skibotn has joined #ruby
vallieres_ has quit [Max SendQ exceeded]
recurrence has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
wchun has joined #ruby
wchun has quit [Read error: Connection reset by peer]
wchun has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dda has quit [Remote host closed the connection]
nanoyak_ has joined #ruby
sigurding has quit [Quit: sigurding]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gattie_ has joined #ruby
vallieres_ has joined #ruby
vallieres_ has quit [Max SendQ exceeded]
dc__ has joined #ruby
aspires has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
nanoyak has quit [Ping timeout: 258 seconds]
gattie_ has quit [Read error: Connection reset by peer]
vallieres_ has joined #ruby
gattie_ has joined #ruby
r4v5 has left #ruby [#ruby]
Spami has joined #ruby
hiyosi has joined #ruby
gattie has quit [Ping timeout: 240 seconds]
<omosoj> must there be a third part of a ternary construction? is "a ? b" enough?
eshy has joined #ruby
cibs has joined #ruby
<centrx> omosoj, third part is required
benlieb has quit [Quit: benlieb]
<centrx> omosoj, if you don't want the third part, just use: b if a
Avahey_ has quit [Quit: Connection closed for inactivity]
<omosoj> awesome. thanks
aspiers has joined #ruby
noopq has quit [Ping timeout: 255 seconds]
gvenkat has quit [Quit: This computer has gone to sleep]
fbernier has joined #ruby
<omosoj> how does that work in the hardware? is the condition performed or held in memory until the condition?
jimms has joined #ruby
<treehug88> if there weren't three parts required... it wouldn't be ternary!
Mars__ has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
Xaitec has joined #ruby
tonybird has quit [Ping timeout: 255 seconds]
<centrx> omosoj, Logically, it checks the if expression first
<omosoj> treehug88, heh
<omosoj> ok, thanks, centrx!
<treehug88> it probably expands to some sort of if/then/else logic :)
<centrx> omosoj, As far as the hardware, CPUs sometimes follow all branches of an if-statement ahead of time, for performance
<treehug88> yeah implementation bets are off
matchaw_ has joined #ruby
<ericwood> predictive branching :D
matchaw has quit [Read error: Connection reset by peer]
cirn0 has joined #ruby
<omosoj> my app isn't too big so i wont worry about it too much. i just thought the ternary operator would be better b/c it wouldn't go all the way if the condition wasn't met
kaspergrubbe has joined #ruby
diegoviola has joined #ruby
GinoMan has joined #ruby
<treehug88> don't preoptimize
<omosoj> why not?
<treehug88> oh man
<omosoj> lol
ringarin has joined #ruby
<wallerdev> if you preoptimize you end up writing harder to read code to counteract a problem that might never exist
ringarin has quit [Client Quit]
<shevy> omosoj the sad thing in ruby is that you have to accept its elegance along with its slowness
<treehug88> that and you can't usually predict what the slow parts of your program are
<omosoj> ah, makes sense wallerdev
<treehug88> so you optimize the wrong parts
ringarin has joined #ruby
drawingthesun has quit [Ping timeout: 245 seconds]
<treehug88> and what wallerdev said - optmization almost always complicates the code base
<omosoj> i see, good pointers. thanks guys
drawingthesun has joined #ruby
PeterBoy has joined #ruby
<treehug88> profile, find the slow parts, make sure they're too slow for your needs, THEN optimize
<omosoj> funny link treehug88
Squarepy has quit [Quit: Leaving]
spider-mario has quit [Read error: Connection reset by peer]
jkline has quit [Quit: jkline]
cirn0 has quit [Ping timeout: 255 seconds]
<treehug88> thanks!
TeresaP has joined #ruby
jkline has joined #ruby
skip_freely has quit [Ping timeout: 250 seconds]
Jackneill has quit [Read error: Connection reset by peer]
blandflakes has quit [Quit: Page closed]
GinoMan has quit [Ping timeout: 240 seconds]
<TeresaP> If I'm using Ruby on the command line and 'requiring' a bunch of files that contain classes, is there a reason that comes to mind as to why I'm unable to access the classes' static objects?
<TeresaP> NameError: uninitialized constant <class name>
blackmesa has joined #ruby
PeterBoy has quit [Ping timeout: 246 seconds]
<wallerdev> youll have to be more specific
atmosx has joined #ruby
<wallerdev> maybe the class is inside a module or something and youre not accessing it using the module
sinkensabe has quit [Remote host closed the connection]
<shevy> TeresaP that means that that class is not known
<shevy> you possibly made a mistake in loading the file
skfax has joined #ruby
<TeresaP> It's just a class with a method. I'm doing Class.method when I'm calling it. It works fine if I execute within RubyMine.
<shevy> as otherwise it must be known
<shevy> careful with RubyMine
<shevy> it does extra stuff sometimes
arup_r has quit [Read error: Connection reset by peer]
<TeresaP> I'm fine with RubyMine, I'm just trying to test out my functions on Terminal
<wallerdev> like...
<wallerdev> >> class Okay; def self.wow; 10; end end; Okay.wow
<eval-in_____> wallerdev => 10 (https://eval.in/194301)
<wallerdev> ?
<wallerdev> you put the class inside file "okay.rb"
<shevy> I remember some months ago, some guy complained about a problem - it turned out that RubyMine had some extra step that caused issues, whereas ruby itself worked just fine
fabrice31 has joined #ruby
<wallerdev> then require 'okay'; Okay.wow
arup_r has joined #ruby
<wallerdev> make sure the second file is in the right directory
hmsimha has joined #ruby
<TeresaP> So basically on Terminal I've launched this test framework tool called the Calabash console
<TeresaP> My class looks something like that "Okay" class
<shevy> I want a Cabbage console too
<TeresaP> haha
PeterBoy has joined #ruby
<shevy> you can start irb from that directory
<wallerdev> try using the full path in require
<shevy> then try require 'name' or require './name'
<shevy> or that, yeah
<TeresaP> Here's the function used to load the files: https://eval.in/194304
AndroUser465 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Xaitec has quit [Remote host closed the connection]
<shevy> TeresaP you can run debug code in those files btw
<shevy> puts 'hi there'
<skfax> How would I call this method if I wanted to give it both an action, a parameter and a setting (just trying to understand the ruby syntax, not asking about rails)? http://api.rubyonrails.org/classes/ActionController/TestCase/Behavior.html#method-i-get
<shevy> then you can be 100% sure whether the file is called or not
<shevy> skfax it has one mandatory arg
<shevy> anything that is more than one arg is collect into an array that is called args (inside that method)
<shevy> so you can call it from 1 args up to ... I dunno how many args...
<shevy> wasn't there a limit?
nobitanobi has quit []
cleopatra has joined #ruby
<skfax> shevy: But how does the method differentiate between parameters, session and flash?
fabrice31 has quit [Ping timeout: 272 seconds]
icarus has quit [Ping timeout: 272 seconds]
<shevy> skfax depends on how it is called really
<shevy> what is a typical call to it?
pu22l3r_ has joined #ruby
<shevy> method invocation
shredding has quit [Quit: shredding]
manzo has quit [Ping timeout: 246 seconds]
<shevy> skfax btw
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
<shevy> there is a link "source"
<shevy> click it :)
<shevy> def get(action, *args)
<shevy> process(action, "GET", *args)
GinoMan has joined #ruby
<shevy> so you see it acts as a delegee to the process method
dc__ has quit []
<shevy> process has a slightly different signature
<shevy> process(action, http_method = 'GET', *args)
<shevy> click on show
Paul_McFreely has joined #ruby
<shevy> :P
tvw has joined #ruby
<shevy> then you will see:
<shevy> ----
<atmosx> anyone deploying apps at amazon ?
<shevy> if args.first.is_a?(String) && http_method != 'HEAD'
<shevy> @request.env['RAW_POST_DATA'] = args.shift
<shevy> skfax so it fetches the info from @request
<skfax> and: parameters, session, flash = args
<skfax> ok, so the arguments are really positional
<skfax> well, position dependant
<shevy> yeah, first one gets params, second session, rest becomes flash
<shevy> I am not sure why they use an array and not a hash though
<shevy> ah
<shevy> probably because you have to type more if you want to call it
<skfax> true
<shevy> I like hashes though
<shevy> they help me remember how to use a method haha
<shevy> ftp.connect :port => 5425
<shevy> though of course, you could do the same with method invocation as well
<shevy> ftp.port = 5425
pu22l3r has quit [Ping timeout: 246 seconds]
<skfax> it really seems like it's worth the extra typing
<TeresaP> thanks guys. I guess it is choking on a 'require' line I have in there
<shevy> TeresaP \o/
<TeresaP> In the .irbrc file
arup_r has quit [Quit: Leaving.]
<TeresaP> silently cohking :-|
<TeresaP> choking*
<shevy> yeah, irb can do that
<skfax> shevy: thanks for helping to clear that up :)
<shevy> that's why it often is best to add only little lines of code, then test it, then add more when everything is fine
yalue has quit [Quit: Leaving]
<shevy> I also use: begin; require 'name'; rescue LoadError; end
<shevy> in irbrc a lot
pu22l3r_ has quit [Ping timeout: 246 seconds]
<shevy> sometimes with reporting "library xyz is not available. We continue nonetheless."
<shevy> let me find my irbrc
<TeresaP> It's not too complicated of a file but I had to add a require line to silence another error and I thought it was solved. Apparently not.
<TeresaP> I'll try that, thanks shevy
kiagyc has quit [Read error: Connection reset by peer]
<shevy> damn I did split up my irb
<shevy> this file here is what gets loaded for me on irb startup: http://pastie.org/9560044
jottr has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
<shevy> skfax you understood the code very quickly. I assume you have been using either ruby or another language for a longer while?
adac has quit [Ping timeout: 245 seconds]
aclearman037 has quit []
jottr has joined #ruby
<skfax> shevy: very fresh with ruby, but know c++ and a little python
<shevy> aha!
awc737 has joined #ruby
<shevy> shsh hShshs hsszshs?
<shevy> the python guys don't understand my dialect :(
<skfax> haha
<shevy> how do you find the documentation of ruby or rails compared to python (and, I dunno... django or something)
paulfm has quit []
aspires_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
DarthGandalf has quit [Quit: Bye]
<skfax> shevy: i don't know either ruby or python enough to compare fairly, but the overall rails documentation is pretty great. lots of official guides + nice API documentation. most popular gems also seem to be documented fairly well. the ruby docs have also been very helpful :) still, you gotta use it a bit to grok stuff
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
Avahey_ has joined #ruby
eivindml has joined #ruby
nfk has quit [Quit: yawn]
bmurt has quit []
bking39116 has joined #ruby
mikepack has quit [Remote host closed the connection]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesaf has quit [Quit: Lost terminal]
<agent_white> You gotta pry to know why!
TheNet has joined #ruby
xcv has joined #ruby
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
<ericwood> they need that as their tagline
<lsone> ericwood: I agree completely
Paul_McFreely has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
Beoran has quit [Ping timeout: 272 seconds]
manzo has joined #ruby
ringarin has quit [Quit: Leaving]
aspires_ has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
aspires has joined #ruby
slester has quit [Quit: slester]
kedare has quit [Ping timeout: 245 seconds]
Takle_ has joined #ruby
bking39116 has quit [Quit: bking39116]
Soda has joined #ruby
Takle has quit [Read error: Connection reset by peer]
oleo has quit [Ping timeout: 260 seconds]
<agent_white> agent_white is no longer to make pizzas for a living! \o/
* agent_white dances
JohnFord_ has quit [Ping timeout: 260 seconds]
shacklef_ has joined #ruby
olekenneth has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
ldnunes has quit [Quit: Leaving]
oleo has joined #ruby
saarinen has quit [Quit: saarinen]
mark_locklear has quit [Ping timeout: 258 seconds]
shackleford has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
mleone has quit [Ping timeout: 258 seconds]
<wallerdev> agent_white: switched to calzones?
<agent_white> wallerdev: Pretty much! :D
livingstn has quit []
<agent_white> Got an offer for a UX designer for interactive displays, like those big touch screen ones in hotels to flight-info ones in airports.
<agent_white> I'll ask if I can still make calzones though.
<wallerdev> awesome
<wallerdev> where at?
aspires has quit []
sailias has quit [Read error: Connection reset by peer]
mleone has joined #ruby
Beoran has joined #ruby
gattie_ has quit [Remote host closed the connection]
<agent_white> wallerdev: Four Winds Interactive! http://www.fourwindsinteractive.com/
<wallerdev> denver?
gattie has joined #ruby
<wallerdev> miami or uk?
<agent_white> Denver :)
<wallerdev> my old boss lives there
<agent_white> Oh no shit? It's a nice place I think! Been here since birth at least :P
<wallerdev> yeah we had kind of a falling out though
<wallerdev> startup pressure haha
<agent_white> I could punch him for you if you want
<agent_white> I accept dogecoin
<wallerdev> that would be great
<wallerdev> lol
<agent_white> And high-fives
<agent_white> :D
gattie has quit [Read error: Connection reset by peer]
<wallerdev> how big is this company?
gattie has joined #ruby
b00stfr3ak has quit [Quit: leaving]
mr-foobar has quit [Quit: Leaving...]
Mars__ has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
<agent_white> Well basically this is a new branch they just started building up, so they have 5 designers right now and I'll be in the next group of 5 added to the team :)
hiyosi has joined #ruby
<agent_white> The other half is IT recruiting
Mars__ has joined #ruby
<agent_white> And I think they have ~8 recruiters
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
bwilson has joined #ruby
bking39116 has joined #ruby
bking39116 has quit [Client Quit]
codecop has quit [Remote host closed the connection]
jheg has joined #ruby
olekenneth has joined #ruby
endless_walrus has joined #ruby
p0sixpsc_ has quit [Quit: bye]
cocotton_ has joined #ruby
bking39116 has joined #ruby
sailias has joined #ruby
freerobby has quit [Quit: Leaving.]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mars__ has quit [Ping timeout: 245 seconds]
icarus has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
sanadora has joined #ruby
thams has joined #ruby
TeresaP has left #ruby [#ruby]
failshel_ has joined #ruby
ryanleesipes has quit [Remote host closed the connection]
Rollabunna has joined #ruby
cocotton has quit [Ping timeout: 246 seconds]
nanoyak_ has quit [Read error: Connection reset by peer]
Vile` has quit [Remote host closed the connection]
<sanadora> Hi! Is rubymonk a good resource for learning? Im also searching for a book on epub format, if possible
nanoyak has joined #ruby
hiyosi has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
<agent_white> sanadora: Yes, I found it awesome!
failshel_ has quit [Ping timeout: 246 seconds]
m8 has quit [Quit: Sto andando via]
Rollabunna has quit [Ping timeout: 245 seconds]
_lexjm has joined #ruby
silkfox has quit [Ping timeout: 258 seconds]
<sanadora> agent_white: thanks!
jheg has quit [Quit: jheg]
cocotton_ has quit [Remote host closed the connection]
threesixes has joined #ruby
cocotton has joined #ruby
Vile` has joined #ruby
wallerdev has quit [Quit: wallerdev]
cocotton has quit [Remote host closed the connection]
leehambley has quit [Quit: Linkinus - http://linkinus.com]
thams has quit [Quit: thams]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Inhaling_ has joined #ruby
thams has joined #ruby
agjacome has quit [Quit: leaving]
kenneth has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
andrewlio has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
Stalkr_ has quit [Quit: Leaving...]
benzrf is now known as benzrf|offline
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
maletor_ has joined #ruby
fmcgeough has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgcouk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bking39116 has quit [Quit: bking39116]
thams has quit [Quit: thams]
drawingthesun has quit [Ping timeout: 260 seconds]
doodlehaus has quit [Remote host closed the connection]
wallerdev has joined #ruby
j_mcnally has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
andrewjanssen has joined #ruby
fold has quit [Ping timeout: 245 seconds]
bking39116 has joined #ruby
<agent_white> sanadora: Other than that, just install pry (an improved irb) and keep it open to test code out in. :)
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor_ has quit [Ping timeout: 272 seconds]
drawingthesun has joined #ruby
<eam> is there a better way to get/set class variables than: module Foo; class Bar; @@baz; end; end
<eam> in 1.8.7
<eam> I don't have class_variable_*() methods
BrindleFly has joined #ruby
shackleford has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
linojon has quit [Quit: linojon]
shackleford has quit [Remote host closed the connection]
<sanadora> agent_white: that's great! I'll try it
<wallerdev> why are you on 1.8.7 lol
BrindleFly has quit [Client Quit]
shackleford has joined #ruby
<wallerdev> pretty sure it existed back then though?
chrishough has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
janmuffino has quit [Quit: Page closed]
InhalingPixels has joined #ruby
thams has joined #ruby
lemur has joined #ruby
sailias has quit [Quit: Leaving.]
_1_noelwelshman2 has joined #ruby
<_1_noelwelshman2> hello ruby
freerobby has quit [Quit: Leaving.]
shacklef_ has quit [Ping timeout: 245 seconds]
_1_noelwelshman2 has left #ruby [#ruby]
<eam> wallerdev: ooooh, it's only class_variable_get() that's missing?
<wallerdev> no theyre both there
<wallerdev> maybe youre using them wrong
<eam> NoMethodError: private method `class_variable_set' called for Foo::Bar:Class
manzo has quit [Ping timeout: 272 seconds]
Inhaling_ has quit [Ping timeout: 260 seconds]
thams has quit [Client Quit]
<eam> works in 2.x
bking39116 has quit [Quit: bking39116]
jerius has quit []
<eam> kinda pointless
lemur has quit [Ping timeout: 272 seconds]
<wallerdev> its private
<eam> yeah but then what's the use?
<wallerdev> as you can see from that error message
<wallerdev> so youd have to call it from inside the class
<wallerdev> or use .send(
<eam> which is pointless because once I'm in the class I can just touch the variable
<eam> directly
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
<wallerdev> just use send or open the class lol, not that big of a deal
bking39116 has joined #ruby
<wallerdev> like 6 extra letters to use send vs the 2.0 way
mtncode has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
thams has joined #ruby
easier has joined #ruby
BlkDynmt_ has joined #ruby
jimms has quit []
mpistone has joined #ruby
narcan has joined #ruby
BlkDynmt has quit [Ping timeout: 245 seconds]
Mars__ has joined #ruby
<eam> yeah I'm opening the class
<eam> just seems ... lame
dkphenom has joined #ruby
<eam> but I guess it's fixed in 2.x what with those methods no longer being private
PeterBoy has quit [Remote host closed the connection]
treehug88 has quit []
djstorm has quit [Ping timeout: 260 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
mclee has joined #ruby
sepp2k has joined #ruby
manzo has joined #ruby
sirene has joined #ruby
PeterBoy has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
klmlfl_ has joined #ruby
thams has quit [Quit: thams]
benzrf|offline is now known as benzrf
<agent_white> Anyone know of news on the rvm re-write?
jottr has quit [Ping timeout: 240 seconds]
shevy has quit [Quit: ""]
<Paradox> banister are you around?
Kricir has quit [Remote host closed the connection]
<Paradox> looks like he's away
klmlfl has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
pushnell has quit [Quit: pushnell]
klmlfl_ has quit [Ping timeout: 260 seconds]
thams has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mollitz has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<Lewix> do you guys have books that you could recommend to lead a team of dev
Hanmac has quit [Ping timeout: 260 seconds]
thams has quit [Client Quit]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerius has joined #ruby
timgauthier has joined #ruby
snath has quit [Ping timeout: 272 seconds]
thams has joined #ruby
nanoyak has joined #ruby
shevy has joined #ruby
jobewan has quit [Quit: Leaving]
thams has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thams has joined #ruby
ItSANgo has quit [Quit: Leaving...]
whiledev has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
cougarten has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
fabrice31 has joined #ruby
nhhagen has quit [Remote host closed the connection]
shock_one has joined #ruby
thams has quit [Client Quit]
willgo has joined #ruby
zorak8 has joined #ruby
shackleford has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
blackmes1 has joined #ruby
banister has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
Takle_ has quit [Remote host closed the connection]
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
mityaz has quit [Quit: See ya!]
_lexjm has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 272 seconds]
naw has quit []
ItSANgo has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
cirn0 has quit [Ping timeout: 260 seconds]
skammer has quit [Ping timeout: 240 seconds]
GinoMan has quit [Ping timeout: 255 seconds]
<agent_white> Books?
Hanmac has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 260 seconds]
orolo has joined #ruby
ndwhtlssthr has quit [Ping timeout: 258 seconds]
whiledev has quit [Quit: Bye!]
sinkensabe has joined #ruby
mollitz has joined #ruby
iamsaitam has joined #ruby
<sn0wb1rd> Has anybody used UTF8 encoding with StringScanner?
Azure has quit [Remote host closed the connection]
nhhagen has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
<centrx> Lewix, Here's something from a great author: http://paulgraham.com/makersschedule.html
slester has joined #ruby
<centrx> *an essay
ghr has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
<centrx> Lewix, Two major divisions of "lead dev" would be project management and people management
phutchins has quit [Ping timeout: 260 seconds]
<Lewix> centrx: thanks 'lll check it out
thams has joined #ruby
davasaurous has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
momomomomo has joined #ruby
perrier___ has quit [Read error: Connection reset by peer]
<palantir> Ruby documentation (http://www.ruby-doc.org/core-2.1.2/Proc.html#method-i-yield) seems to indicate that calling a proc with my_proc.call(params) is equivalentto my_proc(params), but this doesn't seem to be the case in practice, I get wrong number of arguments for something like: def stuff(x) Proc.new { x }. So how do I call a proc without using call as it states in the documentation?
<benzrf> palantir this is not Javascript
<benzrf> palantir: foo() is ALWAYS calling the foo method on the current object
<benzrf> palantir: methods and variables do not share a namespace
<benzrf> ruby is a lisp-2
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]
nhhagen has quit [Remote host closed the connection]
<palantir> benzrf: OK, that makes sense, thanks. The documentation listed call(), prc(), and () together so I thought they were equivalent
mleone has joined #ruby
<benzrf> nope
snath has joined #ruby
<benzrf> prc?
mikepack has quit [Remote host closed the connection]
icebourg has quit []
b00stfr3ak has joined #ruby
phoo1234567 has quit [Quit: Leaving]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
perrier has joined #ruby
perrier has quit [Remote host closed the connection]
<palantir> benzrf: From http://www.ruby-doc.org/core-2.1.2/Proc.html#method-i-yield : call(params,...) → obj prc[params,...} → obj (params,...) → obj are all listed with the same definition
perrier has joined #ruby
lemur has joined #ruby
<benzrf> palantir: oh
GhettoJava has quit [Quit: Leaving]
<benzrf> palantir: not .prc
<benzrf> what it illustrates is that u can do this:
<benzrf> >> proc {|n| n + 1}.call 3
<eval-in_____> benzrf => 4 (https://eval.in/194319)
<benzrf> or this
<benzrf> >> proc {|n| n + 1}[3]
<eval-in_____> benzrf => 4 (https://eval.in/194320)
<benzrf> or this
<benzrf> >> proc {|n| n + 1}.(3)
<eval-in_____> benzrf => 4 (https://eval.in/194321)
Spami has quit [Quit: This computer has gone to sleep]
<palantir> Ah, I get it, thanks!
ffranz has joined #ruby
krisquigley has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
narcan has joined #ruby
mikeg has quit [Remote host closed the connection]
<ericwood> I just wrote a thing that lets you play a roomba like a piano...
cougarten_ has joined #ruby
<ericwood> :o
lemur has quit [Ping timeout: 272 seconds]
sparrovv has quit [Remote host closed the connection]
a has joined #ruby
perrier has quit [Remote host closed the connection]
a is now known as Guest6956
sparrovv has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
mary5030_ has joined #ruby
cougarten has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
kedare has joined #ruby
saarinen has joined #ruby
<agent_white> !
<agent_white> Does it dance?
Sgeo has joined #ruby
<zenspider> ericwood: I've still been meaning to do that... but they stopped selling them on amazon RIGHT about the time we talked
mary5030 has quit [Ping timeout: 240 seconds]
perrier has joined #ruby
sparrovv has quit [Ping timeout: 258 seconds]
IcyDragon has quit [Ping timeout: 240 seconds]
Paul_McFreely has quit [Read error: Connection reset by peer]
IcyDragon has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Read error: Connection reset by peer]
Paul_McFreely has joined #ruby
omosoj has joined #ruby
cndiv has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
yfeldblum has joined #ruby
AlHafoudh has quit [Ping timeout: 260 seconds]
PaulePanter has quit [Remote host closed the connection]
doritostains has quit [Quit: doritostains]
Adran has quit [Excess Flood]
perrier has quit [Max SendQ exceeded]
NameNotFound has quit [Ping timeout: 272 seconds]
koell has quit [Ping timeout: 272 seconds]
jhass has quit [Ping timeout: 260 seconds]
asuka has quit [Ping timeout: 245 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
DefV has quit [Ping timeout: 260 seconds]
nevans has quit [Ping timeout: 272 seconds]
asuka has joined #ruby
DrForr has quit [Ping timeout: 272 seconds]
jhass has joined #ruby
Spami has joined #ruby
DefV has joined #ruby
tjr9898 has joined #ruby
NameNotFound has joined #ruby
koell has joined #ruby
andrewbredow has quit [Ping timeout: 272 seconds]
Adran has joined #ruby
DrForr has joined #ruby
tessi_zz has joined #ruby
perrier has joined #ruby
bmurt has quit []
cndiv has joined #ruby
perrier has quit [Read error: Connection reset by peer]
vallieres_ has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
ffranz has quit [Read error: Connection reset by peer]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
cjk101010 has quit [Ping timeout: 260 seconds]
perrier has joined #ruby
tectonic has quit []
andrewbredow has joined #ruby
BlkDynmt has joined #ruby
nevans has joined #ruby
BlkDynmt_ has quit [Ping timeout: 260 seconds]
kaspertidemann has quit []
AlHafoudh has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
PaulePanter has joined #ruby
mtncode has joined #ruby
Jarboe has joined #ruby
<multi_io> so, with rbenv, you'd normally have one gemset per installed ruby version?
<multi_io> (are they called gemsets?)
cjk101010 has joined #ruby
nanoyak has joined #ruby
<multi_io> i.e. one set of associated gems that are available in a ruby session
<zenspider> each ruby has it's own gem home, yes
mikeg has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
linojon has joined #ruby
<zenspider> `gem env home` to see each one.
<multi_io> zenspider: does rbenv also support using the same ruby with disjoint sets of gems?
<zenspider> rubygems supports it, so yes
<zenspider> you just set GEM_HOME and/or GEM_PATH
<zenspider> GEM_HOME is the only one who can write (install/remove)
iamsaitam has quit [Remote host closed the connection]
<multi_io> OK, I see
pencilcheck has joined #ruby
<multi_io> but rbenv doesn't seem to set those
thams has quit [Quit: thams]
rp__ has joined #ruby
<shevy> multi_io it should not be necessary or? if it installs into your home directory anyway
<multi_io> afaics it essentially prepends the bin/ directory of the ruby you're using (i.e. ~/.rbenv/versions/ruby-xxx/bin) to $PATH, which then leads ruby to set $: accordingly, so it'll find the installed gems
icarus has quit [Remote host closed the connection]
slester has quit [Quit: Quitte]
saarinen has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
kireevco1 has quit [Quit: Leaving.]
kireevco has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
sanadora has quit [Quit: sanadora]
GriffinHeart has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
orolo has quit [Quit: This computer has gone to sleep]
tvw has quit []
ixti has joined #ruby
jhass has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
skammer has joined #ruby
jhass has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
fold has joined #ruby
chipotle has joined #ruby
silkfox has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
<zenspider> multi_io: rbenv doesn't need to. It handles one thing and handles it well. If something else handles something (like ruby-build) rbenv doesn't do it
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
mikeg has quit [Remote host closed the connection]
<zenspider> multi_io: I would be wary of merging tho... binary gems will crash on you if you're not really careful
Rollabunna has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 272 seconds]
twobit__ has quit [Ping timeout: 272 seconds]
saarinen has quit [Read error: Connection reset by peer]
<zenspider> but doing something like `export GEM_PATH=~/.gem/shared` and ensuring you ONLY ever install pure-ruby gems in there should be mostly OK
jottr has joined #ruby
<zenspider> version specific syntax shit aside
orolo has joined #ruby
codeurge has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
SCHAAP137 has quit [Remote host closed the connection]
doritostains has joined #ruby
emocakes__ has joined #ruby
rimenes has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 272 seconds]
lolmaus__ has joined #ruby
twobit has joined #ruby
emocakes has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
linojon has quit [Quit: linojon]
saarinen has quit [Client Quit]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Helos has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
vieq has quit [Ping timeout: 272 seconds]
cndiv has joined #ruby
Helos has left #ruby [#ruby]
stunder has quit [Remote host closed the connection]
linojon has joined #ruby
sirene has quit [Quit: Saliendo]
fold has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
perrier has quit [Read error: Connection reset by peer]
cougarten_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 260 seconds]
melik_ has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Ping timeout: 258 seconds]
jaygen_ has joined #ruby
diegoviola has joined #ruby
ixti has joined #ruby
easier has quit [Remote host closed the connection]
erts has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
<multi_io> zenspider: so if GEM_PATH isn't set, does it default to $: or something?
anaeem1 has quit [Remote host closed the connection]
mikeg has joined #ruby
<zenspider> multi_io: it's much more complicated than that. rubygems overrides `require` and will go look across installed gems if the initial require has a load error
<multi_io> and what about if GEM_HOME isn't set?
<multi_io> zenspider: ah
<zenspider> GEM_HOME and GEM_PATH just extends where it looks when that load error happens
Lewix has quit [Remote host closed the connection]
<multi_io> that's interesting, I had been wondering about that earlier
vieq has joined #ruby
jaygen has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Remote host closed the connection]
RyanV has quit [Quit: Computer has gone to sleep.]
Asher has quit [Quit: Leaving.]
thagomizer has quit [Quit: Leaving.]
cndiv has quit [Ping timeout: 245 seconds]
<multi_io> so if you require 'bundler', its lib directory gets added to $:
Asher has joined #ruby
<multi_io> is that a specific bundler thing, or a rubygems thing?
glebm has quit [Ping timeout: 272 seconds]
<zenspider> that's rubygems.
<zenspider> go read the code
cougarten has joined #ruby
<zenspider> `more $(gem which rubygems/core_ext/kernel_require)`
PeterBoy has quit [Quit: Bye Bye]
shinobi_one has quit [Quit: shinobi_one]