havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
outreach_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has quit [Quit: sleep]
hutch34_ has quit [Ping timeout: 258 seconds]
outreachdan has joined #ruby
domgetter has joined #ruby
Fridtjof has quit [Ping timeout: 252 seconds]
alan_w has joined #ruby
Fridtjof has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
pickle_ has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ineb has quit [Read error: Connection reset by peer]
rakm has joined #ruby
ineb has joined #ruby
outreachdan has joined #ruby
Silthias has joined #ruby
rgr_ has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
username1 has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 260 seconds]
snockerton has quit [Quit: Leaving.]
mrconfused has quit [Ping timeout: 258 seconds]
SeepingN has quit [Remote host closed the connection]
mim1k has joined #ruby
gusrub has joined #ruby
gravyflex has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe has joined #ruby
Verity has quit [Remote host closed the connection]
impermanence has joined #ruby
duderonomy has joined #ruby
outreachdan has joined #ruby
mooser has quit []
esObe has quit [Ping timeout: 260 seconds]
mrconfused has joined #ruby
mooser has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
bronson has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
maattdd has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
StoneCypher has quit [Ping timeout: 255 seconds]
juggler has joined #ruby
Rodya_ has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
bronson has joined #ruby
gravyflex has quit [Quit: gravyflex]
<impermanence> I took this code from a book. And I'm pretty sure it doesn't work because it essentially tries to open a variable (not quite sure if that's the right way to phrase it). Just want to check with the experts before I contact the author:
<impermanence> It doesn't work for me. Either by script or in irb. But if I write() to it and then open it it works. This is of course only one solution. But either way I'm pretty sure its dead as is.
esObe has joined #ruby
pickle_ has quit [Remote host closed the connection]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
SteenJobs_ has joined #ruby
impermanence has joined #ruby
<impermanence> Sorry if this already came thru: I couldn't tell if I was connected or not.
<impermanence> I took this code from a book. And I'm pretty sure it doesn't work because it essentially tries to open a variable (not quite sure if that's the right way to phrase it). Just want to check with the experts before I contact the author:
pickle_ has joined #ruby
lel has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<cerulean> how do i know if ive written the most advanced twitter/api consumer irc bot
<cerulean> i think i have
<cerulean> lol
<cerulean> it supports 90% of REST features and the LiveStream API
<cerulean> also it can search bing
<cerulean> lol
joneshf-laptop has joined #ruby
mrconfused has joined #ruby
ghornet has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
lel has quit [Ping timeout: 258 seconds]
esObe has joined #ruby
Channel6 has quit [Quit: Leaving]
cyphase has joined #ruby
lel has joined #ruby
rakm_ has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
rakm has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
pilne has quit [Quit: Quitting!]
juggler has quit [Remote host closed the connection]
mrconfused has quit [Ping timeout: 258 seconds]
hndk has joined #ruby
gusrub has quit []
ryan_notabot has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
milardovich has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
bonhoeffer_ has joined #ruby
maattdd has joined #ruby
hutch34_ has joined #ruby
<impermanence> cerulean: will you confirm that this code doesn't work? https://gist.github.com/jonassteinberg1/44ab6b63b584b42d9c26df58c901e26a
<impermanence> cerulean: I know it's trivial for an experienced programmer, but the author is debating me that it does and I can't get it to go.
maattdd has quit [Ping timeout: 260 seconds]
<impermanence> cerulean: just run the script with some command line positional parameter like myfile.txt
hutch34_ has quit [Ping timeout: 260 seconds]
figuresofstick has quit [Quit: Leaving]
pickle_ has quit [Read error: Connection reset by peer]
<cerulean> impermanence: that code is fine. are you quoting the path argument?
<cerulean> whats the error
<impermanence> cerulean: hm. maybe that's it? let me check.
<cerulean> ARGV seperates by spaces
pickle_ has joined #ruby
<impermanence> cerulean: hm. nope can't get it. I'll post exactly what I'm entering at the CLI.
<cerulean> when you run the script like this
<cerulean> ruby script.rb <path>
<cerulean> ARGV.first is script.rb
<cerulean> and not <path>
<cerulean> got it?
<impermanence> cerulean: this is copy and pasted directly from the author's text. this is how his book says to run it: ruby ex15.rb ex15_sample.txt
<impermanence> now here's my gist
<impermanence> error ^
<cerulean> ok
<havenwood> you can have more than one file per gist, it makes it easier to look at the whole picture
<cerulean> it can't find the file because you need to provide the full path
<cerulean> simply provide the full path to the file when you run it
<impermanence> wow. okay.
<cerulean> /Home/impermanence/development/personal/git/ruby/io/ext15_sample.txt
<impermanence> cerulean: yep. will do.
gnufied has quit [Quit: Leaving]
<impermanence> cerulean: same.
<cerulean> check that the path is correct
<cerulean> open /Home/impermanence/development/personal/git/ruby/io/ext15_sample.txt
<cerulean> run that
<cerulean> if it opens the text file, the path is correct
<impermanence> ext15_sample.txt doesn't exist. maybe his instructions say to create it.
<impermanence> lemme check.
<cerulean> you can't open a file that doesn't exist unless you use +w and maybe +a flags when you open it i think
<impermanence> cerulean: I don't think his instructions say to create the file first.
<cerulean> a - Append to a file.The file is created if it does not exist.
<cerulean> you were lied to
<cerulean> you can't open a nonexist file
<cerulean> sorry just can't
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cerulean> unless you use a or a+ modes
jameser has joined #ruby
<cerulean> which will create it
<cerulean> create it with touch ex15_sample.txt
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<impermanence> that was the problem. I didn't read his instructions carefully enough. He implies that you need to write the file first, write some stuff to it and then work with his code.
<impermanence> k, cool.
<cerulean> touch is an old unix command which lets you create an empty unix file
<cerulean> since that program tries to output
<cerulean> you might wanna
<cerulean> echo "stuff" >> ex15_sample.txt
<cerulean> so you see something when you run it
<cerulean> if you're feeling real adventurous go here http://stackoverflow.com/questions/7911669/create-file-in-ruby and learn how to use ruby to write to the file and create if necessary
<impermanence> cerulean: I think that was the problem. I often just read what he says once and then go to the ruby core and stdlib docs because I'm comfortable doing that.
<impermanence> cerulean: so I always end up writing my own code which almost always doesn't follow his logic (I learn it better that way.)
<cerulean> thats good, dont miss out on stack. authors make mistakes
<cerulean> always google the error message
<impermanence> cerulean: totally.
<cerulean> always better to write your own code
<impermanence> cerulean: yeah so I've been using fileutils and kernel and etc. etc.
<impermanence> yep
<cerulean> dont be like an english teacher who cant speak good english
<cerulean> use it up, ruby is the best tool
Rodya_ has quit [Remote host closed the connection]
<impermanence> cerulean: to his credit he got back to me and was patient. he was not a dick.
andrewvee has joined #ruby
ghornet has quit [Ping timeout: 258 seconds]
genpaku has quit [Remote host closed the connection]
<impermanence> thanks for the second set of eyes. always a help.
* Nilium wishes he had more eyes
genpaku has joined #ruby
jaequery has joined #ruby
<cerulean> np
chouhoulis has quit [Ping timeout: 252 seconds]
zipkid has quit []
<cerulean> ive used ruby since 2010
<cerulean> so i try
zipkid has joined #ruby
chichou has joined #ruby
ghornet has joined #ruby
Channel6 has joined #ruby
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
chichou has quit [Ping timeout: 258 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
hutch34_ has joined #ruby
mim1k has joined #ruby
pickle__ has joined #ruby
JeanCarloMachado has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
pickle_ has quit [Ping timeout: 260 seconds]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
spicerack has joined #ruby
jetpackjoe has joined #ruby
bonhoeffer_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
MicaFox[m] has left #ruby ["User left"]
maattdd has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
charliesome has joined #ruby
sleetdrop has joined #ruby
ghornet has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
jane_booty_doe has joined #ruby
maattdd has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
maattdd has quit [Ping timeout: 252 seconds]
pifon has quit [Quit: Connection closed for inactivity]
gravyflex has joined #ruby
mrconfused has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
AlexRussia has quit [Ping timeout: 268 seconds]
AlexRussia has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has joined #ruby
impermanence has joined #ruby
enterprisey has joined #ruby
gottcha has joined #ruby
impermanence has quit [Client Quit]
AnoHito has quit [Read error: Connection reset by peer]
BSab has joined #ruby
AnoHito has joined #ruby
Silthias has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Silthias1 has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 268 seconds]
Trynemjoel has joined #ruby
BSAlb has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has quit []
gix has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
mrconfused has quit [Ping timeout: 258 seconds]
jane_booty_doe has quit [Quit: Leaving]
esObe has joined #ruby
AlexRussia has quit [Ping timeout: 268 seconds]
hinbody has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
mooser has quit [Remote host closed the connection]
impermanence has joined #ruby
impermanence has left #ruby [#ruby]
mooser has joined #ruby
maattdd has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
gravyflex has quit [Quit: gravyflex]
AlexRussia has joined #ruby
maattdd has quit [Ping timeout: 268 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
maattdd has joined #ruby
Channel6 has quit [Quit: Leaving]
gix has quit [Ping timeout: 252 seconds]
mooser has quit [Remote host closed the connection]
enterprisey has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
gix has joined #ruby
wkoszek has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
pickle__ has quit [Remote host closed the connection]
pickle__ has joined #ruby
enterprisey has quit [Remote host closed the connection]
astrobunny has joined #ruby
rakm has joined #ruby
raul782 has joined #ruby
milardovich has quit []
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
renchan has joined #ruby
hutch34_ has joined #ruby
mim1k has joined #ruby
esObe has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
hndk has quit [Quit: Leaving]
bkxd has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
esObe has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
darthvorik_ is now known as darthvorik
jtd has quit [Ping timeout: 240 seconds]
pickle__ has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
ejnahc_ has quit [Remote host closed the connection]
SteenJobs_ has quit [Quit: SteenJobs_]
ejnahc has joined #ruby
jetpackjoe has left #ruby [#ruby]
maattdd has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
Bock has joined #ruby
__Yiota has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
Pumukel has joined #ruby
mooser has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good evening!
<havenwood> >> alias g p; g'eve'
<ruby[bot]> havenwood: # => "eve" ...check link for more (https://eval.in/776348)
minimalism has quit [Quit: minimalism]
Silthias has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
gusrub has quit [Remote host closed the connection]
ericmathison has joined #ruby
claw has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
mim1k has joined #ruby
BTRE has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
Cohedrin has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
JeanCarloMachado has joined #ruby
StoneCypher has joined #ruby
StoneCypher has quit [Ping timeout: 255 seconds]
esObe has joined #ruby
haraoka has joined #ruby
gusrub has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
esObe has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
jaequery has joined #ruby
gusrub has quit []
muelleme_ has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Remote host closed the connection]
AlexRussia has joined #ruby
patarr has joined #ruby
chichou has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
PorcoRex has quit [Remote host closed the connection]
chichou has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
agent_white has quit [Ping timeout: 258 seconds]
govg has quit [Quit: leaving]
hutch34_ has joined #ruby
Paraxial has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
hutch34_ has quit [Ping timeout: 240 seconds]
ericmathison has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
Guest96 has quit [Remote host closed the connection]
mooser has quit [Remote host closed the connection]
ericmathison has joined #ruby
Guest96 has joined #ruby
ta_ has quit [Remote host closed the connection]
muelleme_ has quit [Ping timeout: 240 seconds]
Paradox has quit [Ping timeout: 240 seconds]
Paradox has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
twistedpixels_ has quit [Ping timeout: 240 seconds]
twistedpixels_ has joined #ruby
mooser has joined #ruby
surrounder has joined #ruby
djbkd_ has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
AlexRussia has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
Burgestrand has joined #ruby
AnoHito has quit [Ping timeout: 258 seconds]
Pacco has joined #ruby
jaequery has joined #ruby
Pacco has left #ruby [#ruby]
Pacco has joined #ruby
Pacco has left #ruby ["Be back later..."]
AnoHito has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
mark_66 has joined #ruby
Pacco has joined #ruby
Guest69326 has quit [Ping timeout: 240 seconds]
mooser has quit [Remote host closed the connection]
mint has joined #ruby
Pacco has quit [Quit: Mutter: www.mutterirc.com]
AlexRussia has quit [Ping timeout: 240 seconds]
Pumukel has quit []
AlexRussia has joined #ruby
rgtk has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
esObe has joined #ruby
xall has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
StoneCypher has joined #ruby
mint has quit [Ping timeout: 255 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
mint has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
claw has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chichou has joined #ruby
esObe has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
mim1k has joined #ruby
_mak has joined #ruby
<_mak> how can I avoid the char 'ü' from converting to its unicode value?
<_mak> when I try to write this char in a file it will convert to a huge number of unicode values
<_mak> I've tried adding # coding: utf-8 to the first line of the script but it did not work
<_mak> it was working alright on linux, but I'm getting this now on windows
claw has quit [Ping timeout: 252 seconds]
patarr has joined #ruby
maattdd has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
kassav_ has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
mint has quit [Ping timeout: 260 seconds]
mint has joined #ruby
claw has joined #ruby
hutch34_ has joined #ruby
mooser has joined #ruby
karapetyan has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
maattdd_ has joined #ruby
ledestin has joined #ruby
mooser has quit [Ping timeout: 255 seconds]
<_mak> the before and after value
JoshS has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
maattdd has quit [Ping timeout: 252 seconds]
marr has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
cyphase has quit [Ping timeout: 252 seconds]
<jhass> _mak: first of all what's your ruby version?
<_mak> jhass: ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
<jhass> okay, can you show the code that writes it and the one that reads it back?
chichou has joined #ruby
<_mak> jhass: I get the value from the DB and use f.write to write to a file
<jhass> what kind of DB?
<_mak> mysql
cyphase has joined #ruby
<_mak> utf_general_ci
<_mak> enconding
<_mak> *utf8
<jhass> that's the collation ;)
<_mak> true :)
<jhass> on the column and connection too?
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
<_mak> I do not specify anything on the connection... not sure how to see the encoding for the column
lxsameer has joined #ruby
<_mak> I connect with Mysql2::Client.new(:host => @db_ip, :username => "root", :password => @db_password)
mim1k has quit [Ping timeout: 240 seconds]
<jhass> (MySQL allows to override the encoding and collation per column but if you didn't set anything it should inherit it from the table and if that's not set from the db)
govg has joined #ruby
<jhass> try passing :encoding => "utf8" to the connect call too
<jhass> and do not do any encode calls
<_mak> ok
<jhass> they shouldn't be necessary if you have the input with right encoding specified and the output specified with the right encoding
<_mak> jhass: same results
<jhass> so open the file with :encoding => "UTF-8" too
<_mak> hmm
<_mak> ok
<_mak> it is actually a new file: File.new("#{json_dir}/#{table}.json","w", :encoding => "UTF-8")
<jhass> sure that's fine
<_mak> cool
<jhass> open and new are just aliases
<_mak> jhass: same issue
<jhass> ok, time to dig into the db
<jhass> a common issue especially with mysql is that the data was written with the wrong encoding into the db in the first place
<_mak> I see
<_mak> should I find out the encoding of the column then
<jhass> so say it's UTF-8, mysql thinks it's ISO something and tries to convert the UTF-8 into UTF-8 for your connection by interpreting it as ISO something
<jhass> stuff like this
<_mak> right
<_mak> I've just found out the column encoding: uft8
chichou has quit [Ping timeout: 240 seconds]
<_mak> *utf8
dhollin3 has joined #ruby
astrobun_ has joined #ruby
<jhass> how's the data written into the DB?
Guest24_ has joined #ruby
AlexRussia has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
<_mak> jhass: what do you mean?
<_mak> normal insert I would say
<jhass> yeah sorry, I mean by what kind of environment
<jhass> what programming language running on what kind of OS
<jhass> potentially getting its input itself from where
<jhass> also if you do a select on the mysql console does it display correctly actually?
<_mak> ah right, it was inserted in an ubuntu OS, ruby as well (can't remember the version), the input was taken from a json API
<_mak> I'm using a mysql client, let me check if it shows correct on the console
dhollinger has quit [Ping timeout: 260 seconds]
<_mak> shit, I don't have the mysql client on my windows
<_mak> I thought I could not be related to the console because it is writting incorrectly to the file as well
<_mak> so it can't be just a matter of not being able to display it correctly
<jhass> well, what I really want to know is whether there's anything that gets it out correctly
<jhass> but I guess you already said its fine when you run the same script on linux?
<_mak> yeah
<_mak> jhass: what if I run a select on irb
<_mak> would that be a good test?
Pumukel has joined #ruby
<jhass> I wouldn't expect much difference tbh
<_mak> ok then
dionysus69 has joined #ruby
<jhass> I'd run the script in the same version as you run it on linux but with the added :encoding => params to both the connection and the file
<jhass> and then make sure to open it in a UTF-8 aware editor on windows
<_mak> I can't remember what version I had on the linux machine... so you say I could try installing an older ruby version to test?
<_mak> I'm using sublime
Guest52610 has joined #ruby
<jhass> older ruby versions generally only make encoding matters worse ;)
<jhass> 2.0 was the first one where general sanity was achieved
<_mak> jhass: I've just noticed that if I select that row from irb the quantity of unicode chars is just one: => {"publisher_id"=>7582, "name"=>"VS Verlag f\u00FCr Sozialwissenschaften"}
<_mak> so there must be something that is multiplying the quantity somewhere
<jhass> mh
<jhass> \u00FC is UTF-8 ü fwiw
<_mak> yeah
<_mak> so what could be converting this char into that big sequence of unicodes
adgtl- has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jhass> what does ruby think that string in irb is? (check its .encoding)
<_mak> #<Encoding:UTF-8>
<jhass> so it just thinks it can't display it to you
<_mak> but why when it get writtent to the file is goes crazy?
<_mak> *written
<jhass> what if you do File.write("test", that_thing, encoding: "UTF-8") in irb?
<jhass> and open test in sublime text
mim1k has joined #ruby
<_mak> {"publisher_id"=>7582, "name"=>"VS Verlag f\u00FCr Sozialwissenschaften"}
<jhass> sorry I meant ["name"]
<_mak> jhass: aha! VS Verlag für Sozialwissenschaften
<_mak> how come
<jhass> so something messes it up in your real script
JoshS has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<jhass> and it should be neither the reading nor the writing stage
<_mak> it must be the json conversion then
<_mak> no?
mikecmpb_ has joined #ruby
<jhass> maybe, let's experiment further in irb
<jhass> File.write("test", foo.to_json, encoding: "UTF-8")
mikecmpbll has quit [Ping timeout: 258 seconds]
<_mak> oh man! {"publisher_id":7582,"name":"VS Verlag für Sozialwissenschaften"}
* _mak is totally confused now :)
<jhass> okay let's make sure it's now on how you invoke, make a new ruby script that just does the minimal stuff you did in irb and see if it's still ok when you do ruby that.rb
<jhass> *not how
Guest52610 is now known as CrazEd
<_mak> ok
esObe has joined #ruby
CrazEd is now known as Guest49772
<_mak> jhass: it works correctly
<_mak> so it must be something else in my script
<jhass> so there's gotta be something else you do besides converting to json ;)
<_mak> yeah
<_mak> what could I look for
<_mak> file.read? and stuff like that?
<jhass> idk, that you do json conversion at all was news to me until you mentioned it ;)
<jhass> no idea what you script really does
<_mak> ok then, I'll try to find it
<_mak> thanks a lot mate
<jhass> yw
<jhass> expanding that minimal example step by step to include all the steps you do in your real thing might be a good way forward
esObe has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
Guest24_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest24_ has joined #ruby
mooser has joined #ruby
darwish has joined #ruby
<darwish> Hello. Does ruby support assignment in argument list?
<darwish> That is, def f(a, b, c) end
<darwish> f(a = 2, c = 3, b = 1)
<herwin> have you tried it?
<darwish> oh, seems it does not
<darwish> This was trigirred by rubocop
<ljarvis> darwish: this is the closest thing to what you want: https://robots.thoughtbot.com/ruby-2-keyword-arguments
<darwish> ljarvis, thanks a lot! that's what I needed indeed :-)
Guest96 has quit [Remote host closed the connection]
ferr has joined #ruby
grh has joined #ruby
Guest96 has joined #ruby
Guest24_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 258 seconds]
Guest24_ has joined #ruby
mint has quit [Ping timeout: 258 seconds]
StoneCypher has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
mooser has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest49772 is now known as CrazEd
CrazEd is now known as Guest17097
binaryplease has joined #ruby
User458764 has joined #ruby
jameser has joined #ruby
esObe has joined #ruby
Guest24_ has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
patarr has joined #ruby
flying has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 252 seconds]
flying has quit []
hutch34_ has joined #ruby
t-recx has joined #ruby
<flips> Huh, in irb 'require "crack/xml" returns true, in pry I get "LoadError: cannot load such file"
<darwish> rubocop complains about "while true": W: Literal true appeared in a condition.
<darwish> Any better alternative?
<matthewd> darwish: rubocop defaults to enforcing https://github.com/bbatsov/ruby-style-guide
<ljarvis> darwish: loop { }
ericmathison has quit [Ping timeout: 258 seconds]
nickjj has joined #ruby
papillom has joined #ruby
<darwish> ljarvis, thanks again!
Jackneill has joined #ruby
al2o3-cr has joined #ruby
bodgix has joined #ruby
ptx0 has quit [Ping timeout: 240 seconds]
<jhass> flips: maybe they're using different rubies?
papillom has quit [Quit: Leaving.]
papillom has joined #ruby
karapetyan has quit [Remote host closed the connection]
loechel has joined #ruby
<flips> jhass: running pry from a dir with .ruby-version and .ruby-gemset defined
Pumukel has quit [Ping timeout: 252 seconds]
jameser has quit [Ping timeout: 268 seconds]
s3m1s0n1c has joined #ruby
<s3m1s0n1c> Hey guys...
pankaj_ has joined #ruby
<s3m1s0n1c> How does one read a fifo mpeg file..
<s3m1s0n1c> Using pipe_named doesn’t work
<s3m1s0n1c> with ruby-mumble
bonhoeffer_ has joined #ruby
s3m1s0n1c has left #ruby [#ruby]
karapetyan has joined #ruby
Emmanuel_Chanel has joined #ruby
sepp2k has joined #ruby
foxmask has joined #ruby
<foxmask> o/
Guest17097 is now known as CrazEd
alazred has joined #ruby
CrazEd is now known as Guest74649
bonhoeffer_ has quit [Ping timeout: 252 seconds]
bodgix has quit [Quit: Leaving.]
acalycine has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
adgtl- has joined #ruby
acalycine has quit [Remote host closed the connection]
jamesaxl has joined #ruby
pickle_ has joined #ruby
mark_66 has quit [Quit: Leaving.]
grh has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
patarr has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
nomenkun has joined #ruby
AlexRussia has joined #ruby
synthroid has joined #ruby
ineb has quit [Quit: leaving]
synthroid has quit [Remote host closed the connection]
binaryplease has quit [Quit: binaryplease]
patarr has quit [Ping timeout: 260 seconds]
Arpanet69 has joined #ruby
synthroid has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
astrobunny has quit [Ping timeout: 258 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
StoneCypher has joined #ruby
bronson has quit [Remote host closed the connection]
jdm has quit [Ping timeout: 260 seconds]
StoneCypher has quit [Ping timeout: 260 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
nomenkun has quit [Remote host closed the connection]
pankaj_ has quit [Quit: Leaving]
nomenkun has joined #ruby
mooser has joined #ruby
nomenkun has quit [Read error: No route to host]
SteenJobs_ has joined #ruby
nomenkun has joined #ruby
synthroi_ has joined #ruby
Sammichmaker has joined #ruby
yurikoles has joined #ruby
synthroid has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Quit: Leaving.]
jdm has joined #ruby
nomenkun has quit [Quit: Leaving...]
pupsicle has joined #ruby
Jackneill has quit [Remote host closed the connection]
jdm has quit [Remote host closed the connection]
DARPA has joined #ruby
Guest74649 is now known as CrazEd
CrazEd is now known as Guest26551
esObe has joined #ruby
Arpanet69 has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
Arpanet69 has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
singalaut has joined #ruby
DARPA has quit [Ping timeout: 268 seconds]
DARPA has joined #ruby
mooser has quit [Ping timeout: 252 seconds]
ebanoid has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
JeanCarloMachado has joined #ruby
loechel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
rgr_ has quit [Quit: rgr_]
Pumukel has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: Closing time!]
chichou has joined #ruby
arquebus has joined #ruby
<flips> importing values from an XML file, the booleans ends up as string "true" and "false" ... Is there an easy way to "boolify" the strings? :) (Assuming it might not, as true and false are object, that might have to write a conditional test)
StoneCypher has joined #ruby
<jhass> value = true if value == "true"; value = false if value == "false"
supergeek has joined #ruby
chichou has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
arquebus has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
arquebus has joined #ruby
karapetyan has joined #ruby
bdonnahue has quit [Ping timeout: 258 seconds]
StoneCypher has quit [Ping timeout: 268 seconds]
supergeek has quit [Remote host closed the connection]
supergeek has joined #ruby
supergeek has quit [Client Quit]
nemish has joined #ruby
<elomatreb> jhass: Or just value = value == "true"?
<jhass> elomatreb: that assumes the only other valid value is "false"
ghornet has joined #ruby
<hanmac> flips: what should it return if its neither true or false?
nyuszika7h has quit [Quit: Upgrading WeeChat, brb]
nyuszika7h has joined #ruby
govg has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
<flips> Hm, I do want the field to be only true or false, boolean style. I'm saving to the xml file myself using xmlsimple (or crack, is the plan)
mim1k has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
<pupsicle> >> 'true'.to_s == 'true' && true.to_s == 'true'
<ruby[bot]> pupsicle: # => true (https://eval.in/776562)
<pupsicle> >> 'false'.to_s == 'true' || false.to_s == 'true'
<ruby[bot]> pupsicle: # => false (https://eval.in/776563)
sleetdrop has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
chouhoulis has joined #ruby
sepp2k has joined #ruby
bigkevmcd has joined #ruby
<flips> elomatreb: That was compact syntax :) So ... value should point/be assigned to value's object if value == "true" (and then point to false if value is something else)?
<flips> (Yep, the syntax worked very well) :)
Guest26551 is now known as CrazEd
<jhass> it just assigns the value of the expression value == "true" back to value
<jhass> there's no "if"
CrazEd is now known as Guest27278
<flips> and no parenthesis :)
<jhass> but if this is all in your hands, did you consider just using json as it has a native boolean type?
rippa has joined #ruby
<flips> I tried asking yesterday if I should consider json, xml or haml in addition to yaml ... Now you gave me a good reason for json
bigkevmcd has quit [Client Quit]
<flips> I'm just experimenting for learning anyways :)
<flips> I know crack has json, but should I consider some other module/gem?
<jhass> tbh I don't get the purpose of crack
<jhass> how's it better than require "json"; JSON.parse
<jhass> given json is in the stdlib
<flips> ok, it showed up when I searched for xml parsing tools :)
<jhass> the standard xml parsing library is nokogiri with oga gaining momentum
ghornet has quit [Ping timeout: 255 seconds]
synthroi_ has quit [Remote host closed the connection]
arquebus has quit [Quit: Leaving]
<flips> I tried nokogiri, but ended up a very complex hash ... Russ Olsen mentions xmlsimple in his book :)
mint has joined #ruby
<jhass> well you shouldn't use nokogiri to pull out a hash
<jhass> but rather stick to its API as long as possible
<jhass> using .css or .xpath to get at the nodes you want
SteenJobs_ has quit [Quit: SteenJobs_]
harfangk has joined #ruby
mooser has joined #ruby
poikon has quit []
poikon has joined #ruby
mrconfused has joined #ruby
papillom has quit [Quit: Leaving.]
karapetyan has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 260 seconds]
papillom has joined #ruby
s2013 has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
jrm has joined #ruby
erlend has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
pickle_ has quit [Remote host closed the connection]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renchan has quit [Quit: Leaving...]
bmurt has joined #ruby
erlend has joined #ruby
govg has joined #ruby
sleetdrop has joined #ruby
shinnya has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
bronson has joined #ruby
<flips> json seems simpler for such data I'm storing :)
ineb has joined #ruby
rakm has joined #ruby
ghornet has joined #ruby
patarr has joined #ruby
t-recx has quit [Quit: t-recx]
houhoulis has quit [Remote host closed the connection]
Guest96 has quit [Quit: Guest96]
Guest96 has joined #ruby
karapetyan has joined #ruby
synthroid has joined #ruby
ghornet has quit [Ping timeout: 260 seconds]
LastWhisper____ has joined #ruby
claudevandort has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
yurikoles has quit [Read error: Connection reset by peer]
Bob8989|2 has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
yurikoles has joined #ruby
ptx0 has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghornet has joined #ruby
ptx0 has quit [Ping timeout: 240 seconds]
<jhass> more often than not it is ;)
shwouchk has joined #ruby
Guest27278 is now known as CrazEd
CrazEd is now known as Guest79343
esObe has joined #ruby
chouhoulis has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
esObe has quit [Ping timeout: 260 seconds]
mint has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
grh has joined #ruby
karapetyan has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
ptx0 has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrconfused has joined #ruby
kf has joined #ruby
kf has quit [Client Quit]
ghornet has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
mrconfused has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
millerti has joined #ruby
karapetyan has quit [Remote host closed the connection]
JackMc is now known as auv5
mint has joined #ruby
bigkevmcd has joined #ruby
domgetter has quit [Ping timeout: 252 seconds]
mrconfused has joined #ruby
mint has quit [Ping timeout: 255 seconds]
auv5 is now known as magic
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghornet has joined #ruby
Guest96 has quit [Remote host closed the connection]
gsilva has joined #ruby
<allisio> We can turn `x = x + 1` into `x += 1`, but not `x = x == other` into `x === other`, at least not in the general case.
<allisio> Or, well, not in any case, I guess; things can't be #replace'd to booleans. :/
snockerton has joined #ruby
Guest96 has joined #ruby
SuperLag_ has joined #ruby
SuperLag has quit [Disconnected by services]
SuperLag_ is now known as SuperLag
snockerton has quit [Client Quit]
SuperLag has quit [Changing host]
SuperLag has joined #ruby
ozcanesen has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flips> When I do a @myhash = JSON.parse(myfile, opts...) in a class method, then @file="/path/to/myfile.json" ends up in my hash after the data I wanted (hash created by myhash = MyClass.new and myhash.load_item_from_file)
karapetyan has joined #ruby
<flips> I assume my logic is wrong ;)
<jhass> gist your code?
cfec0b8d has quit [Ping timeout: 252 seconds]
despai has joined #ruby
ghornet has quit [Ping timeout: 268 seconds]
mrconfused has quit [Ping timeout: 255 seconds]
joelwallis has joined #ruby
* apeiros guesses scope confusion
<apeiros> but yeah, code
ptx0 has quit [Quit: leaving]
ptx0 has joined #ruby
despai has quit [Client Quit]
despai has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FastJack has quit [Ping timeout: 260 seconds]
Dry_Lips has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
gravyflex has joined #ruby
<flips> I'm guessing that, too, I'm trying to move working code into class/subclass... ;) https://eval.in/776594 (It's a mix of other copied&pasted code, but list = List.new, and list.load_items seems to work, but list contains a layer too much or something
jameser has quit [Max SendQ exceeded]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Bob8989|2 has quit [Read error: Connection reset by peer]
millerti has joined #ruby
<jhass> flips: JSON.parse is for reading json into a hash, to turn a hash back into json before writing it into a file just call .to_json on it
mrconfused has joined #ruby
millerti has quit [Client Quit]
<jhass> however note that neither will automagically handle the nested Item class
Silthias has quit [Ping timeout: 260 seconds]
Silthias1 has joined #ruby
<elomatreb> Or use JSON.dump, which can also directly dump directly into a file (http://ruby-doc.org/stdlib-2.4.1/libdoc/json/rdoc/JSON.html#method-i-dump)
cdg has joined #ruby
synthroid has joined #ruby
jameser has joined #ruby
<flips> I haven't looked into the saving yet (it's copied and pasted/confused with code from a working array example), I thought I would learn more about hashes by rewriting it and also test json/xml etc .. So the input file looks valid and works in a plain example (no classes, just load from file and puts)
Guest79343 is now known as CrazEd
CrazEd is now known as Guest33763
HalcyonicStorm has quit []
HalcyonicStorm has joined #ruby
esObe has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
<flips> This code worked for parsing/reading the json file: https://eval.in/776600
<elomatreb> gist.github.com is better to read usually if you don't need/want your code to be executed
<flips> *noted* :)
<elomatreb> Also, optional arguments in Ruby don't work like they do in Python, they're still just positional
<elomatreb> You're assigning to a never-used local variable "opts" in line 11
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
jamesaxl has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
StoneCypher has joined #ruby
<flips> I thought that opts were known/expected by JSON.parse, it does symbolize the names :)
<elomatreb> It is an optional argument, it only works because variable assignment returns the assigned value
<elomatreb> `JSON.parse(File.read(file), { :symbolize_names => true })` does the same
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti> happy zombie jesus day
<flips> I see, just an anonymous hash instead
mooser has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ryan_notabot has quit [Ping timeout: 252 seconds]
mrconfused has quit [Ping timeout: 258 seconds]
blackwind_123 has quit [Ping timeout: 260 seconds]
adam12 has quit [Quit: ZNC - http://znc.in]
adam_ has joined #ruby
Rodya_ has joined #ruby
bodgix has joined #ruby
adam_ is now known as adam12
chouhoulis has joined #ruby
blackwind_123 has joined #ruby
grh has quit [Ping timeout: 260 seconds]
mrconfused has joined #ruby
polishdub has joined #ruby
millerti has joined #ruby
JoshS has joined #ruby
ramfjord has left #ruby [#ruby]
FastJack has quit [Quit: leaving]
Guest96 has quit [Remote host closed the connection]
dviola has joined #ruby
Guest96 has joined #ruby
gravyflex has quit [Quit: gravyflex]
<User458764> Hi, I would like to modify the keys of a hash and replace every '-' by '_' how do I do that?
ghornet has joined #ruby
BSab has quit [Ping timeout: 240 seconds]
<ljarvis> User458764: what did you try?
gravyflex has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has joined #ruby
gsilva has quit [Ping timeout: 268 seconds]
mooser has quit [Remote host closed the connection]
gsilva has joined #ruby
<User458764> ljarvis I simplify my problem I just need to modify an array values now, does a gsub('-', '_') is a good way
<ineb> User458764: if on rails, you have Hash#transform_keys
BSaboia has joined #ruby
<User458764> ineb I am on rails thanks
<ineb> User458764: for your array problem, you could do arr = arr.map {|s| s.gsub('-', '_')}
p0p0pr37 has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
rakm has joined #ruby
<jhass> no need to gsub, tr is just good enough here
jdm has joined #ruby
kassav_ has quit [Quit: kassav_]
mrconfused has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
despai has quit []
despai has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
raul782_ has joined #ruby
bodgix has quit [Quit: Leaving.]
hxegon_a1k is now known as hxegon
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
yokel has quit [Ping timeout: 268 seconds]
yokel has joined #ruby
minimalism has quit [Ping timeout: 258 seconds]
magic is now known as auv5
<User458764> Thanks for help but I think my problem is in my model I need to map the attributes with an underscore to the same but with a dash it is a Rails question :)
Rodya_ has quit [Remote host closed the connection]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782_ has quit [Remote host closed the connection]
nitric has joined #ruby
<jhass> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
raul782 has joined #ruby
<User458764> jhass ok
FastJack has joined #ruby
<cerulean> what is Ruby on Rails?
millerti has joined #ruby
Arpanet69 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mazeinmaze_ has quit [Ping timeout: 240 seconds]
DARPA has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest33763 is now known as CrazEd
CrazEd is now known as Guest29337
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias1 has quit [Ping timeout: 260 seconds]
esObe has joined #ruby
mikecmpbll has joined #ruby
mazeinmaze_ has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
cbyrda has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
ghornet has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
jgt has joined #ruby
raul782 has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
shwouchk has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
mim1k has joined #ruby
Snickers has joined #ruby
bodgix has joined #ruby
Xiti has quit [Quit: Xiti]
DWSR has joined #ruby
bodgix has quit [Client Quit]
<DWSR> *Disclaimer: I'm an ops person* Hey all, I'm currently trying to build a project with Grunt, but I'm having some issues with grunt not being able to locate gems that are located in GEM_PATH. Specific output is https://gist.github.com/DWSR/b2103ce5a8dada807e6b23dbebc81c75 I know this isn't directly a ruby question, but I've already asked in #grunt, which seems dead.
despai has quit []
<allisio> Is this okay? https://eval.in/776619
mim1k has quit [Ping timeout: 258 seconds]
despai has joined #ruby
rgiscard has joined #ruby
outreachdan has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsilva has quit [Quit: Leaving]
shwouchk has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
tubbo has joined #ruby
<tubbo> hi folks
<tubbo> i have a ruby application that is extremely inefficient when starting up
<tubbo> in fact, it takes so long to start up that we have a `sleep 120` call as part of the deploy process, to give some breathing room for sidekiq to start up. it doesn't actually take 2 minutes to load, that's just a high watermark
<tubbo> it takes about 20-45 seconds to get the app booted
<tubbo> i would really like to improve that by compiling my .rb code into .rbc. this happens to be a rails app with lots of files, and i'm not sure how feasible that is.
cdg has quit [Read error: Connection reset by peer]
<tubbo> this would also only happen in deployed environments, so cache_classes is on and all code is eager-loaded
<tubbo> (actually...are .rbc files only available in Rubinius?)
gravyflex has quit [Quit: gravyflex]
millerti has joined #ruby
chichou has joined #ruby
cdg has joined #ruby
kies has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravyflex has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
raul782 has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
mrconfused has joined #ruby
darwish has left #ruby ["Leaving"]
mooser has quit [Remote host closed the connection]
Pumukel has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
esObe has joined #ruby
tubbo has quit [Quit: get outta hee]
jameser has quit [Ping timeout: 258 seconds]
esObe has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
alazred has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pifon has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
kent\n has quit [Ping timeout: 240 seconds]
<havenwood> tu, where tubbo go?!
agent_white has joined #ruby
singalaut has left #ruby ["nuhun"]
kies has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
Cohedrin has joined #ruby
duderonomy has quit [Ping timeout: 258 seconds]
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
modin has joined #ruby
Guest29337 is now known as CrazEd
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
CrazEd is now known as Guest6041
DARPA has joined #ruby
mooser has joined #ruby
millerti has joined #ruby
j2k has joined #ruby
jaequery has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
<DWSR> *Disclaimer: I'm an ops person* Hey all, I'm currently trying to build a project with Grunt, but I'm having some issues with grunt not being able to locate gems that are located in GEM_PATH. Specific output is https://gist.github.com/DWSR/b2103ce5a8dada807e6b23dbebc81c75 I know this isn't directly a ruby question, but I've already asked in #grunt, which seems dead.
mooser has quit [Ping timeout: 252 seconds]
<StoneCypher> DWSR: why are you using an obsolete js build tool for ruby
<DWSR> StoneCypher: I don't get to make these decisions.
<DWSR> StoneCypher: I'm trying to get automated builds to work properly inside Atlassian Bamboo so that I can do automated deploys.
<StoneCypher> ok
nowhere_man has quit [Ping timeout: 260 seconds]
tolerablyjake has joined #ruby
JeanCarloMachado has joined #ruby
maattdd has joined #ruby
edgr has joined #ruby
claudevandort has joined #ruby
SeepingN has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
maattdd_ has quit [Ping timeout: 258 seconds]
mrconfused has joined #ruby
ebanoid has quit [Quit: Textual IRC Client: www.textualapp.com]
<pupsicle> @DWSR what is the output of gem list ffi
duderonomy has joined #ruby
mzo has joined #ruby
cdg has quit [Remote host closed the connection]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
bronson has quit [Remote host closed the connection]
GodFather has joined #ruby
kristofferR has quit [Remote host closed the connection]
patarr_ has joined #ruby
joelwallis has quit []
patarr has quit [Ping timeout: 252 seconds]
bandu has quit [Quit: Heaven is not a place, Bartleby, it's being with people who love you.]
bandu has joined #ruby
cfec0b8d has joined #ruby
binaryplease has joined #ruby
bandu is now known as coyo
tolerablyjake has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
ericmathison has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
s2013 has joined #ruby
esObe has joined #ruby
<cerulean> hey
dhollin3 is now known as dhollinger
esObe has quit [Ping timeout: 240 seconds]
<cerulean> why do I get Permission denied @ rb_sysopen - djforestflame.pstore on my linux server but not in development?
<cerulean> i pass the full path to pstore
raul782 has joined #ruby
<jhass> because the ruby process does not have read permissions on the file
jgt has quit [Ping timeout: 258 seconds]
Arpanet69 has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
<DWSR> pupsicle: I figured it out, I was specifying the path incorrectly.
<pupsicle> ah good to hear
<DWSR> pupsicle: I was specifying the same directory that I passed to bundle, which isn't what grunt is expecting when it looks for gems.
DARPA has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Guest6041 is now known as CrazEd
CrazEd is now known as Guest79606
karapetyan has quit [Ping timeout: 240 seconds]
<cerulean> jhass, the file isnt getting created at all
<cerulean> im running ruby as the same user in a user directory
<cerulean> shouldnt it have permissions to open and write the pstore there?
<jhass> well then you lack write permissions on the directory
<cerulean> i have to create the pstore myself?
<cerulean> i made the directory with git as that user, how can that be?
<jhass> well I guess it's trying to do it somewhere else than you think it does
<cerulean> that's what i thought. doesnt make any sense. it seems like a bug
<cerulean> i'm running 2.4 on OSX here and 2.4 on linux there
jphase has joined #ruby
<cerulean> i tried a bunch of ways of forcing the path but doesnt work
despai has left #ruby [#ruby]
jhack has joined #ruby
jhack has quit [Client Quit]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jared_nyc has quit []
jared_nyc has joined #ruby
mim1k has joined #ruby
ramfjord has joined #ruby
AndBobsYourUncle has joined #ruby
davic has quit [Quit: Connection closed for inactivity]
naprimer_2 is now known as PatriqueEtoile
mim1k has quit [Ping timeout: 245 seconds]
rgiscard has quit [Ping timeout: 260 seconds]
StoneCyp1er has joined #ruby
amenjesus has joined #ruby
amenjesus has left #ruby [#ruby]
ozcanesen has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
shwouchk has quit [Quit: Connection closed for inactivity]
rgiscard has joined #ruby
lxsameer has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
yurikoles has quit [Read error: Connection reset by peer]
SteenJobs_ has joined #ruby
SteenJobs_ has quit [Client Quit]
theunraveler has joined #ruby
dionysus69 has joined #ruby
jgt has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: leaving]
jgt has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusta has joined #ruby
raul782 has quit [Remote host closed the connection]
Guest96 has quit [Remote host closed the connection]
chichou has joined #ruby
saida has joined #ruby
<saida> hi there
Guest96 has joined #ruby
<adam12> saida: o/
<saida> I am trying to see if someone can help me with finding the gems that a given ruby process is using, to troubleshoot an issue
<saida> gems are in various folders and I am not certain which gems my process is using
<adam12> saida: Does your project include a Gemfile?
<saida> nope
<saida> Gem.use_paths(nil, Gem.path << "/opt/myagent/vendor")
<havenwood> saida: binding.pry into your project and check: $LOADED_FEATURES
<havenwood> saida: can you look in that vendor dir?
Guest79606 is now known as CrazEd
CrazEd is now known as Guest79492
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<saida> I did @havenwood but there are many gems with different versions
<saida> havenwood: how does binding.pry work?
<havenwood> ?pry saida
<ruby[bot]> saida: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
mrconfused has quit [Ping timeout: 258 seconds]
<havenwood> saida: put `require 'pry'` in your code then a `binding.pry` where you want to jump to pry when you run the program
<havenwood> or `binding.irb` with Ruby 2.4 if you prefer
galeido has quit []
Arpanet69 has quit [Ping timeout: 260 seconds]
galeido has joined #ruby
<saida> havenwood: thanks for trying to help me, and I appreciate your help.
davic has joined #ruby
<saida> problem here is that, it is intermittent issue, and I do not want to restart the process, as restarting it might resolve the issue
<saida> havenwood: is there a way to check the gems path or gems used by the currently running ruby process?
mooser has joined #ruby
<havenwood> saida: sure, you can look at the file descriptors the process is using
mrconfused has joined #ruby
<saida> havenwood: can you please tell me how?
<havenwood> saida: what os/distro?
<saida> havenwood: I got it, let me try
<saida> havenwood: thanks much, so this gives the files being used by a given process
AlexRussia has quit [Ping timeout: 258 seconds]
<matthewd> The gems' files shouldn't still be open, though
Rodya_ has joined #ruby
<havenwood> matthewd: good point, just stdlib would be
SeepingN has joined #ruby
JeanCarloMachado has joined #ruby
<matthewd> Yeah, you'd get hints for any .so files, but most gems are pure .rb, so that won't help
<matthewd> The "real" answer is probably to attach gdb and then evaluate $".. but that's not trivial
<saida> havenwood: matthewd I see that why I dont see any
<saida> matthewd: is it tough to do ?
<saida> is there a likn you can suggest?
karapetyan has joined #ruby
jdawgaz has joined #ruby
<matthewd> You eventually want to run the ruby code 'p $"'
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<matthewd> (you can run that in irb first, to see what it should show)
<saida> got you, thanks, let me test this
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit []
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<flips> This gist explains my issue (scoping or what the problem is) of importing a json data structure/hash correctly: https://gist.github.com/flips/95f0eea0afd8347c514256d654655697 <-- all feedback welcome
griff has joined #ruby
<jhass> flips: no, @file is not part of @list anywhere
AlexRussia has joined #ruby
<jhass> it's only part of your instance of the List class but not it's instance variable @list
karapetyan has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<flips> Hm, I have trouble accessing the array/hash inside (and list.load_items also seemingly overwrote/removed the method list.add_item, when I had it defined)
<matthewd> flips: I see no add_item method in that gist
karapetyan has quit [Remote host closed the connection]
<jhass> also we can't hint at what you're doing wrong without seeing your attempts
<matthewd> Are you sure it wasn't your keyboard that did the overwriting?
<jhass> damn keyboards, always messing up the code!
<allisio> PEBMAC.
<jhass> let's go back to good old punching cards
bronson has joined #ruby
<flips> I was trying to isolate one issue at the time ... so first try to fetch data from that list
mzo has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
<saida> matthewd: now I am at 4th step
<saida> dont think I understood what I need to run there
jgt has joined #ruby
<matthewd> ruby_eval('$"')
<saida> (gdb) ruby_eval('$"') Invalid character constant.
gravyflex has quit [Quit: gravyflex]
<matthewd> "$\"" maybe?
<flips> jhass: in my first working program, I can fetch list[:item][2] and so on, in my attempt to structure it into classes and use methods I just get "undefined method `[]'" ... So I'm trying to understand the data structure ...
<jhass> inside methods of your List class you can just access @list
<jhass> if you want to access the data outside of your class you need to expose @list or operations on it through defining a method that does so
<matthewd> flips: You haven't shown what you're running, but it sounds like `list` is now your List class -- not the hash.
chichou has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
esObe has joined #ruby
<flips> Not sure what you mean I'm not showing, but as in the gist, it runs 'list = List.new' and the 'list.load_items', I'm doing that in pry and poking around. Yes, it's reported as List class (see last 2 lines), so somehow it's now an instance of the class, hm. So I need a way to expose the hash, then
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<saida> matthewd: I do not see any file creating in /tmp
skweek has joined #ruby
esObe has quit [Ping timeout: 268 seconds]
<saida> matthewd: let me take it back
<saida> I do see it
<saida> thanks for you help matthewd really appreciate it
<matthewd> You're welcome! Did it get you the answer you needed?
<saida> yes, indeed
swills has quit [Quit: Leaving]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chichou has joined #ruby
Guest79492 is now known as CrazEd
j2k has joined #ruby
CrazEd is now known as Guest91721
mooser has quit [Remote host closed the connection]
nowhere_man has joined #ruby
sagax has joined #ruby
mooser has joined #ruby
ahrs has quit [Remote host closed the connection]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahrs has joined #ruby
FifthWall has quit [Ping timeout: 246 seconds]
BSaboia has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
jaequery has joined #ruby
FifthWall has joined #ruby
<flips> Added some pry output to the gist, maybe that shows what happens at 'list.load_items'/why it's becoming a pointer to the Class instead of containing the hash. Thankful for any hint as to how I could/should expose/fetch the hash ... (I'm trying to learn this stuff) :)
claudevandort has joined #ruby
ben__ has joined #ruby
mim1k has joined #ruby
chrisgopher has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ben_____ has quit [Ping timeout: 255 seconds]
swills has joined #ruby
<jhass> flips: by adding methods to the class that work on or return @list
sepp2k has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 240 seconds]
rgiscard has quit [Remote host closed the connection]
chrisgopher has quit [Remote host closed the connection]
raul782 has joined #ruby
millerti has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
domgetter has joined #ruby
enterprisey has joined #ruby
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has joined #ruby
raul782 has quit [Remote host closed the connection]
Xiti has joined #ruby
pilne has joined #ruby
esObe has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
grh has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrconfused has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
theunraveler has quit []
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
icarus has joined #ruby
<flips> Adding a "return @list" to load_items didn't help/change anything, also maybe load_items should be a private method ... I need some sleep
<ovaltine> does anyone have any gripes with 'rspec-its' or can I feel ok using it because i like it
s2013 has quit [Read error: Connection reset by peer]
shadowx has joined #ruby
jokke1 is now known as jokke
hutch34_ has quit [Ping timeout: 268 seconds]
linetrac1 is now known as linetrace
hahuang65 has quit [Read error: Connection reset by peer]
<flips> if I do 'list2 = list.load_item' list2 gets the hash I want, so I'm not that far off, I guess ... :)
cagomez has quit []
shadowx has quit [Quit: Leaving]
swills has quit [Ping timeout: 240 seconds]
swills has joined #ruby
grh has quit [Ping timeout: 260 seconds]
karapetyan has quit []
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<matthewd> flips: That rather defeats the point of creating a class in the first place, though
esObe has joined #ruby
<ineb> ovaltine: its a matter of taste. there is also https://github.com/jimweirich/rspec-given
<ineb> i usually stick with whatever the core team is suggesting.
bronson has quit [Ping timeout: 240 seconds]
steelbird has quit [Remote host closed the connection]
pupsicle has quit [Quit: pupsicle]
rakm has joined #ruby
nickjj_ has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
icarus has quit [Quit: leaving]
<flips> matthewd: yes, I feel there's some basic flaw in my logic/understanding. I wrote this program for an array based structure first, and that works nicely ... I missed something trying to convert to using a hash structure instead.
nickjj has quit [Ping timeout: 258 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davic has quit [Quit: Connection closed for inactivity]
pwnd_nsfw` has joined #ruby
outreachdan has joined #ruby
rgtk has joined #ruby
outreachdan has quit [Client Quit]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 252 seconds]
outreachdan has joined #ruby
hutch34_ has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
saida has quit [Quit: Page closed]
StoneCyp1er has quit [Ping timeout: 255 seconds]
t-recx has joined #ruby
stee_3 has joined #ruby
raul782 has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
StoneCypher has joined #ruby
ben__ has quit [Remote host closed the connection]
ben__ has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
nickjj_ is now known as nickjj
Trynemjoel has quit [Ping timeout: 245 seconds]
mooser has quit [Remote host closed the connection]
ben__ has quit [Ping timeout: 258 seconds]
mostlybadfly has joined #ruby
mrconfused_ has joined #ruby
mrconfused has quit [Ping timeout: 255 seconds]
preyalone has joined #ruby
enterprisey has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
Snickers has quit [Quit: Snickers]
jamesaxl has quit [Quit: WeeChat 1.7]
ResidentBiscuit has quit [Read error: Connection reset by peer]
chichou has quit [Ping timeout: 260 seconds]
chichou has joined #ruby
bdonnahue has joined #ruby
polishdub has quit [Quit: Leaving]
hutch34_ has quit [Ping timeout: 240 seconds]
chichou_ has joined #ruby
mooser has joined #ruby
chichou has quit [Ping timeout: 260 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
outreachdan has joined #ruby
jdawgaz has joined #ruby
captain_ has joined #ruby
esObe has joined #ruby
<captain_> how do I purge all my ruby gems
<nofxxx> captain_, if you don't have rubygems keys `rm -rf ~/.gems`
<nofxxx> if you do just <tab> and you'll get it
<captain_> thanks boss
mint_ has joined #ruby
<nofxxx> captain_, there's `gem clean` for old versions, but guess you know it
<nofxxx> but nothing like a purge day =D
rgtk has quit [Ping timeout: 258 seconds]
esObe has quit [Ping timeout: 258 seconds]
<nofxxx> Got a C code doing some bit polishing and returning me 2 floats, what's a good way to receive this in ruby? *Not* writing to disk?
chichou_ has quit [Ping timeout: 252 seconds]
mint_ has quit [Client Quit]
<captain_> "Fetching: hitimes-1.2.4.gem (100%)
<captain_> "
<captain_> hitimes requires Ruby version >= 1.9.3.
<captain_> ERROR: Error installing rubydns:
<captain_> what do papi
<nofxxx> you got a really old version.... what ruby -v gives? what OS?
<cerulean> get a newer version of ruby
<cerulean> www.ruby-lang.org download
<captain_> ruby 1.9.2p330 (2014-08-07 revision 47094) [x86_64-linux]
<captain_> XD
<captain_> how did this happen
StoneCypher has quit [Ping timeout: 240 seconds]
<SeepingN> get yer 2.x on
StoneCypher has joined #ruby
<ruby[bot]> captain_: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<havenwood> captain_: That's a version of the json gem from 2013 that doesn't work with modern Rubies: https://github.com/flori/json/blob/master/CHANGES.md#2013-05-13-181
<havenwood> captain_: Use a newer version of the json gem, such as the one that shipped with your Ruby or newer.
<captain_> thanks
<captain_> the thing im trying to install requires that version though
chouhoulis has quit [Ping timeout: 260 seconds]
<havenwood> captain_: bundle update json
<havenwood> (Assuming it's an app with a Gemfile.)
kent\n has joined #ruby
shwouchk has joined #ruby
justinmcp has quit [Ping timeout: 264 seconds]
<captain_> its more that when i bundle install it requres me to install that version of json
BTRE has quit [Remote host closed the connection]
<havenwood> captain_: After deleting the Gemfile.lock or the less severe `bundle update json`?
baweaver is now known as baweaver_away
<havenwood> Or more conservative yet: bundle update json --conservative
BTRE has joined #ruby
<havenwood> captain_: The way Gemfile.lock files work is you don't get a fresh one with `bundle` or its alias `bundle install`. It installs the exact versions from the Gemfile.lock that were produced when someone first ran `bundle`.
<captain_> i just edited it out of the gemlock
agent_white has joined #ruby
<havenwood> captain_: One typically edits the Gemfile, then runs commands to generate or change the Gemfile.lock.
papillom has quit [Quit: Leaving.]
agent_white has quit [Remote host closed the connection]
justinmcp has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
b3l914n_ has quit [Ping timeout: 252 seconds]
ElDoggo has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
enterprisey has joined #ruby
gravyflex has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
mrconfused_ has quit [Ping timeout: 258 seconds]
Trynemjoel has joined #ruby
nitric has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
claudevandort has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
StoneCypher has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
SteenJobs has joined #ruby
Trynemjoel has joined #ruby
jdawgaz has joined #ruby
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
outreachdan has joined #ruby
mooser has quit [Remote host closed the connection]
fusta has quit [Read error: Connection reset by peer]
mooser has joined #ruby
patarr has joined #ruby
bronson has joined #ruby
DWSR has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
patarr_ has quit [Ping timeout: 260 seconds]
justinmcp has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
dar123 has joined #ruby
dar123 has quit [Client Quit]
dar123 has joined #ruby
justinmcp has joined #ruby
biberu has quit []
esObe has joined #ruby
bkxd has joined #ruby
aknagi has quit [Remote host closed the connection]
SteenJobs has quit [Quit: peaceee]
mooser has quit [Remote host closed the connection]
esObe has quit [Ping timeout: 240 seconds]
mooser has joined #ruby