baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
clemens3_ has quit [Ping timeout: 245 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
clemens3 has quit [Ping timeout: 245 seconds]
zlogan85 has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
chocoelho has quit [Quit: Leaving.]
zlogan2003 has quit [Ping timeout: 260 seconds]
pabst has joined #ruby
pabst has quit [Client Quit]
nitric_ has quit [Ping timeout: 256 seconds]
ipeee has quit [Read error: Connection reset by peer]
kmurphy4 has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
shinnya has quit [Ping timeout: 245 seconds]
rivalomega has quit [Ping timeout: 252 seconds]
jrich523 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Inside has quit [Quit: leaving]
sytherax has quit [Quit: Leaving...]
sytherax has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
cagomez has quit [Remote host closed the connection]
zlogan85 has quit [Quit: Leaving]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
cagomez has joined #ruby
zlogan2003 has joined #ruby
marr has quit [Ping timeout: 268 seconds]
quobo has quit [Quit: Connection closed for inactivity]
cagomez has quit [Ping timeout: 256 seconds]
tvw has quit [Remote host closed the connection]
rfoust has joined #ruby
rkazak has joined #ruby
zlogan2003 has quit [Ping timeout: 240 seconds]
hlmjr has joined #ruby
knight33 has joined #ruby
houhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
faces has quit [Read error: Connection reset by peer]
rivalomega has joined #ruby
rivalomega has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
kapil___ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
white_lilies has joined #ruby
knight33 has quit [Ping timeout: 260 seconds]
gil_ has quit [Ping timeout: 245 seconds]
Mia has quit [Read error: Connection reset by peer]
jamesaxl has quit [Quit: WeeChat 2.1]
RougeR has quit [Ping timeout: 260 seconds]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
duderonomy has joined #ruby
rivalomega has joined #ruby
alfiemax_ has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
AJA4350 has quit [Quit: AJA4350]
<uplime> whats a commonly used http library in ruby?
<uplime> something like python's requests
alfiemax_ has quit [Ping timeout: 252 seconds]
minimalism has joined #ruby
tdy has joined #ruby
w09x has joined #ruby
<cjohnson> httparty
<w09x> anyone know how to turn off multiline in ruby regex?
<w09x> trying to get that to match the entire commit message
<cjohnson> turn on you mean?
<cjohnson> /m
<cjohnson> TBH this is not a job for regular expressions. Or at least not just one regex
<havenwood> uplime: http: https://github.com/httprb/http
<w09x> cjohnson: oh yeah?
<w09x> how would you approach it?
<uplime> thanks guys
<cjohnson> Your problem is |$ allows the +? to terminate early instead of carrying on the next line
<cjohnson> So you can get rid of that but then obviously lose the last match
pilne has quit [Quit: Leaving]
<havenwood> uplime: http.rb is quite nice. consider typhoeus if you need parallel requests.
<uplime> luckily these are synchronous http calls
<cjohnson> w09x: I would maybe split on ^(?=commit[\s\S]+?$)
<cjohnson> I think that might split it into an array of items
<havenwood> uplime: for GET requests, open-uri in the stdlib works
darkhanb has joined #ruby
<w09x> cjohnson: not sure that works?
<w09x> (trying)
<cjohnson> w09x: str.split(/^(?=commit[\s\S]+?$)/)
<cjohnson> this seems to work ok for me
<uplime> thanks
<cjohnson> And then trim any trailing newlines since they don't seem like they are semantically part of the commit message
<w09x> legend! thanks cjohnson
<cjohnson> no prob
<w09x> cjohnson: commit[\s\S]+?(?=commit \b[a-f0-9]{40}\b|\z)
<w09x> taking it even further
<w09x> again, thanks.
noobineer has quit [Ping timeout: 260 seconds]
<cjohnson> It seems to me that using match and looking for another commit is what makes it a bad fit for regex but I suppose if it works it works
emilford has quit [Ping timeout: 245 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
<baweaver> ohai cjohnson
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<cjohnson> hola
<cjohnson> ok that's all for me time to make money
<baweaver> cjohnson: want to see something terrifying in Ruby?
<cjohnson> nooooooooo ok
braincrash has quit [Quit: bye bye]
<cjohnson> why do you hate the world
<baweaver> Because I can
<baweaver> Also, infix operators evaluate before to_proc
<baweaver> >> class Mf;def self.+(b)->a{a+b}end;end; [1,2,3,4,5].map(&Mf + 5)
<ruby[bot]> baweaver: # => [6, 7, 8, 9, 10] (https://eval.in/1008966)
emilford has joined #ruby
<baweaver> :D
braincrash has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
<cjohnson> GROSS
Yxhuvud has joined #ruby
ciscam has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
emilford has joined #ruby
houhoulis has quit [Remote host closed the connection]
arashb has joined #ruby
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
emilford has quit [Ping timeout: 252 seconds]
knight33 has joined #ruby
mtkd has joined #ruby
emilford has joined #ruby
alfiemax has joined #ruby
alfiemax_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 245 seconds]
emilford has joined #ruby
gnufied has quit [Remote host closed the connection]
gix has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 245 seconds]
regedit has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
goez has quit [Quit: If you're lost you can look and you will find me]
knight33 has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
goez has joined #ruby
goez has quit [Quit: If you're lost you can look and you will find me]
cadillac_ has quit [Read error: Connection reset by peer]
goez has joined #ruby
alfiemax has joined #ruby
goez has quit [Client Quit]
cadillac_ has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
emilford has joined #ruby
white_lilies has quit [Ping timeout: 245 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
thapakazi has joined #ruby
rivalomega has quit [Remote host closed the connection]
kmurphy4 has quit [Quit: kmurphy4]
goez has joined #ruby
arashb has quit [Remote host closed the connection]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
rivalomega has joined #ruby
\void has joined #ruby
emilford has quit [Ping timeout: 252 seconds]
emilford has joined #ruby
s2013 has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
zlogan2003 has joined #ruby
emilford has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
reber has joined #ruby
<w09x> Why do I need the \S here? https://regex101.com/r/ut6no1/3
emilford has joined #ruby
mrush_ has quit [Changing host]
mrush_ has joined #ruby
mrush_ is now known as mrush
alfiemax has joined #ruby
<w09x> wrong channel, sorry.
sauvin has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
emilford has joined #ruby
suukim has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
rivalomega has quit [Remote host closed the connection]
emilford has joined #ruby
Mike111 has joined #ruby
Mike111 has quit [Max SendQ exceeded]
Mike11 has quit [Ping timeout: 245 seconds]
emilford has quit [Ping timeout: 264 seconds]
dviola has quit [Quit: WeeChat 2.1]
apeiros has quit [Remote host closed the connection]
emilford has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
ogres has joined #ruby
emilford has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
oleo has quit [Quit: Leaving]
armyriad has joined #ruby
alfiemax_ has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
zlogan2003 has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
rkazak has joined #ruby
venmx has joined #ruby
emilford has quit [Ping timeout: 245 seconds]
emilford has joined #ruby
ur5us has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
venmx has quit [Ping timeout: 245 seconds]
clemens3_ has joined #ruby
w09x has quit [Quit: Page closed]
emilford has quit [Ping timeout: 264 seconds]
emilford has joined #ruby
sytherax has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 245 seconds]
emilford has joined #ruby
biberu has joined #ruby
lypsis|awy is now known as lypsis
emilford has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
Tempesta_ has joined #ruby
ciscam has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
ciscam has joined #ruby
Tempesta has quit [Ping timeout: 245 seconds]
heftig has quit [Ping timeout: 245 seconds]
amar_ has joined #ruby
yohji has joined #ruby
Mortomes|Work has joined #ruby
amar_ has quit [Ping timeout: 252 seconds]
schleppel has joined #ruby
clemens3 has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
biberu has quit [Ping timeout: 260 seconds]
thapakazi has quit [Ping timeout: 245 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
joro_ has joined #ruby
minimalism has quit [Quit: minimalism]
emilford has quit [Ping timeout: 260 seconds]
amar_ has joined #ruby
joro_ has quit [Remote host closed the connection]
emilford has joined #ruby
joro_ has joined #ruby
amar_ has quit [Ping timeout: 256 seconds]
thapakazi has joined #ruby
amar_ has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
clemens3 has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
sphenxes has joined #ruby
dionysus69 has joined #ruby
emilford has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Guest40880 is now known as rmerry
roshanavand has quit [Quit: Leaving.]
emilford has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
claudiuinberlin has joined #ruby
clemens3 has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
emilford has joined #ruby
heftig has joined #ruby
rivalomega has joined #ruby
ta_ has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 260 seconds]
emilford has quit [Ping timeout: 245 seconds]
dinfuehr has joined #ruby
emilford has joined #ruby
Burgestrand has joined #ruby
rivalomega has quit [Ping timeout: 252 seconds]
Torstein has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
emilford has quit [Ping timeout: 252 seconds]
MXfive has joined #ruby
emilford has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
amar_ has quit [Remote host closed the connection]
vondruch has joined #ruby
amar_ has joined #ruby
c0ncealed1 has joined #ruby
heftig has quit [Quit: heftig]
MXfive has quit [Read error: Connection reset by peer]
amar_ has quit [Ping timeout: 256 seconds]
heftig has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
mlkkk has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
armyriad has joined #ruby
emilford has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
phaul has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
aufi_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
hurricanehrndz has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
mrush has quit [Ping timeout: 245 seconds]
alfiemax_ has joined #ruby
alex`` has joined #ruby
mrush has joined #ruby
marr has joined #ruby
mrush is now known as Guest23707
alfiemax has quit [Ping timeout: 260 seconds]
guille-moe has joined #ruby
emilford has quit [Ping timeout: 252 seconds]
sytherax has joined #ruby
<kapil___> How to use variable as hash keys?
biberu has joined #ruby
<phaul> >> a = 1; h = {1 => 2}; h[a]
<ruby[bot]> phaul: # => 2 (https://eval.in/1009122)
<phaul> kapil___: does that help?
<kapil___> No to set value
<tobiasvl> >> a = 1; h = {a => 2}; h[a]
<ruby[bot]> tobiasvl: # => 2 (https://eval.in/1009124)
<tobiasvl> the same
face has joined #ruby
<kapil___> Thanks
emilford has joined #ruby
sytherax has quit [Ping timeout: 260 seconds]
Zinder has joined #ruby
<kapil___> How to add new keys to nested hash?
<tobiasvl> kapil___: what have you tried?
<tobiasvl> it should work exactly as you expect it to, but if you don't know how to expect it to work, maybe just try a little and see? and ask if something doesn't work the way you thought it would
<tobiasvl> like your previous question it's just a matter of syntax
<kapil___> @all_modification[@file_name] = {word => s}
RougeR has joined #ruby
<kapil___> i want to add new keys to last hash
amar_ has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
<kapil___> but some times last hash not exist then i need to create it
<tobiasvl> ok, yeah, that requires a new bit of syntax
<tobiasvl> @all_modification[@file_name][word2] = s2
<tobiasvl> for example
emilford has joined #ruby
<kapil___> but if its not exist as a hash then
<kapil___> ?
<tobiasvl> you need to create it first
<tobiasvl> either the way you did above, with an initial value, or just by initializing it as an empty hash: {}
<tobiasvl> then you can add to it
<kapil___> ok thanks
weaksauce has quit [Ping timeout: 248 seconds]
amar_ has quit [Ping timeout: 245 seconds]
guille-moe has quit [Read error: Connection reset by peer]
amar_ has joined #ruby
guille-moe has joined #ruby
<tobiasvl> kapil___: you could also read the documentation https://ruby-doc.org/core-2.5.0/Hash.html
emilford has quit [Ping timeout: 245 seconds]
Zinder has quit [Quit: Mutter: www.mutterirc.com]
<kapil___> tobiasvl:
<kapil___> ```
<kapil___> def deep_set(hash, value, *keys)
<kapil___> keys[0...-1].inject(hash) do |acc, h|
<kapil___> acc.public_send(:[], h)
<kapil___> end
<kapil___> end.public_send(:[]=, keys.last, value)
<kapil___> ```
<kapil___> what this function does?
<tobiasvl> kapil___: please paste long methods like that to https://gist.github.com like it says in the topic
<kapil___> ok, next time i will do it on gist.
<tobiasvl> that method uses more advanced ruby functionality. do you know any other programming languages?
<kapil___> i know elixir javascript
Zinder has joined #ruby
<kapil___> is it ok?
emilford has joined #ruby
reber is now known as rebear
armyriad has quit [Quit: Leaving]
<tobiasvl> kapil___: yes, it's OK. it can be written more succintly, or you can use other concise tricks to do the same thing, but it's fine
armyriad has joined #ruby
<kapil___> Thanks
emilford has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
ramfjord has joined #ruby
elphe has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
thapakazi has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
<phaul> it took me a while to understand that^ snippet.. The clue is in the method name *deep*...
conta has joined #ruby
guille-moe has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 260 seconds]
AlHafoudh has quit [Ping timeout: 248 seconds]
contradictioned has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
Caius has quit [Ping timeout: 256 seconds]
ujjain- has quit [Ping timeout: 268 seconds]
Hobbyboy has quit [Ping timeout: 245 seconds]
Zarthus has quit [Ping timeout: 265 seconds]
S007 has quit [Ping timeout: 240 seconds]
jhass has quit [Ping timeout: 256 seconds]
universa1 has quit [Ping timeout: 265 seconds]
jnollette has quit [Ping timeout: 250 seconds]
bathtub_shark has quit [Ping timeout: 260 seconds]
elomatreb has quit [Ping timeout: 252 seconds]
DEac-_ has quit [Ping timeout: 260 seconds]
sonOfRa has quit [Ping timeout: 265 seconds]
foxxx0 has quit [Ping timeout: 276 seconds]
ablackack has quit [Ping timeout: 276 seconds]
shadeslayer has quit [Ping timeout: 256 seconds]
nyuszika7h has quit [Ping timeout: 276 seconds]
ohcibi has quit [Ping timeout: 264 seconds]
heftig has quit [Ping timeout: 256 seconds]
darix has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
heftig has quit [Changing host]
Guest79469 has joined #ruby
Guest79469 is now known as heftig
venmx has joined #ruby
heftig is now known as heftig[irssi]
guille-moe has joined #ruby
elphe has quit [Quit: leaving]
elphe has joined #ruby
kloeri has quit [Ping timeout: 612 seconds]
heftig[irssi] has left #ruby [#ruby]
Torstein has quit [*.net *.split]
Mortomes|Work has quit [*.net *.split]
samosaphile has quit [*.net *.split]
mikeeeeeeey has quit [*.net *.split]
darix has joined #ruby
contradictioned has joined #ruby
ablackack has joined #ruby
AlHafoudh has joined #ruby
plexigras has joined #ruby
Zarthus has joined #ruby
ohcibi has joined #ruby
bathtub_shark has joined #ruby
foxxx0 has joined #ruby
nyuszika7h has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
heftig has joined #ruby
ByronJohnson has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 245 seconds]
S007 has joined #ruby
jnollette has joined #ruby
DEac- has joined #ruby
thapakazi has joined #ruby
XB23 has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
emilford has joined #ruby
ByronJohnson has joined #ruby
rivalomega has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
universa1 has joined #ruby
sonOfRa_ has joined #ruby
tvw has joined #ruby
Hobbyboy has joined #ruby
rivalomega has quit [Ping timeout: 268 seconds]
jhass has joined #ruby
sonOfRa_ is now known as sonOfRa
CrazyEddy has joined #ruby
emilford has quit [Remote host closed the connection]
emilford has joined #ruby
KeyJoo has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
conta has quit [Remote host closed the connection]
conta has joined #ruby
samosaphile has joined #ruby
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 260 seconds]
ipe has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
ta_ has quit [Remote host closed the connection]
davet has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
KeyJoo has joined #ruby
karapetyan has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
biberu has quit [Ping timeout: 245 seconds]
emilford has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
Puffball has joined #ruby
emilford has joined #ruby
RougeR has quit [Ping timeout: 245 seconds]
emilford has quit [Ping timeout: 245 seconds]
davet has quit [Quit: Leaving]
dr3w_ has joined #ruby
roshanavand has joined #ruby
jamesaxl has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
_aeris_ has quit [Excess Flood]
emilford has joined #ruby
_aeris_ has joined #ruby
GodFather has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
pskosinski has quit [Ping timeout: 256 seconds]
joro_ has quit [Remote host closed the connection]
tvw has quit []
contradictioned has quit [Ping timeout: 245 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
elphe has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
contradictioned has joined #ruby
XB23 has quit [Quit: Leaving]
<kapil___> phaul: what it does?
emilford has joined #ruby
karapetyan has quit [Remote host closed the connection]
contradictioned has quit [Ping timeout: 245 seconds]
sphenxes has quit [Remote host closed the connection]
Zinder has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
Zinder has joined #ruby
contradictioned has joined #ruby
sphenxes has joined #ruby
RougeR has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: WeeChat 2.1]
lxsameer has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
emilford has joined #ruby
maufart__ has joined #ruby
contradictioned has quit [Ping timeout: 245 seconds]
aufi_ has quit [Ping timeout: 256 seconds]
<phaul> kapil___: if you have a deeply nested hash, it traverses down with the keys, going deeper with each step, and sets the leaf to the value
<kapil___> Thanks
contradictioned has joined #ruby
<phaul> >> %i(a b c).inject({ a: { b: {c: 1} } }) {|acc, k| p acc: acc, k: k; acc[k] }
<ruby[bot]> phaul: # => {:acc=>{:a=>{:b=>{:c=>1}}}, :k=>:a} ...check link for more (https://eval.in/1009215)
cyberg has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
ciscam has quit [Ping timeout: 245 seconds]
amar__ has joined #ruby
ciscam has joined #ruby
emilford has joined #ruby
hfp_work has quit [Quit: bye]
<kapil___> phaul: i understand it. but it takes so much time to me.
rmerry_ has joined #ruby
rmerry_ is now known as Guest74699
Guest74699 has left #ruby [#ruby]
amar_ has quit [Ping timeout: 252 seconds]
hfp_work has joined #ruby
lypsis has quit [Quit: ZNC - http://znc.in]
emilford has quit [Ping timeout: 240 seconds]
contradictioned has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
mlkkk has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
mlkkk has joined #ruby
contradictioned has joined #ruby
millerti has joined #ruby
samosaphile has quit [Quit: Page closed]
jarnalyrkar has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Quit: WeeChat 2.1]
suukim has quit [Quit: Konversation terminated!]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
GodFather has quit [Remote host closed the connection]
NL3limin4t0r has joined #ruby
VladGh has joined #ruby
VladGh_ has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
ujjain has quit [Ping timeout: 256 seconds]
sytherax has joined #ruby
ldnunes has joined #ruby
karapetyan has joined #ruby
mtkd has quit []
howdoi has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
alfiemax has joined #ruby
nkh^ has joined #ruby
alfiemax_ has quit [Ping timeout: 245 seconds]
guille-moe has joined #ruby
mtkd has joined #ruby
thapakazi has quit [Quit: thapakazi]
alfiemax_ has joined #ruby
synthroid has joined #ruby
alfiema__ has joined #ruby
<kapil___> how to compare above two string. it should be equal?
nkh^ has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 256 seconds]
<tobiasvl> kapil___: what do you want to do in a general sense? compare two strings, ignoring leading whitespace on each line?
<kapil___> compare two strings, ignoring leading whitespace on each line
<tobiasvl> you can remove all leading whitespace on each line like so: a.gsub(/^\s+/,'')
alfiemax_ has quit [Ping timeout: 252 seconds]
<kapil___> tobiasvl: thanks
alfiemax has joined #ruby
<dionysus69> seriously
<dionysus69> I am looking for what options does to_yaml method accepts
<dionysus69> online documentation doesn't show anything
rkazak has joined #ruby
<dionysus69> what's the quickest way to see ?
alfiema__ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
alfiemax has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 256 seconds]
<tbuehlmann> dionysus69: I'd dig using pry's $ (show-source) method
<tbuehlmann> `$ {}.to_yaml` => `$ Psych.dump` => `$ Psych::Visitors::YAMLTree.create` => `$ Psych::Visitors::YAMLTree#initialize`
tvw has joined #ruby
<tbuehlmann> so, check where @options is used in Psych::Visitors::YAMLTree
joast has quit [Quit: Leaving.]
gnufied has joined #ruby
joast has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
canton7 has quit [Ping timeout: 265 seconds]
<dionysus69> ok thanks tbuehlmann :)
<kapil___> File.open("app/sce_umbrella/logs/file.txt",w) fails.
<kapil___> `File.open("file.txt",w)` works
<dionysus69> quotes around w?
<kapil___> yes but still fails
canton7 has joined #ruby
<kapil___> `File.open("app/sce_umbrella/logs/file.txt", 'w')` fails.
joast has quit [Quit: Leaving.]
<tobiasvl> and where are you running it from?
<tobiasvl> what's the cwd in relation to the path you're trying to open?
<kapil___> i am running it from rails generators
joast has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kapil___> ```Dir.pwd
<kapil___> => "/home/ubuntu/workspace/sce_rails"```
<tobiasvl> and file.txt is located in /home/ubuntu/workspace/sce_rails/app/sce_umbrella/logs/ ?
<kapil___> no
ogres has joined #ruby
<tobiasvl> well then that's why it fails
<kapil___> logs folder also not exist
<tobiasvl> create it?
<tobiasvl> then it should work
<kapil___> but `File.open("file.txt",w)` works even if file.txt not exist
houhoulis has joined #ruby
<tobiasvl> yes, sorry. the directory not existing is the problem
<tobiasvl> File.open won't create a directory
<kapil___> tobiasvl: thanks
GodFather has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 245 seconds]
joast has quit [Client Quit]
sphenxes has quit [Ping timeout: 252 seconds]
<dionysus69> you need file utils to create directory first
Dryon has joined #ruby
sphenxes has joined #ruby
<kapil___> thanks i create a directory and it works
Dryon has quit [Client Quit]
k0mpa has joined #ruby
<kapil___> you know the rails?
mlkkk_ has joined #ruby
<kapil___> How to get full command passed to rails generator (written in console) in generator.
joast has joined #ruby
<dionysus69> I think generators are just a rake task
mlkkk has quit [Ping timeout: 240 seconds]
sphenxes has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
<dionysus69> you can see those rake files
<kapil___> yes
<dionysus69> ah, I hit the roadblock with pry, show source isn't showing source of TreeBuilder
<dionysus69> which I found under show-source Psych::Visitors::YAMLTree
<kapil___> dionysus69: i not know how to find it in source
mlkkk_ has quit [Remote host closed the connection]
duderonomy has joined #ruby
mlkkk has joined #ruby
karapetyan has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
sytherax has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
karapetyan has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
joast has joined #ruby
mtkd has quit []
elphe has joined #ruby
ramfjord has joined #ruby
sytherax has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
mtkd has joined #ruby
houhoulis has quit [Remote host closed the connection]
Cavallari has joined #ruby
houhoulis has joined #ruby
<markand> ruby is amazing
<markand> it's sad that its popularity decrease over time
vondruch has quit [Ping timeout: 256 seconds]
houhoulis has quit [Ping timeout: 268 seconds]
matled has quit [Remote host closed the connection]
marens has quit [Ping timeout: 264 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
beefjoe has joined #ruby
matled has joined #ruby
sphenxes has joined #ruby
Rapture has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
skryking has quit [Quit: Leaving]
marens has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
rivalomega has joined #ruby
rfoust has joined #ruby
rivalomega has quit [Ping timeout: 256 seconds]
<livcd> markand: well it's not ruby it's the type of the problem ruby solves
krawchyk has joined #ruby
oleo has joined #ruby
weird_error has quit [Quit: weird_error]
weird_error has joined #ruby
XB23 has joined #ruby
alfiemax has quit [Remote host closed the connection]
rivalomega has joined #ruby
alfiemax has joined #ruby
jordanm has quit [Remote host closed the connection]
karapetyan has joined #ruby
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weird_error has quit [Quit: weird_error]
bmurt has joined #ruby
jordanm has joined #ruby
ramfjord has joined #ruby
rebear has quit [Remote host closed the connection]
rebear has joined #ruby
Torstein has joined #ruby
<Torstein> in the ruby std lib, where are dependendcies defined?
rkazak has quit [Quit: Sleep.....ing....]
<Torstein> where/how is rbtree included?
ramfjord has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
shinnya has joined #ruby
weird_error has joined #ruby
kmurphy4 has joined #ruby
zautomata has joined #ruby
suukim has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
kloeri has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
chocoelho has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
elphe has quit [Ping timeout: 260 seconds]
Bonjourm8 has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
grilix_ has joined #ruby
venmx has joined #ruby
XB23 has quit [Quit: Leaving]
RougeR has joined #ruby
Bonjourm8 has quit [Remote host closed the connection]
Bonjourm8 has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
Bonjourm8 has quit [Remote host closed the connection]
Dbugger has joined #ruby
mtkd has quit []
rkazak has joined #ruby
maufart__ has quit [Ping timeout: 268 seconds]
chouhoul_ has joined #ruby
Vashy is now known as psTzv2
Cavallari has quit [Quit: Cavallari]
venmx has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
elphe has joined #ruby
mtkd has joined #ruby
amar__ has quit [Remote host closed the connection]
sytherax has quit [Remote host closed the connection]
ellcs has joined #ruby
Torstein has quit [Ping timeout: 260 seconds]
sytherax has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
sytherax has quit [Read error: Connection reset by peer]
sytherax has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
anjen has joined #ruby
Burgestrand has quit [Quit: Closing time!]
karapetyan has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
synthroid has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 264 seconds]
thapakazi has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
Bonjourm8 has joined #ruby
conta has quit [Ping timeout: 240 seconds]
coderphive has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
chocoelho has quit [Ping timeout: 256 seconds]
Bonjourm8 has quit [Remote host closed the connection]
Bonjourm8 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bonjourm8_ has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
Bonjourm8 has quit [Read error: Connection reset by peer]
mostly-harmless has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ldepandis has joined #ruby
synthroid has joined #ruby
agent_white has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
hlmjr has quit [Quit: Konversation terminated!]
venmx has joined #ruby
karapetyan has quit [Remote host closed the connection]
troys has joined #ruby
Bonjourm8_ has quit [Remote host closed the connection]
Bonjourm8_ has joined #ruby
yohji has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 245 seconds]
jarnalyrkar has quit [Quit: Leaving]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cadillac_ has quit [Ping timeout: 245 seconds]
anisha has joined #ruby
Bonjourm8__ has joined #ruby
Bonjourm8__ has quit [Remote host closed the connection]
Bonjourm8_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
anjen has quit [Quit: anjen]
minimalism has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
nitric has joined #ruby
jcarl43 has joined #ruby
conta has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
darkhanb has joined #ruby
orbyt_ has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
mlkkk has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
Bonjourm8 has joined #ruby
amar_ has joined #ruby
phaul has joined #ruby
cadillac_ has joined #ruby
nowhere_man has joined #ruby
anjen has joined #ruby
anjen has quit [Client Quit]
nayena has joined #ruby
amar_ has quit [Ping timeout: 252 seconds]
sanscoeur has joined #ruby
houhoulis has joined #ruby
alfiemax_ has joined #ruby
clemens3 has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
ldepandis has quit [Ping timeout: 248 seconds]
pilne has joined #ruby
karapetyan has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
codymj has joined #ruby
contradictioned has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 245 seconds]
contradictioned has joined #ruby
mtkd has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
telnet has joined #ruby
<telnet> does anyone have a guide on getting postgresql setup with ruby on ubuntu? I can only find guides for setting it up with rails
Shadow25 has joined #ruby
<apeiros> drop the "install rails and create a new rails app" part and you're 99% there.
<apeiros> the other 1% (which takes 80% of the time) is choosing a library to connect to pg
<Shadow25> Hi guys
<uplime> I used the pg gem but I can't get it to talk to my db
<apeiros> Shadow25: hi girl
<Shadow25> ?
<Shadow25> Can I ask questions regardin rails in here?
<apeiros> ?rails Shadow25
<ruby[bot]> Shadow25: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<apeiros> you can, but ^ is better suited
<Shadow25> ok thanks!
<apeiros> you're welcome :)
agent_white has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
<Shadow25> I get a message "Cannot join channel (+r) - you need to be identified with services"
<Shadow25> i registered my nickname
<Shadow25> what else do I need to do?
<apeiros> you have to login with that registration
<apeiros> iirc it doesn't do a login when you register, only register
<apeiros> (been a while, though)
<Shadow25> aaah i need to do /ns identify
<Shadow25> ok
<apeiros> best is to setup sasl login
<apeiros> most irc clients support that
contradictioned has quit [Ping timeout: 245 seconds]
Eiam has joined #ruby
contradictioned has joined #ruby
agent_white has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
universa1 has quit [Read error: Connection reset by peer]
universa1 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
hays_ has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
brent__ has joined #ruby
alfiemax has joined #ruby
mtkd has quit []
houhoulis has quit [Remote host closed the connection]
houhoulis has joined #ruby
mtkd has joined #ruby
sytherax has quit [Remote host closed the connection]
dmgk has joined #ruby
sytherax has joined #ruby
suukim has quit [Quit: Konversation terminated!]
houhoulis has quit [Ping timeout: 256 seconds]
GodFather_ has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
mikeeeeeeey has joined #ruby
karapetyan has joined #ruby
nayena has quit [Ping timeout: 252 seconds]
SeepingN has joined #ruby
Shadow25 has quit [Quit: Page closed]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
contradictioned has quit [Ping timeout: 256 seconds]
thapakazi has quit [Ping timeout: 245 seconds]
<mikeeeeeeey> Hi there, I am getting a "JSON::ParserError: A JSON text must at least contain two octets!" for https://gist.github.com/mikesavtechnology/ccccc9ee4b993f27cc58ffd0a0c4b4e4
<baweaver> mikeeeeeeey: look at those script variables
alfiemax_ has quit [Ping timeout: 256 seconds]
<baweaver> they're the literal command
lypsis has joined #ruby
havenwood has quit [Quit: ZNC 1.7.0 - https://znc.in]
<baweaver> Ah
<baweaver> nevermind, they get interpolated.
contradictioned has joined #ruby
<baweaver> Check the output of those if you can
<baweaver> Chances are it's blank
alfiemax has joined #ruby
mtkd has quit []
<mikeeeeeeey> Seems to work on one server but not another
mtkd has joined #ruby
<baweaver> What I'd do is break it up a bit to get some more tests in there.
cagomez has quit [Remote host closed the connection]
<baweaver> def user_output; script_result = `#{SACLI_SCRIPT}`; return {} if script_result.empty?; JSON.parse(script_result) end
<baweaver> Something like that, add validation to make sure it actually got something
<brent__> i was wondering how i could translate `curl -u user_name:api_key url` to httparty
<brent__> I'm not sure how to replicate the user_name_api_key into the request
havenwood has joined #ruby
havenwood has joined #ruby
GodFather_ has quit [Ping timeout: 245 seconds]
<baweaver> Probably in the docs somewhere as well, but looks like those are options you could pass in
<baweaver> Ah, that looks more relevant
cagomez has joined #ruby
<brent__> thanks
<brent__> any idea how to do so via postman?
<brent__> like like is the `-u user:pass` relate to a standard header or params?
<baweaver> Not offhand
ramfjord has joined #ruby
contradictioned has quit [Ping timeout: 245 seconds]
<baweaver> I'd have to search around for it for a while.
<brent__> no worries
<baweaver> mikeeeeeeey: I'd also add some validation to make sure those scripts actually exist on the server, and raise relevant errors if they don't
<brent__> any idea how to see what exactly the curl -u request looks like
<brent__> after you send it?
<baweaver> one of these days I should learn how to translate those. Unfortunately not
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mikeeeeeeey: Name your gist file with a .rb extension for syntax highlighting.
<mikeeeeeeey> Thanks =)
<brent__> baweaver: fyi, in postman I was able to add basic_auth options, and the user_id and api_key as user/pass which worked
<havenwood> mikeeeeeeey: You can edit a gist too or add more than one file, when relevant.
<havenwood> mikeeeeeeey: Do you understand what that JSON error means?
contradictioned has joined #ruby
eckhardt has joined #ruby
<havenwood> "A JSON text must at least contain two octets!"
ghormoon has quit [Ping timeout: 240 seconds]
<mikeeeeeeey> I dont know =(
<havenwood> mikeeeeeeey: Do you know what JSON is?
mtkd has quit []
ghormoon has joined #ruby
<mikeeeeeeey> javascript notation
<SeepingN> nil result eh?
nitric_ has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
nitric has quit [Ping timeout: 245 seconds]
weaksauce has joined #ruby
GodFather_ has joined #ruby
guille-moe has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
<havenwood> >> require 'json'; JSON.parse ''
<ruby[bot]> havenwood: # => A JSON text must at least contain two octets! (JSON::ParserError) ...check link for more (https://eval.in/1009490)
<havenwood> >> require 'json'; JSON.parse '{}'
<ruby[bot]> havenwood: # => {} (https://eval.in/1009491)
DTZUZU has joined #ruby
<SeepingN> that
<havenwood> mikeeeeeeey: I've seen folk tell you on previous days (and I've also mentioned) that your bash script, which itself shells out to python, is returning an empty string when run with backticks from Ruby.
wald0 has joined #ruby
<havenwood> mikeeeeeeey: It seems you don't understand that explanation, so maybe ask questions about the parts you don't understand. It's hard for us to know what you don't know.
rebear has quit [Remote host closed the connection]
i4 has joined #ruby
<mikeeeeeeey> Do you think maybe the server is missing dependencies to run the scripts?
<havenwood> mikeeeeeeey: When you parse an empty string with JSON, it complains about not having two octets, either "[]" for an Array or "{}" for a Hash.
<i4> I try to using loop counter as part of variable, and it working for single variable, but I cant set it for variable with dot... Like a @gon.var1 @gon.var2 etc. I was tried to set it by using: :"var#{i}", but for @gon.* it is not working... then I was tried to use binding.local_variable_set("var#{i}", 'some') but it is not working with @gon.*
<mikeeeeeeey> such as python?
<i4> What I'm doing wrong? And how I can get the @gon.var#{i} variables in loop? In good way I want to get: @gon.var1 = '1', @gon.var2 = '2' etc
<havenwood> mikeeeeeeey: foo = `ls -fdklj`; foo.empty? #=> True
<baweaver> i4: Ruby doesn't work like that.
<havenwood> mikeeeeeeey: As previously said, try the scripts directly, outside of Ruby. This isn't a Ruby problem.
<i4> Why not? and how it's working? How can I get this dynamic variables?
<baweaver> You're thinking in Javascript. You can't dynamically set values like that
wald0 has quit [Read error: No route to host]
<i4> baweaver, really?
<i4> And what is the true way?
<baweaver> i4: Can you put your code in a gist?
<mikeeeeeeey> Yeah, its strange, the scripts exists
<havenwood> mikeeeeeeey: I'd guess it's erring on one server, and you're just getting the empty string back from Ruby - not enough to diagnose the error.
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver> ?gist
<mikeeeeeeey> ill compare it to the other server
<havenwood> mikeeeeeeey: Look at the scripts, outside Ruby. Run them yourself. This isn't a Ruby problem.
mtkd has joined #ruby
<mikeeeeeeey> yup! ill take a look at them now
<baweaver> More than likely using a hash i4, but I'd have to know what you're doing first.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<SeepingN> as is common when pulling API data or data over an SSH connection, you learn the hard way to check EVERYTHING for errors or nil results or empty results
<baweaver> Pretty much, the data is never pure.
<i4> (1..4).each do |x|
<havenwood> i4: I don't get what you're doing either. Gist!
<SeepingN> Don't run JSON.parse on X until you've checked that X isn't empty at the very least
<i4> @gon.var1 = t("somepathsometext")
<i4> Taht's all
<baweaver> Also, what exact problem are you trying to solve?
<i4> I need to set three or four @gon.var#{i}
hays_ has quit [Remote host closed the connection]
<i4> var1 var2 var3 etc
<havenwood> i4: i? x? huh?
<i4> Oh sorry
<i4> #{x}
<baweaver> Ah, Gon.
<SeepingN> @gon[x] = t("junk") ?????
<baweaver> That thing is a mess.
<i4> I need @gon.var*
<i4> Can I use @gon.var[x] ?
<baweaver> It's a way to shim Rails variables into JS.
<SeepingN> I dunno.. can you? seems like you should
<havenwood> baweaver: oh!
<havenwood> I'd never see the gon gem.
<baweaver> So yeah, hash syntax works for those
<baweaver> You can't make a dynamic variable name with interpolation like that
<baweaver> that said, you should also avoid using Gon
<baweaver> it means you're conflating your UI state too much with your Rails state
<baweaver> It's a path of great pain and suffering
<i4> i'll try
<baweaver> Also the README shows this exact usecase.
<i4> undefined method `[]=' for nil:NilClass
<mikeeeeeeey> is there anything i need to install to run python scripts on a server?
<i4> I was tried to do like this: @gon.lon[i] = t("office.all.n_#{x[0]}.pos.lon", locale: :x)
guille-moe has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 248 seconds]
<i4> but it's mot working (
elphe has joined #ruby
<baweaver> do you know how interpolation works?
<SeepingN> you have i AND x. which is what
<havenwood> mikeeeeeeey: Python and any Python package dependencies.
<baweaver> the `lon` variable does't exist.
<havenwood> mikeeeeeeey: Python questions are better in the Python channel.
<i4> 'i' - index, 'x' some naming
<havenwood> mikeeeeeeey: /join #python
<i4> I'm waiting for lon1 not for lon
<i4> baweaver, I think no
<baweaver> Read the README for Gon
<baweaver> @gon.push("lon#{i}" => t())
<i4> Yesm it's working!
<i4> In the reame of gon I don't saw this solution
<i4> Thank you, my friend ^)
<i4> You are the best
<baweaver> "1. Write variables by"
<baweaver> right there
elphe has quit [Ping timeout: 265 seconds]
<baweaver> But seriously: don't use Gon
<i4> Why?
<SeepingN> is Gon funded by ads?
<havenwood> it's a forgon conclusion
<baweaver> It conflates the idea of Javascript and Rails state
<baweaver> and by extension ends up tightly coupling the two, making for harder to test and update code.
<mikeeeeeeey> hm interesting. 16.04 script works but breaks on 14.04 ubuntu
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> Having a consistent version of your OS deployed is a good first step towards sanity
<i4> :(
<i4> I'll try to remove it in future
<havenwood> i4: Whatcha using it for?
<i4> to send params from rails to coffee.erb
karapetyan has joined #ruby
amelliaa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
TomyLobo has joined #ruby
i4 has quit [Quit: Leaving]
micutzu has joined #ruby
Bonjourm8 has quit [Quit: Leaving]
codymj has quit [Quit: Leaving]
conta has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
dviola has joined #ruby
dviola has left #ruby [#ruby]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
alfiemax has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan_ has quit [Client Quit]
tvw has joined #ruby
jenrzzz has joined #ruby
zumbi is now known as Guest37885
bhaak is now known as Guest86737
pocketprotector is now known as Guest49953
AKPWD is now known as Guest54383
Radar is now known as Guest55615
madhatter is now known as Guest93864
braderhart is now known as Guest74533
auv is now known as Guest44382
larissa is now known as Guest17221
Mutsuhito is now known as Guest22947
mkaito is now known as Guest73467
graingert is now known as Guest25333
ELLIOTTCABLE is now known as Guest44951
ptx0 is now known as Guest58280
spiette is now known as Guest9512
vdl is now known as Guest58471
SuperTux88 is now known as Guest36902
raggi is now known as Guest71745
TheMoonMaster is now known as Guest84079
fury is now known as Guest10930
nuck is now known as Guest21194
sirecote is now known as Guest91942
Cyrus is now known as Guest49403
ged is now known as Guest68543
EvilJStoker is now known as Guest41100
tekk is now known as Guest64970
Cork is now known as Guest8084
Sp4rKy is now known as Guest41156
ndrst is now known as Guest73837
tectonic is now known as Guest53857
marahin is now known as Guest4172
swistak35 is now known as Guest50286
Morrolan is now known as Guest31486
phage is now known as Guest62913
devyn is now known as Guest8837
markand is now known as Guest54268
levifig is now known as Guest82445
jacky is now known as Guest24064
jrgifford is now known as Guest53256
baweaver is now known as Guest3612
cats is now known as Guest10935
bougyman is now known as Guest90958
oz is now known as Guest23822
r3dc0d3r is now known as Guest69234
olspookishmagus is now known as Guest73982
redondos is now known as Guest57996
DarthGandalf is now known as Guest14918
rmerry is now known as Guest83502
balo is now known as Guest43572
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Guest10930 is now known as fury
Guest71745 is now known as raggi
darkhanb has joined #ruby
Guest58280 has quit [Quit: Changing server]
Guest68543 is now known as ged
ptx0 has joined #ruby
ged is now known as Guest88335
dviola has joined #ruby
shortdudey123 has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
psmolen has quit [Ping timeout: 240 seconds]
Dabo has quit [Ping timeout: 260 seconds]
naquad has quit [Ping timeout: 260 seconds]
Guest54383 has quit [Quit: じゃね。]
AKPWD has joined #ruby
naquad has joined #ruby
orbyt_ has joined #ruby
Flashynuff has quit []
Flashynuff has joined #ruby
psmolen has joined #ruby
shortdudey123 has joined #ruby
Dabo has joined #ruby
elphe has joined #ruby
Guest58471 is now known as vdl
reber has joined #ruby
Fire-Dragon-DoL has joined #ruby
plexigras has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
elphe has quit [Ping timeout: 260 seconds]
plexigras has joined #ruby
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Zinder has quit []
karapetyan has quit [Remote host closed the connection]
Zinder has joined #ruby
Chew has quit []
Zinder has quit [Client Quit]
Zinder has joined #ruby
Chew has joined #ruby
dionysus69 has joined #ruby
clemens3 has joined #ruby
telnet has left #ruby ["WeeChat 2.1"]
jenrzzz has quit [Ping timeout: 252 seconds]
plexigras has quit [Quit: WeeChat 2.1]
plexigras has joined #ruby
xenops has joined #ruby
kmurphy4 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
justache is now known as FireBeard
FireBeard is now known as Guest71490
alfiemax has joined #ruby
Guest71490 is now known as justache
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest86737 is now known as bhaak
cagomez has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
cagomez has joined #ruby
jenrzzz_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
mjolnird has quit [Remote host closed the connection]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit []
mjolnird has joined #ruby
beefjoe has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nowhere_man has joined #ruby
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
mlkkk has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
Guest88335 is now known as ged
ged is now known as Guest40319
jenrzzz has joined #ruby
<mikeeeeeeey> ,.
karapetyan has joined #ruby
mrsolo has quit []
mrsolo has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
synthroid has quit []
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
quobo has joined #ruby
coderphive has quit [Quit: coderphive]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest49403 is now known as Cyrus
Cyrus is now known as Guest9089
schleppel has quit [Quit: Konversation terminated!]
jyaworski has joined #ruby
jcalla has quit [Quit: Leaving]
t0xik has joined #ruby
roshanavand has joined #ruby
orbyt_ has joined #ruby
elphe has joined #ruby
reber has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 268 seconds]
Guest43572 is now known as balo_
ldnunes has quit [Quit: Leaving]
ogres has quit [Quit: Connection closed for inactivity]
grilix_ has quit [Ping timeout: 260 seconds]
Guest82445 is now known as levifig
levifig has quit [Read error: Connection reset by peer]
levifig has joined #ruby
ur5us has joined #ruby
plexigras has quit [Ping timeout: 260 seconds]
krawchyk has quit [Quit: krawchyk]
kirun has quit [Quit: Konversation terminated!]
apeiros has quit [Ping timeout: 252 seconds]
jwheare has quit []
jwheare has joined #ruby
chluca has joined #ruby
rivalomega has quit [Remote host closed the connection]
jyaworski has quit [Remote host closed the connection]
chluca has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 256 seconds]
rivalomega has joined #ruby
jyaworski has joined #ruby
rivalomega has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest44382 has quit [Changing host]
Guest44382 has joined #ruby
Guest44382 has joined #ruby
Guest44382 is now known as Auv
ramfjord has joined #ruby
sphenxes has quit [Quit: Leaving]
orbyt_ has joined #ruby
elphe has joined #ruby
alfiemax has joined #ruby
Bonjourm8 has joined #ruby
Bonjourm8 has quit [Remote host closed the connection]
RougeR has joined #ruby
sanscoeur has quit [Ping timeout: 256 seconds]
elphe has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
Guest23707 has quit [Changing host]
Guest23707 has joined #ruby
musl has quit [Quit: WeeChat 2.0.1]
Guest40319 is now known as ged
ged is now known as Guest95110
RougeR has quit [Ping timeout: 252 seconds]
phaul has quit [Ping timeout: 240 seconds]
Mia has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 252 seconds]
lypsis is now known as lypsis|awy
RougeR has joined #ruby
ramfjord has joined #ruby
amelliaa has quit [Quit: -]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
rfoust has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
ramfjord has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RyanMcCoskrie has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
gil_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
redlegion has quit [Remote host closed the connection]
zapata has quit [Quit: WeeChat 2.1]
redlegion has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
zapata has joined #ruby
elphe has joined #ruby
VladGh has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
sytherax has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
orbyt_ has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
alfiemax has quit [Ping timeout: 240 seconds]
\void has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
Emmanuel_Chanel has quit [Quit: Leaving]
kapil___ has joined #ruby
j75 has joined #ruby
j75 has quit [Quit: WeeChat 1.9.1]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
ramfjord has joined #ruby
darkhanb has quit [Ping timeout: 252 seconds]
Guest95110 is now known as ged
clemens3 has quit [Ping timeout: 240 seconds]
ged is now known as Guest19310
eckhardt has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
quobo has quit [Quit: Connection closed for inactivity]
clemens3_ has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
sytherax has joined #ruby
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 252 seconds]
k0mpa has quit [Remote host closed the connection]
karapetyan has joined #ruby
rivalomega has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
rivalomega has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
lilherc has joined #ruby
marr has quit [Ping timeout: 252 seconds]
coderphive has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
mlkkk has quit [Remote host closed the connection]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x0f has quit [Ping timeout: 256 seconds]