<jhass>
well doesn't list it explicitly either, but it's just > x, >= x, < x, <= x, ~> x, x
diegoaguilar has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 265 seconds]
<BraddPitt>
ah, so i can't pass like no-rdoc or anything?
bigmac_ has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
<adaedra>
no-rdoc is a global gem setting set by the person installing the gem(s)
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<Ox0dea>
Is not.
snockerton has quit [Quit: Leaving.]
<Ox0dea>
That is, you can use it locally for a single installation as well.
beauby has joined #ruby
cdg has quit [Remote host closed the connection]
<adaedra>
yes, but it's not set by the gem itself
jgt2 has joined #ruby
eminencehc has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
trabulmonkee has quit [Quit: Connection closed for inactivity]
patdohere is now known as patdohere_afk
patdohere_afk is now known as patdohere
jgt1 has quit [Ping timeout: 252 seconds]
tigarcia has quit [Remote host closed the connection]
edaaa__ has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 244 seconds]
ngscheur1 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
pontiki has joined #ruby
tmtwd has joined #ruby
Yzguy has quit [Quit: Zzz...]
andykingking has quit [Quit: Leaving.]
ngscheur1 has quit [Read error: Connection reset by peer]
ngscheurich has joined #ruby
bricker has joined #ruby
aryaching has joined #ruby
fastAndSlow has joined #ruby
decaff has joined #ruby
jenrzzz has joined #ruby
weemsledeux has joined #ruby
mary5030 has joined #ruby
Pupeno has quit [Remote host closed the connection]
baroquebobcat_ has joined #ruby
CloCkWeRX has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
aryaching has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
cooperlebrun has quit [Ping timeout: 260 seconds]
devoldmx_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
v4n has quit [Quit: WeeChat 1.3]
ibouvousaime has quit [Ping timeout: 244 seconds]
<tmtwd>
?"-=
<tmtwd>
'\]
<tmtwd>
\
duderonomy has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
dorei has quit []
aryaching has joined #ruby
baroquebobcat_ has quit [Ping timeout: 268 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 260 seconds]
<baweaver>
Ox0dea: I think you speak that language ^
saddad has joined #ruby
jackjackdripper1 has quit [Client Quit]
<Ox0dea>
I believe that fellow is poking fun at Perl.
<baweaver>
tmtwd: $0 ?
jackjackdripper has quit [Ping timeout: 246 seconds]
<baweaver>
my perlspeak is bad
<BraddPitt>
or his cat is walking on his keyboard
<Ox0dea>
The locality checks out.
cooperlebrun has joined #ruby
devoldmx_ has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby
mag42c has joined #ruby
spuk has joined #ruby
eminencehc has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 255 seconds]
aryaching has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
tjbiddle has joined #ruby
ruby-lang030 has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
towski_ has quit [Remote host closed the connection]
htmldrum has joined #ruby
atomical has quit [Max SendQ exceeded]
bungoman has quit [Ping timeout: 240 seconds]
Fredrich010 has joined #ruby
pietr0 has quit [Quit: pietr0]
mary5030 has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
devoldmx_ has quit [Remote host closed the connection]
araujo_ has joined #ruby
tkuchiki has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
ruby-lang030 has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
mary5030 has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
BadQuanta has joined #ruby
nettoweb has joined #ruby
jas02 has quit [Ping timeout: 272 seconds]
d34th4ck3r has joined #ruby
phutchins has joined #ruby
TheRokh has joined #ruby
TheRokh has quit [Max SendQ exceeded]
TheRokh has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheRokh has quit [Max SendQ exceeded]
TheRokh has joined #ruby
pocketprotector- has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
wldcordeiro has joined #ruby
Ox0dea has joined #ruby
snath has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
Fredrich010 has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
dopie has joined #ruby
doddok has quit [Quit: Leaving]
devoldmx has joined #ruby
unreal has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
asad_ has joined #ruby
snath has left #ruby ["Leaving"]
teclator has quit [Ping timeout: 246 seconds]
<asad_>
Where are local variables stored at the top level?
asad_ has quit [Client Quit]
barhum2013 has quit [Quit: barhum2013]
tw1sted has quit [Changing host]
tw1sted has joined #ruby
RobertBirnie has joined #ruby
leafybasil has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
Bellthoven has quit []
tjbiddle has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
stardiviner has joined #ruby
renanoronfle has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
<haylon>
Where should I go to get help with rbenv?
howdoicomputer has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Ping timeout: 250 seconds]
fastAndSlow has quit [Quit: Lost terminal]
tjbiddle has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
davispuh has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
<haylon>
Well, so far I "installed" rbenv in /usr/local/bin, and "installed" the plugin ruby-build, however, install is not available.
Bellthoven has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SamGerber has joined #ruby
cndiv has joined #ruby
jas02 has joined #ruby
blt has joined #ruby
howdoicomputer has joined #ruby
blt has left #ruby [#ruby]
montana has joined #ruby
montana has quit [Client Quit]
SamGerber has quit [Client Quit]
jas02 has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
tubuliferous_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
haylon has quit [Quit: Leaving]
A124 has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
cooperle1run has joined #ruby
cooperlebrun has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
alcipir has joined #ruby
sharkman has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
baroquebobcat_ has joined #ruby
jenrzzz has joined #ruby
arescorpio has joined #ruby
cooperlebrun has joined #ruby
bungoman_ has joined #ruby
cooperle1run has quit [Ping timeout: 268 seconds]
baroquebobcat_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Echohn has joined #ruby
willharrison has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Ping timeout: 256 seconds]
Bellthoven has quit []
sharkman has joined #ruby
postmodern has quit [Quit: Leaving]
Echohn_ has joined #ruby
al2o3-cr has quit [Ping timeout: 268 seconds]
willardg has joined #ruby
cndiv has quit [Quit: Quit]
joufflu has joined #ruby
rbennacer has joined #ruby
ngscheurich has quit [Ping timeout: 265 seconds]
Echohn has quit [Ping timeout: 260 seconds]
phutchins has quit [Ping timeout: 256 seconds]
_djbkd has quit [Quit: My people need me...]
beauby has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
mostlybadfly has joined #ruby
idefine has joined #ruby
Cyther_ has joined #ruby
karapetyan has quit []
Feyn has joined #ruby
baweaver has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
Cyther has quit [Ping timeout: 252 seconds]
Feyn has quit [Remote host closed the connection]
saddad has quit [Read error: No route to host]
sankaber has joined #ruby
Cyther_ has quit [Quit: Leaving]
Feyn has joined #ruby
_blizzy_ has quit [Ping timeout: 252 seconds]
acke has joined #ruby
Pupeno has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord_ has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
acke has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 252 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
nettoweb has quit [Ping timeout: 268 seconds]
jas02 has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
ss_much has joined #ruby
Cantaberry has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
Cantaberry has quit [Ping timeout: 260 seconds]
Cantaberry has joined #ruby
rehat has joined #ruby
mary5030 has joined #ruby
saddad has joined #ruby
diegoviola has quit [Quit: GTK+ is a acronym]
cooperlebrun has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
jas02 has quit [Ping timeout: 272 seconds]
opensource_ninja has quit [Remote host closed the connection]
danman has quit [Quit: danman]
tjbiddle has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
danman has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
danman has quit [Client Quit]
prestorium has joined #ruby
tjbiddle has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
gener1c_ has joined #ruby
Respek has joined #ruby
chipotle has quit [Quit: cheerio]
mistermocha has joined #ruby
gener1c has quit [Ping timeout: 240 seconds]
mag42c has quit [Quit: mag42c]
favadi has joined #ruby
zenguy_pc has joined #ruby
rbennacer has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
CloCkWeRX has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 246 seconds]
hmsimha has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
Echohn_ has quit [Remote host closed the connection]
pontiki has joined #ruby
braincrash has joined #ruby
avahey has joined #ruby
chipotle has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
al2o3-cr has joined #ruby
devbug has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
cooperlebrun has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
Fredrich010 has joined #ruby
naztharune has joined #ruby
ramfjord has joined #ruby
Axy has joined #ruby
Fredrich010 has quit [Ping timeout: 244 seconds]
Mia has quit [Ping timeout: 255 seconds]
darkf has joined #ruby
diegoaguilar has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
cooperle1run has joined #ruby
renanoronfle has joined #ruby
Axy is now known as Mia
cooperlebrun has quit [Ping timeout: 256 seconds]
sanjayu has joined #ruby
Kovensky has joined #ruby
naztharune has quit [Quit: naztharune has no reason]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 244 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Read error: Connection reset by peer]
mollusk_ has joined #ruby
sdwrage has joined #ruby
gix has joined #ruby
benjito_ has quit [Ping timeout: 260 seconds]
skweek has quit [Read error: Connection timed out]
skweek has joined #ruby
jas02 has joined #ruby
benjito has joined #ruby
nemo_ has joined #ruby
hahuang65 has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
solenoids has quit [Ping timeout: 250 seconds]
sepp2k has quit [Quit: Leaving.]
wldcordeiro has quit [Quit: WeeChat 1.3]
zenguy_pc has joined #ruby
mengu has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
renanoronfle has quit [Ping timeout: 260 seconds]
wldcordeiro has joined #ruby
<mollusk_>
So in a nutshell, what is a module in Ruby? From I understand, they are just namespaces.
mengu has quit [Ping timeout: 264 seconds]
zenguy_pc has quit [Read error: No route to host]
<mollusk_>
file.rb > Mymodule > file contents
houhoulis has joined #ruby
saddad has quit [Read error: Connection reset by peer]
solenoids has joined #ruby
pepperbreath has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
__Greg has joined #ruby
__Greg has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
jenrzzz has joined #ruby
zenguy_pc has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<eam>
mollusk_: essentially, yes
Echohn has joined #ruby
renanoronfle has joined #ruby
Echohn_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<mollusk_>
eam, I am just trying to figure out the use for them (namespaces in general). When I read stuff online my learning issues kick in and make it difficult.
tkuchiki has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
dfinninger has joined #ruby
Echohn has quit [Ping timeout: 244 seconds]
l_tonz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mollusk_>
You have an empty room, and someone write a name on paper and puts it in the room. Now nobody else cn write the same name and put it in that room.
<mollusk_>
namespaces
<mollusk_>
That's my understanding
devbug_ has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
nemo_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
skade has joined #ruby
houhoulis has quit [Remote host closed the connection]
braincra- has joined #ruby
mistermocha has joined #ruby
bungoman_ has quit []
braincrash has quit [Ping timeout: 244 seconds]
ReK2 has quit [Ping timeout: 250 seconds]
<stardiviner>
I got this error when I execute "$ ri Array", .rbenv/versions/2.2.0/lib/ruby/2.2.0/rdoc/store.rb:548:in `load': marshal data too short (ArgumentError) . Google it, but have not found solution.
tmtwd has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
idefine has quit [Remote host closed the connection]
araujo_ has quit [Quit: Leaving]
jas02 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 264 seconds]
andykingking has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
htmldrum has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
finisherr has quit [Quit: finisherr]
jackjackdripper has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
janelleb has quit [Ping timeout: 265 seconds]
Pupeno has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
andykingking has left #ruby [#ruby]
mistermo_ has joined #ruby
lkba_ has joined #ruby
renanoronfle has quit [Ping timeout: 244 seconds]
d34th4ck3r has quit [Quit: zzz]
arescorpio has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
mengu has quit [Ping timeout: 265 seconds]
galette has joined #ruby
htmldrum has joined #ruby
devoldmx has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
tmtwd has joined #ruby
bruno- has joined #ruby
dopieee has joined #ruby
bruno- is now known as Guest65561
camt has quit [Ping timeout: 244 seconds]
zenguy_pc has quit [Read error: No route to host]
devoldmx has joined #ruby
dopie has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
SOLDIERz has joined #ruby
Guest65561 has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
l_tonz has quit [Remote host closed the connection]
<SleepySensei>
Anyone having trouble with using Ruby's features on OS X's new El Capitan?
symbol has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
trabulmonkee has joined #ruby
spuk_ has joined #ruby
mistermocha has joined #ruby
<eam>
win 10
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SleepySensei has joined #ruby
leat has quit [Remote host closed the connection]
cooperle1run has quit [Ping timeout: 250 seconds]
spuk has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
benjito has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
leat has joined #ruby
jas02 has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
trautwein has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
ajb is now known as ajb-
maletor has joined #ruby
aganov has joined #ruby
<certainty>
moin
joufflu has quit [Read error: Connection reset by peer]
<rehat>
how do I execute a terminal command and get a bool result. When I use system or backticks the terminal command still spits out. How do gems like xcpretty do it?
<ja>
what do you mean “bool result”?
<rehat>
oh wait, do I just pipe it to a string?
<ja>
depending on the exit status?
<rehat>
yeah exit status
<ja>
uhh, I forget… but there's a global variable for that, I believe
<leitz>
Okay, I'm more confused than normal. Need more coffee. Using Ruby 1.8.7, the "if" in line 44 should be an else, I thought, to ensure the directory was there.
<leitz>
The directory is there. If the "if" is an "unless", the script fails. When it's an "if", it works.
<leitz>
What am I missing?
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Echohn has quit [Client Quit]
<mikecmpbll>
leitz: wat?
cooperlebrun has quit [Ping timeout: 252 seconds]
<mikecmpbll>
the directory exists and the code in the `if` runs, right?
<mikecmpbll>
(the code which says the directory doesn't exist and exits the program)
mengu has joined #ruby
<leitz>
mikecmpbll, sorry. My poor typing. The directory exists, and the code does not exit. Instead, the Dir stuff below it runs.
govg has joined #ruby
jatb has joined #ruby
tvw has joined #ruby
<mikecmpbll>
well, File.directory? can't find it then
bMalum has quit [Remote host closed the connection]
chthon has joined #ruby
bMalum has joined #ruby
pontiki has joined #ruby
<leitz>
If I take the assignement and File.directory? lines and run them in irb, in the same directory as the script, I get a "true" response.
TomyWork has joined #ruby
<mikecmpbll>
oh, just noticed your syntax error
<d34th4ck3r>
I’m getting started with testing in Ruby. I’m confused about one thing. Is it neccessary to use install RSpec gem when using factory_girl ?
<mikecmpbll>
leitz: you don't use braces for if statements
nettoweb has joined #ruby
<mikecmpbll>
i'm surprised that's not erroring.
<mikecmpbll>
the rogue "end" on line 68 will be playing a part in that.
sl33k has joined #ruby
pontiki has quit [Ping timeout: 256 seconds]
bonemind has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
quaristice has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
<leitz>
Ah, I had tried "do"..."end", and not just "end".
<mikecmpbll>
ah :)
<leitz>
Too early in the morning...
Peg-leg has joined #ruby
jatb has joined #ruby
beast has quit [Quit: Leaving]
DoubleMalt has joined #ruby
Gnomethrower has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
mengu has quit [Remote host closed the connection]
bonemind has quit [Quit: WeeChat 1.0]
<leitz>
Well, Ruby is great. The people writing the XML I'm parsing...not so much.
<apeiros>
xml is a tool, and like all tools, lots of humans tend to use it the wrong way :(
<mikecmpbll>
you should be using yorickpeterse's parser, not nokogiri :p
dionysus69 has quit [Client Quit]
<mikecmpbll>
jk, i use ox.
dionysus69 has joined #ruby
gregf has joined #ruby
<leitz>
apeiros, there's another script in this set that cleans up stuff like htmlentities in their XML. bleagh..
zipace has joined #ruby
jenrzzz has joined #ruby
Kharma has quit [Ping timeout: 265 seconds]
tedstriker has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
bonemind has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
SenpaiSilver_ has joined #ruby
dopamean1 has joined #ruby
dikaio has quit [Quit: ........]
Sembei has joined #ruby
dopie has joined #ruby
perrier__ has joined #ruby
Regulati_ has joined #ruby
nebuer_ has joined #ruby
chipotle_ has joined #ruby
Dreamer3 has joined #ruby
<Veejay>
.all?(/foo/) can already be done as .all?(&foo) though, with a Proc containing the logic. The way you name your block (proc/lambda) even enforces better semantic reasoning IMHO
jenrzzz has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 265 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perrier_ has quit [Ping timeout: 265 seconds]
kurzweil has quit [Ping timeout: 265 seconds]
last_staff has quit [Ping timeout: 265 seconds]
arthurnn has quit [Ping timeout: 265 seconds]
ozzloy has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
Kharma has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
dhjondoh1 has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
armyriad has joined #ruby
kurzweil has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
arthurnn_ has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
nebuer has quit [Ping timeout: 265 seconds]
dopieee has quit [Ping timeout: 265 seconds]
dopamean_ has quit [Ping timeout: 265 seconds]
veloutin has quit [Ping timeout: 265 seconds]
<Veejay>
Hi
Veejay has left #ruby ["WeeChat 0.4.2"]
Veejay has joined #ruby
veloutin has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
hhatch has joined #ruby
<Veejay>
Hi
pwnd_nsfw has joined #ruby
Pisuke has quit [Ping timeout: 265 seconds]
chipotle has quit [Ping timeout: 265 seconds]
Mia has quit [Ping timeout: 265 seconds]
Feyn has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
Dreamer3_ has quit [Ping timeout: 265 seconds]
inteq has quit [Ping timeout: 265 seconds]
mblagden has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
mblagden has joined #ruby
BraddPitt has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Ping timeout: 260 seconds]
dhjondoh1 is now known as dhjondoh
inteq has joined #ruby
Xeago has joined #ruby
dhjondoh has quit [Client Quit]
amoeba has joined #ruby
l_tonz has quit [Remote host closed the connection]
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
<agent_white>
Hihi
iamvery has quit [Ping timeout: 268 seconds]
caliostro has joined #ruby
dhjondoh has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Remote host closed the connection]
iamvery has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Client Quit]
Jackneill has joined #ruby
l_tonz has quit [Ping timeout: 252 seconds]
diegobiavati has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
kimegede has quit [Quit: Leaving...]
Rollabunna has joined #ruby
kimegede has joined #ruby
Feyn has joined #ruby
<TomyWork>
"bundle exec" is a little slow even though i only have one gem dependency. is there a way to speed it up?
daffy_duck has quit [Quit: Leaving]
Taha_The_Hacker has joined #ruby
Pupeno has quit [Quit: Leaving...]
mark3 has quit [Quit: Leaving.]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
<yorickpeterse>
No
arup_r has joined #ruby
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
Rollabunna has quit [Ping timeout: 268 seconds]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
* apeiros
was/is tempted to say "don't use bundle exec"
<agent_white>
What is the correct way to add paths for a "default ruby project skeleton?" (As in, I have bin/project, lib/project.rb, lib/project/thing.rb)
krz has quit [Quit: WeeChat 1.2]
dionysus69 has quit [Read error: Connection reset by peer]
<apeiros>
agent_white: there's a couple of gem skeleton generators
<agent_white>
apeiros: That's the thing I did use bundle... but figured it was a bit much since I'm not looking to make a gem.
<apeiros>
bundler, hoe, jeweler come to mind. toolbox probably has more.
<apeiros>
agent_white: eh, that's IMO a mistake. the moment you have a lib dir, you should make it a gem :-p
<agent_white>
apeiros: Are hoe and jeweler a bit skinnier?
<apeiros>
I mean, you don't need to publish it
<agent_white>
apeiros: Ahhh :P Well. I made the lib dir not out of necessity, but rather that I had seen many projects using a lib dir so figured I should do the same.
Fredrich010 has quit [Read error: Connection reset by peer]
<caliostro>
hi there!
<apeiros>
that's a good idea. just as going the full way and making it a gem ;-)
Fredrich010 has joined #ruby
<apeiros>
all you need for a gem is a .gemspec. lib/bin/docs etc. are all optional.
<agent_white>
apeiros: Ah ok! So... maybe `bundle gem myprojectname` and just remove the unncessary files?
<apeiros>
sure
<apeiros>
or use some generator which can be configured
<agent_white>
Ahhh okey doke. Yeah really, not even thinking about 'gem' at all. Just kinda was thinking in terms of general skeleton layout.
<agent_white>
Alrighty! I'll take a peek at hoe and jeweler. :)
<agent_white>
apeiros: Thank you :)
<apeiros>
yw
ef has joined #ruby
<apeiros>
btw., a minimal gemspec is quite small too.
* apeiros
afk
Igorshp has joined #ruby
<apeiros>
agent_white: ah, while it's essentially unmaintained - I still use my own gem-new. feel free to work on it if you want to improve it :D
jenrzzz has joined #ruby
<agent_white>
apeiros: Ahhh okey doke! :)
alcipir has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
alcipir has quit [Ping timeout: 268 seconds]
rodfersou has joined #ruby
diegobiavati_ has joined #ruby
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
diegobiavati has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.3]
diegoaguilar has quit [Remote host closed the connection]
gregf has joined #ruby
jgt2 has joined #ruby
<TomyWork>
i want to access jira's api, reading, creating and deleting comments, possibly updating them too. can you recommend a gem?
Igorshp has quit [Remote host closed the connection]
step1step2_ has joined #ruby
<TomyWork>
that's issue comments
agent_wh1te has joined #ruby
Peg-leg1 has joined #ruby
helpa has quit [Remote host closed the connection]
jgt2 has quit [Client Quit]
helpa has joined #ruby
klaas_ has joined #ruby
jgt has joined #ruby
stannard has joined #ruby
Igorshp has joined #ruby
ruurd has quit [Client Quit]
Neniah has joined #ruby
agent_white has quit [Disconnected by services]
Shidash_ has joined #ruby
dopamean_ has joined #ruby
wnd_ has joined #ruby
agent_wh1te is now known as agent_white
agent_white has quit [Changing host]
agent_white has joined #ruby
charles81_ has joined #ruby
crayfishx_ has joined #ruby
bkxd_ has joined #ruby
[spoiler] has joined #ruby
devoldmx has joined #ruby
ruurd has joined #ruby
fumduq- has joined #ruby
jxs_ has joined #ruby
crankhar1er has joined #ruby
utkarsh_ has joined #ruby
shinenelson_ has joined #ruby
totimkop1 has joined #ruby
zwdr_ has joined #ruby
cbednarski_ has joined #ruby
stacybir1 has joined #ruby
charliesome has joined #ruby
im0b_ has joined #ruby
ironcame1 has joined #ruby
ericwood_ has joined #ruby
kramsee_ has joined #ruby
daed_ has joined #ruby
patteh_ has joined #ruby
aryaching has joined #ruby
mic_e has joined #ruby
speaking1ode has joined #ruby
tethra_ has joined #ruby
s00pcan_ has joined #ruby
Pro|_ has joined #ruby
pygospa has joined #ruby
cscheib_ has joined #ruby
agentmee1kat has joined #ruby
arthurix has joined #ruby
iamvery_ has joined #ruby
hellschreiber_ has joined #ruby
aryaching has quit [Client Quit]
skcin7_ has joined #ruby
marens_ has joined #ruby
marens_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
_main_ has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
rideh has joined #ruby
elaptics` has joined #ruby
arthurix_ has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Remote host closed the connection]
sonne_ has joined #ruby
Junaos_ has joined #ruby
SegFaultAX_ has joined #ruby
iamvery has quit [*.net *.split]
favadi has quit [*.net *.split]
dopamean1 has quit [*.net *.split]
Peg-leg has quit [*.net *.split]
troulouliou_div2 has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
mollusk_ has quit [*.net *.split]
nizmow has quit [*.net *.split]
s00pcan has quit [*.net *.split]
bkxd has quit [*.net *.split]
stannard_ has quit [*.net *.split]
skcin7 has quit [*.net *.split]
step1step2 has quit [*.net *.split]
towler has quit [*.net *.split]
rideh- has quit [*.net *.split]
omninonsense has quit [*.net *.split]
ggherdov has quit [*.net *.split]
speaking2ode has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
cscheib has quit [*.net *.split]
sarlalian has quit [*.net *.split]
rcs has quit [*.net *.split]
sonne has quit [*.net *.split]
speakingcode has quit [*.net *.split]
shevy has quit [*.net *.split]
agentmeerkat has quit [*.net *.split]
shinenelson has quit [*.net *.split]
BLuEGoD has quit [*.net *.split]
wnd has quit [*.net *.split]
anekos has quit [*.net *.split]
utkarsh has quit [*.net *.split]
__main__ has quit [*.net *.split]
Biohazard has quit [*.net *.split]
zwdr has quit [*.net *.split]
crankharder has quit [*.net *.split]
M-mistake has quit [*.net *.split]
preyalone has quit [*.net *.split]
apipkin has quit [*.net *.split]
charles81 has quit [*.net *.split]
daed has quit [*.net *.split]
TheRealPygo has quit [*.net *.split]
kramsee has quit [*.net *.split]
Guest36282 has quit [*.net *.split]
totimkopf has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
im0b has quit [*.net *.split]
lacrosse has quit [*.net *.split]
bcavileer has quit [*.net *.split]
Shidash has quit [*.net *.split]
woodruffw has quit [*.net *.split]
stacybird has quit [*.net *.split]
err_ok has quit [*.net *.split]
musicmatze has quit [*.net *.split]
fumduq has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
Pro| has quit [*.net *.split]
klaas has quit [*.net *.split]
Junaos has quit [*.net *.split]
marienz has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
odigity has quit [*.net *.split]
schaary has quit [*.net *.split]
bjeanes has quit [*.net *.split]
hellschreiber has quit [*.net *.split]
alxndr has quit [*.net *.split]
crayfishx has quit [*.net *.split]
bodgix has quit [*.net *.split]
bjmllr has quit [*.net *.split]
timmow has quit [*.net *.split]
Lilian has quit [*.net *.split]
akahn has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
edwardly has quit [*.net *.split]
ironcamel has quit [*.net *.split]
sparr has quit [*.net *.split]
marens has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
IceDragon has quit [*.net *.split]
lukaszk has quit [*.net *.split]
mjc_ has quit [*.net *.split]
mic_e_ has quit [*.net *.split]
nrk has quit [*.net *.split]
cbednarski has quit [*.net *.split]
tethra has quit [*.net *.split]
ericwood has quit [*.net *.split]
patteh has quit [*.net *.split]
6JTABS5S2 has quit [*.net *.split]
elaptics has quit [*.net *.split]
preyalone_ has joined #ruby
SegFaultAX_ is now known as SegFaultAX
IceDragon has joined #ruby
Biohazard has joined #ruby
woodruffw has joined #ruby
IceDragon is now known as Guest25014
rcs has joined #ruby
timmow has joined #ruby
Papierkorb has joined #ruby
adam| has joined #ruby
dionysus69 has joined #ruby
nizmow has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
nemo_ has joined #ruby
pandaant has joined #ruby
xxx has joined #ruby
xxx is now known as Guest99329
_main_ is now known as __main__
BLuEGoD has joined #ruby
bodgix has joined #ruby
GarethAdams has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wnd_ is now known as wnd
charles81_ is now known as charles81
speakingcode has joined #ruby
ggherdov_ has joined #ruby
shinenelson_ is now known as shinenelson
Zackio has quit [Quit: C-x C-c]
RedDwarf has joined #ruby
Neniah has quit [Remote host closed the connection]
jatb has joined #ruby
M-mistake1 has joined #ruby
im0b_ is now known as im0b
benjito has joined #ruby
mollusk_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
bjeanes has joined #ruby
musicmatze has joined #ruby
Lilian has joined #ruby
Taha_The_Hacker has joined #ruby
ggherdov_ is now known as ggherdov
cbednarski_ is now known as cbednarski
ben3 has joined #ruby
<Taha_The_Hacker>
Hi
sarlalian has joined #ruby
wldcordeiro has joined #ruby
nrk has joined #ruby
nhhagen has quit []
mistermocha has joined #ruby
pocketprotector has joined #ruby
lukaszk has joined #ruby
shevy has joined #ruby
odigity has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
apipkin has joined #ruby
bcavileer has joined #ruby
mjc_ has joined #ruby
alxndr has joined #ruby
towler has joined #ruby
marienz has joined #ruby
preyalone_ is now known as preyalone
bjmllr has joined #ruby
sparr has joined #ruby
Azure|dc has quit [Excess Flood]
akahn has joined #ruby
lacrosse has joined #ruby
err_ok has joined #ruby
schaary has joined #ruby
ben3 has quit [Quit: WeeChat 0.4.2]
DenSchub has quit [Read error: Connection reset by peer]
benjito has quit [Ping timeout: 260 seconds]
jgt has quit [Read error: Connection reset by peer]
iamdevnul has joined #ruby
jgt has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
anekos has joined #ruby
DenSchub has joined #ruby
Rickmasta has joined #ruby
flughafen has joined #ruby
c0ncealed has joined #ruby
nebuer_ has quit [Remote host closed the connection]
jatb has quit [Ping timeout: 244 seconds]
alcipir has joined #ruby
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
<agent_white>
apeiros: You still around?
karapetyan has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
bkxd_ has quit [Ping timeout: 268 seconds]
jatb has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
l_tonz has joined #ruby
alcipir has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daffy_duck has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Taha_The_Hacker has joined #ruby
senayar has joined #ruby
mostlybadfly has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
l_tonz has quit [Ping timeout: 250 seconds]
bonhoeffer has joined #ruby
ldnunes has joined #ruby
nemo__ has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
acke has quit [Quit: Leaving...]
aufi has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
bonhoeffer has quit [Client Quit]
nemo_ has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby
symbol has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
jatb has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
gregf has quit [Quit: WeeChat 1.3]
sankaber has joined #ruby
lulzmachine has joined #ruby
d34th4ck3r has quit [Quit: zzz]
jerry_tao has quit [Quit: jerry_tao]
c0ncealed has quit [K-Lined]
alcipir has joined #ruby
gregf has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
hfp_work has quit [Ping timeout: 240 seconds]
nertzy has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
alcipir has quit [Ping timeout: 252 seconds]
hfp_work has joined #ruby
chipotle_ has quit [Quit: cheerio]
diegobiavati_ has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
dhjondoh has joined #ruby
ashleyis has quit [Ping timeout: 272 seconds]
beast has joined #ruby
vigintas has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
<leitz>
Okay, running into an issue with a duplicate hash key.. I didn't even think that was possible, but I'm easily confused.
<apeiros>
jonnie: but you can rescue more than one exception class in a rescue
moeabdol has joined #ruby
<apeiros>
and plain `rescue` is identical to `rescue StandardError`
nemo__ has quit [Remote host closed the connection]
stamina has joined #ruby
<apeiros>
so no, not boo :)
<jonnie>
im using a library that raises the same exception class for all error states, and differentiates them by objects attatched to them, which are obv. inaccessible to the rescue statement
<jonnie>
very annoying
<apeiros>
I can imagine
<jonnie>
so im my example "abc" stands for the exception metadata from the library
<apeiros>
leitz: from your code I'm not quite sure how you figure you've got a duplicate key and where
Xeago has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
ef has joined #ruby
<leitz>
apeiros, I grep for the keys in the output file, and then do another grep with a sort -u.
<jonnie>
i guess ill just extract a method and it can have its own rescue clause, that way i can have nested rescues which is what i really want anyway
<apeiros>
your #<Nokogiri::XML::Attr:0x3ff2fae30684 name= "id" value="V-38692"> to_s will give "V-38692". since JSON does not support anything but string keys in hashes, that's what's being used in the serialization.
gains is now known as Pierreb
_blizzy_ has joined #ruby
<apeiros>
and that's also what you see when you puts it
iamvery has joined #ruby
ef has joined #ruby
<apeiros>
but two Nokogiri::XML::Attr with the same value in value are still two different hash keys., which is why you think you have a duplicate hash key.
chipotle has joined #ruby
benjito has joined #ruby
<leitz>
Ah, lemme go poke it a bit more.
cornerma1 has joined #ruby
nrk has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
changeme_ has quit [Quit: leaving]
curses has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
big|bad|wolf has joined #ruby
cornerma1 is now known as cornerman
<workmad3>
leitz: compare the `.hash` values for them
nateberkopec has quit [Read error: Connection reset by peer]
andykingking has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
c0ncealed has joined #ruby
jatb has joined #ruby
benjito has quit [Ping timeout: 255 seconds]
Taha_The_Hacker has quit [Quit: Page closed]
akemrir has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
govg has quit [Quit: leaving]
dionysus69 has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat has quit [Quit: leat]
leat has joined #ruby
prestorium has joined #ruby
ef has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
<leitz>
Updated code pushed. TIme for a nap. My work day is half over and most folks here are just getting up...
jenrzzz has quit [Ping timeout: 244 seconds]
eggoez has quit [Ping timeout: 250 seconds]
s00pcan_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
Fredrich010 has quit [Read error: Connection reset by peer]
ef_ has joined #ruby
Fredrich010 has joined #ruby
curses has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
tkuchiki has joined #ruby
s00pcan has joined #ruby
Cantaberry has joined #ruby
dionysus69 has joined #ruby
mengu has quit [Remote host closed the connection]
solenoids has quit [Ping timeout: 260 seconds]
benjito_ has joined #ruby
senayar has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
<TomyWork>
i want to access jira's api, reading, creating and deleting comments, possibly updating them too. can you recommend a gem? jira-ruby lacks documentation
foooobear has joined #ruby
allcentury has joined #ruby
nfk|laptop has quit [Ping timeout: 268 seconds]
eggoez has joined #ruby
nfk|laptop has joined #ruby
mwat has joined #ruby
nfk|laptop has quit [Client Quit]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benjito_ has quit [Ping timeout: 260 seconds]
lubarch has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
devoldmx has joined #ruby
blaxter has joined #ruby
lubarch has quit [Client Quit]
moeabdol has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
badhatte1 has joined #ruby
tkuchiki_ has joined #ruby
badhatte1 has quit [Client Quit]
tkuchiki has quit [Read error: Connection reset by peer]
badhatte1 has joined #ruby
badhatte1 is now known as badhatter
solenoids has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mengu has joined #ruby
karapetyan has joined #ruby
badhatter has quit [Client Quit]
ponga has joined #ruby
badhatter has joined #ruby
benlovell has quit [Ping timeout: 268 seconds]
nfk|laptop has joined #ruby
teclator has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
moeabdol has joined #ruby
Guest7 has joined #ruby
dionysus69 has joined #ruby
Respek has joined #ruby
crazydiamond has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
<zotherstupidguy>
to see if a date is upcoming or already in the past
<zotherstupidguy>
how can it be done?
<adaedra>
Parse the date to get a Time object, then compare the two.
rwilcox has quit [Client Quit]
<jhass>
puts parsed > Time.now ? "coming up" : "in the past"
benjito has joined #ruby
rwilcox has joined #ruby
Soda has quit [Remote host closed the connection]
daviddavis has left #ruby ["WeeChat 1.0.1"]
idefine has quit [Ping timeout: 255 seconds]
inteq has quit [Remote host closed the connection]
SenpaiSilver_ has quit [Quit: Leaving]
<zotherstupidguy>
adaedra jhass thanks works perfectly
JDiPierro has joined #ruby
haylon has joined #ruby
JDiPierro has quit [Remote host closed the connection]
benjito has quit [Ping timeout: 255 seconds]
decaff has left #ruby [#ruby]
Ebok has quit [Read error: Connection reset by peer]
Oatmeal has joined #ruby
allcentury has joined #ruby
Ebok has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
tagrudev has joined #ruby
TheRokh has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
benlovell has joined #ruby
tkuchiki has joined #ruby
chriscarpenter12 has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
<chriscarpenter12>
Is there a simple way to select the next value in a hash? I know I could do an each_with_index, but didn't know if there was just a next method or similar
nemo_ has quit [Remote host closed the connection]
<chriscarpenter12>
next key => value in a hash
<jhass>
most uses of hash that depend on its order are a smell
<jhass>
what are you doing?
tkuchiki has quit [Remote host closed the connection]
<zwdr_>
Huh, I've just googled, and it seems like the order of keys is preserved in > 1.9
<zwdr_>
nice to know
<jhass>
it's insertion order since 1.9, yes
zwdr_ is now known as zwdr
<jhass>
I still consider actually relying on that a smell
<zwdr>
yea
dmitch has joined #ruby
xet7 has quit [Quit: Leaving]
sl33k has joined #ruby
jgt has joined #ruby
nemo_ has joined #ruby
<jhass>
chriscarpenter12: so, maybe we can find a way to do what you're actually trying to solve without that requirement?
e1senhorn has joined #ruby
sharkman has joined #ruby
tkuchiki has joined #ruby
skade has joined #ruby
<chriscarpenter12>
I am building a large hash to pass to a PHP function to serialize and put in a database for wordpress. I have a hash already like this: {"1" => "20.00", "5" => "15.00", "20" => "10.00"} I need to iterate over it to then create three separate hashes for each key => value. Here is a gist: https://gist.github.com/chriscarpenter12/510f9c2f08c0dcc1c294
<jhass>
how do you obtain the source hash?
idefine has joined #ruby
<jhass>
why can't you build the needed structure there already?
<mehwork>
shouldn't doing ar = [1,2,3,4,5,6].map { |i| if i.even? "#{i} is even" else next end } p ar not show nil's?
<chriscarpenter12>
It is a query from a database joining multiple columns of prices and quantites
<jhass>
mehwork: next is like return for blocks, you exit early from the block and provide its return value. not specifying a value defaults to nil
jgt has quit [Ping timeout: 268 seconds]
<jhass>
compare next :foo
<mehwork>
jhass is there another way of doing what i want then? Also it doesn't seem to be exiting, break does though
<jhass>
chriscarpenter12: I don't quite follow where the value for "to" comes from in your example
crazydiamond has quit [Read error: Connection reset by peer]
<jhass>
mehwork: next returns from the block, break returns from the method invoking the block, return returns from the method defining the block
<chriscarpenter12>
jhass: from is the key and to is the next key -1
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<jhass>
ah
<jhass>
why is it strings?
<jhass>
also your result has 2 twice as the outer key, that's not possible
CloCkWeRX has joined #ruby
<chriscarpenter12>
jhass: Sorry it should be 1,2,3. Copy and paste mistake
elaptics` has quit [Quit: Coyote finally caught me]
elaptics`away has joined #ruby
<chriscarpenter12>
That's why I was asking if its possible to select the next key in a hash
<chriscarpenter12>
to get the "to" value
<jhass>
so you could do this fairly easily with .each_cons(2).with_index(1), but I'd still claim you should look into the method generating that input hash to return what you actually need instead
bonhoeffer_ has joined #ruby
<chriscarpenter12>
and the last result has the "to" doesn't need a value
elaptics`away is now known as elaptics
<mehwork>
jhass i still don't get it. Everything i'm reading says that next in a block should act like 'continue' and 'exit the block immediately, returning control to the iterator method, which begins a new iteration by invoking the block again'
bigmac_ has joined #ruby
<jhass>
mehwork: it does
<mehwork>
so i don't understand why in my example, i couldn't use 'else next' to skip it from returning nil
<jhass>
mehwork: it also provides the return value of the block
<mehwork>
oh hmm
<jhass>
you don't skip a iteration of the loop of the method invoking the block
<jhass>
you return from it
<jhass>
keep in mind that the method doesn't even need to have a loop
<jhass>
mehwork: mmh, depends a bit on how many elements you can reduce
ruurd has quit [Quit: ZZZzzz…]
<jhass>
mehwork: if the select can weed out many elements, the array .map needs to allocate is smaller, which can outweigh the overhead of iterating it twice
dionysus69 has quit [Ping timeout: 250 seconds]
<jhass>
mehwork: if there are few elements thrown out, compact's second iteration and checks being in all C could easily be faster
spider-mario has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
<jhass>
mehwork: so it depends, pick a preferred style unless you can prove a bottleneck though
CloCkWeRX has left #ruby [#ruby]
<jhass>
chriscarpenter12: I take it the query part is pseudocode?
e1senhorn has joined #ruby
<jhass>
it would be the interesting part actually
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chriscarpenter12>
Yes just two columns of like 20
JDiPierro has quit [Remote host closed the connection]
workmad3 has joined #ruby
<chriscarpenter12>
the quantity and price column is a string
chipotle has joined #ruby
nemo__ has joined #ruby
mhoungbo_ has quit [Quit: Quitte]
tenderlove has joined #ruby
idefine has quit [Remote host closed the connection]
<jhass>
chriscarpenter12: also I'm curious, how exactly do you interop with PHP? serialize to JSON and parse on the PHP side?
nemo_ has quit [Ping timeout: 255 seconds]
umgrosscol has joined #ruby
The_Phoenix has joined #ruby
RobertBirnie has joined #ruby
krz has joined #ruby
<chriscarpenter12>
jhass: This ruby I am writing is exporting products from an old website to a new woocommerce website. There are 25K products to export and manipulate. I am using this (https://github.com/jqr/php-serialize) to create the php serialized string. Which does work for me. I verified already that it can serialize my hash properly
bmurt has joined #ruby
lkba has joined #ruby
JDiPierro has joined #ruby
<jhass>
chriscarpenter12: well, for starters your query should produce multiple rows with the two items, [[2, 20.0], [5, 15.0], [20, 10.0]]
twe4ked has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
civil_ has joined #ruby
<jhass>
chriscarpenter12: would that thing serialize [{"from" => "2", ...}, {...}, {...}] to something compatible too?
Soda has joined #ruby
tenderlove has quit [Remote host closed the connection]
nemo_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
ych has joined #ruby
karapetyan has joined #ruby
ych is now known as Guest22639
skade has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
ruurd has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
<chriscarpenter12>
jhass: Can I just show my whole script right now?
twe4ked has joined #ruby
<jhass>
then you could just take the above alleged query result and rows.map.with_index {|row, i| next_row = rows[i+1]; {"from" => row[0], "to" => next_row && next_row[0], ...} }
<jhass>
I guess
Xeago has quit [Remote host closed the connection]
jerry_tao has quit [Quit: jerry_tao]
naftilos76 has quit [Ping timeout: 268 seconds]
nemo__ has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
tigarcia has joined #ruby
p0wn3d has joined #ruby
alcipir has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 250 seconds]
<jhass>
but it won't answer my second question
Cyther has joined #ruby
Renich has joined #ruby
cdg has joined #ruby
Renich has joined #ruby
synthroid has quit [Remote host closed the connection]
Renich has quit [Client Quit]
_blizzy_ has joined #ruby
Renich has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
nemo_ has quit [Remote host closed the connection]
synthroid has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
benjito_ has joined #ruby
chipotle has quit [Quit: cheerio]
TomyWork has joined #ruby
kimegede has quit [Quit: Leaving...]
devoldmx has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
dotix has joined #ruby
aganov has quit [Remote host closed the connection]
<apeiros>
too much alcohol and you do things like .sort_by(&:name).last instead of .max_by(&:name) :-|
<adaedra>
tssk tssk tssk
tvw has quit [Remote host closed the connection]
benjito_ has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
Feyn has quit [Quit: Leaving]
stannard has quit []
<apeiros>
well, not my fault they give us alcohol at work!
stardiviner has quit [Ping timeout: 255 seconds]
skade has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
<jhass>
chriscarpenter12: not sure I would be able to come up with something smarter without being able to play with the DB :/
_blizzy_ has quit [Max SendQ exceeded]
<adaedra>
apeiros: offices in Switzerland often give alcohol to employees?
<chriscarpenter12>
jhass: Its no problem. Appreciate the help though!!
<jhass>
chriscarpenter12: but things like eval(open(uri).read) are quire horrible, can't PHP do JSON?
jas02 has quit [Quit: jas02]
<jhass>
*quite
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chriscarpenter12>
I know it is, but this is a one time script. It just needs to work once
alcipir has joined #ruby
<jhass>
anyway, you want to look at Array#map and Array#zip
<chriscarpenter12>
The php code that generates the categories is terrible. I didn't write it. It is from the current website. I am just using it as is
<jhass>
you don't want to turn the prize/quantity stuff into hash
yeticry has joined #ruby
ajb- is now known as ajb
<jhass>
but with just quantity.map(&.to_i).zip(prizes.map(&.to_f))
<jhass>
that'll give you what I suggested above as query result
_blizzy_ has joined #ruby
<chriscarpenter12>
jhass: Thanks. I'll use this and tinker.
_blizzy_ has quit [Max SendQ exceeded]
<jhass>
er, I wrote crystal, .map(&:to_i) / .map(&:to_f)
<al2o3-cr>
heh
jatb has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
<jhass>
well and there are tons of nitpicks in there tbh
<chriscarpenter12>
I'm sure there are. I'm no expert by any meas
<chriscarpenter12>
means
Icey has quit [Read error: No route to host]
Icey has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass>
I still think the GROUP_CONCAT is fugly, but I'm not familiar enough with MySQL to tell a sane alternative just from looking (in postgres I'd return a proper array)
<sl33k>
jhass: okay. (i'll just tag along for now). its weird though
The_Phoenix has joined #ruby
<jhass>
sl33k: pretty much everything in Ruby is not actually restrictive (that is can be bypassed), it's for signaling intent
imperator has quit [Quit: This computer has gone to sleep]
<jhass>
*that is it
dionysus69 has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
<jhass>
chriscarpenter12: well, if you get it working and want it rewritten in idiomatic ruby ping back then, even though I won't be able to do something about the general approaches
mistermocha has quit [Ping timeout: 260 seconds]
imperator has joined #ruby
favadi has joined #ruby
rippa has joined #ruby
<TomyWork>
how do i pass a block from one method to another?
Renich has quit [Ping timeout: 250 seconds]
<TomyWork>
def thismethod(&block); mymethod(&block); end # this didnt work
Motoservo has quit [Quit: Motoservo]
chussenot has joined #ruby
simi has quit [Ping timeout: 246 seconds]
<jhass>
TomyWork: it should, got a testcase to prove?
<TomyWork>
hmm, in itself it works...
stannard has joined #ruby
Renich has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
l_tonz has joined #ruby
sasdasd has joined #ruby
klaas_ is now known as klaas
relix_ has joined #ruby
ef has left #ruby [#ruby]
relix has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
<imperator>
Lewix, OpenStruct
Guest78890 has quit [Ping timeout: 250 seconds]
nemo_ has quit [Remote host closed the connection]
l_tonz has quit [Ping timeout: 244 seconds]
tigarcia has quit [Remote host closed the connection]
jonnie has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
chussenot has quit [Quit: chussenot]
dopamean_ has quit [Ping timeout: 272 seconds]
govt_official has joined #ruby
bricker has joined #ruby
<govt_official>
good morning ruby-ers
tigarcia has joined #ruby
dnewkerk has joined #ruby
bonhoeffer_ has quit [Quit: bonhoeffer_]
l_tonz has joined #ruby
dnomyar has joined #ruby
dnomyar has quit [Client Quit]
aryaching has joined #ruby
<sl33k>
ending method names with = is ewww
dnomyar has joined #ruby
<sl33k>
cos i wouldn't know, and i would want to put a space between the = during code formattng. (weird convention)
jonnie has joined #ruby
kies^ has joined #ruby
pathrocle has joined #ruby
macowie has joined #ruby
<greedo>
can anyone that uses faraday tell me why when trying to upload a file I keeping getting "no multipart boundary param in Content-Type"
Igorshp has joined #ruby
caliostro has quit [Ping timeout: 260 seconds]
linduxed has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
<jhass>
sl33k: well, the point is that you can on the call side
treehug8_ has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 244 seconds]
mollusk_ has quit [Ping timeout: 240 seconds]
cooperlebrun is now known as clx
mengu has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
chipotle has joined #ruby
ef_ has quit [Quit: leaving]
treehug8_ has joined #ruby
eminencehc has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
aufi has quit [Quit: Konversation terminated!]
tkuchiki has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
zotherstupidguy has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
idefine has joined #ruby
alcipir has joined #ruby
shredding has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
slawrence00 has joined #ruby
Igorshp has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
rbennacer has joined #ruby
sepp2k has joined #ruby
Xeago has quit [Remote host closed the connection]
Hamled has joined #ruby
Igorshp has joined #ruby
clx_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Hamled>
Is this a good place to ask about WEBrick? I'm trying to figure out the best way to use WEBrick while handling the "bad request-line" exception that gets raised from parse().
clx has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
alcipir has quit [Ping timeout: 260 seconds]
dfockler has joined #ruby
tigarcia has quit [Remote host closed the connection]
codecop has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
benjito has joined #ruby
sasdasd has quit [Quit: Ex-Chat]
tigarcia has joined #ruby
devoldmx has joined #ruby
pdoherty has joined #ruby
tigarcia has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest73350
zotherstupidguy has quit [Quit: WeeChat 1.2]
nemo_ has quit [Remote host closed the connection]
yeticry has joined #ruby
zotherstupidguy has joined #ruby
Guest73350 has quit [Read error: Connection reset by peer]
benjito has quit [Ping timeout: 240 seconds]
step1step2__ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<haylon>
Hey guys. I asked this in #bundler about 3hrs ago. Is bundler capable of updating older gems so that the gemspec looks for the exe folder and adds the new bin/console and bin/setup scripts?
Igorshp has joined #ruby
prestorium_ has joined #ruby
prestorium_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
inteq has joined #ruby
monsieurp has quit [Quit: Lost terminal]
monsieurp has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
tenderlove has quit []
mary5030 has joined #ruby
step1step2_ has quit [Ping timeout: 260 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<havenwood>
Hamled: This is a good place. Do you need to use WEBrick instead of one of the Rack webserver gems?
dionysus69 has joined #ruby
cwong_on_irc has joined #ruby
<Hamled>
Perhaps not. I hadn't considered alternatives. By rack webserver gems do you mean thin/puma?
cwong_on_irc has quit [Max SendQ exceeded]
<govt_official>
thin is pretty great
<havenwood>
haylon: Say more about what you mean by looking for the exe folder? What older gems are you thinking of?
cwong_on_irc has joined #ruby
tigarcia has joined #ruby
<Hamled>
My goal is to create an interactive tutorial to HTTP by having students write basic HTTP requests and displaying very minimal responses (like no headers or anything)
<havenwood>
haylon: Puma, Thin, Unicorn, Rainbows! and Passenger are all options.
<havenwood>
haylon: Oops, misstell.
<havenwood>
Hamled: ^
haylon has quit [Ping timeout: 250 seconds]
<haylon_>
havenwood, if you use bundler 1.9 or 1.10, they changed where the binaries go and changed the gemspec mostly. I can do it all by hand and check to make sure the gemspecs are the same, but I was wonering if htere was a functionality like that already
<Hamled>
I'll definitely look into whether those would give me more flexibility
pandaant has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
<havenwood>
Hamled: If your students aren't yet all familiar with curl HTTPie might be a nice way to show them responses: https://github.com/jkbrzt/httpie#readme
<havenwood>
Hamled: Roda is great. I think it would make a good teaching framework.
bruno-_ has quit [Read error: Connection reset by peer]
<havenwood>
Starts as just a routing tree and you add in features via plugins.
skade has quit [Ping timeout: 268 seconds]
<jonnie>
Hamled: ive hacked on the webrick code before. it aint pretty
<jonnie>
id definitely use something else
<havenwood>
Puma makes for much nicer code to look at under the hood.
ruby-lang953 has joined #ruby
<jonnie>
also webrick is dog slow. its due for removal from stdlib to be honest
karapety_ has joined #ruby
step1step2__ has quit [Quit: Leaving]
Hounddog has quit [Remote host closed the connection]
<havenwood>
Hamled: Puma would also be a nice chance to later look at ThreadPool, etc.
jenrzzz has joined #ruby
step1step2 has joined #ruby
<Hamled>
jonnie, speed definitely is of no concern in this particular case. But yeah... just looking at where the bad request exception gets raised when it can't parse the request line... it's hard to see how I could handle that differently w/o digging into the guts
Xeago has quit [Remote host closed the connection]
<jonnie>
you think speed isnt a concern but it will drive you mad in development, water torture style
baroquebobcat has joined #ruby
[Butch] has joined #ruby
<haylon_>
well, havenwood, I have to take off. We have some midnight code releases that I need to be present for.
<haylon_>
later guys
<eam>
I mean, if you're really looking at the basics of a single request speed really won't be an issue
haylon_ has quit [Quit: Leaving]
<shevy>
they use ruby not C!
<jonnie>
no i mean all those little delays when hes iterating his teaching platform in development
<Hamled>
my top concern is absolute control over the request and response parsing... ideally w/o having to write something directly ontop of the socket lib
<eam>
you could even just write your own simplistic server if you want to let students understand it (sans parallelism, for example)
<Hamled>
jonnie, yah I gotcha
<jonnie>
waiting 3 seconds for it to boot rather than 0.5, it adds up
<eam>
ah, startup time
finisherr has joined #ruby
bruno-_ has joined #ruby
<eam>
Hamled: you said "no headers" - if you're limiting things to http 0.9 it's kinda trivial to make an example server
eminencehc has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
<havenwood>
Hamled: ^ Might be interesting to look at.
s00pcan has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
senayar has quit []
<Hamled>
nks
<eam>
looks about right :)
Xeago has joined #ruby
<Hamled>
eam, well it would be no headers to begin with... we definitely need to introduce the concept of headers and probably talk about Server and Cookie
<Hamled>
*thanks
bricker has joined #ruby
eminencehc has joined #ruby
[Butch] has quit [Client Quit]
<Hamled>
okay gtg, thanks again for everyone's support and suggestions
TomyWork has quit [Remote host closed the connection]
ruby-lang953 has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
Alina-malina has joined #ruby
l_tonz has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
<yorickpeterse>
Anybody here on an IPv4 only network?
shredding has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
<yorickpeterse>
If so, can you run this and tell me the output: require 'socket'; p Socket.getaddrinfo('localhost', nil)
Xeago has quit [Remote host closed the connection]
eminencehc has joined #ruby
dionysus69 has quit [Quit: dionysus69]
nettoweb has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Xeago has joined #ruby
Jardayn has joined #ruby
<yorickpeterse>
errr
RobertBirnie has joined #ruby
<yorickpeterse>
require 'socket'; p Socket.getaddrinfo('::1', nil)
tigarcia has quit [Remote host closed the connection]
<yorickpeterse>
that
chipotle has quit [Quit: cheerio]
amclain has joined #ruby
skade has joined #ruby
jpfuentes2 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
arup_r has joined #ruby
<imperator>
yorickpeterse, how would i know if i am?
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator>
(I'm at home, btw, i've no idea)
relix has joined #ruby
dotix has joined #ruby
<yorickpeterse>
ping6 google.com
lkba has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
idefine has joined #ruby
<imperator>
ping6: UDP connect: No route to host
dain has quit [Remote host closed the connection]
<yorickpeterse>
context: Ruby's Addrinfo#ip_address method returns different local IPs depending on if you used an empty string or nil as the input IP for Addrinfo#initialize
<yorickpeterse>
with '' it seems to return '::1' for me, with nil it returns '0.0.0.0'
Asher has joined #ruby
lulzmachine has quit [Quit: Connection closed for inactivity]
chipotle has joined #ruby
bricker has quit [Quit: leaving]
pdoherty has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 250 seconds]
skweek has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
idefine has quit [Ping timeout: 255 seconds]
chris2 has joined #ruby
Motoservo has joined #ruby
synthroid has quit [Remote host closed the connection]
dopamean_ has joined #ruby
skweek has joined #ruby
arthurix_ has joined #ruby
<imperator>
curious
bricker has joined #ruby
<yorickpeterse>
Here's another nice what the fuck:
joonty has quit [Quit: joonty]
<yorickpeterse>
Addrinfo#ip_address is supposed to raise if the address family is not AF_INET/AF_INET6, but there's no way to test this in MRI
<yorickpeterse>
Since the Ruby API has no means of creating an Addrinfo with, say, AF_UNSPEC as Addrinfo#initialize already prevents this
<yorickpeterse>
So basically you can't test it from Ruby
bryanray has joined #ruby
<yorickpeterse>
But Socket#recvfrom returns Addrinfo instances without IP addresses
<yorickpeterse>
so you do _have_ to test it
<yorickpeterse>
yay Ruby
naztharune has quit [Quit: BitchX-1.1-final -- just do it.]
<asad_>
For converting blocks to procs, and vice versa...is & a method or just syntax?
Ulfalizer has joined #ruby
j4cknewt has joined #ruby
Igorshp has quit [Remote host closed the connection]
trabulmonkee has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
rewzn has quit [Quit: WeeChat 1.2]
leafybas_ has joined #ruby
arthurix_ has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
Peg-leg1 has quit [Quit: Leaving.]
<Ulfalizer>
is 'gem install' supposed to automatically install dependencies even when you run it on a local *.gem file (by supplying its path)? doesn't seem to work for e.g. 'gem install nokogiri-1.6.6.2.gem'. it complains that mini_portile is missing.
<ytti>
yes
<Ulfalizer>
i'm a ruby noob trying to integrate some ruby modules into a dev. environment setup script
nofxx has joined #ruby
nofxx has joined #ruby
<Ulfalizer>
ok, wonder what might be wrong then...
pathrocle has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 260 seconds]
pathrocle has joined #ruby
ayonkhan has joined #ruby
leafybas_ has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
rewzn has joined #ruby
bmurt has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Read error: Connection reset by peer]
anisha has joined #ruby
mrmadcat has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Guest25014 is now known as IceDragon
Musashi007 has joined #ruby
<caliostro>
what do u think about the default debugger .. ruby -r debug filename[, ...]
<caliostro>
i am looking for a simple one to learn
tigarcia has joined #ruby
lubarch has joined #ruby
baroquebobcat has joined #ruby
lubarch has quit [Client Quit]
mikecmpbll has joined #ruby
lubarch has joined #ruby
bonemind has quit [Quit: WeeChat 1.0]
psy_ has quit [Read error: No route to host]
andikr has quit [Remote host closed the connection]
`tim` has joined #ruby
<Veejay>
caliostro: Can't tell, never used it
based_pdev_ has joined #ruby
leafybasil has joined #ruby
danman has joined #ruby
<caliostro>
ok
caliostro has quit [Quit: Exit-Chat]
Fredrich010 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
leafybasil has quit [Remote host closed the connection]
`based_pdev` has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
duderonomy has quit [Ping timeout: 265 seconds]
naztharune has joined #ruby
idefine has joined #ruby
arthurix_ has joined #ruby
spankthemonkee has joined #ruby
maletor has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
RegulationD has joined #ruby
patdohere has joined #ruby
dfinninger has quit [Remote host closed the connection]
<jhass>
chriscarpenter12: so PHP.serialize([{...}, {...}, ...]) didn't generate usable output?
arthurix has quit [Ping timeout: 250 seconds]
<hanmac>
shevy did you miss me? did you hear the recent ruby news? ;P
rbowlby has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin has joined #ruby
gregf has joined #ruby
wolfram74 has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<wolfram74>
I'm trying to run a sinatra server locally with some name besides localhost, -o short almost works, but then i get a socket error
bluOxigen has joined #ruby
<wolfram74>
running a mac environment, is there some extra set up I have to do?
rcvalle has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
<shevy>
hanmac what news? and since you have been working, you basically became inactive :(
<chriscarpenter12>
jhass: No I still had to pass the hash, but by getting the values into an array like you suggested I was able to get the output that I needed
<mg^^>
wolfram74: the hostname you give has to resolve to an IP address.
<jhass>
chriscarpenter12: mmh, weird, so it needs to be 1-indexed or why?
<wolfram74>
so, instead of -o short, maybe -o short:8081?
<hanmac>
shevy i see the log that you noticed .? already ... hm and that loop and stop iteration returns the value of it probably too
<hanmac>
and my system becomes wily ;P
<mg^^>
wolfram74: for port you need to use -p
KensoDev has quit [Remote host closed the connection]
<mg^^>
wolfram74: it shouldn't be. But short has to be valid... e.g. resolvable to an IP address
ramfjord has quit [Ping timeout: 260 seconds]
<shevy>
hanmac no real idea, so far I didn't see any news that excite me about ruby's future honestly
dotix has joined #ruby
<wolfram74>
so maybe there's something about my internal routing that's not happy?
<hanmac>
nil.?this.?is.?very.?funny ;P
<Diabolik>
shevy what are your thoughts on ruby's future?
pulgolino has joined #ruby
chopin has quit [Remote host closed the connection]
NeverDie has joined #ruby
dravine has quit [Read error: Connection reset by peer]
<bricker>
hanmac: where can I read about this news
dravine has joined #ruby
<mg^^>
wolfram74: with your resolver. "short" needs to be resolvable in your hosts file (or whatever the Mac uses) or DNS (mDNS), to an IP address on your system
chopin has joined #ruby
<wolfram74>
ok, I'll rumage around for that information, thanks for helping me rule it out as a ruby problem
<shevy>
Diabolik I dunno... it just isn't the same as it used to be anymore. matz seems to put most time into mruby, which is fair enough but projects always change with different core maintainers; and none of the major changes seem to give me anything I really need. It's mostly very small changes that lead to an improve, if at all
<bricker>
hanmac: thanks
<shevy>
hanmac ah yeah I remember. Well it does not affect me since I don't have to use it, so that is ok for me. Static strings forcing me to change the way how I used to write ruby though now that is annoying
NeverDie has quit [Client Quit]
<wolfram74>
is it illadvised to have the same thing mapped to the same IP address?
<wolfram74>
like, 127.0.0.1 is localhost AND short?
<Diabolik>
shevy are you moving to using elixir more?
eminencehc has quit [Remote host closed the connection]
<eam>
wolfram74: no problem having two names resolve to the same ip
<wolfram74>
cools
<shevy>
Diabolik nah, I don't see what elixir improves compared to ruby. it would have to be a language that is better than ruby
pdoherty has quit [Quit: Leaving]
<Diabolik>
shevy it has a more solid direction imo
Mudak has joined #ruby
<shevy>
it looks to be like one of those "show up then fade away" languages
mhoungbo has quit [Remote host closed the connection]
NeverDie has joined #ruby
alcipir has joined #ruby
<Diabolik>
shevy what do you find yourself moving to instead?
<shevy>
there are not so many choices :(
<eam>
shevy likes php
<shevy>
python would make sense but for some reason, python feels wrong
eminencehc has joined #ruby
<mg^^>
Python always feels wrong to me, too
<hanmac>
shevy: RPGMV is out, but it does swap ruby with javascript ... and now it does have to deal with the consequences ... :P
<mg^^>
We inherited a big python codebase, I hate reading it after using Ruby for the last year
<mg^^>
I hate reading Perl now, too, and that used to be my staple
<shevy>
perl 6 has had some nice ideas, it should have been out 10 years ago
<mg^^>
Perl 6 was also really slow last time I looked at it. Made Ruby look like a race car
<Mudak>
vroom vroom ruby race car
<mg^^>
And yeah, the lack of Perl 6 reaching a decent "release" status is really what pushed me to Ruby
<eam>
really? I just want perl5
<shevy>
perl5 feels like the 1980s
<imperator>
elixir :)
<shevy>
writing perl .cgi was fun though
<eam>
shevy: and the 1980s was awesome (1990s fyi)
<shevy>
I wonder if younger people today also think that their time-of-youth was more awesome than the later years :)
<shevy>
1980 was the time of B-movies! Conan... Terminator ... nightmare on elm street...
Axy has quit [Read error: Connection reset by peer]
<shevy>
and scripting languages
<eam>
Terminator isn't a B movie
<shevy>
well, perl at least
ibouvousaime has joined #ruby
<eam>
80s action movies are far, far better than the tripe that comes out these days
tvw has joined #ruby
<mg^^>
Now don't get me wrong, I liked writing Perl, but I was craving more pure object orientation because it helps me write better, more maintainable stuff. Plus, since I'm mainly a tools & automation guy I needed to get on board with Puppet.
<mg^^>
so it was a natural transition
<eam>
compare die hard to any of its sequels
<Ulfalizer>
i don't like most modern movies. i wonder if i'm getting old...
<shevy>
eam yeah, you don't need to convince me, I know you are right!
<shevy>
all those crappy cgi effects that came later
psy_ has joined #ruby
<Ulfalizer>
it's like every director has ADD nowadays. story telling is boring, apparently.
<eam>
or any eddie murphy movie!
* Ulfalizer
waves his fist
pathrocle has joined #ruby
pathrocle has quit [Remote host closed the connection]
<eam>
Ulfalizer: nutty professor II the klumps is 2000 though
<Ulfalizer>
also, next year it'll be 20 years since mario 64 was released. that gets me pretty bad.
<mg^^>
Mudak: being a child of the 90s, Metallica is still one of my favorite bands
<eam>
but yeah he hasn't done anything good since 95 or so
drocsid has quit [Ping timeout: 250 seconds]
eminencehc has quit [Remote host closed the connection]
<Ulfalizer>
i never saw II
<Ulfalizer>
probably lucky :P
<eam>
there's a beverly hills cop 4 in production. I'm not sure how I feel about that
<shevy>
ibouvousaime did you try to not have a ' ' before you invoke the ()
<Mudak>
mg^^: thats the first time i heard them in a while, i dont miss them lol
cidic has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
<Mudak>
too dark/death metal for me
clx_ has quit [Ping timeout: 240 seconds]
<ibouvousaime>
on what lines shevy ?
al2o3-cr has joined #ruby
<eam>
metallica is dark?
<Mudak>
for me ya
jenrzzz has joined #ruby
<ibouvousaime>
fixed shevy
<shevy>
ibouvousaime where you use Message.new
<cidic>
I am trying to understand / convert some ruby code to php I have a rough idea of how the ruby syntax works but need some help understanding a code example http://rubyquiz.com/quiz56.html
<shevy>
the ruby parser can be strict sometimes
<Ulfalizer>
comparing metallica to death metal feels weird... :P
eminencehc has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
<ibouvousaime>
thank you shevy
<Ulfalizer>
especially 90s metallica
<shevy>
\o/
cescalante has quit [Quit: cescalante.com]
<shevy>
Ulfalizer hehe... but I guess you are also not one of the youngest people anymore right? :)
<eam>
90s metallica is basically alt-rock
arthurix_ has quit [Ping timeout: 240 seconds]
<Mudak>
yea thats how clueless i am about that type of music but metallica is as close to death metal as i wanna go, and its probably still far from it. their songs are never happy.
<Ulfalizer>
shevy: don't want to come across as too old, but i've passed 30 at least :P
<shevy>
yeah past 30 is already very old
<Ulfalizer>
...
<Ulfalizer>
thanks :P
<cidic>
anyone willing to take 5 min to help me?
<eam>
how do you type with your arthritic, gnarled claws of hands?
tigarcia has quit [Remote host closed the connection]
<Ulfalizer>
i'm fueled by my hatred of the youngins
<eam>
*millennials*
* eam
raises fist
<Ulfalizer>
or "90s kids"
<shevy>
Mudak yeah it wasn't my style of music either, although I liked re-samplings like concert-performances of "nothing else matters" in an ennio morricone style
<mg^^>
Heh, I have also gained a fair bit of "get off my lawn" attitude over the last few years :)
diegoaguilar has quit [Remote host closed the connection]
<eam>
let's be honest, king of 80s rock is David Lee Roth
<workmad3>
shevy: how about if I'm not past 30, but not younger than 30 either?
<workmad3>
shevy: does that make me old?
<Mudak>
any music can be my style it depends on my mood but my mood very rarely appreciates metallica
<shevy>
perl first appeared in 1987
beast has quit [Quit: Leaving]
<shevy>
workmad3 you are also old
<workmad3>
shevy: crap, I'm older than perl :(
<mg^^>
lol
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy>
ruby appeared in 1995
<eam>
workmad3: but not older than unix!
<mg^^>
I'm almost as old as the Apple I
<shevy>
that's actually a 8 years gap to perl
davedev24 has joined #ruby
<workmad3>
eam: no, thankfully not older than unix :)
<shevy>
was there any contender to perl back then?
<mg^^>
I should probably think about how I'm going to move into management within the next few years
<mg^^>
But a dinosaur in terms of computing history, yes
wolfram74 has quit []
janelleb has joined #ruby
<Ulfalizer>
i'm tired of modern minimalism
<mg^^>
Damn I forgot about that logo
<eam>
and now I'm browsing /r/outrun
<mg^^>
looks like it'd pop up on an atari cartridge :)
yeticry has quit [Ping timeout: 240 seconds]
<cidic>
I am trying to understand / convert some ruby code to php / js I have a rough idea of how the ruby syntax works but need some help understanding a code example http://rubyquiz.com/quiz56.html
Soda has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
p0wn3d has quit [Ping timeout: 240 seconds]
bMalum_ has joined #ruby
yeticry has joined #ruby
p0wn3d has joined #ruby
ruurd has joined #ruby
karapety_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy>
ruby code to php?
<shevy>
ah, you write in php normally
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
<cidic>
shevy: yea
<shevy>
what is the specific example you want to put into php?
<shevy>
class Chart?
Lucky__ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
nfk|laptop has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 272 seconds]
bMalum_ is now known as bMalum
<cidic>
shevy: Ideally all the code here but I would be happy if you could just explain this one RoundRobinChart
<shevy>
ok RoundRobinChart is a subclass to chart
<cidic>
I got that
<shevy>
so all that is defined in class Chart, is available as well
<shevy>
ok
<cidic>
and def is a func
<shevy>
yeah
<shevy>
now you already are at about 50% at least!
<cidic>
chart.clear is calling something?
<shevy>
this is a method invocation
<cidic>
but chart has no clear method?
baweaver has joined #ruby
<shevy>
nono
<shevy>
do you see the line with attr_reader :lanes, :cars, :rounds, :chart
<shevy>
this is a shortcut
<shevy>
what it does is define 4 methods
baweaver has quit [Remote host closed the connection]
<shevy>
one method is: def chart
chriscarpenter12 has left #ruby [#ruby]
<shevy>
do you see that cidic
<cidic>
so chart.clear is like this.chart.clear() in C-ish?
<shevy>
kinda
dopamean_ has joined #ruby
rcvalle has quit [Quit: rcvalle]
<shevy>
chart() will return @chart
<shevy>
and .clear() is invoked on @chart; chart is a String object
<rehat__>
I'm new to ruby, and my code looks like shit compared to other ruby code I have seen. Trying to automate something I do a lot in git with a xcode project. Is there a better way to catch issues with system or backtick calls? https://gist.github.com/rehat/320af8b8b7e7eb446448
birett has quit [Quit: Leaving]
<cidic>
jhass: I’m trying to get what this is effectively accomplishing: w = w.sort_by { |k, v| v } w.pop while w[-1][1] > w[0][1] # sort by weight and get the lowest weight(s)
s2013 has quit [Client Quit]
momomomomo has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
<jhass>
cidic: I guess it's a weird way to do .min_by
<cidic>
so it is getting the min value in the array?
jgt has joined #ruby
<cidic>
jhass: the next line is car = w[rand(w.size)][0]
<cidic>
so it shouldn’t be reducing it to one result should it?
patdohere has joined #ruby
Eiam_ has joined #ruby
<jhass>
well, I guess so
<jhass>
that's just a weird way for .sample.first btw
<ibouvousaime>
do you know what causes this "nil is not a symbol" error in here http://pastie.org/10502572 ?
<cidic>
jhass: so you don’t know what it is accomplishing?
patdohere has quit [Client Quit]
AndroidLoverInSF has joined #ruby
<jhass>
cidic: I do and I gave you the links to understand by yourself
<jhass>
ibouvousaime: I don't think that's your full code? also please properly indent your code
<shevy>
cidic .pop on an array removes an element
Eiam has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
<shevy>
the rest is a while loop that continues as long as the condition it wants to evaluate is true
<jhass>
govt__: I'm gonna ban you for ban evasion now
<adaedra>
!ban govt__ !P Ban evasion
govt__ was kicked from #ruby by ChanServ [Banned: Ban evasion]
<eam>
u w0t m8
<jhass>
or adaedra will...
<jhass>
thanks :D
craysiii has joined #ruby
idefine has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
ngscheur1 has quit [Ping timeout: 240 seconds]
alcipir has joined #ruby
cndiv has joined #ruby
shinnya has joined #ruby
bruno-_ has quit [Ping timeout: 252 seconds]
<cndiv>
Can someone recommend a gem that interacts with IRC networks, like freenode? I'm brand new, work in IT, and spending a TON of time helping people who haven't heard of IRC before do basic registration commands, protecting accounts, etc. Thought that'd be a good first CLI project.
<jhass>
cndiv: cinch is the most popular atm
<cndiv>
jhass: I'll look that up, thanks. BTW, what's the right way to find the popular ones? I typed in "irc" to rubygems.org and came up with a bunch of stuff.
<eam>
"irc bot"
alcipir has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
<cndiv>
wow cinch is popular. I guess sort by downloads...
<jhass>
well, if you want to be throughout going to all results, looking at download count, looking up the GH repo and note stars
<jhass>
if you want less work check awesome_ruby and ruby-toolbox.org
<adaedra>
cinch is pretty neat too :)
<adaedra>
(that's also important)
spuk has joined #ruby
<cndiv>
jhass: those are new to me, bookmarking..
pocketprotector- has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
sharkman has joined #ruby
<cndiv>
Great stuff, thanks for your help jhass and #ruby in general. :-)
willardg has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cndiv>
PS ever tried explaining IRC to someone who never has heard of it? It takes *forever* to get people set up!
ramfjord has joined #ruby
<shevy>
use written text in realtime to communicate with one another!
<shevy>
idle to power
crime has joined #ruby
<adaedra>
cndiv: may be client choice. I guess people will be more willing if they have a nice interface.
stamina has quit [Ping timeout: 255 seconds]
arooni has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
niemcu has joined #ruby
maletor has joined #ruby
<cndiv>
the problem is more like "commands?" and "I don't have to register the nickname?" and "cloak?" and "protection?" and "Do I really have to do this at all? No? Nevermind."
schaary has quit [Read error: Connection reset by peer]
niemc2 has joined #ruby
<cndiv>
And at my workplace, that's a recipe for "I'll just never speak to the developers, then."
niemc2 has quit [Client Quit]
niemcu has quit [Client Quit]
<adaedra>
If you start by cloaks, you'll indeed get weird results :p
freerobby has quit [Quit: Leaving.]
<shevy>
well cloak... I never needed that, I don't even know what it really is
niemcu has joined #ruby
<eam>
cndiv: should be pretty easy if you use an easy to use client
<eam>
just preconfigure it
<bricker>
cndiv: Is Slack not an option for your team?
freerobby has joined #ruby
<cndiv>
bricker: Oh no, that's a big political issue
<shevy>
is java a "high level language" or a "low level language"?
<eam>
avoid slack
<adaedra>
shevy: off-topic level language :p
schaary has joined #ruby
niemcu has quit [Client Quit]
pathrocle has quit []
krz has quit [Quit: WeeChat 1.2]
syath has quit [Quit: WeeChat 1.2]
<cndiv>
I'm actually writing this utility to just get people to use IRC instead, it's the *setup* that takes forever for brand new employees. 1 hour to hand you a computer, 2.5 to get you set up in optional IRC, and no one not required to use that cares on day one.
pdoherty has joined #ruby
naftilos76 has quit [Remote host closed the connection]
<eam>
cndiv: why not just provision it automatically?
<bricker>
cndiv: too bad, slack is great and very user-friendly
<cndiv>
eam: Not sure exactly what you mean by automatically.
<bricker>
I use IRC every day and I still have trouble with it sometimes
<eam>
cndiv: well, when you do the computer provisioning just prepopulate it with their credentials
<eam>
it's just as easy as slack -- irc is a protocol
<eam>
you can make it as easy as press button to chat
bmurt has joined #ruby
<shevy>
adaedra they talk about IRC here!!!
<eam>
(slack otoh is a hot mess and you can't really simplify it)
<cndiv>
This is my old employer, and we don't do provisioning. Tri-platform shop, basically anything allowed as work computer, and lots of shipping to far remote countries and never actually touch their computer.
<adaedra>
shevy: the :p indicated a joke. Swoosh!
<eam>
cndiv: ah, just ship them an app to do it then
<cndiv>
that's the idea
<shevy>
the french :p looks like a fly on the lips
Silox| has joined #ruby
diegoaguilar has joined #ruby
<cndiv>
download this, it handles the freenode side, then put this information here in these fields in these top five clients.
<adaedra>
cndiv: don't introduce them to advanced feature while they don't need them. We can totally IRC without cloaks.
<eam>
most clients you can just configure the app by writing out a config file -- without any app interaction at all
<shevy>
IRC without cloaks and pants
<adaedra>
Also, for bots, lita looks also nice. Not IRC centered, but capable.
<shevy>
but seriously, what is cloaking for needed?
<adaedra>
shevy: hide the host.
<cndiv>
adaedra: another big political issue, allowing that. And could I, the one IT guy at the company, make them for employees of the company? No.
<shevy>
hmm
<shevy>
suspicious people... they want to hide something on IRC
<arup_r>
not me
<shevy>
hehe
<cndiv>
or avoid the weirdos in the community
<shevy>
yeah... the 1 million karma dude
<eam>
speaking of hiding - slack used to use a public cdn for all the files/images linked on slack (re: no authentication)
<arup_r>
I hide my surname
<shevy>
arup_r I am at 402 karma now!
<eam>
you could find lot of messed up internal company stuff by searching around on it
<arup_r>
shevy: lol
<shevy>
I found out that when you downvote others, your karma sinks :(
<crime>
it blows my mind that people actually use slack
<shevy>
slackware?
<adaedra>
cndiv: if your goal is to avoid external interaction and just have company people interact, make your own IRC server
Puck6633 has joined #ruby
<arup_r>
yes shevy if you want give downvotes give only questions not answers if you don't want to loose reps
<arup_r>
haha
<cndiv>
adaedra: another political issue! I could go on and on...
<eam>
crime: it makes more sense when you consider it's just the millennial version of lotus notes or MS exchange
<adaedra>
cndiv: rather do nothing, if you're like that.
<shevy>
yeah... it's weird how that influences people like comparing discussions on reddit versus stackoverflow
baweaver has joined #ruby
clx has quit [Ping timeout: 268 seconds]
<cndiv>
adaedra: I don't work there anymore. I just think people should be able to communicate, need a first project, and know the people doing my old job would appreciate it.
<adaedra>
cndiv: aaaaah ok
* arup_r
will join reddit to earm karmas there
<arup_r>
earn*
cyle has joined #ruby
<adaedra>
cndiv: if your problem is publicly shown IPs, some networks have a default masking of them, for what it's worth.
<adaedra>
IPs or reverses
clx has joined #ruby
<cndiv>
adaedra: Yeah, but can't rely on that for everyone across the globe at home, so on.
<adaedra>
?
<Puck6633>
I haven't used Ruby in a long time and I was curious what can be done these days. I installed the latest version via RubyInstaller, then used gem install to install opengl, glu, and glut, then tried to run the examples included with the opengl gem but they all spit out this error: "in `require': cannot load such file -- glu/glu (LoadError)"
<cndiv>
It's a tough situation using IRC to interact with your paid team and literally anyone worldwide who wants a voice in it.
<Puck6633>
Are the examples broken, or am I? :P
<shevy>
Puck6633 do you have mesa installed ftp://ftp.freedesktop.org/pub/mesa/11.0.3/mesa-11.0.3.tar.xz
<shevy>
let's see the opengl gem, perhaps it was abandoned
<drbrain>
I think my work is merged back in to whatever is base opengl now
<bricker>
crime: yeah it's MIND-BLOWING that people would use a friendly, easy, affordable chat service.
<bricker>
my mind is BLOWN
<Puck6633>
gem list --local shows all three, yes.
<crime>
closed source
<adaedra>
that's not everyone concern.
petricore has quit [Client Quit]
fantazo has quit [Quit: Verlassend]
<Puck6633>
I remember you used to need to require 'rubygems' or require it via a command line argument, but apparently that isn't the case any more.
fantazo has joined #ruby
<havenwood>
Puck6633: that was 1.8 and prior
symm- has quit [Quit: Leaving...]
<havenwood>
Puck6633: See it with?: gem which glu
<Puck6633>
havenwood: Spits out C:/Dev/Ruby22/lib/ruby/gems/2.2.0/gems/glu-8.2.1-x86-mingw32/lib/glu.rb
<Puck6633>
So apparently it can find it.
<Puck6633>
Oh, wait.
<Puck6633>
I was just poking around in the gem directories and under lib there are a bunch of .so files in directories that seem to be Ruby version numbers.
relix has joined #ruby
<Puck6633>
I'm running this on Windows straight up, not even Cygwin. Those should be DLLs, right?
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 256 seconds]
chopin has quit [Remote host closed the connection]
<crime>
idk if you guys use the redis gem that much, but I'm connected to a redis server running locally, and I can issue commands and get the right results, but the .connected? method still returns false for some reason.
trabulmonkee has joined #ruby
rcvalle has quit [Quit: rcvalle]
VeryBewitching has joined #ruby
alcipir has joined #ruby
webopsx has joined #ruby
cdg has joined #ruby
stamina has joined #ruby
ldnunes has quit [Quit: Leaving]
civil_ has quit [Ping timeout: 240 seconds]
<crime>
oh, it returns false until you issue a command first
<eam>
probably lazy connects?
<crime>
i guess, yeah I was fooling around with it in irb
benlovell has joined #ruby
alcipir has quit [Ping timeout: 246 seconds]
<Puck6633>
It looks like the gems just weren't made with Windows in mind. I should probably use Cygwin if I want to use the opengl binding.
<adaedra>
Basic way of doing it is Hash#each, Hash#find if you want to find a key/pair, ...
arthurix has quit [Ping timeout: 260 seconds]
Cyther has joined #ruby
_djbkd has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
blackoperat has joined #ruby
<ruby-lang272>
aadedra thanks for your answer, I want to get the key and count the number of ocurrences of an answer on the values
fmcgeough has quit [Quit: fmcgeough]
blackoperat has quit [Max SendQ exceeded]
rodfersou has quit [Quit: leaving]
alcipir has joined #ruby
<ruby-lang272>
right now I am using two each blocks to first iterate over the hash and the second one to count the ocurrences, but I was thinking that maybe there's a better way to do this
<adaedra>
you want all elements that have a given value?
Guest13015 has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
bkxd has joined #ruby
<imperator>
Puck6633, dll == so
<imperator>
it's just a different internal format with a different name
allcentury has quit [Ping timeout: 250 seconds]
<adaedra>
ruby-lang272: show your actual code, maybe?
lxsameer has quit [Remote host closed the connection]
momomomomo has joined #ruby
NeverDie has joined #ruby
symm- has joined #ruby
sdwrage has joined #ruby
bruno-_ has joined #ruby
paulcsmith has joined #ruby
idefine has quit [Remote host closed the connection]
paulcsmith has quit [Remote host closed the connection]
paulcsmith has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndroidLoverInSF has quit [Ping timeout: 260 seconds]
alcipir has quit [Ping timeout: 252 seconds]
ruurd has quit [Quit: ZZZzzz…]
gagrio has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
ruurd has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
ruurd has joined #ruby
ibouvousaime has quit [Read error: Connection reset by peer]
<Sigma00>
and also give an example hash if you can
_djbkd has joined #ruby
bruno-_ has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
<adaedra>
If I understood your need, this can be done with a simple Hash#select, but I'm not sure
bruno-_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
ok, that's a bit more complicated
bryanray has joined #ruby
<adaedra>
what's your input like?
naztharune has quit [Quit: [BX] Time wasted: all of it]
tuxero has joined #ruby
<ruby-lang272>
the result from the query is something like week1{{ name: 'Jon', question: 'answer1'} {name: 'Peter', question: 'answer3'}}
<Puck6633>
imperator: I thought that Windows executables couldn't normally load so files though. Isn't that part of what Cygwin does?
<imperator>
can load em fine
eminencehc has quit [Remote host closed the connection]
<imperator>
when you build a c extension on windows for ruby, it creates an .so file, not a .dll
<adaedra>
I think it's a .dll it's disguise, though
<imperator>
i basically advise against using cygwin
<imperator>
if you need unix, use unix
<Puck6633>
Hm. Any idea why the interpreter can't find glu then?
<imperator>
one sec, installing
<Sigma00>
ruby-lang272: is that first line activerecord?
leitz has joined #ruby
<Puck6633>
Thanks! I appreciate the help. :)
EllisTAA has joined #ruby
<Puck6633>
I would love to play around with gl in Ruby. It's my favorite language by far but I don't usually get to do much with it because I feel limited to CLI.
dotix has quit [Quit: Leaving]
<imperator>
Puck6633, in irb you're trying "glu/glu" ?
<Puck6633>
I'm trying to run the examples in the directory of the same name that come with the opengl gem.
idefine has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
<Puck6633>
I've mostly been trying nehe #2 because it's super simple
<imperator>
so, this gem bundles precompiled binaries for windows - for versions 1.9, 2.0, and 2.1
<imperator>
but not 2.2
gagrio has quit [Quit: Leaving...]
<imperator>
so, option one is to use an older version of ruby
<Puck6633>
d'oh! I'm surprised I didn't notice that. Thanks!
<imperator>
option two is to bug them to bundle a binary for 2.2
<imperator>
option three is to build from source
<Puck6633>
I'll try downloading a 2.1 build and install that instead.
<Puck6633>
Actually, it might not be that hard to build from source.
<imperator>
got headers?
<imperator>
that could be painfule
kirun has quit [Quit: Client exiting]
<Puck6633>
Last time I used RUby on WIndows it was built with visual studio, but this one claims to be a mingw executable which is my preferred compiler and already installed and set up.
<Puck6633>
headers? for gl?
<imperator>
yep
<Puck6633>
Yes, I do.
atomical has quit [Read error: Connection reset by peer]
<imperator>
alrighty give it a shot
jonnie has joined #ruby
<Puck6633>
can gem do it for me, or should I just download the source from git?
atomical has joined #ruby
l_tonz has joined #ruby
idefine has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
<shevy>
come to linux :)
<imperator>
try gem install glu --platform ruby
graft has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 265 seconds]
<imperator>
I'm assuming you've got devkit installed and configured
chopin has quit [Remote host closed the connection]
<drbrain>
eam ^^
<Sigma00>
ruby-lang272: is that first line activerecord?
<ruby-lang272>
yes
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Icey has quit [Quit: Leaving]
bmurt has joined #ruby
<Sigma00>
ruby-lang272: `week` is in the database?
Dakota-choad has joined #ruby
<Sigma00>
it's a column?
cidic has quit [Quit: cidic]
arthurix has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Puck6633>
imperator: The devkit doesn't seem to include opengl, and it's asking me to update my PATH to include the build tools, but my path already includes the mingw bin directory so I'm not sure what it wants.
<ruby-lang272>
Simga00 that's a method that order the results by week
<imperator>
Puck6633, you need the devkit
<imperator>
install it in C:\Devkit (or wherever, but this makes it easy to find)
<Puck6633>
If I add the devkit to my path I can build glu, but glut is also missing a 2.2 binary and when I try to build it configure can't find OpenGL
swgillespie has joined #ruby
<eam>
drbrain: oooooo much nicer thank you :)
kies^ has joined #ruby
<drbrain>
the ?V.ord and friends give away the magic a bit
<Sigma00>
ruby-lang272: ah, too bad. I was gonna suggest doing the counting entirely on the DB
<imperator>
oh, i hadn't tried glut, but i was able to get glu and opengl to install
<eam>
yeah, maybe those are better as integers
CBX has joined #ruby
bmurt has quit [Client Quit]
arthurix_ has quit [Ping timeout: 255 seconds]
<Sigma00>
if you do group.count you get a nice hash with {grouping => count} values
<ruby-lang272>
The issue is that I need to get the results ordered by week
<imperator>
Puck6633, looks like it wants some very specific header files
<Puck6633>
imperator: Hm. I can try copying them from my mingw installation.
AndroidLoverInSF has joined #ruby
<imperator>
could try that
<imperator>
supposedly included with visual studio, too
PlasmaStar has left #ruby [#ruby]
ajb is now known as ajb-
baweaver has quit [Remote host closed the connection]
<imperator>
so you could try appending "-- --with-glut-dir=" at the end
PlasmaStar has joined #ruby
frx_ has joined #ruby
<frx_>
When a proc is converted to a block and sent to a method like foo(&some_proc), why does that not consume an argument as an arument is passed to the foo method
ajb- is now known as ajb
rwilcox has quit [Ping timeout: 252 seconds]
JStoker has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
absynthe_faery has left #ruby ["Leaving so soon, didn't have a chance to bloom."]
<adaedra>
it's a special argument
PlasmaStar has joined #ruby
<Sigma00>
ruby-lang272: you could always do .group("RBDMS-specific date trimming command here") to group by week. For example in postgres: .group("date_trunc('week', created_at)")
<Puck6633>
imperator: It seems to ignore the extra option, and it still can't find the header after copying it from my regular mingw include directory to the devkit include directory.
<adaedra>
it's not in the arguments count
<imperator>
Puck6633, looks like it's explicitly checking for it under "GL" or "GLUT"
<imperator>
so you may need to create a subdirectory
<imperator>
something tells me the extconf.rb file could use a little love for windows
<frx_>
adaedra: So the proc is converted to a block but it is passed in as a regular argument when the method is called?
<adaedra>
no, not as a regular argument, as a block.
Coldblackice has joined #ruby
crdpink has joined #ruby
<Puck6633>
imperator: My mingw installation has a GL directory under include with gl, glu and freeglut, so I copied that to the devkit's mingw/include directory, and then copied the opengl32 and glut libraries to devkit/mingw/lib
Xeago has quit [Remote host closed the connection]
idefine has joined #ruby
kies^ has quit [Ping timeout: 260 seconds]
<frx_>
adaedra: Okay...
frx_ has quit [Quit: Page closed]
<Puck6633>
So now I have glut.h in C:\Dev\RubyDev\mingw\include\GL\ but it still can't find it.
<adaedra>
Ah, frx_ leaved
<Puck6633>
Maybe I'll have a look at the makefile to see what it's doing.
<imperator>
yeah, it's not liking something, not sure what
<imperator>
i think you just need --with-glut-include
j4cknewt has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
CCBX has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
tobyx has quit [Disconnected by services]
yfeldblum has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
RudestBuddhist has joined #ruby
EvilJStoker has quit [Ping timeout: 268 seconds]
CCBX has quit [Client Quit]
tobyx_ has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
CCBX has joined #ruby
CBX has quit [Ping timeout: 265 seconds]
EvilJStoker has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
<Puck6633>
imperator: Apparently for me at least it's only checking the include directories in the ruby install directory. Copying the GL directory to there fixed that issue. Now it just isn't linking glut correctly. Should be pretty easy to resolve.
diegoaguilar has quit [Remote host closed the connection]
<imperator>
I have gl.h and glu.h but no glut.h
<imperator>
or is one of those the same thing?
<adaedra>
they're different libs iirc
kadoppe has quit [Ping timeout: 244 seconds]
<Puck6633>
they're all different. MingW doesn't normally come with glu or glut.
johnny56 has quit [Remote host closed the connection]
<Puck6633>
I use freeglut, which is easy to compile with MingW.
shadeslayer_ is now known as shadeslayer
<imperator>
ah
<imperator>
actually, there -is- a dir_config for freeglut
jordanloky has joined #ruby
<ibouvousaime>
how can I go from [Argument, Goes, Here] to "Argument Goes Here" ?
j4cknewt has joined #ruby
<RudestBuddhist>
Hey Everybody, I have a question about code re-use, modules, and scope. I’m trying to re-use some code through a module and call it with another file but I’m unsure how to keep my ‘session’ variable in scope. I believe I can use @variable to do it but I’m not sure if this is the correct way. Can someone point me in the right direction of a doc? https://gist.github.com/anonymous/acdc61942de7414edd57
<ibouvousaime>
I dont know how to put those spaces :/
<imperator>
ibouvousaime, Array#join
diegoaguilar has joined #ruby
<imperator>
adaedra, ah, yep, i was looking in the wrong place
<Puck6633>
adaedra: I technicall have dual boot, but I spend probably 70% of my time on this PC playing things like StarCraft 2 and The Witcher 3 so I don't ever actually use the other install. I could run Linux in a VM, but really what am I going to do with it?
<adaedra>
Puck6633: things that are easier under Linux than under Windows.
<Puck6633>
And I don't think the performance would be good enough using a VM from the linux side.
<adaedra>
VMs are rather good today.
<Puck6633>
You mean like compiling a ruby gem? XD
havenn has quit [Client Quit]
<adaedra>
I compiled ruby on a vm without problems.
<Puck6633>
What would you recommend in terms of virtual machines?
<imperator>
i use vmware fusion
<shevy>
come to linux!
<imperator>
dual boot mac
<Puck6633>
haha
duderonomy has joined #ruby
<imperator>
i run the vm's on the osx side though
<adaedra>
Puck6633: Virtual box, vmware
<shevy>
Puck6633 actually I understand the gamer's view, I sorta stopped playing games when I transitioned into linux :\
<Puck6633>
I always feel like Jobs turns over in his grave when somebody installs something other than Mac OS on a Mac.
<adaedra>
Then he got another turn from me.
<shevy>
unless you pay an iFee
<shevy>
adaedra stop turning the zombies!
ruurd has joined #ruby
<Puck6633>
shevy: Yeah, that's something I could never do. I'm 100% gamer. Game developer would be my dream job.
<imperator>
so become a game developer ;)
<Puck6633>
I'll check out vmware fusion and virtualbox again. Thanks guys. :)
<shevy>
I liked the older games more, the new wave of games is graphics graphics graphics
<adaedra>
Puck6633: Personally, I'm under OS X most of the time, but still have a Windows I boot for when I want to play.
idefine has quit [Remote host closed the connection]
<Puck6633>
imperator: Ha, I wish it were so easy. It's a tough industry to break into.
bruno-_ has quit [Ping timeout: 255 seconds]
<imperator>
make your own games
<Puck6633>
You have to be really talented or know the right people.
<imperator>
i have some board games you could convert for me ;)
RegulationD has quit [Remote host closed the connection]
<imperator>
2D mind you, but still
<Puck6633>
That's where my weekends go! :)
atomical has quit [Ping timeout: 255 seconds]
<Puck6633>
I've been a wannabe indie developer for years, it's just hard to pull together everything that comprises a game by yourself. I particularly fall short in the art category.
AndroidLoverInSF has quit [Quit: Leaving]
<imperator>
that's what artists are for
<imperator>
find someone in college who works cheap/free :)
<imperator>
anyhoo, gotta run
<Puck6633>
haha
<imperator>
have a good night all
imperator has quit [Quit: Leaving]
<adaedra>
you can't expect something developped entirely by yourself to match real productions.
failshell has quit []
ruby-lang272 has quit [Ping timeout: 246 seconds]
EmeraldExplorer has joined #ruby
<ibouvousaime>
can someone tell me the stupid mistake Ive done here the code runs but its not doing what it supposed to do (count the number of vovels of str)?
<Puck6633>
Oh, I don't. I mean when I show people close to me what I've made they ask "What's that supposed to be?" XD
<ibouvousaime>
ohh thanks everyone damn I really need more study xDD
htmldrum has joined #ruby
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
bMalum has quit [Client Quit]
karapetyan has joined #ruby
riotjon__ has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arthurix has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
danman has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
danman has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patdohere has joined #ruby
arthurix has joined #ruby
CCBX has quit [Quit: Leaving]
<shevy>
ibouvousaime remember to find a consistent style in the code you write, it will make it easier to spot errors
arthurix_ has quit [Read error: No route to host]
arthuri__ has joined #ruby
tomchapin has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
<shevy>
http://pastie.org/10502867 for instance, the ';' is not needed. The last '}' should rather be on a new line, if you also used indent in the block
tomchapin has joined #ruby
omer has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
leafybasil has joined #ruby
arthurix has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
minimalism has joined #ruby
omer has quit [Client Quit]
Nahra has joined #ruby
pepperbreath has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 256 seconds]
leafybasil has quit [Read error: Connection reset by peer]
bubbys has quit [Ping timeout: 260 seconds]
konopka has quit [Ping timeout: 268 seconds]
\13k has quit [Ping timeout: 268 seconds]
leafybasil has joined #ruby
pepperbreath has joined #ruby
alexblom has quit [Ping timeout: 268 seconds]
Guest99329 has quit [Ping timeout: 268 seconds]
l_tonz has joined #ruby
cscheib_ has quit [Ping timeout: 264 seconds]
gnarf has quit [Ping timeout: 268 seconds]
kitallisii has quit [Ping timeout: 268 seconds]
cscheib has joined #ruby
konopka has joined #ruby
\13k has joined #ruby
xxx has joined #ruby
kitallis has joined #ruby
xxx is now known as Guest22572
alexblom has joined #ruby
l_tonz has quit [Remote host closed the connection]
gnarf has joined #ruby
inteq has quit [Remote host closed the connection]
bMalum has joined #ruby
devbug has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
arthurix has joined #ruby
eminencehc has joined #ruby
arthuri__ has quit [Read error: No route to host]
<ibouvousaime>
shevy, ohh yeah I will work on that
Jardayn has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
arthurix has quit [Ping timeout: 244 seconds]
l_tonz has joined #ruby
freerobby has quit [Quit: Leaving.]
sankaber has joined #ruby
htmldrum has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mag42c has quit [Quit: mag42c]
bubbys has joined #ruby
l_tonz has quit [Ping timeout: 250 seconds]
dopamean_ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
solocshaw has joined #ruby
trosborn has joined #ruby
jenrzzz has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
ibouvousaime: check ~/.bash_profile and/or ~/.bashrc for any lines with PATH=...
NeverDie has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ochkoffein has quit [Ping timeout: 256 seconds]
<shevy>
on arch
<shevy>
jhass is an archster too
<adaedra>
“archster”
<havenwood>
ibouvousaime: While you're at it see if you see a?: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
ledestin has joined #ruby
<adaedra>
first time I read that.
karapetyan has quit [Ping timeout: 246 seconds]
<jhass>
huh, arch symlinked everything to /usr/bin
<havenwood>
ibouvousaime: Output from?: rvm current
<jhass>
anyway, your PATH is seriously fucked up
<ibouvousaime>
that last one was from pacman -Qo /usr/sbin/ruby
<ibouvousaime>
rvm current gives ruby-2.2.1
<jhass>
ibouvousaime: type -a ruby
diegoaguilar has quit [Remote host closed the connection]
<al2o3-cr>
/usr/bin/ruby 99.9% sure
Ox0dea has joined #ruby
Motoservo has quit [Quit: Over & out.]
<ibouvousaime>
bash: -a : command not found
<ibouvousaime>
you meant ruby -a ?
<ibouvousaime>
jhass,
<jhass>
no, `type -a ruby`
<ibouvousaime>
bash: -a : command not found
<havenwood>
ibouvousaime: which -a ruby
devoldmx has quit [Ping timeout: 260 seconds]
<jhass>
type type -a ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr>
not type `type` is a program
<zenspider>
rawr
<ibouvousaime>
output /usr/sbin/ruby
<ibouvousaime>
and /usr/bin/ruby
<jhass>
I don't even ..
devoldmx has joined #ruby
<ibouvousaime>
its 2 lines
<jhass>
grep -Rn "PATH" $HOME /etc/profile.d
<shevy>
:D
jgt has joined #ruby
tuxero has left #ruby [#ruby]
<ibouvousaime>
jhass, toooooooooooooooo long
<ibouvousaime>
and doesnt seeem to end
<jhass>
well, gotta grep your entire home since you're incapable to answer havenwood's question
<zenspider>
that search isn't going to provide anything useful through all the noise
bonhoeffer has joined #ruby
<ibouvousaime>
what question ? sorry xD
<jhass>
what the hell you set your PATH to
Jackneill has quit [Remote host closed the connection]
<ibouvousaime>
a sec
Channel6 has quit [Quit: Leaving]
<ibouvousaime>
I used this " \curl -sSL https://get.rvm.io | bash -s stable --ruby " after the "gem install rails" didnt seem to do work after its install
<adaedra>
o_O
<al2o3-cr>
O_o
<adaedra>
Also, I don't see the need to bother with rvm when you have a distro that should provide a recent ruby.
<ibouvousaime>
I did this too \curl -sSL https://get.rvm.io | bash -s stable --rails
<ibouvousaime>
O.o
cidic has joined #ruby
<adaedra>
Are you copying all the commands you see to see if they work?