<riceandbeans>
shevy: rubocop says result is useless and should be show as such be being prepended with _
nankyokusei has joined #ruby
patrick-sartent has quit [Quit: .]
rkazak has joined #ruby
jancel has quit [Remote host closed the connection]
dudepare has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Chirimbolito has joined #ruby
MrBusiness2 has joined #ruby
postmodern has joined #ruby
solocshaw1 has joined #ruby
MrBusiness has quit [Ping timeout: 250 seconds]
Chirimbolito has quit [Client Quit]
solocshaw1 has quit [Client Quit]
dudepare has quit [Quit: Leaving]
hahuang62 has joined #ruby
WebDawg is now known as neoweb
adgtl has joined #ruby
<shevy>
huh? result is useless?
<shevy>
but you return it there
<shevy>
result, response = delete(uri)
<shevy>
result
hahuang62 has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
for response, there is a difference between response and _response that will be on the parser level, if you use the leading _ before response then ruby will not issue a warning about an unused local variable
yfeldblum has joined #ruby
evansbee has joined #ruby
karmatr0n has joined #ruby
tildes has joined #ruby
jaguarmagenta has joined #ruby
evansbee has quit [Ping timeout: 272 seconds]
Lord_of_Life has joined #ruby
MrBusiness3 has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Ping timeout: 246 seconds]
gking has joined #ruby
dionysus69 has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
<gking>
Hello, how can I parse a CSV URL with HTTParty?
<gking>
I know how to parse JSON for instance, but not sure how to do CSV.
<gking>
I know I can use CSV.parse too but I see that HTTParty has it built in already but not sure how to use it.
MrBusiness2 has quit [Ping timeout: 260 seconds]
<gking>
Or does it just auto detect the file type? It doesn't seem to always work in that case.
stardiviner has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease1 has joined #ruby
pawnbox has joined #ruby
roamingdog has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
Hyuk has joined #ruby
roamingdog has joined #ruby
saneax is now known as saneax_AFK
gking has quit [Quit: gking]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
rkazak has quit [Quit: Sleep.....ing....]
northfurr has quit [Ping timeout: 276 seconds]
KnownSy2 has joined #ruby
kgrz has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
KnownSyntax has quit [Ping timeout: 276 seconds]
binaryplease1 is now known as binaryplease
KnownSy2 has quit [Ping timeout: 250 seconds]
MrBusiness3 is now known as MrBusiness
kgrz has quit [Quit: Lost terminal]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
Beverage has joined #ruby
pwnd_nsfw` has joined #ruby
pawnbox has joined #ruby
houhouli_ has quit [Remote host closed the connection]
Wsewolod has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
Cohedrin_ has joined #ruby
d0lph1n98 has joined #ruby
Coldblackice has joined #ruby
<riceandbeans>
shevy: sorry I misread, response is useless
jancel has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evansbee has joined #ruby
`tim` has joined #ruby
jancel has quit [Ping timeout: 246 seconds]
terminalrecluse has joined #ruby
saneax_AFK is now known as saneax
Beverage is now known as Wsewolod
<shevy>
yeah, this is where rubocop just does what the ruby parser does. to be honest, rather than using _, I wonder if in these cases it would not better to disable that warning altogether from the ruby parser side
Wsewolod is now known as Beverage
Beverage is now known as Wsewolod
imperator has quit [Quit: This computer has gone to sleep]
<riceandbeans>
shevy: also, missing top level documentation?
<riceandbeans>
what's that mean?
MrBusiness has quit [Ping timeout: 250 seconds]
<shevy>
probably some docu header
<shevy>
"This class will rescue kittens."
karmatr0n has joined #ruby
<riceandbeans>
like line one should be # This class will rescue kittens
dionysus69 has quit [Remote host closed the connection]
<hanmac>
the last one is interactive and works in the browser
dionysus69 has joined #ruby
SirOliver has joined #ruby
<marahin>
Has anyone used https://github.com/JEG2/highline ? I'm wondering if it's possible to show in realtime how many characters has the user provided to the input
<mimtf>
thanks hanmac
<marahin>
E.g. twitter-like behavior: user fills in a post, and while typing it shows how many characters he used
<mimtf>
Apparently all Mobile Internet Service Providers (ISP) block any kind of incoming connections. So, no matter which port I want to forward it will be blocked by the ISP. (connection requests will never reach the router).
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
<shevy>
down with dictators! freedom for data!!!
nankyokusei has quit [Ping timeout: 264 seconds]
solocshaw1 has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
jancel has joined #ruby
<fujinuma>
shevy: elm has the gem feature built-in.
<fujinuma>
shevy: that's cool.
Cohedrin has joined #ruby
miqlas-H has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
fenre has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
fenre has quit [Remote host closed the connection]
<riceandbeans>
if you do foo = get(uri) instead of foo, response = get(uri) what would happen?
aryaching has joined #ruby
solocshaw1 has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 276 seconds]
jancel has quit [Read error: Connection reset by peer]
<shevy>
the world will collapse
<shevy>
it depends on what get() returns to you obviously
<shevy>
so what does it return?
banister has joined #ruby
jancel has joined #ruby
<jhass>
riceandbeans: what will happen is that if get returns an array, its first two values will end up in foo and response, if it doesn't response will always be nil
<shevy>
if it returns an array you will get: a, *bcd = %w( a b c d ) # => ["a", "b", "c", "d"]; a # => "a"; bcd # => ["b", "c", "d"]
<shevy>
if you use the *
saneax is now known as saneax_AFK
fujinuma has quit [Quit: WeeChat 1.5]
Gasher^ has joined #ruby
jgt has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
rueben has joined #ruby
jancel has quit [Read error: Connection reset by peer]
Oclair has quit [Quit: Bye Bye]
<riceandbeans>
so it is sort of necessary to use it in order to keep unwanted data out of another variable
jancel has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<jhass>
it's not different from a = call; b = a[0]; c = a[1]
jancel has quit [Ping timeout: 244 seconds]
banister has joined #ruby
smathy has joined #ruby
GodFather has joined #ruby
pwnd_ has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
johnmilton has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
jaguarmagenta has joined #ruby
moeabdol has joined #ruby
blaxter has joined #ruby
DadoCe has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
evansbee has joined #ruby
pwnd_nsfw` has joined #ruby
hahuang62 has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
blaxter has joined #ruby
rueben has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
hahuang62 has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
diegoviola has joined #ruby
<jokke>
hey, about rack middleware: i want to write a middleware for my sinatra app that just parses some headers and adds stuff to env. how can i do this without actually handling the whole request?
<jhass>
what do you mean handling the whole request?
pawnbox has joined #ruby
<smathy>
jokke, might be better to ask in #rubyonrails
karmatr0n has joined #ruby
blaxter has joined #ruby
amclain has joined #ruby
<jhass>
not sure how rack is rails specific ...
blaxter has quit [Client Quit]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harfangk has quit [Quit: harfangk]
karmatr0n has quit [Ping timeout: 250 seconds]
imperator has joined #ruby
romistrub has joined #ruby
<romistrub>
hello
llua has left #ruby [#ruby]
llua has joined #ruby
<romistrub>
I have a couple of classes that are namespaced by a module (the module is included using 'require'). How should I name the files that contain, for example, Framework::WebSocket
<romistrub>
waaaaiiiit... does that mean I have to create subdirectories for each module? :|
jhack has joined #ruby
<shevy>
riceandbeans well you are in full control of what data to use and what not; even if you don't put it all in one line, you can use methods on class Array or class Hash to .select or .reject what you want and don't want
<jhass>
romistrub: yes
<jhass>
well, no, only if you use it as namespace
<romistrub>
huh; k
imperator has quit [Quit: This computer has gone to sleep]
imperator has joined #ruby
<riceandbeans>
shevy: if you only want to keep the first element of the array is it cleaner to do arr1, arr2 = whatever, or to do arr1 = whatever and then chop off everything but the first element?
jhack has quit [Client Quit]
[74]HELLth has quit [Remote host closed the connection]
<adaedra>
riceandbeans: use Array#shift
dcunit3d has joined #ruby
<jhass>
arr1 = whatever.shift specifically
the_drow has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
dionysus69 has joined #ruby
phoo1234567 has joined #ruby
toretore has joined #ruby
<shevy>
yeah
<spudowiar>
ARGH
<spudowiar>
sorry
<shevy>
ARGV
<spudowiar>
It's weird though
<jhass>
ARGF
<spudowiar>
I've got this method in Jekyll, which isn't working at all
<shevy>
riceandbeans I think using methods like the above .shift will be the best, I found that in complex setups, my brain takes longer to process so I try to go for minimal complexity and maximal elegance whenever possible
<spudowiar>
The method is just `def obsolete_files (existing_files - new_files - new_dirs + replaced_files).to_a end`
<spudowiar>
And all the methods it calls are fine
<spudowiar>
But it's returning a blank array
dionysus69 has quit [Ping timeout: 260 seconds]
dcunit3d has quit [Ping timeout: 244 seconds]
<spudowiar>
When I put `puts` before it, it prints the correct stuff
<shevy>
best to put the full reproducible code onto a pastie site
agentmeerkat has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<spudowiar>
It's part of a complex project
<spudowiar>
Trying to reproduce it externally
the_drow has joined #ruby
dionysus69 has joined #ruby
tildes has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
salexa has quit [Remote host closed the connection]
skade has joined #ruby
snath has joined #ruby
SirOliver has joined #ruby
agentmeerkat has quit [Ping timeout: 264 seconds]
dasher00 has joined #ruby
Some-body_ has joined #ruby
yfeldblum has joined #ruby
DarthGandalf has quit [Ping timeout: 272 seconds]
Some-body_ is now known as DarthGandalf
the_drow has quit [Read error: Connection reset by peer]
fujinuma has joined #ruby
<fujinuma>
setup() method only triggers when test_* methods are defined
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has joined #ruby
the_drow has joined #ruby
<fujinuma>
how to run setup() method without test_* methods? kind of testing if it correctly instantiates.
* fujinuma
means minitest framework
<ljarvis>
fujinuma: how would you test that without first adding a test_* method?
<fujinuma>
ljarvis: reasonably setup() should trigger without test_* methods its existence is to be instantiate class object.
iCHAIT_ has joined #ruby
<iCHAIT_>
Hello guys.
<iCHAIT_>
CAn someone give me some pointers on how to port this python method - http://dpaste.com/0R06VW4
<iCHAIT_>
It is using patch decorator.
<ljarvis>
fujinuma: no, it's existence is based on triggering before a test_* method is called
k3rn31 has joined #ruby
<jhass>
someone or some guy specifically?
<adaedra>
iCHAIT_: simple. Look at what the method does, throw away the python code, code it in Ruby.
<iCHAIT_>
I am using the mocha library for mocking.
<ljarvis>
iCHAIT_: Yes, what do you have so far?
someish has joined #ruby
<fujinuma>
ljarvis: OK, I think I got it wrong. that's fair enough :)
<ljarvis>
anyway, you can't do exactly what you want because Ruby doesn't have first-class functions/methods like Python does (which allows you to inject methods as mocks, I think)
<spudowiar>
Can you return an array that you instantiated in a method, from a method in Ruby
<ljarvis>
so I would probably avoid mocking this and test it fully. I don't see a reason for the mock myself
<jhass>
?try spudowiar
<ruby[bot]>
spudowiar: Why don't you try it and see for yourself?
<ljarvis>
spudowiar: did you try it?
<ljarvis>
heh
jgt has quit [Ping timeout: 264 seconds]
<spudowiar>
jhass: I'm having serious problems with some code, wondering if that's why
<jhass>
?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
<spudowiar>
jhass: it's not code I wrote myself, it's part of Ruby
<jhass>
still applies
<spudowiar>
jhass: basically, I have an array and inside the method it's fine, when I return it the caller sees an empty array
<ljarvis>
but perhaps im missing something and don't understand
<Lewix>
Is there something equivalent to unshift that does not modify the value in place
<ljarvis>
also I generally dislike mocks because they're overused and they introduce misdirection
<ljarvis>
Lewix: foo = [1] + foo
<jhass>
Lewix: [value, *array]
<Lewix>
so the answer is no
<Lewix>
thanks
<ljarvis>
..
<iCHAIT_>
ljarvis: Okay, that looks interesting, BTW, what you mentioned is exactly what the @patch in the python code is doing, it creates an object for the func. create_or_update, stores the result in the arg. mock_create_or_update and then asserts.
<Lewix>
ljarvis: you can always implement anything it doesn't mean it's provided by default
Dimik has joined #ruby
<ljarvis>
Lewix: that is provided by default, we didn't import any libraries
<ljarvis>
Lewix: what do you want exactly?
<ljarvis>
do you want a *method* that does something equivalent? because you didn't say that
<jhass>
Lewix: [value, *array] is hardly any longer/verbose than array.unshift(value)
<iCHAIT_>
ljarvis: I didn't understand this line in the gist - assert_equal "omg", time.something
<Lewix>
there isn't a method similar to unshift in the standard library that effectively does what #unshift do but does not modify the value in place. correct?
<ljarvis>
iCHAIT_: it just asserts that time.something == "omg"
<ljarvis>
Lewix: correct
<Lewix>
thanks
<jhass>
Lewix: and the reason is that we have efficient and short syntax to do it
skade has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
shinnya has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
<iCHAIT_>
ljarvis: ok, so you are suggesting to do it without mocking, right?
arlek has joined #ruby
fujinuma has quit [Ping timeout: 252 seconds]
<ljarvis>
iCHAIT_: I am, mocking is useful for some things, but nothing has yet demonstrated that it would be useful for what you're doing
<iCHAIT_>
ljarvis: okay, thank you.
<ljarvis>
yw
<ljarvis>
I need to run, bbl
aryaching_ has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 258 seconds]
wixad_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
codecop has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
<wixad_>
Hi ppl
<jhass>
hi
rkazak has joined #ruby
Xiti has quit [Quit: Xiti]
mtkd has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wixad_>
im doing the ruby quiz LCD Numbers(#14)
mercerist has joined #ruby
mtkd has joined #ruby
JammyHammy has quit [Read error: Connection reset by peer]
arlek has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
<wixad_>
in Dale Martenson's solution he uses state = @@lcdStates.reverse
<manveru>
seems pretty unnecessary, he could've just written it in reverse instead
Xiti has joined #ruby
<manveru>
as it is now, it's more of an alias to .dup
JammyHammy has joined #ruby
<jhass>
actually he could just have used each_with_index instead
<manveru>
well, it's 2005 style ruby :)
<manveru>
there was no each_with_index
<shevy>
wixad_ must be a historian
pilne has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<shevy>
people were still excited about @@vars
zacstewa1t has joined #ruby
p0p0pr37_ has joined #ruby
jas02_ has joined #ruby
<wixad_>
what is the reverse method suposed to solve
flak has joined #ruby
<manveru>
it gives you a reversed copy of the array
Regulati_ has joined #ruby
dn`_ has joined #ruby
<manveru>
so you can call pop on it
<manveru>
otherwise you could call .dup and then use .unshift
Nahra` has joined #ruby
DoubleMalt has joined #ruby
<wixad_>
th
yosafbridge` has joined #ruby
<wixad_>
x
ijij__ has joined #ruby
jhack has joined #ruby
jpinnix________ has joined #ruby
meinside_ has joined #ruby
deepak__ has joined #ruby
HashNuke___ has joined #ruby
ec_ has joined #ruby
andersh_ has joined #ruby
Meow-J_ has joined #ruby
charles81_ has joined #ruby
bcavileer_ has joined #ruby
Jamo_ has joined #ruby
shiver_ has joined #ruby
jzigmund_ has joined #ruby
bradland has joined #ruby
darix- has joined #ruby
Drakx has joined #ruby
sunya7a has joined #ruby
tommylom1ykins has joined #ruby
galeido_ has joined #ruby
Weavel_ has joined #ruby
shiver_ has quit [Client Quit]
majuscul1 has joined #ruby
bfrizzle_ has joined #ruby
shiver_ has joined #ruby
houhoulis has joined #ruby
shiver has quit [Disconnected by services]
shiver_ is now known as shiver
shiver has quit [Changing host]
shiver has joined #ruby
jaguarmagenta has joined #ruby
marr has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tekk has joined #ruby
spacemud_ has joined #ruby
tekmaster has joined #ruby
tcrypt has joined #ruby
Arcaire_ has joined #ruby
mayamai has joined #ruby
twe4ked_ has joined #ruby
M-Kodo1 has joined #ruby
Lightsword_ has joined #ruby
jhass|off has joined #ruby
jyaworski_ has joined #ruby
headius_ has joined #ruby
DiabolikFreenode has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
iooner- has joined #ruby
bgresham has joined #ruby
moufl- has joined #ruby
mweshi has joined #ruby
RazorX- has joined #ruby
Diabolik has quit [Disconnected by services]
Fire-Dragon-DoL- has joined #ruby
bodie__ has joined #ruby
Weavel has quit [*.net *.split]
Meow-J has quit [*.net *.split]
jas02 has quit [*.net *.split]
zacstewart has quit [*.net *.split]
rippa has quit [*.net *.split]
BTRE has quit [*.net *.split]
RegulationD has quit [*.net *.split]
rapha has quit [*.net *.split]
dn` has quit [*.net *.split]
iooner has quit [*.net *.split]
jhass has quit [*.net *.split]
gomix has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
iamayam has quit [*.net *.split]
tekku has quit [*.net *.split]
Lightsword has quit [*.net *.split]
meinside has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
Log1x_ has quit [*.net *.split]
demophoon has quit [*.net *.split]
sunya7a_1 has quit [*.net *.split]
bradland_ has quit [*.net *.split]
Drakx_ has quit [*.net *.split]
charles81 has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
Jamo has quit [*.net *.split]
M-Kodo has quit [*.net *.split]
Nahra has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
jyaworski has quit [*.net *.split]
ec has quit [*.net *.split]
deepak_ has quit [*.net *.split]
ijij_ has quit [*.net *.split]
andersh has quit [*.net *.split]
HashNuke__ has quit [*.net *.split]
bcavileer has quit [*.net *.split]
jpinnix_______ has quit [*.net *.split]
davidmichaelkarr has quit [*.net *.split]
RazorX has quit [*.net *.split]
moufl has quit [*.net *.split]
tekacs has quit [*.net *.split]
Arcaire has quit [*.net *.split]
eggoez has quit [*.net *.split]
darix has quit [*.net *.split]
bfrizzle has quit [*.net *.split]
Billias has quit [*.net *.split]
Caelum has quit [*.net *.split]
galeido has quit [*.net *.split]
majuscule has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
bjmllr has quit [*.net *.split]
spacemud has quit [*.net *.split]
twe4ked has quit [*.net *.split]
bodie_ has quit [*.net *.split]
headius has quit [*.net *.split]
jzigmund has quit [*.net *.split]
jokester has quit [*.net *.split]
tylersmith has quit [*.net *.split]
moufl- is now known as moufl
Lightsword_ is now known as Lightsword
twe4ked_ is now known as twe4ked
Fire-Dragon-DoL- is now known as Fire-Dragon-DoL
DiabolikFreenode is now known as Diabolik
jhass|off is now known as jhass
jas02_ is now known as jas02
jyaworski_ is now known as jyaworski
dn`_ is now known as dn`
iooner- is now known as iooner
darix- is now known as darix
tekmaster is now known as tekacs
p0p0pr37_ is now known as p0p0pr37
davidmichaelkarr has joined #ruby
bodie__ is now known as bodie_
eggoez has joined #ruby
hahuang62 has joined #ruby
Pisuke has joined #ruby
jpinnix________ is now known as jpinnix_______
banister has joined #ruby
bcavileer_ is now known as bcavileer
meinside_ is now known as meinside
charles81_ is now known as charles81
deepak__ is now known as deepak_
Log1x has joined #ruby
MyMind has quit [Ping timeout: 276 seconds]
DoubleMalt has quit [Ping timeout: 276 seconds]
andersh_ is now known as andersh
<jhass>
wixad_: so my connection dropped and most of what I said didn't come through. .dup and .shift is the most analogous technique, these days you'd use each_with_index, more alternatives are just using @@lcdStates[i] or .each and keeping a manual counter
mweshi has quit [Client Quit]
edwardly has quit [Ping timeout: 264 seconds]
spudowiar has quit [Ping timeout: 264 seconds]
Billias has joined #ruby
nankyokusei has quit [Remote host closed the connection]
<wixad_>
thx@jhass
ec_ is now known as ec
hahuang62 has quit [Ping timeout: 250 seconds]
BTRE has joined #ruby
rapha has joined #ruby
YaknotiS has joined #ruby
bjmllr has joined #ruby
jokester has joined #ruby
k3rn31 has joined #ruby
gomix has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
elvillanorevento has joined #ruby
Meow-J_ is now known as Meow-J
someish has quit [Quit: someish]
xxneolithicxx has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jhack has quit [Quit: jhack]
mweshi has joined #ruby
yardenbar has joined #ruby
nankyokusei has joined #ruby
jas02 has quit [Quit: jas02]
mweshi__ has joined #ruby
karmatr0n has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
mello has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Remote host closed the connection]
nankyoku_ has joined #ruby
DoubleMalt has joined #ruby
spudowiar has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
Sembei has joined #ruby
mweshi has quit [Quit: Gone fishing!]
SilverKey has joined #ruby
Pisuke has quit [Ping timeout: 252 seconds]
yqt has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
k3rn31 has quit [Quit: Computer has gone to sleep.]
jas02 has joined #ruby
bluOxigen has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
futilegames has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
snath has quit [Ping timeout: 240 seconds]
mweshi__ has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 244 seconds]
mweshi has joined #ruby
LoneHermit has joined #ruby
yardenbar has quit [Ping timeout: 258 seconds]
armyriad has joined #ruby
dcunit3d has joined #ruby
yardenbar has joined #ruby
SirOliver has joined #ruby
dcunit3d has quit [Ping timeout: 272 seconds]
futilegames has quit [Quit: futilegames]
startupality has joined #ruby
amclain has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
banister has joined #ruby
snath has joined #ruby
nankyoku_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
jhack has quit [Quit: jhack]
amclain has joined #ruby
jhack has joined #ruby
jancel has joined #ruby
Uranio has joined #ruby
xlegoman has joined #ruby
futilegames has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
conta has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
jgt has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
zapata has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
jaguarmagenta has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 260 seconds]
certainty has quit [Ping timeout: 246 seconds]
webus has quit [Ping timeout: 260 seconds]
hahuang62 has joined #ruby
Gasher^ has quit [Quit: Leaving]
rkazak has quit [Quit: Sleep.....ing....]
yardenbar has quit [Ping timeout: 252 seconds]
malconis has joined #ruby
malconis has quit [Client Quit]
skade has joined #ruby
GodFather has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
nhhc has joined #ruby
GodFather has quit [Client Quit]
giz|work has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
nankyokusei has joined #ruby
houhoulis has quit [Remote host closed the connection]
<shevy>
so you want to put something into the third array
dmr8 has joined #ruby
<shevy>
I have not fully gotten to the part which one you specifically need, but this appears to be solvable via a .select, inside it you can use .include?
<shevy>
ah
<shevy>
you want to add non-unique entries?
<shevy>
.uniq should do
MrBusiness has joined #ruby
<riceandbeans>
well, the complaint was that in this manner, for larger arrays it would have to scan the last array every time and be increasingly slow
<shevy>
hmm
circ-user-AQzCn has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 249 seconds]
SirOliver has quit [Quit: ZZZzzz…]
kareeole_ has joined #ruby
circ-user-AQzCn is now known as psmmr
Sashimi_ has quit [Ping timeout: 264 seconds]
jas02 has quit [Quit: jas02]
symm- has joined #ruby
<riceandbeans>
shevy: I see it as a valid complaint, but don't know how to address it
Tony-St4rk has quit [Quit: Updating details, brb]
Tony-St4rk has joined #ruby
<riceandbeans>
I mean, if it was guaranteed to be numeric, and if you did a binary search in the array each push to insert in numerical order I guess maybe it would be faster for larger arrays?
kareeoleez has quit [Ping timeout: 264 seconds]
SirOliver has joined #ruby
MrBusiness has quit [Ping timeout: 272 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
skweek has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
rueben has joined #ruby
bluOxigen has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
hutch34 has quit [Ping timeout: 276 seconds]
rgs has joined #ruby
chandlerbing_ has quit [Quit: Leaving...]
SirOliver has joined #ruby
psmmr has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
newbie|2 has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
jhack has quit [Quit: jhack]
TomyLobo has quit [Ping timeout: 260 seconds]
<shevy>
I don't know how you can do sub-selections within array elements without checking the rest of the array in ruby
bluOxigen has joined #ruby
elvillanorevento has quit [Ping timeout: 260 seconds]
confound_ has joined #ruby
DTZUBDUB has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
<jhass>
riceandbeans: use Set
<al2o3-cr>
riceandbeans: you can use set intersection/union
ornerymoose has joined #ruby
rueben has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
<riceandbeans>
what is set?
<riceandbeans>
jhass: al2o3-cr can you explain to me the idea in general for what you would do?
Rodya_ has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
MrBusiness has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
steve has joined #ruby
mdw has joined #ruby
Weavel_ has quit [Quit: If you can't laugh at yourself, make fun of other people.]
jgt1 has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
mikecmpbll has joined #ruby
hahuang62 has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
mdw has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
kareeoleez has quit [Remote host closed the connection]
hahuang62 has quit [Ping timeout: 250 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
flashpoint9 has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
alexherbo2 has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
leitz has joined #ruby
jancel has joined #ruby
ta_ has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
elvillanorevento has joined #ruby
startupality has joined #ruby
nertzy2 has quit [Ping timeout: 246 seconds]
apofis has joined #ruby
jancel has quit [Ping timeout: 260 seconds]
MrBusiness2 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
xall_ has joined #ruby
elvillanorevento has quit [Ping timeout: 276 seconds]
MrBusiness has quit [Ping timeout: 258 seconds]
xall has joined #ruby
psmmr has joined #ruby
ecksit has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
Caelum has joined #ruby
dmr8 has quit [Quit: Leaving]
alexherbo2 has joined #ruby
xall_ has quit [Ping timeout: 252 seconds]
futilegames has quit [Quit: futilegames]
xall_ has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
ornerymoose has joined #ruby
kirun has quit [Quit: Client exiting]
xall has quit [Ping timeout: 250 seconds]
lightt has joined #ruby
davedev24 has joined #ruby
tristanp_ has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 250 seconds]
MrBusiness2 has quit [Quit: Leaving]
<leitz>
Okay, easy question. If I my_module.method(object), and the method would change the object, is the original object changed once the method ends?
<leitz>
I thought it would be but some results suggest not.
<jhass>
its is
<jhass>
ruby is entirely pass by reference
alexherbo2 has quit [Ping timeout: 272 seconds]
<leitz>
That's what I thought. Must be operator error.
<Radar>
leitz: It is, unless the object is a number
<Radar>
If you have some small code which can repro the issue then we can point out why it's acting that way
zenlot6 has quit [Ping timeout: 260 seconds]
<leitz>
Let me work on it. I'm right at the edge of my understanding, and trying to simplify the code.
flashpoint9 has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
ornerymoose has joined #ruby
ornerymoose has quit [Client Quit]
nankyokusei has quit [Remote host closed the connection]
xall has joined #ruby
spider-mario has quit [Remote host closed the connection]
nankyokusei has joined #ruby
mdw has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
Azure|dc has joined #ruby
Azure has quit [Disconnected by services]
Azure|dc is now known as Azure
nankyokusei has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
alexherbo2 has joined #ruby
ta_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tomchapin has joined #ruby
diffy has joined #ruby
<diffy>
Hi! I have tried to google, no luck. Does anybody know how to store an entire array to a google drive spreadsheet? I have the google-drive gem up and running, authenticated and it is working. But I found no examples on how to do this.
<orangey>
When I try to run the rails server, I get: "/vagrant/lib/email/message_builder.rb:20: warning: already initialized constant Email::MessageBuilder::REPLY_TO_AUTO_GENERATED_HEADER_KEY", which I gather means that it's not understanding what it should do?
<shevy>
save for the Marine one since that you one you made conditional
<shevy>
erm
<shevy>
get rid of one word from my prior line :D
firstdayonthejob has quit [Ping timeout: 276 seconds]
<leitz>
Shouldn't a module that uses another module require it?
pwnd_nsfw has quit [Ping timeout: 250 seconds]
<shevy>
you can test it when the other files will be required
<shevy>
do some puts statement in the other .rb files that you require
<shevy>
you will see that there will be no difference between: require 'foo'; module Bar; ... and: module Bar; require 'foo'
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
Bear_ has joined #ruby
ledestin has joined #ruby
jaiks1 has quit [Ping timeout: 250 seconds]
spudowiar has quit [Ping timeout: 258 seconds]
xall has joined #ruby
NSABear has quit [Ping timeout: 260 seconds]
<leitz>
Oh, cool. using a totally different set of files. If the calling program includes Marine, and the Traveller module does not include Marine, I can still call Marine.hello from inside Traveller.
northfurr has quit [Quit: northfurr]
karmatr0n has quit [Ping timeout: 276 seconds]
<leitz>
So, a module question. Should it require modules it calls, or assume the program calling it will require them?
tomchapi_ has joined #ruby
spudowiar has joined #ruby
axsuul has joined #ruby
<leitz>
That is, if CharacterTools uses methods from Traveller, should it require Traveller? I'm tryng to break things up into Single use bits.
xall has quit [Ping timeout: 258 seconds]
m_antis has joined #ruby
tomchapin has quit [Ping timeout: 244 seconds]
m_antis has quit [Remote host closed the connection]
arooni has quit [Ping timeout: 250 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
<orangey>
Any thoughts on how to replace a class? I've posted the repo here: https://github.com/tareko/replyto-individual/ . It's the plugin.rb that should replace the MessageBuilder function but seems not to
pawnbox has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
i8igmac has joined #ruby
jaiks1 has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
<i8igmac>
im trying to read from a binary file. remove the header, and save the rest of the binary data as file.mp3
<i8igmac>
all my attempts to do so, turn the file into hex