apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
rbowlby__ has joined #ruby
srid-erc has joined #ruby
Muhannad has joined #ruby
Rollabunna has quit [Remote host closed the connection]
danzilio has quit [Quit: My computer has fallen asleep!]
rbowlby has quit [Ping timeout: 240 seconds]
danzilio has joined #ruby
pietr0 has quit [Ping timeout: 246 seconds]
juanpablo_______ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpablo_______ has quit [Ping timeout: 240 seconds]
_seanc_ has quit [Quit: _seanc_]
graydot has quit [Quit: graydot]
SuMo_D has joined #ruby
jesseherrick has quit [Ping timeout: 260 seconds]
tno has joined #ruby
Rickmasta has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jtdoncas has quit [Ping timeout: 265 seconds]
bb010g has joined #ruby
benlovell has joined #ruby
SuMo_D has quit [Ping timeout: 246 seconds]
bodgix has quit [Ping timeout: 255 seconds]
tuelz1 has joined #ruby
_seanc_ has joined #ruby
srid-erc has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
benlovell has quit [Ping timeout: 264 seconds]
TeresaP has joined #ruby
SuMo_D has joined #ruby
OrbitalKitten has joined #ruby
charliesome has joined #ruby
SuMo_D_ has joined #ruby
SuMo_D has quit [Remote host closed the connection]
NeverDie has joined #ruby
_blizzy_ has joined #ruby
OrbitalKitten has quit [Client Quit]
<TeresaP> I have another question about Arrays/Hashes :-|. If I have an array of hashes (some are nested), and I want to use a key to look up something that is in one hash and get the value from something that matches that key and is nested inside a different hash, what's the best way to go about that?
<shevy> I'd use a method that does that
tuelz1 has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
<shevy> or if you can get away, to use a hash
mleung has joined #ruby
<shevy> the method can ensure that you always get the desired result reliably
Lucky___ has joined #ruby
benlieb has joined #ruby
ivanf has quit [Ping timeout: 256 seconds]
ivanf has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
<TeresaP> shevy -- are you saying there's nothing out there that can do lookups so I should just write something
<shevy> you can always apply .select
<shevy> I like methods
JimmyNeutron has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
dorei has quit []
tuelz1 has joined #ruby
danzilio has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Quit: bonhoeffer]
<Ox0dea> >> foo = {a: {b: 1, c: 2}}; [foo[:a][:b], foo[:a][:c]] # TeresaP
<ruboto> Ox0dea # => [1, 2] (https://eval.in/409901)
unreal has quit [Ping timeout: 255 seconds]
<Ox0dea> But I realize now that I misunderstood the question.
nofxx has quit [Ping timeout: 244 seconds]
<TeresaP> Ox0dea I probably sucked at explaining it
mistym has quit [Remote host closed the connection]
nofxx has joined #ruby
jeremy04 has quit [Remote host closed the connection]
<Ox0dea> It really feels like these shouldn't all be in the same collection.
<TeresaP> For each article, I want to say match the article id with a given value to a "children" hash with that id, then get its title
tuelz1 has quit [Client Quit]
scripore has joined #ruby
<shevy> scary data
<TeresaP> haha
<TeresaP> It's proprietary so I had to mask some stuff
<TeresaP> But yes, rather annoying
<shevy> is the id unique?
abdulrehman has quit [Quit: AbdulRehman]
Musashi007 has quit [Quit: Musashi007]
<TeresaP> yep
<TeresaP> Sorry, getting called away. I'll be back in a bit
pengin has quit [Remote host closed the connection]
<shevy> I'd re-do the hash for id-based keys; I use that for my video collection... I number from 1 to ... dunno... 300 or so so far, and access via the number alone
benlieb has quit [Quit: benlieb]
drewo has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bodgix has joined #ruby
neoseeker has joined #ruby
bufferloss has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
tno has quit [Remote host closed the connection]
schaerli has joined #ruby
dgutierrez1287 has joined #ruby
lwu has joined #ruby
baweaver has joined #ruby
neoseeker has quit [Ping timeout: 244 seconds]
bufferloss has quit [Quit: Leaving]
rdema has quit [Ping timeout: 256 seconds]
rbowlby has joined #ruby
schaerli has quit [Ping timeout: 246 seconds]
neoseeker has joined #ruby
casadei_ has joined #ruby
Phrogz has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
werelivi_ has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 246 seconds]
rbowlby__ has quit [Ping timeout: 265 seconds]
RegulationD has quit [Remote host closed the connection]
neoseeker has quit [Client Quit]
casadei_ has quit [Ping timeout: 265 seconds]
j3r0 has quit [Quit: Leaving]
rdema has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
drewo has joined #ruby
bodgix has quit [Ping timeout: 240 seconds]
Azure has quit [Excess Flood]
michael_mbp has joined #ruby
Azure has joined #ruby
mase-chatter has quit [Remote host closed the connection]
woodruffw has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
swgillespie has joined #ruby
[k- has quit [Ping timeout: 250 seconds]
eggoez has quit [Ping timeout: 244 seconds]
mxrguspxrt has joined #ruby
eggoez has joined #ruby
rubynuby has joined #ruby
rubynuby has quit [Client Quit]
craysiii has joined #ruby
startupality has joined #ruby
mxrguspxrt has quit []
bufferloss has joined #ruby
rubynuby has joined #ruby
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubynuby has quit [Client Quit]
rubynuby has joined #ruby
werelivinginthef has left #ruby [#ruby]
rubynuby has left #ruby [#ruby]
Inside has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
Oka has quit [Quit: さようなら]
drewo has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
cappsio has left #ruby [#ruby]
dfockler has joined #ruby
bufferloss has quit [Quit: Leaving]
troulouliou_dev has quit [Quit: Leaving]
Cache_Money has joined #ruby
bmurt has joined #ruby
dc has joined #ruby
dfockler has quit [Ping timeout: 246 seconds]
rubynuby has joined #ruby
centrx has joined #ruby
mdavid613 has quit [Quit: Leaving.]
rubynuby is now known as asianMike
viralRF has quit [Quit: Leaving]
leitz has quit [Quit: Nappy time]
Musashi007 has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
asianMike has left #ruby [#ruby]
startupality has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
braincra- has joined #ruby
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
Mendenhall has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
cnngimenez has quit [Quit: Konversation terminated!]
Phrogz has quit [Read error: Connection reset by peer]
Phrogz has joined #ruby
michael_mbp has quit [Excess Flood]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
MAQ has joined #ruby
Phrogz has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
countryHick has quit [Quit: Connection closed for inactivity]
aiesec has joined #ruby
mleung has quit [Quit: mleung]
ichirin has joined #ruby
juanpablo_______ has joined #ruby
mdavid613 has joined #ruby
rbowlby has quit [Remote host closed the connection]
godd2 has joined #ruby
olistik has joined #ruby
<godd2> hey al
<godd2> all*
blue_deref has quit [Quit: bbn]
<craysiii> hoi
Yzguy has quit [Quit: Zzz...]
unreal has joined #ruby
juanpablo_______ has quit [Ping timeout: 256 seconds]
<MAQ> hello
rdema has quit [Ping timeout: 264 seconds]
olistik has quit [Ping timeout: 255 seconds]
Pisuke has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
eminencehc has quit [Remote host closed the connection]
Pisuke has quit [Read error: No route to host]
ichirin has quit [Quit: WeeChat 1.3-dev]
Pisuke has joined #ruby
rdema has joined #ruby
pwnd_nfsw has joined #ruby
godd2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<havenwood> maq: hi
godd2 has joined #ruby
mdavid613 has quit [Quit: Leaving.]
Pisuke has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
Sembei has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
godd2 has quit [Client Quit]
charliesome has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
godd2 has joined #ruby
x0f has quit [Ping timeout: 252 seconds]
Sembei has quit [Read error: No route to host]
rdema has quit [Ping timeout: 252 seconds]
Sembei has joined #ruby
benlieb has joined #ruby
godd2 has quit [Client Quit]
x0f has joined #ruby
rbowlby has joined #ruby
MyMind has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 255 seconds]
benlovell has joined #ruby
rdema has joined #ruby
MyMind has quit [Read error: No route to host]
j4cknewt has joined #ruby
Pisuke has joined #ruby
s2013 has joined #ruby
bronson has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
benlovell has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
tubuliferous has quit [Ping timeout: 272 seconds]
Pisuke has quit [Read error: No route to host]
Sembei has joined #ruby
kotk has joined #ruby
kotk_ has joined #ruby
kotk_ has quit [Client Quit]
kotk has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
curses has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
nateberkopec has quit [Ping timeout: 264 seconds]
Sembei has quit [Read error: Connection reset by peer]
sarkyniin has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 252 seconds]
MyMind has joined #ruby
kappy has joined #ruby
texasmade has joined #ruby
Musashi007 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
cornerma1 has joined #ruby
RegulationD has joined #ruby
Azure has joined #ruby
aiesec has quit [Ping timeout: 260 seconds]
curses has quit [Ping timeout: 256 seconds]
saddad has joined #ruby
MyMind has quit [Read error: No route to host]
aiesec has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
saddad has quit [Client Quit]
SuMo_D_ has quit [Remote host closed the connection]
saddad has joined #ruby
MyMind has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
towski_ has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
houhoulis has joined #ruby
saddad has quit [Client Quit]
saddad has joined #ruby
MyMind has quit [Read error: No route to host]
RegulationD has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
niiamon has joined #ruby
MyMind has joined #ruby
bruno-_ has quit [Ping timeout: 244 seconds]
MAQ has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
saddad has quit [Client Quit]
bonhoeffer has joined #ruby
x0f has quit [Ping timeout: 240 seconds]
kappy has quit [Quit: leaving]
saddad has joined #ruby
kappy has joined #ruby
kappy has quit [Client Quit]
kappy has joined #ruby
saddad has quit [Client Quit]
kappy has quit [Client Quit]
saddad has joined #ruby
MyMind has quit [Read error: No route to host]
Pisuke has joined #ruby
niiamon has quit [Ping timeout: 265 seconds]
eggoez has quit [Ping timeout: 240 seconds]
kappy has joined #ruby
x0f has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
SuMo_D has joined #ruby
Sembei has joined #ruby
<rehat> I'm using mechanize, does hitting 3k pages in 30 minutes seem long or could I be using my loops badly? lol
eggoez has joined #ruby
casadei_ has joined #ruby
aiesec has quit [Ping timeout: 272 seconds]
<centrx> rehat, Depends on how big the pages are, how fast the server is, network latency, etc.
<centrx> rehat, that's almost two pages a second, so not bad
Rickmasta has joined #ruby
aiesec has joined #ruby
<rehat> ic
Sembei has quit [Read error: No route to host]
michaeldeol has joined #ruby
kappy has quit [Quit: leaving]
kappy has joined #ruby
casadei_ has quit [Ping timeout: 252 seconds]
Sembei has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
Sembei has quit [Read error: No route to host]
MyMind has joined #ruby
juanpablo_______ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x0f has joined #ruby
MyMind has quit [Read error: No route to host]
lannonbr has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
juanpablo_______ has quit [Ping timeout: 246 seconds]
_seanc_ has quit [Quit: _seanc_]
benlovell has joined #ruby
MyMind has quit [Read error: No route to host]
Pisuke has joined #ruby
christiandsg has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
x0f has quit [Ping timeout: 272 seconds]
j4cknewt has quit [Remote host closed the connection]
arescorpio has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
x0f has joined #ruby
Pisuke has quit [Read error: No route to host]
x0f has quit [Changing host]
x0f has joined #ruby
SuMo_D has quit [Quit: Off into this... Real world place...]
Sembei has joined #ruby
braincra- has quit [Quit: bye bye]
scorp007 has joined #ruby
darkf has joined #ruby
<scorp007> I'm trying to make a hello-world ruby C application. I get an access violation. Is this valid code? https://gist.github.com/anonymous/fc3f502bbfc703da8a9d
Sembei has quit [Read error: No route to host]
fedexo has joined #ruby
MyMind has joined #ruby
fenjamin has joined #ruby
[k- has joined #ruby
lannonbr has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has quit [Read error: No route to host]
troulouliou_dev has quit [Quit: Leaving]
Respek has joined #ruby
MyMind has joined #ruby
_seanc_ has joined #ruby
x0f has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
MyMind has quit [Read error: No route to host]
_blizzy_ has joined #ruby
x0f has joined #ruby
MyMind has joined #ruby
aiesec has quit [Quit: WeeChat 0.4.2]
x0f_ has joined #ruby
aiesec has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MyMind has quit [Read error: No route to host]
yqt has quit [Ping timeout: 272 seconds]
prestorium has quit [Ping timeout: 250 seconds]
MyMind has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
christiandsg has quit [Remote host closed the connection]
bronson has joined #ruby
x0f has quit [Ping timeout: 256 seconds]
x0f_ has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
aiesec has quit [Client Quit]
hahuang61 has quit [Ping timeout: 240 seconds]
aiesec has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
MyMind has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
doertedev has quit [Quit: Lost terminal]
christiandsg has joined #ruby
_blizzy_ has joined #ruby
sdothum has quit [Ping timeout: 255 seconds]
MyMind has quit [Read error: No route to host]
rbowlby has quit []
Pisuke has joined #ruby
towski_ has joined #ruby
bufferloss has joined #ruby
Pisuke has quit [Read error: No route to host]
christiandsg has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Pisuke has joined #ruby
hahuang61 has joined #ruby
blue_deref has joined #ruby
gix has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 264 seconds]
Pisuke has quit [Read error: No route to host]
htmldrum has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
christiandsg has joined #ruby
tkuchiki has joined #ruby
Pisuke has joined #ruby
gix has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
Pisuke has quit [Read error: No route to host]
Sembei has joined #ruby
tkuchiki has quit [Remote host closed the connection]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
<[k-> Ox0dea!
Sembei has quit [Read error: Connection reset by peer]
Sembei has joined #ruby
rakm has joined #ruby
Sembei has quit [Read error: No route to host]
MyMind has joined #ruby
Respek has quit [Quit: Textual IRC Client: www.textualapp.com]
chinmay_dd has joined #ruby
swgillespie has joined #ruby
MyMind has quit [Read error: No route to host]
hahuang61 has joined #ruby
MyMind has joined #ruby
RobertBirnie has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has left #ruby [#ruby]
MyMind has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 252 seconds]
RobertBirnie has quit [Client Quit]
Musashi007 has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
MyMind has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
aiesec has quit [Changing host]
aiesec has joined #ruby
Rickmasta has joined #ruby
tubuliferous has joined #ruby
MyMind has quit [Read error: No route to host]
RickHull has left #ruby [#ruby]
MyMind has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
MyMind has quit [Read error: No route to host]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
arup_r has joined #ruby
MyMind has joined #ruby
ivanskie has joined #ruby
Kyuujitsu has joined #ruby
Vile` has joined #ruby
tjohnson has joined #ruby
MyMind has quit [Read error: No route to host]
hahuang61 has joined #ruby
MyMind has joined #ruby
theery has joined #ruby
Kyuujitsu has quit [Ping timeout: 256 seconds]
MyMind has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
Rixius has quit [Ping timeout: 265 seconds]
aiesec has quit [Quit: WeeChat 0.4.2]
ndrei has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
MyMind has quit [Read error: No route to host]
Rixius has joined #ruby
bluOxigen has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
Musashi007 has quit [Quit: Musashi007]
MyMind has joined #ruby
dc has quit [Remote host closed the connection]
ndrei has joined #ruby
schaerli has joined #ruby
aiesec has joined #ruby
user1138_ has joined #ruby
MyMind has quit [Read error: No route to host]
Vile` has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 246 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
MyMind has joined #ruby
Vile` has joined #ruby
schaerli has quit [Ping timeout: 256 seconds]
<aiesec> problem with rbenv, "rbenv install 2.2.2" gives me this
<aiesec> Usage: ruby-build [-kvp] <definition> <prefix>
<aiesec> ruby-build --definitions
<aiesec> whats that?
MyMind has quit [Read error: No route to host]
Pisuke has joined #ruby
hahuang61 has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lwu_ has joined #ruby
fedexo has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 265 seconds]
Feyn has joined #ruby
Pisuke has joined #ruby
<havenwood> aiesec: rbenv uses ruby-build to install rubies and it look like you're getting its help message
Musashi007 has joined #ruby
<havenwood> aiesec: check that you're using the latest versions of both
hahuang61 has quit [Ping timeout: 244 seconds]
casadei_ has joined #ruby
<arup_r> any reason to keep a `nil` inside it? does it make any sense ?
<havenwood> arup_r: nil, where?!
<arup_r> >> ruby 'date'; p Date::ABBR_MONTHNAMES
<ruboto> arup_r # => undefined method `ruby' for main:Object (NoMethodError) ...check link for more (https://eval.in/409929)
<havenwood> arup_r: huh?
<arup_r> >> require 'date'; p Date::ABBR_MONTHNAMES
<ruboto> arup_r # => [nil, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] ...check link for more (https://eval.in/409931)
Kyuujitsu has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
<arup_r> sorry for the first time.. :p
<aiesec> havenwood i followed the github guide and thats how i got, any tips how to fix it?
Channel6 has joined #ruby
<arup_r> It doesn't make any sense to have `nil`
theery has quit [Remote host closed the connection]
<havenwood> arup_r: Jan is 1.
kljk has joined #ruby
<arup_r> aww... that's why
<havenwood> >> [nil, "Jan", "Feb"][1]
<ruboto> havenwood # => "Jan" (https://eval.in/409932)
Pisuke has quit [Read error: No route to host]
<arup_r> havenwood, makes sense now.
Sembei has joined #ruby
<havenwood> aiesec: Try?: rbenv --debug install 2.2.2
<havenwood> aiesec: I think that's right at least, I don't actually use rbenv.
eggoez has joined #ruby
<aiesec> havenwood thanx
<havenwood> aiesec: I'd confirm that `rbenv --version` and `ruby-build` version are latest.
<havenwood> `ruby-build --version` i mean
blue_deref has quit [Quit: bbn]
<havenwood> that you're not getting an old install of one or the other
<havenwood> the error doesn't look familiar to me
kljk has quit [Client Quit]
casadei_ has quit [Ping timeout: 272 seconds]
<havenwood> aiesec: I'd just use ruby-install to install 2.2.2 for rbenv if I had to use rbenv: ruby-install --install-dir ~/.rbenv/versions/2.2.2 ruby 2.2.2
hahuang61 has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 250 seconds]
<havenwood> aiesec: Or if you want to get to the bottom of the issue, try the install directly with ruby-build.
<arup_r> any better way of this ?
<arup_r> >> require 'date'; p 1.upto(12).map { |n| [ "%02d" % n, Date::ABBR_MONTHNAMES[ n ] ] }
<ruboto> arup_r # => [["01", "Jan"], ["02", "Feb"], ["03", "Mar"], ["04", "Apr"], ["05", "May"], ["06", "Jun"], ["07", "J ...check link for more (https://eval.in/409937)
<arup_r> to produce the same output
Sembei has joined #ruby
curses has joined #ruby
jesseherrick has joined #ruby
juanpablo_______ has joined #ruby
curses has quit [Client Quit]
xcesariox has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Jester13 has joined #ruby
<havenwood> arup_r: One way: '01'.upto('12').zip Date::ABBR_MONTHNAMES.drop(1)
MyMind has joined #ruby
<arup_r> havenwood, I'll use your code.. as it is short code
<arup_r> thanks
hahuang61 has quit [Ping timeout: 256 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
juanpablo_______ has quit [Ping timeout: 244 seconds]
MyMind has quit [Read error: No route to host]
simplyianm has joined #ruby
theery has joined #ruby
MyMind has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MyMind has quit [Read error: Connection reset by peer]
fenjamin has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
Pisuke has joined #ruby
Pisuke has quit [Read error: No route to host]
<[k-> zip zips two arrays together
<[k-> make sure you understand it
<[k-> or else it is for nought
Kyuujitsu has quit [Ping timeout: 250 seconds]
<[k-> &ri Array#zip
Kyuujitsu has joined #ruby
Pisuke has joined #ruby
ponga has joined #ruby
<aiesec> i am in mainland china, i can't do "gem install" without getting "Errno::ECONNRESET: Connection reset by peer - SSL_connect.."
fgo has joined #ruby
<aiesec> posted #rubygems
Pisuke has quit [Read error: No route to host]
lwu_ has quit [Ping timeout: 265 seconds]
bmurt has quit []
<havenwood> aiesec: How'd you install Ruby? What version of Ruby? What version of RubyGems?
konsolebox has joined #ruby
Sembei has joined #ruby
Channel6 has quit [Quit: Leaving]
<havenwood> aiesec: Check `ruby -v` and `gem -v`?
casadei_ has joined #ruby
niiamon has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
<aiesec> havenwood now i got 2.2.2 from rbenv via "rbenv install 2.2.2"
<aiesec> my global is 2.2
bmcginty has quit [Quit: leaving]
<havenwood> aiesec: Which OS?
Kyuujitsu has joined #ruby
<aiesec> peppermind(ubuntu)
<aiesec> peppermint*
bmcginty has joined #ruby
<havenwood> aiesec: sudo apt-get install ca-certificates
<aiesec> its a fresh install via a usb for travel, ok will try that
Sembei has quit [Read error: No route to host]
<aiesec> i get this " Errno::ECONNRESET: Connection reset by peer - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/sinatra-1.4.6.gemspec.rz)
Sembei has joined #ruby
ledestin has joined #ruby
user1138_ has quit [Ping timeout: 255 seconds]
casadei_ has quit [Ping timeout: 240 seconds]
baweaver_ has joined #ruby
riotjones has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
charliesome_ has quit [Quit: zzz]
MyMind has joined #ruby
theery has quit [Remote host closed the connection]
jesseherrick has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
<havenwood> aiesec: Try installing again with the --verbose flag?
Kyuujitsu has quit [Ping timeout: 260 seconds]
baweaver_ has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
MyMind has joined #ruby
Trynemjoel has joined #ruby
<havenwood> aiesec: Looks like there's an issue between you and the fastly CDN. Gist your output from?: http://www.fastly-debug.com
<aiesec> the gist is ugly, you sure?
eggoez has joined #ruby
<aiesec> ewogICJnZW9pcCI6IHsKICAgICJjaSI6ICJIYW5nemhvdSIsCiAgICAic3QiOiAiMDIiLAogICAgImN0IjogIkNoaW5hIiwKICAgICJjbyI6ICJBUyIKICB9LAogICJwb3BMYXRlbmN5IjogewogICAgIm5ydCI6IDExNiwKICAgICJoa2ciOiA5MSwKICAgICJzaW4iOiAxODgsCiAgICAibGF4IjogMTk1LAogICAgImZyYSI6IDQxMQogIH0sCiAgInBvcEFzc2lnbm1lbnRzIjogewogICAgImFjIjogIml0bSIsCiAgICAiYXMiOiAiaXRtIiwKICAgICJkeSI6ICJucnQiCiAgfSwKICAicmVxdWVzdCI6IHsKICAgICJ0aW1lIjogIjIwMTUtMDgtMDFUMD
<aiesec> U6MTQ6MjUuMDAwWiIsCiAgICAiaG9zdCI6ICJ3d3cuZmFzdGx5LWRlYnVnLmNvbSIsCiAgICAiYWNjZXB0IjogInRleHQvaHRtbCxhcHBsaWNhdGlvbi94aHRtbCt4bWwsYXBwbGljYXRpb24veG1sO3E9MC45LGltYWdlL3dlYnAsKi8qO3E9MC44IiwKICAgICJ1c2VyYWdlbnQiOiAiTW96aWxsYS81LjAgKFgxMTsgTGludXggaTY4NikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVWJ1bnR1IENocm9taXVtLzQzLjAuMjM1Ny4xMzAgQ2hyb21lLzQzLjAuMjM1Ny4xMzAgU2FmYXJpLzUzNy4zNiIsCiAgICAiYWNjZXB0bGFu
<aiesec> Z3VhZ2UiOiAiZW4tVVMsZW47cT0wLjgiLAogICAgImFjY2VwdGVuY29kaW5nIjogImd6aXAiLAogICAgImZhc3RseXNlcnZlcmlwIjogIjEwMy4yNDUuMjIyLjY0IiwKICAgICJ4ZmYiOiAiIiwKICAgICJkYXRhY2VudGVyIjogIklUTSIsCiAgICAiYmFuZHdpZHRoX21icHMiOiAiNC4yNSIsCiAgICAicmVzb2x2ZXJfaXAiOiAiMjE4LjEwOC4yNDQuMjM0IiwKICAgICJyZXNvbHZlcl9hc19uYW1lIjogIkNOTklDLVdBU1UtQVAgV0FTVSBUViAmIENvbW11bmljYXRpb24gSG9sZGluZyBDby4sTHRkLixDTiIsCiAgICAicmVzb2x2ZXJfYXNfbnVtYm
<aiesec> VyIjogIjI0MTM5IiwKICAgICJyZXNvbHZlcl9iZ3BfcHJlZml4IjogIjIxOC4xMDguMjI0LjAvMTkiLAogICAgInJlc29sdmVyX2NvdW50cnlfY29kZSI6ICJDTiIsCiAgICAiY2xpZW50X2lwIjogIjIxOS44Mi41Ni4xMDEiLAogICAgImNsaWVudF9hc19uYW1lIjogIkNOTklDLVdBU1UtQVAgV0FTVSBUViAmIENvbW11bmljYXRpb24gSG9sZGluZyBDby4sTHRkLixDTiIsCiAgICAiY2xpZW50X2FzX251bWJlciI6ICIyNDEzOSIsCiAgICAiY2xpZW50X2JncF9wcmVmaXgiOiAiMjE5LjgyLjMyLjAvMTkiCiAgfQp9
Pisuke has joined #ruby
MyMind has quit [Read error: No route to host]
tmtwd has joined #ruby
theery has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
Jarboe has quit []
Kyuujitsu has quit [Ping timeout: 255 seconds]
Pisuke has joined #ruby
<[k-> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
Kyuujitsu has joined #ruby
yfeldblum has joined #ruby
xcesariox has quit [Ping timeout: 244 seconds]
<havenwood> aiesec: Hehe, by Gist I meant: https://gist.github.com
<havenwood> aiesec: Please paste links to Gists for more than three lines.
<havenwood> aiesec: You may need to start a support ticket with fastly or an issue on RubyGem's Github so they can check with fastly.
Pisuke has quit [Read error: No route to host]
<aiesec> havenwood sorry my mistake
Sembei has joined #ruby
yfeldblu_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
fedexo has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 250 seconds]
_seanc_ has quit [Quit: _seanc_]
fedexo has joined #ruby
Sembei has quit [Read error: No route to host]
Trynemjoel has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
niiamon has quit [Remote host closed the connection]
Sembei has joined #ruby
<havenwood> aiesec: no prob
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saddad has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has quit [Ping timeout: 272 seconds]
xcesariox has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
Sembei has quit [Read error: No route to host]
Kyuujitsu has joined #ruby
nofxx has joined #ruby
Sembei has joined #ruby
bruno- has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> aiesec: sudo apt-get -y install traceroute && traceroute rubygems.global.ssl.fastly.net
<havenwood> aiesec: ^ see what you get from a traceroute?
serivichi has joined #ruby
serivich has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: No route to host]
Kyuujitsu has joined #ruby
modern has quit [Ping timeout: 244 seconds]
MyMind has joined #ruby
<havenwood> aiesec: You might make a Gist of the traceroute and paste a link for #rubygems, though I'm not sure if anyone will be around before tomorrow.
modern has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
fedexo has quit [Ping timeout: 244 seconds]
MyMind has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
Pisuke has joined #ruby
_seanc_ has quit [Client Quit]
<havenwood> aiesec: Also check?: mtr rubygems.global.ssl.fastly.net
<havenwood> aiesec: If not already installed: sudo apt-get -y install mtr-tiny
Pisuke has quit [Read error: No route to host]
<havenwood> aiesec: If you have a chance you might check if it works on another network.
Pisuke has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Kyuujitsu has joined #ruby
bufferloss has quit [Quit: Leaving]
tubuliferous has joined #ruby
Pisuke has quit [Read error: No route to host]
Sembei has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
theery has quit [Remote host closed the connection]
Sembei has quit [Read error: No route to host]
tubuliferous has quit [Ping timeout: 265 seconds]
fedexo has joined #ruby
Sembei has joined #ruby
arescorpio has quit [Quit: Leaving.]
Kyuujitsu has quit [Ping timeout: 265 seconds]
schaerli has quit [Ping timeout: 244 seconds]
niiamon has joined #ruby
hahuang61 has joined #ruby
Kyuujitsu has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
lennae has joined #ruby
Sembei has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sembei has quit [Read error: No route to host]
serivichi has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
charliesome has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Sembei has joined #ruby
Kyuujitsu has joined #ruby
riotjones has joined #ruby
hahuang61 has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
htmldrum has joined #ruby
Sembei has quit [Read error: No route to host]
MyMind has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
Kyuujitsu has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
MyMind has quit [Read error: No route to host]
ledestin_ has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
MyMind has joined #ruby
ledestin has quit [Ping timeout: 252 seconds]
s1kx has quit [Read error: Connection reset by peer]
<havenwood> !unmute agent_white
s1kx has joined #ruby
MyMind has quit [Read error: No route to host]
sross_work|2 has joined #ruby
MyMind has joined #ruby
charliesome has quit [Quit: zzz]
sross07 has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
Kyuujitsu has joined #ruby
MyMind has quit [Read error: No route to host]
M-_mis has joined #ruby
Pisuke has joined #ruby
riffraff has joined #ruby
bronson has joined #ruby
Zai00 has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Pisuke has quit [Read error: No route to host]
Kyuujitsu has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
Kyuujitsu has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
konsolebox has quit [Remote host closed the connection]
Pisuke has quit [Read error: No route to host]
juanpablo_______ has joined #ruby
mistermo_ has quit [Ping timeout: 256 seconds]
mhrc has joined #ruby
Pisuke has joined #ruby
i8igmac has joined #ruby
hahuang61 has joined #ruby
RegulationD has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
juanpablo_______ has quit [Ping timeout: 255 seconds]
Sembei has joined #ruby
Pisuke has quit [Read error: No route to host]
riffraff has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 265 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
chinmay_dd has quit [Quit: See ya!]
Zai00 has quit [Quit: Zai00]
hahuang61 has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
safeforge has joined #ruby
towski_ has quit [Remote host closed the connection]
MyMind has quit [Read error: No route to host]
last_staff has joined #ruby
nikhgupta has joined #ruby
Kyuujitsu has joined #ruby
MyMind has joined #ruby
davedev24 has quit []
MyMind has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
rehat has quit [Remote host closed the connection]
casadei_ has joined #ruby
Pisuke has quit [Read error: No route to host]
fedexo has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
Pisuke has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
hahuang61 has joined #ruby
TeresaP has quit [Quit: Page closed]
casadei_ has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
dfockler has joined #ruby
dvb_ua has joined #ruby
texasmade has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
lennae has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
towski_ has joined #ruby
user1138 has joined #ruby
dfockler has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
Kyuujitsu has joined #ruby
hahuang61 has joined #ruby
chris2 has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
nikhgupta has quit [Remote host closed the connection]
arup_r has joined #ruby
RobertBirnie has joined #ruby
Musashi007 has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
ruby-lang851 has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
doodleha_ has joined #ruby
towski_ has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 256 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
krz has joined #ruby
djbkd_ has joined #ruby
<agent_white> It is quiet in here.
ruby-lang851 has quit [Ping timeout: 246 seconds]
<arup_r> Why this method giving syntax error in Production https://gist.github.com/aruprakshit/7e2785977511c0e72862#file-payment_controller_notworking-rb-L43 but working fine this way
<arup_r> For me both method are same..
Zai00 has joined #ruby
<arup_r> In development it is fine.. but in production one is throwing error, and the other is ok
fedexo has joined #ruby
<arup_r> I don't find any reason of it...
<[k-> home/ubuntu/gobgob-ror/releases/20150801065400/app/controllers/payments_controller.rb:46: syntax error, unexpected '\n', expecting => (SyntaxError)
<[k->         from /home/ubuntu/gobgob-ror/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
<[k-> ignore the second line
<arup_r> why the syntax error?
<arup_r> nothing wrong with the method
<arup_r> it is pretty ok
Kyuujitsu has quit [Remote host closed the connection]
<arup_r> :/
Kyuujitsu has joined #ruby
lxsameer has joined #ruby
<arup_r> more embrassing is it did not complain development environment.. but it does in Production
<[k-> wait wait om on my phone
Zai00 has quit [Client Quit]
<arup_r> but I don't why the error was coming..
<[k-> Ruby treats the arguments as a hash
<[k-> so you can't end with :gateway name
<arup_r> yes,, but why it is doing
<arup_r> this is not convincing... at all
<[k-> ?try
<ruboto> Why don't you try it and see for yourself?
<arup_r> I think it is a bug (logically)
<[k-> >> def foo *args;end; foo(a: ?b, c: ?d, :e)
<ruboto> [k- # => /tmp/execpad-96909ecaace7/source-96909ecaace7:2: syntax error, unexpected ')', expecting => (https://eval.in/409983)
workmad3 has joined #ruby
sepp2k has joined #ruby
<[k-> you aren't always right
Kyuujitsu has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
Kyuujitsu has joined #ruby
<arup_r> So in method argument passing, after hash I can't pass normal argument ? Is it ?
<arup_r> [k-, I think so from the behavior..
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> you cant use the syntatic sugar like that
doodleha_ has joined #ruby
<[k-> to do that, you need to surround it with {}
<[k-> >> def foo *args;end; foo(key: "value", key2: "value", :randomThing)
<ruboto> [k- # => /tmp/execpad-16895f47121b/source-16895f47121b:2: syntax error, unexpected ')', expecting => (https://eval.in/409987)
doodleha_ has quit [Read error: Connection reset by peer]
Mendenhall has joined #ruby
<arup_r> ok
<[k-> >> def foo *args;end; foo(key: "value", key2: "value", :randomThing => "test")
<ruboto> [k- # => nil (https://eval.in/409991)
workmad3 has quit [Ping timeout: 256 seconds]
<[k-> do you see the difference
<arup_r> The very important thing is.. It didn't throw in developement mode, but shouting in production.. that was strange
funfunctor has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<arup_r> any way [k- thanks
Kyuujitsu has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
<[k-> you reordered the arguments
doodleha_ has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
<arup_r> sorry ?
<[k-> working and not_working are different
mhrc has quit []
<[k-> i assume one is dev and one is production, no?
<arup_r> no.. not working code was fine in my dev environment.. but the same code was buggy in production..
<arup_r> that was strange
<arup_r> later i changed the code.. while trying to fix it..
<[k-> it should have crashed
doodleha_ has quit [Read error: Connection reset by peer]
Kyuujitsu has joined #ruby
fantazo has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
Aleserche has joined #ruby
tubuliferous has joined #ruby
Kyuujitsu has quit [Ping timeout: 252 seconds]
doodleha_ has joined #ruby
schaerli has joined #ruby
tmtwd has joined #ruby
Kyuujitsu has joined #ruby
<arup_r> It did not.. that's why I was confused.. it took time to fix
serivich has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
serivichi has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
schaerli has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
lennae has joined #ruby
simplyianm has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 240 seconds]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
Inside has joined #ruby
Inside has joined #ruby
Antiarc has joined #ruby
serivichi has quit [Ping timeout: 240 seconds]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 272 seconds]
serivich has joined #ruby
Kyuujitsu has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
tjohnson has quit [Quit: Connection closed for inactivity]
Anne has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
lennae has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
yardenbar has joined #ruby
doodleha_ has joined #ruby
jaimessi has joined #ruby
Aleserche has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 264 seconds]
Kasey has quit [Ping timeout: 246 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Ilyas has joined #ruby
Aleserche has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
Aleserche has quit [Client Quit]
Kyuujitsu has joined #ruby
Aleserche has joined #ruby
djbkd_ has quit []
Aleserche has quit [Client Quit]
Ilyas_ has joined #ruby
Aleserche has joined #ruby
Ilyas has quit [Ping timeout: 255 seconds]
doodleha_ has joined #ruby
khebbie has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 265 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
polyrob has quit [Ping timeout: 260 seconds]
Kyuujitsu has quit [Ping timeout: 272 seconds]
Kyuujitsu has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
Ilyas_ has quit [Ping timeout: 265 seconds]
last_staff has quit [Quit: last_staff]
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
polyrob has joined #ruby
Musashi007 has quit [Quit: Musashi007]
chipotle has quit [Quit: cheerio]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
speakingcode has joined #ruby
Kyuujitsu has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
doodleha_ has joined #ruby
jenrzzz has joined #ruby
funfunctor has quit [Ping timeout: 265 seconds]
yardenbar has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
funfunctor has joined #ruby
doodleha_ has joined #ruby
auld has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
ledestin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
Kyuujitsu has joined #ruby
Anne has quit [Ping timeout: 244 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
krz has quit [Ping timeout: 264 seconds]
doodleha_ has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
Kyuujitsu has joined #ruby
auld has quit [Quit: Textual IRC Client: www.textualapp.com]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
charliesome has joined #ruby
charliesome has quit [Client Quit]
Anne has joined #ruby
hahuang61 has joined #ruby
Annie has joined #ruby
Annie has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 240 seconds]
funfunctor has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 260 seconds]
doodleha_ has joined #ruby
goldfax has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Anne has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
goldfax has quit [Client Quit]
lkba has joined #ruby
htmldrum has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
jenrzzz has joined #ruby
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
quimrstorres has joined #ruby
casadei_ has joined #ruby
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
hahuang61 has joined #ruby
Anne has joined #ruby
Kyuujitsu has joined #ruby
Anne has quit [Max SendQ exceeded]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
DJSpies has quit [Ping timeout: 246 seconds]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
Anne has joined #ruby
bodgix has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
i8igmac has quit [Quit: Leaving]
skade has joined #ruby
hahuang61 has joined #ruby
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 246 seconds]
craysiii has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
Jester13 has quit [Ping timeout: 272 seconds]
doublemalt_ has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 256 seconds]
doodleh__ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
serivich has joined #ruby
schaerli has joined #ruby
doodleh__ has quit [Read error: Connection reset by peer]
TomyLobo has joined #ruby
<TomyLobo> hi
<TomyLobo> i installed ruby using rvm and it's all working nicely
michael_mbp has quit [Excess Flood]
funfunctor has joined #ruby
bodgix has quit [Ping timeout: 265 seconds]
<TomyLobo> i can install most gems fine, but installing the "rerun" gem results in the error "/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)"
<TomyLobo> i dont get why it's going to ruby 1.9.1 there
jenrzzz has quit [Ping timeout: 255 seconds]
<TomyLobo> maybe sudo filters out whatever rvm adds
Kyuujitsu has joined #ruby
michael_mbp has joined #ruby
bodgix has joined #ruby
htmldrum has joined #ruby
doodleha_ has joined #ruby
sevenseacat has joined #ruby
<shevy> TomyLobo that sounds as if you have a debian ruby
doodleha_ has quit [Read error: Connection reset by peer]
<TomyLobo> shevy, close, ubuntu :)
k3asd` has joined #ruby
<shevy> yeah debian-base
<TomyLobo> hmm i'll try sudo rvm do gem install
houhoulis has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 256 seconds]
<shevy> if you don't need the debian ruby you could remove it
<shevy> it apparently finds the wrong ruby version, can you invoke the rvm "gem env" command?
Kyuujitsu has joined #ruby
<TomyLobo> i probably need it for some base system stuff
skade has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
<ruboto> TomyLobo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ec97935b582f49453baf
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<shevy> yeah you can see it
<shevy> GEM PATHS
<shevy> - /home/vagrant/.rvm/gems/ruby-2.1.5
<shevy> - /home/vagrant/.rvm/gems/ruby-2.1.5@global
<shevy> does not mention /usr/lib/ruby/1.9.1
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
tvw has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
<apeiros> TomyLobo: no sudo with rvm
<TomyLobo> apeiros, so how do i install gems globally?
doodleha_ has quit [Read error: Connection reset by peer]
niiamon has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
niiamon has joined #ruby
niiamon has quit [Remote host closed the connection]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
zz_Outlastsheep has quit [Ping timeout: 246 seconds]
<apeiros> TomyLobo: with rvm you usually do a user install of ruby and hence don't install gems globally either
Kyuujitsu has joined #ruby
<TomyLobo> i see
<TomyLobo> ok, i'll try that
hahuang61 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros> and yes, if you do `sudo gem` instead of just `gem`, it'll not use your rvm's ruby
ttilley has quit [Quit: Leaving...]
<apeiros> that "/usr/lib/ruby" path is a tell. it should be something like "/home/YOURNAME/.rvm/rubies/ruby-VERSION/…"
Trynemjoel has quit [Quit: Quitting]
<firoxer> What about rvmsudo?
<firoxer> Is it evil or...?
<apeiros> I haven't used it, so can't tell you anything about it
<apeiros> #rvm can tell you more
<TomyLobo> oh great, now my part of my .rvm dir belongs to root
tubuliferous has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
doodleha_ has joined #ruby
<TomyLobo> however i managed to do that :)
Trynemjoel has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
<firoxer> I only have systems where I am the only user so to me it makes sense to use rvmsudo
lkba has quit [Ping timeout: 272 seconds]
<firoxer> Since I never hear of people using it I thought it was bad or something
<apeiros> firoxer: on systems with only one user, there's no need to use sudo at all just for using ruby
<TomyLobo> apeiros, i think he means the only person using the system
<apeiros> except maybe for interaction with your package manager for external dependencies like imagemagick etc.
<TomyLobo> not the only unix user
<firoxer> TomyLobo, that's right
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros> TomyLobo: yes? that's how I understood it.
<firoxer> I like to have both my personal user and www-data be able to use the gems
chrisco has joined #ruby
<shevy> I think you can use/require the gems anyway
tubuliferous has quit [Ping timeout: 240 seconds]
<firoxer> shevy: without changing PATHs?
hahuang61 has joined #ruby
<shevy> well, if you have more than one ruby version then you may also have a different set of gems
doublemalt_ is now known as DoubleMalt
<shevy> such as TomyLobo seems to have :)
christiandsg has quit [Read error: Connection reset by peer]
<firoxer> Oh, right
<firoxer> Good point :)
<TomyLobo> shevy, with little intention :)
chrisco has left #ruby [#ruby]
serivichi has joined #ruby
ponga has quit [Quit: Leaving...]
hahuang61 has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
bruno- has joined #ruby
leafybasil has joined #ruby
Aleserche has quit [Ping timeout: 256 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
Elbichejo has joined #ruby
schaerli has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
bizportal has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
lordkryss has joined #ruby
drizz has quit [Remote host closed the connection]
hahuang61 has joined #ruby
drizz has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
Elbichejo has quit [Quit: • IRcap • 8.72 •]
Asher has quit [Ping timeout: 246 seconds]
nikhgupta has joined #ruby
skade has joined #ruby
bolar has joined #ruby
texasmade has quit [Ping timeout: 252 seconds]
Outlastsheep has joined #ruby
<Outlastsheep> Quick question: Would Ruby have difficulty opening/closing 17MB files?
bolar has quit [Client Quit]
<sevenseacat> wouldnt think so
<Outlastsheep> Oh god d- this is painful.
CustosLimen has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
bnizzle has joined #ruby
lkba has joined #ruby
<shevy> Outlastsheep how do you access the file? File.read or File.binread?
<shevy> or File.readlines :)
Aleserche has joined #ruby
startupality has joined #ruby
apfeluser has joined #ruby
Trynemjoel has joined #ruby
<Outlastsheep> Oh, I don't read it, shevy.
<Outlastsheep> Just writing.
<Outlastsheep> Opening it in Append mode and adding lines.
simplyianm has joined #ruby
<Outlastsheep> There's one strange thing though.
texasmade has joined #ruby
<Outlastsheep> I'm running an IRC bot that logs the channel. It opens a file in append-mode, and closes it every 6 minutes so the changes go through by reopening it. Now recently I've gotten a terrible error again. Or should I say 'no error' since the bot just disconnects and the Ruby script never realises that it disconnected.
<Outlastsheep> I think it's either the server it's running on being a dick, IRC being a dick, or the I/O system being a dick.
hahuang61 has quit [Ping timeout: 240 seconds]
simplyianm has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
<[k-> &ri IO#flush
<Outlastsheep> [k-: does that mean the file on disk updates with what Ruby's written into it?
<[k-> yes
hahuang61 has joined #ruby
<Outlastsheep> Huh. I'll try that.
schaerli has joined #ruby
OrbitalKitten has joined #ruby
startupality has quit [Quit: startupality]
jimms has joined #ruby
charliesome has quit [Quit: zzz]
rdark has joined #ruby
OrbitalKitten has quit [Client Quit]
bodgix has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
casadei_ has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
vickleton has joined #ruby
zz_Outlastsheep has joined #ruby
Outlastsheep has quit [Quit: Page closed]
zz_Outlastsheep is now known as Outlastsheep
casadei_ has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
radgeRayden has joined #ruby
troulouliou_dev has joined #ruby
bodgix has joined #ruby
chris2 has joined #ruby
Trynemjoel has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
edwinvdgraaf has joined #ruby
hahuang61 has joined #ruby
niiamon has joined #ruby
charliesome has quit [Quit: zzz]
nikhgupt has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
nikhgupta has quit [Ping timeout: 265 seconds]
startupality has joined #ruby
texasmade has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
Trynemjoel has joined #ruby
trouloulioud_dev has joined #ruby
leesharma has joined #ruby
leafybasil has joined #ruby
troulouliou_dev has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Outlastsheep is now known as zz_Outlastsheep
leesharma has quit [Ping timeout: 265 seconds]
leafybasil has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
Trynemjoel has joined #ruby
sdothum has joined #ruby
serivichi has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
tkuchiki has joined #ruby
startupality has quit [Quit: startupality]
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
serivichi has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
Janno has quit [Remote host closed the connection]
ht__ has joined #ruby
Trynemjoel has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
niiamon has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Kyuujitsu has joined #ruby
<shevy> hmmm
Matthews_ has joined #ruby
schaerli has joined #ruby
Silox| has joined #ruby
<[k-> hmmm
<shevy> would a Dir[path_to_the_gem+'**/**.rb'] call for a given gem, if it has a lot of .rb files, work if one wants to require all those various .rb files?
workmad3 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Ping timeout: 246 seconds]
<[k-> i have no idea what '**' does!
<apeiros> shevy: it's **/*.rb
<apeiros> ** is for recursive dirs, not for files
Trynemjoel has joined #ruby
<apeiros> and while it might work, I wouldn't use that
<shevy> hmm
skade has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
Rickmasta has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
sepp2k has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
niiamon has joined #ruby
bruno- has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
funfunctor has quit [Read error: Connection reset by peer]
funfunctor has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
Kyuujitsu has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 244 seconds]
serivichi has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 256 seconds]
Kalov has quit []
serivich has joined #ruby
casadei_ has joined #ruby
leafybasil has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
livathinos has quit []
tubuliferous has joined #ruby
safeforge has quit [Remote host closed the connection]
schaerli has joined #ruby
Zackio has quit [Remote host closed the connection]
casadei_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
bizportal has quit []
tubuliferous has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Kyuujitsu has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 260 seconds]
safeforge has joined #ruby
Zackio has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
FernandoBasso has joined #ruby
polysics has joined #ruby
tvw has quit []
leafybasil has quit [Remote host closed the connection]
prestorium has joined #ruby
ndrei has joined #ruby
elfuego has quit [Quit: elfuego]
lxsameer has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Aleserche has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
tylersmith has joined #ruby
khebbie has joined #ruby
allcentury has joined #ruby
hahuang61 has joined #ruby
schaerli has quit [Remote host closed the connection]
stardiviner has joined #ruby
postmodern has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 256 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
varun_wadhwani has joined #ruby
krz has joined #ruby
dgutierrez1287 has joined #ruby
f4cl3y has joined #ruby
varun_wadhwani has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
CloCkWeRX has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
safeforge has quit []
sarkyniin has joined #ruby
ndrei has joined #ruby
jimms has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Derasi has quit [Quit: No Ping reply in 180 seconds.]
epochwolf has quit [Ping timeout: 244 seconds]
hanmac has quit [Remote host closed the connection]
asi_ has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
epochwolf has joined #ruby
Trynemjoel has joined #ruby
whowhat has joined #ruby
<whowhat> hey guys i need some help im trying to learn ruby adn keep getting erroe
<whowhat> error
hanmac has joined #ruby
<[k-> fire away
<whowhat> is it ok to pastebin ?
<[k-> use gist.github.com
<[k-> with your code and the full error
j3r0 has joined #ruby
abdulrehman has joined #ruby
<ruboto> whowhat, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/90330450c4564af96ec2
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<hanmac> whowhat: just "nokogiri" is enough
v2px has joined #ruby
phutchins has joined #ruby
jimms has joined #ruby
pengin has joined #ruby
<whowhat> nokogiri a common error ?
fgo has quit [Quit: WeeChat 1.1.1]
<v2px> ohai. A while ago I printed a hash to a logfile using pp, now I want to read it in again, what would be the best way to do this?
dorei has joined #ruby
<whowhat> hanmac: do you have any idea of what it would be ?
Trynemjoel has quit [Ping timeout: 250 seconds]
<hanmac> whowhat: reguire "nokogiri"
<whowhat> i have installed nokogiri
<whowhat> by using gem install nokogiri
<hanmac> whowhat: you dont get it, your require is just wrong
Trynemjoel has joined #ruby
<shevy> whowhat you use one "nokogiri/" too much in your require statement
phutchins has quit [Ping timeout: 250 seconds]
<whowhat> hanmac: what is a "require" and how would i fix it ?
<shevy> oh windows
<shevy> whowhat if you start irb.exe, require 'nokogiri' works ?
<hanmac> hm i tihnk he did install the wrong nokogiri or did used it wrong
ixti has quit [Ping timeout: 252 seconds]
<hanmac> shevy require nokogiri does require a file like "nokogiri/nokogiri" but it doesnt found the file
<whowhat> shevy: no that doesn't work
ndrei has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
abdulrehman has quit [Quit: AbdulRehman]
startupality has joined #ruby
fantazo has joined #ruby
pengin has quit [Remote host closed the connection]
<shevy> hmm
<agent_white> Somejuan said... no, no rvm, chruby. Is this true?
<shevy> how did you install nokogiri?
bodgix1 has joined #ruby
grios has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
<whowhat> shevy i done it via gem install nokogiri
[k-_ has joined #ruby
<shevy> this is strange
<shevy> if there was no error then it should have installed properly
<whowhat> shevy i will show you the install
<ruboto> whowhat, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4751b8abe5289c589dd4
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
lordkryss has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prestorium has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
leesharma has joined #ruby
funfunctor has quit [Ping timeout: 244 seconds]
_5moufl has quit [Ping timeout: 255 seconds]
domgetter has joined #ruby
_5moufl has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
leesharma has quit [Ping timeout: 250 seconds]
abara has joined #ruby
<abara> hi guys. i getting this error https://dpaste.de/uHdE when running bundle install on a project
scripore has joined #ruby
<hanmac> abara: what is your os?
<apeiros> ?guys abara
<ruboto> abara, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<apeiros> abara: seems like you're missing the 'make' command
Trynemjoel has joined #ruby
<apeiros> "sh: make: command not found"
<apeiros> you probably need some kind of dev package for your distro
<abara> apeiros: how f*** ok
<abara> apeiros: sorry for the mistake :/
<hanmac> apeiros: i will call you all my "buddies" now, and if feminists are against that than i cant help them
Igorshp has joined #ruby
abdulrehman has joined #ruby
<abara> ruboto: sorry about that too. i will try to remember this grammar tip.
Igorshp has quit [Remote host closed the connection]
<abara> thanks for help folks
<[k-_> buddy has a male connotation
<apeiros> ?justabot abara
<ruboto> abara, I'm just a bot. You don't need to address me.
<whowhat> has anyone happened to figure out my issue :(
banister has quit [Remote host closed the connection]
<apeiros> whowhat: not on windows, sorry.
banister has joined #ruby
<apeiros> [k-_: you sure? not a native speaker myself, but I see male & female translations
jimms has quit [Remote host closed the connection]
f4cl3y has quit [Ping timeout: 244 seconds]
<whowhat> i think i might do a fresh install
<domgetter> whowhat: Have you added gem 'nokogiri' to your Gemfile in your Rails app? Also, try asking over in #rubyonrails to get more pointed Rails help
Igorshp has joined #ruby
<domgetter> apeiros: 'guys' is both male and female as well in common usage.
<apeiros> ?guys2 domgetter
<ruboto> domgetter, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<whowhat> domgetter: im only new, so i would have no idea how to do that ?
<apeiros> domgetter: and if you want to discuss it -> #ruby-offtopic
<[k-_> apeiros: he was just explaining that guys and buddies have male connotations
<apeiros> oh, already included in that response, hah
<apeiros> [k-_: this applies to you too
hahuang61 has joined #ruby
<[k-_> i wasn't using it to refer to a specific group of people!
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> [k-_: the discussing part
<hanmac> thats what feminists do, they prevent that someone else can to talk to eachother ...
<apeiros> !kick hanmac OT
hanmac was kicked from #ruby by ruboto [OT]
hanmac has joined #ruby
<apeiros> you can very well discuss it. but not here.
nikhgupt has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
whowhat has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
gwendall has joined #ruby
Igorshp has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
leesharma has joined #ruby
sevenseacat has quit [Quit: .]
allcentury has quit [Ping timeout: 256 seconds]
domgetter has joined #ruby
bustrarm has joined #ruby
<domgetter> apeiros: well now hold on a second, you're the one who brought it up. It doesn't seem very 'decent' to bring something up and then say "no you can't talk about that" when someone responds. But I'll stop talking about it if you want me to.
DJSpies has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prestorium has joined #ruby
<apeiros> !ban domgetter !T 1h told you to move it to #ruby-offtopic
domgetter was banned on #ruby by ChanServ [domgetter!*@*]
domgetter was kicked from #ruby by ChanServ [Banned: told you to move it to #ruby-offtopic]
startupality has joined #ruby
blueOxigen has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
busterarm has quit [Ping timeout: 265 seconds]
victortyau has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
dimasg has joined #ruby
Aleserche has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
<agent_white> Did...
<agent_white> hanmac just get kicked?
dagda1 has joined #ruby
Oka has joined #ruby
startupality has quit [Quit: startupality]
tubuliferous has joined #ruby
<[k-_> ?ot agent_white
<ruboto> agent_white, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<agent_white> [k-_: I will be there to discuss this further. Thank you.
phutchins has joined #ruby
<[k-_> you are already there :D
<agent_white> [k-_: I wasn't. Now I am. Anyways, this is offtopic so lets move it to OT.
lxsameer has quit [Quit: Leaving]
casadei_ has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 255 seconds]
jgt1 has quit [Quit: WeeChat 1.1.1]
codecop has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
banister has quit [Read error: Connection reset by peer]
skade has joined #ruby
iateadonut has joined #ruby
otisZart has joined #ruby
iateadonut has quit [Client Quit]
ruurd has joined #ruby
<TomyLobo> i'm using a vagrant box (host is win7, guest is ubuntu) to develop ruby stuff. i found this "rerun" tool, which monitors a directory for changes
<TomyLobo> now the problem is, my stuff is on a vagrant shared folder and that doesnt seem to work with the notification mechanism that rerun uses
abara has quit [Ping timeout: 265 seconds]
<TomyLobo> can someone recommend an alternative?
Trynemjoel has quit [Ping timeout: 250 seconds]
banister has joined #ruby
Trynemjoel has joined #ruby
Oka has quit [Quit: さようなら]
Oka has joined #ruby
FernandoBasso has quit [Ping timeout: 240 seconds]
Oka has quit [Client Quit]
Oka has joined #ruby
chills42 has joined #ruby
_Aleserche_ has joined #ruby
lkba_ has joined #ruby
startupality has joined #ruby
bustrarm is now known as busterarm
konsolebox has joined #ruby
Aleserche has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
dimasg has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
imfilp has quit [Quit: Connection closed for inactivity]
dimasg has joined #ruby
niiamon has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
juanpablo_______ has joined #ruby
chills42 has quit [Remote host closed the connection]
prestorium has joined #ruby
Trynemjoel has joined #ruby
<TomyLobo> i went with the NppFTP Notepad++ plugin in order to have the files on an actual linux partition
ruurd has quit [Quit: ZZZzzz…]
<TomyLobo> i have another question: is there a prettier way to write "directories.include?(path)"?
<TomyLobo> something more like "path in directories"? :)
<adaedra> You could also directly work on a Linux system, through a VM or physically
<TomyLobo> adaedra, it's a VM already
Feyn has quit [Quit: Leaving]
<TomyLobo> but i wont run an X in there
<adaedra> That's what I meant by “directly”
<adaedra> :)
<adaedra> `directories.include? path` seems good enough for me, what are you trying to do?
wprice has quit [Quit: wprice]
<[k-_> path in directories?
<[k-_> that is odd
<[k-_> i think in is reserved in ruby anyway
<[k-_> also, infix methods arent supported by ruby
<adaedra> what is reserved?
<[k-_> a keyword
<[k-_> reserved actually means "kept specially for a particular person."
<adaedra> ah, thought you were referring to the first line
juanpablo_______ has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
Oka has quit [Quit: さようなら]
Oka has joined #ruby
Oka has quit [Client Quit]
Oka has joined #ruby
Oka has quit [Client Quit]
havenwood has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
polysics has quit []
ponga has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
dorei has quit []
Oka has joined #ruby
schaerli has joined #ruby
sphex has quit [Ping timeout: 246 seconds]
Oka has quit [Client Quit]
abdulrehman has quit [Quit: AbdulRehman]
tennis_ has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
niiamon has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fenjamin has joined #ruby
leat1 has quit [Remote host closed the connection]
fenjamin has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
freerobby has joined #ruby
leat1 has joined #ruby
<TomyLobo> what's a decent free ide with no relation to eclipse and autocomplete for ruby
<adaedra> If you really want an IDE, there's RubyMine
<adaedra> But generally, people do without IDE
<TomyLobo> hmm but that's not free
<havenwood> TomyLobo: It's more of a text editor but you might try Atom with some plugins.
<adaedra> Ah yes, free.
abdulrehman has joined #ruby
<adaedra> It is if you're student.
<TomyLobo> i'm not :)
<[k-_> you dont need an ide in ruby
<adaedra> Get an editor and setup it up
hahuang61 has quit [Ping timeout: 252 seconds]
<[k-_> trust me
<TomyLobo> [k-_, but then how will i know which methods the string class has?
<adaedra> Documentation!
<[k-_> &ri String
<TomyLobo> yeah without going to the docs each time :)
<[k-_> >> String.methods(false)
<ruboto> [k-_ # => [:try_convert] (https://eval.in/410066)
<adaedra> And I have yet to find an autocompletion that works correctly in Ruy
<adaedra> Ruby*
<[k-_> >> String.instance_methods(false)
<ruboto> [k-_ # => [:<=>, :==, :===, :eql?, :hash, :casecmp, :+, :*, :%, :[], :[]=, :insert, :length, :size, :bytesize, ...check link for more (https://eval.in/410067)
<TomyLobo> things like .eql? arent terribly memorable either :)
<adaedra> It comes with the time
<adaedra> And you have ri command
<adaedra> not only in this channel, in your shell too :)
<TomyLobo> meaning another shell
<TomyLobo> i need Kate :P
<adaedra> eh
trouloulioud_dev has quit [Quit: Leaving]
<adaedra> I know it
ruurd has joined #ruby
pandaant has joined #ruby
<adaedra> I'm more a VIM user myself though
<TomyLobo> it has a terminal plugin
<adaedra> And lots of open terminals :)
schaerli has quit [Remote host closed the connection]
<TomyLobo> yeah i dont even have a tabbed terminal
<TomyLobo> it's horrible
khebbie has joined #ruby
startupality has joined #ruby
<adaedra> I don't either
Trynemjoel has quit [Ping timeout: 256 seconds]
tmtwd has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
<TomyLobo> hmm there is map but not filter
gwendall has quit [Remote host closed the connection]
<adaedra> Look Enumerable
<[k-_> &ri Array#select
<TomyLobo> hmmm there's collect... what's the differnt to map?
Trynemjoel has joined #ruby
<TomyLobo> difference*
tennis_ has quit [Remote host closed the connection]
<adaedra> collect is the same as map
<[k-_> yup, there are numerous methods that do the same thing but under a different name in ruby
<TomyLobo> odd, it usually says "foo is an alias of bar" in the manual if that's the case
<[k-_> inconsistency, i guess
gamename has joined #ruby
<adaedra> In the doc, they're together in the same block
dimasg has quit [Ping timeout: 252 seconds]
<adaedra> &ri Array#collect
schaerli has joined #ruby
dfockler has joined #ruby
hahuang61 has joined #ruby
<[k-_> yup, they are explained together using similar examples as well
<[k-_> as seen in Enumerable#collect
sarkyniin has joined #ruby
_Aleserche_ has quit [Ping timeout: 256 seconds]
pandaant has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
hahuang61 has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
centrx has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 252 seconds]
_Aleserche_ has joined #ruby
hahuang61 has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
k3asd` has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
leafybasil has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
khebbie has joined #ruby
cornerma1 has joined #ruby
<TomyLobo> "x.each { |p| puts p }" works, "x.each &puts" just outputs empty lines. what am i doing wrong?
casadei_ has joined #ruby
<adaedra> &:puts
<[k-_> &:puts shouldn't work too
<TomyLobo> that's a method pointer, right?
<TomyLobo> the error looks like it is :)
<adaedra> ah yes, derp
<centrx> x.each(&:puts) calls y.puts on each member y of x
<shevy> nah
<shevy> foo = method(:bla)
<adaedra> I read too fast once again
ruurd has quit [Quit: ZZZzzz…]
<centrx> puts p != p.puts
<agent_white> I give up.
<shevy> lol ... what kind of documentation does it have
<TomyLobo> so how do i refer to puts properly?
<[k-_> { |p| puts p }
<TomyLobo> "meth == other_meth"? crystal much? :)
<TomyLobo> [k-_, no direct way?
<shevy> the problem is that it wants an argument
<centrx> You can add a method on the class of elements in x
<shevy> and there currently is no way for & to pass an argument in that call
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
<centrx> class String; def puts; puts self; end; end
<centrx> much monkey though
bruno- has quit [Read error: Connection reset by peer]
<[k-_> puts = -> x { Kernel.puts x }
<shevy> much centrx
<[k-_> i think that would work?
<centrx> many guys
skade has quit [Read error: Connection reset by peer]
<agent_white> Done shitting in offtopic. #ruby needs new ops. Love you enough to believe you can do better when it comes to ops here. This channel is not what it used to be... not ruby. -- "Matz is nice, so we are nice.".
jonee has joined #ruby
<[k-_> agent_white: please do not discuss that too here
<hanmac> checkout the #display method ,P
<[k-_> >> puts = -> x { Kernel.puts x }; %w[a b c].each &puts
<ruboto> [k-_ # => a ...check link for more (https://eval.in/410108)
casadei_ has quit [Ping timeout: 265 seconds]
<[k-_> you dont even need the : now!
schaerli has joined #ruby
leesharma has joined #ruby
<agent_white> [k-_: Don't discuss #ruby in #ruby?
<agent_white> Nah meng.
ruurd has joined #ruby
<[k-_> agent_white: the sentence above can be treated as trying to sow discord
ynroot has joined #ruby
<[k-_> which is against the rules
<agent_white> [k-_: Oh no!
workmad3 has joined #ruby
<agent_white> Luckily I didn't say "you guys". Otherwise I'd be banned.
troulouliou_dev has joined #ruby
<agent_white> ...
<busterarm> dude
<busterarm> come on
<busterarm> this is not on topic
<agent_white> Nah I'm done.
<shevy> yeah guys get banned!
<busterarm> clearly not
<apeiros> !ban agent_white good !P You tried hard. Congrats, you got your wish.
<Rinzlit> agent_white: you wanna talk about things in private?
<agent_white> apeiros: <3
<apeiros> !ban agent_white !P You tried hard. Congrats, you got your wish.
agent_white was kicked from #ruby by ChanServ [Banned: You tried hard. Congrats, you got your wish.]
<busterarm> man that was just asking for it
<Rinzlit> apeiros, he just seemed upset .-.
apfeluser has quit [Ping timeout: 252 seconds]
<busterarm> he was unhappy with the result of an hour-long discussion about it in OT
<apeiros> Rinzlit: he can be upset wherever. if he can't pull himself together and behave here, then good riddance.
<busterarm> so throw a tantrum...
<busterarm> (╯°□°)╯︵ ┻━┻
sphex has joined #ruby
apfeluser has joined #ruby
<centrx> apeiros, That doesn't sound very inclusive
<Rinzlit> R.I.P. agent_white Q_Q
<Coraline> Being inclusive doesn't mean tolerating problem people.
<Rinzlit> Well time to go back on topic of ruby
<Rinzlit> I bought a Ruby on Rails course
<centrx> Coraline, Order requires excluding people according to some standard, but that doesn't mean it's inclusive.
<Rinzlit> I should probably finish learning ruby first but I'm really impatient so I'm going to just try RoR's anyway
<[k-_> guys is only frowned upon when it is used to refer to #ruby as a whole when it actually does not
<apeiros> ok, PSA: discussing and evolving channel policy happens in #ruby-community. non-ruby talk in #ruby-offtopic.
<apeiros> anybody continuing here will get the boot from me.
<apeiros> and don't come crying. I made myself pretty clear.
bodgix1 has left #ruby [#ruby]
<apeiros> and centrx, that includes obviously inflammatory comments like your "apeiros, That doesn't sound very inclusive"
workmad3 has quit [Ping timeout: 252 seconds]
<apeiros> I will not tolerate that kind of shit anymore.
Trynemjoel has quit [Ping timeout: 250 seconds]
<apeiros> /PSA
<busterarm> you mean in #ruby, right?
<busterarm> can we still say that in OT? :D
rdark has quit [Quit: leaving]
<apeiros> correct
<busterarm> cool
<apeiros> I don't police #ruby-offtopic. and I hope I never have to (probably silly to hope for that)
htmldrum has quit [Ping timeout: 240 seconds]
<apeiros> #ruby-community follows the same policies as #ruby.
<centrx> Calling someone out for incorrect terminology is not inflammatory
Trynemjoel has joined #ruby
khebbie has quit [Quit: Textual IRC Client: www.textualapp.com]
abdulrehman has quit [Quit: AbdulRehman]
<shevy> ban centrx!
<[k-_> ?ot centrx
<ruboto> centrx, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<apeiros> centrx: don't test my limits. I'm short on them today.
khebbie has joined #ruby
<busterarm> shevy come back
<adaedra> shevy: you know you can just ignore DeBot and all message containing its name
<busterarm> i'm sorry :(
<apeiros> centrx: and no, enforcing channel policy is not OT. it's part of channel maintenance.
<shevy> adaedra truthfully I don't think I ignore anything or anyone
<centrx> Am I allowed to respond?
<apeiros> centrx: in #ruby-offtopic
<TomyLobo> i have no idea what's going on
<shevy> yeah that happens when we don't talk about ruby TomyLobo
<TomyLobo> so, talk about ruby more, then?
<shevy> yes
<centrx> ^ smart guy
<centrx> oh crap
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
<apeiros> TomyLobo: oh, please do. that'd make for a nice and welcome change :)
jimms has joined #ruby
<Rinzlit> apeiros how did you learn Ruby?
<Rinzlit> Is that OT? O_o
<[k-_> grey area
FernandoBasso has quit [Quit: May the force be with you.]
centrx has joined #ruby
bruno- has joined #ruby
<apeiros> Rinzlit: look, OT is tolerated. but once you're told by an op that it's too much and to move on, respect that.
<apeiros> I learned ruby from pickaxe, zenspiders quickref, reading the whole core docs, writing code, asking questions here.
<centrx> #ruby can be, or at least used to be, very off-topic when there is no Important Business to discuss
tubuliferous has joined #ruby
<centrx> but this special issue tends to be not really friendly off-topic but arguing
schaerli has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
<apeiros> there are topics known to escalate quickly. context matters.
The_Phoenix has quit [Quit: Leaving.]
<centrx> Yeah, like PHP
lannonbr has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
jesseherrick has joined #ruby
jimms has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
fantazo has quit [Quit: Verlassend]
<busterarm> reading the docs super important :)
<busterarm> not in the RTFM sense but as a reference
<busterarm> i use the docs every day on the job
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 246 seconds]
Muhannad has joined #ruby
dagda1 has joined #ruby
joneshf-laptop has quit [Ping timeout: 265 seconds]
stamina has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
cornerman has quit [Quit: leaving]
Trynemjoel has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
<centrx> busterarm, Please don't use lowercase 'i'. Keep a measure of professionalism and decorum. Thanks.
leesharma has quit [Ping timeout: 246 seconds]
khebbie has quit [Remote host closed the connection]
cornerman has joined #ruby
skade has joined #ruby
Trynemjoel has joined #ruby
[k-_ has quit [Remote host closed the connection]
leesharma has joined #ruby
willywos has joined #ruby
apfeluser has quit [Quit: Leaving]
apfeluser has joined #ruby
[k-_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<apeiros> busterarm: I just read all of core to get an idea what's around. it proved very valuable.
<apeiros> also it made me look the docs up a lot less :D
__Aleserche__ has joined #ruby
<busterarm> centrx: ...what?
jimms has joined #ruby
<busterarm> apeiros: I definitely agree there too
joneshf-laptop has joined #ruby
<busterarm> i just do it to make sure there isn't a better method I'm forgetting. I know the limitations of my own memory :D
<apeiros> !ban centrx !T 1d I made myself very clear that I wouldn't tolerate such shit anymore
centrx was banned on #ruby by ChanServ [centrx!*@*]
centrx was kicked from #ruby by ChanServ [Banned: I made myself very clear that I wouldn't tolerate such shit anymore]
AlexRussia has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
_Aleserche_ has quit [Ping timeout: 256 seconds]
theery has joined #ruby
allcentury has joined #ruby
Trynemjoel has joined #ruby
theery has quit [Remote host closed the connection]
ttilley has quit [Quit: Leaving...]
freerobby has joined #ruby
theery has joined #ruby
theery has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
Trynemjoel has joined #ruby
andersoldahl has joined #ruby
andersoldahl has quit [Client Quit]
bodgix has quit [Ping timeout: 246 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
<pontiki> hm
Trynemjoel has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby
simplyianm has joined #ruby
Trynemjoel has joined #ruby
juanpablo_______ has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
gwendall has quit [Ping timeout: 240 seconds]
simplyianm has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
juanpablo_______ has quit [Ping timeout: 256 seconds]
twistedpixels_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
lkba has joined #ruby
j4cknewt has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
bruno- has joined #ruby
j4cknewt has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
troulouliou_dev has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
diegoviola has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
twistedpixels has joined #ruby
jonee has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
FernandoBasso has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
livathinos has quit []
airchat4 has joined #ruby
christiandsg has joined #ruby
airchat4 has left #ruby [#ruby]
Channel6 has joined #ruby
leesharma has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
ttilley has joined #ruby
Trynemjoel has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
jonee has quit [Ping timeout: 252 seconds]
leesharma has joined #ruby
ttilley has quit [Ping timeout: 240 seconds]
skade has quit [Read error: Connection reset by peer]
ynroot has quit [Ping timeout: 244 seconds]
Kalov has joined #ruby
allcentury has joined #ruby
eggoez has joined #ruby
lannonbr has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
Trynemjoel has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
<diegoviola> how does capybara compares to cucumber? I'm familiar with capybara but I have no clue about cucumber
<pontiki> they are different things
<diegoviola> "Cucumber is a tool to write human-readable tests that are mapped into code"
<diegoviola> that's vague
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> cucumber can use capybara the same way rspec can
mistermocha has joined #ruby
troulouliou_dev has joined #ruby
ivanskie has joined #ruby
<diegoviola> ok
<diegoviola> ty
hololeap has joined #ruby
blue_deref has joined #ruby
<pontiki> cucumber uses the language Gherkin, which in turn requires you to write a bunch of matching regexps and then ruby code to actually perform the tests
christia_ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
mistermocha has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 246 seconds]
christia_ has quit [Read error: Connection reset by peer]
Pyrotecnix has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
chihhsin has quit [Ping timeout: 272 seconds]
Trynemjoel has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
<diegoviola> pontiki: ok thanks
serivich has quit [Ping timeout: 246 seconds]
bnizzle has left #ruby [#ruby]
christiandsg has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
leesharma has quit [Ping timeout: 246 seconds]
ttilley has joined #ruby
skade has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
darkf has quit [Quit: Leaving]
Trynemjoel has joined #ruby
freerobby has quit [Quit: Leaving.]
ttilley has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bizportal has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
chipotle has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
casadei_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Jester13 has joined #ruby
mleung has joined #ruby
jimms has quit [Remote host closed the connection]
RegulationD has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
ttilley has joined #ruby
ttilley has quit [Client Quit]
FernandoBasso has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
christiandsg has joined #ruby
casadei_ has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
leesharma has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
ruby-lang476 has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
mleung has quit [Quit: mleung]
<shevy> does anyone happen to make good use of include Singleton?
ndrei has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
davedev24 has joined #ruby
aryaching has joined #ruby
mleung has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
Channel6 has quit [Quit: Leaving]
saddad has joined #ruby
Trynemjoel has joined #ruby
<Rinzlit> Ruby can be used to replace PHP in websites right?
tubuliferous has joined #ruby
<Rinzlit> Or rather Ruby On Rails
domgetter has joined #ruby
geefolk has joined #ruby
michael_mbp has joined #ruby
<[k-_> well, yes and no
<shevy> Rinzlit you can use good old .cgi script just fine
geefolk has quit [Max SendQ exceeded]
<Rinzlit> .cgi scripts?
<[k-_> dont go there
<shevy> yeah just like .php; with cgi-error you get the errors displayed too just as in php
geefolk has joined #ruby
<Rinzlit> -confused-
<cscheib> ignore that
mleung has quit [Quit: mleung]
<cscheib> I mean, sure, you can run just about anything as CGI
christia_ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
<cscheib> but... rails or sinatra is what lots (most?) use to make ruby webapps
<Rinzlit> Ermm whats the RoR's channel?
<[k-_> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> Rinzlit: Here's a bit on CGI and Ruby that you might glean something from: http://www.mikeperham.com/2015/01/05/cgi-rubys-bare-metal/
tubuliferous has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
<havenwood> Rinzlit: See also: https://github.com/migrs/rack-server-pages
stamina has joined #ruby
jonee has joined #ruby
<havenwood> Rinzlit: TL;DR: "CGI certainly isn’t the right solution for every problem: each request starts a new Ruby process so there’s a small bit of overhead but for systems which expect little traffic but require maximum reliability, it’s something worth considering."
jimms has joined #ruby
<shevy> yay!
<shevy> another cgi dude! \o/ \o/ \o~
<[k-_> shevy!
<havenwood> Rinzlit: The typical Ruby way is to make a Rack app, usually using a Rack adapter like Rails, Sinatra, Roda or Lotus, etc.
Trynemjoel has quit [Ping timeout: 250 seconds]
<shevy> havenwood I notice you are much more coherent... that means you must have had at least one coffee already!
<havenwood> shevy: I think I'm on cup five!
<shevy> hehe
<pontiki> ENOTENOUGHCOFFEEE
<[k-_> EMRCOF
Trynemjoel has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
symm- has quit [Ping timeout: 256 seconds]
swills has quit [Quit: leaving]
Kyuujitsu has quit [Quit: leaving]
senayar has joined #ruby
<arup_r> shevy, I am done with PhP :/\:
<shevy> arup_r forever - or until the next assignment :)
<shevy> havenwood, for some reason, whenever I see a picture such as this one here http://i.imgur.com/h1W5V8W.jpg it reminds me of you and I don't know why!
<arup_r> no idea..... :(
[H]unt3r has joined #ruby
<shevy> well perhaps it's a good trend. more porting going on towards ruby, rather than in the back direction towards php
quimrstorres has joined #ruby
<arup_r> hahaha
jesseherrick has quit [Ping timeout: 246 seconds]
Pupeno has quit [Quit: Leaving...]
Trynemjoel has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
Trynemjoel has joined #ruby
jbw has quit [Read error: Connection reset by peer]
jonee has quit [Ping timeout: 244 seconds]
victortyau has quit [Quit: Leaving]
chinmay_dd has joined #ruby
geefolk has quit [Quit: Leaving]
nateberkopec has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
quimrstorres has quit [Remote host closed the connection]
<shevy> manual requires ...
<shevy> I need to find a better way
saddad has joined #ruby
<shevy> interesting... rack uses predominantly autoload()
quimrstorres has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
jbw has joined #ruby
k3asd` has joined #ruby
<ytti> swift isn't bad at all
<ytti> been writing some code yesterday and today (Swift2) and so far it does not annoy me
<ytti> not that it really seems to bring anything dramatic to the table
skade has quit [Read error: Connection reset by peer]
christia_ has quit [Remote host closed the connection]
<shevy> but the name implies how agile it is!
Trynemjoel has joined #ruby
freerobby has quit [Quit: Leaving.]
jesseherrick has joined #ruby
<[k-_> because obj-c is a pain in the butt
<ytti> curious to see how the linux port will turn out
<ytti> swift seems very painless to rubyist
juanpablo_______ has joined #ruby
<ytti> otoh i'm not sure if you can do serious iOS development with it
Fire-Dragon-DoL has joined #ruby
<ytti> as probably not many swift libraries out there
<adaedra> you can use any Obj-C library, so it's ok
<ytti> but i guess you can still use obj-c libraries with some header file
<ytti> can you use c libraries?
<ytti> i'm hankering for functional iOS SSH client
<adaedra> Swift has been made to be fully usable with obj-c, in both ways
<ytti> and if/when openssh guys release libopenssh, that might be it
<adaedra> wut
jonee has joined #ruby
<adaedra> there's already a libssh
Zai00 has joined #ruby
mleung has joined #ruby
<miah> i've been told that this is among the best ios ssh clients; https://panic.com/prompt/
juanpablo_______ has quit [Ping timeout: 250 seconds]
<miah> i wont store private keys on my idevice though =)
swgillespie has joined #ruby
skade has joined #ruby
Musashi007 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
ruurd has joined #ruby
Zai00 has quit [Quit: Zai00]
jonee has quit [Ping timeout: 244 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
decaff has joined #ruby
senayar has quit [Remote host closed the connection]
lampd1 has quit [Remote host closed the connection]
zacstewart has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
Trynemjoel has joined #ruby
lampd1 has joined #ruby
mleung has quit [Quit: mleung]
segfalt has quit [Quit: segfalt]
houhoulis has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
freerobby has joined #ruby
zacstewart has quit [Remote host closed the connection]
devyn has quit [Remote host closed the connection]
zacstewart has joined #ruby
bmurt has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Vile` has joined #ruby
Trynemjoel has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
leesharma has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 255 seconds]
jonee has joined #ruby
decaff has quit [Remote host closed the connection]
decaff has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
bmurt has quit []
hahuang61 has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
mices has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<mices> what's the rails channel please i'm sorry i forgot
<[k-_> #rubyonrails
<mices> i thought it was rubyrails
perturbation has joined #ruby
<mices> ok thanks
<[k-_> your welcome :3
scripore has joined #ruby
RobertBirnie has joined #ruby
zacstewart has quit [Remote host closed the connection]
BTRE has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Max SendQ exceeded]
ynroot has joined #ruby
decaff has quit [Ping timeout: 246 seconds]
<adaedra> I think it's "you're"
hahuang61 has quit [Ping timeout: 246 seconds]
prestorium has quit [Ping timeout: 264 seconds]
Gadgetoid has left #ruby [#ruby]
spider-mario has joined #ruby
BTRE has joined #ruby
<ruurd> if it's its it's its if it's it's it's it is
eminencehc has joined #ruby
casadei_ has joined #ruby
simplyianm has joined #ruby
BTRE has quit [Client Quit]
<shevy> even the french auto-correct poor [k- now
leesharma has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
daynaskully has quit [Quit: quit]
simplyianm has quit [Ping timeout: 246 seconds]
casadei_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
hahuang61 has joined #ruby
jesseherrick has quit [Quit: leaving]
devdazed has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<adaedra> ruurd: now say that 5 times faster
allcentury has quit [Ping timeout: 255 seconds]
skade has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
blue_deref has quit [Quit: bbn]
troulouliou_dev has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
abdulrehman has joined #ruby
jonee has quit [Ping timeout: 240 seconds]
<Scriptonaut> Hey guys, from ruby I'd like to spawn a shell session, but I'd like it to remain open. I want to be able to call things like, 'cd ~' from the shell, and then have the working directory actually change, so then if I later call 'ls', it will show that I'm in ~. How can I do this? When I use %x or system, it doesn't preserve anything
<Scriptonaut> and I'd like to get the output of the shell
bmurt has joined #ruby
riotjone_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
skade has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
quimrstorres has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 255 seconds]
abdulrehman has quit [Client Quit]
quimrstorres has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
abdulrehman has joined #ruby
drewo has joined #ruby
eminencehc has quit [Remote host closed the connection]
riotjone_ has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
<Scriptonaut> [k-_: none of these preserve state though
<shevy> Scriptonaut perhaps via popen
edwinvdgraaf has joined #ruby
seduce has joined #ruby
BTRE has joined #ruby
<Scriptonaut> maybe you guys can suggest a better way to do what I want. I want to be able to navigate and control a remote server via my irc bot
<Scriptonaut> so users can do: .cd ~
<Scriptonaut> then .pwd, and it will print ~
scripore has joined #ruby
senayar has joined #ruby
bigmac has joined #ruby
<[k-_> Dir.chdir?
blue_deref has joined #ruby
<Scriptonaut> seems like a roundabout way, is there no way to spawn a shell and then put input into STDIN?
<al2o3-cr> that sounds dangerous!
<Scriptonaut> ya, I'm only doing it with a few trusted individuals
<[k-_> yes it does
mjuszczak has joined #ruby
<Scriptonaut> I wouldn't spawn that bot in here :P
<[k-_> it sounds very dangerous
<[k-_> also, state is bad
<Scriptonaut> I have essentially zero state besides my database on this project, but I need it for this
<[k-_> it ruins lives!
scripore has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
radgeRayden has quit [Read error: Connection reset by peer]
<[k-_> cd ~ && pwd?
mices has quit []
<Scriptonaut> yes, I want to be able to do that
<Scriptonaut> I want to be able to do all commands
<Scriptonaut> including sudo
leesharma has joined #ruby
<Scriptonaut> I just wanna feed all input prepending with a . to the server's shell
baweaver has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
zacstewart has joined #ruby
swgillespie has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
seduce has quit [Ping timeout: 246 seconds]
<Scriptonaut> I wonder if I could take user input and Shell.send(their_text.to_sym)
terlar has joined #ruby
Trynemjoel has joined #ruby
terlar has quit [Client Quit]
terlar has joined #ruby
abdulrehman has quit [Quit: AbdulRehman]
terlar has quit [Client Quit]
edwinvdg_ has joined #ruby
khebbie has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
houhoulis has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
juanpablo_______ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
freerobby has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
chinmay_dd has quit [Quit: See ya!]
rehat has joined #ruby
Trynemjoel has joined #ruby
daynaskully has joined #ruby
fantazo has quit [Quit: Verlassend]
freerobby has quit [Client Quit]
daynaskully is now known as Guest17350
leat2 has joined #ruby
saddad has quit [Ping timeout: 256 seconds]
CloCkWeRX has left #ruby [#ruby]
sedduc has joined #ruby
edwinvdg_ has quit []
<sedduc> q
<rehat> anyone familiar with Nokigiri? I'm trying to get an html element before a specific text but not sure how to parse element
<sedduc> which is the best place to learn ruby ?
juanpablo_______ has quit [Ping timeout: 272 seconds]
<ljarvis> rehat could you be more specific?
abdulrehman has joined #ruby
<baweaver> sedduc: what have you found so far?
leat1 has quit [Ping timeout: 244 seconds]
Janno has joined #ruby
<sedduc> code acedmy
<sedduc> ruby monk
<sedduc> ayn more needed/
zacstewart has quit [Remote host closed the connection]
<shevy> #ruby
<[k-_> ?books
<ruboto> I don't know anything about books
<[k-_> :(
dh64 has joined #ruby
<baweaver> ljarvis: how does one define commands on that again?
nofxx has quit [Ping timeout: 240 seconds]
<ljarvis> you need to be an op
<baweaver> Eloquent Ruby and Practical Object Oriented Design in Ruby are probably the two that should be gone through
BTRE has joined #ruby
<dymk> Has anyone ever passed an activerecord postgresql connection off to a native extension and lived to tell the tale?
<baweaver> ljarvis: I'll save the cheeky question follow up to that then
nofxx has joined #ruby
<rehat> ljarvis: not sure how to select a specific <b> element with parser.css
<dymk> I'd like to do some custom stuff on top of postgres... but not handle all the things like authenticating with the db, i'd like to leave that up to rails
<baweaver> Might be safer to ask on RubyOnRails for that dymk
<dymk> mm thanks baweaver
CustosLimen has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
godofecht has joined #ruby
<ljarvis> rehat: that's some unfortunate html
<godofecht> can anybody tell me why I'm getting a syntax error on line 11?
<godofecht> says that there is an unexpected end
<ljarvis> godofecht: because that 'end' closes the 'if' and not the 'for'
<ljarvis> you need an end after if
treybul has joined #ruby
<ljarvis> or use a postfix if
leat2 has quit [Remote host closed the connection]
<godofecht> thank you
leat2 has joined #ruby
<[k-_> i dont even know how to use for
<al2o3-cr> godofecht: count++ is invalid should be count += 1
<treybul> hi - simple query i think. In rspec how do I check if array size has increased by 1 element?
leesharma has quit [Ping timeout: 244 seconds]
<godofecht> Using postfix if doesn't solve the issue
leesharma has joined #ruby
<baweaver> treybul: are you passing it in?
<ljarvis> godofecht: yes it does, otherwise you have something else wrong
leafybasil has joined #ruby
<godofecht> okay, problem fixed
<godofecht> so unary operators don't work here?
<treybul> passing it in?
<baweaver> because if you have it in a variable that you're passing in, there's a very simple solution involving size and plus one
<godofecht> my count++ was the problem
<al2o3-cr> godofecht: and null
<[k-_> you should use n-1.times do |i| ... end
<treybul> I don't have the size of the array stored in a variable
<baweaver> >> [1,2,3].size # who says you need to?
<ruboto> baweaver # => 3 (https://eval.in/410157)
<[k-_> split defaults to ' '
<[k-_> you do not need to explicitly do split(' '), you can just call split or split()
<baweaver> though a method that mutates an array is spooky
<treybul> I think i could use this code if i had a arr_size variable that stored size of array: "expect { subject.arr }.to change{subject.arr_size}.by(1)" - but how can i do it without that variable?
senayar has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<ljarvis> rehat: here you go, you need to use xpath: https://gist.github.com/leejarvis/9d9303fa8d2df4365498
<baweaver> you're thinking about it oddly.
last_staff has quit [Read error: Connection reset by peer]
<baweaver> subject.arr; expect(subject.arr.size).to eq(5)
<godofecht> <[k-_> how would I go about converting all the split variables into integers?
<ljarvis> treybul: expect { code }.to change { arr.size }.by(1)
<baweaver> >> '1 2 3 4 5'.split.map(&:to_i)
<ruboto> baweaver # => [1, 2, 3, 4, 5] (https://eval.in/410158)
leesharma has quit [Ping timeout: 244 seconds]
<treybul> thanks ljarvis - let me try it
<[k-_> >> '1 2 3 4 5'.split
<ruboto> [k-_ # => ["1", "2", "3", "4", "5"] (https://eval.in/410159)
<rehat> ljarvis: ahh thanks dude, I will look into that
reprazent has quit [Quit: Bye]
<[k-_> one step at a time!
<ljarvis> rehat: no worries, this is some pretty bad html so it'll be a pain to parse but most things are possible in xpath
EllisTAA has joined #ruby
drewo has quit [Ping timeout: 244 seconds]
leat2 has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
leat2 has joined #ruby
michaeldeol has joined #ruby
Trynemjoel has joined #ruby
EllisTAA has quit [Client Quit]
saddad has joined #ruby
<treybul> that code works ljarvis
radgeRayden has joined #ruby
_whitelogger has joined #ruby
<treybul> im wondering if i can modify the code so that I don't get an error if the initial arr size is 0
leesharma has joined #ruby
<ljarvis> why do you get an error?
Musashi007 has quit [Quit: Musashi007]
symm- has joined #ruby
<treybul> if the array is set to arr =[] and i try to delete an element i will get an error
<treybul> just want rspec to cover that possibility
michaeldeol has quit [Client Quit]
devyn has joined #ruby
<ljarvis> if there's no element in the array and the spec covers deleting an element then the spec shouldn't run for an empty array
zacstewart has joined #ruby
jimms has quit [Remote host closed the connection]
<treybul> ok
<ljarvis> might be worth sharing your spec for us to be able to help more though
<treybul> No i think i understand
<ljarvis> ok, great
<al2o3-cr> >> $; = ''; '12345'.split
<ruboto> al2o3-cr # => ["1", "2", "3", "4", "5"] (https://eval.in/410160)
jackjackdripper has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<godofecht> what exactly would (array ||= []).push(1) do
lkba has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
j4cknewt has joined #ruby
leesharma has quit [Ping timeout: 252 seconds]
<al2o3-cr> >> (array ||= []).push(1)
<ljarvis> godofecht: it would set array to an empty array if array is nil or false and then push 1 into the array
<ruboto> al2o3-cr # => [1] (https://eval.in/410161)
Trynemjoel has joined #ruby
<godofecht> if array wasn't already nil, would it just go ahead and push?
<ljarvis> try it
<ljarvis> open irb
NeverDie has joined #ruby
scorp007 has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
zacstewart has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
ynroot has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bufferloss has joined #ruby
theery has joined #ruby
<rehat> ljarvis: I got my scraper to work with your snippet, now I am trying to understand the meat inside that .at() I'm also new to ruby and reading docs for it. This is all I found on XPath http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/XPath where can I get more info on how it works? Like the text(), contains(), and following::b? :)
davedev24 has quit [Read error: Connection reset by peer]
theery has quit [Remote host closed the connection]
davedev24 has joined #ruby
Inside has quit [Ping timeout: 252 seconds]
jonee has joined #ruby
gamename has quit []
<rehat> ljarvis: sweet thanks man
<ljarvis> rehat: beware that xpath is a bit of a beast so unless you fully intend on digging right into it, I would recommend just skimming that document
niiamon has quit [Remote host closed the connection]
<rehat> will do thanks
<ljarvis> yorickpeterse: yo
havenwood has joined #ruby
<al2o3-cr> rehat: you could use this: doc.at('div.productdetails').children[9].text.strip
<al2o3-cr> it that snippet, anyway
allcentury has quit [Ping timeout: 265 seconds]
<ytti> adaedra, libssh is LGPL and as such can't be used in appstore software
<ytti> adaedra, libssh2 can be used, but it's legacy crap
Trynemjoel has quit [Ping timeout: 256 seconds]
cccc has quit [Quit: leaving]
reprazent has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<ljarvis> al2o3-cr: but.. why
<[k-_> [9]...
sedduc has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
prestorium has joined #ruby
Asher has joined #ruby
<shevy> it has many children [k-_
calleerlandsson has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
rodfersou has joined #ruby
<al2o3-cr> ljarvis: no reason
<[k-_> just like you, shevy
<al2o3-cr> really just see how nokogiri stores the html could of used elements[4]
s00pcan has joined #ruby
christiandsg has joined #ruby
<ljarvis> :|
olistik has joined #ruby
<al2o3-cr> just to see how the document object model works
* al2o3-cr hides
leesharma has joined #ruby
sankaber has joined #ruby
<shevy> the beautiful XML
eggoez has quit [Ping timeout: 252 seconds]
zz_Outlastsheep is now known as Outlastsheep
cashnguns has joined #ruby
davedev2_ has joined #ruby
ruurd has joined #ruby
mjuszczak has quit []
codecop has joined #ruby
davedev24 has quit [Ping timeout: 272 seconds]
eggoez has joined #ruby
reprazent has quit [Quit: Bye]
mjuszczak has joined #ruby
reprazent has joined #ruby
yardenbar has quit [Quit: Leaving]
_blizzy_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
Trynemjoel has joined #ruby
rehat has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 244 seconds]
attamusc has quit [Quit: Connection closed for inactivity]
j4cknewt has quit [Remote host closed the connection]
Westerbly_ has joined #ruby
mjuszczak has quit []
OrbitalKitten has joined #ruby
zacstewart has joined #ruby
radgeRayden has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
ruby-lang476 has quit [Ping timeout: 246 seconds]
[H]unt3r has quit [Quit: Leaving]
prestorium has quit [Quit: Konversation terminated!]
christiandsg has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
leesharma has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 244 seconds]
v2px has quit [Remote host closed the connection]
<adaedra> ytti: oh, didn't know that
jonee has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
imperator has joined #ruby
Trynemjoel has joined #ruby
djbkd_ has joined #ruby
<ytti> adaedra, that's the reason you can't use EC crypto in any ios ssh clients
<ytti> adaedra, or even large RSA keys
Blaguvest has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
<adaedra> I don't use iOS ssh client
<adaedra> I need more than 40x15
<adaedra> but ok, that explains it
<ytti> you can get hella small lot of letters on iOS screen
<adaedra> and typing is far from practical
allcentury has joined #ruby
dseitz has joined #ruby
saddad has joined #ruby
The_Phoenix has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby
leesharma has joined #ruby
christiandsg has joined #ruby
senayar has joined #ruby
The_Phoenix has quit [Ping timeout: 246 seconds]
<shevy> hmm I guess in the coming days, I shall need some pointers in how to make two classes faster
eggoez has quit [Ping timeout: 240 seconds]
jonee has joined #ruby
aphprentice_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
christiandsg has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 244 seconds]
eggoez has joined #ruby
<imperator> hm, seems ConvertTo-Json is generating some hidden token somewhere
<imperator> can't get JSON.parse to parse its output
fantazo has joined #ruby
<imperator> {"Id":4184,"ProcessName":"powershell","Handles":539} - looks perfectly valid to me
baweaver has quit [Remote host closed the connection]
pipework is now known as Spacedroid
Spacedroid is now known as pipework
ledestin has joined #ruby
k3asd` has joined #ruby
swgillespie has joined #ruby
<al2o3-cr> >> require 'json'; {"Id":4184,"ProcessName":"powershell","Handles":539}.to_json
<ruboto> al2o3-cr # => "{\"Id\":4184,\"ProcessName\":\"powershell\",\"Handles\":539}" (https://eval.in/410179)
gwendall has joined #ruby
quimrstorres has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
hahuang61 has quit [Ping timeout: 244 seconds]
<imperator> al2o3-cr, i'm actually sending the output to a file, and what i get is: JSON::ParserError: 757: unexpected token at 'test.json'
pipework is now known as pipedroid
pipedroid is now known as pipework
<al2o3-cr> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
<imperator> tried with and without -Compress, with and without -Encoding
<al2o3-cr> is that powershell?
OrbitalKitten has joined #ruby
<imperator> yes
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> can you paste the test.json file?
rehat has joined #ruby
gwendall has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
<imperator> al2o3-cr, it's what i pasted earlier
<imperator> just that one line
dagda1 has joined #ruby
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
Inside has joined #ruby
Inside has joined #ruby
<[k-_> ruby handles it fine as seen here
<al2o3-cr> imperator: try opening the file
<imperator> i'm seeing some junk when looking at a hex editor
<imperator> EF BB BF
hectortrope has quit [Remote host closed the connection]
<imperator> some kind of custom tag its inserting? dunno
<al2o3-cr> imperator: JSON.parse(File.read('test.json'))
dvb_ua has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
<imperator> al2o3-cr, nope, tried that, as well as explicit binary and text mode
ynroot has joined #ruby
Inside has quit [Ping timeout: 255 seconds]
<imperator> (on a side note, hexed.it is pretty cool)
juanpablo_______ has joined #ruby
senayar has quit [Remote host closed the connection]
<imperator> al2o3-cr, i added a comment to https://gist.github.com/djberg96/a266fbe1b26e71684838
<al2o3-cr> imperator: why you opening it in binary?
bronson has quit [Ping timeout: 260 seconds]
<imperator> al2o3-cr, tried it both ways just to see
cashnguns has quit [Ping timeout: 244 seconds]
<al2o3-cr> so test.json contains this -> {"Id":4184,"ProcessName":"powershell","Handles":539}
eminencehc has joined #ruby
<imperator> intertubes are telling me it's a BOM
juanpablo_______ has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has joined #ruby
hololeap has joined #ruby
ynroot has quit [Quit: Konversation terminated!]
saddad has quit [Quit: WeeChat 1.3-dev]
hahuang61 has joined #ruby
bmurt has quit []
khebbie has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
khebbie has joined #ruby
bufferloss has quit [Quit: Leaving]
olistik has quit [Remote host closed the connection]
t_ has quit [Remote host closed the connection]
<al2o3-cr> imperator: just been searching try this: JSON.parse(File.read('test.json', :encoding => 'bom|utf-8'))
saddad has joined #ruby
t_ has joined #ruby
<imperator> al2o3-cr, yep, just came across the same - works!
<imperator> thanks
hahuang61 has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
<al2o3-cr> \o/
havenwood has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
mleung has quit [Client Quit]
khebbie has quit [Ping timeout: 272 seconds]
dgutierrez1287 has joined #ruby
ruurd has joined #ruby
<imperator> what a pain
allcentury has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
<al2o3-cr> never came across this before
<imperator> me neither, fairly new to powershell
jester13_ has joined #ruby
Yzguy has joined #ruby
texasmade has joined #ruby
jester13 has quit [Ping timeout: 250 seconds]
gamename has joined #ruby
Yzguy has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
xxneolithicxx has quit [Max SendQ exceeded]
Trynemjoel has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
willywos has joined #ruby
Soda has joined #ruby
<al2o3-cr> ah, you learn something new everyday :)
bb010g has joined #ruby
Trynemjoel has joined #ruby
devdazed has joined #ruby
djbkd_ has quit [Remote host closed the connection]
allcentury has joined #ruby
t_ has quit [Ping timeout: 252 seconds]
devdazed has quit [Client Quit]
EllisTAA has joined #ruby
<arup_r> al2o3-cr + h2So4 ?
<arup_r> But your idea of picking the nickname from Chemistry is innovative.. al2o3-cr
rehat has quit []
<arup_r> :D
allcentury has quit [Ping timeout: 264 seconds]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 260 seconds]
<[k-_> H2SO4*
EllisTAA has quit [Quit: EllisTAA]
exadeci has joined #ruby
<arup_r> [k-, ;)
marr has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
saddad has quit [Ping timeout: 255 seconds]
Limix has joined #ruby
<Ox0dea> That makes three people I know of whose handles were directly inspired by Ruby: al2o3-cr here, and /u/Enumerably_any and /u/0x7262.
<Ox0dea> I suspect there are many more.
Trynemjoel has joined #ruby
<al2o3-cr> it was gonna be al2o3::cr but freenode said that errenous :(
<Ox0dea> I know that feeling well. :/
<adaedra> awww.
<al2o3-cr> :(
<adaedra> I wanted a nick with no meaning but learned afterwards that it was not the case.
RegulationD has joined #ruby
Guest17350 has quit [Changing host]
Guest17350 has joined #ruby
__Aleserche__ has quit [Ping timeout: 256 seconds]
Guest17350 is now known as guyz
<Ox0dea> Your nick makes me think of Daedric armor.
<adaedra> Sorry.
gwendall has joined #ruby
Nahra has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Josh has joined #ruby
Josh has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
kadoppe has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
Trynemjoel has joined #ruby
OrbitalKitten has joined #ruby
jimms has joined #ruby
kadoppe has joined #ruby
monoprotic has joined #ruby
OrbitalKitten has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bazbing82 has joined #ruby
shinnya has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
<bazbing82> do classes have before_hooks like in rails? So a method can be called before a method in the same instance method gets called? If so, is it possible to do something like this? https://gist.github.com/anonymous/0e57694b1da4334438a1
jimms has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 246 seconds]
Annie has joined #ruby
Annie is now known as Guest92700
jonee has quit [Ping timeout: 256 seconds]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<Ox0dea> bazbing82: Do you actually increment your nick every time you join IRC?
Anne has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
<bazbing82> Ox0dea nah I've automated irssi to identify automatically and I think something's gone wrong xD
Trynemjoel has joined #ruby
<adaedra> it's ok, Ox0deb
<bazbing82> silly adaedrb
<adaedra> it looks german now
<adaedra> mmh no, still to many vowels
<bazbing82> haha!
Silox| has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
<Ox0dea> bazbing82: Module#prepend seems to be the thing you're looking for.
monoprotic has quit [Quit: bite me]
monoprotic has joined #ruby
monoprotic is now known as Guest29299
sankaber has joined #ruby
Guest29299 is now known as monoprotic
sankaber has quit [Client Quit]
monoprotic has quit [Changing host]
monoprotic has joined #ruby
OrbitalKitten has joined #ruby
Westerbly_ is now known as radgeRayden
imperator has quit [Quit: Valete!]
<Ox0dea> >> module Add40; def + other; super - -40 end end; Fixnum.prepend Add40; 1 + 1 # bazbing82
<ruboto> Ox0dea # => 42 (https://eval.in/410241)
<Ox0dea> Interceptor (https://github.com/jamesmoriarty/interceptor) provides a pretty intuitive interface to such machinations.
monoprotic has quit [Client Quit]
rodfersou has quit [Quit: leaving]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
k3asd` has quit [Ping timeout: 246 seconds]
<bazbing82> x0dea that's amazing! hat off to Ruby...and yourself thanks
<bazbing82> Ox0dea: ^
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
monoprotic has joined #ruby
<Ox0dea> Yay, Ruby!
<Ox0dea> >> @Ruby.to_i <3
<ruboto> Ox0dea # => true (https://eval.in/410245)
monoprotic has quit [Changing host]
monoprotic has joined #ruby
lxsameer has quit [Quit: Leaving]
quimrstorres has joined #ruby
<Ox0dea> Translation: "Ruby, to me, is love."
<bazbing82> Ox0dea :P what, is that an easter egg??
ohaibbq has joined #ruby
snath has joined #ruby
<radgeRayden> true love.
ivanskie has joined #ruby
<bazbing82> ruby is love. ruby is life.
<bazbing82> (it was coming)
quimrstorres has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> bazbing82: Nah, undefined instance variables are nil and #to_i coerces nil to 0.
Guest92700 has quit [Ping timeout: 244 seconds]
<Ox0dea> Ruby does actually have a few easter eggs, though.
zacstewart has quit [Remote host closed the connection]
<bazbing82> Ox0dea: ohh I see. yeah, like what?
theery has joined #ruby
<Ox0dea> GOTO support and a Douglas Adams reference.
casadei_ has joined #ruby
leesharma has joined #ruby
<bazbing82> Ox0dea: haha brilliant. maybe I should name my module DeepThought
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
tejasmanohar has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
casadei_ has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
dagda1 has joined #ruby
Trynemjoel has joined #ruby
workmad3 has joined #ruby
eminencehc has joined #ruby
theery has quit [Remote host closed the connection]
drewo has joined #ruby
gwendall has quit [Remote host closed the connection]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
theery has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
[H]unt3r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
bizportal has quit []
hahuang61 has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
snath has left #ruby ["Leaving"]
jaimessi has quit [Ping timeout: 244 seconds]
dc has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dc has joined #ruby
j4cknewt has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
zacstewart has joined #ruby
t_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<godofecht> how do I subtract every element of an array by 1
<shevy> Ox0dea lol at that ruboto output
<Ox0dea> godofecht: map(&:pred)
<godofecht> I've already got map(&:to_i)
<godofecht> how do i chain them
eminencehc has quit [Quit: Leaving...]
<Ox0dea> godofecht: map(&:to_i).map(&:pred)
<godofecht> thank you so much
<Ox0dea> Happy to help.
<monsieurp> godofecht: have you tried using pry?
arup_r has quit [Quit: Leaving]
_ht has quit [Quit: Konversation terminated!]
Trynemjoel has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ciao.]
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
Trynemjoel has joined #ruby
<godofecht> what's pry?
<al2o3-cr> ?pry
<ruboto> Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<banister> ?binding_of_caller
<ruboto> I don't know anything about binding_of_caller
andrewjanssen has joined #ruby
leesharma has quit [Ping timeout: 265 seconds]
juanpablo_______ has joined #ruby
andrewjanssen has quit [Client Quit]
<Ox0dea> banister: Where does the @ magic happen?
<banister> Ox0dea ?
saddad has joined #ruby
<Ox0dea> banister: Pry avoids "`@' without identifiers is not allowed as an instance variable name".
<banister> Ox0dea are you referring to the @ alias for the whereami command?
codecop has quit [Remote host closed the connection]
vickleton has quit [Quit: Ex-Chat]
Channel6 has joined #ruby
vickleton has joined #ruby
godofecht has quit [Quit: Page closed]
hahuang61 has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
juanpablo_______ has quit [Ping timeout: 252 seconds]
erichodges has joined #ruby
<banister> Ox0dea ?
vickleton has quit [Ping timeout: 255 seconds]
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
theery has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
sarkyniin has joined #ruby
djbkd_ has joined #ruby
xxneolithicxx has joined #ruby
<Ox0dea> banister: I'm mostly just wondering how you went about avoiding the syntax error.
<banister> Ox0dea ah ok, well pry commands are not methods
<banister> basically we take input from the user
<banister> and look at it to determine if it's a 'command' first
<Ox0dea> Ah, yeah, I derped.
<banister> if it is, then we process it, otherwise, we assume it's ruby and use ruby to evaluate it
<Ox0dea> Yep, I rather naively assumed you were evaluating all input.
<banister> nah :)
<banister> using commands instead gives us a few winds
<banister> wins*
<banister> it means we can provide a lot of functionality without having to inject a tonne of methods into Object
<banister> it also means we can provide our own syntax that can be more convenient that typical ruby method syntax
<Ox0dea> Makes perfect sense.
<banister> e.g: ls -l
<banister> vs: ls '-l'
<tejasmanohar> im writing my first gem from scratch. it's an api wrapper. anyone know another really simple open-source api wrapper gem that i can refer to?
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea> To be fair, `ls -l` isn't syntactically invalid, so you could've done some wacky things to make it evaluate as desired.
<tejasmanohar> like a pretty simple one rather than one like twilio-ruby w/ a lot of functionality
hahuang61 has quit [Ping timeout: 246 seconds]
<Ox0dea> That's true for everything but @, I believe, which led me to the initial question.
<tejasmanohar> basically wrapping endpoints and parsing data back from them w/ ruby fn
<tejasmanohar> not even doing auth rn
<shevy> tejasmanohar just write!
<shevy> tejasmanohar is your gem already working as-is
Trynemjoel has joined #ruby
<tejasmanohar> it's non-existent as is :P shevy
<tejasmanohar> wanted to see another example, understand that one, then go forth
<shevy> finish the code first, then you are 99% towards the finished .gem
<tejasmanohar> fair enough
<tejasmanohar> write it then abstract it , ok :)
baweaver has joined #ruby
<Ox0dea> I disagree; abstractions first.
<tejasmanohar> but i mean i just thought it'd be good to look at how others write api wrappers first, trying to think of a really simple api to look at the api for
<shevy> it's easy to adjust or add to the gem lateron anyway
<tejasmanohar> to see how they lay it out and whatnot
<Ox0dea> tejasmanohar: Wrap the reddit API.
<tejasmanohar> Ox0dea: i already know what api i wanna wrap :) - just want to look at another wrapper first of a simple api
<tejasmanohar> i'll lok at reddit ruby wrapper one sec
Vile` has quit [Ping timeout: 240 seconds]
<Ox0dea> tejasmanohar: There are several, but I don't believe any of them have been updated to use the new OAuth2 interface.
<tejasmanohar> no auth in the api i'm wrapping
<Ox0dea> tejasmanohar: How simple is it? JSON in, JSON out?
<tejasmanohar> only fetching
<tejasmanohar> JSON out
<tejasmanohar> URL in :)
<tejasmanohar> all GETs for the parts i wanna wrap
Vile` has joined #ruby
<tejasmanohar> it's actually RSS feeds
<tejasmanohar> not JSON out that was a different one
<tejasmanohar> sry
<tejasmanohar> RSS feeds for this one
<Ox0dea> So... no out?
<Ox0dea> What do you intend to do with the RSS feeds you're fetching?
bodgix has joined #ruby
<tejasmanohar> http://www.airfarewatchdog.com/rss/?airport={IATA CODE}&direction={departure/arrival}
simplyianm has joined #ruby
casadei_ has joined #ruby
<tejasmanohar> output IATA code + price Ox0dea
<Ox0dea> Sure, but then what do you want to do with the resultant data?
<Ox0dea> Oh, just... display it?
<tejasmanohar> yeah sure just return it really, multiple endpoints though not just that feed
theery has joined #ruby
<tejasmanohar> its quite easy to just write a function given IATA code + departure/arrival to go fetch and return that info for me
<tejasmanohar> but i want to write a gem ;)
<Ox0dea> That doesn't really fit under what is typically considered an API wrapper, for reference.
<tejasmanohar> yeah fair
<tejasmanohar> i shouldn't have said that
Agoldfish has joined #ruby
<tejasmanohar> it's not like google maps api wrapper or reddit or anything like that
erichodges has quit [Quit: erichodges]
<tejasmanohar> doesn't have actions
<tejasmanohar> except fetch
<tejasmanohar> fetch/read
zacstewart has quit [Remote host closed the connection]
<tejasmanohar> i was previously just going to write a module in lib/ folder of my rails app for airfarewatchdog w/ just a few functions like fetch_arrivals(iata_code), fetch_departures(iata_code)
<tejasmanohar> pretty straight-forward
<tejasmanohar> and just have some interaction w/ the feed using https://github.com/cardmagic/simple-rss and then returning a hash maybe
AbdulRehman has quit [Quit: AbdulRehman]
<Ox0dea> Seems reasonable enough.
<tejasmanohar> but was thinking if i make this a gem, how / if i should format this differently?
<tejasmanohar> i guess that's re-usable enough
casadei_ has quit [Ping timeout: 246 seconds]
<tejasmanohar> just thought it'd be good to see an example of a simple gem like this
<tejasmanohar> i.e. should each function make SimpleRSS#parse calls directly or should that be wrapped?
<ledestin> tejasmanohar I extract when I need it elsewhere usually
<ledestin> less work
theery has quit [Ping timeout: 260 seconds]
<tejasmanohar> ledestin: i mean airfarewatchdog rss client may be useful for others too :)
<tejasmanohar> not jsut me
<tejasmanohar> or another of my apps
<Ox0dea> tejasmanohar: Wrap your dependencies: http://www.markphelps.me/2015/07/30/wrap-your-dependencies.html
<tejasmanohar> it's just a universal thing
<tejasmanohar> gotcha thats what i was asking about :)
<tejasmanohar> ah perfect!
<tejasmanohar> Ox0dea: but if i use RSS without the gem just with default ruby libraries is there any reason to wrap the dependency?
Renich has joined #ruby
<tejasmanohar> since this is an airfarewatchdog rss client, if airfarewatchdog removes rss then it's screwed anyways
drewo has quit [Ping timeout: 264 seconds]
<Ox0dea> tejasmanohar: Counting Ruby itself as a dependency seems rather odd. :P
<tejasmanohar> i should probably not use dependencies unless needed
<Ox0dea> Yes, that's generally wise.
<tejasmanohar> Ox0dea: moreover, the question is not whether to count ruby as a dependency but whether to make a open(url) do |rss| ... end call in each function of my api wrapper
<tejasmanohar> i guess it's fine :P
<tejasmanohar> feed = RSS::Parser.parse(rss) etc in every function
<tejasmanohar> or to wrap that as well, just like write a private function parse_rss() or something
<tejasmanohar> it's practically the same thing i suppose
ohaibbq has quit [Remote host closed the connection]
<Ox0dea> tejasmanohar: Does a single call return all the data you're interested in?
leafybas_ has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
leafybasil has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
simplyianm has quit []
ohaibbq has joined #ruby
zacstewart has joined #ruby
<tejasmanohar> posted code + question there :P
leafybasil has joined #ruby
<duderonomy> Does "wrap" in this context infer "abstraction layer"?
simplyianm has joined #ruby
<tejasmanohar> duderonomy: i suppose so
<Ox0dea> tejasmanohar: You might consider caching the first call, such that subsequent requests can avoid hitting the network.
perturbation has quit [Quit: Leaving]
<tejasmanohar> Ox0dea: in my application or in the gem?
rehat has joined #ruby
<Ox0dea> That's your prerogative, really.
<tejasmanohar> i'd think that wouldn't be the responsibility of the wrapper gem but my actual app :P
<tejasmanohar> yeah.
<tejasmanohar> i just wanted the gem to fetch stuff for me and for other people to use it however they want
<Ox0dea> Why wouldn't users of the wrapper want to avoid unnecessary requests?
<tejasmanohar> so where would it be cached? a database?
<Ox0dea> @feed ||= ...
<tejasmanohar> gotcha
<tejasmanohar> multiple feeds, multiple functions
<tejasmanohar> but yes, i see what you mean by that Ox0dea
<tejasmanohar> fair
hahuang61 has joined #ruby
<tejasmanohar> but the question is if each function uses a different feed would you repeat the base rss stuff per function like i did here https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2 ( just updateD)?
<tejasmanohar> Ox0dea:
tubuliferous has joined #ruby
<tejasmanohar> that's really my main question lol
<Ox0dea> tejasmanohar: You should introduce a class.
<tejasmanohar> gotcha
<tejasmanohar> and each function should just provide an extension to the url, not the full one i guess
<tejasmanohar> extensions off of airfarewatchdog.com/rss/
<Ox0dea> The URL should be constructed per instance, yes.
<tejasmanohar> makes sense to me
<Ox0dea> logs $ tail -n 100 irc.freenode.#ruby.weechatlog | grep -c tejas
<Ox0dea> 61
<Ox0dea> :P
spider-mario has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
dseitz has joined #ruby
<Ox0dea> That's gotta be some kinda record.
tubuliferous has quit [Ping timeout: 256 seconds]
<tejasmanohar> lol sorry, i'll combine messages ;) ... starting now, so would you make a class to make all the requests to RSS feeds, Ox0dea ? and the class would have a function that basically just returns the `RSS::Parser.parse(rss)` parsed into ruby version of the rss feed?
simplyianm has joined #ruby
devdazed has joined #ruby
<Ox0dea> tejasmanohar: Hmm, are fetch_arrivals and fetch_departures the only two methods you mean to expose?
djbkd_ has quit []
<tejasmanohar> Ox0dea: i plan to write a function to scrape all the airport codes supported by airfarewatchdog as well and expose that... but at first, yes i think those are the only two.
<tejasmanohar> there are other feeds but i don't plan to deal w/ them rn
Renich has quit [Quit: leaving]
dgutierrez1287 has joined #ruby
<Ox0dea> tejasmanohar: In that case, you might as well define them as module functions, and expose the IATAs as a public constant.
<Ox0dea> YourThing::IATA_CODES, YourThing.fetch_arrivals...
simplyianm has quit [Remote host closed the connection]
apfeluser has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 252 seconds]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<tejasmanohar> Ox0dea: makes sense, yeah
scripore has quit [Quit: This computer has gone to sleep]
<tejasmanohar> Ox0dea: thats what i would've done in the lib/ folder of rails app :P
drewo has joined #ruby
<tejasmanohar> Ox0dea: but the real question i had is should each module function make requests to the rss feeds like https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2 or should i write a separate class that makes the requests given the URL extension off of airfarewatchdog.com/rss/ and returns the `RSS::Parser.parse(rss)` result?
gwendall has joined #ruby
<tejasmanohar> even though it's only 2 functions rn, trying to write this properly for once :)
ivanskie has joined #ruby
irctc504 has joined #ruby
<irctc504> hello, im trying to query a session with Parse through Ruby and im getting an error. this is my problem http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse
devdazed has quit [Quit: Computer has gone to sleep.]
scripore has joined #ruby
valetudo has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
drewo has quit [Ping timeout: 260 seconds]
gwendall has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
<Ox0dea> tejasmanohar: Either way, I suppose. All things in moderation, even abstraction.
zacstewart has quit [Remote host closed the connection]
<tejasmanohar> Ox0dea: fair. it's good enough either way i guess
[H]unt3r has quit [Quit: Leaving]
hahuang61 has joined #ruby
NoidedSuper has joined #ruby
<tejasmanohar> Ox0dea: why do you suggest a module instead of class in this case?
<tejasmanohar> you specified so thought i'd ask :)
saddad has quit [Ping timeout: 246 seconds]
<Ox0dea> tejasmanohar: You use a class when you'll need more than one of the thing.
ruby-lang069 has joined #ruby
<al2o3-cr> tejasmanohar: probably because it doesn't warrant a class :p
<tejasmanohar> Ox0dea: oh true
<tejasmanohar> im just exposing some functions that people can re-use
<Ox0dea> Oui.
hahuang61 has quit [Ping timeout: 240 seconds]
<NoidedSuper> Yeah, module in that case.
ruby-lang069 has quit [Client Quit]
<irctc504> hello, im trying to query a session with Parse through Ruby and im getting an error. this is my problem http://stackoverflow.com/questions/31766477/trying-to-do-a-query-session-for-parse
<Ox0dea> tejasmanohar: Thing.fetch_arrivals(iata) > IATA.new(iata).fetch_arrivals, unless you can think of other methods that would belong on IATA.
<Ox0dea> And really, that's not a very semantically meaningful abstraction, so any methods which could conceivably go on IATA would be better on Thing anyhow.
<NoidedSuper> So I read a few blog posts on why Sequel was better than ActiveRecord, agreed with their points (they mostly just pointed out stuff that absolutely infuriated me about AR), and decided to switch. But then I find out that Sequel doesn't really have a good FriendlyId replacement—the closest thing I can find was last updated in 2010 and doesn't work with any of the most recent versions of stuff.
<tejasmanohar> Ox0dea: true, module is all i need right now
<NoidedSuper> So I figured I'd ask here if anybody else had similar problems before I just give up and write a gem for it myself
<tejasmanohar> ok, starting to code ;)
<Ox0dea> shevy: He's starting to code.
<shevy> hehehehe
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
<tejasmanohar> lol
<tejasmanohar> on the gem, not the rails app :P
hahuang61 has joined #ruby
khebbie has joined #ruby
casadei_ has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
Muhannad has quit [Ping timeout: 265 seconds]
devdazed has joined #ruby
devdazed has quit [Client Quit]
casadei_ has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
zacstewart has joined #ruby
tenderlove has quit [Remote host closed the connection]
irctc504 has quit [Ping timeout: 246 seconds]
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
triangles has joined #ruby
hahuang61 has joined #ruby
arescorpio has joined #ruby
scrudrv has joined #ruby
zacstewart has quit [Remote host closed the connection]
bronson has joined #ruby
Musashi007 has quit [Quit: Musashi007]
scrudrv has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
SirCmpwn has left #ruby ["WeeChat 1.2"]
juanpablo_______ has joined #ruby
hahuang61 has joined #ruby
<shevy> tejasmanohar you could always try a test-gem and remove it lateron, then you know how to do it
ribbons has joined #ruby
skade has joined #ruby
<shevy> remove a gem: gem yank name_here --version number_of_version_here
ixti has joined #ruby
<tejasmanohar> test-gem?
yqt has joined #ruby
<tejasmanohar> what for, shevy ?
<shevy> yeah
<shevy> then you know how to work with a gem
<shevy> like specify the external dependencies
<tejasmanohar> following http://guides.rubygems.org/make-your-own-gem/ shevy
<shevy> yeah I followed that as well when I started with gems
<tejasmanohar> does "test-gem" refer to something specific?
<tejasmanohar> or are you just saying write a gem as a test?
<shevy> make sure to specify .required_ruby_version =
<shevy> and .rubygems_version =
<shevy> a test-gem
<shevy> it does not matter what it is
juanpablo_______ has quit [Ping timeout: 250 seconds]
<shevy> call it tejasmanohar
<tejasmanohar> sure
<tejasmanohar> i'll just learn through this gem i'm writing now anyways by following this guide
<tejasmanohar> i think that should be enough
<Ox0dea> shevy: Shall we compare pingers? https://gist.github.com/0x0dea/67d2f283d9b5901da777
<tejasmanohar> to get started, i mena