Rodya_ has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 244 seconds]
johnmilton has joined #ruby
Rodya_ has joined #ruby
ur5us has joined #ruby
speaking1ode has joined #ruby
bronson has joined #ruby
casadei has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
casadei has quit [Client Quit]
firstdayonthejob has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
rehat_ has quit [Ping timeout: 276 seconds]
_djbkd has quit [Read error: Connection reset by peer]
william3 has joined #ruby
DanKnox_ has joined #ruby
DanKnox has joined #ruby
_djbkd has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
loc22 has quit [Quit: Be back later ...]
dopamean1 has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
<shevy>
does anyone of you happen to have a standalone ruby script that shows a bit how to use fibers? I remember I sorta understood what threads were doing after an example from the pickaxe, batch-downloading several remote webpages concurrently. I have not yet found a similar good example for fibers
william3 has quit [Ping timeout: 250 seconds]
DanKnox_ has quit [Ping timeout: 250 seconds]
DanKnox has quit [Ping timeout: 250 seconds]
askhat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
askhat has joined #ruby
duckpuppy has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
yfeldblum has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
theery has joined #ruby
ManUtd27 has joined #ruby
ManUtd27 has quit [Client Quit]
ohaibbq has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
<ruby[bot]>
Radar: # => undefined method `reverse_merge' for {:foo=>"lol"}:Hash ...check link for more (https://eval.in/521467)
<Radar>
Oh right.
intrigueD has quit [Remote host closed the connection]
mg^ has joined #ruby
<Radar>
It's a Rails thing.
weemsledeux has joined #ruby
Deck` has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
* pizzaops
imagines that IRC had emoji and imagines that :trollface: rendered into the appropriate image and directs the imaginary trollface image at Radar
DanKnox has joined #ruby
DanKnox_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<patrick99e99>
hmm.. ok well whats the easiest way to turn an array of keys into a hash with nil values?
<gregf_>
^^ there. x is incremented first and then the condition
<gregf_>
but anyways. prolly what you'd learn the first month in uni ;)
fumk has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Timberwo|f has joined #ruby
dionysus69 has joined #ruby
neanderslob has quit [Ping timeout: 265 seconds]
FooMunki has joined #ruby
neanderslob has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
elifoster has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
ruby-lang655 has quit [Quit: Page closed]
bronson has joined #ruby
Guest76989 is now known as BLuEGoD
BLuEGoD is now known as Guest92775
marr has joined #ruby
rikkipitt has joined #ruby
CloCkWeRX has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
tulak has joined #ruby
rdark has joined #ruby
<EdwardIII>
not in our unis heh
Spami has joined #ruby
william3 has quit [Remote host closed the connection]
<Xeago>
gregf_: there's nothing preventing you from making a `repeat` though
askhat has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
bruce__lee has joined #ruby
tulak has quit [Ping timeout: 248 seconds]
william3 has joined #ruby
andrewvos has joined #ruby
askhat has quit [Client Quit]
patrick99e99 has quit [Quit: Page closed]
bruce_lee has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
<Ox0dea>
Xeago: How would you make it work with a modifier conditional?
jackjackdripper has joined #ruby
f4cl3y has joined #ruby
jackjackdripper has quit [Client Quit]
chthon has joined #ruby
<Ox0dea>
Derp. `def repeat; yield; end`
<Ox0dea>
Kinda silly, though.
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has joined #ruby
william3 has quit [Ping timeout: 248 seconds]
lubekpl has joined #ruby
awe_ has joined #ruby
Timberwo|f has quit [Ping timeout: 240 seconds]
<Ox0dea>
I complicated it by assuming that you might want `repeat { foo }` to loop forever.
chouhoulis has quit [Ping timeout: 250 seconds]
ziyadb has joined #ruby
trinaldi has joined #ruby
nettoweb has joined #ruby
awe_ has quit [Quit: Leaving]
<apeiros>
gregf_: do {} while() in ruby is `begin … end while ()` (and matz dislikes the construct due to its conflicting nature wrt postfix while)
william3 has joined #ruby
joonty has joined #ruby
woo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
duckpuppy has joined #ruby
eregi has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
siaw has left #ruby [#ruby]
lxsameer has joined #ruby
nimbu has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
eregi has quit [Ping timeout: 255 seconds]
<gregf_>
apeiros: sure. i faintly remember ever using a while/for :). much less in prod code
<EdwardIII>
wrt?
<apeiros>
with regards to
<gregf_>
with regards to... presumably
<nimbu>
hey guys, I'd like to ask a quick question. How might RUBY_ENGINE become undefined in a Rails App? Also I have ruby version 1.9.3 installed but at runtime in my app RUBY_VERSION is set to 1.8.7
<EdwardIII>
ah
<ddv>
nimbu: 1.9.3 is EOL don't use it
<ddv>
same goes for 1.8.7
<apeiros>
nimbu: RUBY_ENGINE is not defined in 1.8
woo has joined #ruby
<nimbu>
ddv: I'm afraid I really need to get some older code to run
william3 has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
william3 has joined #ruby
<apeiros>
hm, how'd you call the "opposite" operation of padding? cutting? i.e. ensuring a string has a max length (even if that means losing part of the string)
<Papierkorb>
apeiros: truncating?
<apeiros>
hah! I knew there was a better word
<apeiros>
yeah, truncating sounds about right
chipotle has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
eregi has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
Ebok has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
Guest70540 is now known as BLuEGoD
Bilge has quit [Ping timeout: 260 seconds]
eregi has quit [Ping timeout: 240 seconds]
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
jeanlinu_ has joined #ruby
Bilge has joined #ruby
woo has joined #ruby
godzillaenlacasa has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
Asher has quit [Quit: Leaving.]
htmldrum has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
skade has quit [Ping timeout: 276 seconds]
sondr3 has joined #ruby
jam_ has joined #ruby
phredus has joined #ruby
charlemagne has joined #ruby
Burgestrand has joined #ruby
jam_ has quit [Ping timeout: 255 seconds]
Snowy has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
roshanavand has joined #ruby
jeanlinu_ has quit [Read error: No route to host]
htmldrum has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
jeanlinux has joined #ruby
johnmilton has joined #ruby
Icey has quit [Remote host closed the connection]
Icey has joined #ruby
jottr has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
hamed_r has joined #ruby
Snowy has joined #ruby
bkxd has joined #ruby
s2013 has quit [Client Quit]
htmldrum has joined #ruby
trinaldi has quit [Quit: reboot]
UtkarshRay has joined #ruby
chipotle has quit [Quit: cheerio]
momo-reina has joined #ruby
trinaldi has joined #ruby
Snowy_ has joined #ruby
matsutomo has quit [Quit: matsutomo]
s2013 has joined #ruby
sgambino has joined #ruby
chouhoulis has joined #ruby
Snowy has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Icey has quit [Remote host closed the connection]
Xeago has joined #ruby
jokester has quit [Quit: boot and reboot]
chouhoulis has quit [Ping timeout: 248 seconds]
charlemagne has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
trinaldi has quit [Quit: brb]
duckpuppy has joined #ruby
f4cl3y has quit [Ping timeout: 240 seconds]
charlemagne has joined #ruby
trinaldi has joined #ruby
jokester has joined #ruby
dubek has quit [Ping timeout: 248 seconds]
synthroid has joined #ruby
f4cl3y has joined #ruby
gokulnath has joined #ruby
charlemagne has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
william3 has joined #ruby
skade has joined #ruby
andrewvos has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
openstruct has joined #ruby
charlemagne has joined #ruby
woo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has quit [Read error: Connection reset by peer]
william3 has joined #ruby
openstruct has joined #ruby
openstruct has quit [Changing host]
openstruct has joined #ruby
skade has quit [Ping timeout: 240 seconds]
woo has joined #ruby
terlar has quit [Quit: WeeChat 1.4]
terlar has joined #ruby
charlemagne has quit [Remote host closed the connection]
Kang00 has joined #ruby
charlemagne has joined #ruby
dexter_ has quit [Ping timeout: 240 seconds]
eregi has joined #ruby
<darix>
apeiros: "fit" would also be a good term, if you want to cover truncating and padding
<shevy>
hmm if I have: x = 'abc', what ways would I have to convert this into an array? x = [x] only ?
n1colas has quit [Quit: WeeChat 1.4]
n1colas has joined #ruby
dn5 has joined #ruby
TomPeed has joined #ruby
<manveru>
shevy: many ways... but what's wrong with [x]?
<adaedra>
Array.new(1, x)
<adaedra>
(jk, use [x])
<ddv>
%w(abc)
<shevy>
manveru not sure yet, nothing probably but I have a file specification for ensuring that some entries are always in a specific format; e. g. integer string array etc.., now I wonder how to automatically apply/enforce it (and also offer a way to automatically convert it)
hnagamin has quit [Ping timeout: 244 seconds]
<adaedra>
automatic parameter type conversion is yuck.
last_staff has quit [Quit: last_staff]
<manveru>
like json schema?
jottr_ is now known as jottr
<manveru>
anw, i'd be very strict about it, and call #to_ary just to be an ass
eregi has joined #ruby
JDiPierro has joined #ruby
fontain has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<Bish>
apeiros: you got a point there
william3 has quit [Remote host closed the connection]
<EdwardIII>
am i going nuts, or do i recall seeing error classes nested inside the classes that throw them sometimes?
<EdwardIII>
maybe in rails?
MindfulMonk has joined #ruby
thomas has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
yardenbar has joined #ruby
j2k has joined #ruby
TomPeed has quit [Read error: Connection reset by peer]
jimcroft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
r4z3r has quit [Max SendQ exceeded]
dopamean_ has joined #ruby
r4z3r has joined #ruby
TomPeed has joined #ruby
<EdwardIII>
hrm the website says "The current stable version is 2.3.0" but rbenv says it's gotta be 2.3.0-dev or rbx-2.3.0
andrewvos has quit [Ping timeout: 244 seconds]
futilegames has quit [Client Quit]
athemeus has joined #ruby
<EdwardIII>
what's rbx?
<havenwood>
EdwardIII: Rubinius.
<EdwardIII>
so there's no 2.3.x support in cruby yet?
<havenwood>
EdwardIII: Huh?
<EdwardIII>
ruby mri rather?
nogic has joined #ruby
<adaedra>
o_O
<EdwardIII>
just trying to figure out what i should to do get 2.3
<adaedra>
ruby 2.3.0 has been out for a long time now
<EdwardIII>
so i can use .dig
<havenwood>
EdwardIII: The latest stable version of Ruby is 2.3.0. CRuby (MRI now called YARV) is the reference implementation.
<athemeus>
Has anyone ever seen ArgumentError specify that it was given a *negative* number of arguments?
ixti has quit [Quit: WeeChat 1.4]
<athemeus>
specifically of the form "ArgumentError: wrong number of arguments (-2 for 2)"
nogic has quit [Max SendQ exceeded]
<adaedra>
Maybe you want to update your rbenv, EdwardIII.
<EdwardIII>
so... just go for rbx-2.3.0 and be happy?
<EdwardIII>
ok, lemme try that
<havenwood>
EdwardIII: Nope!
aganov has quit [Remote host closed the connection]
Sucks has joined #ruby
nogic has joined #ruby
<havenwood>
EdwardIII: The latest Rubinius is rbx-3.1.4, but sounds like you want ruby-2.3.0.
polishdub has joined #ruby
nogic has quit [Max SendQ exceeded]
dexter_ has joined #ruby
nogic has joined #ruby
albedoa has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
vbatts|work has left #ruby ["found the other side of the rainbow"]
<EdwardIII>
hrm this is odd
<havenwood>
3.14*
nogic has quit [Max SendQ exceeded]
<adaedra>
pi*
ixti has joined #ruby
<havenwood>
adaedra: or the latest version 2 is: 2.71828182
nogic has joined #ruby
<EdwardIII>
i did cd ~/.rbenv && git pull, all is well, but rbenv install 2.3.0 still only shows that same output
<havenwood>
EdwardIII: rbenv uses its tool ruby-build to install Rubies
nogic has quit [Max SendQ exceeded]
<albedoa>
experiencing a weird problem. if i `puts line.count('\t')` it puts the number of tabs, but if i `if line.count('\t') == 0` it acts on every line. anyone know what i could be doing wrong?
<adaedra>
EdwardIII: some people would tell you you need to ditch rbenv and switch to chruby + ruby-install :p
<albedoa>
havenwood weeeeeird okay thanks
<havenwood>
EdwardIII: You can always: ruby-install --latest ruby
nogic has joined #ruby
<albedoa>
havenwood why is it put'ing the tab count when i `puts line.count('\t')` ?
nogic has quit [Max SendQ exceeded]
<havenwood>
EdwardIII: But if you wanted to stick with rbenv you could use ruby-install to install for it or update the ruby-build tool which rbenv is entangled with
eregi has joined #ruby
nogic has joined #ruby
<EdwardIII>
find ~/.rbenv/ -name ruby-install # -bash: ruby-install: command not found
<EdwardIII>
i don't seem to have it?
nogic has quit [Max SendQ exceeded]
william3 has quit [Remote host closed the connection]
<EdwardIII>
something fishy going on?
<havenwood>
EdwardIII: Yeah, rbenv ships ruby-build not ruby-intall.
<havenwood>
EdwardIII: Nothing fishy.
<ljarvis>
albedoa: count('\t') counts the total occurences of the letter t
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
<ljarvis>
albedoa: so, it doesn't count tabs as you want. As havenwood mentioned, you want "\t" for that
<EdwardIII>
ruby-build: definition not found: install ?
nogic has joined #ruby
<albedoa>
ljarvis ha! i'm an idiot, thanks
<havenwood>
EdwardIII: To reiterate, if you want to use rbenv's tool for installing Rubies you'll want to update ruby-build. You can use a different tool, ruby-install, by the author of chruby to install for rbenv but it's not what rbenv ships. In case you wonder: ruby-install > ruby-build
<albedoa>
ljarvis i had just assumed the numbers i was seeing were tab counts
<EdwardIII>
ok screw it, i'll switch to chruby
<albedoa>
thanks havenwood too
nogic has quit [Max SendQ exceeded]
<ljarvis>
albedoa: :)
fullofcaffeine has joined #ruby
nogic has joined #ruby
frem has joined #ruby
nogic has quit [Max SendQ exceeded]
<EdwardIII>
hrm chruby requires global installation?
<havenwood>
EdwardIII: you can put it where you please
* EdwardIII
brews away
pdoherty has joined #ruby
nogic has joined #ruby
<EdwardIII>
rbenv seemed nice, like perls' local::lib
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
akem has quit [Remote host closed the connection]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
kies^ has joined #ruby
bruce__lee has quit [Changing host]
bruce__lee has joined #ruby
maikowblue has quit [Quit: .]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
<manveru>
nix ftw :)
<manveru>
and hi again
SCHAAP137 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
x77686d has quit [Quit: x77686d]
nogic has quit [Max SendQ exceeded]
tildes has joined #ruby
Rodya_ has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
htmldrum has quit [Ping timeout: 250 seconds]
dangeranger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EdwardIII>
manveru: hey
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
<EdwardIII>
chruby makes noises about maglev
nogic has quit [Max SendQ exceeded]
william3 has joined #ruby
<EdwardIII>
maglev looks cool, probably not very practical for real-life webapps i guess heh
codecop has quit [Remote host closed the connection]
<manveru>
yeah
nogic has quit [Max SendQ exceeded]
<manveru>
i guess it's nice for playing around, but really nothing i'd want to build my business on
<EdwardIII>
one thing, the idea of everything being completed integrated, your ide, your toolchain, your interpreter everything doesn't seem very "do one thing well"
nogic has joined #ruby
<bougyman>
zup manveru
<manveru>
bougyman: hoi
nogic has quit [K-Lined]
william3 has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
<manveru>
EdwardIII: smalltalk was invented before "do one thing well" was a thing
fullofcaffeine has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 255 seconds]
lubekpl has joined #ruby
nogic has joined #ruby
<manveru>
and it does one thing well: message passing
nogic has quit [Max SendQ exceeded]
<EdwardIII>
manveru: wasn't "do one thing" a unix thing?
nogic has joined #ruby
devbug has joined #ruby
nogic has quit [Max SendQ exceeded]
davedev24 has joined #ruby
nogic has joined #ruby
openstruct has quit []
nogic has quit [Max SendQ exceeded]
<manveru>
not sure how prevalent unix was at xerox
openstruct has joined #ruby
openstruct has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
rodfersou|lunch is now known as rodfersou
<EdwardIII>
but doesn't unix predate smalltalk?
nogic has joined #ruby
KensoDev has joined #ruby
nogic has quit [K-Lined]
wprice has joined #ruby
ss_much has joined #ruby
sneakerhax has quit [Quit: back later]
denym_ is now known as zz_denym_
nogic has joined #ruby
terminalrecluse has joined #ruby
nogic has quit [Max SendQ exceeded]
<EdwardIII>
chruby and 2.3.0 working well, thanks guys!
crowell has quit [Ping timeout: 240 seconds]
<manveru>
wonder what year that phrase was coined
nogic has joined #ruby
nogic has quit [K-Lined]
<havenwood>
manveru: guy fawkes?
<EdwardIII>
hrm, now i need to get bundler going heh
<havenwood>
manveru: oh, "do one thing," gotcha
devbug has quit [Ping timeout: 240 seconds]
<manveru>
:P
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
<havenwood>
EdwardIII: gem install bundler
crankharder has quit [Remote host closed the connection]
<EdwardIII>
tbh, when ever this comes up in discussion usually people point to unix pipes and the conversion ends there
nogic has joined #ruby
nogic has quit [K-Lined]
<EdwardIII>
the conversation never seems to be about real stuff you use every day
crowell has joined #ruby
<EdwardIII>
like irssi
charlemagne has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
<EdwardIII>
ok, i use unix pipes every day too, but i wouldn't say it's got the same amount of work to do as an actual program
<manveru>
quote seems to be from a book from mc ilroy from 1978
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
<manveru>
and smalltalk was first released 1972
<manveru>
so i think my timeline is kinda right
nogic has joined #ruby
nogic has quit [K-Lined]
<manveru>
not to mention that such publications would've taken quite some time to be widely known back then
gizmore has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
awe__ has quit [Quit: awe__]
<EdwardIII>
funny, i didn't think that would be the case
nogic has joined #ruby
<manveru>
anyway, >> The first version, known as Smalltalk-71, was created by Kay in a few mornings on a bet that a programming language based on the idea of message passing inspired by Simula could be implemented in "a page of code."<<
kmckelvin has quit [Ping timeout: 276 seconds]
<EdwardIII>
would it be very stupid to say there are some similarities between unix pipes & message passing?
dangeranger has joined #ruby
<manveru>
from far away... they're not that different
<manveru>
both are used for communcation and late binding
<EdwardIII>
i guess pipes are about sending data, whereas message passing is about sending a message
nogic has quit [K-Lined]
htmldrum has joined #ruby
stannard_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nofacade has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
Shaboum has quit [Ping timeout: 250 seconds]
<manveru>
bougyman: how's life at the big bookstore?
<bougyman>
moving fast.
<bougyman>
I like fast.
<manveru>
:)
<bougyman>
I wish I could hire some people, that's my only blocker now.
yardenbar has joined #ruby
beanHolez has joined #ruby
nogic has joined #ruby
<bougyman>
I need people in singapore, dublin, virginia, and seattle
krz has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
<daxroc>
Hey all how do I test the output of a puts in a raise .. I've tried expect{parser.set_uri(invalid_uri)}.to output("Error").to_stdout
<slash_nick>
virginia?
nogic has quit [Max SendQ exceeded]
<EdwardIII>
dublin?
<EdwardIII>
are you working for THAT big bookstore?
idefine has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
haylon has quit [Read error: Connection reset by peer]
nogic has joined #ruby
nogic has quit [K-Lined]
htmldrum has quit [Ping timeout: 244 seconds]
Burgestrand has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
pdoherty has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Konversation terminated!]
<manveru>
daxroc: why would you do that?
bb010g has quit [Quit: Connection closed for inactivity]
<manveru>
just rescue the error and check its message
nogic has joined #ruby
jam_ has joined #ruby
aryaching has joined #ruby
nogic has quit [Max SendQ exceeded]
<manveru>
also raises won't go to stdout, they are stderr afaicr
FilipeChagas has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
FilipeChagas has quit [Client Quit]
maletor has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
beanHolez has quit [Remote host closed the connection]
<Papierkorb>
daxroc: Why don't you use expect{ ... }.to raise_error MyError, /roughly the expected error message/
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rdark has quit [Ping timeout: 255 seconds]
nogic has joined #ruby
blandflakes has joined #ruby
Rodya_ has joined #ruby
nogic has quit [K-Lined]
haylon has joined #ruby
jam_ has quit [Ping timeout: 250 seconds]
kies^ has quit [Ping timeout: 255 seconds]
MindfulMonk has quit [Ping timeout: 255 seconds]
jhill__ is now known as jhill
<EdwardIII>
hrm, am i being dumb? i'm just trying to search for a key that could occur at any level in a nested datastructure for of all kinds of stuff
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EdwardIII>
dig doesn't DWIM
nfk has joined #ruby
<daxroc>
Papierkorb: Doesn't seem to get raised but does when I execute it
<EdwardIII>
.find { |h| h.has_key?... chokes if it stumbles on an array
troulouliou_div2 has joined #ruby
<daxroc>
*testing with expect{parser.set_uri(invalid_uri)}.to raise_error URI::InvalidURIError
william3 has joined #ruby
nogic has joined #ruby
htmldrum has joined #ruby
nogic has quit [K-Lined]
gokulnath has quit [Ping timeout: 255 seconds]
<Papierkorb>
daxroc: Then it's not being raised. (And set_X isn't really ruby-ish. That'd be 'X=')
MindfulMonk has joined #ruby
nogic has joined #ruby
karapetyan has quit [Ping timeout: 248 seconds]
nogic has quit [Max SendQ exceeded]
baweaver has joined #ruby
kies^ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
gokulnath has joined #ruby
woo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
Rodya_ has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
nogic has joined #ruby
woo has joined #ruby
nogic has quit [K-Lined]
idefine has quit [Remote host closed the connection]
<EdwardIII>
is it a hash, ruby? "no". ok, what is it then, ruby? "it's a hash, boss"
maletor has quit [Quit: Computer has gone to sleep.]
<EdwardIII>
ahhhhh
<EdwardIII>
i broke it with my module naming
<EdwardIII>
Hash is Api::CoreExtensions::Hash, not ::Hash
gokul_ has joined #ruby
<EdwardIII>
is the lesson here "don't name things after things that already exist"?
joonty has joined #ruby
_ht has joined #ruby
stannard has joined #ruby
mois3x has quit [Quit: mois3x]
BTRE has joined #ruby
gokulnath has quit [Ping timeout: 248 seconds]
william3 has quit [Remote host closed the connection]
eregi has joined #ruby
<shevy>
EdwardIII you guard fish??
<EdwardIII>
shevy: not any more
<shevy>
yeah same names can be confusing
<shevy>
module Foo; class Foo
* EdwardIII
(congratulations, you doxed yourself)
william3 has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
<EdwardIII>
i guess this is a risk of autoloading rather than having to be explicit
<shevy>
you mean autoload?
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
<EdwardIII>
well whatever rails does at startup that means all constants/class names are accessible everywhere
fullofcaffeine has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
B1n4r10 has joined #ruby
<yxhuvud>
almost everywhere. At least in previous versions it has been possble to get circular dependencies that make the autoloader crap out or not load everything.
idefine has quit [Remote host closed the connection]
Dakota-choad has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
mary5030 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
askhat has joined #ruby
idefine has joined #ruby
mary5030 has joined #ruby
sepp2k has quit [Quit: Leaving.]
idefine has quit [Remote host closed the connection]
<shevy>
lol
scottrobarts has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.1/20160205155049]]
sgambino has joined #ruby
PaulCapestany has quit [Quit: .]
woo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 244 seconds]
pglombardo has quit []
pglombardo has joined #ruby
htmldrum has joined #ruby
PaulCapestany has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Alayde has joined #ruby
lubekpl has quit [Ping timeout: 255 seconds]
Alayde has left #ruby [#ruby]
idefine has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 244 seconds]
myntcake has joined #ruby
ricer2 has quit [Remote host closed the connection]
bronson has joined #ruby
htmldrum has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
woo has joined #ruby
baweaver has joined #ruby
beanHolez has joined #ruby
DmitryBochkarev has joined #ruby
idefine has quit [Remote host closed the connection]
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
ElFerna has joined #ruby
ricer2 has joined #ruby
speaking1ode has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
sgambino has joined #ruby
davedev24 has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 250 seconds]
htmldrum has joined #ruby
Tref has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
evidex has quit [Quit: Lost terminal]
<Tref>
hey guys, given an array of any size is there a way to find the first record matching a particular attribute in O(1) notation
<Tref>
for example an array of users with attributes [first_name, last_name, phone, email]
<Tref>
technically, an array of ruby objects
<Tref>
or an array of arrays, which should have the same answer I believe
xrlabs has joined #ruby
<Papierkorb>
tref: Without any guarantees and other things you'll end up with O(n)
beanHolez has quit [Remote host closed the connection]
Eiam has joined #ruby
beanHolez has joined #ruby
<Tref>
Papierkorb: thanks, can you be more specific about what you mean by “guarantees and other things"
<Tref>
Im being asked to do this as an assignment but I dont think there is a way to do it
<Papierkorb>
tref: if possible, sorting it and doing a binary search would yield O(log n) which should usually be good enough.
<yxhuvud>
tref: not with only an array. You can create an index for the attribute in question but that requires setup and more memory.
<Papierkorb>
tref: as yxhuvud said, you can always trade memory load for cpu load. There's no free lunch to get when it comes to optimizations :)
dlitvak has quit [Remote host closed the connection]
minimalism has joined #ruby
<Tref>
yxhuvud: are you referring to a database index?
<Papierkorb>
tref: Another method could involve using bloom filters. But not to speed up searching, but rather to /guess/ if searching is even worth it. Also quite complex to set up.
pglombardo has quit [Remote host closed the connection]
<Tref>
these records are coming from a csv file so there can’t be any indexing
dlitvak has joined #ruby
<Papierkorb>
tref: How many rows are you faced with?
<yxhuvud>
well, in this case the simplest way would be to have a hash with the attribute values matched to the objects.
<Tref>
im beginning to think theres an issue with the wording of the question
JDiPierro has joined #ruby
<yxhuvud>
but it gets complicated really fast
<Papierkorb>
^
<shevy>
keep things simple!
<Papierkorb>
yxhuvud: how boring to use language features :P
<Tref>
Papierkorb: there are a variable amount of rows
Xeago has quit [Remote host closed the connection]
welovfree has joined #ruby
<Papierkorb>
tref: How many? a million? Ten million? Beyond that?
<Tref>
that’s the purpose of the exercise
<welovfree>
Hello guys
<yxhuvud>
tref: do you need to look up arbitrary attributes or the same every time?
<Papierkorb>
tref: Looks like the client only is interested in doing quick e-mail lookups, not in "everything" fast lookups.
<Tref>
there’s my entire code thus far
<Tref>
welovfree: that’s a pretty arbitrary question
<Tref>
welovfree: if you can read technically you have whats required
<Tref>
welovfree: required to what?
<welovfree>
tref, what do you mean?
troulouliou_div2 has quit [Ping timeout: 265 seconds]
<Papierkorb>
tref: build a poor-mans index using a Hash, mapping from the e-mail address to the Contact record. When looking up by e-mail, use that hash.
<Tref>
Papierkorb: that means I would have to create some kind of “primary key” for the original records and use that as the reference to the original?
<welovfree>
tref, did you understand my question?
Rasi has quit [Quit: WeeChat 1.4]
<Tref>
welovfree: yeah Im asking you the same thing though. What do you mean by “have whats required”
<welovfree>
tref, because someone here on this channel recommended Eloquent Ruby if I don't have any experience whit Ruby
Rasi has joined #ruby
<welovfree>
tref, before reading that other book by Michael Hartl
<Tref>
ok, well there are a number of books you can read before diving into rails
<Tref>
Papierkorb: let me try this out
tomaw has quit [Quit: Quitting]
<welovfree>
tref, I can or I should read
davedev24 has joined #ruby
beanHolez has quit [Remote host closed the connection]
pglombardo has joined #ruby
<Papierkorb>
tref: I can't guarantee you that Hash#[] is (amortized) O(1) though. I just know that's really fast based on benchmarks I did some months ago when I faced similar (albeit real-world) problems
rakm has joined #ruby
jeanlinux has quit [Remote host closed the connection]
tomaw has joined #ruby
pglombar_ has joined #ruby
<Tref>
welovfree: Im saying there really is no benchmark on level of ruby proficiency that you need to read a book man. Start reading it and if its over your head go back and read the pickaxe book
<Tref>
Papierkorb: Im checking it out
<Tref>
Im trying to come up with a good way to benchmark it
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb>
tref: Generate a bigger CSV file. 10k contacts at least or so. And then run against that.
cdg has quit [Remote host closed the connection]
<Papierkorb>
With those 5 or so rows you won't get anywhere benchmark-wise
<welovfree>
tref, ok!
woo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EdwardIII>
should i take myself outside and end my own life?
Darkwater has joined #ruby
Darkwater has quit [Changing host]
Darkwater has joined #ruby
thomas has joined #ruby
mrmargolis has joined #ruby
eljimmy has quit [Client Quit]
D9- has joined #ruby
ur5us has joined #ruby
idefine has joined #ruby
<EdwardIII>
i feel a bit like i've abused the exception class a bit
<EdwardIII>
by letting it know whether it should raise itself or not
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
sideshowcoder has joined #ruby
Toledo|gone has quit [Changing host]
Toledo|gone has joined #ruby
sideshowcoder has quit [Changing host]
sideshowcoder has joined #ruby
<EdwardIII>
and it creates a fairly chunky cognative disnonance when suddenly you can't pass a string into the constructor of an exception anymore, you have to pass in a Hah
<EdwardIII>
*Hash
<EdwardIII>
damnit, *cognitive dissonance, sorry
TomyLobo has joined #ruby
charlemagne has quit [Remote host closed the connection]
charlemagne has joined #ruby
chipotle has quit [Quit: cheerio]
william3 has joined #ruby
babblebre has joined #ruby
chipotle has joined #ruby
Gnut has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
juanpablo__ has joined #ruby
woodruffw has joined #ruby
charlemagne has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
jam__ has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
ziyadb has joined #ruby
ljames has quit []
rdark has quit [Ping timeout: 240 seconds]
kirillzh has joined #ruby
bronson has joined #ruby
azure32 has joined #ruby
_ko1 has quit [Quit: Quit Nadoka 0.8.4+git(v0.8.3-5-g0ae819a-dt)]
jam__ has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
Renich has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
karapetyan has quit [Remote host closed the connection]
Sembei has joined #ruby
_ko1 has joined #ruby
Renich has joined #ruby
Renich has quit [Client Quit]
dtordable has joined #ruby
jmurillo has joined #ruby
davedev24 has quit [Remote host closed the connection]
<djellemah>
EdwardIII: Yeah, that's pretty bad idea.
Terens has quit []
<djellemah>
tsk, * a *
infra-re_ has joined #ruby
jottr has joined #ruby
<EdwardIII>
djellemah: just that?
<EdwardIII>
hrm i gotta run
<EdwardIII>
thanks for your input
dangeranger has quit [Ping timeout: 248 seconds]
<djellemah>
o7
infra-red has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
eljimmy has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
intrigueD has joined #ruby
dasher00 has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 244 seconds]
<shevy>
EdwardIII hmm strikes me as fairly complicated
lsmola has quit [Ping timeout: 276 seconds]
speaking1ode has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
pietr0 has quit [Quit: pietr0]
herminiotorres has joined #ruby
speaking1ode has joined #ruby
adgtl has joined #ruby
htmldrum has joined #ruby
Jardayn has quit [Quit: Leaving]
anaeem1_ has joined #ruby
trinaldi has quit [Quit: thanks, folks!]
Jardayn has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
Gnut_ has joined #ruby
infra-re_ has quit []
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dravine has quit [Quit: dravine]
y2mq37 has joined #ruby
Deck` has joined #ruby
pawnbox has joined #ruby
B1n4r10 has quit [Ping timeout: 255 seconds]
Gnut has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
kirillzh has joined #ruby
tildes has joined #ruby
baweaver has joined #ruby
Gnut has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
Guest9821 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
zast has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
jeanlinux has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
Gnut_ has quit [Ping timeout: 248 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
cpup has joined #ruby
william3 has joined #ruby
<shevy>
let us code to glory!
arlek has quit [Ping timeout: 244 seconds]
last_staff has quit [Ping timeout: 252 seconds]
stannard has quit [Remote host closed the connection]
pglombar_ has joined #ruby
hamed_r has quit [Quit: Leaving]
pglombar_ has quit [Client Quit]
nickjj has quit [Quit: Leaving]
last_staff has joined #ruby
htmldrum has joined #ruby
naftilos76 has joined #ruby
nickjj has joined #ruby
x77686d has quit [Quit: x77686d]
pglombardo has quit [Ping timeout: 240 seconds]
webopsx has joined #ruby
MindfulM_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 255 seconds]
welovfree has quit [Ping timeout: 240 seconds]
mondok has quit [Ping timeout: 255 seconds]
htmldrum has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.4]
Youngmathimus0 has quit [Ping timeout: 240 seconds]
Xiti has quit [Read error: Connection reset by peer]
sauvin has quit [Remote host closed the connection]
BackEndCoder has quit [Ping timeout: 264 seconds]
Tref has quit [Quit: tref]
fearnothing has joined #ruby
kirun has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
<fearnothing>
hi, I hope this is the right place to ask... I'm having trouble installing a bundle and getting the error "zlib is missing"
<fearnothing>
I've tried installing zlibc and zlib1g but neither solved the issue
lurch_ has quit [Quit: lurch_]
<fearnothing>
can someone point me in the direction of the right package? This is on debian jessie x64
bluOxigen has joined #ruby
e4xit has quit [Quit: Right I'm out!]
bluOxigen_ has quit [Ping timeout: 240 seconds]
B1n4r10 has joined #ruby
hayden_ has quit [Quit: Connection closed for inactivity]
stannard has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
dionysus69 has quit [Remote host closed the connection]
pdoherty has joined #ruby
pawnbox has joined #ruby
<fearnothing>
nvm, found it
<fearnothing>
zlib1g-dev
pawnbox has quit [Ping timeout: 240 seconds]
kingman has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
arashb has joined #ruby
arashb has quit [Remote host closed the connection]
YaknotiS has quit [Read error: Connection reset by peer]
<shevy>
yeah should be the devel packages usually, they contain the header files
Youngmathimus0 has joined #ruby
foli_ has joined #ruby
<foli_>
hi
foli_ has left #ruby [#ruby]
benlieb has joined #ruby
YaknotiS has joined #ruby
dmolina has quit [Quit: Leaving.]
<benlieb>
is there a way to pipe to ruby on the command line and have it execute a command requiring everything in Gemfile?
<benlieb>
I tried via bundle exec also but couldn't get it to work
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<benlieb>
in Vim piping puts 'hi' to !ruby works
<benlieb>
but I would like to pipe: 'purchase_finalize_utils'.constantize
<benlieb>
or something simlar
andrewvos has joined #ruby
codecop has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
jeanlinux has joined #ruby
lemur has joined #ruby
FernandoBasso has joined #ruby
jud has quit [Quit: Leaving]
azure32 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
johnny56 has joined #ruby
ta has joined #ruby
speaking1ode has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
shadoi has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
mdw has joined #ruby
speaking1ode has joined #ruby
rbennacer has joined #ruby
oniMaker has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
Guest71821 has quit [Changing host]
Guest71821 has joined #ruby
Guest71821 is now known as pushcx
Pumukel has joined #ruby
_djbkd has quit [Quit: My people need me...]
llua` is now known as llua
llua has quit [Changing host]
llua has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
<fearnothing>
I don't know ruby at all so no idea how to debug this, google searches suggested doing gem update --system and gem install bundle, but that didn't solve it
<fearnothing>
please help!
karapetyan has joined #ruby
hxegon_AFK is now known as hxegon
<ellistaa>
fearnothing: post your code
yfeldblum has quit [Ping timeout: 250 seconds]
sneakerhax has quit [Ping timeout: 248 seconds]
kirillzh has joined #ruby
<ellistaa>
that error message has a backtick then an apostrophe
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo__ has quit [Ping timeout: 252 seconds]
djellemah_ has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 240 seconds]
gokul__ has joined #ruby
IcyDragon is now known as IceDragon
beanHolez has joined #ruby
haylon has left #ruby ["WeeChat 1.4"]
gokul_ has quit [Ping timeout: 244 seconds]
JDiPierro has joined #ruby
JDiPierro has quit [Read error: No route to host]
JDiPierro has joined #ruby
baweaver has quit [Remote host closed the connection]
william3 has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
last_staff has quit [Quit: last_staff]
jam__ has joined #ruby
polishdub has quit [Quit: Leaving]
zenlot2 has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
beanHolez has quit [Remote host closed the connection]
gustavohmsilva has joined #ruby
zenlot1 has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby
skade has joined #ruby
darkf has joined #ruby
mickey_mouse_2 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
albedoa has quit [Ping timeout: 250 seconds]
jeanlinux has joined #ruby
jam__ has quit [Ping timeout: 255 seconds]
skade has quit [Client Quit]
william3 has quit [Ping timeout: 255 seconds]
skade has joined #ruby
mrmargolis has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
stannard has quit [Ping timeout: 252 seconds]
trinaldi has quit [Quit: WeeChat 1.5-dev]
dubek has joined #ruby
hays has quit [Ping timeout: 240 seconds]
mickey_mouse has quit [Ping timeout: 244 seconds]
jrcharney has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trinaldi has joined #ruby
B1n4r10 has joined #ruby
dubek has quit [Ping timeout: 250 seconds]
hays has joined #ruby
william3 has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
duckpupp1 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
akem has quit [Remote host closed the connection]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
intrigueD has quit [Remote host closed the connection]
<jrcharney>
Do I need to download ruby-install first before installing chruby or do I need to do it the other way around?
<havenwood>
jrcharney: either
<jrcharney>
chruby won't use install ruby?
<jrcharney>
s/install ruby/ruby-install/
<havenwood>
jrcharney: nope, they're decoupled
william3 has quit [Ping timeout: 250 seconds]
Tref has joined #ruby
<jrcharney>
OK, how about downloading them through git instead of this wget and PGP stuff?
openstruct has joined #ruby
<havenwood>
jrcharney: Sure, do that!
<havenwood>
jrcharney: OS?
<jrcharney>
Linux...Raspbian
<havenwood>
jrcharney: Yeah, git cloning the repos is fine.
<jrcharney>
cool. ty
andrewvos has joined #ruby
<havenwood>
np
krobzaur has quit [Quit: WeeChat 0.4.2]
B1n4r10 has quit [Ping timeout: 248 seconds]
kies^ has quit [Ping timeout: 244 seconds]
B1n4r10 has joined #ruby
Gnut has quit [Ping timeout: 255 seconds]
Gnut has joined #ruby
shanemcd has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
ta has joined #ruby
baweaver has joined #ruby
terlar has quit [Ping timeout: 255 seconds]
mois3x has quit [Quit: mois3x]
Deck` has joined #ruby
freerobby has joined #ruby
Xeago_ has joined #ruby
FernandoBasso has quit [Quit: Leaving]
thun has joined #ruby
shanemcd has left #ruby [#ruby]
Deck` has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
benlieb_ has joined #ruby
mary5030 has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
benlieb has quit [Ping timeout: 252 seconds]
benlieb_ is now known as benlieb
mary5030 has joined #ruby
openstruct has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
TomPeed has joined #ruby
openstruct has joined #ruby
william3 has joined #ruby
PaulCapestany has joined #ruby
kmckelvin has quit [Ping timeout: 252 seconds]
kmckelvin has joined #ruby
<thun>
I am having troubles accessing a class in a gem I just created. The name of the gem is company-data-api. It created sub-folders in lib/company/api which has all the libs, then a api.rb file in lib/company. This was all auto-created by gem.
<thun>
The class is nested in modules. Company::Data::Api::MyClassIWantToAccess. rspec works fine but when I build the gem and install locally how to I require it? require 'company-data-api' Does not work.
chipotle has quit [Quit: cheerio]
<drbrain>
require 'company/api'
JDiPierro has quit [Remote host closed the connection]
<drbrain>
thun: ruby requires by filenames
Xeago has joined #ruby
<drbrain>
and 'lib/' should be added to $LOAD_PATH automatically
fourq has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
Xeago__ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.4]
openstruct has quit [Remote host closed the connection]
<thun>
Hmm ok ty looks like that work... I have other require path issues now from within my gem... fixing now
Xeago_ has quit [Ping timeout: 250 seconds]
jmignault has joined #ruby
<thun>
Do you have to add files to the git repo locally in order for gem build to include?
duckpupp1 has joined #ruby
andrewvos has quit [Ping timeout: 240 seconds]
juanpablo__ has joined #ruby
JDiPierro has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
saneax_AFK is now known as saneax
ElFerna has joined #ruby
dexter has joined #ruby
dexter is now known as Guest34101
Xeago__ has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
toretore has joined #ruby
TomyLobo has quit [Ping timeout: 276 seconds]
ricx has joined #ruby
TomPeed is now known as justbleed
trinaldi has quit [Quit: WeeChat 1.5-dev]
chipotle has joined #ruby
solocshaw has joined #ruby
Youngmathimus0 has quit [Ping timeout: 240 seconds]
<ricx>
hi guys!, quick question why when i define a method like ( def Array.ok; puts 1; end ) its not on Array.methods
JoshGlzBrk has joined #ruby
Tref has quit [Quit: tref]
duckpupp1 has quit [Ping timeout: 240 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]