apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
davejacobs has quit [Ping timeout: 252 seconds]
QualityAddict has quit []
danzilio has quit [Quit: My computer has fallen asleep!]
rbennacer has quit [Remote host closed the connection]
bloudermilk has joined #ruby
zyxelthrone has joined #ruby
charliesome has joined #ruby
tunaCanBruh has joined #ruby
w0rldmaker has quit [Ping timeout: 265 seconds]
w0rldmaker has joined #ruby
rodfersou has quit [Remote host closed the connection]
skj3gg has joined #ruby
fgo has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
skj3gg has quit [Client Quit]
duncannz has joined #ruby
huck5 has joined #ruby
ghr has joined #ruby
neanderslob_ has quit [Read error: Connection reset by peer]
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
aamador has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
KC9YDN has quit [Quit: ZNC - http://znc.in]
w0rldmaker has quit [Ping timeout: 272 seconds]
Feyn has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
w0rldmaker has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
Dolphi has quit [Quit: Leaving]
tmtwd has joined #ruby
DadoCe has quit [Ping timeout: 256 seconds]
jordsmi has joined #ruby
teddyp1cker has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
w0rldmaker has quit [Ping timeout: 265 seconds]
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghostpl_ has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
w0rldmaker has joined #ruby
jlast has joined #ruby
ghostpl_ has joined #ruby
jonr22 has joined #ruby
multi_io has joined #ruby
it0a has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
it0a has quit [Client Quit]
multi_io_ has quit [Ping timeout: 246 seconds]
PhaseCode has quit []
mgorbach has quit [Quit: ZNC - http://znc.in]
jonr22 has quit [Ping timeout: 250 seconds]
mgorbach has joined #ruby
juanpablo_ has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
thumpba has joined #ruby
<shevy> if Object.const_defined? :Konsole
<shevy> is there a shorter way for this? I need to find out if some app has support for a namespace
w0rldmaker has quit [Ping timeout: 264 seconds]
waxjar has quit [Ping timeout: 252 seconds]
Jelmer_ has joined #ruby
waxjar has joined #ruby
Lewix has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 264 seconds]
thumpba has quit [Ping timeout: 245 seconds]
devbug_ has joined #ruby
mkaesz has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
danzilio has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commmmodo has joined #ruby
commmmodo has quit [Client Quit]
sevvie has joined #ruby
Coding_Deva has quit [Quit: Textual IRC Client: www.textualapp.com]
mkaesz has quit [Ping timeout: 255 seconds]
Zai00 has quit [Quit: Zai00]
RegulationD has joined #ruby
w0rldmaker has joined #ruby
charliesome has quit [Quit: zzz]
Zai00 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
nettoweb has joined #ruby
it0a has joined #ruby
w0rldmaker has quit [Ping timeout: 245 seconds]
naftilos76 has quit [Remote host closed the connection]
viki_ has joined #ruby
daru has joined #ruby
monod has quit [Quit: Sto andando via]
<ponga> shevy: im finding Crystal decent to use
huck5 has quit [Quit: bye]
RegulationD has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
DadoCe has joined #ruby
jenrzzz has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
danzilio has quit [Quit: Baiii!]
<shevy> why
<shevy> it's just ruby
DadoCe has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
pandaant has quit [Remote host closed the connection]
x77686d has quit [Ping timeout: 264 seconds]
<shevy> - size_t size = ci - c->cibase;
<shevy> + ptrdiff_t size = ci - c->cibase;
<shevy> C is very mysterious
<Beoran__> no, not if you know it well
blackmesa has joined #ruby
<Beoran__> pttrdiff_t is the correct type for storing a pointer / pointer arithmetic
<Beoran__> size_t isn't
<Beoran__> and mruby is way cool I use it as my game's scripting engine
charliesome has joined #ruby
marr has quit [Ping timeout: 272 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
dorei has quit [Remote host closed the connection]
Dolphi has joined #ruby
<Dolphi> Would you guys recommend any IDLEs/IDEs for Ruby programming?
oki has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
<jhass> not too much tbh
<jhass> get pry (pryrepl.org) and a decent text editor like sublime text and you should be fine
ddd has joined #ruby
ruby241 has joined #ruby
_honning_ has quit [Ping timeout: 245 seconds]
rhg135|zzz is now known as rhg134
oki has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
it0a has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
rorra_ has joined #ruby
Tinfoilhat_ has joined #ruby
hiyosi has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ruby241 has quit [Ping timeout: 246 seconds]
rorra has quit [Read error: Connection reset by peer]
rorra_ is now known as rorra
kaiZen has joined #ruby
DrShoggoth has quit [Quit: Leaving]
starless has quit [Quit: Leaving]
fgo has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
ponga has quit [Quit: Leaving...]
Zai00 has quit [Quit: Zai00]
<_blizzy_> hello, for some reason, I'm getting undefined method `join' for # when I post to /register: https://gist.github.com/NotBlizzard/68af4bf94fa56f762226
doodlehaus has joined #ruby
zacstewart has joined #ruby
mengu__ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
tunaCanBruh has joined #ruby
nettoweb has quit [Client Quit]
mkaesz has joined #ruby
<jhass> _blizzy_: add full error (the part after for is where it gets interesting) and backtrace to the gist
oleo has quit [Ping timeout: 255 seconds]
Cache_Money has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
<jhass> you can edit gists and add multiple files to them ;)
Xiti has quit [Quit: Xiti]
<jhass> that seems to be a different error though
pontiki has joined #ruby
ddd has quit [Ping timeout: 252 seconds]
<jhass> I suppose User.new is on line 33 in your real file?
shum has quit [Quit: WeeChat 1.1.1]
mkaesz has quit [Ping timeout: 265 seconds]
iwaffles has quit [Quit: iwaffles]
shum has joined #ruby
<jhass> it only takes 0 to 1 argument, I guess it's a hash
BTRE has quit [Quit: Leaving]
Jelmer_ has quit [Ping timeout: 250 seconds]
parduse has joined #ruby
charliesome has joined #ruby
<_blizzy_> it's supposed to take 2 arguments
ekinmur has joined #ruby
<_blizzy_> username and password_hash.
phutchins has joined #ruby
<jhass> your error says otherwise
shum has quit [Client Quit]
<jhass> if my assumption is correct
shum has joined #ruby
ddd has joined #ruby
ekinmur has quit [Max SendQ exceeded]
ekinmur has joined #ruby
dru has quit [Ping timeout: 246 seconds]
thumpba has joined #ruby
<_blizzy_> well I feel slow
ekinmur has quit [Max SendQ exceeded]
<_blizzy_> I was supposed to put the parameters in a hash.
<_blizzy_> thank you, jhass.
LoBoGoL has joined #ruby
ekinmur has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
scripore has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
bloudermilk has quit [Ping timeout: 272 seconds]
phutchins has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
ghostpl_ has quit [Remote host closed the connection]
oleo has joined #ruby
slawrence00 has joined #ruby
bruno-_ has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
ekinmur has quit [Client Quit]
thumpba has quit [Ping timeout: 265 seconds]
econerd4ever has joined #ruby
turtil has joined #ruby
freerobby has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Guest123 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
oo_ has joined #ruby
jonr22 has joined #ruby
econerd4ever has left #ruby [#ruby]
jottr has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
bloudermilk has joined #ruby
teddyp1cker has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
daru has left #ruby [#ruby]
juanpablo_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
sevvie has quit [Quit: leaving]
teddyp1cker has quit [Ping timeout: 264 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jordsmi has quit [Quit: Connection closed for inactivity]
juanpablo_ has quit [Ping timeout: 264 seconds]
DEA7TH has quit [Ping timeout: 246 seconds]
braincra- has joined #ruby
_2_brooke has joined #ruby
<gr33n7007h> _2_brooke: yep, why?
freerobby has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
<_2_brooke> im from dance moms
<gr33n7007h> ok
<_2_brooke> sorry
<jhass> _2_brooke: cool, how long have you been coding ruby?
Spooner has quit [Remote host closed the connection]
Xiti has joined #ruby
Guest123 has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
<gr33n7007h> _2_brooke: just ask your question dude we're friendly bunch here :)
GnuYawk has joined #ruby
wolves_cs has quit [Max SendQ exceeded]
<shevy> no
<shevy> I think this is a bot
<_2_brooke> hr
<jhass> shevy: yeah, but a bad one :(
<jhass> ignores direct mentions
<shevy> :)
<jhass> no fun at all
<_2_brooke> bot how from talk with robot
<shevy> well what did you expect
<shevy> it's written in java
<jhass> bet it's C, so the author got annoyed too quickly
bigmac has joined #ruby
<gr33n7007h> _2_brooke: behind a proxy and shit
<jhass> _2_brooke: are you a learning chatterbot? can we feed you with none sense and you'll spew it out and some random later point?
<gr33n7007h> _2_brooke: give up man
sivsushruth has joined #ruby
<_2_brooke> im a girl bitch
<gr33n7007h> yeah dude!
<shevy> lol
<jhass> _2_brooke: so, how's your ruby going?
jack_rabbit has joined #ruby
<jhass> this is no fun :(
Takle has quit [Remote host closed the connection]
odigity has quit [Ping timeout: 250 seconds]
<jhass> we got that channel where a seeborg and a bot spewing out random portal 2 quotes are talking with each other
yfeldblum has quit [Read error: Connection reset by peer]
_2_brooke has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
zacts has quit [Quit: leaving]
jack_rabbit has quit [Ping timeout: 240 seconds]
lanemeyer has quit []
<gr33n7007h> jhass: who wrote crystal?
swgillespie has quit [Ping timeout: 272 seconds]
<gr33n7007h> and how can I get it?
skj3gg has joined #ruby
<gr33n7007h> jhass: ok taking a look ;)
mark06 has joined #ruby
lanemeyer has joined #ruby
<gr33n7007h> right installing :)
<gr33n7007h> installed...REPL?
odigity has joined #ruby
Synthbread has joined #ruby
<jhass> nope, compiled language, so not easy to do ;)
<jhass> #crystal-lang has a eval bot though ;)
<jhass> and you can do crystal eval "code snippet"
<gr33n7007h> ah, shit it's compiled any documentation? jhass
RegulationD has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<jhass> not much beyond what's in ^ link yet
mkaesz has joined #ruby
<jhass> just ask me though
x77686d has joined #ruby
zacstewart has quit [Remote host closed the connection]
<gr33n7007h> jhass: you crystal?
<gr33n7007h> *in
<jhass> I know it fairly well by now I'd say
<gr33n7007h> I mean the channel?
<jhass> sure
jenrzzz has joined #ruby
lemur has quit [Remote host closed the connection]
GnuYawk has quit [Read error: Connection reset by peer]
GnuYawk has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
spicerack2 has joined #ruby
spicerack2 is now known as spicerack
RegulationD has joined #ruby
oo_ has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 256 seconds]
crdpink2 has joined #ruby
rbennacer has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
Cache_Money has quit [Quit: Cache_Money]
turtil has quit [Quit: WeeChat 1.1]
turtil has joined #ruby
it0a has joined #ruby
ddd has quit [Ping timeout: 244 seconds]
tus has quit []
havenwood has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
rbennacer has quit [Ping timeout: 245 seconds]
helpa has quit [Remote host closed the connection]
chrishough has joined #ruby
jack_rabbit has joined #ruby
RegulationD has joined #ruby
bruno- has joined #ruby
helpa has joined #ruby
oki has joined #ruby
skj3gg has quit [Ping timeout: 240 seconds]
Radar has quit [Ping timeout: 272 seconds]
speaking1ode has joined #ruby
Dopagod has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 264 seconds]
devbug_ has quit [Ping timeout: 245 seconds]
Radar has joined #ruby
Radar is now known as Guest67433
BTRE has joined #ruby
crdpink has joined #ruby
Synthbread has quit [Remote host closed the connection]
turtil has quit [Quit: WeeChat 1.1]
crdpink2 has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
Asher has joined #ruby
oki has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
turtil has joined #ruby
w0rldmaker has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
jottr has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
kaiZen has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 256 seconds]
Guest82344 has joined #ruby
Guest82344 has quit [Client Quit]
oleo has quit [Quit: Verlassend]
skj3gg has joined #ruby
gsvolt has joined #ruby
Sawbones has joined #ruby
w0rldmaker has quit [Ping timeout: 245 seconds]
skj3gg has quit [Client Quit]
zacstewart has joined #ruby
oleo has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
davejacobs has joined #ruby
Limix has joined #ruby
justin_pdx has joined #ruby
ghr has joined #ruby
<shevy> dumdedum
aamador has joined #ruby
Dolphi has quit [Quit: Leaving]
sevvie has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
byprdct has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
lys has joined #ruby
mambo_ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 255 seconds]
Jesterman81 has joined #ruby
Limix has quit [Quit: Limix]
tunaCanBruh has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
Synthbread has joined #ruby
charliesome has quit [Quit: zzz]
Dopagod has quit [Quit: WeeChat 1.0]
tunaCanBruh has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Ping timeout: 245 seconds]
sargas has joined #ruby
phutchins has joined #ruby
bloudermilk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sakens has joined #ruby
rikai has quit [Ping timeout: 252 seconds]
bufferloss has quit [Quit: Leaving]
thumpba has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby
mistermocha has joined #ruby
digitalcake has joined #ruby
thumpba has quit [Ping timeout: 250 seconds]
digitalcake has left #ruby [#ruby]
Sawbones has quit []
riotjones has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
jonr22 has joined #ruby
rikai has joined #ruby
braincra- has quit [Quit: bye bye]
mkaesz has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
Guest123 has joined #ruby
yfeldblum has joined #ruby
zacstewart has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
sevvie has quit [Ping timeout: 250 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
braincrash has joined #ruby
Jesterman81 has quit [Quit: Jesterman81]
w0rldmaker has joined #ruby
asteros has joined #ruby
Takle has joined #ruby
qiffp has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
zacstewart has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
Takle has quit [Ping timeout: 252 seconds]
arescorpio has quit [Excess Flood]
tzupermang has joined #ruby
<tzupermang> When I do def self.magic_number, I'm defining a function in the class, right?
<tzupermang> but if later in one of the methods I do self.someVar, will it use the attr_accessor of the instance variable?
bigmac has quit [Ping timeout: 256 seconds]
teddyp1cker has joined #ruby
<shevy> look
<shevy> self.someVar is always self.someVar()
<jhass> tzupermang: the self. when calling methods (attr_accessor is just defining methods), is only needed when the call would be ambiguous otherwise, that is 1) if a local variable with the same name exists 2) the methods name is a keyword, like self.class 3) the methods name ends with =, self.foo = bar
<jhass> the self. in method definitions defines on which object the method should be defined
<jhass> in a class definition self is the Class object that's currently constructed, so class Foo; def self.foo; end; end; is equivalent to class Foo; def Foo.foo; end; end; and class Foo; end; def Foo.foo; end;
teddyp1cker has quit [Ping timeout: 265 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
sevvie has quit [Client Quit]
zacstewart has quit [Remote host closed the connection]
bigmac has joined #ruby
chipotle has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
zorak8 has quit [Ping timeout: 250 seconds]
zorak8 has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
plutonic has quit [Quit: plutonic]
Guest123 has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
pwh has quit []
pwh has joined #ruby
DissonantGuile has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
FooMunki_ has quit [Read error: No route to host]
Guest65 has joined #ruby
FooMunki_ has joined #ruby
claptor has quit [Quit: this channel is bakas]
fgo has joined #ruby
oo_ has joined #ruby
asteros has quit [Quit: asteros]
asteros has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
LoBoGoL has left #ruby [#ruby]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
mostlybadfly has joined #ruby
jenrzzz has joined #ruby
oki has joined #ruby
Asher has joined #ruby
roadt has joined #ruby
bruno- has joined #ruby
GnuYawk has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Synthbread has quit [Remote host closed the connection]
oki has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
ferr has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
jottr has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
swgillespie has quit [Client Quit]
RegulationD has joined #ruby
Crazy_Atheist has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
lemur has quit [Remote host closed the connection]
roadt has quit [Read error: Connection timed out]
w0rldmaker has quit [Read error: Connection reset by peer]
w0rldmaker has joined #ruby
roadt has joined #ruby
JoshGlzBrk has joined #ruby
zacstewart has joined #ruby
zacstewart has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest123 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteros has quit [Quit: asteros]
Musashi007 has quit [Quit: Musashi007]
asteros has joined #ruby
Edes has quit [Remote host closed the connection]
asteros has quit [Client Quit]
godemper2r has quit [Ping timeout: 250 seconds]
waxjar has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
godemper1r has quit [Ping timeout: 272 seconds]
DrShoggoth has joined #ruby
godemper1r has joined #ruby
xploshioon has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
waxjar has joined #ruby
PaulCapestany has quit [Quit: .]
lxsameer has joined #ruby
lxsameer has joined #ruby
swgillespie has joined #ruby
Edes has joined #ruby
godemper2r has joined #ruby
<axisys> how do I change the value of name: data[Call Forwarding Always][phoneNumber] of this form http://dpaste.com/0MCHZ7C ?
PaulCapestany has joined #ruby
tunaCanBruh has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
<axisys> it fails when I try to call it
<axisys> it thinks data is a method
turtil has quit [Quit: WeeChat 1.1]
zyxelthrone has quit [Ping timeout: 272 seconds]
bloudermilk has joined #ruby
slawrence00 has joined #ruby
fgo has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
chrishough has joined #ruby
blackoperat has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
sivoais has joined #ruby
oo_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plutonic has joined #ruby
blackoperat has quit [Client Quit]
razieliyo has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
pontiki has quit [Quit: zzzzzzzzzzzzzzzzzzzzzzzz]
duncannz has quit [Ping timeout: 246 seconds]
Vile` has quit [Ping timeout: 252 seconds]
Caius has quit [Ping timeout: 276 seconds]
thumpba has joined #ruby
w0rldmaker has quit [Ping timeout: 272 seconds]
Vile` has joined #ruby
doodlehaus has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
Soda has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
mikmik77 has joined #ruby
aamador has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 244 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Caius has joined #ruby
lys has quit [Quit: lys]
The_Phoenix has joined #ruby
doodlehaus has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
hiyosi has joined #ruby
jonr22 has joined #ruby
TheNet has joined #ruby
<TheNet> Why am I getting this error when I run my ruby script in a screen session? /Users/Net/Ruby/galaxy_app/lib/config.rb:5:in `<top (required)>': Use RbConfig instead of obsolete and deprecated Config.
<TheNet> line 5 is module Config
swgillespie has joined #ruby
<TheNet> the error ONLY occurs when I run the script inside a screen session
Soda has quit [Remote host closed the connection]
olivierrr is now known as zz_olivierrr
riotjones has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
bloudermilk has quit [Ping timeout: 256 seconds]
oki has joined #ruby
wldcordeiro has joined #ruby
tris has quit [Ping timeout: 250 seconds]
juanpablo_ has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
mkaesz has joined #ruby
oki has quit [Ping timeout: 265 seconds]
Lorn3r has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpablo_ has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
jlast has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
yeticry has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 256 seconds]
x77686d has quit [Ping timeout: 255 seconds]
yeticry has joined #ruby
seitensei has quit [Read error: Connection reset by peer]
FooMunki_ has quit [Read error: Connection reset by peer]
Azure has quit [Excess Flood]
anotherdeveloper has joined #ruby
FooMunki_ has joined #ruby
Azure has joined #ruby
seitensei has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
teddyp1cker has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
red_horned_rihno has quit [Ping timeout: 250 seconds]
Davey has quit [Remote host closed the connection]
rhg134 is now known as rhg135|zzz
Davey has joined #ruby
teddyp1cker has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
w0rldmaker has joined #ruby
bigmac_ has joined #ruby
pwh has quit []
Guest123 has joined #ruby
chinmay_dd has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
piotrj has joined #ruby
w0rldmaker has quit [Ping timeout: 272 seconds]
davejacobs has joined #ruby
bigmac_ has quit [Ping timeout: 272 seconds]
red_horned_rihno has joined #ruby
charliesome has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
charliesome has quit [Client Quit]
chinmay_dd has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
davejacobs has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
hvxgr has quit [Ping timeout: 265 seconds]
thumpba has joined #ruby
rhllor has joined #ruby
<zenspider> TheNet: you're confusing an error with a warning. and it says exactly why you're getting it.
<zenspider> axisys: data _is_ a method. "form.data"
TheNet has quit [Remote host closed the connection]
bruno- has joined #ruby
TheNet has joined #ruby
bruno- is now known as Guest69195
thumpba has quit [Ping timeout: 244 seconds]
teddyp1cker has joined #ruby
bigmac_ has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
<TheNet> zenspider: why should I use RbConfig instead?
rhllor has quit [Read error: Connection reset by peer]
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 264 seconds]
<zenspider> TheNet: because it TOLD you to?
<zenspider> I would think "Use RbConfig instead of obsolete and deprecated Config" is clear
Guest69195 has quit [Ping timeout: 265 seconds]
AlbertoCG has joined #ruby
rhllor has joined #ruby
AlbertoCG has left #ruby [#ruby]
<TheNet> zenspider: sorry, what I mean is _why_ is Config deprecated?
riotjones has joined #ruby
<TheNet> zenspider: it's just the name of a module I've defined
_pakchoi_ops has joined #ruby
speaking2ode has joined #ruby
yfeldblu_ has joined #ruby
speakingcode has quit [Ping timeout: 256 seconds]
<zenspider> TheNet: ah! there is a module that ships with ruby named Config.
<zenspider> you're piggybacking, probably by putting it topside instead of in a namespace
<zenspider> wrap it with module MyAppName; ... end
<TheNet> zenspider: ah I see
<TheNet> zenspider: thanks so much
User458764 has joined #ruby
<zenspider> n/p
<TheNet> it is odd that it only shows the warning when the app is run inside a screen session though
<zenspider> and it is deprecated for exactly this reason. the word is too generic
vdamewood has joined #ruby
AlexRussia has joined #ruby
anotherdeveloper has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 265 seconds]
philwantsfish1 has joined #ruby
philwantsfish has quit [Ping timeout: 246 seconds]
rvchangue has quit [Ping timeout: 246 seconds]
RegulationD has quit [Remote host closed the connection]
Regulati_ has joined #ruby
rvchangue has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby
Regulati_ has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_Andres has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
ayushah_ has joined #ruby
jenrzzz has joined #ruby
segmond has quit [Ping timeout: 252 seconds]
rorra has quit [Quit: rorra]
AlexRussia has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
TheNet has quit [Quit: Leaving...]
RegulationD has quit [Ping timeout: 264 seconds]
mkaesz has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
hvxgr has joined #ruby
speaking1ode has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Computer has gone to sleep.]
tunaCanBruh has joined #ruby
Synthbread has joined #ruby
rhllor has quit [Read error: Connection reset by peer]
segmond has joined #ruby
rhllor has joined #ruby
piotrj has quit [Remote host closed the connection]
greenbagels has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
phutchins has joined #ruby
tmtwd has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
davedev24_ has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 256 seconds]
ayushah_ has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
mistermocha has joined #ruby
Lewix has quit []
jonr22 has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
plutonic has quit [Quit: plutonic]
doodlehaus has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
jack_rabbit has joined #ruby
antgel has joined #ruby
juanpablo_ has joined #ruby
sinkensabe has joined #ruby
amclain has quit [Quit: Leaving]
doodlehaus has quit [Ping timeout: 240 seconds]
Guest123 has joined #ruby
justin_pdx has joined #ruby
User458764 has joined #ruby
bigmac_ has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
Waheedi has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
rhllor has quit [Quit: rhllor]
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
jottr has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
goshdarnyou has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
<atmosx> d/away
lemur has quit [Remote host closed the connection]
kalusn has joined #ruby
elaptics is now known as elaptics_away
Alina-malina has joined #ruby
slawrence00 has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
oki has joined #ruby
RandyT has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
mkaesz has joined #ruby
ta has quit [Client Quit]
Hirzu has joined #ruby
naftilos76 has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Lorn3r has quit [Quit: Leaving]
schaerli has joined #ruby
rupertbg has joined #ruby
<aewffwea> Is there any way to print all the properties of a custom object to something json-like?
Channel6 has quit [Quit: Leaving]
chinmay_dd has joined #ruby
it0a has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
sinkensa_ has quit [Read error: Connection reset by peer]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oki has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
oki has joined #ruby
ptrrr has joined #ruby
diegoviola has quit [Remote host closed the connection]
Hrendalf has joined #ruby
bluOxigen has joined #ruby
thumpba has joined #ruby
ayushah_ has joined #ruby
mikecmpbll has quit [Quit: ciao.]
fgo has joined #ruby
kalusn has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
oki has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Ping timeout: 264 seconds]
tzupermang has quit [Quit: Page closed]
sinkensabe has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
Hirzu has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
robindunbarr has joined #ruby
Guest123 has joined #ruby
User458764 has joined #ruby
Takle has joined #ruby
riotjones has joined #ruby
sevenseacat has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
jimms has joined #ruby
ayushah_ has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
max96at|off is now known as max96at
riotjones has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
sevenseacat has joined #ruby
wicope has joined #ruby
Hirzu has joined #ruby
RegulationD has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
chipotle has quit [Quit: cheerio]
sinkensabe has quit [Remote host closed the connection]
Guest65_ has joined #ruby
lkba has joined #ruby
sinkensabe has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
RegulationD has joined #ruby
xploshioon has quit [Quit: Leaving]
sameerynho has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
peterhu has joined #ruby
Joufflu has joined #ruby
sinkensabe has joined #ruby
ayushah_ has joined #ruby
Macaveli has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
kyb3r_ has quit [Quit: Leaving]
vmatiyko has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
piotrj has quit [Remote host closed the connection]
RegulationD has joined #ruby
tunaCanBruh has joined #ruby
arup_r has joined #ruby
ayushah_ has quit [Read error: Connection reset by peer]
teddyp1cker has quit []
RegulationD has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
EasyCo has quit [Quit: Connection closed for inactivity]
jack_rabbit has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
terlar has joined #ruby
<lampd1> I usually do something along these lines aewffwea http://stackoverflow.com/questions/20979356/how-do-i-dump-pry-output-to-a-file-or-vim
<lampd1> set a pry binding and then write json or yaml out to reference
piotrj has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
roshanavand has quit [Quit: Gone planting...]
_pakchoi_ops has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
_pakchoi_ops has joined #ruby
Feyn has quit [Quit: Leaving]
sevenseacat has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
sushant94 has quit [Ping timeout: 244 seconds]
sandelius has joined #ruby
Hrendalf has quit [Ping timeout: 246 seconds]
piotrj has quit [Remote host closed the connection]
jonr22 has joined #ruby
bMalum has joined #ruby
sandelius has quit [Client Quit]
sandelius has joined #ruby
roshanavand has joined #ruby
robindunbarr has quit [Quit: robindunbarr]
jonr22 has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
ghr has joined #ruby
j_mcnally has joined #ruby
juanpablo_ has joined #ruby
zacts has quit [Quit: leaving]
zorak8 has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
mkaesz has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
viki_ has quit [Quit: Connection closed for inactivity]
juanpablo_ has quit [Ping timeout: 264 seconds]
davejacobs has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
godd2 has quit [Ping timeout: 245 seconds]
davejacobs has quit [Ping timeout: 246 seconds]
robindunbarr has joined #ruby
doodlehaus has joined #ruby
Soda has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Hrendalf has joined #ruby
doodlehaus has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
jimms_ has joined #ruby
segmond has quit [Ping timeout: 252 seconds]
jimms has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 245 seconds]
<aewffwea> to_json doesn't work for custom objects
Hrendalf has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
RDash has quit [Quit: This device has been compromised!]
RDash has joined #ruby
segmond has joined #ruby
ptrrr has quit [Quit: ptrrr]
goshdarnyou has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac> aewffwea: for custom objects you might need to define the to_json method yourself because it doesnt know what attributes you want and what not
hollywood has joined #ruby
jimms_ has quit [Ping timeout: 252 seconds]
Sakens has quit [Ping timeout: 252 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimms has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
naftilos76 has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
robindunbarr has quit [Quit: robindunbarr]
vmatiyko has quit [Quit: WeeChat 1.0.1]
kalusn has quit [Remote host closed the connection]
thumpba has joined #ruby
Spami has joined #ruby
rupertbg has left #ruby [#ruby]
thumpba has quit [Ping timeout: 250 seconds]
jack_rabbit has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest95262 has joined #ruby
chinmay_dd has joined #ruby
riotjones has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki_ is now known as FooMunki
Guest123 has joined #ruby
olivier_bK has joined #ruby
roadt has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 256 seconds]
hiyosi has joined #ruby
zacts has joined #ruby
roshanavand has quit [Remote host closed the connection]
nahtnam has joined #ruby
SOLDIERz has joined #ruby
SOLDIERz has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
art-solopov has joined #ruby
jimms has quit [Remote host closed the connection]
kalusn has joined #ruby
Guest65_ has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
RegulationD has joined #ruby
tunaCanBruh has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
zacts has quit [Quit: leaving]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
Waheedi_ has joined #ruby
Hrendalf has joined #ruby
Waheedi has quit [Ping timeout: 256 seconds]
Waheedi_ is now known as Waheedi
jimms has joined #ruby
MissionCritical has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
n008f4g_ has joined #ruby
phutchins has joined #ruby
RegulationD has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 264 seconds]
Crisix has joined #ruby
MissionCritical has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
ptrrr has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
banister has joined #ruby
doodlehaus has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
spider-mario has joined #ruby
chishiki has quit [Quit: WeeChat 1.1.1]
chishiki has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
Jetchisel has joined #ruby
slawrence00 has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 250 seconds]
Joufflu has quit [Ping timeout: 265 seconds]
oki has joined #ruby
juanpablo_ has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
robindunbarr has joined #ruby
parduse has joined #ruby
oki has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
makeittotop has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
makeittotop has quit [Remote host closed the connection]
jottr has joined #ruby
bluOxigen has joined #ruby
monod has joined #ruby
lordkryss has joined #ruby
claptor has joined #ruby
User458764 has joined #ruby
zotherstupidguy has joined #ruby
<zotherstupidguy> is there a way to publish to personal gem server without using the geminabox gem?
Zai00 has joined #ruby
razieliyo has joined #ruby
Mia has joined #ruby
<multi_io> in rake, how do you properly add dependencies to the rdoc task?
bruno- has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
robindunbarr has quit [Quit: robindunbarr]
roadt has joined #ruby
Hirzu has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
roadt has quit [Max SendQ exceeded]
<multi_io> e.g. if you need to generate some :include: files that the rdoc run needs
bruno- has quit [Ping timeout: 264 seconds]
roadt has joined #ruby
contradictioned has quit [Remote host closed the connection]
<multi_io> only way I found is to declare them as file dependencies of the index.html file that rdoc generates.
fgo has joined #ruby
Hirzu has joined #ruby
<multi_io> e.g. file "#{rdoc.rdoc_dir}/index.html" => <include files>
bluOxigen has quit [Ping timeout: 246 seconds]
<multi_io> but that's not really documented
postmodern has joined #ruby
bruno- has joined #ruby
bluOxigen has joined #ruby
sigurding has joined #ruby
sigurding has quit [Client Quit]
codecop has joined #ruby
blueOxigen has joined #ruby
Mia has quit [Read error: Connection reset by peer]
pico-pete has quit []
bluOxigen has quit [Ping timeout: 250 seconds]
robindunbarr has joined #ruby
rikai has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
shum has joined #ruby
MissionCritical has quit [Ping timeout: 240 seconds]
Hirzu has quit [Remote host closed the connection]
lkba has joined #ruby
charliesome has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zacts has joined #ruby
thumpba has joined #ruby
kaiZen has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Quit: leaving]
<arup_r> Am I in or out ?
MissionCritical has joined #ruby
<shmoon_> can i directly call module methods in ruby ?
thumpba has quit [Ping timeout: 250 seconds]
monod has quit [Quit: Sto andando via]
MissionCritical has quit [Max SendQ exceeded]
<shmoon_> Like Foo::Bar::meth() ?
<shmoon_> or it HAS to be included in classes
Mia has joined #ruby
contradictioned has joined #ruby
puzanov has joined #ruby
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
MissionCritical has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
ValicekB has quit []
<Fluent> If the method is a self method, you could use Foo.method()
Crisix has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
pandaant has joined #ruby
robindunbarr has quit [Quit: robindunbarr]
<Fluent> So for example if you have class Foo with a Method stated as self.bar, you could call Foo.bar()
fgo has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 252 seconds]
rikai has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
roshanavand has joined #ruby
ghr has joined #ruby
roshanavand has quit [Remote host closed the connection]
ValicekB has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
sinkensabe has joined #ruby
<jhass> shmoon_: first of all, please don't use :: to call methods, use . Then, you can call them directly if they're defined on the module instance (too), that is as def self.foo or with module_function atop of them
ghr has quit [Ping timeout: 245 seconds]
<jhass> things like Kernel in Ruby core use module_function
<jhass> >> Kernel.puts "hi"
<eval-in> jhass => hi ... (https://eval.in/294563)
aryaching has joined #ruby
allcentury has joined #ruby
<shmoon_> jhass: seems like if I define the method as self.meth then I can call it using both :: and .
kielybunny has quit [Quit: synapse]
aryaching has quit [Read error: Connection reset by peer]
<shmoon_> same with module_function, I guess mdule_function does the same thing as self.meth
<shmoon_> just wondeirng
fgo has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<Fluent> :: and ., same thing
<Fluent> Well not really, but in this context, yes.
<Fluent> :: is really a scope resolution operator,
<Fluent> . is just a message passing operator
<Fluent> :: comes in handy when you are working with constants
<jhass> While you can use :: to call method, it's highly discouraged because it's rather confusing
<Fluent> For example calling sqrt and PI
<Fluent> PI couldn't be called with a dot operator
jaequery has joined #ruby
<Fluent> >> puts Math.sqrt(4)
<eval-in> Fluent => 2.0 ... (https://eval.in/294564)
<Fluent> >> puts Math.PI
<eval-in> Fluent => undefined method `PI' for Math:Module (NoMethodError) ... (https://eval.in/294565)
<jhass> also def self.foo and module_function are not quite equivalent, def self. defines the method only on the module instance, module_function copies the instance method to the module instance
<Fluent> and finally,
<Fluent> >> puts Math::PI
<eval-in> Fluent => 3.141592653589793 ... (https://eval.in/294566)
tunaCanBruh has joined #ruby
<shmoon_> thanks
<shmoon_> got it
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 240 seconds]
art-solopov_ has joined #ruby
aryaching has joined #ruby
art-solopov has quit [Ping timeout: 245 seconds]
aryaching has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
jimms has quit [Remote host closed the connection]
dorei has joined #ruby
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
razieliyo has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 240 seconds]
Hirzu has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
red_horned_rihno has quit [Ping timeout: 256 seconds]
pretodor has joined #ruby
jonr22 has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
enterprisedc has quit [Quit: enterprisedc]
jonr22 has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
freerobby has quit [Client Quit]
juanpablo_ has joined #ruby
MissionCritical has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
juanpablo_ has quit [Ping timeout: 250 seconds]
davejacobs has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
Alina-malina has joined #ruby
Nahra has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Rollabunna has quit [Quit: Leaving...]
davejacobs has quit [Ping timeout: 244 seconds]
red_horned_rihno has joined #ruby
enebo has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
mostlybadfly has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
ytti has left #ruby [#ruby]
pretodor has quit [Quit: Ex-Chat]
Spami has joined #ruby
Takle has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
claptor has quit [Quit: this channel is bakas]
jonr22 has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
Jackneill has quit [Quit: Leaving]
fgo has joined #ruby
mjuszczak has joined #ruby
freerobby has joined #ruby
ponga has quit [Remote host closed the connection]
parduse has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 245 seconds]
mjuszcza_ has joined #ruby
mjuszczak has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
dblessing has joined #ruby
jimms has joined #ruby
olivier_bK has joined #ruby
parduse has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
dblessing has quit [Client Quit]
yxejamir has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
CustosLimen has quit [Ping timeout: 265 seconds]
jeromelanteri has joined #ruby
jeromelanteri_ has joined #ruby
chinmay_dd has joined #ruby
jeromelanteri_ has quit [Client Quit]
Spooner has joined #ruby
User458764 has joined #ruby
jaequery has joined #ruby
phutchins has joined #ruby
jeromelanteri has quit [Client Quit]
doodlehaus has joined #ruby
qiffp has joined #ruby
aryaching has joined #ruby
sevenseacat has left #ruby [#ruby]
yfeldblu_ has quit [Ping timeout: 265 seconds]
thumpba has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
tunaCanBruh has joined #ruby
shum has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
f03lipe has joined #ruby
shum has quit [Client Quit]
roshanavand has joined #ruby
shum has joined #ruby
MissionCritical has quit [Ping timeout: 256 seconds]
thumpba has quit [Ping timeout: 252 seconds]
Hrendalf has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
tunaCanBruh has quit [Ping timeout: 272 seconds]
Hirzu has joined #ruby
DissonantGuile has quit [Quit: Grumbles something about something or another]
w0rldmaker has joined #ruby
plashchynski has quit [Quit: plashchynski]
Hirzu has quit [Ping timeout: 256 seconds]
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
decoponio has joined #ruby
ta has joined #ruby
nolic has joined #ruby
Czupa has joined #ruby
ta has quit [Remote host closed the connection]
plashchynski has joined #ruby
mjuszcza_ has quit []
MissionCritical has joined #ruby
DrShoggoth has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
oleo is now known as Guest65749
oleo__ has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
odigity has quit [Ping timeout: 250 seconds]
Guest65749 has quit [Ping timeout: 272 seconds]
bigmac_ has joined #ruby
millerti has joined #ruby
art-solopov_ has quit [Ping timeout: 265 seconds]
jokester has quit [Quit: WeeChat 1.0.1]
RandyT has joined #ruby
_honning_ has joined #ruby
zyxelthrone has joined #ruby
f03lipe has quit [Quit: Leaving]
kaiZen has joined #ruby
codeurge has joined #ruby
zorak8 has joined #ruby
f03lipe has joined #ruby
sameerynho has quit [Quit: Leaving]
ghr has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
Hirzu has joined #ruby
w0rldmaker has quit [Ping timeout: 252 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Excess Flood]
jimms has quit [Remote host closed the connection]
systemd0wn has joined #ruby
Hrendalf has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
odigity has joined #ruby
Squarepy has joined #ruby
jimms has joined #ruby
hmnhf has joined #ruby
charliesome has quit [Quit: zzz]
_honning_ has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nick______ has joined #ruby
RegulationD has joined #ruby
nerder has joined #ruby
<nerder> hello
spyderma_ has joined #ruby
<nick______> hello nerder
nick______ has quit [Remote host closed the connection]
<nerder> which is the most used syntax in ruby for a loop for instance? there are so many (i dnt mean while instead of for i mean { instead of do etc)
<tobiasvl> loops aren't often used in ruby nerder
<tobiasvl> instead, iterators
<nerder> i dnt even get why i would use unless instead of simply reverse the if condition, is about legibility?
<tobiasvl> yes, you can use whichever makes sense for you
<eam> nerder: loop {}
oleo__ has quit [Quit: Verlassend]
spyderman4g63 has quit [Ping timeout: 246 seconds]
<eam> nerder: but if the block is multiline most people switch to loop do
<tobiasvl> nerder: oh and I missed that last part: { is the same as do
RegulationD has quit [Ping timeout: 244 seconds]
<eam> so the answer is both!
<nerder> i really like the syntax, i just messing around understand what the community prefer :)
<tobiasvl> yes, for multiline blocks, use do; ...; end
piotrj has quit [Remote host closed the connection]
oleo__ has joined #ruby
<tobiasvl> for one-line (or blocks you're chaining onto other blocks) use { ... }
<nerder> tobiasvl: yep i see ;)
oleo__ is now known as oleo
Grantlyk has joined #ruby
<nerder> tobiasvl: yes! i like this!
mjuszczak has joined #ruby
<nerder> this is what i was looking for ;)
jokester has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
sankaber has joined #ruby
shum has joined #ruby
Arnie25 has quit [Remote host closed the connection]
tomeara has joined #ruby
<nerder> anyway i'm following a codeacademy course of ruby, but it looks pretty simple
Arnie25 has joined #ruby
<nerder> i'm about to finish it soon, you guys have something a bit more "advanced" that i can follow? No books pls, just learning by doing
ixti has joined #ruby
<wasamasa> automate something worth automating on your system
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_ixti_ has quit [Ping timeout: 256 seconds]
codeurge has joined #ruby
Azure has joined #ruby
<Grantlyk> If you've got a lot of experience in software already outside of ruby you could jump straight towards the open source process, find something and work on it or start your own thing.
rhllor has joined #ruby
Aztec_ has joined #ruby
<Aztec_> hi
<Aztec_> I have a problem somewhat related to rails, but it applies mostly to ruby constant magic in general
<Aztec_> i have an abstract base class that multiple classes inherit from
<Aztec_> i'm writing a gem that provides multi-table inheritance support in rails
havenwood has joined #ruby
<Aztec_> now i have a module in that gem, which i want to use in the base class. in this module i want to define a class method that can be called in the base class
<Aztec_> it defines an activerecord association on all child classes
<Aztec_> but when i call it in the class, the method is undefined..
plashchynski has quit [Quit: plashchynski]
piotrj has joined #ruby
<jhass> Ruby has no abstract classes ;P
<jhass> but anyway, that's still kinda vague, any code you can show that demonstrates your problem?
plashchynski has joined #ruby
<Aztec_> jhass this is the gem https://github.com/alexJunger/multi_tabular
<Aztec_> by "astract" i mean, it doesn't have a table by itself...
<Aztec_> If you check out MultiTabular::Super, that's the module I'm talking about
<Aztec_> I want to provide a method like "children_have_many", which i can call in the definition of a class that includes MultiTabular::Super
RegulationD has joined #ruby
thumpba has joined #ruby
<Aztec_> this method shall then create a regular has_many association for each descendant of the superclass, as in has_many :somethings, foreign_key: to_foreign_key
jottr has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<jhass> afaik included does not change self, it provides the module that's being included into as an argument to the block
terlar has joined #ruby
<jhass> since this is a rails project, you may want to use ActiveSupport::Concern
<Aztec_> I already do...
<Aztec_> some you're saying I need to use extends?
<Aztec_> extend*
jimms has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhllor has quit [Quit: rhllor]
<jhass> oh, you already are indeed
MissionCritical has quit [Ping timeout: 240 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> check its docs then, it has examples on how to define class methods ;)
<Aztec_> yea i know how ActiveSupport::Concern is supposed to work...if you have a look at this file for example:
doodlehaus has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 244 seconds]
Czupa has quit [Quit: Wychodzi]
RegulationD has quit [Ping timeout: 245 seconds]
<Aztec_> i define "belongs_to_mti"...and in a project i have a class that includes MultiTabular::References, and i can call belongs_to_mti in that class
<jhass> I don't follow why you try an def self. in an included block then all of the sudden
RegulationD has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
Hirzu has quit [Remote host closed the connection]
<Aztec_> which def do you mean?
aryaching has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
pwh has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
<Aztec_> oh...well this is the reason for my question:
<jhass> maybe we should attempt this from the ground up
<jhass> do you know how "class methods" work in ruby?
Guest95262 has quit [Remote host closed the connection]
sargas has joined #ruby
<jhass> do you know what an objects singleton class is?
<Aztec_> an instance of Class
<jhass> do you know what self inside a class or module definition is?
yxejamir has quit [Ping timeout: 250 seconds]
<jhass> well it is, but that's not what I meant, I meant what its purpose is
oki has joined #ruby
<Aztec_> not to deter from your question, but
<Aztec_> atm. i have to define the association in each child class.... ( has_one :project, foreign_key: to_foreign_key )
<jhass> I think understand where methods are defined and how method lookup works will clear your question up
<jhass> *understanding
<Aztec_> well i know that a class method is an instance method on the class singleton
<Aztec_> if that's what you meant
MissionCritical has joined #ruby
<jhass> yes
aamador has joined #ruby
<jhass> well, but a bit more precise maybe
<jhass> "the class singleton", what do you mean by that?
plashchynski has quit [Quit: plashchynski]
MissionCritical has quit [Max SendQ exceeded]
<Aztec_> an instance of Class
terlar has quit [Quit: WeeChat 1.1.1]
<Aztec_> not sure which direction you wanna get me to ;)
<jhass> a = Class.new, so you're saying a holds a singleton now?
<jhass> okay, maybe I just explain
<jhass> first thing to understand is that classes and modules are regular objects, class Foo; end; is syntax sugar for Foo = Class.new, module Foo; end; is syntax sugar for Foo = Module.new
<jhass> inside a class or module definition, self refers to this object
<Aztec_> ok..so far i'm aware of what you're saying
<jhass> the next point is that every object does not only have a class, it also has a singleton class
<jhass> no two objects share the same singleton class
<jhass> the singleton class is where methods live that are defined only for this object
plashchynski has joined #ruby
<jhass> >> "".singleton_class
<eval-in> jhass => #<Class:#<String:0x4107c330>> (https://eval.in/294658)
<jhass> >> "".singleton_class == String
<eval-in> jhass => false (https://eval.in/294659)
<Aztec_> okay...that i wasn't aware of :)
<jhass> >> a = ""; def a.foo; end; a.singleton_class.instance_methods(false)
<eval-in> jhass => [:foo] (https://eval.in/294660)
<jhass> so when you do def self.foo in a class, you add a method to the class objects singleton class
<Aztec_> gotcha
<jhass> >> class Foo; def self.foo; end; Foo.singleton_class.instance_methods(false)
<eval-in> jhass => /tmp/execpad-0a046bda143e/source-0a046bda143e:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/294661)
<jhass> >> class Foo; def self.foo; end; end; Foo.singleton_class.instance_methods(false)
<eval-in> jhass => [:foo] (https://eval.in/294662)
<jhass> extend is an include into an objects singleton class
konflikt has joined #ruby
nettoweb has joined #ruby
<jhass> >> module Foo; end; class Bar; extend Foo; end; Bar.singleton_class.ancestors
<eval-in> jhass => [#<Class:Bar>, Foo, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Kernel, BasicObject] (https://eval.in/294663)
<Aztec_> module Foo; end; class Bar; extend Foo; end; Bar.singleton_class.ancestors; class Bar; end; Bar.singleton_class.ancestors;
<Aztec_> >> module Foo; end; class Bar; extend Foo; end; Bar.singleton_class.ancestors; class Bar; end; Bar.singleton_class.ancestors;
<eval-in> Aztec_ => [#<Class:Bar>, Foo, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Kernel, BasicObject] (https://eval.in/294664)
MissionCritical has joined #ruby
<jhass> method lookup starts at the singleton class, so inside a class definition, it starts at the singleton class of the class you're defining
MissionCritical has quit [Max SendQ exceeded]
<Fluent> This is something probably best commented and outlined in a pastebin or similar
Aztec__ has joined #ruby
<Aztec__> sry connection reset
<jhass> >> module Foo; def bar; puts "hi"; end; end; class Bar; extend Foo; bar; end;
<eval-in> jhass => hi ... (https://eval.in/294665)
<jhass> Aztec__: what did you miss?
<jhass> 16:25 <jhass> method lookup starts at the singleton class, so inside a class definition, it starts at the singleton class of the class you're defining I guess
<Fluent> It's all logged anyways...
<jhass> Aztec__: did that clear something up for you yet?
iamninja has joined #ruby
nerder has quit [Quit: Page closed]
<Aztec__> okay didn't miss anything..
Aztec_ has quit [Ping timeout: 246 seconds]
<Aztec__> jhass i'm not yet sure how this applies to my problem..gotta think about it a little
<axisys> do I assign a value to this form fields name data[Call Forwarding Always][phoneNumber] and data[Call Forwarding Always][settings_changed] here? http://dpaste.com/1VC8M46
<axisys> how do I*
xpoqp has joined #ruby
<axisys> form.data[Call Forwarding Always][phoneNumber] = '123456789' will not work
<jhass> axisys: you probably have to pass strings
iamninja has quit [Client Quit]
<jhass> form.data["Call.."]["phoneNumber"]
<axisys> jhass: uh.. let me try
iamninja has joined #ruby
<Aztec__> so jhass gotta ask this again: if i define a class in two different locations (that is, two class ClassName; end; blocks), do they share the same class singleton object?
_pakchoi_ops has quit [Ping timeout: 256 seconds]
<Aztec__> because what you wrote above makes me think they don't
<axisys> jhass: is it possible to find the field name matching string phoneNumber ?
<jhass> Aztec__: yes, the second definition is merely entering the scope of the existing object, it doesn't create a new class
<Aztec__> oh i see
<axisys> jhass: and then assing the value to it?
<jhass> axisys: I guess?
<axisys> I am new to ruby.. how do I say find the field name with string matching phoneNumber?
<jhass> not sure I can follow that question
doodlehaus has joined #ruby
<jhass> "find"?
<axisys> with ipython I can get the hints easily of all possible methods.. irb does not have that luxury
<jhass> axisys: check pry, pryrepl.org
<axisys> form.fields.name_with('phoneNumber') = 'foo' something like that possible?
MissionCritical has joined #ruby
<jhass> axisys: you would need to check the docs of whatever class form.fields returns
<Fluent> Do you just want to check if it contains the number?
piotrj has quit [Remote host closed the connection]
<axisys> installed pry (apt-get install pry)
<Aztec__> :'( i hate intertwined IRC communications
MissionCritical has quit [Max SendQ exceeded]
<Aztec__> axisys you should probably use pry as a gem, not as an aptitude package
<Fluent> It's part of the game.
aryaching has joined #ruby
<Fluent> Also true
konflikt has quit [Quit: Page closed]
<jhass> axisys: +1, remove that package and gem install pry pry-doc
piotrj has joined #ruby
<axisys> jhass: ok
<Aztec__> so starting from this mysterious to_foreign_key method: it shall return the concrete/subclasses name in a formatted string version
<Aztec__> but i want to define the association in the base class
psy has joined #ruby
User458764 has joined #ruby
<Aztec__> if i call to_foreign_key from the base class, it will obviously return the name of the base class,
<jhass> Aztec__: do you want to support multiple levels of inheritance or just one?
<Aztec__> just one
<Aztec__> that's why i had it be a method of the the base class but call it from the subclasses
<jhass> then just call superclass to the parent class
<jhass> superclass.has_one or whatever
ptrrr has quit [Quit: ptrrr]
<jhass> *to get the
<Aztec__> not sure how this applies here?
<Aztec__> maybe i should provide an example to better illustrate what i wanna achieve?!
chipotle has joined #ruby
<jhass> well, that's what I asked for initially ;)
freerobby has quit [Quit: Leaving.]
vozcelik has joined #ruby
piotrj has quit [Remote host closed the connection]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
<axisys> jhass: form.fields.Class NoMethodError
allcentury has joined #ruby
<axisys> jhass: ^
<jhass> axisys: it's lowercase .class
<axisys> doh! Array
<axisys> form.fields.
<axisys> Display all 3541 possibilities? (y or n)
<jhass> ;D
<axisys> wow! let me look for a string match option
<jhass> form.fields.first.class might be interesting
Cust0sLim3n has quit [Quit: Leaving]
roadt has quit [Ping timeout: 264 seconds]
<axisys> Mechanize::Form::Hidden
<axisys> i am going to loop through the field names real quick
<jhass> http://www.rubydoc.info/gems/mechanize/Mechanize/Form/Field should be the most interesting doc for what you have then
<axisys> these are the ones I am interested in..
<axisys> text:0x23e97b4 type: text name: data[Call Forwarding Always][phoneNumber] value: 1123456789
<axisys> hidden:0x23e94bc type: hidden name: data[Call Forwarding Always][settings_changed] value: 0
<axisys> I need to change there values and do a .submit()
<axisys> jhass: thanks for the link
aerth_afaik is now known as aerth
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tunaCanBruh has joined #ruby
<axisys> field.value = "foo" is what I was trying.. but I am look for a way to find the field where string matched phoneNumber instead of calling it directly
sankaber has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
MissionCritical has joined #ruby
<axisys> .find { |x| 'phoneNumber' in x } will this work ?
n0zz has quit [Quit: leaving]
MissionCritical has quit [Max SendQ exceeded]
<Fluent> Are you trying to see if a number is in an array?
sargas has joined #ruby
<axisys> Fluent: I am trying to find the array element that has the word 'phoneNumber'
<jhass> axisys: remember the first link I gave you?
ndrei has quit [Ping timeout: 245 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
<jhass> you can call the methods mentioned there on x
<jhass> so better name x field btw
tunaCanBruh has quit [Ping timeout: 245 seconds]
<axisys> ok
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Takle_ has quit [Remote host closed the connection]
<Fluent> Looks like a Hash, not an Array
<axisys> [24] pry(main)> form.fields.class
<axisys> => Array
<Fluent> ahh
<Fluent> Just seen the methods of .name and .value from inside forms.each
<Aztec__> had a chance to look at my gist already?
<Fluent> Never mind me
<axisys> jhass: I wish your first url has example
<jhass> Aztec__: whoops, missed, sorry
<jhass> axisys: of calling a method? ;)
<Aztec__> no worries, i admire your multitasking capabilities already ;)
<Fluent> form.field_with(:dom_id => 'phoneNumber') maybe?
<axisys> Fluent: yep.. something like that.. except the field name is data[Call Forwarding Always][phoneNumber]
<Fluent> Oh, eeew
dblessing has joined #ruby
<axisys> :name => "that has the string phoneNumber" .. somethign like that
<jhass> Aztec__: well, with that API it won't happen, I think that's clear :)
aphprentice has joined #ruby
<Aztec__> which API do you mean?
<Aztec__> my nifty little gem? :)
<jhass> Aztec__: turning a method call into multiple of itself from a method which is used as an argument to it
GGMethos has quit [Ping timeout: 250 seconds]
<Aztec__> okay..yea i realize this is approach conceptually flawed
<jhass> Aztec__: the other problem with it is that you don't know the child classes at that point
Takle has joined #ruby
<Aztec__> yea, i just realized that when i saw that decendants of the baseclass is []
<jhass> so, there are two entry points: define an inherited hook in the parent or include a module into the child which defines the association on the parent
juanpablo_ has joined #ruby
adriancb has joined #ruby
<Aztec__> include a module into the child which defines the association on the parent
<Aztec__> that's confusing me
<Aztec__> the actual association has to happen "somehow" in the child class
ptrrr has joined #ruby
<jhass> oh, gotcha
<Aztec__> since the other side of the assocition (where the DB foreign keys are), knows which of the concrete child classes it is
<jhass> well, the entry points stay the same though
aryaching has quit [Ping timeout: 246 seconds]
<jhass> just the place where the association is defined changes
<Aztec__> i just wanted to extract it into the base class as to not repeat the "same" association for every child class
User458764 has joined #ruby
vt102 has joined #ruby
<Aztec__> but i guess you can't really "inherit" an association as it's more a "pull" thing rather than a "push" thing, if you know what i mean
<jhass> I think the inherited hook leads to the nicer API, as you only have to include a module into the parent
GGMethos has joined #ruby
robustus is now known as robustus|Off
w0rldmaker has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<axisys> got it!
<Aztec__> jhass, by hook you mean some message that is sent to the base class on definition of the child class?
<axisys> form.fields_with( :name => /phoneNumber/ )
rorra has joined #ruby
willharrison has joined #ruby
<Aztec__> (y)
juanpablo_ has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
sinkensabe has joined #ruby
<jhass> >> module A; def self.included(base); def base.inherited(child); puts "#{child.name} < #{name}"; end; end; end; class B; include A; end; class C < B; end; # Aztec__
<eval-in> jhass => C < B ... (https://eval.in/294669)
<jhass> not sure how working with AS:Concern changes that
User458764 has quit [Client Quit]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aztec__> ok hang on, i gotta format that...no idea what's going on there :)
a5i_ has joined #ruby
<a5i_> Hi
w0rldmaker has quit [Ping timeout: 245 seconds]
<a5i_> Whats a good gem to send client reqs to a URL page?
User458764 has joined #ruby
GGMethos has quit [Ping timeout: 250 seconds]
a5i has joined #ruby
<jhass> Aztec__: inherited is basically to classes what included is to modules
oki has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
a5i_ has quit [Client Quit]
oki has joined #ruby
<a5i> openurl doesnt work on some url for some reason :(
<jhass> I like faraday as it abstracts most of the other libraries and thus lets me switch between them
<jhass> but unless you have special constraints, pick whatever API you like most
prasselpikachu has quit [Ping timeout: 252 seconds]
<Aztec__> so jhass i see what you did there...if i had an association "has_one :project, foreign_key: something" i could substitute that for your puts statement
sinkensabe has quit [Remote host closed the connection]
codeurge has joined #ruby
<Aztec__> however since the module would be part of my gem, i'm not sure what the concrete association is, when i define the module
<jhass> Aztec__: well almost, child.has_one if I understood you correctly
MissionCritical has joined #ruby
mjuszczak has quit [Client Quit]
<Aztec__> does that make sense?
<jhass> yes, but you should be able to completely infer it from the childs and the parents name, no?
<Aztec__> right, child.has_one
MissionCritical has quit [Max SendQ exceeded]
<Aztec__> no, it can be completely arbitrary
<Aztec__> basically dependent on the scope of the rails app
Crisix has joined #ruby
<jhass> then don't make it an included hook, make it a DSL method that defines the inherited hook
<a5i> jhass, have I seen you somehwere?
<jhass> or require DSL in the child that defines the names or whatever suites you
prasselpikachu has joined #ruby
<Aztec__> so what i do in the inherited-hook, i would have to do in the class-definition
<jhass> a5i: maybe, I don't memorize IRC encounters tbh
<a5i> jhass, have you ever been in Rust?
<jhass> nope
<Aztec__> can i just call some class-level method from within the module's inherited block?
<axisys> jhass: pry makes it sooo much easier to write codes.. thanks a lot!!
<jhass> Aztec__: yes, it's defined in the parents class singleton class
<a5i> nvm then
<jhass> axisys: okay, here comes the bonus: write require "pry"; binding.pry anywhere into your program to get a debugging shell
<axisys> jhass: wow!!!!
nahtnam has quit [Quit: Connection closed for inactivity]
<axisys> jhass: much easier than copy all code into pry shell.. thanks!
<wasamasa> binding.pry is the best
art-solopov_ has joined #ruby
* axisys wonders if ipython have something similar.. need to ask in #python channel
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
<wasamasa> yes it has
<wasamasa> from IPython import embed; embed()
<axisys> wasamasa: how .. dare I ask here in #ruby channel :-)
CustosLimen has joined #ruby
Dolphi has joined #ruby
<axisys> wasamasa: thanks a lot!
doodlehaus has joined #ruby
<Dolphi> How would I go about merging a string and variable together into the same sentence? What I want is "How may I be of assistance today, " + name variable.
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<axisys> Dolphi: ".... #{variable}"
<jhass> Dolphi: with string interpolation: "Some sentence and here comes #{some_ruby}. Not just #{variables}, any expression like #{1+1}"
<axisys> Dolphi: what jhass said ^
<Dolphi> Thank you both.
<Aztec__> jhass i'm just trying to figure this out right now..
<Aztec__> quite a pain, since the project i use for testing my gem is in a vagrant
<Aztec__> and i have to build the gem every time and install it inside the vagrant, since i don't want to push it after every little change
ghr has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jlast has joined #ruby
<jhass> this is why don't use vagrant :P
<jhass> bundler with the path: option ftw
<a5i> Whats Ruby .replace() ?
<a5i> nvm
<Aztec__> afaik. that path option is used for local repositories
zz_olivierrr is now known as olivierrr
<jhass> takes any directory that has a gemspc afaik
<Dolphi> I have this: puts "some question in the form of a string, #{name_variable}?"
MissionCritical has joined #ruby
<jhass> if you have a git: option you can override it with bundle config gem.path or something
<Dolphi> I keep getting an error saying that it is ended unexpectedly.
wlanboy has quit [Ping timeout: 244 seconds]
<jhass> Dolphi: I don't think that's caused by that line
rorra has quit [Quit: rorra]
<jhass> maybe make a gist of your full error + code
ghr has quit [Ping timeout: 256 seconds]
shum has quit [Quit: WeeChat 1.1.1]
jlast has quit [Ping timeout: 256 seconds]
shum has joined #ruby
<a5i> Okay something is wrong with this html parser :/
chinmay_dd has quit [Ping timeout: 245 seconds]
<a5i> anyone willing to debug with me? its only 11 lines of code
<jhass> a5i: just share your code and describe your problem vs desired behavior, ask the channel, don't try to find the right person
<a5i> Okay well theres the code
<jhass> Dolphi: it's if / elsif / else / end, with the elsif and else being optional, the end bein mandatory
iamninja has quit [Quit: WeeChat 1.1.1]
<a5i> what I need the code to do is to get the content inbetween the tag I provded in the code
<a5i> so for that website
<Dolphi> Whoops, haha.
Akagi201 has quit [Remote host closed the connection]
iamninja has joined #ruby
<a5i> here full tage
<a5i> <meta property="og:title" content="Wilmington, DE | 26.4&deg; | Snow" />
<jhass> a5i: String#index does not resume from the last search, it starts over
<a5i> I need to get the out of it Wilmington, DE | 26.4&deg; | Snow
iamninja has quit [Client Quit]
<jhass> a5i: I can recommend you an HTML parser to parse HTML however, Nokogiri is good
wlanboy has joined #ruby
<a5i> I dont want to use that though, this is for learning experience
<a5i> I need to get this to work
nicolastarzia has joined #ruby
<wasamasa> to get things to work, one uses external libraries
<jhass> a5i: and to do a shameless selfplug, I do happen to maintain a gem to parse OpenGraph tags: https://github.com/jhass/open_graph_reader
<a5i> :/
<a5i> I just want my code to work, not use any external libs for now
iamninja has joined #ruby
<wasamasa> ...
iamninja has quit [Client Quit]
<jhass> a5i: then you gotta remove rest-client ;)
Hrendalf has quit [Quit: Leaving]
<Dolphi> jhass: If you wouldn't mind, could you make the code work so that I can study the proper way?
<Dolphi> I'm still having a bit of trouble.
<jhass> Dolphi: just adding an end to the last line doesn't help?
iamninja has joined #ruby
slawrence00 has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dolphi> I added an "end" to the last line of my "if" and the last line of my "else"
ptrrr has quit [Quit: ptrrr]
<a5i> I only used res client so I can work with the parser part of my code, which was my priority
<Dolphi> I only need one "end"?
iamninja has quit [Client Quit]
jimms has quit [Ping timeout: 264 seconds]
<jhass> yes
<wasamasa> lol
aryaching has joined #ruby
zacstewart has quit [Remote host closed the connection]
<Dolphi> Thank you.
<wasamasa> so, because you cannot do a rest-query by using regex you find it ok to use an external library?
<jhass> Dolphi: there's a gotcha in your code, gets returns the trailing newline, so it returns you "admin\n" if you enter admin on the console. String#chomp is a good method to get rid of it
<wasamasa> this is kind of funny
<jhass> a5i: well, I already told you why your parser doesn't work
<a5i> and I was asking what I should use other than index
<a5i> if thats the problem
<jhass> a5i: note that String#index takes a second argument
willharrison has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby
jimms has joined #ruby
<jhass> just promise us to never apply this technique in a real world app and use a real HTML parser there ;)
SouL_ has quit [Read error: Connection reset by peer]
<Dolphi> jhass: I was just about to mention that whether I enter admin or not, it goes straight to the "else". Chomp will get rid of that, correct?
SouL has joined #ruby
<jhass> Dolphi: yes
<Dolphi> jhass: Thanks buddy.
<a5i> its all for learning :)
Spami has quit [Quit: This computer has gone to sleep]
_1_jeus2 has joined #ruby
<Aztec__> jhass i have the dynamic association thing pretty much figured out
<wasamasa> a5i: you'll learn more by using a proper parser
<jhass> Aztec__: cool!
<Aztec__> but now i have another problem when i set the childs table name from within the module..but i'm sure that's more related to rails than ruby in general
<a5i> Got it to fix anyway :P
<a5i> Why is String#index inclusive?
_1_jeus has joined #ruby
<jhass> it is?
<a5i> Yeah
<jhass> >> "abcef".index "bc"
<eval-in> jhass => 1 (https://eval.in/294677)
<a5i> o wait
<_1_jeus2> spain
<jhass> well, if you call "returning the index of where the token start" inclusive
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ptrrr has joined #ruby
thumpba has joined #ruby
<jhass> _1_jeus2: how's your ruby going?
<Dolphi> How would one go about making text wrap if the count reaches a certain number? I want my program's formatting to appear clean and crisp in PowerShell, but the only way that I know how is manually instering new lines.
sevvie has quit [Ping timeout: 246 seconds]
<Dolphi> Would I have to write a few lines of code at the beginning of my program to count character counts for each line and if it reaches a certain number, insert a new line?
<jhass> Dolphi: mmh, I'll just give away the standard trick: text.scan(/.{80}/).join("\n")
<Aztec__> jhass is this remotely close to how you would have done it?
<Aztec__> class Vehicle def self.inherited_associations(child) child.has_one :engine, foreign_key: child.to_foreign_key end end
<Aztec__> oops
_1_jeus2 has quit [Quit: WhatsChat IRC Android APP]
_1_jeus has quit [Quit: WhatsChat IRC Android APP]
<jhass> Aztec__: I probably would have packaged that up in a DSL method that defines that method
nicolastarzia has quit [Remote host closed the connection]
<jhass> child_has_one :engine, child_has_many :engines
<Aztec__> DSL as in "fancy syntax"?
<jhass> something like that
<Aztec__> hmm...yea that defo. looks fancier
thumpba has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
shum has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
RegulationD has joined #ruby
shum has joined #ruby
Hirzu has joined #ruby
<Aztec__> so i guess this is the final test.
<jhass> pushing them to an instance var (that would live in the parents singleton class) and iterating it in the inherited hook should work
shum has quit [Client Quit]
<Aztec__> i'll have to use all my knowledge acquired in the last hour to achieve this final obstacle in my way to becoming an apprentice in the art of ruby classes ^^
shum has joined #ruby
<Aztec__> okay that sounds reasonable
ndrei has joined #ruby
wicope has quit [Remote host closed the connection]
davejacobs has joined #ruby
sevvie has joined #ruby
coinrookie has quit [Ping timeout: 246 seconds]
<Dolphi> jhass: I added that scan idea to the end of my string and it works, but the text behind the part that would get wrapped disappeared :O
<Dolphi> In other words, my string got cut in half and I lost the second half.
RegulationD has quit [Ping timeout: 246 seconds]
<Dolphi> Then it skips to the next "puts"
<jhass> Dolphi: time for another gist? :)
ptrrr has quit [Quit: ptrrr]
kobain has joined #ruby
prasselpikachu has quit [Ping timeout: 246 seconds]
qiffp has quit [Ping timeout: 246 seconds]
aryaching has quit []
RegulationD has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
shum has quit [Client Quit]
shum has joined #ruby
riotjones has joined #ruby
spyderma_ has quit [Read error: Connection reset by peer]
prasselpikachu has joined #ruby
Hirzu has quit [Ping timeout: 252 seconds]
shum has quit [Client Quit]
claptor has joined #ruby
shum has joined #ruby
<jhass> >> "A new user, I see? In that case, let me introduce myself. My name is Jeves, and I am happy to act as your personal assistant.".scan(/.{80}/).join("\n")
<eval-in> jhass => "A new user, I see? In that case, let me introduce myself. My name is Jeves, and " (https://eval.in/294680)
davejacobs has quit [Ping timeout: 245 seconds]
<jhass> huh
iamninja has joined #ruby
iamninja has quit [Client Quit]
shum has quit [Client Quit]
<jhass> oh, my bad
<shevy> too much crystal
<jhass> Dolphi: the correct regex is /.{,80}/
m8 has joined #ruby
banister has joined #ruby
shum has joined #ruby
iamninja has joined #ruby
<jhass> note the added ,
mikmik77 has quit [Quit: Konversation terminated!]
jimms has quit [Ping timeout: 252 seconds]
iamninja has quit [Client Quit]
MissionCritical has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
j416 has quit [Quit: o/]
RegulationD has quit [Ping timeout: 244 seconds]
iamninja has quit [Client Quit]
iamninja has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
pretodor has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
zacstewart has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dolphi> Thank you :)
<Dolphi> By the time that I build this personal assistant program, I will be fluid in Ruby! I have so many ideas to implement!
codeurge has joined #ruby
red_horned_rihno has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
j416 has joined #ruby
kirun has joined #ruby
<Aztec__> jhass it looks like the hook-way of doing this messes with some rails setters
JDiPierro has joined #ruby
<jhass> Aztec__: quite possible that rails is using it itself, so maybe try calling super or something like that
nickjj has quit [Quit: Leaving]
prasselpikachu has quit [Ping timeout: 244 seconds]
nickjj has joined #ruby
<jhass> Dolphi: btw you probably want to wrap that code into a helper method, like def wrapped_puts text; puts text.scan(/.{,80}/).join("\n"); end and then call that instead of puts
plashchynski has quit [Quit: plashchynski]
MissionCritical has joined #ruby
Channel6 has joined #ruby
topolinux has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
gr33n7007h has joined #ruby
<Aztec__> jhass cool beans, looks like that was the problem
<Aztec__> lol or not
zacstewart has quit [Remote host closed the connection]
<Dolphi> jhass: I think I understand what you mean, but I am extremely new to programming altogether, not just Ruby, so pardon my ignorance.
aryaching has joined #ruby
zacstewart has joined #ruby
<shevy> Dolphi do you know rubular yet?
prasselpikachu has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
havenn has joined #ruby
<Dolphi> shevy: What is rubular?
<shevy> Dolphi it is super easy to build a regex with it http://rubular.com/
<jhass> Dolphi: don't worry, it'll annoy you soon enough to copy that code everywhere and so you'll figure out what I mean :P
zacstewart has quit [Remote host closed the connection]
<shevy> it even has a cheat sheet there
<shevy> like: a{3,6} Between 3 and 6 of a
ptrrr has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
tus has joined #ruby
red_horned_rihno has joined #ruby
a5i has quit []
MissionCritical has joined #ruby
zacstewart has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
GnuYawk has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
postmodern has quit [Quit: Leaving]
shum has joined #ruby
momomomomo has joined #ruby
tiago has quit [Ping timeout: 245 seconds]
tiago has joined #ruby
chinmay_dd has joined #ruby
Spooner has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
antgel has joined #ruby
pappilino1 has joined #ruby
oki has quit [Ping timeout: 250 seconds]
j_mcnally has joined #ruby
Megtastique has joined #ruby
Morkel has joined #ruby
phutchins has joined #ruby
<Aztec__> jhass does that make any sense to you?
sivsushruth has joined #ruby
<Aztec__> because in my childclasses, i have accepts_nested_attributes for and it throws an exception that the association it relies on is not definied
Spami has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
hmnhf has quit [Ping timeout: 264 seconds]
<momomomomo> Aztec__: if this is a rails question, please ask in #rubyonrails
<jhass> momomomomo: it's more metaprogramming really
<momomomomo> jhass: right on; I just saw accepts_nested_attributes ; didn't see the original question
dblessing has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
JDiPierro has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
Pumukel has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
sivsushruth has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
arup_r has joined #ruby
Guest____ has joined #ruby
<Dolphi> I want my program to recommend meals based on the time of day. How would I go about that? For example, if time < 11am, recommend a breakfast dish
<jhass> Aztec__: the puts looks good though?
<shevy> what do you guys prefer
<shevy> array[0] or array.first
<momomomomo> Dolphi: !ask
<helpa> Dolphi: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
nicolastarzia has joined #ruby
DEA7TH has joined #ruby
<momomomomo> shevy: depends on what I'm doing; if I'll end up using more indeces, ary[0]
<jhass> shevy: .first
<shevy> Dolphi you need to compare the current time with where you register what to do
<shevy> momomomomo yeah that was kinda very similar to my reasoning too
<shevy> but lately I have started to use more .first
<shevy> so now I am confused
<momomomomo> it's up to you; choose one style and stick with it
<Aztec__> jhass am I missing parts of your last sentence/question?
<shevy> Dolphi you know how to compare time?
<Aztec__> oh...lol i need more coffee...
<jhass> Aztec__: that one https://gist.github.com/alexJunger/9502606b7f1ae107231c#file-super-L36, produces expected output?
<Dolphi> shevy: No
<Aztec__> well there is no output from the..puts
<jhass> ah, that might be our issue, mmh
<shevy> Dolphi have a first look at: http://www.tutorialspoint.com/ruby/ruby_date_time.htm - ideally try the examples in irb once
<Aztec__> it looks like the hook isn't being called
<jhass> Aztec__: can you use p not puts?
<jhass> just to check empty array vs nil vs not run at all
<shevy> Dolphi after that, make an if/else check or something similar, to query what time it is, and compare it with the actions you wish to make
<shevy> >> Time.now
<eval-in> shevy => 2015-03-01 17:43:53 +0000 (https://eval.in/294686)
<Aztec__> ohh wait! jhass i'm now using extend instead of include
<Aztec__> so that child_has_* is available in the baseclass definition
tunaCanBruh has quit [Ping timeout: 265 seconds]
<shevy> Dolphi the cool thing with time objects is that you can use basic math, like +500 <--- should be +500 seconds
<Aztec__> i guess that might be the issue
<shevy> >> Time.now + 500
<eval-in> shevy => 2015-03-01 17:52:56 +0000 (https://eval.in/294688)
ferr has joined #ruby
<jhass> Aztec__: actually I'm a bit confused that you can can call child_has_one at all
<shevy> Dolphi ^^^ see the difference? we added 500 seconds
<Aztec__> why is that?
<shevy> Aztec__ extend should work on the class level
<shevy> in other words, if you have def self.foo methods
Asher has quit [Quit: Leaving.]
<Aztec__> yep and i'm calling the method @ the class level, right?
<shevy> no idea sorry, did not look at your code yet :D
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<Aztec__> class Foo; call_something; end;
antgel has quit [Ping timeout: 264 seconds]
<shevy> well that will be a method on your very object
<Aztec__> call_something is a method on the class-level
<jhass> Aztec__: oh, you extend your module?
<shevy> you always need to keep track where self is
<Aztec__> yea, got lost in translation i guess
<Aztec__> i'm using extend
<jhass> don't, used include still
<shevy> \o/
<Aztec__> and i assume that's why the hook doesn't work anymore
<jhass> and define the DSL methods with AS::Concerns ClassMethods/class_methods do
<Aztec__> okay, so when i iuse include, i have to define child_has_one in the included hook right?
<Aztec__> oh ok
iamjarvo has joined #ruby
Takle has quit [Remote host closed the connection]
iamjarvo has quit [Max SendQ exceeded]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
User458764 has joined #ruby
fantazo has joined #ruby
juanpablo_ has joined #ruby
<Aztec__> so jhass, now i have the dilemma of where to define to_foreign_key again
oleo has quit [Quit: Verlassend]
prasselpikachu has quit [Ping timeout: 272 seconds]
robustus|Off is now known as robustus
pretodor has quit [Quit: Ex-Chat]
<Aztec__> it has to be a class-method of the child classes, so i would put it in the ClassMethods module
<Aztec__> but then child.to_foreign_key is undefined
rorra has joined #ruby
<jhass> Aztec__: do your users actually need that method?
<Dolphi> shevy: You mean we can add time to the current time?
<jhass> isn't it just a helper for your gem?
<Dolphi> Programming is so complicated from a beginner's standpoint lol. I hope to get as good as you guys some day. :)
<Aztec__> it's more a helper for my gem
<Aztec__> i just thought about calling child.name.whatever right away
<jhass> Aztec__: I'd go for module MultiTabular; def self.to_foreign_key(child) then
<Aztec__> but just for better understanding i'd try to figure out where to put it
Morkel has quit [Quit: Morkel]
<Aztec__> ok like that..dang :D
prasselpikachu has joined #ruby
Grantlyk has quit []
<jhass> and own module inside the gem if you accumulate a few of those
User458764 has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
Zesty has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<Zesty> I'm including a module with extend. How can I mix in an @@all_devices into each class? I'm basically trying to mixin a very simple .create(xxx) and .all() which returns all the objects (like rails)
<Zesty> it keeps making the @@var apply to all classes though
Mia has quit [Read error: Connection timed out]
ndrei has joined #ruby
<Aztec__> zesty i would not use class-level variables
enebo has quit [Quit: enebo]
GGMethos has joined #ruby
<Aztec__> someone is gonna jump me probably, but i would do it this way:
<Zesty> how do I keep track of new items I .create(0 ?
<Aztec__> def self.all_devices; @all_devices; end;
Mia has joined #ruby
<Zesty> im sort of confused, so the total array of all objects goes in an instance variable?
amclain has joined #ruby
x1337807x has joined #ruby
<Nilium> Couldn't you just have a module that defines an attr_accessor and use that to extend things?
x1337807x has quit [Max SendQ exceeded]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vozcelik has quit [Ping timeout: 252 seconds]
<atmosx> ruby!
x1337807x has joined #ruby
<Dolphi> Is time always tracked in 24hr format?
AlexRussia has quit [Ping timeout: 250 seconds]
<Dolphi> Well, by default?
x1337807x has quit [Max SendQ exceeded]
<atmosx> even installing php hurts
<Nilium> Respective to what?
<Dolphi> PowerShell
<Nilium> I could track time using nanoseconds. What are you asking?
qiffp has joined #ruby
<Aztec__> Zesty, this all_devices store, it's not shared among the different inheriting classes?
x1337807x has joined #ruby
<Nilium> Well this is #ruby, not #powershell.
<atmosx> I could track time using a stick on a field.
x1337807x has quit [Max SendQ exceeded]
<Nilium> atmosx: And to the stick's credit, it would be incredibly accurate.
<Dolphi> I don't think I am asking the question properly.
c0m0 has joined #ruby
<atmosx> Nilium: no shit
<Aztec__> btw., @something inside a class method refers to....jhass looking at you ;) ... an instance variable of the classes singleton object
<Zesty> I basically am trying to recreate the .create() and .all() methods from rails (just much simpler)
<Dolphi> Forget it.
x1337807x has joined #ruby
<Zesty> Thing.all just returns an array of all .create'd things
<Aztec__> Zesty have you looked at using ActiveModel instead?
<jhass> Aztec__: correct ;)
x1337807x has quit [Max SendQ exceeded]
<Zesty> this has to just be really simple, theres no DB
<Aztec__> das ist ein BINGO!
GGMethos has quit [Ping timeout: 252 seconds]
<Nilium> Oh christ, now you're getting into rails idiocy
ndrei has quit [Ping timeout: 246 seconds]
x1337807x has joined #ruby
w0rldmaker has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MissionCritical has quit [Ping timeout: 264 seconds]
kaiZen has joined #ruby
vozcelik has joined #ruby
einarj has joined #ruby
RegulationD has joined #ruby
DrShoggoth has joined #ruby
ponga has quit [Quit: Leaving...]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
tomeara has quit [Ping timeout: 246 seconds]
RegulationD has quit [Remote host closed the connection]
Limix has joined #ruby
jlast has joined #ruby
<shevy> Dolphi yeah, you can add and deduct time from time objects in ruby. (almost) everything is an object in ruby
pappilino1 has quit [Quit: pappilino1]
wallerdev has joined #ruby
DrShoggoth has quit [Client Quit]
<shevy> Dolphi it's not really that complicated; the core part is simple math (add, subtract, multiply etc..), simple logic (if this, else that), arranging stuff in data structures (like hash vs. array), and last but not least arranging your code in logical chunks (methods, modules, classes, files). if you were to use C you'd also have pointers and boring memory thingies
DrShoggoth has joined #ruby
<shevy> Dolphi I think the time implementation in ruby follows some standard
<shevy> Dolphi try Time.at()
<IceDragon> struct ShevyObject *shevy = malloc(sizeof(ShevyObject));
<shevy> Time.at(0) # => 1970-01-01 01:00:00 0100
<IceDragon> hi shevy :3
<shevy> IceDragon lots of new dragons were here
<IceDragon> :OOO
<IceDragon> And I missed it!?
<shevy> yeah
<IceDragon> oh, are you bored? http://golang-challenge.com/go-challenge1/ :3 try that, they also have openings for ruby and such
<shevy> I forgot that one new dragon name
<IceDragon> I finished my Go entry, just cleaning up the mess .-.
<shevy> GoDragon
<IceDragon> GopherDragon
<shevy> a gopher is a hamster?
<IceDragon> I dunno...
<IceDragon> this requires the power of google!
<shevy> oh
<shevy> it's something like a squirrel
hmnhf has joined #ruby
<shevy> though it seems to prefer holes
willharrison has joined #ruby
wasamasa is now known as wasmasa
<shevy> look how they are watching you IceDragon
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wasmasa is now known as wasamasa
MissionCritical has joined #ruby
<wasamasa> what's wrong with their testicles
MissionCritical has quit [Max SendQ exceeded]
<IceDragon> ;___; They want my souuuul
<IceDragon> especially that one in the middle left
<Aztec__> wow...ruby keeps hitting me in the face
einarj_ has joined #ruby
<Aztec__> so jhass i made a module Helpers inside MultiTabular
einarj has quit [Read error: Connection reset by peer]
robustus is now known as robustus|Off
<Aztec__> but calling a method MultiTabular::Helpers.some_static_method() from within the inherited block doesn't work
<Aztec__> as in the method is undefined
<jhass> you sure you defined it "static"? :P
* Nilium is rather glad he's mostly working in Go at work now.
<Aztec__> no...but it sounds cooler that way
<jhass> I mean def self.foo or module_function; def foo;
thumpba has joined #ruby
<Aztec__> oh..no...no
<IceDragon> jhass or or: class << self; def foo ; end
<IceDragon> :P
<jhass> heh
<Aztec__> after this issue i'm done for today - my productivity is decreasing rapidly
<Nilium> As opposed to node.js and PHP (which the rest of my office uses), better known as the twin evils, Sloth and Wrath.
<Aztec__> IceDragon that looks like a ... "good"....idea?! :P
<jhass> I like module_function for helper modules
<IceDragon> I kinda avoid module_function, I end up using extend self and def self.methodname
<jhass> IceDragon: interesting, many people here would consider extend self to be the anti pattern
Dolphi has quit [Quit: Leaving]
<IceDragon> orly?
<jhass> yah
ArchRogem has joined #ruby
<jhass> apeiros can reason it better than me though :P
<Nilium> I like my extend self.
<IceDragon> that reminds me, I can't tell the last time I had to define a helper module that extended itself :O
<Aztec__> oh DAMN...of course i can't call it on the module itself -_-
<Nilium> Damned be those who would tell me otherwise.
<IceDragon> Evil.extend Nilium
<IceDragon> >.>
<IceDragon> Tell me otherwise
<Nilium> Usually if I just want a namespaced bunch of functions, I just do class <<self ; end
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> IceDragon: I'm pretty sure that's not how you use Evil in Emacs.
<Aztec__> Nilium, what do you tell people that tell you that v8 is faster than MRI/what have you?
MissionCritical has joined #ruby
thumpba has quit [Ping timeout: 265 seconds]
<IceDragon> I'd tell them stop splashing on my language :P
<Nilium> Aztec__: "I don't care, I'm not using interpreted, dynamically typed hot garbage."
prasselpikachu has quit [Ping timeout: 264 seconds]
MissionCritical has quit [Max SendQ exceeded]
<Aztec__> oh i see..that's why you're here - you waiting for the compiler to terminate??
<Nilium> Aztec__: Ever used Go?
sinkensabe has joined #ruby
<Aztec__> no but i hear it's a nice language
<Nilium> If you can make the compiler take more than a few seconds, you are using Cgo.
<Nilium> It's extremely fast, to the point that I just recompile everything the moment I change anyhting.
<Nilium> *anything
<Aztec__> but...but....
wallerdev has quit [Quit: wallerdev]
Mia has quit [Read error: Connection timed out]
<Nilium> Anyway, what "faster" means to people who are using languages that have to get shoved through a VM and can't be sufficiently optimized even by a JIT compiler is mostly irrelevant to me.
PhaseCode has joined #ruby
Mia has joined #ruby
AlexRussia has joined #ruby
<Nilium> Had a whole hell of a long discussion about node.js likely misleading lots of people with the whole non-blocking IO thing last night in #go-nuts, so I don't really want to rehash it.
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
prasselpikachu has joined #ruby
einarj has joined #ruby
GGMethos has joined #ruby
<Nilium> Also, where MRI performance is concerned, it doesn't really matter to me 'cause I'm not doing backend server stuff with Ruby.
<Nilium> I freakin' love ruby 'cause it's great for writing small tools, though.
<IceDragon> ruby is fast enough :P
<Aztec__> so do you call us common folk names...like script kiddies?
<Nilium> Ruby programmers are programmers.
<Nilium> node.js programmers are programmers.
<Nilium> node.js is just a shite idea built on a lie.
<Nilium> And using a shite language.
sankaber has joined #ruby
<Nilium> And an old version of V8 because apparently they didn't think that one through.
red_horned_rihno has quit [Ping timeout: 255 seconds]
<TheNumb> Nilium: node.js is dead
<TheNumb> all hail io.js
<TheNumb> :P
* IceDragon hides behind shevy
<IceDragon> They be spewing JS rumors again!
sinkensabe has quit [Read error: Connection reset by peer]
einarj_ has quit [Ping timeout: 246 seconds]
<Nilium> I'd prefer that died too, just so I wouldn't have to see javascript being used for systems programming
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has joined #ruby
freerobby has joined #ruby
piotrj has joined #ruby
rbennacer has joined #ruby
einarj_ has joined #ruby
<Nilium> The flexibility of that scene is astounding.
<Aztec__> why not use javascript for systems programming? :)
<Nilium> Because it's unsanitary.
<Aztec__> i was at a meetup where somebody programmed a robot with javascript...it was....nice...
<dorei> ppl are still using C for systems programming, so why not javascript? :D
<Nilium> Especially on low-memory systems.
<Aztec__> yea i wouldn't use it either
rbennacer has quit [Remote host closed the connection]
<Aztec__> not that i would do systems programming anyway
einarj has quit [Ping timeout: 256 seconds]
<Nilium> Well, that's basically my job.
skullcrasher has joined #ruby
<IceDragon> dorei: Because C is supreme king of systems programming
<skullcrasher> i try to install a gem (json 1.7.7) and everytime I get the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. Any ideas?
Joufflu has joined #ruby
<IceDragon> skullcrasher: gem install --verbose and pastie result
_Andres has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
<IceDragon> skullcrasher: if you're running windows, then make sure you're build environment is setup correctly
<skullcrasher> on linux (archlinux)
sinkensabe has quit [Read error: Connection reset by peer]
<IceDragon> Ooooo
sinkensabe has joined #ruby
<IceDragon> Another Arch user
<IceDragon> Welcome welcome!
<skullcrasher> :D
<TheNumb> my distro > your distro
<TheNumb> <:
<skullcrasher> gentoo? :P
<TheNumb> probably <:
<PhaseCode> Hey guys, if I had parsed a json object like such (https://gist.github.com/PhaseCode/427082dfb36fbbb07e6a) how would I get a array of the unique application ids? It should just return [1,2]
allcentury has quit [Ping timeout: 256 seconds]
<IceDragon> Well my distro works so, I dun care what you say
MissionCritical has joined #ruby
<IceDragon> skullcrasher: It seems the gem is using the old rb_str_new macro signature, contact the gem maintainer and report the issue
<Nilium> Slackware or gtfo
MissionCritical has quit [Max SendQ exceeded]
allcentury has joined #ruby
<Nilium> I kind of miss running Slackware, but I got lazy and switched to OS X as a compromise.
einarj has joined #ruby
<TheNumb> lol
<axisys> how do I bitwise OR operation among all elements in an Array like this
<skullcrasher> IceDragon, well only the explicit installation of v 1.7.7 fails, the latest 1.8.2 works
<axisys> ["2", "4", "8", "16", "32", "64", "128", "256", "512", "1024", "2048", "32768", "65536"]
lkba has quit [Ping timeout: 245 seconds]
<Nilium> axisys: Are they all supposed to be strings?
<axisys> I want to do (2 | 4 | 8 | ... )
w0rldmaker has quit [Ping timeout: 265 seconds]
<axisys> Nilium: no I need to convet to int first
<axisys> convert*
<Nilium> .. Well do that first.
<Nilium> Besides that: nums.reduce(:|) should cover it.
<axisys> intnum = []; [..].each { |x| intnum << x.to_i }
iamjarvo has joined #ruby
einarj_ has quit [Ping timeout: 265 seconds]
plashchynski has joined #ruby
einarj_ has joined #ruby
<axisys> intnum.reduce then ?
MattEZQ has joined #ruby
<Nilium> Why aren't you just using map?
jaequery has joined #ruby
sevvie has joined #ruby
<axisys> Nilium: because I know less ..
<Nilium> Ok, well, use map.
<axisys> Nilium: whats the difference? (newbie here)
lemur has joined #ruby
ptrrr has quit [Quit: ptrrr]
<axisys> Nilium: thanks
<PhaseCode> Can anyone take a look it my newb issue :D ?
einarj__ has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
Limix has quit [Quit: Limix]
einarj has quit [Ping timeout: 272 seconds]
<PhaseCode> https://gist.github.com/PhaseCode/427082dfb36fbbb07e6a how would I get a array of the unique application ids (assume already parsed, and in an array)? It should just return [1,2]
sinkensabe has quit [Remote host closed the connection]
MattEZQ has quit [Client Quit]
<PhaseCode> Nilium: uniq would return the user no?
<PhaseCode> I only want the ids
<axisys> Nilium: looks like map does the same thing that I was doing with each..
einarj_ has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
<axisys> Nilium: (pretty sure I am not realizing the diff between map and each)
<Nilium> I'm not sure how you're using map, so possibly.
<axisys> time to google
<Nilium> PhaseCode: Keep reading.
<Nilium> Past the first sentence.
MissionCritical has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
red_horned_rihno has joined #ruby
<axisys> Now I know something between map and each.. pretty simple explanation
roshanavand1 has quit [Remote host closed the connection]
yeticry has joined #ruby
plashchynski has quit [Quit: plashchynski]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
OrbitalKitten has joined #ruby
x1337807x has joined #ruby
millerti has quit [Client Quit]
x1337807x has quit [Max SendQ exceeded]
<shevy> axisys you can think of .map as "apply this on each element of my collection"
Tinfoilhat_ has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
<shevy> >> array = [1,2,3]; array.map! {|entry| entry * 2 }; array
<eval-in> shevy => [2, 4, 6] (https://eval.in/294700)
x1337807x has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
godd2 has joined #ruby
<PhaseCode> Nilium: http://rubyfiddle.com/riddles/bff8f It returns two objects that are semi- correct, would I just reduce the array and strip the first part?
<axisys> shevy: right.. thanks
<Nilium> Could just do a uniq and map.
<Nilium> Or a map and uniq.
<axisys> is there a shorter way to get nonzero integers than this
<axisys> .each { |x| nums << x.to_i if x.to_i != 0 }
ghr has joined #ruby
Lewix has joined #ruby
<shevy> .reject
<axisys> nums = []; [..].each { |x| nums << x.to_i if x.to_i != 0 }
<PhaseCode> users.uniq { |s| s.last }.map{ |s| s.last }
<IceDragon> axisys: ary.reject(&:zero?)
MissionCritical has joined #ruby
<shevy> :)
<axisys> IceDragon, shevy : nice!!
prasselpikachu has quit [Ping timeout: 244 seconds]
<axisys> IceDragon, shevy : thanks
<shevy> IceDragon I'm going to keep you as my pet dragon
MissionCritical has quit [Max SendQ exceeded]
<Nilium> Kinky.
tunaCanBruh has quit [Ping timeout: 246 seconds]
prasselpikachu has joined #ruby
<IceDragon> say wut
Spami has quit [Quit: This computer has gone to sleep]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has joined #ruby
RegulationD has joined #ruby
<axisys> I guess reject wont work in my case.. since I am converting to them to int first
olblak has joined #ruby
<axisys> pry(main)> text.split().reject(&:zero?)
<axisys> NoMethodError: undefined method `zero?' for "2":String
<axisys> from (pry):82:in `reject'
<IceDragon> axisys: ary.map(&:to_i).reject(&:zero?)
<IceDragon> >.>
<axisys> oh ok.. cool
enebo has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
<axisys> awesome!
einarj_ has joined #ruby
einarj__ has quit [Ping timeout: 265 seconds]
* IceDragon looks
sevvie has quit [Ping timeout: 245 seconds]
<IceDragon> arup_r: what exactly do you want to accomplish?
plashchynski has joined #ruby
<IceDragon> First Frabricator is a method that mostly like instance_exec/instance_eval's the provided block
<arup_r> abbr is the first 3 chars of the name
<IceDragon> herp
RegulationD has quit [Ping timeout: 244 seconds]
<IceDragon> So thats it
einarj has quit [Ping timeout: 245 seconds]
<arup_r> but I don't know how to refer the name var
<shevy> define a method?
<arup_r> s value inside the block
<shevy> called name
<arup_r> didn
<IceDragon> shevy: the name is inside the block D:
<arup_r> didn't get you guys
<IceDragon> arup_r: what gem/library is this?
sevvie has joined #ruby
<IceDragon> dat animation O:
* IceDragon stares
Cache_Money has joined #ruby
spider-mario has quit [Ping timeout: 245 seconds]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
<arup_r> :D
<IceDragon> anyway, I'll clone the repo down and read the source, you might figure it out before I finish though
last_staff has joined #ruby
<arup_r> I am trying since last 1 hour .. didn't get it :(
Takle has joined #ruby
momomomomo has quit [Quit: momomomomo]
sinkensabe has joined #ruby
<shevy> sometimes you should give up!
<IceDragon> ah, wait a second..
<IceDragon> the abbr, it shouldn't be on the Fabricator
<IceDragon> it should be an attribute/method on the Model itself
* IceDragon facepalms
<arup_r> it is a model field..
<arup_r> but its value should be the first 3 chars for the name
Bounga has quit [Quit: Bounga]
<IceDragon> Then the Model needs to handle cases where its only given a name and extracts the abbr from it
_honning_ has joined #ruby
<IceDragon> oh well
<IceDragon> lemme continue looking before I jump
mikecmpbll has joined #ruby
PhaseCode has quit [Ping timeout: 255 seconds]
<Aztec__> alright, so before I leave, thanks so much for helping, jhass
<IceDragon> o_o; the trip Fabricator block goes on is amazing...
<Aztec__> i promise i'll tease my fellow programmers with the class singleton object ;)
it0a has joined #ruby
piotrj has quit [Remote host closed the connection]
MissionCritical has joined #ruby
piotrj has joined #ruby
nb_bez___ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
<jhass> Aztec__: you're welcome, have fun ;)
<IceDragon> arup_r: Well I didn't find anything useful, the block is passed an index, that's it, nothing more, it doesn't receive an instance, and the scope of that block is also useless to you, not sure how you're going to get around this one
<IceDragon> shevy: I just went on the most amazing round trip for a ruby block
sinkensabe has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
<shevy> LSD?
<IceDragon> shevy: yeah maaaan
shum has quit [Quit: WeeChat 1.1.1]
einarj has joined #ruby
shum has joined #ruby
Aztec__ has quit [Ping timeout: 246 seconds]
aswen has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<arup_r> :(
einarj_ has quit [Ping timeout: 265 seconds]
Mia has quit [Read error: Connection timed out]
MissionCritical has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<IceDragon> arup_r: As I mentioned earlier, your best bet is to have the Model initialize the abbr field using the name itself if not given
rhg135|zzz is now known as rhg136
<IceDragon> like a default value :P
<arup_r> I read the lots of files.. but I gave up with those DSL's
wallerdev has joined #ruby
<arup_r> humm
<arup_r> with hook ?
<IceDragon> Are you using ActiveModel for the models?
davedev24_ has quit []
<IceDragon> well ActiveRecord
sevvie has quit [Ping timeout: 252 seconds]
<arup_r> humm
einarj_ has joined #ruby
<IceDragon> Its been awhile since I've last used rails, so I'm a bit rusty
MissionCritical has quit [Max SendQ exceeded]
<arup_r> :)
<arup_r> Yes callbacks are the rescue
<arup_r> but that
luriv has joined #ruby
<arup_r> is ugly like a cat I yesterday stepped over
plashchynski has quit [Quit: plashchynski]
<arup_r> ;)
einarj has quit [Ping timeout: 252 seconds]
plashchynski has joined #ruby
sinkensa_ has quit [Ping timeout: 240 seconds]
<IceDragon> You ordered a car, but you never said you wanted a beautiful ride :P
einarj has joined #ruby
<arup_r> me ?
<arup_r> I'm a poor guy oO
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj_ has quit [Read error: Connection reset by peer]
<IceDragon> xD
<shevy> arup_r what did you do to the cat
nemaona has joined #ruby
RhettT has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
JBreit has joined #ruby
<arup_r> I didn't eat.. I threw it to the thrash bean
<arup_r> ;)
<IceDragon> D;
<IceDragon> ewvil
<arup_r> >> {a: 10, b: 12}.reverse
<eval-in> arup_r => undefined method `reverse' for {:a=>10, :b=>12}:Hash (NoMethodError) ... (https://eval.in/294728)
<arup_r> "(
<arup_r> :(
_honning_ has joined #ruby
<arup_r> how to reverse a Hash ?
sevvie has joined #ruby
millerti has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
thumpba has joined #ruby
sinkensabe has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
shum has quit [Quit: WeeChat 1.1.1]
MissionCritical has joined #ruby
<havenn> >> {aim: true, gah: false}.invert
<eval-in> havenn => {true=>:aim, false=>:gah} (https://eval.in/294734)
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
<havenn> >> {aim: true, gah: false}.to_a.reverse.to_h
<eval-in> havenn => {:gah=>false, :aim=>true} (https://eval.in/294736)
shum has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
JBreit has left #ruby ["Leaving"]
* jhass is still in the "depending on the order of a hash is a smell" camp
<arup_r> humm mee too
einarj_ has joined #ruby
matcouto has joined #ruby
juanpablo_ has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
sevvie has quit [Ping timeout: 245 seconds]
MissionCritical has quit [Max SendQ exceeded]
thumpba has quit [Ping timeout: 252 seconds]
cmluciano has joined #ruby
spider-mario has joined #ruby
allcentury has joined #ruby
Waheedi has quit [Quit: Waheedi]
juanpablo_ has quit [Ping timeout: 244 seconds]
ddd has joined #ruby
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 264 seconds]
ddd has quit [Read error: No route to host]
sinkensabe has quit [Ping timeout: 250 seconds]
MissionCritical has joined #ruby
ndrei has joined #ruby
einarj has joined #ruby
enebo has quit [Quit: enebo]
Pumukel has quit [Ping timeout: 252 seconds]
plashchynski has quit [Quit: plashchynski]
einarj_ has quit [Ping timeout: 255 seconds]
fenzil has joined #ruby
diegoviola has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
momomomomo has joined #ruby
einarj_ has joined #ruby
plashchynski has joined #ruby
<shadeslayer> jhass: FWIW my project that required that fun unicode regex is here : https://github.com/shadeslayer/dataminer
einarj has quit [Ping timeout: 252 seconds]
<shadeslayer> jhass: would appreciate it if you could have a look and maybe provide some comments on how I could have done things better :)
<jhass> shadeslayer: start with a readme on how to use it :P
<shadeslayer> ( Probably not the most efficient piece of code, since I wrote it within 12 hours (
SouL has quit [Read error: Connection reset by peer]
<shadeslayer> jhass: hah :D , you have to run mine.rb :p
SouL has joined #ruby
bim has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
bim has joined #ruby
<shadeslayer> didn't get around to properly licensing things and writing a readme, probably will do tomorrow
avahey has joined #ruby
bim has quit [Remote host closed the connection]
Matadoer has quit [Ping timeout: 240 seconds]
<jhass> shadeslayer: I dislike describing the data structure in variable names, for example cities over city_hash and so on
einarj has joined #ruby
claptor has quit [Quit: this channel is bakas]
<jhass> .keys.each -> .each_key
plashchynski has quit [Client Quit]
<jhass> or in this case, .map {|region, _| }
<jhass> .map {|_, region_data| actually
ycyclist has joined #ruby
einarj_ has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
nicolastarzia has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
bim has joined #ruby
<jhass> https://github.com/shadeslayer/dataminer/blob/master/province.rb#L18 here maybe give the columns proper names, id, cid, name = row or whatever it actually is
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> I'd also dissect that whole method into smaller private methods
allcentury has joined #ruby
<jhass> .each_with_object is another nice method to avoid some_var = {}; data.each { some_var[a] = b } constructs
Zai00 has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jhass> which couples the hash/array to the code that generates it, so you less likely break it by moving it around
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sevvie has joined #ruby
Guest67433 is now known as Radar
davedev24_ has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einarj_ has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
ghostpl_ has joined #ruby
<shadeslayer> jhass: FWIW I'm not ignoring you, just taking notes :D
<jhass> well, that's about it so far
oetjenj has quit [Client Quit]
allcentury has joined #ruby
Spooner has joined #ruby
<jhass> as Province#initialize gets a bit to hard to follow tbh since it's so big and accessing some random fields
einarj has quit [Ping timeout: 246 seconds]
pwh has quit []
pwh has joined #ruby
Hirzu has joined #ruby
<shadeslayer> yeah the data is a bit insane
plashchynski has joined #ruby
<shadeslayer> jhass: it's a data parser that parses the last election results from Andalucia
<shadeslayer> in case it didn't make sense
<shadeslayer> so Spain has different regions, and each region has different provinces and each province has cities
<shadeslayer> which is what the code represents :)
MissionCritical has joined #ruby
<jhass> might be, using methods to give names to blocks of code that describe what they're doing would be good anyhow ;)
topolinux has quit [Quit: Sto andando via]
MissionCritical has quit [Max SendQ exceeded]
<shadeslayer> jhass: true enough
naftilos76 has joined #ruby
hollywood has quit [Quit: Leaving]
davejacobs has joined #ruby
bigmac_ has quit [Ping timeout: 265 seconds]
samfisher has joined #ruby
samfisher has joined #ruby
ptrrr has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
rhg136 is now known as rhg135|coding
<samfisher> can I embed Ruby code in html files just as easly as I do it with php?
<jhass> samfisher: kind of, using Erb
<jhass> but you shouldn't, it doesn't lead to nice applications in PHP either
<shadeslayer> jhass: btw something I noticed when serializing data, json from stdlib doesn't serialize arbitary classes
allcentury has quit [Ping timeout: 250 seconds]
<shadeslayer> so I had to use oj
evangeline_ has joined #ruby
<shadeslayer> I found that quite odd
<jhass> shadeslayer: I think it does anything that defines a as_json method
art-solopov_ is now known as art-solopov
<samfisher> jhass: what do you mean by it doesn't lead to nice apps in php?
<jhass> so it's just using a more explicit approach
evangeline_ has quit [Read error: Connection reset by peer]
<shadeslayer> jhass: right, but the YAML module doesn't need a as_yaml object
<samfisher> i don't want to use php at all
<shadeslayer> erm, method
<jhass> samfisher: tangleing your application code into your presentation code
evangeline_ has joined #ruby
<samfisher> jhass: oh... yes, but keeping them compartimentalized is hard... I haven't seen any pure HTML and pure PHP files in any app
wicope has joined #ruby
davejacobs has quit [Ping timeout: 255 seconds]
<jhass> samfisher: templating languages that prevent it help, in ruby for example that's Liquid
C1V0 has joined #ruby
psy has quit [Read error: Connection reset by peer]
<jhass> also doing view presenters helps a lot usually
psy has joined #ruby
allcentury has joined #ruby
<shadeslayer> jhass: one of the other things I want to do is remove the class identifiers from the data that is serialized
<shadeslayer> but I'm not entirely sure how to make Oj do that
<shadeslayer> because I don't care about the class :)
<jhass> me neither, I jsut use stdlib json
gheegh has joined #ruby
MissionCritical has joined #ruby
<shadeslayer> using stdlib json requires me to write as_json methods all over the place
prasselpikachu has quit [Ping timeout: 264 seconds]
<shadeslayer> whereas my classes are structured in a way so that they represent the JSON perfectly
MissionCritical has quit [Max SendQ exceeded]
<shadeslayer> which is why I just wanted to serialize it out in one go
fantazo has quit [Quit: Verlassend]
prasselpikachu has joined #ruby
oki has joined #ruby
odigity has quit [Ping timeout: 250 seconds]
Squarepy has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
Squarepy has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
Waheedi has joined #ruby
shum has joined #ruby
allcentury has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
oki has quit [Ping timeout: 246 seconds]
_honning_ has quit [Ping timeout: 245 seconds]
<Nilium> shadeslayer: Advice: prefer the explicit as/to_json because magic is stupid.
TheNet has joined #ruby
einarj has joined #ruby
<jhass> Crystals json_mapping is quite nice
MissionCritical has joined #ruby
Beoran__ has quit [Ping timeout: 265 seconds]
MissionCritical has quit [Max SendQ exceeded]
einarj_ has quit [Ping timeout: 256 seconds]
Hirzu has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
randiman has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
QualityAddict has joined #ruby
oki has joined #ruby
marr has joined #ruby
lkba has joined #ruby
ponga has joined #ruby
viki_ has joined #ruby
w0rldmaker has joined #ruby
riotjones has joined #ruby
odigity has joined #ruby
thumpba has quit [Ping timeout: 252 seconds]
RhettT has quit [Quit: Leaving]
einarj_ has joined #ruby
relix has joined #ruby
MissionCritical has joined #ruby
<apeiros> IceDragon, jhass: because such methods are pseudo functions. they make no use of self. and as such, they should be private. module_function does that for you - private instance method + public class method. with extend self, that's more difficult.
einarj has quit [Ping timeout: 255 seconds]
MissionCritical has quit [Max SendQ exceeded]
<apeiros> (re module_function vs. extend self)
arup_r has quit [Remote host closed the connection]
<apeiros> and there are precedence cases - see Kernel and Math. All methods there are module functions.
<jhass> apeiros: thanks
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
doodlehaus has joined #ruby
w0rldmaker has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 272 seconds]
Beoran__ has joined #ruby
vozcelik has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
einarj_ has joined #ruby
nemaona has quit [Quit: leaving]
swgillespie has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
ptrrr has quit [Quit: ptrrr]
einarj has quit [Ping timeout: 240 seconds]
MissionCritical has joined #ruby
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
piotrj has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shum has joined #ruby
Limix has joined #ruby
<shevy> jhass is doing too much crystal
tjbiddle has joined #ruby
<shevy> he forgets ruby stuff!
<ponga> oops
<ponga> im 100% full whack onto crystal at the moment
dh64 has quit [Quit: Konversation terminated!]
yfeldblum has joined #ruby
shum has quit [Client Quit]
mikeric has joined #ruby
piotrj has joined #ruby
shum has joined #ruby
lys has joined #ruby
max96at is now known as max96at|off
piotrj has quit [Read error: Connection reset by peer]
QualityAddict has quit []
cpt_yossarian has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
decoponio has quit [Quit: Leaving...]
Zai00 has quit [Quit: Zai00]
allcentury has joined #ruby
Zai00 has joined #ruby
motto has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
shum has quit [Quit: WeeChat 1.1.1]
m8 has quit [Ping timeout: 264 seconds]
shum has joined #ruby
x1337807x has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
wldcordeiro has joined #ruby
jottr_ has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
skullcrasher has quit [Ping timeout: 265 seconds]
yosafbridge has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
shum has quit [Client Quit]
shum has joined #ruby
__chris has joined #ruby
ghostpl_ has quit [Read error: Connection reset by peer]
ghostpl__ has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
MissionCritical has joined #ruby
shum has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
shum has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
_2_Sunny932 has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
<_2_Sunny932> heyyy
shum has quit [Client Quit]
red_horned_rihno has quit [Ping timeout: 264 seconds]
yosafbridge has joined #ruby
shum has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
<shevy> the bot is back
shum has quit [Client Quit]
__chris has quit [Quit: Leaving]
Guest____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_2_Sunny932> what
rbennacer has joined #ruby
_2_Sunny932 has left #ruby [#ruby]
mikeric has quit []
bigmac_ has quit [Ping timeout: 252 seconds]
shum has joined #ruby
skullcrasher has joined #ruby
zorak8 has joined #ruby
shum has quit [Client Quit]
pwh has quit [Ping timeout: 245 seconds]
MissionCritical has joined #ruby
einarj_ has joined #ruby
shum has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
shum has quit [Client Quit]
einarj has quit [Ping timeout: 256 seconds]
shum has joined #ruby
juanpablo_ has joined #ruby
momomomomo has joined #ruby
MatthewsFace has joined #ruby
oleo has joined #ruby
einarj has joined #ruby
<shadeslayer> oh wow, crystal looks quite cool
nb_bez___ has quit [Quit: Connection closed for inactivity]
allcentury has quit [Ping timeout: 250 seconds]
deric_skibotn has joined #ruby
elaptics_away is now known as elaptics
x1337807x has quit [Ping timeout: 252 seconds]
jefus has quit [Ping timeout: 265 seconds]
einarj_ has quit [Ping timeout: 245 seconds]
last_staff has quit [Quit: last_staff]
shum has quit [Client Quit]
shum has joined #ruby
shum has quit [Client Quit]
einarj_ has joined #ruby
shum has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
rorra has quit [Quit: rorra]
MissionCritical has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
febuiles has joined #ruby
ninedragon is now known as fourdragon
bigmac_ has joined #ruby
Matthews_ has joined #ruby
fourdragon is now known as ninedragon
einarj has joined #ruby
<Igneous> Does anyone know of a large open source grape app that I could take a look at? Just looking for insparation on how to scale this api out, when it starts growing.
shum has quit [Client Quit]
pwh has joined #ruby
shum has joined #ruby
pwh has quit [Client Quit]
Hirzu has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
einarj_ has quit [Ping timeout: 245 seconds]
OrbitalKitten has joined #ruby
einarj_ has joined #ruby
maletor has joined #ruby
MatthewsFace has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
freerobby has quit [Quit: Leaving.]
doodlehaus has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 245 seconds]
Waheedi has quit [Quit: Waheedi]
rbennacer has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 255 seconds]
<wasamasa> wasn't grape a microframework?
Tinfoilhat_ has joined #ruby
* havenn goes in search of a macroframework
<shevy> mhmm grapes, how tasty
rbennacer has joined #ruby
* wasamasa feels reminded of the microwave grape plasma video on youtube
tunaCanBruh has joined #ruby
randiman has quit [Quit: (null)]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
rkmylo has joined #ruby
nfk has quit [Quit: yawn]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
doodlehaus has joined #ruby
gsd has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
SOLDIERz has joined #ruby
SOLDIERz has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
Guest_ has joined #ruby
Channel6 has quit [Quit: Leaving]
turtil-kun has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
MissionCritical has joined #ruby
TheNet has quit [Remote host closed the connection]
<Fusl> can someone help me with this "gem install rails -V" problem? https://scr.meo.ws/paste/2015-03-01-22-55-09-IVvxaqR7.txt
TheNet has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
allcentury has quit [Ping timeout: 256 seconds]
<jhass> Fusl: what's your gem env?
TheNet has quit [Remote host closed the connection]
Cust0sLim3n has joined #ruby
TheNet has joined #ruby
goshdarnyou has joined #ruby
skj3gg has joined #ruby
<shevy> you could try again: "gem install thread_safe"
jaequery has joined #ruby
<shevy> the /usr/local/share/gems/cache path is quite unusual though
<jhass> Fusl: do you have the psych gem installed?
<shevy> on my system, GEM PATH is at /usr/lib/ruby/gems/2.1.0
<jhass> if so, at which version?
<Fusl> jhass: yep
<Fusl> psych (2.0.13, 2.0.0)
<Fusl> shevy: retrying fails again
<shevy> hmm
<jhass> can you try uninstalling both?
luriv has quit [Remote host closed the connection]
enebo has joined #ruby
einarj has joined #ruby
<jhass> Fusl: maybe it's installed via the package manager?
<shevy> that is very odd
<Fusl> yes, it is installed
<Fusl> rubygem-psych.x86_64
<shevy> gem list even mentions it hehehe
<Fusl> uninstalling it also removes ruby: https://scr.meo.ws/paste/2015-03-01-23-01-46-AWM1Kocd.txt
<shevy> ack
<jhass> ugh, well, thanks psych
<jhass> *centos
einarj_ has quit [Ping timeout: 256 seconds]
<Fusl> oh well
<Fusl> removing the first version fixed this problem already
<shevy> \o/
<jhass> ah, nice :)
<shevy> that just proves that keeping things simple is a good way
momomomomo has quit [Quit: momomomomo]
c0m0 has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<Fusl> thanks shevy and jhass
deric_skibotn has quit [Ping timeout: 246 seconds]
turtil-kun has quit [Quit: WeeChat 1.1.1]
aswen has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
turtil-kun has joined #ruby
dblessing has joined #ruby
Cust0sLim3n has quit [Quit: Leaving]
turtil-kun has quit [Client Quit]
bigmac_ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
ta has joined #ruby
w0rldmaker has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
Cust0sLim3n has joined #ruby
Macaveli has joined #ruby
davejacobs has joined #ruby
doodlehaus has joined #ruby
oki has quit [Ping timeout: 245 seconds]
<bl4ckdu5t> Is there something like empty to check whether nil or '' ?
<bl4ckdu5t> so instead of: if value == nil || value == ''
Macaveli has quit [Ping timeout: 245 seconds]
Squarepy has quit [Quit: Leaving]
<bl4ckdu5t> I could have if value == empty
<jhass> bl4ckdu5t: not in standard ruby, activesupport has something if you're inside rails
<bl4ckdu5t> yes I'm inside rails
<jhass> then check docs for .blank? and .present?
davejacobs has quit [Ping timeout: 252 seconds]
<bl4ckdu5t> ok thanks
dblessing has quit [Max SendQ exceeded]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
einarj_ has joined #ruby
bigmac_ has joined #ruby
thumpba has joined #ruby
turtil-kun has joined #ruby
EasyCo has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
einarj has quit [Ping timeout: 256 seconds]
turtil-kun has left #ruby [#ruby]
doodlehaus has quit [Remote host closed the connection]
nettoweb has joined #ruby
einarj has joined #ruby
C1V0 has quit []
rkmylo has quit []
motto has quit [Quit: Sto andando via]
^Denis has joined #ruby
diegoviola has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 255 seconds]
einarj_ has quit [Ping timeout: 264 seconds]
delianides has joined #ruby
havenwood has joined #ruby
diegoviola has joined #ruby
MissionCritical has joined #ruby
skullcrasher has quit [Remote host closed the connection]
MissionCritical has quit [Max SendQ exceeded]
Zai00 has quit [Quit: Zai00]
havenn has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
wicope has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
enebo has quit [Quit: enebo]
einarj_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
febuiles has quit [Read error: Connection reset by peer]
febuiles has joined #ruby
ta has quit [Remote host closed the connection]
einarj__ has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
<shevy> bl4ckdu5t you could fake it with value.to_s.empty?
<shevy> :)
ta has joined #ruby
einarj_ has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
jlast has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
einarj has joined #ruby
rbennacer has quit [Remote host closed the connection]
jlast has joined #ruby
zzing has joined #ruby
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
cpt_yossarian has quit [Ping timeout: 252 seconds]
einarj__ has quit [Read error: Connection reset by peer]
_honning_ has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
SOLDIERz has joined #ruby
tunaCanBruh has quit [Ping timeout: 272 seconds]
eladmeidar has joined #ruby
MissionCritical has joined #ruby
<eladmeidar> hello kids
ta has quit [Remote host closed the connection]
MissionCritical has quit [Max SendQ exceeded]
ghostpl__ has quit [Remote host closed the connection]
naftilos76 has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
fgo has joined #ruby
mikeric has joined #ruby
oki has joined #ruby
SOLDIERz has quit [Ping timeout: 264 seconds]
odigity has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 246 seconds]
Jetchisel has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
einarj_ has joined #ruby
w0rldmaker has quit [Read error: Connection reset by peer]
w0rldmaker has joined #ruby
Jetchisel has joined #ruby
boshhead has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
QualityAddict has joined #ruby
rhg135|coding is now known as rhg135
RegulationD has joined #ruby
odigity has joined #ruby
blackmesa has joined #ruby
x1337807x has quit [Ping timeout: 256 seconds]
einarj_ has joined #ruby
Guest_ has quit [Read error: Connection reset by peer]
millerti has joined #ruby
jaequery has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
einarj has quit [Ping timeout: 246 seconds]
DaniG2k has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
einarj has joined #ruby
iamjarvo has joined #ruby
allcentury has joined #ruby
einarj_ has quit [Ping timeout: 245 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
MissionCritical has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
x1337807x has joined #ruby
einarj_ has joined #ruby
juanpablo_ has joined #ruby
jack_rabbit has joined #ruby
codecop has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.1.1]
einarj has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
BigRonnieRon has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
Limix has quit [Quit: Limix]
diegoviola has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MissionCritical has joined #ruby
Yzguy has joined #ruby
<Yzguy> Hello
<Yzguy> do you guys use require_relative?
samfisher has quit [Ping timeout: 252 seconds]
MissionCritical has quit [Max SendQ exceeded]
<havenwood> yup, sometimes
jaequery has joined #ruby
jaequery has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
strixd has joined #ruby
bigmac_ has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
postmodern has joined #ruby
evangeline_ has quit [Ping timeout: 265 seconds]
einarj_ has joined #ruby
<Yzguy> so require would be more like libraries
jaequery has quit [Client Quit]
<Yzguy> and relative would be like classes i made
<jhass> depends on your context really
<jhass> in most cases I take care to properly setup load path / have it properly set up for me
einarj has quit [Ping timeout: 250 seconds]
<jhass> its in the rare cases where you need to require your own file in order to do that in which I use require_relative
einarj has joined #ruby
Guest75058 is now known as C0deMaver1ck
skj3gg has quit [Quit: ZZZzzz…]
MissionCritical has joined #ruby
millerti has joined #ruby
nb_bez___ has joined #ruby
c0m0 has joined #ruby
einarj_ has quit [Ping timeout: 264 seconds]
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
strixd has quit [Quit: 500]
eladmeidar has joined #ruby
chipotle has quit [Quit: cheerio]
fenzil has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
jaequery has joined #ruby
DaniG2k has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
einarj_ has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
starless has joined #ruby
w0rldmaker has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
w0rldmaker has joined #ruby
pandaant has quit [Remote host closed the connection]
Channel6 has joined #ruby
leat has quit [Ping timeout: 264 seconds]
<shevy> Yzguy I myself do not use it, I found that I do not need it
rrrutr has joined #ruby
<Yzguy> I'm just not far enough into ruby I guess :P
<Yzguy> oo, perfect. Thanks!
<weaksauce> yw
<Yzguy> I actually might go back to school for a development degree
<Yzguy> I'm way more of an infrastructure person, but I've always wanted to have decent development skills
carrots has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
carrots has quit [Client Quit]
charliesome has joined #ruby
rhg135 is now known as rhg135|noms
<weaksauce> ah cool
<weaksauce> what kind of degree?
SOLDIERz has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
Tinfoilhat_ has joined #ruby
Tinfoilhat___ has joined #ruby
ghostpl_ has joined #ruby
starless has quit [Quit: Leaving]
fenzil has joined #ruby
chipotle has quit [Quit: cheerio]
SOLDIERz has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
chipotle has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
ghostpl_ has quit [Ping timeout: 250 seconds]