apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
impermanence has quit [Remote host closed the connection]
jaequery has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
alicef has joined #ruby
alicef has quit [Changing host]
alicef has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infernix has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
LiftLeft has quit [Ping timeout: 252 seconds]
Nicmavr has joined #ruby
ansraliant has joined #ruby
RedNifre_ has quit [Ping timeout: 246 seconds]
ciscam has quit [Ping timeout: 252 seconds]
LiftLeft has joined #ruby
ciscam has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition47 has joined #ruby
RedNifre_ has joined #ruby
RedNifre_ has quit [Ping timeout: 240 seconds]
arekushi has joined #ruby
apparition47 has quit [Quit: Bye]
esrse has joined #ruby
ZzZombo has quit [Remote host closed the connection]
voxxit has quit [*.net *.split]
agent_white has quit [Quit: leaving]
voxxit has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
pskosinski_ has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
orbyt_ has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
nowhereman_ has joined #ruby
kapil___ has joined #ruby
ZzZombo has joined #ruby
AJA4350 has quit [Quit: AJA4350]
i8igmac has joined #ruby
orbyt_ has joined #ruby
Krzysiek1 has quit [Remote host closed the connection]
Krzysiek1 has joined #ruby
mochiyoda has quit [Ping timeout: 252 seconds]
BrainWork has quit [Ping timeout: 244 seconds]
Tuor has quit [Ping timeout: 245 seconds]
arekushi has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
ZzZombo has quit [Quit: Going offline, see ya! (www.adiirc.com)]
k0mpa has quit [Ping timeout: 256 seconds]
ZzZombo has joined #ruby
ciscam has quit [Ping timeout: 252 seconds]
ciscam has joined #ruby
dbz has quit [Remote host closed the connection]
braincrash has joined #ruby
P1RATEZ has joined #ruby
helloworld1101 has joined #ruby
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
za1b1tsu has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
johnny56 has joined #ruby
Azure has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
P1RATEZ has quit []
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has quit [Remote host closed the connection]
nowhereman_ has quit [Ping timeout: 252 seconds]
helloworld1101 has left #ruby ["WeeChat 1.4"]
helloworld1101 has joined #ruby
ciscam has quit [Ping timeout: 246 seconds]
ciscam has joined #ruby
_whitelogger has joined #ruby
helloworld1101 has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MoritaShinobu has joined #ruby
Dbugger has joined #ruby
za1b1tsu has joined #ruby
reber has joined #ruby
reber__ has joined #ruby
Inline has quit [Quit: Leaving]
mattp_ has quit [Ping timeout: 246 seconds]
DTZUZO_ has joined #ruby
mattp_ has joined #ruby
DTZUZO_ has quit [Ping timeout: 244 seconds]
DTZUZO_ has joined #ruby
mattp_ has quit [Ping timeout: 252 seconds]
sauvin has joined #ruby
lightstalker has quit [Ping timeout: 252 seconds]
mattp_ has joined #ruby
Dbugger has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Quit: WeeChat 2.1]
segy has quit [Ping timeout: 252 seconds]
segy has joined #ruby
d^sh has joined #ruby
d^sh has quit [Excess Flood]
d^sh has joined #ruby
d^sh has quit [Max SendQ exceeded]
d^sh has joined #ruby
ciscam has quit [Ping timeout: 244 seconds]
ciscam has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Xeago_ is now known as Xeago
duderonomy has joined #ruby
helloworld1101 has joined #ruby
mike11 has joined #ruby
duderonomy has quit [Client Quit]
helloworld1101 has left #ruby [#ruby]
cd has quit [Quit: cd]
clemens3 has joined #ruby
yohji has joined #ruby
ShekharReddy has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
cd has joined #ruby
Beams has joined #ruby
tristanp has joined #ruby
duderonomy has joined #ruby
clemens3 has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
aufi has joined #ruby
beefjoe has joined #ruby
Beams has quit [Quit: .]
clemens3 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
mikecmpbll has joined #ruby
paraxial has joined #ruby
fluxAeon has quit [Ping timeout: 264 seconds]
beefjoe has quit [Quit: <3]
venmx has joined #ruby
beefjoe has joined #ruby
madhatter has quit [Quit: brb]
LiftLeft has quit [Ping timeout: 240 seconds]
madhatter has joined #ruby
za1b1tsu has joined #ruby
LiftLeft has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
LiftLeft2 has joined #ruby
mikecmpbll has joined #ruby
LiftLeft has quit [Ping timeout: 252 seconds]
akem has quit [Quit: Leaving]
akem has joined #ruby
shadeslayer_ is now known as shadeslayer
LiftLeft has joined #ruby
ansraliant has quit [Quit: My planet needs me]
LiftLeft2 has quit [Ping timeout: 252 seconds]
Beams has joined #ruby
LiftLeft has quit [Ping timeout: 252 seconds]
LiftLeft has joined #ruby
<sonOfRa>
My linter (in IntelliJ IDEA) is complaining about me using strings as hash keys. The hash in question is used exclusively to map strings from LDAP to other strings. Should I just ignore this? Or is there some magic happening in the background that lets me use symbols, but looking up a string will actually yield the correct entry?
tag has quit [Quit: Connection closed for inactivity]
catbusters has joined #ruby
ZzZombo has left #ruby ["EOF"]
ShekharReddy has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
r3dc0d3r has joined #ruby
graphene has joined #ruby
lxsameer has quit [Quit: WeeChat 2.1]
lunarfyre7 is now known as lunarkitty
lxsameer has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
<darix>
sonOfRa: there is a class like this in activesupport. but in this case I would probably ignore the linter warning
postmodern has quit [Remote host closed the connection]
ShekharReddy has joined #ruby
apparition has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
hogetaro has joined #ruby
ur5us has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
Krzysiek1 has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 272 seconds]
t0adst00l has joined #ruby
lomex has joined #ruby
apparition has quit [Quit: Bye]
apparition has joined #ruby
AJA4350 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
beefjoe has quit [Quit: <3]
za1b1tsu has joined #ruby
helloworld1101 has joined #ruby
GodFather has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
fluxAeon has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bove has quit [Quit: Connection closed for inactivity]
lightstalker has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
helloworld1101 has quit [Quit: WeeChat 1.4]
ciscam has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
ShekharReddy has quit [Quit: Connection closed for inactivity]
wojnar has joined #ruby
donofrio has joined #ruby
doubledup has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
nowhereman_ has joined #ruby
ujjain- has joined #ruby
pulgolino has joined #ruby
ujjain- is now known as ujjain
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
beefjoe has joined #ruby
AJA4350 has quit [Quit: AJA4350]
doubledup has quit [Quit: Leaving]
bmurt has joined #ruby
AJA4350 has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
kapil___ has joined #ruby
discopatrick has joined #ruby
pbmarcano has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
beefjoe has quit [Quit: <3]
beefjoe has joined #ruby
deathwishdave has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
wakingweb has joined #ruby
deathwishdave has quit [Client Quit]
Rapture has joined #ruby
wakingweb has quit [Remote host closed the connection]
beefjoe has quit [Quit: <3]
millerti has joined #ruby
RedNifre_ has joined #ruby
madhatter has quit [Remote host closed the connection]
marz_d`ghostman has joined #ruby
<marz_d`ghostman>
How do I include a module so that when I invoke it I won't have to write the entire module namespace, e.g. Module1::Module2::Module3 just Module3.method?
madhatter has joined #ruby
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
soulisson has joined #ruby
<soulisson>
Hi
tdy has joined #ruby
jcalla has quit [Quit: Leaving]
mike11 has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
<marz_d`ghostman>
my method wraps a %x(), I want to test that a commadn was run but not really run it, how do I do that?
DTZUZO_ has quit [Quit: WeeChat 2.0]
chouhoulis has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
kpoman1 has joined #ruby
kpoman has quit [Ping timeout: 272 seconds]
kpoman1 is now known as kpoman
KeyJoo has joined #ruby
lomex has joined #ruby
deathwishdave has joined #ruby
Miron has quit [Ping timeout: 252 seconds]
<havenwood>
marz_d`ghostman: include Module1::Module2::Module3
Miron has joined #ruby
<havenwood>
marz_d`ghostman: You could use a mock, it sounds like.
<havenwood>
marz_d`ghostman: Unless something funky is going on, you should be able to `Rise::MirrorManager::Sync.new(mirror)` instead of `Rise::MirrorManager::Sync.send(:new, mirror)`.
<marz_d`ghostman>
havenwood: I see
<havenwood>
marz_d`ghostman: Are you calling backticks *on* `mirror_sync` or Kernel#`?
<havenwood>
marz_d`ghostman: What does the code look like that you're testing?
RedNifre_ has joined #ruby
<havenwood>
marz_d`ghostman: Does the spec pass?
<marz_d`ghostman>
havenwood: Yeah it does
aniarya82 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<marz_d`ghostman>
havenwood: I'm calling backticks on mirror_sync I guess? I'm testing that the run_pre_cmd method is invoked with the right argument. Since run_pre_cmd is wrapping %X()
graphene has quit [Remote host closed the connection]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
graphene has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
Technodrome has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dinfuehr has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
dinfuehr has joined #ruby
bmurt has joined #ruby
ivanskie has joined #ruby
mike11 has joined #ruby
lomex has joined #ruby
minimal_life has joined #ruby
tiogrand has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<tiogrand>
Could someone point out where I find the rules for ruby constants? I can figure it out reading the documentation.
<bougyman>
what do you mean by rules?
<havenwood>
tiogrand: Like how constant lookup works?
<havenwood>
tiogrand: (All capitals were already available for the first letter of a constant, now those are also valid for the first letter of a class.
<havenwood>
)
Francisco has quit [Read error: Connection reset by peer]
Francisco has joined #ruby
<tiogrand>
thanks everybody, I wonder when the official documentation will be more newbie friendly.
aufi has quit [Ping timeout: 252 seconds]
<havenwood>
tiogrand: If you spot something that could be improved, open a PR!
<havenwood>
tiogrand: There's probably not going to be a big push to make docs more newbie friendly. It'll just be incremental. There are often PRs merged that improve docs.
<cjohnson>
Is there a shorthand for .map { |k,v| [k,v] }
<cjohnson>
Or something equivalent? I want to wrap a hash up into both its keys and its values to then do a uniq operation on it
<cjohnson>
I need a unique list of keys based upon a computation of the values
darkhanb has joined #ruby
<lupine>
cjohnson: `Hash#to_a` not good enough ?
<cjohnson>
lupine: You rock, that's exactly what I was looking for
<cjohnson>
Am I so lucky to imagine that I can do that.to_h to reverse it?
ciscam has quit [Ping timeout: 252 seconds]
<cjohnson>
I am!
<lupine>
seems to work
<cjohnson>
it's a beautiful thing
<cjohnson>
Thanks lupine
ciscam has joined #ruby
<cjohnson>
One more question, and I doubt there's something that does this nicely
<cjohnson>
I need an array with a single element which is an array that is the value of 2 keys from a hash
RedNifre_ has quit [Read error: Connection reset by peer]
dbz_ has joined #ruby
<miah>
omg coffee
wojnar has quit [Remote host closed the connection]
dbz has quit [Ping timeout: 272 seconds]
ciscam has quit [Ping timeout: 245 seconds]
ciscam has joined #ruby
hurricanehrndz has joined #ruby
soniya29_ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
<baweaver>
If you're ever around feel free to drop by for coffee miah :D
<baweaver>
nofxx: Drop by SF some time
<miah>
ya will do. i only come into SF for office sometimes.
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
ascarter has quit [Read error: Connection reset by peer]
ascarter_ has joined #ruby
ascarter_ has quit [Client Quit]
lytol_ is now known as Lytol
ascarter has joined #ruby
dbz_ has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
discopatrick has quit [Quit: Connection closed for inactivity]
mike11 has quit [Quit: Leaving.]
<sonOfRa>
Are there any freely available code analysis tool that are able to check which gems in my gemfile are actually being used?
nemesit|znc has joined #ruby
<sonOfRa>
This is an ancient code base with many changes over time, and I'm afraid not all gems were removed when they became unused
nowhereman_ has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
kpoman1 has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
kpoman has quit [Ping timeout: 246 seconds]
kpoman1 is now known as kpoman
jmcgnh has joined #ruby
bmurt has quit [Ping timeout: 272 seconds]
<sonOfRa>
In my java projects, I can run "mvn dependency:analyze" and it will spit out a list of dependencies that are never used in the project, I can't seem to find anything similar for ruby
SeepingN has joined #ruby
<nofxx>
sonOfRa, but that will check only if you are including/requiring the dep no? how can it know all classes/modules whatever one thing provides?
alireza has joined #ruby
mikecmpbll has joined #ruby
<nofxx>
baweaver, you're also invited... to the coffee mountains of minas, in Brasil =D
graphene has quit [Remote host closed the connection]
<sonOfRa>
nofxx: well, it's probably a lot harder to do this for non-static languages, but the mvn plugin essentially checks whether your code ever *imports or uses* any class from each dependency
bmurt has joined #ruby
<sonOfRa>
Since each dependency comes as a .jar, and the jar contains a finite list of .class files, this is manageable. I get that it's probably a lot harder to do this in a dynamic language like ruby
<sonOfRa>
But am still surprised that there seems to be nothing of the sort
graphene has joined #ruby
<alireza>
Anyone here has a reference to the article about a cto allowed his team to use cuba.rb
<alireza>
'cause they were productive in it
snickers has joined #ruby
<SeepingN>
some random CTO and a file called cuba.rb
pbmarcano has quit [Quit: pbmarcano]
jmcgnh has quit [Ping timeout: 244 seconds]
<alireza>
SeepingN: that could be a news article!
<miah>
gem_bench appears to potentially support this, with a bit of interogation after your app loads
<miah>
but i dont know of anything like mvn depenency analyze
<sonOfRa>
miah: that looks like a good start, thank you!
stooj has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RedNifre_ has joined #ruby
<stooj>
Hi. Newbie here, struggling to launch a windows application from ruby. I want it to launch in the background, and continue the script. I can't seem to figure out the pathing for `spawn` though, as seen in this paste: http://dpaste.com/0TPHZ3Q
<stooj>
Using backticks works, but spawn can't find the same file. I've tried using a hard-coded string with double `\\` as well, but that didn't work either. Does anyone have an idea where I am messing up?
<nofxx>
stooj, check File#join
ciscam has quit [Ping timeout: 252 seconds]
Rapture has joined #ruby
ciscam has joined #ruby
<stooj>
nofxx: OK... so I get an instance. Do I need to coerce that back into a string for `spawn`?
tomaw- is now known as tomaw
<nofxx>
stooj, never used windows... dunno , check some comparison.. spawn or popen
jmcgnh has joined #ruby
<nofxx>
ah, you mean just the path, I think it's already an string
<nofxx>
a string*
<stooj>
nofxx: yep.
alireza has quit [Read error: Connection reset by peer]
ShekharReddy has joined #ruby
clemens3 has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
conta1 has joined #ruby
conta1 has quit [Remote host closed the connection]
RedNifre has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]