<shevy>
it's bad but at least he added some comments, and I think he can not be a total noob because of already using some classes at least
uglybandersnatch has joined #ruby
<Radar>
Do spaces cost or something
<shevy>
class variables tend to steer semi-newcomers ... if defined? @@networks; return @@networks ... weird code
<Aviio>
Some of this was actually re-written by someone at the university
blackgoat has quit [Quit: WeeChat 1.4]
<Aviio>
one of the lecturers tried to make it more... readable.
mdw has quit [Quit: Sleeping Zzzzz]
<shevy>
Aviio well you are brave, I even hate rewriting my own old awful code, I could not get to fix someone else's awful code :)
darkf has joined #ruby
<shevy>
aha, more spaghetti patches!
firstdayonthejob has quit [Ping timeout: 276 seconds]
ramfjord_ has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
<Aviio>
shevy: im supposed to be adding vulnerable website generation to this process for my final year project, so im kinda saving myself headaches further down the line
symm- has joined #ruby
sgambino has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<Aviio>
its a paid gig too, which is always a bonus
Matthews_ has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 250 seconds]
gsilvapt has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
gsilvapt has joined #ruby
bronson has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 248 seconds]
MatthewsFace has joined #ruby
symm-_ has joined #ruby
symm-_ has quit [Client Quit]
<Aviio>
Kinda annoying that I cant work on a single area of the application without everything else breaking
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
ReK2 has quit [Read error: No route to host]
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
elifoster has quit [Ping timeout: 252 seconds]
recycle has quit [Ping timeout: 240 seconds]
mattwildig has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 240 seconds]
Papierkorb has quit [Ping timeout: 244 seconds]
Papierkorb has joined #ruby
Kang0 has joined #ruby
baweaver has joined #ruby
Rickmasta has joined #ruby
MatthewsFace has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lemur has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
steffes has quit [Remote host closed the connection]
chipotle has joined #ruby
kies^ has joined #ruby
safe has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
Guest34101 has quit [Ping timeout: 255 seconds]
dEPy has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
aryaching has joined #ruby
blackmes1 has joined #ruby
goodcodeguy has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Remote host closed the connection]
ta has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
eregi has joined #ruby
MatthewsFace has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
ta has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 240 seconds]
Azulinho has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
bronson has joined #ruby
yfeldblum has joined #ruby
ptierno has joined #ruby
ptierno has joined #ruby
ptierno has left #ruby [#ruby]
ptierno has joined #ruby
ptierno has quit [Changing host]
ptierno has joined #ruby
ptierno has quit [Client Quit]
idefine has joined #ruby
Guest75590 has joined #ruby
Guest75590 has quit [Client Quit]
ptierno_ has joined #ruby
ptierno_ has quit [Client Quit]
sanguisdex has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
DmitryBochkarev has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
zacstewart has joined #ruby
Jeremy1023 has joined #ruby
Azulinho has joined #ruby
chipotle has quit [Quit: cheerio]
Guest85 has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
TheMoonMaster has quit [Quit: Later!]
pawnbox has joined #ruby
kfpratt has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
Rodya_ has quit [Remote host closed the connection]
duckpuppy has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
zacstewa1t has joined #ruby
zacstewart has quit []
zacstewa1t is now known as zacstewart
zenergi has quit [Ping timeout: 248 seconds]
krzkrzkrz has joined #ruby
steffkes has quit [Ping timeout: 276 seconds]
bronson has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 248 seconds]
MatthewsFace has joined #ruby
cpup has joined #ruby
zenergi has joined #ruby
Rodya_ has joined #ruby
TheMoonMaster has joined #ruby
ptierno has joined #ruby
steffes has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
_djbkd has quit [Remote host closed the connection]
chipotle has joined #ruby
chipotle has quit [Client Quit]
aryaching has quit [Ping timeout: 255 seconds]
adgtl has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
Kryptonical has quit [Remote host closed the connection]
aryaching has joined #ruby
Kryptonical has joined #ruby
eregi has joined #ruby
rodolfowtf has quit [Quit: No Ping reply in 180 seconds.]
rodolfowtf has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jgpawletko has quit [Quit: jgpawletko]
bb010g has joined #ruby
devbug has joined #ruby
fedexo has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
jgpawletko has joined #ruby
quakephil has quit [Ping timeout: 244 seconds]
Guest85 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
ramfjord has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
rattatmatt has quit []
ensyde_ has joined #ruby
aryaching has quit [Remote host closed the connection]
hxegon has joined #ruby
blackmes1 has joined #ruby
lpvb has quit [Quit: WeeChat 1.4]
lpvb has joined #ruby
Ebok has quit [Quit: Leaving]
_djbkd has joined #ruby
jonee has joined #ruby
aryaching has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
ta has joined #ruby
_djbkd has quit [Ping timeout: 244 seconds]
nolsen is now known as GabeN
blackmes1 has quit [Ping timeout: 240 seconds]
adgtl has quit [Read error: No route to host]
The_Phoenix has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
NeverTired has quit [Quit: Connection closed for inactivity]
uglybandersnatch has joined #ruby
Jeremy1023 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
auzty has joined #ruby
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby
DmitryBochkarev has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
DmitryBochkarev has quit [Client Quit]
chipotle has quit [Quit: cheerio]
DmitryBochkarev has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
zast has joined #ruby
gix has joined #ruby
bronson has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
steffkes has quit [Ping timeout: 255 seconds]
herminiotorres has quit [Ping timeout: 255 seconds]
perturbation has joined #ruby
duckpuppy has joined #ruby
skweek has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
baweaver has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
yfeldblum has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
uglybandersnatc- has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
smolny has left #ruby [#ruby]
uglybandersnatch has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
mattwildig has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
fedexo has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
elifoster has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 276 seconds]
mattwildig has quit [Ping timeout: 240 seconds]
GabeN is now known as nolsen
william3 has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
devbug_ has joined #ruby
chouhou__ has joined #ruby
rahult has quit [Ping timeout: 244 seconds]
kirillzh has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
rbennacer has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
william3 has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
spuk has quit [Ping timeout: 248 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
MatthewsFace has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
<quazimodo>
I know we can do Struct.new "NameOfStruct" and we can do SomeStruct = Struct.new(:foo, :bar) but how do we do AnethrStruct = Struct.new without any of those arguments
pawnbox has joined #ruby
graphettion has quit [Remote host closed the connection]
blackmes1 has joined #ruby
chucky has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
devbug_ has quit [Read error: Connection reset by peer]
dEPy has quit [Quit: (null)]
uglybandersnatc- has quit [Ping timeout: 244 seconds]
blackmes1 has quit [Ping timeout: 255 seconds]
auzty has quit [Quit: Leaving]
ta has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
<baweaver>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
jonee has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
dubek has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
<Ox0dea>
quazimodo: You want... a Struct with no fields?
compyoyo123 has quit [Quit: Leaving]
pawnbox has joined #ruby
<quazimodo>
Ox0dea: Struct.new "DummyApp" do def call(*args) end
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quazimodo>
Ox0dea: i guess I overthought it, as usual )
<quazimodo>
:)
<Ox0dea>
quazimodo: I think I kinda see what you were going for, but it's just not the right abstraction.
<quazimodo>
I wanted a throw away dummy for testing
<quazimodo>
but it's ok, iall use a throw away class
<Ox0dea>
Classes are cheap.
<quazimodo>
now to figure out how to send files using rack middleware *yay*
<Ox0dea>
Er, how to simulate sending them, no?
neanderslob has quit [Ping timeout: 244 seconds]
neanderslob_ has joined #ruby
<Ox0dea>
Or did you not mean "testing" in the technical sense?
pawnbox has quit [Remote host closed the connection]
steffkes has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<baweaver>
RSpec has doubles for a reason
<baweaver>
use those
solocshaw1 has joined #ruby
<baweaver>
they even throw up fails if they get something you didn't stub correctly, which is great for finding leaky unit tests
The_Phoenix has quit [Quit: Leaving.]
uglybandersnatch has joined #ruby
RegulationD has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
yfeldblum has joined #ruby
bungoman has joined #ruby
steffkes has quit [Ping timeout: 252 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
duckpuppy has joined #ruby
eregi has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
bungoman has quit [Client Quit]
neanderslob_ has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
recycle has joined #ruby
devbug has joined #ruby
recycle has quit [Max SendQ exceeded]
recycle has joined #ruby
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
eregi has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 244 seconds]
Flakes has quit [Read error: Connection reset by peer]
kam270 has quit [Quit: Leaving]
uglybandersnatch has joined #ruby
chouhoulis has joined #ruby
Deck` has joined #ruby
chouhou__ has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
devbug has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rodolfowtf has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 276 seconds]
<quazimodo>
Ox0dea: sorry i had to get lasagna
<Ox0dea>
Scarcely cause for apology. :P
<quazimodo>
Ox0dea: i wanted the dumy to do things like expect(dummy_app).to receive(:call).with(env)
<quazimodo>
but now I'm moving to sending files from the middleware
perturbation has quit [Quit: Leaving]
chipotle has joined #ruby
dEPy has joined #ruby
mhoungbo has quit [Ping timeout: 250 seconds]
postmodern has quit [Read error: Connection timed out]
postmodern has joined #ruby
KnownSyntax has joined #ruby
<Ox0dea>
quazimodo: Actually moving them, or just stubbing that behavior?
Rodya_ has joined #ruby
<quazimodo>
Ox0dea: I'm not sure what you mean?
<quazimodo>
in the tests i wanted to stub behaviour. But now i have finished that and am trying to figure out how I can write a middleware that sends a file in production mode, but actually builds the file on each request in development mode. I'm stuck at sending something atm :)
<quazimodo>
reading Rack::File source
Chau has joined #ruby
JohnBat26 has joined #ruby
<Ox0dea>
Gotcha.
<Ox0dea>
I think you want Rack::Sendfile?
<quazimodo>
Ox0dea: that one will take any file you're trying to send and offload that to apache/nginx
<quazimodo>
so i may be able to use that afterwards to make rails do less work
<quazimodo>
maybe not, though
poguez_ has quit [Quit: Connection closed for inactivity]
<Ox0dea>
It's what Rails already uses?
MrDoctor has quit [Remote host closed the connection]
skade has joined #ruby
blackmes1 has joined #ruby
elifoster has quit [Ping timeout: 252 seconds]
zast has quit [Remote host closed the connection]
cajone has joined #ruby
dEPy has quit [Remote host closed the connection]
nchambers has quit [Remote host closed the connection]
dEPy has joined #ruby
<quazimodo>
it might be?
<quazimodo>
i think you have to ask it to do that
<quazimodo>
i vaguely recall
<Ox0dea>
Well, yeah?
<Ox0dea>
I hope your programs aren't doing things you (or somebody else) didn't ask them to.
tvw has joined #ruby
trosborn has joined #ruby
statelesscode has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
bricker has joined #ruby
Laaw has quit [Ping timeout: 250 seconds]
toretore has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 244 seconds]
<baweaver>
quazimodo: doubles
<baweaver>
use them
AlexRussia has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
<Ox0dea>
It feels like there's a lot of miscommunicating happening right meow.
htmldrum has quit [Ping timeout: 255 seconds]
stevemackinnon has quit [Remote host closed the connection]
cjbottaro has joined #ruby
elaptics`away is now known as elaptics
<quazimodo>
baweaver: i think I'd need to construct a double of a token rack middleware
steffes has quit []
<quazimodo>
do you think it's a good idea?
jonee has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
Don_John has quit [Read error: Connection reset by peer]
william3 has joined #ruby
bronson has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
djbkd_ has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Remote host closed the connection]
duckpuppy has joined #ruby
cyclonis has quit [Ping timeout: 248 seconds]
cjbottaro has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Prawnzy has joined #ruby
KensoDev has joined #ruby
bkxd has joined #ruby
mattwildig has joined #ruby
lessless has quit [Remote host closed the connection]
aganov has joined #ruby
joonty has joined #ruby
skade has joined #ruby
mattwildig has quit [Ping timeout: 276 seconds]
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
intrigueD has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 248 seconds]
Cohedrin has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
rbennacer has joined #ruby
lsmola has joined #ruby
slash_nick is now known as slash_me
steffkes has joined #ruby
steffkes has joined #ruby
stevemackinnon has joined #ruby
rbennacer has quit [Ping timeout: 255 seconds]
aufi has joined #ruby
astrobunny has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
LoneHerm_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Dimik has joined #ruby
steffkes has quit [Ping timeout: 244 seconds]
stevemackinnon has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
andikr has joined #ruby
_djbkd has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
UtkarshRay has quit [Remote host closed the connection]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
yardenbar has joined #ruby
ta_ has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
intrigueD has quit [Remote host closed the connection]
joonty has joined #ruby
blackmes1 has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
adgtl has quit [Remote host closed the connection]
slash_me is now known as slash_nick
ohaibbq has quit [Quit: Leaving...]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
ramfjord has joined #ruby
eregi has joined #ruby
william3 has joined #ruby
ldg has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
jas02 has joined #ruby
DoubleMalt has joined #ruby
amclain has quit [Quit: Leaving]
mhoungbo has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
htmldrum has joined #ruby
skweek has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 255 seconds]
william3 has quit [Ping timeout: 248 seconds]
steffkes has joined #ruby
vdamewood has joined #ruby
eregi has joined #ruby
UtkarshRay has joined #ruby
dlitvak has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
Xeago has joined #ruby
ur5us has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
ensyde_ has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
safe has quit [Quit: Leaving]
solars has joined #ruby
dlitvak has quit [Ping timeout: 244 seconds]
adgtl has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 248 seconds]
adgtl has joined #ruby
Jagan_ has joined #ruby
<Jagan_>
Hi All
<Jagan_>
Can you please help me, mobile web automation using cucumber calabash
<Jagan_>
using Ruby
skade has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
<Jagan_>
I want setup calabash for mobile web automation
adgtl has quit [Remote host closed the connection]
<Jagan_>
Can you please help me.
eregi has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: BRB]
<Jagan_>
Can you please help me anybody
Ishido has joined #ruby
eregi has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
<slash_nick>
Jagan_: i hadn't heard of calabash til now...
<slash_nick>
neat
Cohedrin has joined #ruby
<Garo_>
Jagan_: normal IRC culture is that you ask your question as well as possible and then you wait until somebody who knows notices your question.
uglybandersnatch has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 244 seconds]
steffkes has quit [Ping timeout: 250 seconds]
trosborn has quit [Quit: trosborn]
aryaching has quit [Ping timeout: 276 seconds]
steffkes has joined #ruby
steffkes has joined #ruby
trosborn has joined #ruby
yardenbar has quit [Ping timeout: 244 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
steffkes has quit [Ping timeout: 276 seconds]
djbkd_ has joined #ruby
jxs_ has joined #ruby
firstdayonthejob has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
anisha has joined #ruby
djbkd_ has quit [Client Quit]
dEPy has quit [Quit: (null)]
rbennacer has joined #ruby
trosborn has quit [Quit: trosborn]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
firstdayonthejob has joined #ruby
mondok has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
postmodern has quit [Read error: Connection timed out]
Xeago has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
skade has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
chipotle has joined #ruby
skade has joined #ruby
Kensei has joined #ruby
ptierno has quit [Ping timeout: 248 seconds]
joonty has quit [Ping timeout: 240 seconds]
ptierno has joined #ruby
Deck` has joined #ruby
ferr has joined #ruby
ta_ has joined #ruby
blackmes1 has joined #ruby
Chagel has joined #ruby
uglybandersnatch has joined #ruby
tomaz___ has joined #ruby
slackbotgz has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
mark1 has joined #ruby
<tomaz___>
hi guys... i am really a newbie in ruby... i am trying to setup a Sensu monitoring platform which is using embedded ruby. it all works if i do it by hand... if i install new gem with calling gem command with full path to embedded dir
<tomaz___>
and i get new files into the same directory where embedded gem is... and this is cool. i would like this to have it like this.
whiteline has joined #ruby
dlitvak has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
<Jagan_>
<Garo_> My question: Mobile web automation using calabash, is it possible?
<tomaz___>
but i am trying to use Ansible for configuration... and are getting this error.
<tomaz___>
"/opt/sensu/embedded/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'sensu-plugins-process-checks' (>= 0) among 42 total gem(s) (Gem::LoadError)"
<tomaz___>
"Checked in 'GEM_PATH=/opt/sensu/embedded/lib/ruby/gems/2.2.0', execute `gem env` for more information"
<Jagan_>
Is it possible means, can you please tell me the setup confirguration for calabash mobile web automation
<tomaz___>
i would really appreciate some help
sandstrom has quit [Quit: My computer has gone to sleep.]
blackmes1 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
codecop has joined #ruby
TomyWork has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
psyq is now known as psyq_work
cajone has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
Chau has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
Pumukel has joined #ruby
joonty has joined #ruby
kerunaru has joined #ruby
bronson has joined #ruby
kerunaru has quit [Client Quit]
scepticulous has joined #ruby
<scepticulous>
join #rubyonrails
<scepticulous>
whoops
sepp2k has joined #ruby
jimcroft has joined #ruby
ta_ has joined #ruby
Macaveli has joined #ruby
duckpuppy has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
<manveru>
Jagan_: what's calabash and what's mobile web automation?
sandstrom has joined #ruby
mattwildig has joined #ruby
<manveru>
well, looks like calaba.sh shows it nicely :)
<manveru>
and it uses cucumber, so yeah, that's with ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
dgncn has joined #ruby
mattwildig has quit [Ping timeout: 255 seconds]
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
pawnbox has joined #ruby
<Jagan_>
<manveru> Generally Web automation Ruby cucumber framework using tool for Capybara
<Jagan_>
Mobile automation Ruby cucumber framework using tool for Calabash
<manveru>
jup, see the repo, it has all the infos you could ever want
<manveru>
at least a lot more than this channel :)
adgtl has joined #ruby
adgtl has joined #ruby
<Jagan_>
But I want Mobile web automation using Ruby cucumber framework using tool for calabash
<Jagan_>
I already check this github
Timberwo|f has quit [Quit: Textual.]
Hounddog has joined #ruby
statelesscode has quit [Quit: statelesscode]
mikecmpbll has joined #ruby
vondruch has joined #ruby
adgtl has quit [Remote host closed the connection]
lightheaded has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
chipotle has quit [Quit: cheerio]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chagel has quit [Remote host closed the connection]
Jagan_ has left #ruby [#ruby]
baweaver has joined #ruby
eregi has joined #ruby
hayden_ has joined #ruby
<manveru>
in other words, you don't understand english?
jimcroft has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
nuck has quit [Ping timeout: 268 seconds]
ensyde_ has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
despai has joined #ruby
terlar has joined #ruby
blackmes1 has joined #ruby
Ishido has quit [Remote host closed the connection]
kirillzh has joined #ruby
sepp2k has joined #ruby
Chagel has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
ramfjord has quit [Quit: leaving]
slackbotgz has quit [Remote host closed the connection]
shredding has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
william3 has joined #ruby
minimalism has quit [Quit: minimalism]
Spami has joined #ruby
laith has joined #ruby
eljimmy has quit [Read error: Connection reset by peer]
brijesh has joined #ruby
eljimmy has joined #ruby
adgtl has quit [Remote host closed the connection]
FooMunki has joined #ruby
Mor has joined #ruby
Nanuq has quit [Ping timeout: 264 seconds]
nuck has joined #ruby
jonee has quit [Ping timeout: 248 seconds]
nuck is now known as Guest85604
duckpuppy has joined #ruby
<Mor>
How does the method_missing method knows to react when i call some method after overriding this method?
brijesh has quit [Ping timeout: 276 seconds]
astrobunny has quit [Remote host closed the connection]
<ljarvis>
Mor: did you change your nickname after asking this yesterday?
sinkensabe has joined #ruby
<hanmac>
Mor it depends how you mean with overriding
<ljarvis>
because it's the exact same question, worded (badly) the exact same
eljimador has joined #ruby
Dreamer3_ has joined #ruby
<Ox0dea>
Mor: It's just... what the Ruby interpreter does.
mhenrixon_ has joined #ruby
<Ox0dea>
It walks the ancestor chain in search of the method you invoke, then starts over looking instead for a definition of #method_missing if it didn't find the original method.
brijesh has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
<Mor>
ljarvis: correct. just did not fully understand it.
Some-body_ has joined #ruby
mhenrixon has quit [Ping timeout: 240 seconds]
helpa has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
DarthGandalf has quit [Read error: Connection reset by peer]
oddmunds has quit [Ping timeout: 240 seconds]
eljimmy has quit [Ping timeout: 240 seconds]
moufl has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
Some-body_ is now known as DarthGandalf
Guest34101 has joined #ruby
oddmunds1 has joined #ruby
mfl has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
mfl is now known as moufl
brijesh has quit [Ping timeout: 244 seconds]
aupadhye has quit [Ping timeout: 244 seconds]
laith has quit [Quit: Leaving.]
blackmes1 has joined #ruby
ptierno has quit [Ping timeout: 248 seconds]
BtcBen has quit [Ping timeout: 244 seconds]
<Mor>
Ox0dea: Ok, so it found my new def of method_missing. After calling a missing method it reacts like the original method. How?
Dimik has quit [Ping timeout: 252 seconds]
<Ox0dea>
Mor: It's not clear to me what you're asking.
ptierno has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
dgncn_ has joined #ruby
<Ox0dea>
Are you asking for an explanation of what's happening under the hood? Do you know that the Ruby interpreter you're using is written in C?
dgncn_ has quit [Remote host closed the connection]
laith has joined #ruby
dgncn_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
ta_ has joined #ruby
FooMunki has joined #ruby
dgncn has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
<Mor>
Ox0dea: When you override a method, you change its entire content right?. When you override the method_missing method you still get the and exception when you call a missing method. it reacts like the original method_missing in the kernel module.
ta_ has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
Mor: The default #method_missing lives on BasicObject, not Kernel.
<Ox0dea>
If your class doesn't override it, that's the one that gets used, and its default behavior is indeed to raise a NameError.
<Mor>
Ox0dea: When my class override it, It still raises a NoMethodError
marr has joined #ruby
<Ox0dea>
Mor: Are you using `super`?
<Mor>
Ox0dea: I mean, the error itself doesn't appear but it knows to identify when I call a missing method
<Ox0dea>
¯\_(ツ)_/¯
jeanlinux has joined #ruby
Nanuq has joined #ruby
pandaant has joined #ruby
<ljarvis>
:)
jenrzzz has quit [Ping timeout: 240 seconds]
<Ox0dea>
Mor: That error won't get raised unless method resolution makes it all the way to BasicObject#method_missing.
<Ox0dea>
Maybe post code?
trosborn has joined #ruby
bertro has joined #ruby
<Mor>
Ox0dea: It executes the method_missing when I call a missing method to an object, after overriding the method_missing in the class of this object. Which mean it can still identify a missing method. I will post a code in a moment
kenndel_ has quit [Ping timeout: 244 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
trosborn has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
Gnut has joined #ruby
ziyadb has joined #ruby
htmldrum has quit [Ping timeout: 248 seconds]
<hanmac>
Mor i dont have your code there right now, but are you sure you are calling the right method_missing? if i remember correctly you did define it as a class method, so when you call a method from the Instance of the Class it doesnt use THAt method_missing
blackmes1 has quit [Ping timeout: 276 seconds]
BlkDynmt has joined #ruby
quazimodo has joined #ruby
ocbtec has joined #ruby
kirillzh has joined #ruby
htmldrum has joined #ruby
tristanp_ has joined #ruby
araujo_ has quit [Quit: Leaving]
oddmunds1 is now known as oddmunds
Kang0 has quit [Remote host closed the connection]
Couch has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
Azulinho has quit [Ping timeout: 255 seconds]
Gnut has quit [Ping timeout: 248 seconds]
chipotle has joined #ruby
dlitvak has joined #ruby
Coldblackice has joined #ruby
atmosx has joined #ruby
ur5us has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 248 seconds]
<gregf_>
Mor: if you could paste some code, somebody could help :|
dlitvak has quit [Remote host closed the connection]
<gregf_>
>> class Foo; def method_missing meth, *args, &bl; p meth, args;end;end; Foo.new.yay(1,2,3)
<ruby[bot]>
gregf_: # => undefined method `yay' for Foo:Class (NoMethodError) ...check link for more (https://eval.in/525928)
<ljarvis>
?irb
<ruby[bot]>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<ljarvis>
Mor: because that's how the interpreter is designed. Ox0dea has explained this. Plus, your code isn't even valid syntax-wise
quaristice has joined #ruby
quaristice has quit [Client Quit]
blackmes1 has joined #ruby
<gregf_>
Mor: why do you worry about how the method gets called? atleast you know that the overridden method(not sure if its even overridden) is getting called?
dubalubdub has joined #ruby
krzkrzkrz has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
<gregf_>
>> class Foo;end;Foo.ancestors.each { |c| p [c, c.method(:method_missing)] }
<ruby[bot]>
gregf_: # => [Foo, #<Method: Class(BasicObject)#method_missing>] ...check link for more (https://eval.in/525938)
<gregf_>
Mor: whats it youre trying to achieve? just check how method_missing gets/doesnt_get called?
<gregf_>
then there better things to worry about ;)
gagrio has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
pandaant has quit [Remote host closed the connection]
<Ox0dea>
Mor: I can't help but advise you to reconsider your approach to learning Ruby.
<Ox0dea>
You're diving into one of the deeper parts of the pool first, and that's a brave idea.
blackmes1 has quit [Ping timeout: 244 seconds]
<Ox0dea>
Still, to answer your question: yes, there are about a dozen of these "hook" methods.
<Mor>
I'm a kind of person who learn by understanding. When I understand something I can remember it better. :)
dubalubdub has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
ElFerna_ has joined #ruby
eregi has joined #ruby
htmldrum has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
<Mor>
Ox0dea:I hope you can forgive my curiosity
_djbkd has quit [Remote host closed the connection]
<Ox0dea>
Mor: You know what happened to the cat, I trust.
<Mor>
Ox0dea: (;
eregi has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
<Ox0dea>
Mor: I certainly applaud your curiosity, but I also think it's possible to learn things in the wrong order, such that prior knowledge has the potential to hinder later understanding.
baweaver has joined #ruby
_djbkd has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
phredus has quit [Remote host closed the connection]
htmldrum has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
moeabdol has joined #ruby
adgtl has quit [Remote host closed the connection]
duckpuppy has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
_djbkd has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
<shevy>
Mor yes, now you can dynamically add methods via define_method inside of method_missing!
baweaver has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
<hanmac>
you can even define methods with "def" inside methods, but thats every bad voodoo ;P
<gregf_>
Mor: im not sure how much dynamic methods are used in Ruby code(atleast not in the code we have), but its usually not allowed like say, in Perl(AUTOLOAD), PHP(__call) *wouldn't get past code reviews for sure*
<Ox0dea>
gregf_: Frequently. :P
<Ox0dea>
But the overall approach is comparatively sane.
<hanmac>
Ox0dea: or you can hide classes and modules inside a singleton class of an Object ;P (just another case of things you might not want to do ;P )
<gregf_>
*happy debugging* ;) wonders how difficult writing tests would be :|
<Ox0dea>
hanmac: We can't rb_obj_hide() from Ruby land, though. ;)
<Ox0dea>
Or, well, yeah, we can use Fiddle to muck with an object's flags.
lipoqil has joined #ruby
mattwildig has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
adgtl has quit [Remote host closed the connection]
<shevy>
all the goodies
<shevy>
that are never used in real code!!!
ur5us has quit [Ping timeout: 244 seconds]
Azulinho has joined #ruby
mondok has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
ur5us has joined #ruby
norc has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
<hanmac>
shevy good that ruby does not have a AbstractSingletonProxyFactoryBean like java ;P
stevemackinnon has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
lapide_viridi has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
kirillzh has quit [Remote host closed the connection]
themsay has quit [Ping timeout: 240 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
Deck` has joined #ruby
tristanp has joined #ruby
htmldrum has joined #ruby
vdamewood has quit [Quit: Life beckons.]
chipotle has quit [Quit: cheerio]
ElFerna_ has quit [Ping timeout: 255 seconds]
kirillzh has joined #ruby
themsay has joined #ruby
Guest85 has joined #ruby
themsay2 has joined #ruby
kirillzh has quit [Client Quit]
nettoweb has joined #ruby
bronson has joined #ruby
kumar has joined #ruby
themsay2 has quit [Client Quit]
edwinvdgraaf has quit []
themsay has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
kumar has quit [Client Quit]
dlitvak has joined #ruby
edwinvdgraaf has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
laith has quit [Quit: Leaving.]
edwinvdgraaf has quit [Client Quit]
stevemackinnon has quit [Remote host closed the connection]
rob_ has joined #ruby
dubalubdub has joined #ruby
<rob_>
hi, anyone who uses guard-rspec, is it possible to change the default 'cmd' to not use bundler? e.g: cmd=rspec rather than cmd="bundler exec rspec"?
kirillzh has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
<kirillzh>
How can I execute callbacks before caching in typhoeus?
htmldrum has quit [Ping timeout: 276 seconds]
Kang0 has joined #ruby
gagrio has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: Leaving]
dlitvak has joined #ruby
ldnunes has joined #ruby
duckpuppy has joined #ruby
binaryplease has joined #ruby
MrDoctor has joined #ruby
SCHAAP137 has joined #ruby
Macaveli has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
Macaveli has quit [Client Quit]
adgtl has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
jenrzzz has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Guest85 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
gagrio has joined #ruby
sanguisdex has joined #ruby
laith has joined #ruby
y2mq37 has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
augcesar has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cpup has joined #ruby
sdothum has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 244 seconds]
jxs_ has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
roshanavand has joined #ruby
JohnBat26 has quit [Ping timeout: 244 seconds]
augcesar has quit []
Xeago has quit [Ping timeout: 248 seconds]
adgtl has joined #ruby
sandstrom has joined #ruby
sanguisdex has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
zapata has joined #ruby
lapide_viridi has quit [Quit: Leaving]
Macaveli has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
shredding has quit [Ping timeout: 248 seconds]
Macaveli has quit [Client Quit]
Coldblackice has quit [Ping timeout: 255 seconds]
eregi has joined #ruby
binaryplease has joined #ruby
Jeremy1023 has joined #ruby
adgtl has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
dlitvak has joined #ruby
eregi has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
jonee has joined #ruby
william3 has quit [Remote host closed the connection]
chipotle has joined #ruby
htmldrum has joined #ruby
sanguisdex has joined #ruby
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
sgambino has joined #ruby
Macaveli has joined #ruby
chipotle has quit [Quit: cheerio]
atmosx has quit [Quit: This is aparting message!]
ur5us has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
mhoungbo has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
mhoungbo has joined #ruby
cyclonis has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
sanguisdex has quit [Ping timeout: 250 seconds]
hamed_r has joined #ruby
Mon_Ouie has joined #ruby
dlitvak has quit [Ping timeout: 244 seconds]
dlitvak has joined #ruby
duckpuppy has joined #ruby
Chagel has joined #ruby
Deck` has joined #ruby
Ishido has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
quakephil has joined #ruby
pawnbox has joined #ruby
terlar has joined #ruby
Guest34101 has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
cyclonis has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
mattwildig has joined #ruby
Guest85 has joined #ruby
jinetix has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyclonis has joined #ruby
jenrzzz has joined #ruby
godzillaenlacasa has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
duckpuppy has joined #ruby
william3 has joined #ruby
lightheaded has quit [Read error: No route to host]
lightheaded has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
dgncn_ has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
sgambino has joined #ruby
<Garo_>
I have an object which I first clone. Then I make changes to the clone and I would then want to merge the changes back to the original object. Any suggestion what would be the best way to do this?
<bnagy>
omg hanmac is back
Mon_Ouie has quit [Ping timeout: 252 seconds]
moeabdol1 has quit [Quit: WeeChat 1.4]
<hanmac>
bnagy: yeah you slowpoke! XD i am currently unemployed ... so i have many time for rwx and other ruby stuff again
lightheaded has quit [Read error: No route to host]
lightheaded has joined #ruby
<bnagy>
:)
laith has quit [Ping timeout: 240 seconds]
<hanmac>
Garo_: hm depending on the structure of your object i would do a #replace or #merge function where you can apply the data of the new object onto the old one
tomphp has joined #ruby
krzkrzkrz has joined #ruby
<Garo_>
hanmac: yeah I'm just trying to figure out that I probably need to do some kind of recursive merge operation.
laith has joined #ruby
napcae has joined #ruby
<Garo_>
in my case the data structure is a class containing mixed data (hash, arrays etc)
<hanmac>
Garo_: depending on your structure you might need to be careful with dup/clone because both of them are not deep-copy functions
<Garo_>
hanmac: actually I duplicate the object by forking my process. Then inside the forked child I do modifications and I want to then send the modifications back to the parent process
AlexRussia has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<Garo_>
I have an IPC which I can use to marshal the changed object, so I could somehow merge the data back on the parent process into the class instance
<hanmac>
hm i dont do much work with forked process ... and also not so much with interprocedual comunication ...
lightheaded has quit [Read error: Connection reset by peer]
lightheaded has joined #ruby
binaryplease has quit [Ping timeout: 244 seconds]
<Garo_>
yeah, luckily the IPC is implemented here, it's just the merging which I'm now worrying about =)
<hanmac>
Garo_: you might need a IO pipe for that so you could send data from the child to the parent
<Garo_>
yeah, I have exactly that
napcae has left #ruby [#ruby]
<Garo_>
I can build a short snippet so you see what I have
blackgoat has quit [Quit: WeeChat 1.4]
roshanavand has quit []
jeanlinux has joined #ruby
<bnagy>
Garo_: I'd honestly suggest you rewrite
<bnagy>
object integrity over IPC is .. suboptimal
<Garo_>
that's what I'm doing in a compact form. now I would want to merge the modifications back.
anagha_ has joined #ruby
<Garo_>
my other option is to refactor my code so that I can return the modified and unmarshalled object in my call stack long enough so that I don't need to merge but just replace the original variable holding the object with the new one
moeabdol has joined #ruby
synthroid has joined #ruby
<bnagy>
uh
<Garo_>
bnagy: yeah, I have that feeling also :D
jottr has joined #ruby
skade has quit [Ping timeout: 250 seconds]
<Garo_>
I'm probably going with the refactoring way =)
<bnagy>
a few things you said are confusing, but sending an object to an API and getting a new object back is an attractive pattern
bronson has joined #ruby
<bnagy>
"replacing variables" and "in my callstack long enough" I don't really grok
dlitvak has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
<Garo_>
yep. the more I talk this the more obvious is that I should not try to replace/merge but just to "get new objet back" and use that
bruce_lee has quit [Ping timeout: 240 seconds]
<bnagy>
I guess mainly my point is that imho writing all your IPC as RPC tends to pay off in the long run
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
Guest34101 has joined #ruby
mattwildig has joined #ruby
blackmesa has joined #ruby
<bnagy>
maybe 1% of applications really need multi-process plus shared memory, for everything else write it as RPC and you're ready for roflscale
<bnagy>
tbh I even used to write jruby stuff (which has perfectly good threads) as if it were a multi process app, just because it's easier to reason about bugs
bronson has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
joonty has joined #ruby
Ishido has quit [Remote host closed the connection]
<Garo_>
bnagy: my project is kinda an application container which accepts requests from outside and executes them by forking the process for the execution (think an old web server which forks for each request)
sandelius has joined #ruby
jinetix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<scepticulous>
I wonder if it is kind of idiomatic to combine conditionals and assignment in ruby... It is a style violation in most tools, but I keep seing and seing things like if tmp = some_query method: do_something_with(tmp); end
dlitvak_ has quit [Ping timeout: 240 seconds]
fourq is now known as fourq|away
<bnagy>
scepticulous: ||= is idiomatic
uglybandersnatch has quit [Ping timeout: 244 seconds]
<bnagy>
opinions probably start to differ wildly regarding conditionals following =
<bnagy>
personally I wouldn't touch it with a stick
B1n4r10 has joined #ruby
<Garo_>
bnagy: but thanks for your input, at least this cleared my head a bit =)
<scepticulous>
bnagy: yes, I totally agree.
fourq|away is now known as fourq
<bnagy>
Garo_: everything I said doesn't apply if you need really high perf
<bnagy>
it's purely aimed at cleaner code
<bnagy>
but anyway, just my 0.02
<Garo_>
bnagy: very true. fork isn't very fast but in this case I'm after for really cleaning up my execution handler by letting the forked child to die instead for opting for better performance =)
<Garo_>
bnagy: yeah, thanks =)
kent\n has quit [Quit: No Ping reply in 180 seconds.]
dlitvak has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kent\n has joined #ruby
uglybandersnatch has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
mgorbach has joined #ruby
ocbtec has quit [Read error: Connection reset by peer]
jimcroft has joined #ruby
dlitvak has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 276 seconds]
<silverdust>
what I want is to get the index of the returned array item
<silverdust>
how can I do that?
avenj has quit [Ping timeout: 240 seconds]
jeanlinux has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
<ljarvis>
silverdust: do you care about performance?
lightheaded has quit [Ping timeout: 255 seconds]
<silverdust>
yes absolutely
<ljarvis>
i feel like that's just a stock answer but ok fair enough
<silverdust>
I'm just ignorant and I'd love to be pointed in the right direction
ramortegui has joined #ruby
<ljarvis>
you can use Array#index like this: https://eval.in/526086 but you probably don't want that if you *really* care about performance
eregi has joined #ruby
<ljarvis>
my question is, why do you want the index? how are you storing these such as the index matters?
johnmilton has joined #ruby
<ljarvis>
I guess the performance question is better worded as "must this as performant as possible?"
<silverdust>
I need to delete a struct within an array so I'm trying to check for the struct by an item it and get its index then delete from the array with acquired index
william3 has joined #ruby
<ljarvis>
you don't need an index to delete it
rippa has joined #ruby
<silverdust>
how can I? I have #<struct id="4" stuff="hey"> and others with different ids. How can I delete the one with id=4?
mdw has joined #ruby
<silverdust>
I mean other structs with different ids within the array
<ljarvis>
you can use delete_if (though it's worth pointing out that it won't stop looking when it deletes the first element)
<ljarvis>
items.delete_if { |i| i.id == 4 }
rbennacer has quit [Ping timeout: 276 seconds]
eregi has quit [Ping timeout: 255 seconds]
mdw has quit [Client Quit]
Ishido has joined #ruby
rbennacer has joined #ruby
<silverdust>
I don't mind. It's what I need. Thanks but just in case how can I make it stop at the first it finds
nchambers has joined #ruby
<shevy>
perhaps .find
<ljarvis>
well, you'd probably be better to just use 2 operations: find/delete: item = items.find { |i| i.id == 4 }; items.delete(item);
hxegon has joined #ruby
<silverdust>
Thank you
<ljarvis>
it's not ideal, but you'll start getting hacky the closer to the metal you try and get and it's not necessary unless you want the fastest possible implementation (you sacrifice something)
<ljarvis>
silverdust: that said, do you care about the order of the items in your array?
<ljarvis>
e.g. are they specifically sorted? (seems to me like you dont, because you're deleting stuff that might be in the middle somewhere)
<silverdust>
you mean if I'd like to keep it in the same order after deleting an item?
<ljarvis>
sure, do you care about the order in any way
<silverdust>
not really
<ljarvis>
then use Set
william3_ has joined #ruby
mondok has joined #ruby
vali has joined #ruby
<vali>
hi guys
<ljarvis>
hey gurl
<silverdust>
I'd like to believe that removing 6 from [4,6,9,3] will leave me with [4,9,3]
<ljarvis>
silverdust: then you care about order
william3 has quit [Ping timeout: 276 seconds]
techietrash has quit [Max SendQ exceeded]
techietrash has joined #ruby
<vali>
New to ruby here...I want to convert a timestamp from something like (2016-02-26T14:42:36.340912+01:00) to a unix timestamp in miliseconds
<vali>
any ideas on how I could do that?
ropeney has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
sgambino has joined #ruby
<claw>
i need some sort of IO buffering
<ljarvis>
surely you dont actually plan on using this?
binaryplease has quit [Ping timeout: 276 seconds]
<ljarvis>
there might be a conflict in the next 30 years
idefine has joined #ruby
<ljarvis>
300 maybe
openstruct has joined #ruby
<claw>
ljarvis: this is a corruption test
<claw>
actually its for testing if/when there is corruption
<ljarvis>
ok, but I don't see how it tests anything. a will not equal b 99.999999999% of the time (actual statistic)
<ljarvis>
owait
<ljarvis>
i read something wrong
sankaber has joined #ruby
<claw>
ljarvis: it will if data was not written to the disk at it was generated
<claw>
by fs/disk/cache or memory corruption
jottr has joined #ruby
TomPeed has joined #ruby
Snowy has quit [Remote host closed the connection]
<ljarvis>
ok well im confused by this test in general so probably im not the best person to provide help
platzhirsch has left #ruby [#ruby]
ptierno has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
baweaver has joined #ruby
babblebre has joined #ruby
<ljarvis>
(I mean, I get the data corruption part) but if your data comes back as it should, you just keep running it forever
<claw>
thats true ljarvis. if so there is no corruption happening
Deck` has quit [Ping timeout: 244 seconds]
<ljarvis>
so this is a realtime check happening hundreds/thousands of times a second?
ptierno has joined #ruby
Bounga has joined #ruby
lightheaded has joined #ruby
anisha has joined #ruby
yardenbar has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<claw>
ljarvis: this is just for testing purpose
kies^ has quit [Ping timeout: 244 seconds]
<ljarvis>
if it's just for testing, why dont you run it once?
neohunter has joined #ruby
sandstrom has joined #ruby
<claw>
ljarvis: actually i do. this is just a "i wonder how i could..." question
bronson has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<ljarvis>
please say that next time :(
Jeremy1023 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mark1 has quit [Quit: Leaving.]
<claw>
i may ask more generell: how can i generate a large amount of random binary without needing to allocate it as a whole
ESpiney has joined #ruby
polishdub has joined #ruby
Bounga has quit [Remote host closed the connection]
<claw>
as data = Random.new.bytes(length) will allocate up to 1GB
lipoqil has quit [Quit: Connection closed for inactivity]
nettoweb has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
ptierno has quit [Quit: leaving]
sankaber has quit [Remote host closed the connection]
dlitvak has joined #ruby
sankaber has joined #ruby
sankaber has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
dopamean_ has quit [Ping timeout: 248 seconds]
william3_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
swills has joined #ruby
codecop has quit [Remote host closed the connection]
rbennacer has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
polishdub has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
jottr has joined #ruby
pawnbox has joined #ruby
peteykun has joined #ruby
araujo has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
<pipework>
claw: What you mean? You want to be able to read off random bytes as you need it, or you want chunks just not all of what you might want at once?
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 250 seconds]
lightheaded has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
tulak has quit []
B1n4r10 has joined #ruby
fostertheweb has joined #ruby
rbennacer has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
avenj has joined #ruby
failshell has quit []
avenj has quit [Changing host]
avenj has joined #ruby
moeabdol has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
sarbs has quit [Ping timeout: 252 seconds]
<apeiros>
wolffles: what?
monashko2 has quit [Ping timeout: 244 seconds]
<wolffles>
apeiros: i ran include? on an infinate range that will never return true. how would i break the loop
<apeiros>
uh… why do you use Prime.include?, that's from Enumerable and Prime.each is an infinite enumeration.
mondok has quit [Ping timeout: 276 seconds]
humblespoon has joined #ruby
<apeiros>
use Prime.prime?
<wolffles>
oh
pawnbox has quit [Remote host closed the connection]
peteykun has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<norc_>
We have a Prime class in the stdlib? That is... well.
dopamean_ has joined #ruby
<humblespoon>
is this a good place to ask beginner ruby questions? or is there another irc you can recommend?
<norc_>
humblespoon, you sir are in the right place.
<apeiros>
norc_: useful?
<norc_>
apeiros, Im actually trying to see how.
<humblespoon>
awesome, thanks :D
<apeiros>
humblespoon: there's this channel and ##new2ruby if you prefer a smaller group
<humblespoon>
o thanks apeiros
<apeiros>
norc_: I'm just sad that they use the slow generator by default
<hanmac>
norc_ do we want to talk about what php has as stdlib?
<norc_>
hanmac, no we do not.
<norc_>
But if you feel free to come outside my door we can discuss the matter.
<humblespoon>
I'm learning ruby write now and I'm trying to extend an array class so it calculates the squares of each element in the array
Rodya_ has joined #ruby
<apeiros>
humblespoon: you don't need to extend the class. you can use the Array#map method for that
Ishido has quit [Remote host closed the connection]
<humblespoon>
well part of the learning is learning how to extend classes and rewrite existing methods XD
<apeiros>
:-S
<humblespoon>
at least that's the idea behind the instruction
<apeiros>
they shouldn't teach you to do bad things. and changing classes you don't own is a bad thing.
<ljarvis>
that's a bad thing to teach
<apeiros>
I mean, yes, they should teach you that it's possible. but once you're reasonably competent.
<humblespoon>
I guess using map it would be something like numbers.map! {|ele| ele**2}
<apeiros>
humblespoon: correct
<humblespoon>
cool
<norc>
apeiros, and even then most guides I find refuse to even mention Refinements, which is so sad - since that is the feature that makes monkey patching foreign classes bearable. :(
idefine has joined #ruby
<apeiros>
norc: well, refinements are still relatively new
bertro has quit [Quit: Leaving.]
<humblespoon>
they wanted me to extend the class to make a method so that numbers.square would return that
<humblespoon>
without modifying the original array
<humblespoon>
def square self.each {|ele| ele**2} end
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
herminiotorres has quit [Max SendQ exceeded]
<humblespoon>
so I wrote that in the Array calss
<apeiros>
and for me it's still something I'm elaborating and working on figuring out its advantages and weaknesses
<norc>
apeiros, a bit ago I was really surprised to find that they were still considered experimental in 2.0 (OSX default Ruby)
<humblespoon>
but I have no idea why it doesn
<havenwood>
norc_: It was just days ago that all supported Rubies now support modern refinements.
idefine has quit [Remote host closed the connection]
<humblespoon>
so because I used self, it doesn't return what I called in the block
<humblespoon>
err... each
<apeiros>
no, because you used each ;-)
<norc>
havenwood, Im guessing it just got backported to 2.1?
<apeiros>
right
aufi has quit [Quit: Konversation terminated!]
<humblespoon>
ok that makes a lot of sense, thanks apeiros :D
<apeiros>
yw
idefine has joined #ruby
Rodya_ has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
<apeiros>
norc: refinements have a couple of caveats. strongest are no toplevel refinements, no sensible way of aggregating refinements.
mhoungbo has quit [Ping timeout: 240 seconds]
Deck` has quit [Ping timeout: 255 seconds]
bricker has joined #ruby
<norc>
apeiros, no toplevel refinements?
cdg has quit [Ping timeout: 244 seconds]
<apeiros>
`using` in the toplevel scope iirc won't work
<norc>
You meant to write *only* top level refinements.
<norc>
It *only* works there. ;-)
<apeiros>
o0
<apeiros>
no?
mondok has joined #ruby
<norc>
>> class C; end; module M; refine C; do; end; end; using M
<ruby[bot]>
norc: # => /tmp/execpad-9e8b4621d96a/source-9e8b4621d96a:2: syntax error, unexpected keyword_do_block, expectin ...check link for more (https://eval.in/526212)
<norc>
>> class C; end; module M; refine C do; end; end; using M
<apeiros>
yeah, it's uncomfortable since the REPL is a prime place to have toplevel using's
<havenwood>
^
<norc>
apeiros, Ill have to dig when the change was made. But it used to be that refinements could only be activated in top level, and it was added for classes/modules somewhere in 2.2 I think
<havenwood>
norc: 2.0 was the old style
<havenwood>
norc: so it's no more
<norc>
Ah right.
nogic has joined #ruby
<shevy>
the new replaces the old
<shevy>
- Soylent Green
neohunter has quit [Quit: leaving]
anisha has quit [Quit: Leaving]
<apeiros>
that's dark shevy
idefine has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
<shevy>
:D
<shevy>
norc I think some of the guides, even the not-so-totally-old ones, don't mean or mention Refinements because they were not stable or too commonly used. It may take a few ... decades before they become more common
nettoweb has joined #ruby
Rodya_ has joined #ruby
<norc>
apeiros, do you have access to an OSX machine right now?
<apeiros>
I'm on one, yes
dlitvak has joined #ruby
<norc>
Put "$1294967295" into your pry and tell me the version of your pry please.
alexishuard has joined #ruby
<apeiros>
without quotes?
<norc>
Yeah.
anagha_ has quit [Quit: Connection closed for inactivity]
<apeiros>
.rvm/gems/ruby-2.3.0/gems/method_source-0.8.2/lib/method_source/code_helpers.rb:71:in `eval': integer 2589934590 too big to convert to `int' (RangeError)
<norc>
Sweet.
<norc>
0.10.3?
Rodya_ has quit [Remote host closed the connection]
<apeiros>
pry version? yes
amargherio has joined #ruby
<norc>
Alright, Im going to find this silly bug.
<apeiros>
so I guess you can't have >(2**31)-1 captures in a regex, hu? :)
<norc>
Yes - and I want to test my new regex badly in pry, so it needs to be fixed.
<apeiros>
you… no way? you have a regex with 2**31+ capturing groups?
Gasher has joined #ruby
<norc>
Are you jealous?
<apeiros>
slightly. but since it's already established that I'm not the most crazy person in this chat, it's limited ;-p
<Gasher>
hi everyone. how to use Ruby bytecode? I couldn't duck anything about it. it's probably in the bot, I forgot how to use it
<norc>
Hello Gasher!
<darix>
Gasher: what do you try to achieve?
<apeiros>
so your regex is at least 6GB big?
davedev24 has joined #ruby
johnnyt has quit [Ping timeout: 252 seconds]
<Gasher>
darix; compile Ruby in and out of its bytecode, so I can achieve better performance
sarbs has joined #ruby
Rodya_ has joined #ruby
<norc>
Gasher, since you are doing it for performance here come my usual questions.
<Gasher>
well, compile in and then run it
<darix>
Gasher: and your performance is really limited by *that*?
<norc>
Gasher, have you written code that works and have you then written tests for that code, and then - have you profiled your code and determined that parsing and compiling is your bottleneck?
synthroid has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 240 seconds]
<apeiros>
Gasher: are you looking for RubyVM::InstructionSequence ?
<norc>
Gasher, in that order.
<norc>
Gasher, otherwise RubyVM::InstructionSequence.from_binary_format will give you what you want.
Gnut has joined #ruby
<norc>
But I really recommend you write code that works, test it - then *profile* it - and then spend your time optimizing *if* and *where* necessary.
<Gasher>
I just want to check it out, I wouldn't write code that requires performance in Ruby in the first place. I just want to test the RubyVM out, and I can't find any information on it.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Gasher>
thanks norc
<norc>
Note that load_from_binary/to_binary were added in 2.3, so you need to use that version.
Rodya_ has quit [Remote host closed the connection]
<Gasher>
ehh, as always Debian-based distros must have outdated versions...
davedev24 has quit [Ping timeout: 250 seconds]
<norc>
Gasher, I do not know of any distribution that ships recent Ruby versions. Usage of ruby-installer with chruby is the most widely used way to serve Ruby.
<norc>
Gasher, my mentioned setup has the added advantage of being able to run many ruby versions concurrently without any problem though. ;-)
<norc>
(Even including jruby or rubinius)
binaryplease has joined #ruby
<Gasher>
yeah, I know about those things, but I switch languages all the time so I can't be bothered to install all kinds of version managers
kent\n has quit [Quit: No Ping reply in 180 seconds.]
<norc>
Fair enough. :)
<Gasher>
what was Rubinius?
<norc>
Ruby in Ruby.
verde has joined #ruby
<norc>
(Except for the VM)
kent\n has joined #ruby
<Gasher>
rubyception?
Suntzu has quit [Quit: changing servers]
adgtl has quit [Remote host closed the connection]
Suntzu has joined #ruby
adgtl has joined #ruby
Kensei has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
skade has joined #ruby
<bougyman>
ugh.
<bougyman>
i'm getting `undefined group option` on /conn=(?<conn>\d+) op=(?<id>\d+) (?<op>[A-Z]+).*(?etime=(?<etime>\d+))
<bougyman>
oh, nm
<apeiros>
(?etime
<bougyman>
it's (?etime instead of (?:etime
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<norc>
bougyman, sometimes its amusing. We are sitting in front of say a parser error and immediately assume there is something really wrong with Ruby - while Ruby tells us quite consively what is wrong. :-)
<apeiros>
if there's a ? behind your (?:…) group, you might want to reconsider the .*
adgtl has quit [Remote host closed the connection]
<apeiros>
because .*(x)? is allowed to not capture x
william3 has quit [Remote host closed the connection]
<yorickpeterse>
I wasn't aware children use GitHub these days
jenrzzz has joined #ruby
zast1 has joined #ruby
<darix>
hanmac: lol
cdg has quit [Ping timeout: 240 seconds]
<darix>
the replies in the shanley tweet are even more a reason
<darix>
Shanley @shanley 19h19 hours ago
<darix>
@oceanomare74 good, I hope you got a disease for which you were unvaccinated
<darix>
leading by example
Deck` has joined #ruby
<yorickpeterse>
Also I think this is now getting offtopic enough
zast has quit [Ping timeout: 240 seconds]
bricker has quit [Quit: Lost terminal]
<darix>
right ... lets update gitlab to see what yorickpeterse broke this time! :p
cdg has joined #ruby
<yorickpeterse>
A bunch of caching related things
alexishuard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has joined #ruby
ljames has joined #ruby
diegoviola has joined #ruby
<darix>
updating to 4bff9da
kegster has quit [Quit: Shiner, TX makes good beer.]
gizmore has joined #ruby
<ljarvis>
hand written parsers FOR LIFE
kegster has joined #ruby
<darix>
yorickpeterse: btw: would graphite compatible tools also be supported for collecting your metrics?
william3 has joined #ruby
<yorickpeterse>
darix: No, we emit to InfluxDB only
sphex_ has quit [Ping timeout: 255 seconds]
<yorickpeterse>
and IIRC InfluxDB's UDP protocol is home grown and not compatible with anything else
baweaver has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
darkxploit has joined #ruby
<darix>
hmpf
jenrzzz has quit [Ping timeout: 255 seconds]
william3 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
kegster has left #ruby [#ruby]
sphex has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
tulak has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
william3 has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 240 seconds]
laith has quit [Quit: Leaving.]
tomphp has quit [Ping timeout: 244 seconds]
nogic has quit [Ping timeout: 250 seconds]
jimcroft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
joonty has quit [Ping timeout: 276 seconds]
Snowy has quit [Quit: ragequit]
peteyg_ has joined #ruby
Deck- has joined #ruby
chouhoul_ has joined #ruby
sphex_ has joined #ruby
BlindSight` has joined #ruby
diego_k has joined #ruby
iamvery_ has joined #ruby
solocshaw1 has joined #ruby
symm- has joined #ruby
eregi has joined #ruby
Rickmast_ has joined #ruby
deavidsedice has joined #ruby
jtdowney_ has joined #ruby
ESpiney_ has joined #ruby
mattwildig has joined #ruby
Lorn_ has joined #ruby
gbailey- has joined #ruby
anirban has joined #ruby
bakedb_ has joined #ruby
neanderslob_ has joined #ruby
Mio-chan has quit [Disconnected by services]
Mio-chan has joined #ruby
ex0ns_ has joined #ruby
tw1sted_ has joined #ruby
william3 has joined #ruby
bnagy_ has joined #ruby
creat_ has joined #ruby
jsaak_ has joined #ruby
Marsjan has joined #ruby
ec\_ has joined #ruby
Kero_ has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
PaulePan1er has joined #ruby
tommylom1ykins has joined #ruby
cfloare_ has joined #ruby
angelixd_ has joined #ruby
Petazz_ has joined #ruby
janno_ has joined #ruby
mc_fail_ has joined #ruby
[ace]_ has joined #ruby
patteh_ has joined #ruby
LiquidIn1ect has joined #ruby
sunya7a__ has joined #ruby
Raboo_ has joined #ruby
kaspergr1bbe has joined #ruby
matt_d_ has joined #ruby
Guest12896_ has joined #ruby
Drakevr_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Ariadeno_ has joined #ruby
ruisanto1 has joined #ruby
sneakerhax has joined #ruby
claw_ has joined #ruby
grumpycat has joined #ruby
Amnez777- has joined #ruby
william3 has quit [Ping timeout: 244 seconds]
pragmatism_ has joined #ruby
vqrs_ has joined #ruby
sanguisdex has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
Drakevr has quit [Disconnected by services]
kies^ has joined #ruby
sudoubuntu has joined #ruby
yossarian has joined #ruby
Drakevr_ is now known as Drakevr
martinbjeldbak_ has joined #ruby
Sigma01 has joined #ruby
sphex has quit [*.net *.split]
Deck` has quit [*.net *.split]
herminiotorres has quit [*.net *.split]
mondok has quit [*.net *.split]
chouhoulis has quit [*.net *.split]
sgambino has quit [*.net *.split]
gaf_ has quit [*.net *.split]
ESpiney has quit [*.net *.split]
MrDoctor has quit [*.net *.split]
m8 has quit [*.net *.split]
lsmola has quit [*.net *.split]
neanderslob has quit [*.net *.split]
solocshaw has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
segy has quit [*.net *.split]
djellemah has quit [*.net *.split]
brendan- has quit [*.net *.split]
matt_d has quit [*.net *.split]
dasher^0_o has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
ec\ has quit [*.net *.split]
Amnez777 has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
arthurnn has quit [*.net *.split]
mg^ has quit [*.net *.split]
vqrs has quit [*.net *.split]
deavid has quit [*.net *.split]
jtdoncas has quit [*.net *.split]
irick has quit [*.net *.split]
sekrit has quit [*.net *.split]
creat has quit [*.net *.split]
kies has quit [*.net *.split]
kaspergrubbe has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
Veejay has quit [*.net *.split]
cfloare has quit [*.net *.split]
tabakhase has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Lorn has quit [*.net *.split]
patteh has quit [*.net *.split]
diegok has quit [*.net *.split]
iamvery has quit [*.net *.split]
swistak35 has quit [*.net *.split]
Brando753 has quit [*.net *.split]
Zackio has quit [*.net *.split]
lady3bean has quit [*.net *.split]
Phanes has quit [*.net *.split]
woodruffw has quit [*.net *.split]
Log1x has quit [*.net *.split]
ruisantos has quit [*.net *.split]
llua has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
gbailey has quit [*.net *.split]
lannonbr has quit [*.net *.split]
bnagy has quit [*.net *.split]
kitallis has quit [*.net *.split]
BlindSight has quit [*.net *.split]
WebDawg has quit [*.net *.split]
ereslibre_laptop has quit [*.net *.split]
Raboo has quit [*.net *.split]
janno has quit [*.net *.split]
Guest68514 has quit [*.net *.split]
Kero has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
twodayslate has quit [*.net *.split]
tonini has quit [*.net *.split]
Guest12896 has quit [*.net *.split]
donnoc has quit [*.net *.split]
greister has quit [*.net *.split]
j416 has quit [*.net *.split]
tw1sted has quit [*.net *.split]
Petazz has quit [*.net *.split]
mc_fail has quit [*.net *.split]
timonv has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
ex0ns has quit [*.net *.split]
pragmatism has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
sunya7a_ has quit [*.net *.split]
jsaak has quit [*.net *.split]
angelixd has quit [*.net *.split]
hplar has quit [*.net *.split]
maxmanders has quit [*.net *.split]
mburns has quit [*.net *.split]
bakedb has quit [*.net *.split]
apeiros has quit [*.net *.split]
majjoha has quit [*.net *.split]
go|dfish has quit [*.net *.split]
cats has quit [*.net *.split]
[ace] has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
joevandyk has quit [*.net *.split]
peteyg has quit [*.net *.split]
claw has quit [*.net *.split]
tessier-ashpool has quit [*.net *.split]
philtr has quit [*.net *.split]
jtdowney has quit [*.net *.split]
joconcepts has quit [*.net *.split]
matt_d_ is now known as matt_d
BlindSight` is now known as BlindSight
swistak35_ has joined #ruby
Drakevr has joined #ruby
Marsjan is now known as marsjaninzmarsa
Drakevr has quit [Changing host]
grumpycat is now known as cats
Raboo_ is now known as Raboo
gaf__ has joined #ruby
mburns_ has joined #ruby
solocshaw1 is now known as solocshaw
tabakhase has joined #ruby
Sminthurus is now known as CrazEd
mfb2 has joined #ruby
NightMonkey has joined #ruby
donnoc_ has joined #ruby
Zackio has joined #ruby
Phanes has joined #ruby
Phanes has joined #ruby
KrzaQ has joined #ruby
llua has joined #ruby
segy has joined #ruby
j416 has joined #ruby
CrazEd is now known as Guest27705
maxmanders has joined #ruby
joconcepts has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.4]
Biohazard has joined #ruby
kitallis has joined #ruby
WebDawg has joined #ruby
philtr has joined #ruby
Biohazard is now known as Guest33981
joevandyk has joined #ruby
queequeg1 has joined #ruby
Brando753 has joined #ruby
Log1x has joined #ruby
Log1x has quit [Changing host]
Log1x has joined #ruby
mattwildig has quit [Remote host closed the connection]
tessier-ashpool has joined #ruby
arthurnn has joined #ruby
cpruitt has joined #ruby
apeiros has joined #ruby
twodayslate has joined #ruby
mg^ has joined #ruby
uglybandersnatch has joined #ruby
djellemah has joined #ruby
dasher^0_o has joined #ruby
al2o3-cr has joined #ruby
timonv has joined #ruby
lannonbr has joined #ruby
greister has joined #ruby
lady3bean has joined #ruby
Veejay has joined #ruby
jtdoncas has joined #ruby
majjoha has joined #ruby
hplar has joined #ruby
kies has joined #ruby
mondok has joined #ruby
go|dfish has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
irick has joined #ruby
lsmola has joined #ruby
tonini has joined #ruby
agit0 has joined #ruby
sekrit has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
cantaberry has joined #ruby
bronson has joined #ruby
Deck- has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
TomyLobo has joined #ruby
platzhirsch has joined #ruby
flughafen_ has joined #ruby
Guest27705 is now known as CrazEd
CrazEd is now known as Guest28622
replay has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
replay has quit [Max SendQ exceeded]
replay has joined #ruby
_ht has joined #ruby
Anderson69s_Deb has quit [Ping timeout: 264 seconds]
herminiotorres has joined #ruby
Anderson69s_Deb has joined #ruby
ElFerna_ has joined #ruby
safe has joined #ruby
marr has quit [Ping timeout: 276 seconds]
poguez_ has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rutix has quit []
dopamean_ has quit [Quit: WeeChat 1.3]
blackmesa has joined #ruby
benlieb has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fantazo has joined #ruby
krzkrzkrz has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
fostertheweb has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
KensoDev has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
<benlieb>
I'm trying to stub an attr_reader in active record with rspec: expect_any_instance_of(PaypalIpn).to receive(:postback_response).and_return('VERIFIED'). PaypalIpn does not implement #postback_response, but it DOES. Can rspec stub attributes?
platzhirsch has left #ruby [#ruby]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
uri_ has joined #ruby
dopamean_ has joined #ruby
sgambino has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching>
G'day folks.
alexishuard has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
dopamean_ has quit [Client Quit]
Asher has quit [Quit: Leaving.]
aryaching has quit [Read error: Connection reset by peer]
dopamean_ has joined #ruby
aryaching has joined #ruby
dhollinger has joined #ruby
uri_ has quit [Quit: --]
uri_ has joined #ruby
firstdayonthejob has joined #ruby
adgtl has quit [Remote host closed the connection]
devbug has joined #ruby
jottr has joined #ruby
ElFerna_ has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
recycle has quit [Ping timeout: 240 seconds]
Kensei has joined #ruby
Kensei has joined #ruby
binaryplease has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
Gnut_ has joined #ruby
tomphp has joined #ruby
dhollinger has quit [Ping timeout: 255 seconds]
goku` has joined #ruby
goodcodeguy has joined #ruby
yqt has joined #ruby
Gnut has quit [Ping timeout: 244 seconds]
Dimik has joined #ruby
goodcodeguy has quit [Client Quit]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
blackmesa has joined #ruby
sepp2k has quit [Quit: Leaving.]
goodcodeguy has joined #ruby
tomphp has quit [Client Quit]
sepp2k has joined #ruby
despai has joined #ruby
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 244 seconds]
emilford has joined #ruby
dgncn has joined #ruby
emilford has quit [Client Quit]
Ishido has joined #ruby
turova has joined #ruby
maho has joined #ruby
<turova>
hello, I just built ruby (1.9.3) from source and noticed that there's a miniruby binary, though I can't find a description for what it's supposed to be. Anyone know?
<maho>
Can someone modify this so that the order of input numbers is not changed http://codepad.org/G7lrsDow
<hanmac>
turova: some newer ruby does need ruby to build itself ... as you can see the problem how to build ruby without ruby when it does need ruby ... thats what this miniruby is for
<hanmac>
maho: a reason why you ask a python question in the #ruby channel?
<turova>
hanmac, so it's a less functional version of ruby that can run without dependencies and such?
<turova>
I'm trying to put together a folder with some ruby binaries that can be semi-portable
<maho>
hanmac: um, not registered on freenode
<turova>
I know it's discouraged, but I need it at least temporarily
<hanmac>
turova: yeah similar, its only reason is to build ruby if you dont have a system or other ruby
Deck- has joined #ruby
sandstrom has joined #ruby
<turova>
gotcha
verde has quit [Remote host closed the connection]
shadoi has joined #ruby
<maho>
hanmac: Could you help?
krobzaur has quit [Ping timeout: 276 seconds]
<hanmac>
maho my python exp is ~ 0
<maho>
Somebody
ferr has quit [Quit: WeeChat 1.4]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
goodcodeguy has joined #ruby
BtcBen has joined #ruby
wolffles has quit [Quit: wolffles]
uri_ has quit [Quit: --]
tomphp has joined #ruby
cpruitt has quit [Quit: cpruitt]
<shevy>
maho go get a real client, register, then join #python
fostertheweb has joined #ruby
hamed_r has quit [Remote host closed the connection]
<maho>
shevy: That wouldn't help thoigh
<maho>
*though
kirillzh has joined #ruby
<gregf_>
maho: is your question like, what does this python code do?
bronson has quit [Ping timeout: 240 seconds]
<maho>
gregf_: No
kirillzh has quit [Client Quit]
bronson has joined #ruby
kirillzh has joined #ruby
fostertheweb has quit [Client Quit]
<gregf_>
so what you want is instead of (3 * ( 2 + 1)) (1 * (2 + 3 ))
Asher has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c0ncealed has quit [Remote host closed the connection]
tomphp has joined #ruby
krobzaur has joined #ruby
baweaver has joined #ruby
intrigue_ has joined #ruby
LuckyABA has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
alexishuard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
c0ncealed has joined #ruby
araujo_ has joined #ruby
rbennacer has joined #ruby
araujo_ has quit [Max SendQ exceeded]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
devbug has quit [Ping timeout: 244 seconds]
B1n4r10 has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
Kensei has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
freerobby has left #ruby [#ruby]
yqt has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
araujo_ has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
alexishuard has joined #ruby
ElFerna_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
krobzaur has quit [Ping timeout: 252 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
rbennace_ has joined #ruby
sp4rrow has joined #ruby
baweaver has quit [Remote host closed the connection]
jonee has quit [Remote host closed the connection]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
rbennacer has quit [Ping timeout: 276 seconds]
Mor has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 244 seconds]
zast1 has quit [Quit: Leaving.]
jenrzzz has joined #ruby
adgtl has quit [Remote host closed the connection]
fostertheweb has joined #ruby
sanguisdex has quit [Ping timeout: 240 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
moeabdol has joined #ruby
araujo_ has quit [Quit: Leaving]
goku` has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
Deck- has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
baweaver has joined #ruby
rbennace_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
Sigma01 is now known as Sigma00
sp4rrow has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
Dimik has quit [Ping timeout: 244 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
Renich has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
krobzaur has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
sinkensabe has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
zeroDivisible has joined #ruby
nb_bez___ has joined #ruby
RegulationD has quit [Remote host closed the connection]
hayden_ has quit [Quit: Connection closed for inactivity]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
andikr has quit [Remote host closed the connection]
maho has left #ruby [#ruby]
anirban has quit [Ping timeout: 244 seconds]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
nogic has joined #ruby
alexishuard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
codecop has joined #ruby
trosborn has quit [Quit: trosborn]
anirban has joined #ruby
jimcroft has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
cabargas has joined #ruby
mattwildig has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
dhollinger has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
michael_mbp has quit [Ping timeout: 255 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
cj has joined #ruby
sauvin has quit [Remote host closed the connection]
<cj>
Hey folks, I need to tell the builder not to build with references to deprecated OpenSSL symbols. Is there an argument for this?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
_djbkd has joined #ruby
graydot has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
nando293921 has joined #ruby
st0mar has joined #ruby
sinkensabe has joined #ruby
baweaver has joined #ruby
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jolts has joined #ruby
aegis3121 has joined #ruby
jolts has quit [Max SendQ exceeded]
pdoherty has joined #ruby
Antiarc has joined #ruby
alexishuard has joined #ruby
axisys has quit [Quit: leaving]
axisys has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has quit [Remote host closed the connection]
sandstrom has joined #ruby
Elysia has quit [Ping timeout: 250 seconds]
Elysia has joined #ruby
nogic has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has joined #ruby
michael_mbp has joined #ruby
hxegon has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
silverdust has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
jimcroft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
tomphp has joined #ruby
elifoster has joined #ruby
anirban is now known as MrDoctor
tomphp has quit [Client Quit]
Azulinho has quit [Quit: Azulinho]
mdw has quit [Quit: Sleeping Zzzzz]
Gnut has joined #ruby
quakephil_ has joined #ruby
quakephil has quit [Ping timeout: 244 seconds]
solars has quit [Quit: WeeChat 0.4.2]
solars has joined #ruby
Gnut_ has quit [Ping timeout: 276 seconds]
mary5030 has quit [Remote host closed the connection]
rbennacer has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Ping timeout: 276 seconds]
lsmola has quit [Ping timeout: 240 seconds]
rob_ has left #ruby [#ruby]
mattwildig has joined #ruby
mfb2 has quit [Remote host closed the connection]
Xeago has joined #ruby
moeabdol has joined #ruby
prefix has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 252 seconds]
trinaldi has quit [Quit: WeeChat 1.5-dev]
symm- has quit [Quit: Leaving...]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
<prefix>
does the JSON module make a distinction between strings and booleans when creating hashes? for example, given a config_hash that was converted from a json file using JSON.parse, will there be a difference between values "true" and true within config_hash?
fullofcaffeine has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
Deck- has joined #ruby
_djbkd has quit [Remote host closed the connection]
alexishuard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
humblespoon: #with_index is good, but `foo[1...-1] = foo[1...-1].map {}` is a little cleaner if you're okay with modifying the array in-place.
fullofcaffeine has joined #ruby
Gnut has quit [Ping timeout: 255 seconds]
idefine has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
ferr has joined #ruby
DmitryBochkarev has joined #ruby
<humblespoon>
ah thanks Ox0dea . I think I needed the index for another use case where we had to modify every even numbered entry in the array
idefine has joined #ruby
<Ox0dea>
humblespoon: Sure, #with_index is a great method, but having an involved conditional in a #map predicate is... unpleasant.
<humblespoon>
haha I feel like I'm a little to new to understand how that could be bad
<humblespoon>
don
the_jza has left #ruby [#ruby]
Gnut has joined #ruby
<humblespoon>
don't know what you mean by an "involved conditional" in the "#map predicate"
sinkensa_ has quit [Read error: Connection reset by peer]
<Ox0dea>
humblespoon: Those do essentially the same thing (if you're okay with the in-place modification), and I can't help but prefer one over the other. :P
sinkensabe has joined #ruby
bkxd has joined #ruby
<humblespoon>
o i see
<humblespoon>
makes sense
mfb2 has quit [Remote host closed the connection]
MyMind has joined #ruby
baweaver has joined #ruby
Sembei has quit [Ping timeout: 252 seconds]
<humblespoon>
is there an easy way to get irb to the directory where I'm currently writing my code?
ldnunes has quit [Quit: Leaving]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
?pry
<ruby[bot]>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.
<ruby[bot]>
org/ or get it now with: gem install pry pry-doc
sepp2k has quit [Quit: Leaving.]
<eam>
humblespoon: humblespoon Dir.chdir?
bkxd has quit [Ping timeout: 255 seconds]
<baweaver>
then use the `pry --gem` to load it in the context of a gem
Renich has quit [Quit: leaving]
<baweaver>
it probably has other lib features.
idefine has quit [Ping timeout: 264 seconds]
idefine_ has joined #ruby
mostlybadfly has joined #ruby
bkxd has joined #ruby
bronson has joined #ruby
tomphp has joined #ruby
<humblespoon>
baweaver I'll take a look at pry to see if I can get it to work. I'm completely new to this so not too sure how to do the other things yet
<baweaver>
Look up 'Pry the Good Parts' by Conrad Irwin
<baweaver>
it'll cover most of the fun stuff
<humblespoon>
ok thank you
MatthewsFace has quit [Remote host closed the connection]
idefine_ has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
pdoherty has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
mfb2 has joined #ruby
ElFerna_ has joined #ruby
st0mar has quit [Read error: Connection reset by peer]
st0mar has joined #ruby
johnmilton has quit [Remote host closed the connection]
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
devbug has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
_ht has quit [Ping timeout: 250 seconds]
sp4rrow has joined #ruby
_ht has joined #ruby
uri_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
flughafen_ has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
theunraveler has joined #ruby
pawnbox has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
jwinder has quit [Remote host closed the connection]
sandstrom has joined #ruby
Musashi007 has joined #ruby
rodolfowtf has quit [Read error: Connection reset by peer]
cantaberry has quit []
rakm has joined #ruby
mfb2 has quit [Remote host closed the connection]
Spami has quit [Quit: Leaving]
flughafen_ has quit [Ping timeout: 246 seconds]
intrigue_ has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
freerobby has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has quit [Read error: Connection reset by peer]
mfb2 has joined #ruby
ElFerna_ has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
theunraveler has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 268 seconds]
sevenfourk has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
kirillzh has joined #ruby
symm- has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
st0mar has quit [Quit: quit]
moeabdol has quit [Quit: WeeChat 1.4]
Rutix has joined #ruby
Rutix has joined #ruby
sinkensa_ has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
theunraveler has joined #ruby
ur5us has joined #ruby
mfb2 has quit [Remote host closed the connection]
x77686d has joined #ruby
kirun has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kensei has quit [Ping timeout: 260 seconds]
s00pcan_ has joined #ruby
fostertheweb has joined #ruby
chipotle has quit [Quit: cheerio]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
jivemeat has joined #ruby
evidex has joined #ruby
mpistone has joined #ruby
<jivemeat>
hey guys, I used rails installer but got this error when rails new app - "Checksum of /versions does not match the checksum provided by the server! Something is wrong"
ur5us has quit [Ping timeout: 248 seconds]
sp4rrow has quit [Ping timeout: 264 seconds]
<jivemeat>
Happened after it ran run bundle install
Gnut_ has joined #ruby
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jivemeat>
oh okay, sorry
Gnut has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
imperator has joined #ruby
<imperator>
hey
chipotle has joined #ruby
<imperator>
given a URI object, is there a better way to get this string? "#{uri.scheme}://#{uri.host}"
VeryBewitching has quit [Quit: Konversation terminated!]
wilbert has quit [Ping timeout: 264 seconds]
kenpoint has quit [Remote host closed the connection]