nofxx has quit [Remote host closed the connection]
olivi____ has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
<Stanl3yStan3rson>
I'm trying to parse some data where each item has multiple attributes. Something like [X = 1,2,3,4; Y = 5,6,7,8; Z = 9,10,11,12] what's the best attack for this in ruby? Any suggestions?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
hutch34 has joined #ruby
nOwz has joined #ruby
djbkd has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 258 seconds]
infernix has quit [Ping timeout: 276 seconds]
hutch34 has joined #ruby
vondruch has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
conta has joined #ruby
Antiarc has quit [Ping timeout: 246 seconds]
ltem has joined #ruby
hutch34 has joined #ruby
ecuanaso has joined #ruby
eroux has quit [Remote host closed the connection]
MACscr has joined #ruby
rabajaj has joined #ruby
sysvalve has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
<MACscr>
i dont know anything about ruby or rails. Can i ask rails questions here or is there a better channel? im trying to resolve "Your Gemfile lists the gem nokogiri (~> 1.6.0) more than once." that i get when i run foreman-rake and I am not sure where to start looking.
lexruee has quit [Remote host closed the connection]
lexruee has joined #ruby
<dminuoso>
?rubyonrails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<MACscr>
np, thanks!
<dminuoso>
MACscr: Though that sounds more like a Ruby question
<dminuoso>
MACscr: Have you tried looking at... I dont know...
<dminuoso>
Your Gemfile?!
<MACscr>
dminuoso i dont even know what a gemfile is
eroux has joined #ruby
<dminuoso>
MACscr: A "Gemfile" is a file describing of all the external libraries, we call them "gems", a project uses.
<matthewd>
dminuoso: You were complaining about the non-existence of a perfectly cromulent operator a couple of hours ago, so.. ;)
<dminuoso>
MACscr: It's the mechanism for the program called `bundler`. `bundler` takes your `Gemfile` and ensures all those packages listed with the versions listed inside are made available to your project. And very often `bundler` is used transparently behind the scenes
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
<dminuoso>
MACscr: So some part is looking at your `Gemfile` and seeing the package `nokogiri` listed twice.
<matthewd>
MACscr: There is a file literally named `Gemfile` in the root directory of the project. Per the error, it apparently has the nokogiri gem listed twice. But that seems like an odd thing to be already wrong on a project you're trying to pick up. :/
<dminuoso>
matthewd: You just made me look up cromulent. :x
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
bigkevmcd has quit [Quit: Outta here...]
jenrzzz has joined #ruby
<matthewd>
Oh, but this might be a user support issue with Foreman, if you're just trying to use user-facing features of that application. While it's written in Ruby, we're going to be of limited help in tracking down a root cause for any problems.
Antiarc has joined #ruby
<MACscr>
matthewd oh, i completely understand that. just looking to see if i can make any headway on my own
<matthewd>
dminuoso: You're welcome :)
Bish has quit [Quit: leaving]
hutch34 has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
jespada has joined #ruby
KeyJoo has joined #ruby
mark_66 has joined #ruby
mark_66 has quit [Client Quit]
hutch34 has joined #ruby
jespada has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
<MACscr>
dminuoso hmm, im only seeingthe gem nokogiri listed once in the gemfile. Could that Dir loop at the bottom be dynamically loading additional ones? http://paste.debian.net/980874/
hutch34 has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
bigkevmcd has joined #ruby
<MACscr>
or does it load both nokogiri files from the gems directory because they both are '~> 1.6.0'
jenrzzz has quit [Ping timeout: 248 seconds]
<dminuoso>
MACscr: That code at the bottom stinks of fish.
<dminuoso>
MACscr: And no, that gems directory is basically just a collection of "available gems", think of it like a cache
<dminuoso>
MACscr: Can you look into that directory File.dirname(FOREMAN_GEMFILE)}/bundler.d/*.rb ?
<noob_on_rails>
actually im sure it can , but i don't know how :D
jenrzzz has quit [Ping timeout: 246 seconds]
<noob_on_rails>
i also want to be able to query in the constructor array afterwards
mim1k has joined #ruby
FastJack has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
tvw has joined #ruby
_sfiguser has quit [Remote host closed the connection]
anisha has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
ramfjord has joined #ruby
tomphp has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
rgr has joined #ruby
rgr has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
alfiemax has quit [Remote host closed the connection]
brian_penguin has joined #ruby
brian_penguin has quit [Remote host closed the connection]
Beams has quit [*.net *.split]
drcode has quit [*.net *.split]
ltem has quit [*.net *.split]
kex has quit [*.net *.split]
ikopico has quit [*.net *.split]
Tralin has quit [*.net *.split]
eldebrim1 has quit [*.net *.split]
hinbody has quit [*.net *.split]
cydrobolt has quit [*.net *.split]
nikivi has quit [*.net *.split]
nadir has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
Beams has joined #ruby
ramfjord has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
x0f has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
x0f has joined #ruby
cydrobolt has joined #ruby
cydrobolt has joined #ruby
cydrobolt has quit [Changing host]
kex has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
ikopico has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltem has joined #ruby
Tralin has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
aglorei1 has quit [Remote host closed the connection]
aglorei1 has joined #ruby
__Yiota has joined #ruby
apparition47 has joined #ruby
apparition47 has quit [Client Quit]
K3rber0s has joined #ruby
ramfjord has joined #ruby
mim1k has joined #ruby
bruno- has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
tirej has joined #ruby
tirej has joined #ruby
tirej has quit [Changing host]
nikivi has joined #ruby
hinbody has joined #ruby
ldnunes has joined #ruby
c__ has joined #ruby
InfinityFye has joined #ruby
DTZUZO has joined #ruby
eldebrim1 has joined #ruby
c_3 has quit [Ping timeout: 255 seconds]
aupadhye has quit [Ping timeout: 246 seconds]
VladGh_ has quit [Remote host closed the connection]
aupadhye has joined #ruby
aupadhye has quit [Client Quit]
VladGh has joined #ruby
aupadhye has joined #ruby
ych has joined #ruby
laphoraig92 has joined #ruby
ramfjord has joined #ruby
rgtk has joined #ruby
apparition47 has joined #ruby
ych has quit [Client Quit]
ramfjord has quit [Ping timeout: 240 seconds]
modin has joined #ruby
oliv_____ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit []
ahrs has quit [Remote host closed the connection]
milardovich has joined #ruby
Pumukel has quit []
ahrs has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
laphoraig92 has quit [Ping timeout: 246 seconds]
frozengeek has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
AlienElite_ has joined #ruby
AlienElite_ has left #ruby [#ruby]
AlienElite_ has joined #ruby
<AlienElite_>
yo
rgtk has quit [*.net *.split]
Cork has quit [*.net *.split]
torarne has quit [*.net *.split]
aagdbl[m] has quit [*.net *.split]
Koshian has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
jtperreault has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
err_ok has quit [*.net *.split]
daxroc has quit [*.net *.split]
knowtheory has quit [*.net *.split]
afisher has quit [*.net *.split]
lipoqil has quit [*.net *.split]
johnkpaul has quit [*.net *.split]
ruby[bot] has joined #ruby
rgtk has joined #ruby
<frozengeek>
hey all, I have 2 hashes I am comparing, one is internal data, the other one is loaded from json, this works fine as long as there are no newlines in strings, since the internal representation of that string will already have newlines escaped, and the one loaded from json gets them unescaped, hence they don't match. Any way I can tell the json parser to not un-escape newlines? or maybe another way somebody sees around this issue?
Koshian has joined #ruby
knowtheory has joined #ruby
johnkpaul has joined #ruby
afisher has joined #ruby
jtperreault has joined #ruby
lipoqil has joined #ruby
JoL1hAHN has joined #ruby
err_ok has joined #ruby
daxroc has joined #ruby
aagdbl[m] has joined #ruby
Cork has joined #ruby
torarne has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
<matthewd>
frozengeek: Sounds like your hashes have very different strings in them.. my recommendation would be to unify the actual formats
universal has quit [Ping timeout: 260 seconds]
joes has quit [Ping timeout: 240 seconds]
joes has joined #ruby
universa1 has joined #ruby
bokayio has joined #ruby
<frozengeek>
matthewd: well, they aren't really different and I don't have control over the internal representation, the only thing I have is that I generate that json file from that hash (in another program run) and when I load it again from json it doesn't match the internal hash anymore.
AlienElite_ has left #ruby [#ruby]
Mia has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
<matthewd>
If the process of getting from hash to JSON involves more than a simple h.to_json, then presumably parsing the JSON back to a hash needs to do something that corresponds
quobo has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
ta_ has quit [Remote host closed the connection]
bmurt has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
rgtk has quit [Ping timeout: 258 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
Silthias1 has quit [Quit: Leaving.]
aupadhye has joined #ruby
Silthias has joined #ruby
ocpysh has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ocpysh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
mim1k has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
aupadhye has joined #ruby
KeyJoo has quit [Ping timeout: 246 seconds]
jamesaxl has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
KeyJoo has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 255 seconds]
cadillac_ has joined #ruby
vondruch has joined #ruby
jphase has joined #ruby
MarkBilk has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
MarkBilk_ has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: This computer has gone to sleep]
funkytwig has joined #ruby
<funkytwig>
Hi everybody. Is the list server slow today. I am trying to join ruby-talk but not getting the email, I have checked in my spam folder.
yehowyada has joined #ruby
kalidor has joined #ruby
psychicist__ has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
creaked has joined #ruby
uZiel has joined #ruby
govg has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
DLSteve has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alex`` has joined #ruby
hahuang65 has joined #ruby
dennisvennink has joined #ruby
ramfjord has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
mostlybadfly has joined #ruby
mim1k has joined #ruby
X-tonic has left #ruby [#ruby]
ldnunes has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
funkytwig has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
funkytwig has joined #ruby
milardovich has quit []
cdg has quit [Remote host closed the connection]
oleo has joined #ruby
cdg has joined #ruby
sleepee has joined #ruby
ldnunes has joined #ruby
Rapture has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
hutch34 has joined #ruby
chouhoulis has joined #ruby
KeyJoo has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theunraveler has joined #ruby
bmurt has joined #ruby
kculpis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgtk has quit [Remote host closed the connection]
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
cschneid_ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
bmurt has joined #ruby
[Butch] has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
ocpysh has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
pior has joined #ruby
afromankenobi has joined #ruby
snowcrshd has joined #ruby
tomphp has joined #ruby
mistergibson has quit [Quit: Leaving]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
mim1k has joined #ruby
aphel has quit [Ping timeout: 246 seconds]
jamesaxl has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funkytwig has quit [Read error: Connection reset by peer]
snowcrshd has joined #ruby
snowcrshd has quit [Client Quit]
<Zarthus>
ocpysh: there are 300 people in there, surely someone in there can help you far better than we can
<Zarthus>
we typically redirect people to the rails channel, although if you could ask your question as a generic ruby question it might be worth a shot
ocpysh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<konsolebox>
anyone knows how to configure a .gemspec file so Gem::RDoc would also generate ri documents from directories with lower level than ext? e.g. ext/sub/module. because it doesn't seem to.
<konsolebox>
i'm currently studying rubygems but perhaps someone here already knows how to do it.
dcunit3d has joined #ruby
tomphp has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
KeyJoo has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
ramfjord has joined #ruby
beilabs has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
bmurt has joined #ruby
raul782 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
digitalnomad has joined #ruby
goyox86_ has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
sleepee has quit [Quit: Leaving]
raul782 has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Paraxial has quit [Remote host closed the connection]
Fridtjof has quit [Ping timeout: 258 seconds]
Paraxial has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 248 seconds]
kn-928 has quit [Quit: WeeChat 1.9]
mim1k has joined #ruby
ramfjord has joined #ruby
conta1 has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
kn-928 has joined #ruby
Moosashi has quit [Quit: Moosashi]
raul782 has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
kn-928 has quit [Client Quit]
kn-928 has joined #ruby
beilabs has joined #ruby
beilabs has quit [Remote host closed the connection]
kn-928 is now known as Guest63221
ramfjord has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
rahult has quit [Ping timeout: 246 seconds]
weems|laptop has joined #ruby
<weems|laptop>
Having a error using irb: bash: /usr/local/bin/irb: /usr/local/bin/ruby: bad interpreter: No such file or directory
<llua>
sed -n l foo.rb
rahult has joined #ruby
<llua>
well, sed -n 1l foo.rb
brent__ has quit [Ping timeout: 240 seconds]
Guest63221 has quit [Quit: WeeChat 1.9]
tvw has quit []
<linduxed>
so there's this language called moonscript which is something like a coffeescript for lua. there's one language feature of it that i've been wondering if one could port over to ruby:
cdg has joined #ruby
jrabe has quit [Max SendQ exceeded]
jrabe has joined #ruby
<linduxed>
if one writes `:foo, :bar` this gets compiled to `{ foo: foo, bar: bar }`
<linduxed>
a very quick way to construct hashes (tables in moonscript/lua) with keys named the same as the variables used as values
<linduxed>
i'm thinking one could maybe achieve this with some meta-programming, maybe
<linduxed>
of course one would need to choose something else than :foo, considering we've already got that used by symbols
eightlimbed has quit [Ping timeout: 258 seconds]
troulouliou_div2 has quit [Quit: Leaving]
cdg_ has quit [Ping timeout: 276 seconds]
cdg has quit [Ping timeout: 255 seconds]
<konsolebox>
weems|laptop: /usr/local/bin/irb is perhaps hard-coded to use /usr/local/bin/ruby, but /usr/local/bin/ruby no longer exists. also try pry: gem install pry
cdg has joined #ruby
Guest69369 has quit [Ping timeout: 276 seconds]
<konsolebox>
linduxed: what's the use case for that?
cdg has quit [Ping timeout: 240 seconds]
<linduxed>
konsolebox: i'd say it's no more than a convenience, but it shortens up certain long hash-literal declarations
marr has quit [Ping timeout: 255 seconds]
Moosashi has quit [Quit: Moosashi]
<konsolebox>
linduxed: it's easy to create a function for that
rahult_ has joined #ruby
<konsolebox>
>> def h(*keys); h = {}; keys.each{ |e| h[e.to_sym] = e.to_s; }; h; end; h :a, :b, :c
<linduxed>
hmm, considering the difference in how instance variables are referenced as compared to local variables this wouldn't really be working the same way in ruby
ur5us has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Ping timeout: 258 seconds]
<linduxed>
once more, this is just a curiosity that i started thinking about, not something i'm trying to introduce to some codebase