<ari-_-e>
bricker`work: what's confusing about it for you?
rodfersou has quit [Quit: Leaving]
Kricir has joined #ruby
<bricker`work>
ari-_-e: it's confusing that you're trying to escape something, but then IRB is also escaping it, so it looks like your code isn't working
oso96_2000 is now known as oso|away
<ari-_-e>
bricker`work: String#inspect adds the appropriate escaping
<ari-_-e>
that shouldn't be surprising
<ari-_-e>
"\{a123\}" wouldn't be correct, because that would imply that the braces are escaped
<ari-_-e>
"\\{a123\\}" correctly shows that the backslashes are escapes
<bricker`work>
indeed
<bricker`work>
I understand it
<ari-_-e>
*escaped
<bricker`work>
it's just a little confusing
Kricir has quit [Ping timeout: 250 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
<bzitzow>
Are there any recommended courses I could take to dive right into TDD with RSpec?
<toertore>
now try escaping \ in a string with a regex
aspiers has quit [Ping timeout: 245 seconds]
b00stfr3ak has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
zz_karupa is now known as karupa
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
weems|test has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Takle has joined #ruby
oo_ has joined #ruby
tkuchiki has joined #ruby
beemo has joined #ruby
djbkd has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
yfeldblu_ has joined #ruby
<AlexRussia>
ari-_-e: lol, badly documented magic....sounds fun :D
<AlexRussia>
ari-_-e: ty
geggam has joined #ruby
<AlexRussia>
ari-_-e: #to_json should return supported JSON object, yep
<AlexRussia>
ari-_-e: ?
<AlexRussia>
ari-_-e: like string, array, hash, number, nil....
<ari-_-e>
AlexRussia: it should return a string json in it
<AlexRussia>
ari-_-e: ou, lol
centrx has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<ari-_-e>
I'd recommend constructing a ruby object that supports to_json and then just return the result of calling #to_json on that
<ari-_-e>
AlexRussia: JSON is a serialization - ruby types that are like the types that can be encoded in json are not json objects
<ari-_-e>
the same is true in javascript
<AlexRussia>
ari-_-e: yep
goodenough has joined #ruby
fold has joined #ruby
Kricir has quit [Remote host closed the connection]
krz has joined #ruby
<AlexRussia>
hm
<AlexRussia>
somebody know what is rangel?
<benzrf>
are there any payment services that do things like handle cancellation and switching cards on their end and just tell your app whether a particular id is paying or not
Kricir has joined #ruby
<benzrf>
for recurring
<AlexRussia>
hm
<AlexRussia>
it seems like java-based language
<benzrf>
AlexRussia: do u mean ragel
<AlexRussia>
benzrf: yep
<benzrf>
ragel is a dsl for declaring fsms
<AlexRussia>
benzrf: can you make less abbreviations? @_@
<AlexRussia>
benzrf: dsl - domain specefic language
<AlexRussia>
benzrf: but what is fsms? @_@
luckyruby has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
apeiros has joined #ruby
<havenwood>
i think that's ^ right, but i swear when i try to add a unit test it shows the existing behavior works
<havenwood>
but it doesn't!
nobitano_ has quit [Ping timeout: 240 seconds]
pramodns has joined #ruby
yekta has joined #ruby
krisquigley has joined #ruby
hephaest1s_rg has quit [Ping timeout: 260 seconds]
brothmars has quit [Ping timeout: 260 seconds]
<havenwood>
i can't think why in test unit the exact same code example works, other than maybe due to overhead the job has a chance to decrement the counter
<havenwood>
oh well, maybe some threading edge cases aren't worth testing but are still worth fixing? >.>
yekta has quit [Ping timeout: 260 seconds]
speakingcode has joined #ruby
speaking1ode has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
dawkirst has joined #ruby
mary5030 has joined #ruby
thams has quit [Quit: thams]
onso has joined #ruby
dawkirst has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
Shidash has quit [Ping timeout: 245 seconds]
ht__th has joined #ruby
rdark has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
gkagan has joined #ruby
craigbowen3 has joined #ruby
jonr22 has joined #ruby
echooo has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
ValicekB has joined #ruby
echooo1 has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
gkagan has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
zcreative has joined #ruby
LACP has quit [Ping timeout: 240 seconds]
bal has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
starkhallo has quit [Ping timeout: 264 seconds]
Aranshada|W has quit [Read error: Connection reset by peer]
x1337807x has quit [Ping timeout: 245 seconds]
fainder_ has joined #ruby
tlarevo_ has joined #ruby
sinkensabe has joined #ruby
bal has quit [Client Quit]
Aranshada|W has joined #ruby
fainder_ has quit [Client Quit]
LACP has joined #ruby
fainder_ has joined #ruby
bal has joined #ruby
zcreative has quit [Ping timeout: 250 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
tlarevo has quit [Ping timeout: 260 seconds]
bal has quit [Read error: Connection reset by peer]
bal has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
arya_ has joined #ruby
thams has joined #ruby
dawkirst has joined #ruby
toastynerd has joined #ruby
koderok has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
krisquigley has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Lightsword>
and multi.add e, EventMachine::HttpRequest.new("http://" + e + "/", :connect_timeout => 1, :inactivity_timeout => 1, :proxy => proxy).get
kireevco has joined #ruby
gauke has joined #ruby
kireevco has quit [Client Quit]
<Lightsword>
but I’m getting the error /em-http-request-1.1.2/lib/em-http/http_connection_options.rb:25:in `initialize': undefined method `[]' for #<Net::SSH::Proxy::SOCKS5:0x00000102a968e0> (NoMethodError)
divi has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
divi has joined #ruby
kireevco has quit [Client Quit]
diegovio1 has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
kireevco has joined #ruby
<Lightsword>
I think I’m setting the proxy correctly in eventmachine but I’m not sure what I’m doing wrong
<sevenseacat>
irc is possibly the worst medium for sharing code
noop has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
Takle has quit [Remote host closed the connection]
krz has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
divi has quit [Ping timeout: 240 seconds]
poulet_a has joined #ruby
divi has joined #ruby
ghr has joined #ruby
Ilyas has joined #ruby
x1337807x has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
Takle has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
<ari-_-e>
does anyone with experience with the mysql2 gem know if it's possible to access two columns from different tables with the same names without renaming them?
ghr has quit [Ping timeout: 240 seconds]
zcreative has joined #ruby
<sevenseacat>
thats got nothing to do with the mysql gem
CpuID has joined #ruby
CpuID has joined #ruby
iteratorP has joined #ruby
<ari-_-e>
yeah it does... I looked at the mysql wire protocol and it tells you which table each column is from
poulet_a has quit [Quit: Quitte]
poulet_a has joined #ruby
charliesome has quit [Quit: zzz]
<ari-_-e>
I'm sure the C api gives you access to this information
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140715214327]]
x1337807x has quit [Ping timeout: 250 seconds]
yekta has joined #ruby
Jackneill has joined #ruby
ohwhoa has quit [Quit: woah!]
<ari-_-e>
as it stands, if I make a query which returns two "id" columns from two tables, the hash only has pair
<ari-_-e>
and results.fields -> ['id', 'id']
sk87 has joined #ruby
yfeldblum has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
timonv_ has joined #ruby
zcreative has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
chth0n has joined #ruby
rocknrollmarc has joined #ruby
sparrovv has joined #ruby
thomasxie has left #ruby [#ruby]
radic has quit [Disconnected by services]
thams has joined #ruby
iteratorP has quit [Remote host closed the connection]
radic_ has joined #ruby
gruz0[russia] has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
fainder has quit [Quit: Leaving...]
apeiros has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
thams has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
jhass|off is now known as jhass
iteratorP has joined #ruby
lukeholder has joined #ruby
dmyers has quit [Quit: dmyers]
lukeholder has quit [Max SendQ exceeded]
sparrovv has quit [Ping timeout: 244 seconds]
Skwallinux has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
iteratorP has quit [Remote host closed the connection]
bblloooomm has quit [Ping timeout: 260 seconds]
hanjianwei has joined #ruby
sparrovv has joined #ruby
iteratorP has joined #ruby
flowerhack has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
SilkFox has joined #ruby
<Lightsword>
how would I open a socks5 tunnel over ssh using ruby?
aaronrl_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
krz has joined #ruby
danijoo has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
aaronrl has quit [Ping timeout: 260 seconds]
gkagan has joined #ruby
thomasxie has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
Xeago has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
Zebroid has joined #ruby
x1337807x has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
philcrissman has joined #ruby
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
whyy has quit [Remote host closed the connection]
einarj has joined #ruby
Zebroid has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
jxf_ has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
vifino has joined #ruby
decoponio has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
qba73 has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
divi has joined #ruby
banister has joined #ruby
IceDragon has quit [Quit: Space~~~]
lw has quit [Quit: s]
IceDragon has joined #ruby
IceDragon has quit [Client Quit]
Aranshada|W has quit [Ping timeout: 240 seconds]
starless has quit [Quit: Leaving]
agent_white has joined #ruby
sparrovv has quit [Remote host closed the connection]
starless has joined #ruby
krz has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
CpuID has quit [Ping timeout: 240 seconds]
moritzs has joined #ruby
abuzze has joined #ruby
Takle has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 245 seconds]
marr has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
Takle_ has joined #ruby
Morkel_ has joined #ruby
sparrovv has quit [Ping timeout: 250 seconds]
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
timonv_ has quit [Remote host closed the connection]
lyuzashi has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
diegoviola has joined #ruby
Port3M5[Work] has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
chipotle has quit [Quit: cya]
ringarin has joined #ruby
krz has joined #ruby
Port3M5[Work] has joined #ruby
dumdedum has joined #ruby
ringarin has quit [Client Quit]
wjimenez5271 has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
TupskinVonAlbert has joined #ruby
InhalingPixels has joined #ruby
joonty has joined #ruby
Wolland_ has quit [Remote host closed the connection]
zequix has joined #ruby
havenwood has joined #ruby
Wolland has joined #ruby
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
Photism has quit [Quit: Leaving]
Macaveli has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
InhalingPixels has quit [Ping timeout: 245 seconds]
zcreative has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
anarang has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
melik_ has quit [Quit: Computer has gone to sleep.]
xhoy_ is now known as xhoy
oo_ has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
anaeem1_ has quit [Remote host closed the connection]
michael_lee has joined #ruby
zcreative has quit [Ping timeout: 272 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
W0rmDr1nk has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
ivko has joined #ruby
ivko has quit [Client Quit]
GriffinHeart has joined #ruby
nopolitica has quit [Ping timeout: 260 seconds]
einarj has quit []
ivko has joined #ruby
einarj has joined #ruby
nopolitica has joined #ruby
mr_foobar_baz has joined #ruby
timonv_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
ivko has quit [Client Quit]
iteratorP has joined #ruby
RTG` has quit [Disconnected by services]
RTG has joined #ruby
RTG is now known as Guest68555
sevenseacat has quit [Remote host closed the connection]
druznek has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ilyas_ has joined #ruby
oo_ has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
Ilyas has quit [Ping timeout: 240 seconds]
nathankleyn has joined #ruby
Takle_ has quit [Remote host closed the connection]
nerium has joined #ruby
oo_ has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
chipotle has joined #ruby
SilkFox has joined #ruby
mengu has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
CpuID has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
workmad3 has joined #ruby
chipotle has quit [Client Quit]
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinH_ has joined #ruby
abuzze has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
chipotle has joined #ruby
AlSquire has joined #ruby
gkagan has joined #ruby
chipotle has quit [Client Quit]
SilkFox has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
onso has quit [Ping timeout: 272 seconds]
mr_foobar_baz has joined #ruby
Zebroid has joined #ruby
chipotle has quit [Client Quit]
oo_ has joined #ruby
CpuID has quit [Quit: Leaving]
nathankleyn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
x1337807x has joined #ruby
gkagan has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
chipotle has quit [Client Quit]
thomasxie has left #ruby [#ruby]
Macaveli has joined #ruby
chipotle has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
Zebroid has quit [Ping timeout: 245 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
chipotle has quit [Client Quit]
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
x1337807x has quit [Ping timeout: 255 seconds]
Hobogrammer_ has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
nathankleyn has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
Ilyas has joined #ruby
Ilyas_ has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
hsps_ has joined #ruby
abuzze has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
Deele has joined #ruby
mr_foobar_baz has joined #ruby
wjimenez5271 has joined #ruby
oo_ has quit [Remote host closed the connection]
malcolmva has joined #ruby
georgesmith has joined #ruby
oo_ has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
root3d has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Duikb00t_ has joined #ruby
InhalingPixels has joined #ruby
hiall has joined #ruby
FrankD has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
root3d has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
beemo has quit [Remote host closed the connection]
Duikb00t has quit [Ping timeout: 245 seconds]
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
InhalingPixels has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
Duikb00t_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Duikb00t_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
oo__ has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Remote host closed the connection]
zcreative has joined #ruby
agjacome has joined #ruby
SCHAAP137 has joined #ruby
agjacome has quit [Client Quit]
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
zcreative has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
gnegno has joined #ruby
spider-mario has joined #ruby
zequix has quit [Remote host closed the connection]
zequix has joined #ruby
Lightsword has quit [Quit: Lightsword]
zequix has quit [Read error: Connection reset by peer]
zequix has joined #ruby
kaspertidemann has joined #ruby
karupa is now known as zz_karupa
adac has joined #ruby
philcrissman has joined #ruby
<adac>
Is it advised to use single quotes or double ones by default?
whyy has joined #ruby
<cjk101010>
doesn't matter, imho
<tlarevo_>
if you need String interpolation use double quotes otherwise single quotes :)
<banister>
adac use the one that makes you feel most at home
<tobiasvl>
the jury is out on that. use what you want
<adac>
I actually love single quotes :) so maybe I'll stick with that
<tobiasvl>
adac: but be sure you know the difference between them! I assume you mean which ones to use when interpolation and escaping don't matter.
zequix has quit [Remote host closed the connection]
<adac>
tobiasvl, yes exactly I mean those. the other ones need double ones as you say
benlieb has quit [Quit: benlieb]
philcrissman has quit [Ping timeout: 255 seconds]
duncannz has quit [Remote host closed the connection]
SilkFox has joined #ruby
tlarevo_ is now known as tlarevo
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
whyy has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
gnegno has quit [Ping timeout: 240 seconds]
<tlarevo>
I'm not sure there could be advantages in using single quotes and double quotes rather than using all double quotes in terms or memory usage and management
zequix has joined #ruby
gkagan has joined #ruby
fold has quit [Ping timeout: 250 seconds]
SilkFox has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
Zebroid has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
thams has joined #ruby
x1337807x has joined #ruby
gkagan has quit [Ping timeout: 245 seconds]
mr_foobar_baz has joined #ruby
toertore has quit [Quit: Leaving]
<jhass>
in theory single quotes are faster to parse since they don't need to be checked for interpolation. But that's probably hardly measurable
LangeOortjes has quit [Quit: WeeChat 1.0]
timonv_ has joined #ruby
LangeOortjes has joined #ruby
Zebroid has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
<tlarevo>
But I guess when you have lots of strings used it matters isnt it ?
whyy has joined #ruby
<ptrrr>
also, escaping is affected
<jhass>
I wouldn't bother tbh.
<banister>
tlarevo that's a micro optimization x 1 billion, forget about it
<jhass>
choose them for their semantic differences as needed
x1337807x has quit [Ping timeout: 240 seconds]
<ptrrr>
‘\n’ != “\n"
Spami has quit [Quit: This computer has gone to sleep]
iteratorP has quit [Remote host closed the connection]
<tlarevo>
banister: I see :)
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
Takle has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
fabrice31 has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 260 seconds]
mr_foobar_baz has quit [Client Quit]
Lightsword has joined #ruby
Takle has joined #ruby
timonv_ has quit [Remote host closed the connection]
mattp_ has quit [Read error: Connection reset by peer]
tlarevo has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
mr_foobar_baz has joined #ruby
tlarevo_ has quit [Ping timeout: 250 seconds]
nerium has quit [Quit: nerium]
<Fractional>
If I have a instance of a class called Foo within another class called Bar. How do I access Bar from Foo?
Takle_ has quit [Remote host closed the connection]
nerium has joined #ruby
<Fractional>
Is there a way without passing a reference?
wjimenez5271 has quit [Ping timeout: 245 seconds]
TorpedoSkyline has joined #ruby
<gaussblurinc1>
ibotexo: heh, you mean hash[:rev_ro] = val ? val : nil? but it creates a key, yes
ldnunes has joined #ruby
<gaussblurinc1>
Fractional: yes, you could access to ram and with offset magic find a class…
<ibotexo>
more like hash[rev_to] = val unless val.nil?
<jhass>
Fractional: Bar.new ?
<ibotexo>
but is there a syntax to do it inside these brackets {}?
<jhass>
ibotexo: nope
<Fractional>
gaussblurinc1: Do you have any resources which I could read about this?
<ibotexo>
like {:arg1 => x, :rev_to => y unless y.nil?,:arg2 = y}
doev has joined #ruby
nopolitica has quit [Quit: WeeChat 0.4.2]
<jhass>
Fractional: he was joking. You don't want to do this in a script that's longer than what it takes to do it (i.e. show that it might be possible and how dangerous it is)
<Fractional>
jhass: I meant like: class Foo; def initialize; Bar.new; end; end; and then in Bar I want to do something like puts Foo.class without having to pass Foo as a argument.
<jhass>
Fractional: not possible and a sign of broken OO design
Mon_Ouie has quit [Ping timeout: 240 seconds]
Grantlyk has joined #ruby
nuck has quit [Ping timeout: 245 seconds]
<Fractional>
jhass: So the solution would be to pass it by reference?
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
osvico has joined #ruby
iteratorP has joined #ruby
easier has joined #ruby
threesixes has quit [Remote host closed the connection]
mijicd has quit [Quit: leaving]
TorpedoSkyline has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 245 seconds]
nerium has quit [Quit: nerium]
hsps_ has quit [Quit: Leaving]
lxsameer has joined #ruby
nerium has joined #ruby
phutchins has joined #ruby
TorpedoSkyline has quit [Client Quit]
osvico has quit [Ping timeout: 240 seconds]
banister has joined #ruby
Photism has joined #ruby
osvico has joined #ruby
phoo1234567 has joined #ruby
TorpedoSkyline has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Cheezebox has joined #ruby
qba73_ has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
SilkFox has joined #ruby
shachar has joined #ruby
nerium has quit [Quit: nerium]
nerium has joined #ruby
krz has joined #ruby
Fractional has quit [Remote host closed the connection]
adac has quit [Ping timeout: 250 seconds]
<shachar>
Hi Guys , a very small and simple question about ruby constructor. i have created a setter which validates date , how can i call this set method during object initialization? Please have a look here http://pastebin.com/yD6LUrzV THANKS
gkagan has joined #ruby
Sgeo_ has quit [Read error: Connection reset by peer]
SilkFox has quit [Ping timeout: 240 seconds]
<apeiros>
shachar: that code is not valid
chipotle has quit [Client Quit]
jottr_ has joined #ruby
<apeiros>
shachar: you'd call it via self.set_day = day_value
chipotle has joined #ruby
<shachar>
apeiros , the setter is not valid?
<apeiros>
your code is not valid
timonv_ has quit [Remote host closed the connection]
<apeiros>
in your pastebin, line 10, `if day.between?(1,31) do` - there's no `do` after an if. either nothing, or a `then`
<apeiros>
line 12 you terminate the if with an end, but line 13 you have an else. that doesn't work.
timonv_ has joined #ruby
<shachar>
ok i understand
<apeiros>
assuming day() is an attr_reader :day, then line 15 does nothing
Logico has quit [Quit: Saindo]
Zebroid has joined #ruby
<shachar>
but if there is a way to pass the constuctor directly to the setter method?
<shachar>
is
chipotle has quit [Client Quit]
<shachar>
to validate during object initialization?
<apeiros>
and last: note that 01 is octal literal. it works with 01, but if you had e.g. 08 or 09, it'd raise.
<apeiros>
what do you mean, "pass the constructor"?
timonv^ has joined #ruby
<apeiros>
brb
gkagan has quit [Ping timeout: 260 seconds]
<shachar>
if i initialiaze an object with invalid date , i won't get over to the resetting_value method , it will be exeucted only if i`ll try to set an invalid date
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shachar>
apeiros , can you please paste your version to this? i didn't quite understood all your comments
timonv_ has quit [Ping timeout: 245 seconds]
blinkdesign has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 240 seconds]
TupskinVonAlbert has quit [Remote host closed the connection]
theharshest has quit [Ping timeout: 240 seconds]
JBreit has quit [Read error: Connection reset by peer]
Grantlyk has joined #ruby
Takle has quit [Remote host closed the connection]
sepp2k has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
georgelappies has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
<apeiros>
back
<apeiros>
shachar: what did you not understand?
Grantlyk has quit [Remote host closed the connection]
phutchins has joined #ruby
lolmaus has joined #ruby
failshell has joined #ruby
nateberkopec has joined #ruby
tlarevo has joined #ruby
Cheezebox has quit [Remote host closed the connection]
timonv^ has quit [Remote host closed the connection]
blinkdesign has joined #ruby
arup_r has joined #ruby
timonv_ has joined #ruby
Cheezebox has joined #ruby
DaniG2k has quit [Quit: leaving]
Skwallinux has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
JBreit has joined #ruby
timonv^ has joined #ruby
timonv^ has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
banister has joined #ruby
JBreit has left #ruby [#ruby]
TupskinVonAlbert has joined #ruby
jespada has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
<stan_br>
I'm trying to make a rails 4 application that is as fallow: a recipe has_many tags. Many tags are _already_ in the database on its own table. When the user creates a new Recipe, it should be able to select many tags. I was trying to do that with nested attributes, but since I'm not creating new Tags, I guess thats not the right way to do it. Any tips?
blinkdesign has quit [Ping timeout: 244 seconds]
earthquake has joined #ruby
hanjianwei has quit [Ping timeout: 255 seconds]
failshel_ has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 240 seconds]
<apeiros>
stan_br: #rubyonrails
davispuh has joined #ruby
<stan_br>
nice tip ehe ;)
thomasxie has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blinkdesign has joined #ruby
blinkdesign has quit [Remote host closed the connection]
blinkdesign has joined #ruby
CodePulsar has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
adac has joined #ruby
xcv has joined #ruby
InhalingPixels has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
mercwithamouth has joined #ruby
havenwood has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
avalarion has joined #ruby
workmad3 has joined #ruby
mbuf has quit [Remote host closed the connection]
<bMalum>
Hey Guys i try to write a Gem … i strated with bundle gem bMarmot and i have “require "bMarmot/version" in my /lib/bMarmot and in /lib/bMarmot/version.rb ther Version File … whats wrong?
<jhass>
bMalum: nothing
InhalingPixels has quit [Ping timeout: 245 seconds]
<bMalum>
jhass - so why do i get this line?
<bMalum>
“/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bMarmot/version (LoadError)”
<jhass>
what command are you running?
timonv_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
tlarevo_ has joined #ruby
<bMalum>
ruby ./lib/bMarmot.rb -> told in the Turial from my School ...
tlarevo has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 264 seconds]
<bMalum>
i think there is the problem right?
<jhass>
try bundle exec ruby lib/bMarmot.rb
arup_r has joined #ruby
<jhass>
we tend to use snake_case for filenames btw
whyy has joined #ruby
timonv_ has quit [Remote host closed the connection]
<bMalum>
jhass - nice - worked! - you mean b_Marmot?
<jhass>
b_marmot. Given that file includes a class or module named BMarmot
<jhass>
s/includes/contains
timonv_ has joined #ruby
ptierno has quit [Read error: Connection reset by peer]
<bMalum>
okey :) thank you very much!
georgelappies has quit [Remote host closed the connection]
<workmad3>
bMalum: to run without the bundle exec, you need to do 'ruby -I lib lib/bMarmot.rb' btw
cocotton has joined #ruby
<workmad3>
bMalum: as the problem is that your gem's lib/ directory isn't on the $LOAD_PATH in ruby, which is used to find relative files with 'require'
blinkdesign has quit []
<workmad3>
bMalum: 'bundle exec' sorts that out, and rubygems also sorts it out for you when the gem is installed normally
britneywright has joined #ruby
<workmad3>
bMalum: it's just the one case where you're outside of both those mechanisms that you hit :)
whyy has quit [Ping timeout: 250 seconds]
nathankleyn has joined #ruby
mary5030 has joined #ruby
earthquake has quit [Quit: earthquake]
cocotton has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
georgelappies has joined #ruby
mary5030 has joined #ruby
sk87 has joined #ruby
thams has joined #ruby
<bMalum>
workmad3: oh now i get it why this happened - do you have a gem in you mind which i could use to look at for help? Just switched from Java and Ocaml to Ruby :D
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
ptierno has joined #ruby
claymore has quit [Quit: Leaving]
nathankleyn has quit [Client Quit]
mityaz has joined #ruby
nathankleyn has joined #ruby
stan has quit [Read error: Connection reset by peer]
xcv_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
xcv has quit [Ping timeout: 245 seconds]
matchaw has quit [Ping timeout: 245 seconds]
thams has quit [Ping timeout: 264 seconds]
Cheezebox has joined #ruby
michael_lee has joined #ruby
jerius has joined #ruby
timonv_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
timonv_ has joined #ruby
txdv_ has quit [Read error: Connection reset by peer]
kaspertidemann has quit []
pandaant has quit [Quit: Lost terminal]
larissa has joined #ruby
Takle has joined #ruby
txdv has joined #ruby
icebourg has joined #ruby
pandaant has joined #ruby
icebourg has quit [Read error: Connection reset by peer]
kedric has joined #ruby
icebourg has joined #ruby
webus has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
SilkFox has joined #ruby
cpruitt has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
thams has joined #ruby
gkagan has joined #ruby
Aranshada|W has joined #ruby
brothmars has joined #ruby
<jhass>
don't worry about asking too many questions here ;)
SilkFox has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
timonv_ has joined #ruby
bmurt has joined #ruby
livingstn has joined #ruby
thams has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: Leaving]
DivineEn1ity has quit [Quit: Lost terminal]
MartinCleaver has quit [Quit: MartinCleaver]
spastorino has joined #ruby
iamjarvo has joined #ruby
itspots has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 260 seconds]
obscured has joined #ruby
qba73_ has quit [Remote host closed the connection]
bigboss has joined #ruby
freerobby has joined #ruby
bigboss has left #ruby [#ruby]
<arup_r>
jhass: thank you :-)
ArchBeOS-work has joined #ruby
<arup_r>
to allow us questions as many as possible here
qba73 has joined #ruby
gnephiak has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
bigboss has joined #ruby
bigboss has left #ruby [#ruby]
qwyeth has joined #ruby
dawkirst has quit [Remote host closed the connection]
snath has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
RandyT has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
aspiers has joined #ruby
root3d has quit [Quit: Leaving]
doodlehaus has joined #ruby
qwyeth has quit [Remote host closed the connection]
charliesome has joined #ruby
qwyeth has joined #ruby
banister has joined #ruby
yfeldblum has joined #ruby
joast has joined #ruby
chipotle has joined #ruby
momomomomo has joined #ruby
kiri has quit [Ping timeout: 245 seconds]
jxf_ has joined #ruby
philcrissman has joined #ruby
MartinCleaver has joined #ruby
ngn999 has joined #ruby
mengu has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
livingstn has quit []
InhalingPixels has joined #ruby
jheg has joined #ruby
zequix has quit []
TupskinVonAlbert has quit [Ping timeout: 260 seconds]
mark_locklear has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
cy has joined #ruby
Dusty_ has quit [Ping timeout: 250 seconds]
Sonny|3oy has quit [Quit: Leaving]
Cheezebox has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djcp has joined #ruby
kiri has joined #ruby
ta has quit [Remote host closed the connection]
icebourg has quit []
cocotton_ has joined #ruby
ta has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
Cheezebox has joined #ruby
livingstn has joined #ruby
cocotton_ has quit [Remote host closed the connection]
ngn999 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
crdpink has joined #ruby
qmfnp has joined #ruby
crdprink2 has quit [Ping timeout: 245 seconds]
aspiers has joined #ruby
bearish has quit [Ping timeout: 260 seconds]
oo_ has quit [Ping timeout: 245 seconds]
peret has quit [Disconnected by services]
maximski has quit []
klmlfl has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
jheg has quit [Quit: jheg]
stan_br has quit [Quit: Page closed]
cocotton has quit [Ping timeout: 272 seconds]
TC` has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 244 seconds]
St_Marx has joined #ruby
nerium has quit [Quit: nerium]
thams has joined #ruby
dorei has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
cocotton has joined #ruby
nerium has joined #ruby
cocotton has quit [Remote host closed the connection]
diegoviola has joined #ruby
<gaussblurinc1>
hm
cocotton has joined #ruby
oo_ has joined #ruby
x1337807x has joined #ruby
iteratorP has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
thams has quit [Ping timeout: 245 seconds]
banister has joined #ruby
oo_ has joined #ruby
banister has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
banister has joined #ruby
bearish has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
sambao21 has quit [Ping timeout: 272 seconds]
paulfm has joined #ruby
<workmad3>
gaussblurinc1: class methods aren't in the method lookup for instances
<workmad3>
gaussblurinc1: so you need to call them explictly on the class, not implicitly
timonv_ has quit [Ping timeout: 260 seconds]
<jhass>
^ but seems fine if you really need that both ways
SilkFox has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
<workmad3>
jhass: he wants to use the class method in the instance method implementation ;)
<gaussblurinc1>
jhass: and what's wrong here? I don't want to duplicate code
agjacome has joined #ruby
shackleford has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
<jhass>
workmad3: he asked whether that's okay design. gaussblurinc1 I didn't say it's wrong, only that you need to be sure you need it both ways
hellangel7 has joined #ruby
shackleford has joined #ruby
<workmad3>
ah, ok :)
Zebroid has joined #ruby
<gaussblurinc1>
jhass: heh, thanks, it is clear now
<workmad3>
jhass: ah, I was personally commenting on the fact that the (pseudo-)ruby there wouldn't work :)
nathankleyn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tlarevo_>
Hi, what is the optimum length of a ruby method i read it should be like 10 lines but isn't that too extreme ?
jottr_ has quit [Ping timeout: 240 seconds]
<gaussblurinc1>
workmad3: you are right, I miss self.class.relativePath in instance implementation
<Hanmac>
tlarevo_: as long as she needed to be ,P
<workmad3>
tlarevo_: as short as you can make it
nathankleyn has joined #ruby
<gaussblurinc1>
tlarevo_: I prefer names that I could understand
<jhass>
tlarevo_: shorter is better but not always possible. Make it something to stick to, not a dogma. A second stronger border is one screen size
timonv_ has joined #ruby
<Hanmac>
for PHP and other languages are code style guides, but imo i do not trust them
mercwithamouth has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
dorei has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<workmad3>
jhass: I quite liked one anecdote I came across with a coder who used 'no larger than my head' as a metric
TorpedoSkyline has joined #ruby
<workmad3>
jhass: by which he put his head against the screen, and the height could be no longer than his head :)
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<jhass>
oh, that's awesome
<jhass>
I should adopt that
<Hanmac>
XDDDD
Zebroid has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
cocotton has joined #ruby
<jhass>
damn, my head is bigger than my laptop screen :(
<tlarevo_>
I see thanks, so 15-20 lines would be cool right but if you use rubocop it tries to force you to have 10 lines
thams has quit [Ping timeout: 264 seconds]
<jhass>
rubocop's default config is very... opinionated
<tlarevo_>
jhass: ya :)
asteve has joined #ruby
<Hanmac>
tlarevo_: like i said i do not trust such guides ... it might say that a class has to much methods .. (imo such things are bullshit)
cocotton has quit [Remote host closed the connection]
divi has joined #ruby
<jhass>
tlarevo_: what that means is that you can have your own opinions, it doesn't define dogmatic rules, ymmw
beef-wellington has joined #ruby
<tlarevo_>
Hanmac: I agree but still if you follow them to some extent you get clean and nice code isn't it ? i did some refactoring and new code looks nice
joonty has joined #ruby
livingstn has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Ankhers has joined #ruby
hellangel7 has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
_tpavel has quit [Quit: Leaving]
cocotton_ has joined #ruby
<sonOfRa>
https://gist.github.com/sonOfRa/b74537228b44820ebc01 I've got this piece of code, and it got a little convoluted. It does exactly what it should do (set ldap attributes, and stop setting any more attributes if setting any attribute failed)
<sonOfRa>
I can't think of a way to make it look less convoluted, apart from if-blocks for every single statement
<sonOfRa>
Which really isn't that much less convoluted
tylersmith has joined #ruby
CodePulsar has joined #ruby
iamjarvo has joined #ruby
dawkirst has joined #ruby
tobago has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
havenwood has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
<jhass>
sonOfRa: build a hash with attribute_name => value, so {:cn => user.cn, and so on. Then iterate over that }.each do |attribute, value| set; break/raise unless success
<jhass>
btw we tend to use underscore_case for method names
agent_white has joined #ruby
<sonOfRa>
old habits die hard :/ Most of my methods are underscore_case
agent_white has quit [Read error: Connection reset by peer]
Zebroid has quit [Remote host closed the connection]
ryanleesipes has joined #ruby
cpruitt has quit [Quit: cpruitt]
InhalingPixels has joined #ruby
<sonOfRa>
That looks far more readable indeed
<sonOfRa>
Thank you!
cpruitt has joined #ruby
<TieSoul>
How would I pick the first object out of an array that has a certain value in one of its variables? All elements in the array are the same class and have a non-nil value in the variable I'm looking for.
bradleyprice has quit [Ping timeout: 272 seconds]
RandyT has quit [Ping timeout: 240 seconds]
<DefV>
TieSoul: detect
cpruitt has quit [Client Quit]
matchaw has joined #ruby
agent_white has joined #ruby
<jhass>
or its quicker to type alias find
agent_white has quit [Read error: Connection reset by peer]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowstormer is now known as ^42
agent_white has joined #ruby
fold has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
jxf_ has quit [Read error: No route to host]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fold has joined #ruby
x1337807_ has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
x1337807_ has quit [Max SendQ exceeded]
obscured has quit [Read error: Connection reset by peer]
tlarevo_ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
x1337807_ has joined #ruby
sk87 has joined #ruby
x1337807_ has quit [Max SendQ exceeded]
tlarevo has joined #ruby
qmfnp has joined #ruby
x1337807_ has joined #ruby
nathankleyn has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
divi has joined #ruby
revoohc has joined #ruby
ryanleesipes has quit [Ping timeout: 240 seconds]
Cheezebox has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
x1337807x has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
chth0n has quit [Quit: Ex-Chat]
freerobby has joined #ruby
L3mce has quit [Ping timeout: 244 seconds]
kaspertidemann has quit []
kaspertidemann has joined #ruby
TC` has joined #ruby
noop has quit [Quit: Leaving]
tlarevo has quit [Ping timeout: 245 seconds]
Cheezebox has joined #ruby
Neomex has joined #ruby
tylersmith has quit [Remote host closed the connection]
Takle has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
toastynerd has joined #ruby
cy has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
maximski has joined #ruby
W0rmDr1nk has joined #ruby
tylerkern has quit [Ping timeout: 260 seconds]
dawkirst has joined #ruby
L3mce has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
treehug88 has joined #ruby
tylerkern has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ivko has joined #ruby
CaptainJet has joined #ruby
TorpedoSkyline has joined #ruby
<cschneid>
For anybody who uses ruby-install - is there an uninstall command?
bal has quit [Quit: bal]
jobewan has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
<ivko>
Hi all. I've got a segfault on 2.1.2 with rspec when wrote some strange code, so, Ruby told me to file a bugreport. So, I've got a huge pile of questions: Should I do so? And if I do, is segfault a possible security issue? So, should I mail it to security@, or they have more important things to do? =)
TorpedoSkyline has quit [Client Quit]
TorpedoSkyline has joined #ruby
jdguzman has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
nathankleyn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has joined #ruby
sdwrage has joined #ruby
paulfm_ has joined #ruby
cocotton has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 260 seconds]
cocotton has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
just file the bug report
<pontiki>
include the core dump
thomasxie has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby
<ivko>
ok, thank you
nathankleyn has joined #ruby
dawkirst has quit [Remote host closed the connection]
paulfm has quit [Ping timeout: 260 seconds]
doev has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
starkhallo has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
qmfnp has quit [Ping timeout: 255 seconds]
shachar has quit [Ping timeout: 260 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
jprovazn has quit [Quit: Leaving]
W0rmDr1nk has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
davedev2_ has joined #ruby
Rosa has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
livingstn has joined #ruby
treehug88 has joined #ruby
qmfnp has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
pocketprotector has quit [Quit: Leaving...]
ryanleesipes has joined #ruby
tylersmith has joined #ruby
Morkel has joined #ruby
RandyT has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
<dorei>
let's say I want to return an array from a method but I want that array to have my custom #<< method. Should I create a new class that would encapsulate Array, define my custom #<< method there and return objects of that class or should I add on the fly that method to the array (using metaprogramming) ?
terrellt has joined #ruby
mikepack has quit [Remote host closed the connection]
davedev2_ has quit []
mikepack has joined #ruby
agent_white has joined #ruby
davedev24_ has joined #ruby
yfeldblum has joined #ruby
<speakingcode>
dorei: either approach would work i believe.
agent_white has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
<apeiros>
dorei: proper class IMO
<jhass>
dorei: use a class
<apeiros>
you're breaking expectations by redefining some methods
gauke has quit [Quit: gauke]
RandyT has joined #ruby
<dorei>
magic always breaks expectations :)
arya_ has quit [Ping timeout: 240 seconds]
<speakingcode>
the latter (dynamically adding the method) might cause unexpected issues tho by changing an already used methods meaning
<dorei>
anyway, i'll use a class :)
<speakingcode>
^^ what they said
<apeiros>
then you're using bad magic
philcrissman has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
einarj has quit [Remote host closed the connection]
mikepack has joined #ruby
toastynerd has quit [Remote host closed the connection]
tylerkern has quit [Read error: Connection reset by peer]
zorak has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Remote host closed the connection]
centrx has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
agent_white has joined #ruby
tylerkern has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Guest68555 has quit [Quit: Leaving]
RTG` has joined #ruby
philcrissman has quit [Ping timeout: 250 seconds]
zorak has joined #ruby
zeroNones has joined #ruby
matchaw has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<havenwood>
would you like your internment walked through a warm room or burnt to a crisp?
<pipework>
havenwood: what are
<pipework>
havenwood: what are "... dynamic pinned Symbol, dynamic Symbol ..." ?
beemo has quit [Remote host closed the connection]
<Hanmac>
havenwood: Strings could also be different that 2 String objects with different object ids have the same internal String pointer though sharing
<havenwood>
pipework: dynamic symbols are the new GCable Ruby 2.2 ones
<pipework>
havenwood: oh neat.
<pipework>
havenwood: What's a dynamic pinned symbol then?
<havenwood>
pipework: they don't get collected
agent_white has joined #ruby
<pipework>
havenwood: How is that different from a symol?
<havenwood>
pipework: kinda like converting a dynamic to a static type
<pipework>
symbol*
agent_white has quit [Read error: Connection reset by peer]
<havenwood>
converting a 2.2 sym to an oldschool one
<TC`>
CuriousMind, good job! Ruby style guide lets you learn to write easy readable code.
agent_white has joined #ruby
<apeiros>
CuriousMind: does slowText really work for you? I don't see synch or flush
<CuriousMind>
apeiros: Thank you, that took be maybe two months or something. I don't remember but I took my laptop every with me, git a lot of git add, git commits.
qmfnp has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 240 seconds]
<CuriousMind>
I don't know a lot of methods, no one taught me that there are methods that do this or that so I created my own.
<apeiros>
I think the style guide suggestions is a good one
<CuriousMind>
TC`: Ah ok, the guide should teach me convention! THANKS!!!!!
<CuriousMind>
apeiros: Thank you!!!!
<apeiros>
I'd also try to migrate towards classes
fschuindt has quit [Quit: Page closed]
<shevy>
CuriousMind you seem to intend the code when you don't need to intend
cocotton_ has quit [Remote host closed the connection]
<CuriousMind>
shevy: What does that mean? Intend?
<shevy>
CuriousMind also on Arrays, << is simpler than .push()
mijicd has joined #ruby
yetanotherdave has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 240 seconds]
<shevy>
yeah I meant indent
<CuriousMind>
I am going to write down everyone's ideas in a different file, keep em coming!!!
mijicd has quit [Client Quit]
<shevy>
CuriousMind if you look at line 98 you have no indent there
maximski has quit []
<shevy>
CuriousMind but at line 9 you have a big indent - both should be on the same level though
<Mon_Ouie>
I don't know what the KEY_BACKSPACE is supposed to be but that seems normal
<apeiros>
pipework: there are no lambdas involved. re why no case/when without case expression: style.
<pipework>
apeiros: ah preference
mark_locklear has joined #ruby
terrell_t has joined #ruby
ntrophimov was kicked from #ruby by apeiros [so somebody even tells you to tell in all channels that you are cross-posting - I haven't seen you doing that…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
pipework: yes
jheg has joined #ruby
Lewix has quit [Remote host closed the connection]
jprovazn has joined #ruby
ghr has joined #ruby
Lewix has joined #ruby
ntrophimov has joined #ruby
<ntrophimov>
Guys, I'm NOT cross-posting. That happens only with ONE message
<ntrophimov>
And I'm sorry about that
terrellt has quit [Ping timeout: 240 seconds]
<shevy>
an unbeliever!
agent_white has joined #ruby
<shevy>
kick him again!!!
agent_white has quit [Read error: Connection reset by peer]
m8 has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
<apeiros>
ntrophimov: yes, you did cross-post.
michaeldeol has joined #ruby
workmad3 has quit [Quit: Reconnecting]
<apeiros>
ntrophimov: and you got told to say so in all channels. you did not.
workmad3 has joined #ruby
<dorei>
when I forward a method to an ivar, should I use forwardable and def_delegators?
<ntrophimov>
With one message only
Lewix has quit [Ping timeout: 246 seconds]
<apeiros>
and "one" makes it magically not a crosspost?
<apeiros>
sorry lad, that's not how it works.
<workmad3>
dorei: depends on how much you're doing IMO
<dorei>
a couple of methods max
<workmad3>
dorei: if you're only forwarding one or two methods, pulling in the delegator is probably not worth the effort
ghr has quit [Ping timeout: 264 seconds]
isomorphismes is now known as humility
<ntrophimov>
As you wish. You may kick me again
<workmad3>
dorei: so I'd just hand-roll the methods
* workmad3
kicks ntrophimov
<workmad3>
not gonna miss an opportunity like that :P
SilkFox_ has joined #ruby
<apeiros>
ntrophimov: if you do it again, I will.
<shevy>
ntrophimov please do it again
thousandwich has joined #ruby
thams has quit [Quit: thams]
amargherio has joined #ruby
thams has joined #ruby
humility is now known as isomorphismes
agent_white has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
kedric has joined #ruby
spyderman4g63 has joined #ruby
<ntrophimov>
So, what about code review? Is everyone busy?
britneywright has joined #ruby
<shevy>
that is not very convenient to browse
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CuriousMind>
apeiros: Why you say it like this, "~15 lines" o-o
<jhass>
also cursed.. er curses code
SilkFox_ has quit [Ping timeout: 240 seconds]
<CuriousMind>
I am looking at everyone's suggestions, I am analyzing everyone's information
Morkel has joined #ruby
<ntrophimov>
This is my first Ruby project, so I need to hear the suggestions to make it better
<CuriousMind>
By the way people, I use Ruby 1.9.3
<jhass>
ntrophimov: let's talk about architecture. How do you guarantee anonymity?
<shevy>
cool
<CuriousMind>
Thank you TC` apeiros shevy for the advice
<shevy>
first ruby project using curses
<ericwood>
stay away from curses
<shevy>
:D
<pipework>
curses is hard
agent_white has joined #ruby
<ericwood>
there was a CLI GUI lib posted the other day that works more like a web framework
Takle has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<pipework>
It's not remotely anonymous, as jhass pointed out. Also, logging doesn't exactly instill confidence.
craigp has joined #ruby
<jhass>
ntrophimov: so maybe strike that anonymous_ from the name for now
luksaur has joined #ruby
<ericwood>
logging is responsible for a lot of deforrestation
<ericwood>
save the trees :'(
chrishou_ has joined #ruby
<pipework>
Neat curses stuff though.
<jhass>
ntrophimov: code wise all your $globals want to be CONSTANTS
<jhass>
ntrophimov: don't do open rescue's, always list the exceptions you expect and want to handle
<jhass>
I see no reason for your wrapper around at_exit
benlieb has joined #ruby
agent_white has joined #ruby
Lightsword has quit [Quit: Lightsword]
agent_white has quit [Read error: Connection reset by peer]
<ntrophimov>
pipework: Where can I find the better code for this?
aspires has quit []
chrishou_ has quit [Client Quit]
<pipework>
ntrophimov: minitest has some
<jhass>
I prefer to break out of loops instead of using throw/catch
InhalingPixels has joined #ruby
ddv has joined #ruby
chrishou_ has joined #ruby
<ntrophimov>
jhass: Is there constants in Ruby unlike Python? Ok, I'll google it
Takle has quit [Remote host closed the connection]
<ntrophimov>
jhass: Why? Because I can rescue some system exceptions like Ctrl-C?
<jhass>
THIS_IS_A_CONSTANT = value
<jhass>
simple as that
benzrf is now known as benzrf|offline
<ericwood>
if it's all caps it's a constant
<CuriousMind>
Hello everyone, I have a quesition
<jhass>
ntrophimov: because you'll notice if you encounter exceptions you might not expect and need to handle differently
<ericwood>
CuriousMind: do tell
<jhass>
ericwood: ntrophimov actually if it starts with caps is sufficient, but we use CamlCase only for module and class names
<ntrophimov>
jhass: Ah, RubyMIne tells me that it's non-Ruby way to name variables like this
<CuriousMind>
ericwood: Is there a web application that allows me and another person to edit code in the editor instantaneously?
chrishough has quit [Quit: chrishough]
<ericwood>
CuriousMind: there's things like typewith.me
<CuriousMind>
ericwood: As I type code in the console, the other person can see.
chrishou_ has quit [Client Quit]
<CuriousMind>
ericwood: It's an editor that does any programming language?
<ericwood>
CuriousMind: probably best to address the whole channel and not just me
chrishough has joined #ruby
<CuriousMind>
Ok
<ericwood>
I'd google "collaborative code editors"
<CuriousMind>
HELLO EVERYONE.
<CuriousMind>
Ok.
<ntrophimov>
Ok, is there smth else?
<ntrophimov>
Thanks a lot btw :)
<pipework>
CuriousMind: I use screenhero so that I can share a display with someone and we each get our own mousen on the screen.
agent_white has joined #ruby
craigbowen3 has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
<jhass>
ntrophimov: I'd probably try to have short methods, more classes and decouple the network stuff from the curses stuff, but that's inherently structural
havenwood has joined #ruby
<CuriousMind>
pipework: I used screenhero before.
<CuriousMind>
pipework: Thank you for the suggestion.
<ntrophimov>
And why are u guys so wonder that I use curses for the first Ruby project? What's wrong with it?
<jhass>
ntrophimov: if not / if ! -> unless
<ericwood>
ntrophimov: curses has a really really archaic API and is confusing as hell
<jhass>
curses API is just ugly ;P
<ntrophimov>
jhass: Ok, I'll think about that too
<pipework>
ntrophimov: Nothing, it's just a pain to do well because you either use the translated API or a crappy wrapper.
Sauvin has quit [Remote host closed the connection]
SilkFox has joined #ruby
<ericwood>
a year ago I tried writing pong in curses and it caused me physical pain :|
<ntrophimov>
Can I ask one more question about curses, guys?
<ericwood>
I'll allow it
nobitanobi has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ntrophimov>
How can I add the Unicode support in the script that uses curses in Windows? It seems that the standard curses module can't do it anyway...
<jhass>
ntrophimov: sometimes you use casecmp and sometimes .downcase, be at least consistent
<ntrophimov>
jhass: Where?
mikepack_ has joined #ruby
<jhass>
the command parsing in the server
agent_white has joined #ruby
<pipework>
The hardest part of curses is writing tests for it, imo.
Cheezebox has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
<apeiros>
but probably far less performant than something like a csv dump+load
<MarcWeber>
Its not that trivial if you want to keep foreign key constraints .. then loading/dumping of data depends on order to be valid. I'd be fine with adding constraints afterwards ..
Guest45773 is now known as magic
magic has quit [Changing host]
magic has joined #ruby
agent_white has joined #ruby
<apeiros>
MarcWeber: only if you're so silly as not to deactivate the constraints during load
agent_white has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
<apeiros>
you generally want to drop indices and constraints while loading large sets of data
<MarcWeber>
Which is why I want to use an existing library so that I have to code this only once.
ptrrr has joined #ruby
<MarcWeber>
Or write that librayr.
dawkirst has joined #ruby
icole has quit [Remote host closed the connection]
cy has quit [Ping timeout: 240 seconds]
claymore has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
doev has joined #ruby
Xeago has quit [Remote host closed the connection]
InhalingPixels has quit []
<dopie>
user.name
<dopie>
you are calling the name method on the user which is the receiver
<dopie>
is that correct?
mikepack has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
<apeiros>
dopie: yes
mikepack has joined #ruby
<apeiros>
dopie: if you want to be pedantic, then the object referenced by user (or to which user evaluates, in case of it being a method) is the receiver
Photism has quit [Quit: Leaving]
sdouglas has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
startupality has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 244 seconds]
tenseiten is now known as seitensei
icole has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
TC` has joined #ruby
spyderma_ has joined #ruby
tylerker_ has joined #ruby
<dopie>
user.name = "Joe"
ntrophimov has left #ruby [#ruby]
<dopie>
#the object object user is calling the name setter instance method and changing the value of name to "Joe"
zB0hs has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
AlexBlom has quit [Quit: This computer has gone to sleep]
spyderman4g63 has quit [Ping timeout: 260 seconds]
toastynerd has quit [Remote host closed the connection]
Akagi201 has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
Ankhers has quit [Ping timeout: 264 seconds]
cocotton_ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
AndChat| has joined #ruby
cocotton has joined #ruby
<shevy>
two times object?
lkba has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
Unknown has joined #ruby
bluenemo has quit [Ping timeout: 245 seconds]
CoffeeDrivenC0de has joined #ruby
<dopie>
errr
<CoffeeDrivenC0de>
Anyone here that can answer a question on merging git branches?
agent_white has joined #ruby
<dopie>
sorry
djcp has joined #ruby
<dopie>
typo
djcp has left #ruby [#ruby]
agent_white has quit [Read error: Connection reset by peer]
<jhass>
CoffeeDrivenC0de: #git doesn't answer?
jfutbol has joined #ruby
CoffeeDrivenC0de has left #ruby [#ruby]
doodlehaus has quit []
liang12 has joined #ruby
liang12 has left #ruby [#ruby]
djcp has joined #ruby
<Unknown>
hello
Cicloid is now known as aCicloid
Akagi201 has quit [Ping timeout: 250 seconds]
benzrf is now known as benzrf|offline
Macaveli has joined #ruby
toastynerd has joined #ruby
Unknown has quit [Client Quit]
sparrovv has joined #ruby
sdwrage has joined #ruby
sinkensabe has joined #ruby
baroquebobcat has joined #ruby
jprovazn has quit [Quit: Odcházím]
AlexBlom has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
AlexBlom has quit [Remote host closed the connection]
bwr has quit [Ping timeout: 255 seconds]
djcp has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
kireevco has joined #ruby
yubrew has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
kireevco has left #ruby [#ruby]
jcrubino has joined #ruby
<jcrubino>
I am trying out barebones sinatra on ec2 but cannot get an external connection to the listening port 4567
<jcrubino>
ubuntu 14, ufw is dissabled, and all tcp ports on ec2 are open
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jcrubino>
anybody with some hints
<dorei>
jcrubino: do you have shell access there?
<jcrubino>
yes.. I wrote the helloWorld in vim on the instance
timonv_ has joined #ruby
<dorei>
try a netstat -ntlp
<dorei>
to see what listens on what ip/port
kaspertidemann has quit []
Macaveli has quit [Ping timeout: 244 seconds]
<jcrubino>
it appears 4567 is being used by ruby
Hobogrammer has joined #ruby
aspires has joined #ruby
icole has quit [Remote host closed the connection]
<jcrubino>
in golang if I set the port as "localhost:4567" there is no external access
<eam>
"cannot get a connection" => what is the specific tcp error?
<jcrubino>
could it be something similar
moritzs has quit [Ping timeout: 240 seconds]
dbasch has joined #ruby
<jcrubino>
?
<eam>
jcrubino: yes the interface matters
<eam>
you need to check the ip and the port
<jcrubino>
eam: chrome says a webpage is not available
agent_white has joined #ruby
LangeOortjes has quit []
agent_white has quit [Read error: Connection reset by peer]
moritzs has joined #ruby
<eam>
don't use chrome, what does netcat or telnet say?
mark_locklear has quit [Ping timeout: 240 seconds]
<eam>
shevy: I heard you're working on a ruby linux distro
nerium has quit [Quit: nerium]
<dopie>
3. What's the difference between class variables and instance variables?
<noshi>
dopie: an @
<noshi>
ba dum psh.
<dopie>
hol don
<dopie>
Class variables are scoped to the class level and are identified with @@ and a instance variable is identified with @ and is not scoped to the class level and is used to pass variables through methods
<apeiros>
instance variables are scoped to a single object
shredding has joined #ruby
dawkirst has quit [Remote host closed the connection]
<dopie>
single object
<dopie>
ok
<dopie>
:)
<apeiros>
class variables are scoped to a class/module, all its instances, all its descendants and all its descendants' instances
<shevy>
eam not really, I only use ruby scripts to compile stuff and so on
<noshi>
dopie: there are also class instance variables, mind
postmodern has joined #ruby
Dreamer3 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noshi>
dopie: which are the same as instance variables, only bound to the class object
yfeldblum has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
<jcrubino>
got it
nszceta has quit []
lw has joined #ruby
renderfu_ has joined #ruby
georgelappies has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
Butthurthead has joined #ruby
icole has joined #ruby
dbasch has quit [Quit: dbasch]
sepp2k has joined #ruby
decoponio has quit [Quit: Leaving...]
tylerker_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tylerker_ has joined #ruby
Brolen has quit []
amargherio has quit [Remote host closed the connection]
failshell has quit []
moritzs has quit [Ping timeout: 245 seconds]
krisquigley has quit [Remote host closed the connection]
ghostmoth has joined #ruby
kireevco has joined #ruby
aCicloid is now known as Cicloid
chrishough has quit [Ping timeout: 244 seconds]
_sillymarkets has quit [Ping timeout: 246 seconds]
icole has quit [Ping timeout: 244 seconds]
Cicloid is now known as aCicloid
amargherio has joined #ruby
ghr has joined #ruby
agent_white has joined #ruby
postmodern has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
aCicloid is now known as Cicloid
bearish has quit [Remote host closed the connection]
weeb1e has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
bearish has joined #ruby
weeb1e_ has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
Pulpie has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Pulpie>
does anyone know a super easy way to clone an entire production environment and put it on my laptop
chrishough has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
<Pulpie>
or does that sound completely insane
dawkirst has joined #ruby
agent_white has joined #ruby
<apeiros>
Pulpie: go to the server room, pull the server out, get a diesel generator
<Pulpie>
like I thought it did
<apeiros>
very mobile
kaspertidemann has joined #ruby
<Pulpie>
apeiros: ahh I said clone :)
<apeiros>
pfff
<Pulpie>
my boss comes over "yeah odd, the server is missing?" big generator running behind me "no clue where it went but I got my dev environment setup finally."
mengu has joined #ruby
sdwrage has joined #ruby
<jhass>
Pulpie: pull out the model next to it and clone the DD. Then what apeiros said
sinkensabe has quit [Remote host closed the connection]
<jhass>
*hdd
<apeiros>
:D
yottanami has joined #ruby
nanoyak has joined #ruby
asdasdasdasss has joined #ruby
tylersmith has joined #ruby
<Pulpie>
jhass: the server also has network settings that I need
glebm has joined #ruby
<jhass>
get some long cables for the same network environment though
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
SouL has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
<Pulpie>
but my boss is just like "why not just deploy your code to the production server under a test branch to see if it works?"
<Pulpie>
Which is dumb because at that point it's like, k my code is on production servers, pulling production data, pushing into production databases and sending production emails.
<jhass>
yottanami: hash["advertise"]["tag"]
tylerkern has quit []
<Pulpie>
but instead of the script running in /github/prod/ its in /github/test
Lewix has quit [Remote host closed the connection]
<Pulpie>
YUP TOTALLY NOT TESTING IN PRODUCTION HERE!
jarto has joined #ruby
<Pulpie>
we didn't put the code into master
<Pulpie>
its not production yet
Lewix has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
djcp has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
Lewix has joined #ruby
phi-sd has joined #ruby
kreisys has joined #ruby
<yottanami>
jhass: I can not use has[:advertise] ?
kreisys has quit [Max SendQ exceeded]
cocotton has quit [Ping timeout: 244 seconds]
<jhass>
yottanami: no, that's a different key
RyanV has joined #ruby
<jhass>
yottanami: :advertise and "advertise" don't even have the same type
<phi-sd>
I have ruby 1.8.6 and in irb i can do : require ‘net/ssh’ , but I cant do that in a script. It says `require': no such file to load -- net/ssh (LoadError)
<yottanami>
tnx
<Pulpie>
phi-sd: gem install net-ssh
jarto has quit [Client Quit]
<phi-sd>
Pulpie: I’ve already done that. No errors
<jhass>
phi-sd: ruby 1.8.6 completely out of support by anybody, we're at 2.1.2 now
<Pulpie>
phi-sd: your environment your gem is installing into might differ from what you are running
<Pulpie>
phi-sd: are you on windows?
<jhass>
phi-sd: ruby 1.8.7 and 1.9.2 are out of support too by now
<apeiros>
jhass: rails' HWIA uses the same inspect as a normal hash, though
<phi-sd>
i am on osx
<phi-sd>
10.5
<Pulpie>
oh thats a pain good luck
<Pulpie>
might be easier to use get virtual box and get some linux on there
<phi-sd>
It’s a build server, and I don’t want to change the environment too much
<Pulpie>
ruby on windows sucks, ruby on OSX. going to be a huge issue.
r0bby_ has joined #ruby
postmodern has joined #ruby
<Pulpie>
Ruby really needs a Linux environment to shine
Cheezebox has joined #ruby
Cicloid is now known as aCicloid
robbyoconnor has quit [Read error: No route to host]
<apeiros>
Pulpie: huh?
<banister>
Pulpie ruby works fine on osx, and i think osx ruby developers are on osx
<apeiros>
I'm using ruby on both, osx and linux, and it's quite smooth on both
<Pulpie>
ahh from my experience thats not been the case
<apeiros>
phi-sd: there are plenty of options to get newer rubies on osx. use one of rvm, ruby-installer, rbenv or chruby
<apeiros>
Pulpie: 1 line to install rvm. 1 line to install newest ruby. done.
<Pulpie>
I'd say if your using rvm on a server, your going to have a bad time
<apeiros>
we're doing just that for >5y now. no hickups at all so far.
<Pulpie>
rvm with cron and things like that becomes a real pain
<apeiros>
Pulpie: lulwat?
<apeiros>
make a wrapper. the tool comes with rvm.
<apeiros>
simpler than making pie.
<Pulpie>
or just install ruby according to your OS.
jcrubino has left #ruby ["Leaving"]
<Pulpie>
which places it in the correct place with the right path.
aCicloid is now known as Cicloid
beemo has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
tylersmith has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
RyanV has joined #ruby
beemo has quit [Ping timeout: 264 seconds]
tylerker_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
<phi-sd>
my bash is not new enough for rvm :(
_lexjm has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Ping timeout: 260 seconds]
adac has quit [Ping timeout: 264 seconds]
virtualize has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
virtualize has joined #ruby
<phi-sd>
Should i mangle my path to make net/ssh available?
andrewjanssen has quit [Quit: Leaving...]
bradleyp_ has joined #ruby
<apeiros>
o0
<apeiros>
no. install a modern ruby. install the net/ssh gem and it should "just work".
Cicloid is now known as aCicloid
aCicloid is now known as Cicloid
<jhass>
I'd consider to accidentally the machine
shredding has quit [Quit: shredding]
doodlehaus has joined #ruby
kreisys has joined #ruby
comma8 has joined #ruby
Cheezebox has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
michaeldeol has joined #ruby
bearish has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
kreisys has quit [Read error: Connection reset by peer]
osvico has joined #ruby
bradleyprice has quit [Ping timeout: 244 seconds]
the8thbit|work has joined #ruby
theo_ has joined #ruby
poulet_a has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
PsionTheory has quit [Remote host closed the connection]
thams has quit [Quit: thams]
Jackneill has quit [Read error: Connection reset by peer]
yottanami has quit [Ping timeout: 272 seconds]
cy has joined #ruby
thams has joined #ruby
Xeago has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
agent_white has joined #ruby
thams has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
xcv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
claw__ has joined #ruby
xcv_ has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 245 seconds]
hiall has joined #ruby
ht has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
jfutbol has quit [Remote host closed the connection]
choke has quit [Remote host closed the connection]
fabrice31 has joined #ruby
benzrf|offline is now known as benzrf
Beoran_ has quit [Ping timeout: 240 seconds]
philcrissman has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
krisquigley has joined #ruby
jherbst has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 250 seconds]
tylerkern has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 250 seconds]
jrhorn424 is now known as zz_jrhorn424
tylerkern has joined #ruby
djcp has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
DEA7TH has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
echevemaster has joined #ruby
choke has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
thams has joined #ruby
tylerkern has joined #ruby
paulfm_ has quit []
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
CorpusCallosum has joined #ruby
bmurt has quit []
nerium has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Cheezebox has joined #ruby
Squarepy has joined #ruby
Beoran_ has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
danshultz has quit [Ping timeout: 272 seconds]
brothmars has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
ghr has joined #ruby
sdouglas has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
dyreshark_ has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
<SloggerKhan>
when I sudo ruby related things all disapear from my path
gwb3 has quit [Ping timeout: 260 seconds]
<apeiros>
your sudo probably has different env
andrewjanssen has joined #ruby
gwb3 has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
agent_white has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
sdouglas_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<SloggerKhan>
Is there a guide to get it working?
dyreshark has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
ghr has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kireevco has quit [Remote host closed the connection]
aspires has quit []
bradleyp_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
mr-foobar has quit [Ping timeout: 245 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<amh345>
evening. does anyone have any recommendations for query json? I'm using JsonPath right now.. but it's less than ideal.
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<amh345>
basically I'm using redid to store a large (json) configuration file. and i really would like to be able to query this redid db.
<amh345>
i've been using JsonPath for the last day- but it's been a nightmare, overall.
gregf has quit [Quit: WeeChat 0.4.3]
ptrrr has quit [Quit: ptrrr]
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
asdasdasdasss has joined #ruby
bearish has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
benlieb has quit [Quit: benlieb]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Remote host closed the connection]
asdasdasdasss has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
nobitanobi has joined #ruby
bearish has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
InhalingPixels has quit [Ping timeout: 260 seconds]
chrisja has quit [Quit: leaving]
mengu has quit []
cdime has quit [Remote host closed the connection]
thams has joined #ruby
icebourg has quit []
bradleyp_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
Rollabunna has quit [Quit: Leaving...]
bradleyprice has joined #ruby
agent_white has joined #ruby
SilkFox has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
Cheezebox has quit [Remote host closed the connection]
aspires has quit []
aspires has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
thams has joined #ruby
aspires has quit [Client Quit]
SilkFox_ has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
krz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyready has joined #ruby
Darkchaos2 has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
gkagan has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Ping timeout: 250 seconds]
mrsolo has joined #ruby
aspires has quit []
sambao21 has quit [Ping timeout: 264 seconds]
gkagan has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
aspires has joined #ruby
brothmars has joined #ruby
axsuul has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
sonofflynn has joined #ruby
aspires has quit [Client Quit]
ferr has quit [Quit: Leaving]
<sonofflynn>
quick question. I see in a gemfile you can specify the ruby version. Can you specify "at least" a ruby version? Like it needs 1.9.3 or higher?
aspires has joined #ruby
agent_white has joined #ruby
spider-mario has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]