<SeepingN>
but I've now seen/read 3 times where a problem someone was having was due to pry, or pry and some library not working togegther
olivi____ has quit [Ping timeout: 246 seconds]
<SeepingN>
or perhaps it was the/a logger
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<banisterfiend>
SeepingN it doesn't do anything? it can show you source code for methods/classes on demand, it makes complicated introspection/reflection actions trivial to perform, and so on. My guess is, it doesn't do anything for you because you haven't learned what it can do ;)
kkiero has quit [Quit: leaving]
<al2o3-cr>
what a croc of shite
ResidentBiscuit has joined #ruby
<al2o3-cr>
pry is the best thing sliced/buttered bread
<al2o3-cr>
*since
bruno- has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
<warrshrike>
muzik: its a batch analysis kind of thing -> read long text files (app data) -> make OO objects 'nodes' -> apply a string matching algorithm 'levinshtein'
wanhar has quit [Remote host closed the connection]
<warrshrike>
basically, by comparing different "appdata's" for similarity, it tries to find malware, but isn't really relevant i guess
wanhar has joined #ruby
<muzik>
Can any of your code be further optimized?
<havenwood>
warrshrike: what db are you using? is this a db query?
<warrshrike>
basically there are 2000 apps. so it should take 2000 * 2000 * time taken. time taken varies from 0.1 ms to 16 ms.
<muzik>
By using "puts 1", "puts 2" and using the time command in your shell, you can look for slow parts
<warrshrike>
havenwood: no reading off text files stored on my ssd
guacamol_ has joined #ruby
<warrshrike>
muzik: i suspect the levinshtein algorithm is too slow
<warrshrike>
il show you guys maybe you can spot something obvious
<havenwood>
warrshrike: Ah, was going to say we use Postgres fuzzystrmatch for fast levenshtein.
<havenwood>
warrshrike: What's your implementation? Using the one from Gem::Text or a gem?
<muzik>
Wow. thats an interesting read on wikipedia
moei has quit [Quit: Leaving...]
<muzik>
Could you run it in a ram drive?
<warrshrike>
havenwood: err something i read off a website...here it is
<ruby-lang952>
please an someone help me with debugging this.I am new to Ruby actually
<ruby-lang952>
i am getting the correct value in console , but getting wrong in erb.html
jinie_ has quit [Ping timeout: 260 seconds]
jinie_ has joined #ruby
aupadhye has joined #ruby
umaaji has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
domgetter has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCoder21 has joined #ruby
workmad3 has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
Cohedrin_ has joined #ruby
andy has joined #ruby
andy has quit [Client Quit]
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
JBlazeCo_ has joined #ruby
ledestin has joined #ruby
Pumukel has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCo_ has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
<dminuoso>
ruby-lang952: What is wrong about it?
wnd has quit [Excess Flood]
wnd has joined #ruby
<dminuoso>
ruby-lang952: But sure. The trick to debugging is isolation and/or introspection. a) you want to make sure as much irrelevavnt code as possible is removed, and b) you get a perspective from the context that stuff goes wrong.
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
<dminuoso>
The first is easily doable with the help of git branches (just stash uncommitted changes away, create a new branch and just delete unnecessary code quickly), the second is usually a combination of pry, byebug (or both with pry-byebug) and various "logging" methods.
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
* arahael
usually goes straight to logging.
yunior_alayo has quit [Remote host closed the connection]
yunior_alayo has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
Serpent7776 has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
Macaveli has joined #ruby
juggler has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
<Terens>
I get this RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: upgrade to 2.3.1.
romankapitonov has joined #ruby
guardianx has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
Pumukel has quit []
<dminuoso>
Terens: And you have trouble understanding what it wants from you?
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 260 seconds]
gokhan__ has joined #ruby
<Terens>
no
ResidentBiscuit has quit [Ping timeout: 276 seconds]
<Terens>
I wonder whether it is a real problem
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCo_ has joined #ruby
<apeiros>
no, they just went out of their way to write that warning for fun
<Terens>
lol
<Terens>
If it was under my control I would upgrade
jameser has joined #ruby
tvw has quit []
tvw has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
jgt has joined #ruby
Bhootrk_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCoder21 has joined #ruby
bronson has joined #ruby
SteenJobs_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
Terens: But I see your pain. It would really be helpful if programs didn't annoy you constantly that there's important updates pending. Remember those days when you would just install an apache with mod php and never upgrade it for the next 15 years?
<dminuoso>
As you can see it was just a minor bugfix patch.
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCo_ has joined #ruby
ElFerna has joined #ruby
ruby-lang952 has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
<Terens>
lol this is bug
<Terens>
big*
gokhan__ has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
millerti has joined #ruby
bonhoeffer has joined #ruby
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
JBlazeCo_ has quit [Ping timeout: 258 seconds]
JBlazeCoder21 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
StoneWaves has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.9]
drkhsh has joined #ruby
rabajaj has joined #ruby
<drkhsh>
hey all, i have to setup gitlab with ci for work and they want me to implement the missing feature from https://gitlab.com/gitlab-org/gitlab-ce/issues/13187 but i am not able to find a solution as i never used ruby lol ^^ can anyone help me where to get started?
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
JBlazeCo_ has joined #ruby
<drkhsh>
dminuoso: i dont want to learn ruby. i have to get work done and i thought someone in here has a little time to look over the code and point me in the right direction
<muzik>
But Ruby is the greatest programming language, like, EVAR!
<dminuoso>
drkhsh: So let me get this straight. You don't want to learn Ruby, but you want to contribute to a project written in Ruby?
<muzik>
He wants to work, but doesnt want to know how the work works. Thats works
<drkhsh>
dminuoso: i dont want to contribute. i have to. we need this feature in my company and i have to set it up
<dminuoso>
Let's see what yorickpeterse has to say :-)
<drkhsh>
is anyone in here willing to have a look. please
<muzik>
What is the problem? Where is a pastebin of the code?
<dminuoso>
drkhsh: Start learning how gitlab-ci works.
<dminuoso>
drkhsh: But.. without understanding Ruby that would be quite an interesting journey.
<drkhsh>
dminuoso: i know how gitlab-ci works
<drkhsh>
i worked with it full time for 3 days now
<herwin>
the easier solution would be to pay someone to fix it for you
<dminuoso>
drkhsh: You understand how to _use_ it.
<dminuoso>
You dont know how it works.
<drkhsh>
yeah ok ^^
<dminuoso>
What herwin said ^-
<dminuoso>
Hire someone or learn Ruby.
JBlazeCo_ has quit [Ping timeout: 248 seconds]
<drkhsh>
yeah ^^
JBlazeCoder21 has joined #ruby
<drkhsh>
thought someone of you ruby-geniuses has a clue where the key functions are
<dminuoso>
drkhsh: In a project of that magntitude it will be more than just "inserting some line of code in the right place"
<drkhsh>
dminuoso: but it should be. i already had a look in some files
<drkhsh>
app/models/ci/pipeline.rb for example
<dminuoso>
drkhsh: I wouldn't know. I dont understand how gitlab works internally.
<drkhsh>
hm
<herwin>
this feels a bit like asking ``you all speak English, I don't understand this book about quantum physics that is written in English, could someone help me with that?''
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
sysvalve has joined #ruby
<ytti>
drkhsh, i'm sure gitlab will build feature your company wants if you pay them
<ytti>
drkhsh, probably will be quite affordable too
<StoneWaves>
Have you asked in #gitlab about the status of the feature and any progress?
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
howdoi has joined #ruby
<ytti>
this is probably week of work for someone not familiar with gitlab
jameser has joined #ruby
<ytti>
and probably half a day for someone familiar with gitlab
rgtk has quit [Ping timeout: 248 seconds]
rgtk has joined #ruby
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 276 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
ramfjord has joined #ruby
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
jameser has joined #ruby
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 268 seconds]
muzik has quit [Read error: Connection reset by peer]
cahoots has joined #ruby
muzik has joined #ruby
muzik has quit [Client Quit]
muzik has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
JBlazeCoder21 has joined #ruby
ldnunes has joined #ruby
muzik has quit [Client Quit]
muzik has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
muzik has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 260 seconds]
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
muzik has joined #ruby
Macaveli has joined #ruby
muzik has quit [Client Quit]
muzik has joined #ruby
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 276 seconds]
bonhoeffer has quit [Ping timeout: 246 seconds]
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
dionysus69 has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
rgtk has quit [Ping timeout: 240 seconds]
eregon_ is now known as eregon
ramfjord has joined #ruby
rgtk has joined #ruby
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
guardianx has left #ruby [#ruby]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 248 seconds]
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
__Yiota has joined #ruby
Bhootrk_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
anisha has quit [Read error: Connection reset by peer]
SteenJobs_ has joined #ruby
anisha has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
ramfjord has joined #ruby
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
nzst has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
dionysus69 has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
pandaant has quit [Remote host closed the connection]
synthroi_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
phinxy has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
ahmgeek has joined #ruby
<ahmgeek>
hey all
zanshin has quit [Quit: WeeChat 1.8]
<ahmgeek>
ehy there's no a good book regards testing
synthroid has quit [Ping timeout: 255 seconds]
<ahmgeek>
in ruby I mean
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
stoffus has quit [Ping timeout: 248 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
ahmgeek has quit [Client Quit]
JBlazeCoder21 has joined #ruby
ramfjord has joined #ruby
nekomune has quit [Ping timeout: 246 seconds]
aurelien has quit [Ping timeout: 258 seconds]
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
mim1k has joined #ruby
<muzik>
There are plenty
tacoboy has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
nekomune has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
__Yiota has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
eljimmy has joined #ruby
rgtk has quit [Ping timeout: 248 seconds]
olivi____ has joined #ruby
charliesome has joined #ruby
Mon_Ouie has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
rfoust has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCo_ has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
Bhootrk_ has quit [Read error: Connection reset by peer]
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
synthroi_ has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 258 seconds]
aclark has quit [Remote host closed the connection]
cahoots has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCo_ has joined #ruby
aclark has joined #ruby
t-recx has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
truenito has joined #ruby
naprimer2 has quit [Ping timeout: 240 seconds]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
__Yiota has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
tvw has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
ElFerna has joined #ruby
dhaller has joined #ruby
fohpi has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
synthroid has joined #ruby
chouhoulis has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
GodFather has joined #ruby
cahoots has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
naprimer2 has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Excess Flood]
JBlazeCoder21 has joined #ruby
_aeris_ has joined #ruby
GodFather has quit [Quit: Ex-Chat]
fohpi has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
apparition has joined #ruby
ferr has quit [Quit: WeeChat 1.9]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCoder21 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gokhan_caglar has joined #ruby
rgtk has joined #ruby
nickjj_ has joined #ruby
yabbes has joined #ruby
nickjj has quit [Ping timeout: 268 seconds]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 258 seconds]
cam27 has quit [Quit: cam27]
<yabbes>
hey, this is a beginner question but maybe someone could point me out why im failing to use attr_accessor here https://pastebin.com/CkNUaPUh :/ i thought the point of it was that the attribute would not have to be declared explicitly in the constructor.. all documentation i found says this should work, what am i doing wrong o.O
<dminuoso>
yabbes: Okay, so attr_accessor is basically a shorthand for: def value(); return @value; end; def value=(value); @value = value; end
<dminuoso>
yabbes: Explicit parens added for clarification.
<dminuoso>
yabbes: as such d.value(30) is trying to invoke the third, but it was implicitly declared to not accept any arguments
<dminuoso>
hence "given 1, expected 0"
gizmore|2 is now known as gizmore
<dminuoso>
*trying to invoke the first
<yabbes>
ah
<yabbes>
so I cannot really use this shorthand to replace my constructor to set attributes completely ? i tried the attr_reader and _writer before and i didnt really notice anything odd; i have to think about your answer a bit i guess :P
<yabbes>
thank you
<dminuoso>
yabbes: What is d.value(30) supposed to do?
<lupine>
Net::SSH 'strict' host key verifier: "we've never seen this host before, so just automatically add the key."
<lupine>
lol
<yabbes>
set the @value to 30
<yabbes>
of Ding
<dminuoso>
yabbes: Okay, so attr_accessor is basically a shorthand for: def value(); return @value; end; def value=(value); @value = value; end
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
cahoots has quit [Ping timeout: 260 seconds]
<dminuoso>
Stare at that line for a while. :-)
<yabbes>
yeah !
JBlazeCoder21 has joined #ruby
<yabbes>
no i wrote those functions before
<yabbes>
and it worked
<yabbes>
now i thought i could replace them
<dminuoso>
yabbes: You wrote something different then.
bonhoeffer has joined #ruby
<dminuoso>
yabbes: Which one do you think you are invoking?
<dminuoso>
value() or value=(value) ?
<yabbes>
the setter value=(value)
<yabbes>
i love ruby but this is complicated, i have to think :P
<nzst>
good
<Papierkorb>
an equal sign doesn't appear out of nowhere. *That* would be complicated.
<yabbes>
okay now i understand your response too Papierkorb
<yabbes>
oh man
<yabbes>
im stupid
<yabbes>
thank you all okay
<yabbes>
;)
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
<yabbes>
took me a while
<yabbes>
so the solution is to use d.value = x
JBlazeCoder21 has joined #ruby
Axy has joined #ruby
<yabbes>
d.value=
bronson has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
selim has joined #ruby
oleo has joined #ruby
JBlazeCoder21 has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
bronson has quit [Ping timeout: 240 seconds]
gokhan_caglar has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
ElFerna has joined #ruby
ResidentBiscuit has joined #ruby
gheegh has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
JBlazeCoder21 has joined #ruby
ltem has joined #ruby
cdg has joined #ruby
Kartagis has joined #ruby
cptAngry has joined #ruby
sepp2k has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
cptAngry has quit [Quit: Leaving]
bruno- has joined #ruby
mikecmpbll has joined #ruby
lizardtotem has left #ruby ["WeeChat 1.9"]
cptAngry has joined #ruby
rgtk has quit [Ping timeout: 268 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCoder21 has joined #ruby
bonhoeffer has quit [Ping timeout: 276 seconds]
synthroi_ has joined #ruby
synthroid has quit [Ping timeout: 246 seconds]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
cagomez has joined #ruby
cdg has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
sgen has joined #ruby
pwned has quit [Ping timeout: 258 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
eelster has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
vondruch has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
pwned has joined #ruby
eugenmayer1 has joined #ruby
Awsy has quit [Ping timeout: 268 seconds]
<eugenmayer1>
hello. I am using a gem ( diplomat ) which needs an urgent fix and it seems to not happen very soon. What would be the best way to apply the fix myself ( i forked / fixed it already ) and make it part of my deployment pipeline. I have a own gemserver already ( sonanexus ) so i could publish it under the same name there and would need to kind of change the sources then
<eugenmayer1>
forking it and putting it under myname-diplomat i would say is no option, i do not plan to maintain the fork, rather just bridge the time until the official release.
govg has quit [Ping timeout: 260 seconds]
<nzst>
eugenmayer1: I point to a github repository in my gemfile sometimes , especially when a gem's master branch works but not the published version
__Yiota has joined #ruby
<eugenmayer1>
i see, makes sense!
<Papierkorb>
eugenmayer1: Do what you say, but also Watch the github repository. I know Diplomat, and we also stumbled across issues in it heh
<eugenmayer1>
did not take this way into account, makes a lot more sense to me and is less effort i guess
brent__ has joined #ruby
<Papierkorb>
eugenmayer1: So at least that way, you can move on, but get notified when something happened. Open a GH issue nontheless
brent__ has quit [Remote host closed the connection]
<eugenmayer1>
Papierkorb: well Issues and Diplomat should be always put into the same sentence..
brent__ has joined #ruby
<eugenmayer1>
issue is open, pull request is there but as usual in this project, they are going to react about 2018/19
<eugenmayer1>
approximately
<Papierkorb>
eugenmayer1: *cough* docker-api
<eugenmayer1>
not sure what you mean with docker-api
_main_ has joined #ruby
<Papierkorb>
Oh yeah. Really, someone should fork diplomat (and probably rename it?), and then maintain it.
JBlazeCoder21 has joined #ruby
perniciouscaffei has joined #ruby
<Papierkorb>
eugenmayer1: a docker gem we also used, which sometimes had funny issues. Also due to the fact that Docker (at least when we used it) constantly broke the API, so the fault is not even fully on the gem.
davidmichaelkarr has joined #ruby
rgtk has joined #ruby
<eugenmayer1>
diplomat has literally nothing to do with the dockerAPI, its a more or less REST client for diplomat - we might talk about 2 different gems
bonhoeffer has quit [Ping timeout: 240 seconds]
<Papierkorb>
eugenmayer1: we used both, and my remark had nothing much to do with diplomat. sorry for causing confusion.
__main__ has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
<eugenmayer1>
using docker for a long time know, never had issues them changing the API yet, but it depends on the case and way you are using it
_main_ is now known as __main__
konsolebox has quit [Max SendQ exceeded]
<eugenmayer1>
nzst: is that how one does it? : s.add_runtime_dependency 'diplomat', :git => 'git@github.com:EugenMayer/diplomat', :branch => 'patch-1'
<nzst>
I don't believe it's a feature for gemspecs . Bundle and Gemfiles only
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
Paraxial has quit [Remote host closed the connection]
<eugenmayer1>
also s.add_runtime_dependency 'diplomat', :github => 'EugenMayer/diplomat', :branch => 'patch-1'
<Mon_Ouie>
No, you could do something like including module M in class C
<sepp2k>
plujon: The classes could include the module, but you probably meant something more automatic, right?
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<plujon>
Yes because the module has many classes.
uZiel has quit [Ping timeout: 248 seconds]
<plujon>
I notice that I define foo outside M, that seems to work. But I was aiming to avoid polluting the namespace outside of M.
jphase has left #ruby [#ruby]
<sepp2k>
plujon: You could loop over all the classes to include the module.
<sepp2k>
Outside it works because you're adding the methods to the Kernel (I think) module, which gets included automatically.
<plujon>
Hmm.
<plujon>
module M; FOO=40; end # works for constants
Dreamer3_ has joined #ruby
<plujon>
Kernel module? Interesting.
bronson has joined #ruby
<sepp2k>
Constants have actual lookup rules. Methods are always instance methods (that is `foo(x,y)` always calls `foo` as an instance method on `self`).
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
S007 has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
phinxy has quit [Quit: Leaving]
mipesom has joined #ruby
mipesom has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
DTZUZU has quit [Quit: WeeChat 1.9]
DTZUZU has joined #ruby
olivi____ has joined #ruby
jphase has joined #ruby
ElFerna has joined #ruby
uZiel has joined #ruby
guacamol_ has joined #ruby
kies has quit [Ping timeout: 248 seconds]
romankapitonov has joined #ruby
milardovich has joined #ruby
workmad3 has joined #ruby
ohnowendigo has joined #ruby
cagomez has joined #ruby
MrBusiness has joined #ruby
bonhoeffer has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
moeabdol1 has joined #ruby
AnoHito has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
moeabdol has quit [Ping timeout: 276 seconds]
Beams has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
AnoHito_ has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
bonhoeffer has quit [Ping timeout: 248 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
Cohedrin_ has joined #ruby
Luyt has joined #ruby
nb_bez_______ has joined #ruby
sneakerhax has joined #ruby
lxsameer has joined #ruby
pabloh has quit [Quit: Leaving]
Immune has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
kies has joined #ruby
knight33 has joined #ruby
Beams has joined #ruby
Beams has quit [Client Quit]
ElFerna has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
slima_ is now known as slima
cdg_ has quit [Remote host closed the connection]
DTZUZU has quit [Quit: WeeChat 1.9]
DTZUZU has joined #ruby
someuser has joined #ruby
ElFerna has quit [Ping timeout: 268 seconds]
quobo has joined #ruby
JBlazeCoder21 has joined #ruby
ElFerna has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
vuoto has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
DTZUZO has quit [Quit: WeeChat 1.9]
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCo_ has joined #ruby
cahoots_ has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
ohnowendigo has quit [Remote host closed the connection]
dexter1 has joined #ruby
JBlazeCo_ has quit [Read error: Connection reset by peer]
dexter1 is now known as DTZUZO
JBlazeCoder21 has joined #ruby
marxarelli is now known as marxarelli|afk
DTZUZO has quit [Client Quit]
dexter_ has joined #ruby
dexter_ is now known as DTZUZO
HoierM has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCo_ has joined #ruby
c__ has joined #ruby
domgetter has joined #ruby
cdg has joined #ruby
JBlazeCoder21 has joined #ruby
JBlazeCo_ has quit [Ping timeout: 258 seconds]
moeabdol1 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
JBlazeCoder21 has joined #ruby
synthroi_ has quit []
milardovich has quit [Ping timeout: 240 seconds]
psmolen has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
cahoots_ has quit [Ping timeout: 255 seconds]
eckhardt has joined #ruby
psmolen has quit [Quit: bai]
JBlazeCo_ has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
psmolen has joined #ruby
psmolen has quit [Client Quit]
psmolen has joined #ruby
Beams has joined #ruby
rubycoder37 has joined #ruby
JBlazeCoder21 has joined #ruby
__Yiota has joined #ruby
Beams_ has joined #ruby
Beams has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
cagomez has quit [Remote host closed the connection]
Cohedrin_ has quit [Read error: Connection reset by peer]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCo_ has joined #ruby
<rubycoder37>
I really hate the if/else checks in #process_row and I also dislike the .blank | checks in no_time_data? but I don't know how to write that better
Dreamer3_ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
jphase has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
<zenspider>
passing around this params thing left and right is a hint that your design needs some help. not very OO
<rubycoder37>
yes
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juand has joined #ruby
<zenspider>
plujon: what are you trying to do?
ElFerna has quit [Ping timeout: 255 seconds]
_sfiguser has joined #ruby
<rubycoder37>
thanks
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has joined #ruby
enterprisey has joined #ruby
<SeepingN>
I found the problem with rescuing very specific things, is when those libraries update and improve(?) the way they do push up exceptions, your code can break if it doesn't already look for these new exception types
ta_ has quit [Read error: Connection reset by peer]
<SeepingN>
(much pain going from 1.8.6 to 2.x, along with the updated gems for ssh/sftp)
<rubycoder37>
can you tell me why rescue Exception is a bad idea?
<SeepingN>
too generic. may catch issues outside of what you had in mind
<apeiros>
rubycoder37: also rescues stuff like Interrupt (triggered by ctrl-C) and NoMemoryError (might be named differently)
__Yiota has joined #ruby
<rubycoder37>
I see, thank you
JBlazeCo_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 260 seconds]
<apeiros>
the maximum common exception to rescue is StandardError. that's also the maximum top-level to inherit from. don't inherit from Exception directly for custom exceptions.
<SeepingN>
and your rescue appears to just retry Membership.new. What if that's what crashed just before that?
juand has left #ruby [#ruby]
ta_ has joined #ruby
ElFerna has joined #ruby
<SeepingN>
hmm I didn't realize rescue could be part of a def. I've always put a "begin"
<rubycoder37>
good point
<apeiros>
I think as of 2.5 you can even have one in a block iirc
<apeiros>
*will be able to
enterprisey has quit [Remote host closed the connection]
JBlazeCoder21 has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
JBlazeCo_ has quit [Ping timeout: 255 seconds]
wilbert has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
guacamol_ has quit [Ping timeout: 276 seconds]
Dreamer3_ has joined #ruby
olivi____ has quit [Remote host closed the connection]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCo_ has joined #ruby
banisterfiend has joined #ruby
Beams_ has quit [Quit: .]
cahoots has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
CoreyW has joined #ruby
JBlazeCo_ has quit [Ping timeout: 240 seconds]
JBlazeCoder21 has joined #ruby
brent__ has quit []
brent__ has joined #ruby
<CoreyW>
any ideas of how i could call an XMLRPC server within context of a capistrano/mina task?
JBlazeCoder21 has quit [Ping timeout: 268 seconds]
JBlazeCoder21 has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jrz has joined #ruby
marxarelli|afk is now known as marxarelli
nb_bez_______ has quit [Quit: Connection closed for inactivity]
eckhardt has joined #ruby
pwned has quit [Ping timeout: 255 seconds]
JBlazeCoder21 has quit [Ping timeout: 248 seconds]
JBlazeCoder21 has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
JBlazeCo_ has joined #ruby
Cohedrin_ has joined #ruby
JBlazeCoder21 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
JBlazeCo_ has quit [Ping timeout: 276 seconds]
JBlazeCoder21 has joined #ruby
ar1a has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
skinnymg1 has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
TomyLobo2 has quit [Ping timeout: 255 seconds]
<plujon>
zenspider: I want to put the code for a web app in a common namespace (i.e. module) so that I can put another web app in the same process without name collision. I also want to make some methods callable from anywhere in the namespace (i.e. module, or any class therein).
b3ck has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<plujon>
Mainly, I think I have yet to well understand the ruby-way of names, scope, and lookup.
polishdub has quit [Quit: leaving]
Cohedrin_ has joined #ruby
b3ck_ has quit [Ping timeout: 268 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
knight33 has joined #ruby
MissionCritical has quit [Excess Flood]
knight33 has quit [Client Quit]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa-bot has joined #ruby
postmodern has quit [Remote host closed the connection]
code_zombie has quit [Remote host closed the connection]
watersoul has joined #ruby
CoreyW has left #ruby [#ruby]
cahoots_ has joined #ruby
cahoots has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
nowhereman_ has joined #ruby
rgr has quit [Remote host closed the connection]
segy has quit [Excess Flood]
synstack has quit [Excess Flood]
watersoul_ has quit [Write error: Broken pipe]
synstack has joined #ruby
Miron has quit [Excess Flood]
synstack has joined #ruby
c__ has quit [Remote host closed the connection]
synstack has quit [Changing host]
unreal has quit [Read error: Connection reset by peer]
jericon has quit [Write error: Broken pipe]
abort has quit [Write error: Broken pipe]
ozzloy has quit [Write error: Broken pipe]
helpa has quit [Write error: Broken pipe]
bhaak_ has joined #ruby
segy has joined #ruby
Nightmare has quit [Excess Flood]
SeepingN has quit [Excess Flood]
gaurav has quit [Write error: Connection reset by peer]
ramfjord_ has joined #ruby
reaVer_ has joined #ruby
rgs_ has joined #ruby
chrisarc1nd has joined #ruby
VladGh_ has joined #ruby
crankhar1er has joined #ruby
ytti has quit [Write error: Broken pipe]
hinbody has quit [Write error: Broken pipe]
uxp has joined #ruby
chihhsin_ has joined #ruby
TvL2386_ has joined #ruby
Freijo has joined #ruby
quuxman has quit [Remote host closed the connection]
nowhere_man has quit [Remote host closed the connection]
weaksauce has quit [Excess Flood]
havenwood has quit [Excess Flood]
Miron has joined #ruby
ineb1 has joined #ruby
hinbody has joined #ruby
unreal_ has joined #ruby
Lyfe_ has joined #ruby
quuxman_ has joined #ruby
guacamol1 has joined #ruby
ccooke_ has joined #ruby
lucas_ has joined #ruby
karlding_ has joined #ruby
gaurav_ has joined #ruby
ltd has joined #ruby
tunaBee__ has joined #ruby
ltp_ has joined #ruby
gse has joined #ruby
G_ has joined #ruby
shmoon_ has joined #ruby
jdeen_ has joined #ruby
ptx0_ has joined #ruby
dioxylin_alterna has joined #ruby
kaspergr1bbe has joined #ruby
daed has quit [Write error: Broken pipe]
chrisarcand has quit [Write error: Broken pipe]
lucas has quit [Write error: Broken pipe]
ccooke has quit [Write error: Broken pipe]
dioxylin has quit [Write error: Broken pipe]
guacamole has quit [Write error: Broken pipe]
ramfjord has quit [Write error: Broken pipe]
crankharder has quit [Write error: Broken pipe]
rgs has quit [Write error: Broken pipe]
reaVer has quit [Write error: Broken pipe]
mesamoo has quit [Write error: Broken pipe]
Axy has quit [Excess Flood]
Jrz has quit [Excess Flood]
<plujon>
For example, I have a method named 'pretty_time' that takes a time and returns a humanized relative-to-now string for it. Where should I stick this method? Do I need to create a class for it? Should I monkey patch Time? I wouldn't, if I could simply do "#{pretty_time(t)}" wherever I wanted.
brendan- has quit [Excess Flood]
Keltia has quit [Write error: Broken pipe]
G has quit [Write error: Broken pipe]
Lyfe has quit [Write error: Broken pipe]
ltd_ has quit [Write error: Broken pipe]
empty_cu1 has quit [Write error: Broken pipe]
ericmath1son has quit [Write error: Broken pipe]
shmoon has quit [Write error: Broken pipe]
nopacienc3 has quit [Write error: Broken pipe]
Fraeon has quit [Write error: Broken pipe]
DEac- has quit [Write error: Broken pipe]
skinnymg1 has quit [Quit: Leaving]
sunrunner20 has quit [Excess Flood]
ineb has quit [Remote host closed the connection]
chihhsin has quit [Remote host closed the connection]
mnemon has quit [Remote host closed the connection]
ptx0 has quit [Remote host closed the connection]
ltp has quit [Remote host closed the connection]
rprimus has quit [Remote host closed the connection]
snapcase has quit [Remote host closed the connection]
Sp4rKy has quit [Remote host closed the connection]
uxp_ has quit [Remote host closed the connection]
kaizoku has quit [Remote host closed the connection]
gse_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaizoku_ has joined #ruby
snapcase has joined #ruby
mnemon has joined #ruby
Nightmare has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
rt has quit [Excess Flood]
Jrz has joined #ruby
jdeen has quit [Write error: Broken pipe]
karlding has quit [Write error: Broken pipe]
VladGh has quit [Write error: Broken pipe]
TvL2386 has quit [Write error: Broken pipe]
friday has quit [Excess Flood]
sneakerhax has quit [Max SendQ exceeded]
MrSparkle has quit [Remote host closed the connection]
bhaak has quit [Remote host closed the connection]
Guest71446 has quit [Remote host closed the connection]
tunaBee has quit [Remote host closed the connection]
SuperLag has quit [Remote host closed the connection]
sunrunner20 has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
mesamoo has joined #ruby
SeepingN has joined #ruby
friday has joined #ruby
abort has joined #ruby
helpa-bot has quit [Remote host closed the connection]
nopacienc3 has joined #ruby
helpa has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
perniciouscaffei has quit [Ping timeout: 247 seconds]
valkyr2e has quit [Ping timeout: 247 seconds]
diegok has quit [Ping timeout: 247 seconds]
bokayio has quit [Ping timeout: 247 seconds]
dyyylan has quit [Ping timeout: 247 seconds]
havenwood has joined #ruby
havenwood has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
nekomune has quit [Ping timeout: 269 seconds]
d^sh has quit [Ping timeout: 269 seconds]
kiltzman has quit [Ping timeout: 269 seconds]
quiller has quit [Ping timeout: 269 seconds]
jidar has quit [Ping timeout: 269 seconds]
jidar has joined #ruby
kiltzman has joined #ruby
diegok has joined #ruby
rt has joined #ruby
brendan- has joined #ruby
dyyylan has joined #ruby
bokayio has joined #ruby
ytti has joined #ruby
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
jericon has joined #ruby
MrSparkle has joined #ruby
valkyr2e has joined #ruby
quiller has joined #ruby
Sp4rKy has joined #ruby
d^sh has joined #ruby
Sp4rKy is now known as Guest59382
bhaak_ is now known as bhaak
daed has joined #ruby
Keltia has joined #ruby
MissionCritical has joined #ruby
ericmathison has joined #ruby
DEac- has joined #ruby
SuperLag has joined #ruby
empty_cup has joined #ruby
rprimus has joined #ruby
rprimus is now known as Guest98725
nekomune has joined #ruby
cahoots_ has quit [Ping timeout: 248 seconds]
planigan has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
<biox>
Hello rubyists! I'm struggling to come up with a data transform solution currently. Detail here: https://hastebin.com/xahohoboci.rb
planigan has joined #ruby
<biox>
More or less I'm bad at thinking about how to associate the data to its' job. I always tend to fall back on map/each loops, and I think that's limiting me.
sylario has quit [Quit: Connection closed for inactivity]
QualityAddict has joined #ruby
chg has quit [Ping timeout: 246 seconds]
<Papierkorb>
biox: That looks like a job for Enumerable#group_by followed by a #map
<Papierkorb>
And then somewhere a `puts result.to_yaml`
<Papierkorb>
... If that's supposed to be yaml
<biox>
it's not, just sorta pretty output.
chg has joined #ruby
<biox>
But I will look into group_by now. It sounds like I'd need to split my initial strings into arrays and group them by [0] or something?
<Papierkorb>
sounds like a possible solution. there are a few in any case
<biox>
Alright, I'll hack something together, group_by seems to be what I was searching for, but I had no idea how to word it
eljimmy has joined #ruby
fr33domlover has joined #ruby
<fr33domlover>
Hello
ramfjord_ has quit [Ping timeout: 248 seconds]
alex`` has quit [Quit: WeeChat 1.9]
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
<fr33domlover>
There's no SASS channel so asking here: Given a (non partial) sass file, how do I make a list of all the files it depends on? The naive method is to go over the imports recursively - is the correct or are there tricks to be aware of?
<Papierkorb>
No idea about sass, but as far dependency list building is concerned, that's pretty much the way to go. One optimization would be not rediscovering a dependency you've already seen, if applicable. And watching out for circular dependencies.
<Papierkorb>
Maybe #RubyOnRails knows something more specific fr33domlover
x0f has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
<fr33domlover>
Papierkorb thanks
<nacsurte>
is it possible to do a switch statement on hash keys? ala if key is present in hash, do this
AndroUser2 has joined #ruby
ramfjord has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
x0f has joined #ruby
<eelster>
nacsurte I don't believe so. You can check if a key is in a hash by using the #key? method.
fr33domlover has left #ruby [#ruby]
cahoots has joined #ruby
mim1k has joined #ruby
ElFerna has joined #ruby
bronson has joined #ruby
rgr has joined #ruby
marxarelli is now known as marxarelli|afk
SteenJobs_ has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 255 seconds]
alex`` has joined #ruby
oliv_____ has joined #ruby
SteenJobs_ has quit [Client Quit]
alex`` has quit [Client Quit]
ElFerna has quit [Ping timeout: 273 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
JBlazeCoder21 has quit [Ping timeout: 255 seconds]
sneakerhax has joined #ruby
FahmeF has quit [Remote host closed the connection]
AndroUser2 has quit [Ping timeout: 260 seconds]
cagomez has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ol_______ has joined #ruby
<plujon>
I think my scoping question boils down to: Array.wrap vs array_wrap.
o________ has joined #ruby
wald0 has quit [Quit: Lost terminal]
ol_______ has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
JBlazeCoder21 has joined #ruby
sarmiena_ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
JBlazeCoder21 has quit [Read error: Connection reset by peer]
herbmillerjr has joined #ruby
JBlazeCoder21 has joined #ruby
Guest59382 is now known as Sp4rKy
Sp4rKy is now known as Guest3135
<plujon>
Is Array "global" because (1) Object.constants contains [..., Array, ...], (2), most (all?) ruby objects are instances of a Class, (3) most (all except BasicObject?) Class objects are subclasses of Object?
sarmiena_ has quit [Quit: sarmiena_]
<Papierkorb>
Array is globally accessible cause it's a constant in Object, and as everything [citation needed] is an Object, everything has it in its lookup chain
<Papierkorb>
Well, not everything. Wouldn't be ruby if there wasn't an exception, eh? :P
<arahael>
So, to answer the question, it is 1, 2, and 3.
_sfiguser has quit [Remote host closed the connection]
* arahael
did well at school tests.
o________ has quit [Remote host closed the connection]
ledestin has joined #ruby
<Papierkorb>
plujon: Try this in pry or irb: `module Foo; module Bar; class Baz; end; end; end` Now, check the ancestor chain: `Foo::Bar::Baz.ancestors`. When ruby needs to find something, it'll start to look in the ancestor chain. First the first item. If it knows an `Array`, it'll be used. Then, the next one ist tried. etc.
olivi____ has joined #ruby
<Papierkorb>
(More or less)
<plujon>
Is the lookup chain: obj.methods, then, obj.class.ancestors.each { |x| x.instance_methods } ?
<barx>
how long can symbols be?
<plujon>
It is interesting that ancestors include modules and not just superclasses.
<Papierkorb>
plujon: err, yeah that was the lookup chain for methods. Silly me.
<Papierkorb>
plujon: The lookup chain for constants, after that chain, is then descending modules, until it hits the top level. If still not found, it doesn't exist.
olivi____ has quit [Remote host closed the connection]
<plujon>
Interesting.
oliv_____ has joined #ruby
<Papierkorb>
plujon: As far those look up chains are concerned, there's no real difference between a class and a module. In fact, `Class.is_a? Module`.