apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
jaykilleen has joined #ruby
tcrypt has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
pwnd_nsfw` has joined #ruby
c355e3b has quit [Ping timeout: 256 seconds]
nikivi has quit [Quit: irc]
MadWasp has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
MadWasp has joined #ruby
whathappens has quit [Quit: Leaving...]
c355e3b has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
twalla has quit [Ping timeout: 260 seconds]
teotwaki has quit [Ping timeout: 251 seconds]
ctp__ has joined #ruby
nitric has quit [Quit: quit]
fladson[m] has quit [Ping timeout: 240 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
nitric has joined #ruby
elenatanasoiu1 has joined #ruby
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
epochwolf has joined #ruby
e13ct has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ckrailo has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
M-mistake has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 268 seconds]
ckrailo has joined #ruby
M-shine has quit [Ping timeout: 263 seconds]
davidmichaelkarr has quit [Ping timeout: 243 seconds]
helpa has quit [Write error: Broken pipe]
helpa-bot has joined #ruby
aeterne has joined #ruby
davidmichaelkarr has joined #ruby
bascht has joined #ruby
tuxaddic1ed has quit [Ping timeout: 268 seconds]
elenatanasoiu1 has quit [Ping timeout: 260 seconds]
fladson[m] has joined #ruby
helpa-bot has quit [Remote host closed the connection]
tdy has joined #ruby
helpa has joined #ruby
tuxaddicted has joined #ruby
tylersmith has joined #ruby
nitric has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
M-shine has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
M-mistake has joined #ruby
rcvalle has quit [Quit: rcvalle]
M-mistake has quit [Excess Flood]
teotwaki has joined #ruby
cpfeilschifter[m has joined #ruby
ace05_ has quit [Ping timeout: 248 seconds]
M-mistake has joined #ruby
LBRapid has quit [Ping timeout: 259 seconds]
LBRapid has joined #ruby
nankyokusei has joined #ruby
ctp__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ace05_ has joined #ruby
ParmesanCaesar has joined #ruby
charles81 has quit [Ping timeout: 240 seconds]
teotwaki has quit [Ping timeout: 240 seconds]
charles81 has joined #ruby
M-mistake has quit [Excess Flood]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
M-mistake has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
kmckelvin has quit [Read error: Connection reset by peer]
dn` has joined #ruby
lancetw has quit [Read error: Connection reset by peer]
peteretep has quit [Read error: Connection reset by peer]
kmckelvin has joined #ruby
peteretep has joined #ruby
lancetw has joined #ruby
sneakers has quit [Read error: Connection reset by peer]
tfitts has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
SteenJobs has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elenatanasoiu1 has joined #ruby
olivierjanss has quit [Read error: Connection reset by peer]
olivierjanss has joined #ruby
Ropeney_ has joined #ruby
tfitts has joined #ruby
anaiden has quit [Quit: anaiden]
SCHAAP137 has quit [Quit: Leaving]
cyphase has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
cpfeilschifter[m has joined #ruby
wpostma has joined #ruby
Madplatypus has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 265 seconds]
LBRapid has joined #ruby
teotwaki has joined #ruby
JesseH has joined #ruby
flopsec has joined #ruby
ParmesanCaesar has quit [Quit: leaving]
anaiden has joined #ruby
dviola has quit [Write error: Broken pipe]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as dviola
svankmajer has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
manveru has quit [Ping timeout: 259 seconds]
manveru has joined #ruby
elenatanasoiu1 has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
RTFM[away] has joined #ruby
gizless is now known as gizmore
cpfeilschifter[m has joined #ruby
ramfjord has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 265 seconds]
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
MrSamuel has joined #ruby
jeffreylevesque has joined #ruby
Dimik has quit [Ping timeout: 265 seconds]
Roa has joined #ruby
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
mrfooo has quit [Ping timeout: 240 seconds]
mrfooo has joined #ruby
_djbkd has quit [Remote host closed the connection]
marr has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
M-mistake has quit [Ping timeout: 240 seconds]
M-manveru has quit [Ping timeout: 240 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpfeilschifter[m has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
_djbkd has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
fladson[m] has quit [Ping timeout: 240 seconds]
LBRapid has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 240 seconds]
twalla has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
shinnya has quit [Ping timeout: 240 seconds]
M-mistake has joined #ruby
_djbkd has joined #ruby
epochwolf has joined #ruby
Lucky_ABA has joined #ruby
LBRapid has joined #ruby
elenatanasoiu1 has joined #ruby
Lucky_ABA has quit [Client Quit]
fladson[m] has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 240 seconds]
M-manveru has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
svankmajer has quit [Ping timeout: 268 seconds]
tmtwd has quit [Ping timeout: 248 seconds]
davidt has quit []
Lucky_ABA has joined #ruby
M-mistake has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
brendan- has joined #ruby
JeanCarloMachado has joined #ruby
fredolinhares has joined #ruby
M-mistake has joined #ruby
davidt has joined #ruby
wsmoak has joined #ruby
wsmoak has quit [Read error: Connection reset by peer]
UKn0Meh has joined #ruby
UKn0Meh has joined #ruby
UKn0Meh has quit [Changing host]
M-mistake has quit [Excess Flood]
koooge has quit [Ping timeout: 248 seconds]
elenatanasoiu1 has joined #ruby
UKn0Meh has left #ruby [#ruby]
M-mistake has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.5]
ichkv has quit [Remote host closed the connection]
koooge has joined #ruby
UKn0Me has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
tyang has joined #ruby
M-mistake has quit [Excess Flood]
M-mistake has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 268 seconds]
teotwaki has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
teotwaki has joined #ruby
zel has joined #ruby
zel is now known as Guest14734
malcolmva has joined #ruby
tylersmith has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
Mia has joined #ruby
M-shine has quit [Ping timeout: 240 seconds]
vitd has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
elenatanasoiu1 has joined #ruby
svankmajer has joined #ruby
Derperperd has joined #ruby
anaiden has quit [Quit: anaiden]
elenatanasoiu1 has quit [Ping timeout: 265 seconds]
M-shine has joined #ruby
johnmccabe has joined #ruby
chrisja has quit [Quit: leaving]
Jameser has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
ramfjord has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
Lucky_ABA has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
zukin has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
cpfeilschifter[m has joined #ruby
zukin has quit [Ping timeout: 250 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
svankmajer has quit [Ping timeout: 260 seconds]
Felipe__ has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
cdg has quit [Read error: Connection reset by peer]
vitd has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
[gmi] has joined #ruby
nankyokusei has joined #ruby
zukin has joined #ruby
xall has quit [Ping timeout: 250 seconds]
redlegion has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
[gmi] has quit [Client Quit]
cyphase has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
frankiee_ has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 268 seconds]
cyphase has joined #ruby
astrobunny has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
tyang has quit [Read error: Connection reset by peer]
symm- has joined #ruby
tristanp has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
raeoks has joined #ruby
cyphase_eviltwin has joined #ruby
Rodya_ has joined #ruby
arescorpio has joined #ruby
tristanp has quit [Ping timeout: 248 seconds]
tristanp has joined #ruby
pawnbox has joined #ruby
jcao219 has joined #ruby
marahin has quit [Quit: ZNC - http://znc.in]
M-shine has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
Radar has joined #ruby
Zarthus has quit [Ping timeout: 240 seconds]
zukin has quit [Ping timeout: 240 seconds]
M-shine has joined #ruby
Zarthus has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
blackmesa has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
fmcgeough has quit [Quit: fmcgeough]
_djbkd has quit [Quit: My people need me...]
<Fetch> I can use attr_accessor to give access to a classvar hash, and assignments work as expected. If I try to write my own accessor (def foo=(val)) then it isn't being called for hash assignments (Bar.foo['baz']='blam')
<Fetch> Is there something I'm missing for creating my own accessor that can handle hash/array-like access?
harfangk has joined #ruby
zukin has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
nettoweb1 has joined #ruby
<Fetch> Everything on the internet says "attr_accessor just creates public foo and foo= methods", but I checked out the ruby C source code, and I'm not sure that's accurate
nettoweb has quit [Ping timeout: 268 seconds]
twalla has joined #ruby
nettoweb has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Iacobus has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
nettoweb1 has quit [Ping timeout: 265 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
M-mistake has quit [Ping timeout: 240 seconds]
Iacobus has joined #ruby
anaiden has joined #ruby
vitd has joined #ruby
fladson[m] has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
<havenwood> >> class Fetch; attr_reader :example; def initialize; @example = {} end end; fetch = Fetch.new; fetch.example[:aim] = true; fetch.example
<ruby[bot]> havenwood: # => {:aim=>true} (https://eval.in/658916)
vitd has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
<Fetch> havenwood: thanks, but for a class var. That example's an instance var. I'm not sure why it works w/o a setter, even
M-mistake has joined #ruby
SteenJobs has joined #ruby
jaykill has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
<Fetch> >> class Foo; attr_reader :bar; def bar=(val); @bar=var end end; Foo.bar={}; Foo.bar['baz']='bam'; Foo.bar.inspect
<ruby[bot]> Fetch: # => undefined method `bar=' for Foo:Class (NoMethodError) ...check link for more (https://eval.in/658917)
<Fetch> ugh
fladson[m] has joined #ruby
<Fetch> I didn't do all the self stuff there
<Fetch> >> class Foo; attr_reader :bar; def self.bar=(val); @bar=var end end; Foo.bar={}; Foo.bar['baz']='bam'; Foo.bar.inspect
<ruby[bot]> Fetch: # => undefined local variable or method `var' for Foo:Class ...check link for more (https://eval.in/658918)
<Fetch> >> class Foo; attr_reader :bar; def self.bar=(val); @bar=val end end; Foo.bar={}; Foo.bar['baz']='bam'; Foo.bar.inspect
<ruby[bot]> Fetch: # => undefined method `bar' for Foo:Class ...check link for more (https://eval.in/658919)
<havenwood> Fetch: try in irb or pry first ;-)
<Fetch> yeah sorry. Anyway, I've tried this in my code a good deal
<Fetch> the = accessor simply isn't being called on hash assignments
jaykilleen has quit [Ping timeout: 260 seconds]
<havenwood> >> class Foo; class << self; attr_accessor :bar end end; Foo.bar = {}; Foo.bar['baz'] = 'bam'; Foo.bar
<ruby[bot]> havenwood: # => {"baz"=>"bam"} (https://eval.in/658920)
<Fetch> havenwood: great. Now, write your own setter (def bar= )
<Fetch> it doesn't work
gix has quit [Ping timeout: 250 seconds]
<Fetch> according to Foo.methods, there's nothing different between what attr_writer is setting and def bar= , but bar= isn't called for Foo.bar['a']='b'
symm- has quit [Quit: Leaving...]
bascht has joined #ruby
xall has joined #ruby
redpants has joined #ruby
gix has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Remote host closed the connection]
xall has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
tcrypt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ruby[bot]> Fetch: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d5dfbf1d452823db65f0dc2ec7647bc3
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<ruby[bot]> Fetch: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<helpa> Hi Fetch. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<Fetch> havenwood: http://pastebin.com/n4Wg8FHA illustrates it best. In that case, the hash assignment occurs but the setter never (apparently) gets directly invoked
<llua> raid10 highlights
jaykill33 has joined #ruby
<llua> s/10//
_djbkd has quit [Ping timeout: 260 seconds]
jaykill has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
wldcordeiro has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Felipe__ has quit [Quit: Leaving]
<Fetch> oh I think I get it, the reader is returning the hash object by reference which is then directly set by the assignment
Guest51328 has quit [Quit: Textual IRC Client: www.textualapp.com]
vitd has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
tectonic has quit []
jhack has quit []
zukin has quit [Ping timeout: 240 seconds]
zukin has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
<zenspider> anyone a wiz at bash tab completion logic? I'm stumped by something
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
alem0lars has joined #ruby
elenatanasoiu1 has joined #ruby
Chagel has joined #ruby
zukin has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
<ICantCook> zenspider: not a 'wiz', but what's the question?
<ICantCook> might be worth asking in #bash as well
SteenJobs has joined #ruby
elifoster has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 250 seconds]
xall has joined #ruby
blackmesa has joined #ruby
<zenspider> ICantCook: trying to write some ruby code to allow autocompletion for `ri`
<zenspider> ICantCook: the code works fine, but the interactions with bash seems broken at best
anaiden has quit [Quit: anaiden]
<zenspider> running `COMP_LINE=Benchmark::I ruby ri.rb` gives you a list of everything that matches (Benchmark::IPS & friends)
JoshS has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<zenspider> but when run via tab completion: `ri Benchmark::I[tab][tab]` it winds up with: "ri Benchmark::Benchmark::IPS"
<zenspider> seems like it backs up to the last ":" and then completes from there for some crazy reason
<zenspider> but I see nothing in the doco to say anything about colon for completion
blackmesa has quit [Ping timeout: 250 seconds]
<zenspider> I'm stumped at this point
tcrypt has quit [Quit: _ノ乙(、ン、)_]
igniting has quit [Ping timeout: 248 seconds]
zukin has joined #ruby
pawnbox has joined #ruby
SteenJobs has joined #ruby
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
exchgr has quit [Ping timeout: 240 seconds]
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xall has quit [Ping timeout: 260 seconds]
redpants has quit [Ping timeout: 240 seconds]
exchgr has joined #ruby
nankyokusei has joined #ruby
cpfeilschifter[m has joined #ruby
Rodya_ has quit [Remote host closed the connection]
vitd has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 268 seconds]
xall has joined #ruby
RTFM[away] has quit [Ping timeout: 248 seconds]
toretore has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kspencer has joined #ruby
zukin has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Quit: peaceee]
pawnbox has joined #ruby
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
fladson[m] has quit [Ping timeout: 240 seconds]
fladson[m] has joined #ruby
cpfeilschifter[m has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
aupadhye has joined #ruby
Channel6 has quit [Quit: Leaving]
jaguarmagenta has joined #ruby
gizless has joined #ruby
gizless has quit [Client Quit]
gizmore has quit [Ping timeout: 260 seconds]
vitd has joined #ruby
epochwolf has quit [Ping timeout: 240 seconds]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
samof76 has joined #ruby
epochwolf has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
helpa has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
helpa has joined #ruby
cpfeilschifter[m has joined #ruby
igniting has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
svankmajer has joined #ruby
davidt has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
blackmesa has joined #ruby
tonini has joined #ruby
nadir has joined #ruby
eizua has joined #ruby
twalla has joined #ruby
_djbkd has joined #ruby
davidt has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
rsampaio_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
twalla has quit [Ping timeout: 260 seconds]
Chagel has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
dminuoso_ has quit [Remote host closed the connection]
Chagel has joined #ruby
xall has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Chagel has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
Chagel has joined #ruby
dminuoso_ has joined #ruby
brianpWins_ has joined #ruby
edwinvdgraaf has joined #ruby
fnord____ has quit [Read error: Connection reset by peer]
brianpWins_ is now known as brianpWins
epochwolf has quit [Ping timeout: 240 seconds]
watersoul has joined #ruby
mim1k|wo1k has joined #ruby
jcao219 has quit [Ping timeout: 250 seconds]
sjums has joined #ruby
SpX has joined #ruby
epochwolf has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
nonnatus has joined #ruby
f0rpaxe has quit [Quit: Connection closed for inactivity]
svankmajer has quit [Ping timeout: 260 seconds]
fnord____ has joined #ruby
rsampaio_ has quit [Ping timeout: 240 seconds]
elhu has joined #ruby
axscode_ has joined #ruby
djellemah has joined #ruby
<axscode_> Hi guys if i have x = [{type=>'note', body=>'msg here'}] <-- how to access type? x['type'] seems not working.
<dminuoso_> aspiers: The outer shell is an array. How do you access elements of an array?
elenatanasoiu1 has joined #ruby
ctp__ has joined #ruby
pawnbox has joined #ruby
<axscode_> dminuoso_: is that for me?
<dminuoso_> axscode_: Yes.
<dminuoso_> Somethings screwed up in my irssis tab completion, I should pay more attention to it in the future.
bocaneri has joined #ruby
elhu_ has joined #ruby
<axscode_> type = "#{push['data']['item']['conversation_parts']['conversation_parts']['type']}" the rest is array, but on the type part it has curly inside {}
aeterne has quit [Read error: Connection reset by peer]
<dminuoso_> >> x = [{type=>'note', body=>'msg here'}]; puts x.class
<ruby[bot]> dminuoso_: # => undefined local variable or method `type' for main:Object (NameError) ...check link for more (https://eval.in/658990)
<Radar> dminuoso_: a+ for effort :D
<axscode_> and im lost
<dminuoso_> >> x = [{type: 'note', body: 'msg here'}]; puts x.class
<ruby[bot]> dminuoso_: # => Array ...check link for more (https://eval.in/658991)
<dminuoso_> Radar: Heh.
raeoks has joined #ruby
<Radar> axscode_: It's an array. How do you get an element out of an array?
<axscode_> [0].type ?
<Radar> axscode_: [{type: "foo"},{type: "bar"}]
<Radar> axscode_: how do I get the first element out of that array?
<dminuoso_> axscode_: Yes, for example!
<dminuoso_> axscode_: Now for the first element, it's often more elegant to use #first instead.
<Radar> axscode_: good
<axscode_> ah
<Radar> axscode_: [0][:type]
elhu has quit [Ping timeout: 250 seconds]
<axscode_> [#first][:type] ?
<axscode_> checking
<Radar> .first[:type"]
<Radar> Without the "
elenatanasoiu1 has quit [Ping timeout: 260 seconds]
raeoks has quit [Client Quit]
<dminuoso_> axscode_: Class#method is just a conventional way of writing that method is an instance method of Class. I just left the Class "Array" away. :)
<axscode_> sorry just learning ruby :D forgive my super noob presence
<Radar> np
<Radar> we encourage all learners
kspencer has quit [Quit: be back tomorrow]
<dminuoso_> axscode_: That's fine. We don't expect you to rewrite Rake for another week at least.
raeoks has joined #ruby
jaequery has joined #ruby
raeoks has quit [Client Quit]
ctp__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
xall has joined #ruby
aufi has joined #ruby
<axscode_> this work -> type = "#{push['data']['item']['conversation_parts']['conversation_parts'].first['part_type']}"
<axscode_> thank you guys.
jaykill33 has quit [Remote host closed the connection]
last_staff has joined #ruby
<dminuoso_> axscode_: Now before you get used to such ugliness
TomyLobo has quit [Ping timeout: 250 seconds]
<dminuoso_> axscode_: get that "part_type" outside and put it into a variable
blackmesa has quit [Ping timeout: 250 seconds]
<axscode_> sorry, more english please.
etehtsea has joined #ruby
<dminuoso_> axscode_: "#{something}" is called string interpolation. Using complex expressions in there is very dirty and unreadable.
JesseH has quit [Ping timeout: 240 seconds]
fladson[m] has quit [Ping timeout: 240 seconds]
bascht has quit [Ping timeout: 240 seconds]
bascht has joined #ruby
<axscode_> type = push['data']['item']['conversation_parts']['conversation_parts'].first['part_type'] ?
<dminuoso_> axscode_: right
<axscode_> perfect :D i love you already
<dminuoso_> axscode_: And if your goal is just to convert it into a string, use the #to_s method
crdpink has joined #ruby
<dminuoso_> but check whether its not a string already
<axscode_> type.to_s ?
raeoks has joined #ruby
<dminuoso_> axscode_: what's type's class?
<dminuoso_> Is it a string? A symbol? A fixnum?
<axscode_> given if its a number
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<axscode_> type = 1234567890 then type.to_s or to_s(type) ?
<axscode_> sorry haha just guessing
<dminuoso_> axscode_: then just use something.first['part_type'].to_s :)
etehtsea has quit [Ping timeout: 268 seconds]
tcrypt has joined #ruby
raeoks has quit [Client Quit]
<axscode_> ahhhhhhhhhhhhhh
<axscode_> sorry, guys, i learn fast by example :( is that a bad habit?
jaykilleen has joined #ruby
raeoks has joined #ruby
fladson[m] has joined #ruby
<axscode_> is there a switch in ruby
<dminuoso_> axscode_: Yes. The book you are reading (you are reading a good book, right?) will cover it later on for sure.
<axscode_> how do you usually do, if substring found in string then do this. but string should be like in a switch so if substring1 found, then do this, if substring2 found then do this.
nankyokusei has joined #ruby
frankiee_ has joined #ruby
JesseH has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
vitd has quit [Ping timeout: 240 seconds]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 260 seconds]
rsampaio_ has joined #ruby
<baweaver> If you don't have one: Eloquent Ruby
<baweaver> which I normally recommend to people that already know programming
firstdayonthejob has joined #ruby
<axscode_> thank you baweaver i'll look for that
<dminuoso_> ^- has got to be the most recommended book in here.
<baweaver> The Pickaxe book is better for straight newbies
<baweaver> Practical Object Oriented Development in Ruby is great for people who don't know OO very well yet.
<baweaver> The Ruby Way is a massive legendary tome of information
Chagel has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
jaequery has joined #ruby
<axscode_> i know this is a wrong channel to ask, but how do you compare py to ruby?
<ytti> with snark and sarcasm
edwinvdgraaf has joined #ruby
Derperperd has quit [Quit: Derperperd]
nofxx has joined #ruby
<baweaver> Depends on what you want to do really
<baweaver> I'm not particularly a fan of the forced indentation, but I do like that you can pass methods as functions more cleanly.
<baweaver> though there's still that whole nasty fight over 2 vs 3
ur5us has quit [Remote host closed the connection]
arashb has joined #ruby
<Fetch> baweaver: one hotdog, obv
<frankiee_> py has forced indentation?
<Fetch> frankiee_: yes
<frankiee_> that's gotta suck
<Fetch> plusses and minuses
<fbt> axscode_, personally, I've found the codecademy ruby course lacking, but decent enough as an introduction
<baweaver> Currently writing a book on Ruby myself, though that'll take a while.
<fbt> Depending on your taste in learning material, it can be pretty nice.
<baweaver> that, and it's way more focused on Ops.
<Fetch> frankiee_: there are other things I find more annoying about it, like reliance on global namespace for too much, pain when chaining methods, etc.
<fbt> It will just feed you concepts one by one, which I like a lot
arashb has quit [Ping timeout: 260 seconds]
<baweaver> The Cloud Administrator's Guide to Ruby.
<axscode_> thanks fbt will check on that.
<baweaver> should be fun.
<Fetch> baweaver: "How do I gem install fog and awssdk?" :)
<fbt> baweaver, I'll check it out if it's not $50 :D
<baweaver> $49.99
<fbt> Well that's ideal then
elhu_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Fetch> basically free at that point
<baweaver> Joking aside, I'll probably have it up for free with donations appreciated.
<fbt> But seriously, a digital educational book for $50 is just... why.
k200 has joined #ruby
<Fetch> baweaver: what's your timeframe look like? a few months out?
<fbt> I keep seeing those
<baweaver> Probably. Doing a class on it at work later this month
<fbt> Fetch, sure, but $50 for a digital book is also a bit much
<Fetch> fbt: time spent writing isn't free *shrug*
<baweaver> k200: everything except nil/false is truthy, remember that
duncannz has quit [Ping timeout: 250 seconds]
<k200> shall I use !! in ruby, to get a boolean result ?
<Fetch> I think I've paid that for a few, but pretty atypically
duncannz has joined #ruby
<baweaver> It'll cover cloud providers. Basically how to DevOps with Ruby.
<baweaver> does nil not work for it?
<k200> baweaver: my code return nil. i want it to return false.
<k200> no.
<baweaver> why?
firstdayonthejob has quit [Ping timeout: 250 seconds]
<k200> if its nil it executes that if block. i dont want it to execute that if block if its false (==nil)
jxf has quit [Ping timeout: 240 seconds]
bsrd has joined #ruby
<Fetch> baweaver: I work at a consulting firm where we do a bunch of infrastructure and pipeline coding in Ruby. In the unlikely event I remember in a few months, I'll see about pinging you on whether we should check it out
<baweaver> I'll probably fire it around here and on Twitter
<baweaver> you'll likely see the entire thing OS'd on github.com/baweaver
<Fetch> twitter handle same as irc?
<baweaver> funny story there
<baweaver> keystonelemur on Twitter
<baweaver> baweaver on twitter is a sorority girl
<baweaver> the only reason I know this is because someone tried to recruit her thinking it was me
<Fetch> it's very nearly the initials/last name of my ex from college
<fbt> Heh. fbt on freenode used to be some other guy who was apparently contacted a few times when people were searching for me
<fbt> He dropped the nick, it seems
jxf has joined #ruby
<baweaver> I have this and lemur
stemid has left #ruby [#ruby]
<k200> everyones animal on internet!
<lemur> considering lemur was my original.
<fbt> I'd do the same, honestly. If there is someone who is known better by the nick I use, I'd just choose another.
<baweaver> baweaver is my more professional sounding alias
<baweaver> baweaver -> B.A. Weaver
<baweaver> which might or might not stand for badass
<fbt> Heh.
<Fetch> "oh look at me, I'm a weaver who's a BADASS"
<Fetch> which come to think of it, was the basis for some book I read back a while
<baweaver> My old team name was BaDASS too
<baweaver> Anyways. #ruby-offtopic for the rest of this.
<baweaver> Build and Deployment Automation Support System
tvw has joined #ruby
<baweaver> k200: You can !!value for booleans
<k200> baweaver: yeah. thats what i was asking for!
<baweaver> just remember that things are implicitly boolean by nature.
axscode_ has quit [Ping timeout: 248 seconds]
<k200> k
<k200> ok
Dimik has joined #ruby
Pumukel has joined #ruby
conta has joined #ruby
qwertyco has joined #ruby
Tempesta has quit [Quit: See ya!]
aganov has joined #ruby
wugy has joined #ruby
jaguarmagenta has joined #ruby
ddffg has joined #ruby
axscode has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
<axscode> "<p>string</p>" <-- what's the best way to remove substring
<dminuoso_> axscode: By using an XML parser.
Pumukel has joined #ruby
<dminuoso_> nokogiri is your friend.
<axscode> any gem for that
<dminuoso_> (There's a couple other, but Nokogiri is likely the gem you want to be accustomed to for future work)
diNZy has quit [Read error: Connection reset by peer]
<baweaver> nokogiri +1
frankiee1 has joined #ruby
<axscode> nokogiri it is :D
DoubleMalt has joined #ruby
frankiee_ has quit [Read error: No route to host]
jaguarmagenta has quit [Ping timeout: 265 seconds]
<axscode> aw, can you help with example removing <p> on a string
<axscode> using nokogiri
<nofxx> axscode, #text on yr Nokogiri.parse
blaxter has joined #ruby
blackmesa has joined #ruby
<axscode> txt = Nokogiri.parse('<p>asdf</p>').text ?
<dminuoso_> axscode: ?tias
<dminuoso_> ?tias axscode
<ruby[bot]> axscode: Why don't you try it and see for yourself?
SesMan has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
<axscode> thank you dminuoso_
<axscode> works!
pwnd_nsfw` has quit [Read error: Connection reset by peer]
gingray has joined #ruby
pwnd_nsfw` has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
_djbkd has quit [Quit: My people need me...]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
biberu has joined #ruby
Dimik has quit []
teotwaki has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
teotwaki has joined #ruby
andikr has joined #ruby
yardenbar has joined #ruby
Ropeney_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raeoks has joined #ruby
vitd has joined #ruby
ichkv has joined #ruby
beatdown has joined #ruby
glcx has quit [Quit: Quitte]
claudiuinberlin has joined #ruby
mikecmpbll has joined #ruby
vitd has quit [Ping timeout: 250 seconds]
JesseH has quit [Ping timeout: 250 seconds]
Humdai has joined #ruby
elhu has joined #ruby
dn` has quit [Quit: dn`]
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
conta has quit [Ping timeout: 260 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark_66 has joined #ruby
Dimik has joined #ruby
DarkUnicorn has joined #ruby
jgt1 has joined #ruby
dn` has joined #ruby
moei has joined #ruby
jenrzzz has joined #ruby
JesseH has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
conta has joined #ruby
jaykilleen has quit [Ping timeout: 260 seconds]
zukin has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Chagel has quit [Ping timeout: 248 seconds]
rsampaio_ has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 240 seconds]
axscode has quit []
k200 has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
^mtkd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
blackmesa has joined #ruby
Fetch_ has joined #ruby
tdy1 has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
jshjsh has joined #ruby
olspookishmagus has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 260 seconds]
olspookishmagus is now known as Guest68051
Burgestrand has joined #ruby
Chagel has quit [Ping timeout: 265 seconds]
UserJosh has joined #ruby
mikecmpbll has joined #ruby
Chagel has joined #ruby
charliesome has joined #ruby
jshjsh has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ocbtec has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
LiquidInsect has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
zukin has quit [Ping timeout: 250 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samof76 has quit [Ping timeout: 260 seconds]
qwertyco has quit [Quit: Leaving]
Chagel has quit [Ping timeout: 240 seconds]
fladson[m] has quit [Ping timeout: 240 seconds]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
ruby-lang020 has joined #ruby
ruby-lang020 has left #ruby [#ruby]
last_staff has quit [Quit: I'll be _right_ back]
chwbacca has joined #ruby
last_staff has joined #ruby
cpfeilschifter[m has joined #ruby
fladson[m] has joined #ruby
Chagel has quit [Ping timeout: 268 seconds]
pygospa has joined #ruby
vitd has joined #ruby
ur5us has joined #ruby
JesseH has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
elenatanasoiu1 has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
vitd has quit [Ping timeout: 248 seconds]
zeroDi has joined #ruby
xall has joined #ruby
f4cl3y has joined #ruby
chwbacca has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
chwbacca has joined #ruby
Chagel has joined #ruby
ctp__ has joined #ruby
Couch has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
lupine has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
Chagel has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Chagel has joined #ruby
optiz0r has joined #ruby
marr has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
phredus has quit [Remote host closed the connection]
oblique has joined #ruby
phredus has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
yardenbar has quit [Ping timeout: 240 seconds]
jahmalz has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
f0rpaxe has joined #ruby
samof76 has joined #ruby
edwinvdg_ has joined #ruby
fladson[m] has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
Snowy has joined #ruby
jsrn_ has joined #ruby
flying has joined #ruby
fladson[m] has joined #ruby
jaguarmagenta has joined #ruby
harai_ has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 250 seconds]
Beams has joined #ruby
chwbacca has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
KnownSyntax has quit [Ping timeout: 248 seconds]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
toretore has joined #ruby
pwnd_nsfw` has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
KnownSyntax has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
<maloik> Surprised no one mentioned Oga :D
<ljarvis> oga
twalla has joined #ruby
vuoto has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
yardenbar has joined #ruby
zapata has joined #ruby
twalla has quit [Ping timeout: 265 seconds]
miguelfernandes has joined #ruby
f4cl3y has quit [Ping timeout: 250 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
djellemah has quit [Ping timeout: 260 seconds]
tcrypt is now known as tcrypt[away]
JesseH has joined #ruby
aspiers has left #ruby ["WeeChat 1.3"]
djellemah has joined #ruby
flyingX has joined #ruby
ctp__ has quit [Ping timeout: 265 seconds]
astrobunny has quit [Remote host closed the connection]
mim1k|wo1k is now known as mim1k|work
xall has joined #ruby
flying has quit [Ping timeout: 265 seconds]
vitd has joined #ruby
pygospa has quit [Ping timeout: 240 seconds]
salut has quit [Read error: Connection reset by peer]
sylario has joined #ruby
pygospa has joined #ruby
jaykilleen has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
vitd has quit [Ping timeout: 250 seconds]
jolamb has joined #ruby
koooge has quit [Quit: Leaving...]
bascht has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 250 seconds]
samof76 has quit [Ping timeout: 260 seconds]
bascht has joined #ruby
workmad3 has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
samof76 has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: Leaving]
blackmesa has joined #ruby
Chagel has joined #ruby
Wayne_Shephard has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Chagel has quit [Ping timeout: 240 seconds]
Filiphe has joined #ruby
Chagel has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
symm- has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
i5um41ru has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
duncannz has quit [Remote host closed the connection]
Chagel has joined #ruby
symm- has quit [Quit: Leaving...]
_whitelogger has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
tcrypt[away] is now known as tcrypt
LBRapid has joined #ruby
tcrypt is now known as tcrypt[away]
f4cl3y has joined #ruby
glcx has quit [Quit: Quitte]
Chagel has joined #ruby
M-manveru has joined #ruby
teotwaki has quit [Ping timeout: 240 seconds]
teotwaki has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
pokalyis has joined #ruby
conta has joined #ruby
edwinvdg_ has quit []
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SCHAAP137 has joined #ruby
xall has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
tvw has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
xall has quit [Ping timeout: 265 seconds]
vitd has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
Robtop__ has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
vitd has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
cpfeilschifter[m has joined #ruby
Burgestrand has joined #ruby
Filiphe has quit [Remote host closed the connection]
Robtop__ has quit [Ping timeout: 250 seconds]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
pwnd_nsfw` has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
cpfeilschifter[m has quit [Ping timeout: 240 seconds]
cpfeilschifter[m has joined #ruby
fladson[m] has quit [Ping timeout: 240 seconds]
LBRapid has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
bascht has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
Madplatypus has quit [Quit: Connection closed for inactivity]
jaykilleen has quit [Read error: Connection reset by peer]
jaykilleen has joined #ruby
jaykilleen has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 248 seconds]
fladson[m] has joined #ruby
M-manveru has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
Suresh has joined #ruby
M-manveru has joined #ruby
GodFather has joined #ruby
minimalism has quit [Quit: minimalism]
kam270 has joined #ruby
kam270 has quit [Remote host closed the connection]
antgel has joined #ruby
ziarkaen has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
Chagel_ has joined #ruby
Ropeney has joined #ruby
Chagel has quit [Ping timeout: 268 seconds]
symm- has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
jaguarmagenta has joined #ruby
Robtop__ has joined #ruby
gizmore has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 260 seconds]
spectrum has joined #ruby
Ropeney has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Remote host closed the connection]
spectrum has quit [Client Quit]
teotwaki has quit [Ping timeout: 240 seconds]
twalla has joined #ruby
ddffg has joined #ruby
codfection has quit [Remote host closed the connection]
teotwaki has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
LBRapid has quit [Ping timeout: 240 seconds]
LBRapid has joined #ruby
rajdesai has joined #ruby
ledestin has joined #ruby
modin has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
modin has joined #ruby
Jameser has quit [Ping timeout: 260 seconds]
conta has quit [Quit: conta]
jaguarmagenta has joined #ruby
codfection has joined #ruby
ziarkaen has quit [Ping timeout: 248 seconds]
<Suresh> the above link is the error
vitd has joined #ruby
<dminuoso_> Suresh: Stop being such a help vampire, posting your problem on stackoverflow, asking on rubyonrails and now asking here.
Torrone has quit [Quit: This computer has gone to sleep]
hammond has quit [Ping timeout: 268 seconds]
Immune has quit [Ping timeout: 260 seconds]
<Suresh> sorry wrong thing i have posted
Pumukel has quit [Ping timeout: 260 seconds]
codfection has quit [Client Quit]
Suresh has left #ruby [#ruby]
tcrypt[away] is now known as tcrypt
Chagel_ has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Ping timeout: 248 seconds]
tcrypt is now known as tcrypt[away]
naftilos76 has joined #ruby
codfection has joined #ruby
Suresh_ has joined #ruby
Torrone has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
bascht has joined #ruby
e13ct has joined #ruby
vitd has quit [Ping timeout: 250 seconds]
Guest37817 has quit [Ping timeout: 250 seconds]
fivmo has joined #ruby
Guest51965 has quit [Ping timeout: 260 seconds]
pragmaticus has joined #ruby
smlocal has joined #ruby
JeanCarloMachado has joined #ruby
e13ct has quit [Client Quit]
smlocal has quit [Client Quit]
nuck has joined #ruby
nuck is now known as Guest95198
samof76 has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
epochwolf has quit [Ping timeout: 240 seconds]
conta has joined #ruby
epochwolf has joined #ruby
ocbtec has quit [Quit: leaving]
Tempesta has quit [Quit: See ya!]
blackmesa has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby
symm- has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
arne has joined #ruby
<arne> can i group stuff somehow? like multiple .select?
<arne> like [1,2,3,4,5].select { |x| x%3 } and i get 3 arrays with each of the values?
Tempesta has joined #ruby
Pumukel has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Client Quit]
gingray has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
codfection has quit [Quit: Leaving]
tectonic has quit []
<arne> group_by
hammond has joined #ruby
codfection has joined #ruby
<apeiros> exactly :)
workmad3 has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
rajdesai has quit [Remote host closed the connection]
samof76 has joined #ruby
rajdesai has joined #ruby
Nahra has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
glcx has quit [Client Quit]
xall has joined #ruby
rajdesai has quit [Ping timeout: 250 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
raeoks has quit [Ping timeout: 260 seconds]
saneax is now known as saneax-_-|AFK
codfection has quit [Remote host closed the connection]
xall has quit [Ping timeout: 268 seconds]
claudiuinberlin has joined #ruby
sczizzo has joined #ruby
Jameser has joined #ruby
LBRapid has quit [Ping timeout: 241 seconds]
LBRapid has joined #ruby
Rodya_ has joined #ruby
tyang has joined #ruby
fbt has quit [Ping timeout: 250 seconds]
fbt has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
fladson[m] has quit [Ping timeout: 240 seconds]
Suresh_ has quit [Ping timeout: 260 seconds]
sczizzo has quit []
i5um41ru has quit [Ping timeout: 250 seconds]
ziarkaen has joined #ruby
vitd has joined #ruby
fladson[m] has joined #ruby
bascht has joined #ruby
gizmore has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
vitd has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
ichkv has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
djellemah has quit [Ping timeout: 268 seconds]
chg has joined #ruby
dmitch has joined #ruby
redpants has joined #ruby
DoubleMalt has quit [Ping timeout: 248 seconds]
fivmo has quit [Quit: Textual IRC Client: www.textualapp.com]
blaxter has quit [Quit: foo]
bsrd has quit [Quit: WeeChat 1.6]
dmitch has quit [Client Quit]
Hyuk has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
andrewvos has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
aupadhye has quit [Remote host closed the connection]
i5um41ru has joined #ruby
workmad3 has joined #ruby
<atmosx> I like the term "help vampire"
Rodya_ has joined #ruby
charliesome has joined #ruby
<atmosx> Although is not self-explainatory
djellemah has joined #ruby
fmcgeough has joined #ruby
<apeiros> also help vampires are usually neither capable of flight, nor very fast, nor *insert vamire traits*
bascht has joined #ruby
<apeiros> the only relevant trait is that they suck the living blood from their victims :)
<ciawal> the trait is that they suck help ;)
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
blackgoat has quit [Quit: WeeChat 1.5]
<apeiros> -help
nettoweb has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
andrewvos has quit [Ping timeout: 260 seconds]
<apeiros> na, well, one important thing to remember: there's often no malevolence involved. sometimes gross laziness, though.
zotherst1 has joined #ruby
k200 has joined #ruby
<k200> hi
<k200> is there any gem / plugin which i can integrate into anything which is ruby to give me cli +/ gui progress bar?
<SebastianThorn> curses /ncurses something
<SebastianThorn> pry
maloik has quit [Remote host closed the connection]
<k200> i will have to code to use pry.
<k200> i just wan tto config. not code.
<SebastianThorn> there is one more that i cant remember
maloik has joined #ruby
<k200> plug and play progressbar!
<apeiros> to a degree: highline
<apeiros> also you can do a progressbar with plain ansi, sans ncurses
<k200> ok
<apeiros> \r, \e[<COLOR>m and \e[1m are your friend.
<apeiros> additionally there's a code to hide/show the cursor (make sure to wrap that part into a begin/ensure)
zeroDi has joined #ruby
<SebastianThorn> thor was the one i was thinking of
tk__ has joined #ruby
<k200> ok
<k200> thanks all.
sepp2k has joined #ruby
<apeiros> does thor also provide interactive stuff? I thought it was more an ARGV -> ruby class mapper
<SebastianThorn> i have no idea, i just remember using thor when i did some cli/promt thing
nettoweb has joined #ruby
<SebastianThorn> just namedropped cus i could not remember the name
Guest14734 has quit [Quit: https://fnordserver.eu]
<workmad3> apeiros: it provides some interactive prompts (it's built in file copy action prompts for user input if the file already exists, for example)
<workmad3> but it's not exactly a full terminal toolkit...
<apeiros> ok
zotherst1 has quit [Ping timeout: 260 seconds]
zotherst1 has joined #ruby
jgt1 has quit [Quit: WeeChat 1.4]
jmignault has joined #ruby
cdg has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrewvos has joined #ruby
symm- has joined #ruby
ARCADIVS has joined #ruby
Xentil has joined #ruby
failshell has joined #ruby
DoubleMalt has joined #ruby
Toledo is now known as croberts
kyle__ has quit [Disconnected by services]
vitd has joined #ruby
brendan- has joined #ruby
codfection has joined #ruby
mvxlr has joined #ruby
tcrypt[away] is now known as tcrypt
tcrypt is now known as tcrypt[away]
malconis has joined #ruby
codfection has quit [Client Quit]
vitd has quit [Ping timeout: 248 seconds]
ta_ has quit [Remote host closed the connection]
DLSteve has joined #ruby
ta_ has joined #ruby
codfection has joined #ruby
Aquazi has joined #ruby
codfection has quit [Remote host closed the connection]
hutch34 has joined #ruby
yfeldblum has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
Pumukel has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
sarbs has quit [Ping timeout: 260 seconds]
JoshL has joined #ruby
samof76 has quit [Ping timeout: 260 seconds]
<k200> how to find out if in my array of hashes, "second_key" has value for all those hashes where "first_key" has value ??
Zamyatin has joined #ruby
coolboy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has quit [Remote host closed the connection]
Pumukel has joined #ruby
Wayne_Shephard has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
<ljarvis> k200: can you show an example?
nfk has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
gingray has joined #ruby
bigkevmcd has joined #ruby
<eam> hashes.select {|h| h[:first_key] && h[:second_key]}
<eam> maybe modify with .nil? or .empty? or whatever you find appropriate for your situation
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<k200> ok
drzel has joined #ruby
codfection has joined #ruby
<zotherst1> is there a gem for converting video media files to DASH (Dynamic Adaptive Streaming over HTTP)?
catphish has joined #ruby
zotherst1 has quit [Quit: WeeChat 1.6]
andrewvos has quit [Quit: WeeChat 0.4.2]
ocbtec has joined #ruby
<catphish> can anyone please suggest the most efficient way to 1) detect if a string contains a newline, 2) read data up to the new line 3) discard the data that's been read
pawnbox has quit [Remote host closed the connection]
failshell has quit []
<catphish> the reason being that i want to use gets with epoll, so i was planning to read data into a buffer, then i need to do "gets" on the buffer
<heftig> write it in C
<catphish> :(
binaryplease has joined #ruby
pwnd_nsfw` has joined #ruby
shinnya has joined #ruby
<catphish> for now i can of course use String#index, and String#[]
<catphish> perhaps that's good enough
<ljarvis> catphish: stringio maybe?
<catphish> i considered that, but i fear it won't deal with discarding the old data
Robtop__ has quit [Ping timeout: 260 seconds]
<eam> what do you mean discard?
<ljarvis> discarding in what sense? it uses a position and a buffer, so you can always discard previously read data
k200 has quit [Quit: leaving]
<catphish> ljarvis: how would i do the discard?
<heftig> i'm serious, btw. you want efficient custom low level IO, you write an extension.
<ljarvis> stringio is written in c
<ljarvis> catphish: what exactly do you mean by discard?
<eam> the character semantics of ruby array indexing are probably the most expensive part of any of this
<catphish> i want to "gets" data from the string, i want the data to then no longer be in the underlying string
<ljarvis> why?
<ljarvis> create a new string
Azure has quit [Ping timeout: 265 seconds]
<heftig> catphish: string.slice!(/^[^\n]*/) might do what you want
<catphish> well because my buffer will keep getting larger forever
GodFather has quit [Ping timeout: 268 seconds]
<heftig> er,
<heftig> string.slice!(/^[^\n]*\n/)
tk__ has quit [Quit: ばいばい]
<catphish> come to think of it, perhaps just: line, string = string.split("\n", 2)
<heftig> actually, that's better, yes
<catphish> after checking string.index("\n")
<catphish> it creates an extra copy of the string, but i realiase that's largely unavoidable without writing an extension
codfection has quit [Read error: Connection reset by peer]
<eam> catphish: when you allocate a new string and discard the old one it'll get gc'd
<heftig> catphish: you can just do the split
mim1k|wo1k has joined #ruby
<catphish> yep, that should be ok
<heftig> if there's no \n in there, the return array won't contain a second element
<catphish> thanks for helping me think, i think that split will be fine for now
<heftig> splitted = str.split("\n", 2); rest = splitted[1] || splitted[0]
harfangk has joined #ruby
<heftig> actually, splitted is not a word, but w/e
<catphish> i'll use an if, but yes :)
<catphish> since i dont want to process the line if its not complete
<catphish> thanks!
<catphish> helps to think out loud sometimes, so thanks for listening
TomyLobo2 has joined #ruby
mim1k|work has quit [Ping timeout: 248 seconds]
<catphish> i will look at writing something in C if performance is an issue, but it shouldn't be
<eam> I wonder why you have a buffer that "keeps getting larger forever"
<ljarvis> im confused too but it seems like catphish is happy
<eam> shouldn't you have a buffer of fixed size which gets reused?
shinnya has quit [Read error: Connection reset by peer]
<eam> ljarvis: yeah it's a fun question to address in any event
skweek has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
gregf_ has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
<catphish> eam: it's not clear to me how it would get reused
GodFather has joined #ruby
<catphish> i just read data into a string with string << socket.read_partial(4096)
TomyLobo2 has quit [Ping timeout: 256 seconds]
TomyLobo2 has joined #ruby
symm- has joined #ruby
symm- has quit [Client Quit]
mim1k|work has joined #ruby
<catphish> i want to detect when that buffer reaches a newline, process the line, and start a new buffer
<catphish> line, rest = buffers[socket].split("\n", 2)
<catphish> is my current working solution
miguelfernandes has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 250 seconds]
iamvery has joined #ruby
mim1k|wo1k has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
bkxd has joined #ruby
nankyokusei has joined #ruby
symm- has joined #ruby
shinnya has joined #ruby
glcx has joined #ruby
yardenbar has quit [Ping timeout: 248 seconds]
glcx has quit [Client Quit]
patarr has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
Beams has quit [Ping timeout: 248 seconds]
patarr has quit [Client Quit]
vitd has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
Beams has joined #ruby
patarr has joined #ruby
marr has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 260 seconds]
patarr has quit [Client Quit]
malconis has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
kallisti6 is now known as kallisti5
vitd has quit [Ping timeout: 248 seconds]
dminuoso_ has quit [Ping timeout: 248 seconds]
TomyLobo2 has quit [Ping timeout: 256 seconds]
jcao219 has joined #ruby
bmurt has joined #ruby
dviola has joined #ruby
patarr has joined #ruby
wldcordeiro has quit [Ping timeout: 260 seconds]
<frankiee1> Hi! Silly question time !!!
last_staff has quit [Quit: *poof*]
<frankiee1> How do I output `categories = ['Foo', 'Bar']` as a hashes with `name` as their value? This obviously won't work: categories = ['Foo', 'Bar']; categories.each do |category|; puts category.to_h; end
<frankiee1> Ie. {:name=>"Foo"}, {:name=>"Bar"}
Filiphe has joined #ruby
pawnbox has joined #ruby
<Nilium> So you just want an array of everything from :name?
<frankiee1> Nilium: sounds about right, yeah
bascht has quit [Ping timeout: 240 seconds]
<Nilium> Are all of your hashes in an array?
fladson[m] has quit [Ping timeout: 240 seconds]
M-manveru has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
M-manveru has joined #ruby
pawnbox has joined #ruby
<frankiee1> Not exactly sure I need an array
<ljarvis> categories.map { |cat| { name: cat } }
<Nilium> I don't think that's a yes or a no
dminuoso_ has joined #ruby
<frankiee1> ljarvis: sweet, one sec
<Nilium> Wait, so the goal is to turn an array of names _into_ a bunch of hashes?
<frankiee1> Oh yeah yeah, all my hashes are in an array, yes
<frankiee1> Sorry I misunderstood
loincloth has joined #ruby
<Nilium> Are you trying to get names out of hashes or convert names to hashes?
<ljarvis> lol
fladson[m] has joined #ruby
bascht has joined #ruby
<ljarvis> maybe show us what you have vs what you want
igniting has quit [Ping timeout: 248 seconds]
codfection has joined #ruby
<frankiee1> Ok, one second let me make a nice gist for you guys
nonnatus has joined #ruby
nonnatus has quit [Client Quit]
TomyLobo2 has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
xall has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
RTFM[away] has joined #ruby
RTFM[away] has quit [Changing host]
RTFM[away] has joined #ruby
antgel has joined #ruby
Azure has joined #ruby
alem0lars has joined #ruby
<ljarvis> categories.map { |c| c["name"] }
saneax-_-|AFK is now known as saneax
<ljarvis> btw, private followed by attr_reader doesn't do what you think it does
Rodya_ has quit [Remote host closed the connection]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 248 seconds]
<frankiee1> ljarvis: excellent !!!!
ichkv has quit [Remote host closed the connection]
<frankiee1> ljarvis: oh yeah? hmm.. not sure what i was thinking
<ljarvis> actually ignore me about the private
<frankiee1> ah ok
<ljarvis> i thought you were doing something else
<frankiee1> cool cool
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
nowhereman has quit [Ping timeout: 250 seconds]
codfection has quit [Remote host closed the connection]
<frankiee1> ljarvis: categories.map { |c| puts c["name"] } is empty for some reason
<ljarvis> frankiee1: what does `p categories` show?
<frankiee1> ljarvis: ["Jeans", "Sko"]
tvw has quit [Read error: Connection reset by peer]
<ljarvis> im so confused
<ljarvis> i thought you wanted to pull categories out of that JSON
harai_ has joined #ruby
<frankiee1> well, i could do that too. but the reason im specifying the categories beforehand is so i can filter products belonging to those categories i need
<ljarvis> sorry but you're going to have to reduce the issue you're having down to a smaller piece of code, it's very confusing, so it's either very complex or you're not explaining it well (or i'm just not being very clever today)
Robtop__ has joined #ruby
<ljarvis> my understanding: you have: { "name" => "foo", "name" => "bar" } and want ["foo", "bar"] but apparently that's incorrect
aganov has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 248 seconds]
<frankiee1> yeah it's a little paradox going on there. but no, i have `categories = ['Jeans', 'Sko']` at https://gist.github.com/frankie-loves-jesus/23bcf741b672da31cc8cb1ef8aa400df#file-2-get_products-rake-L58 .. the script will then filter the JSON and only bring out products whose categories are also Jeans and Sko
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 260 seconds]
<frankiee1> I figured it would be best to create the actual categories in Solidus based on that preconfigured categories array, rather than fishing it out of the JSON
<ljarvis> (product.categories.map { |c| c["name"] } & categories).any?
wldcordeiro has joined #ruby
<ljarvis> >> categories = ["bar"]; ({ "name" => "foo", "name" => "bar" }.map { |c| c["name"] } & categories).any?
<ruby[bot]> ljarvis: # => /tmp/execpad-c5104156f399/source-c5104156f399:2: warning: key "name" is duplicated and overwritten o ...check link for more (https://eval.in/659535)
<ljarvis> >> categories = ["bar"]; ([{ "name" => "foo" }, {"name" => "bar"}].map { |c| c["name"] } & categories).any?
<ruby[bot]> ljarvis: # => true (https://eval.in/659536)
jaequery has joined #ruby
pawnbox has quit [Remote host closed the connection]
jmignault has quit [Remote host closed the connection]
dminuoso_ has quit [Remote host closed the connection]
twalla has joined #ruby
gregf_ has quit [Quit: Page closed]
binaryplease has quit [Quit: WeeChat 1.6]
<frankiee1> ljarvis: I put `(product.categories.map { |c| c["name"] } & categories).any?` inside `https://gist.github.com/frankie-loves-jesus/23bcf741b672da31cc8cb1ef8aa400df#file-2-get_products-rake-L89-L93` but am getting `NoMethodError: undefined method `categories' for #<Product:0x001f5e38dcf838>`
<ljarvis> right, so product has a single category, not the categories at the bottom of that JSON file? (which are a list)
<ljarvis> in which case, what you have already looks correct.. so what's wrong exactly?
ruby-lang477 has joined #ruby
<frankiee1> ljarvis: yes. the categories are known as `productGroup` in the JSON file
brendan- has joined #ruby
<frankiee1> well the problem is that i can output / feed Solidus with the product info.. unfortunately i need to create the categories in Solidus before I can feed anything into them
<frankiee1> (categories in Solidus are known as Taxons.. for some weird reason)
<frankiee1> SO MANY NAMES FOR CATEGORIES!! killing me
<ljarvis> do you know what the URL payload needs to look like?
<frankiee1> sorry what do you mean?
<ljarvis> you said you need to feed the categories into Solidus (i have no idea what that is) but presumably this happens when you send a request to that url with paramString?
mark_66 has quit [Remote host closed the connection]
<frankiee1> Solidus is a fork of Spree.. the ecommerce thingie, http://solidus.io/.. pretty neat stuff
Azure has quit [Ping timeout: 240 seconds]
Robtop__ has quit [Read error: Connection reset by peer]
<frankiee1> oh no, the paramString thing fetches the JSON from this supplier
jcao219 has quit [Ping timeout: 248 seconds]
Robtop__ has joined #ruby
Zamyatin has joined #ruby
<frankiee1> so we can safely ignore that part i think
<ljarvis> sorry but we've been talking for 30 minutes and i still have no idea what you want or what's wrong, so i don't think i can help
lupine has joined #ruby
Snowy has quit [Quit: ragequit]
sheepman is now known as sheepman0
sheepman0 is now known as sheepman
<frankiee1> i want to mass import products from my supplier into my Solidus store. but before i can import the products, i must create their categories in Solidus. that's basically it
zapata has joined #ruby
<ljarvis> How do I output `categories = ['Foo', 'Bar']` as a hashes with `name` as their value? This obviously won't work: categories = ['Foo', 'Bar']; categories.each do |category|; puts category.to_h; end
<ljarvis> ^ that was your question
<frankiee1> yeah that was me trying to be smart and creating a reduced test case lol
<frankiee1> damn this code is a mess
<frankiee1> thanks for trying to help though :))
<ljarvis> that IS smart, nobody cares about Solidus, keep it simple
<ljarvis> problem is, it's not simple enough
<ljarvis> and the code looks like to me, im just having trouble working out what you want or even what's wrong :)
tylersmith has quit [Ping timeout: 240 seconds]
marr has joined #ruby
patarr has quit [Quit: patarr]
bsrd has joined #ruby
^mtkd has quit [Ping timeout: 240 seconds]
feelx- has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
pawnbox has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has quit [Quit: Leaving...]
mtkd has joined #ruby
feelx has quit [Ping timeout: 248 seconds]
<ljarvis> im pretty sure what you actually wanted was my first answer: [{name: category }] but who knows
<frankiee1> hmmm
M-mistake has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
bascht has quit [Write error: Connection reset by peer]
M-shine has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
fladson[m] has quit [Write error: Connection reset by peer]
blackmesa has joined #ruby
igniting has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
Oclair has joined #ruby
<frankiee1> ljarvis: any chance you're available for paid work?
<ljarvis> I'm afraid not :) not for a long time anyway
vitd has joined #ruby
<frankiee1> okidokie
Fetch_ is now known as Fetch
hutch34 has joined #ruby
pwnd_nsfw has joined #ruby
Oclairi has quit [Ping timeout: 248 seconds]
antgel has quit [Ping timeout: 268 seconds]
tcrypt[away] is now known as tcrypt
nowhereman has joined #ruby
ponga has joined #ruby
tcrypt is now known as tcrypt[away]
i5um41ru has quit [Ping timeout: 260 seconds]
i5um41ru has joined #ruby
Robtop__ has quit [Ping timeout: 240 seconds]
vitd has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang477> Hello all! I've got some trouble with using rescue to catch ssh errors (timeouts, refused connections, etc.) I'm following the syntax I found online, but the script still kicks back an error and exits instead of catching the exception and executing "next". Here is the code and at the bottom is the error. Any help would be greatly appreciated. Thank you.
<ruby[bot]> ruby-lang477: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/28202f38a7d334f9052817106f114f99
<ruby[bot]> ruby-lang477: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ljarvis> ruby[bot]: next is for loops
<ljarvis> ugh
<ljarvis> ruby-lang477: next is for loops
i5um41ru has quit [Quit: i5um41ru]
<ljarvis> if you want to ignore them, just rescue and dont add anything else
<ruby-lang477> what I need to do is that if an ssh exception is caught, I need to 'next' to the following iteration of the loop. Is this doable?
johnmccabe has joined #ruby
<ljarvis> ah you're actually in a loop it's just not in your code?
<ruby-lang477> yes, sorry about that
<ljarvis> can you add the full code to the gist please?
<ruby-lang477> yes
<ljarvis> and the error ideally
nonnatus has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> oh that's there already nvm
knamehost has joined #ruby
xall has joined #ruby
svankmajer has joined #ruby
Azure has joined #ruby
bascht has joined #ruby
<ljarvis> ah much better
M-shine has joined #ruby
M-mistake has joined #ruby
M-manveru has joined #ruby
cpfeilschifter[m has joined #ruby
<ljarvis> ruby-lang477: i would move the exception classes into an array like this: https://gist.github.com/leejarvis/f866c0e07c8998c5a6596d643b924255
<ruby-lang477> Timeout::Error is not connection timeout?
<ljarvis> but, it's raising Net::SSH::ConnectionTimeout, so you need to add that to your rescue list
BlueDragons has joined #ruby
<ljarvis> nope I'm afraid not
fladson[m] has joined #ruby
pwnd_nsfw has quit [Read error: Network is unreachable]
<ljarvis> it's different
<ljarvis> I don't suspect your code would raise a Timeout::Error so you can probably remove that
pwnd_nsfw has joined #ruby
<ruby-lang477> so Timeout::Error is an exception that triggers if the command run via ssh timeouts, not if the ssh connection itself times out?
<ljarvis> I'm not sure I haven't used Net::SSH, but that could be the case yeah
<ljarvis> if you want to be sure, you can cover them both
<ljarvis> the docs might say
GodFather has quit [Ping timeout: 268 seconds]
<ruby-lang477> ok, one more question please: what syntax would I use when adding it to the exception array?
<ljarvis> just add a new entry to the list in the code? or do you mean dynamically?
xall has quit [Ping timeout: 260 seconds]
<ruby-lang477> Net::SSH::ConnectionTimeout?
<ruby-lang477> ok, thank you very much ljarvis
<ljarvis> yep
banisterfiend has joined #ruby
aufi has quit [Quit: Leaving]
CloCkWeRX has quit [Quit: Leaving.]
bsrd has quit [Quit: WeeChat 1.6]
Torrone has quit [Quit: This computer has gone to sleep]
[Butch] has joined #ruby
cschneid_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
LBRapid has quit [Ping timeout: 240 seconds]
tonini has quit [Quit: Connection closed for inactivity]
jmignault has joined #ruby
jsrn_ has quit [Read error: Connection reset by peer]
patarr has joined #ruby
[Butch] has quit [Client Quit]
[Butch] has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Ping timeout: 250 seconds]
xall has joined #ruby
UserJosh has quit [Quit: Leaving]
LBRapid has joined #ruby
tylersmith has joined #ruby
vitd has joined #ruby
<LyndsySimon> I've got some code that is shared between several codebases at work, and I'd like to centralize it somehow. How is that typically done in the Ruby community?
synthroid has joined #ruby
<LyndsySimon> I could write a gem for it, but am unsure how to host it privately or whether or not that's the right approach.
wldcordeiro has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
theshitisay has joined #ruby
theshitisay has quit [Remote host closed the connection]
<darix> LyndsySimon: private gem server
<darix> LyndsySimon: it isnt rocket science to run that
vitd has quit [Ping timeout: 268 seconds]
<LyndsySimon> darix: Fair enough, and I'm sure I can Google up how to set it up - but is that effort justified for the benefit if I've only got a single gem at the moment I want to distribute?
agent_white has joined #ruby
<darix> LyndsySimon: i hope you just see it as a starting point to refactor out code into gems so you can share it more easily
Torrone has joined #ruby
<darix> ^^
<dminuoso> LyndsySimon, here we simply use git.
djellemah has quit [Ping timeout: 260 seconds]
teotwaki has quit [Ping timeout: 240 seconds]
<ljarvis> we use git too, pointing a Gemfile to a private git repo
<dminuoso> LyndsySimon, commit releases into a release branch and then have Bundler point at it.
<LyndsySimon> darix: Again, fair. I'm definitely trying to think longer-term here, but I don't anticipate that we'll have a ton of private gems floating around, ever. Maybe I'm wrong on that.
xall has quit [Ping timeout: 250 seconds]
<ljarvis> no way i'm ever hosting a gem server
<dminuoso> ^-
<LyndsySimon> ljarvis: that's the way I've done similar things in the past, with Python.
<dminuoso> I mean if we were a company with a hundred ruby devs, sure - own gem server might be a thing.
BlueDragons has quit [Quit: Leaving]
<LyndsySimon> It's possible of course to run a private PyPI server, but generally speaking the juice isn't worth the squeeze.
BlueDragons has joined #ruby
<dminuoso> LyndsySimon, exactly. And since you are likely to have git anyway, you get this for free - together with tight access control through ssh keys.
BlueDragons has quit [Client Quit]
<LyndsySimon> There's less than a dozen of us, and we probably won't cross twenty for a year or more.
BlueDragons has joined #ruby
teotwaki has joined #ruby
tdy1 is now known as tdy
tenderlove has quit []
nettoweb has joined #ruby
alibby1 has joined #ruby
alibby has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
bmurt has joined #ruby
knamehost has quit [Ping timeout: 240 seconds]
craigp_ has quit [Ping timeout: 240 seconds]
fivmo has joined #ruby
claudiuinberlin has quit []
elhu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
svankmajer has quit [Ping timeout: 268 seconds]
kobain has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<agent_white> Mornin' folks
nankyokusei has joined #ruby
xall has joined #ruby
marxarelli has joined #ruby
amclain has quit [Quit: Leaving]
nitric has joined #ruby
destructure has quit [Changing host]
destructure has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
potatope has joined #ruby
raeoks has joined #ruby
nettoweb1 has joined #ruby
alibby has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
Filiphe has quit [Remote host closed the connection]
alibby1 has quit [Ping timeout: 260 seconds]
flyingX has quit []
mikecmpbll has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
potatope has quit [Client Quit]
potatope has joined #ruby
potatope has quit [Read error: Connection reset by peer]
Torkable has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
svankmajer has joined #ruby
Torkable is now known as Guest55420
xall has quit [Ping timeout: 240 seconds]
Guest55420 has left #ruby [#ruby]
Pumukel has quit [Ping timeout: 260 seconds]
potatope has joined #ruby
GodFather has joined #ruby
bsrd has joined #ruby
twalla has quit [Ping timeout: 248 seconds]
Beams has quit [Quit: .]
rakm has joined #ruby
svankmajer has quit [Ping timeout: 260 seconds]
patarr has quit [Quit: patarr]
jcao219 has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax is now known as saneax-_-|AFK
Ishido has joined #ruby
feelx- is now known as feelx
f4cl3y has quit [Ping timeout: 240 seconds]
twalla has joined #ruby
thoolihan has quit [Quit: ZNC 1.6.3 - http://znc.in]
patarr has joined #ruby
nikivi has joined #ruby
svankmajer has joined #ruby
jaruga has quit [Quit: jaruga]
yqt has joined #ruby
twalla has quit [Ping timeout: 240 seconds]
nitric has quit [Quit: quit]
nitric has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dminuoso_ has joined #ruby
elifoster has joined #ruby
twalla has joined #ruby
pawnbox has quit [Remote host closed the connection]
djellemah has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
svankmajer has quit [Quit: Lost terminal]
elhu has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
elhu has quit [Client Quit]
nopolitica has joined #ruby
pawnbox has joined #ruby
twalla has joined #ruby
Humdai has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
nettoweb has quit [Client Quit]
DarkUnicorn has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
DarkUnicorn has joined #ruby
pawnbox has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
BlueDragons has quit [Quit: Leaving]
twalla has quit [Ping timeout: 265 seconds]
davidmichaelkarr has quit [Ping timeout: 260 seconds]
davidmichaelkarr has joined #ruby
acovrig has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
rcvalle has joined #ruby
<acovrig> in sequel, is there a find_or_create_by equivalent? or do I have to select, insert, select?
firstdayonthejob has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
Expanse has quit [Ping timeout: 258 seconds]
catphish has quit [Quit: Leaving]
jwheare has quit [Ping timeout: 258 seconds]
zidane_g has quit [Ping timeout: 260 seconds]
redpants has quit [Ping timeout: 268 seconds]
nofxx has joined #ruby
Expanse has joined #ruby
Azure has joined #ruby
jaequery has joined #ruby
jwheare has joined #ruby
mikecmpbll has joined #ruby
johnmccabe has joined #ruby
_djbkd has joined #ruby
cdg has quit [Remote host closed the connection]
crdpink has joined #ruby
User458764 has joined #ruby
claudiuinberlin has joined #ruby
pokalyis has joined #ruby
habitullence has quit [Quit: habitullence]
xall has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Quit: patarr]
iamvery has quit [Ping timeout: 248 seconds]
patarr has joined #ruby
barajasfab has joined #ruby
cdg has joined #ruby
twalla has joined #ruby
zidane_g has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
jahmalz has quit [Quit: Leaving]
ramfjord has joined #ruby
User458764 has quit [Remote host closed the connection]
patarr has quit [Client Quit]
User458764 has joined #ruby
zidane_g has quit [Read error: Connection reset by peer]
polyidus has joined #ruby
kspencer has joined #ruby
iamvery has joined #ruby
zidane_g has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
craigp_ has joined #ruby
iamvery has joined #ruby
iamvery_ has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
twalla has quit [Ping timeout: 268 seconds]
platzhirsch has joined #ruby
eliotk[m] has joined #ruby
iamvery_ has quit [Read error: Connection reset by peer]
iamvery has joined #ruby
iamvery_ has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 248 seconds]
iamvery has joined #ruby
iamvery_ has quit [Read error: Connection reset by peer]
djellemah has quit [Ping timeout: 250 seconds]
iamvery has quit [Read error: Connection reset by peer]
iamvery has joined #ruby
<adaedra> Hello
iamvery has quit [Remote host closed the connection]
User458764 has quit [Remote host closed the connection]
<manveru> World!
Azure has joined #ruby
iamvery has joined #ruby
tfitts has quit [Read error: Connection reset by peer]
meinside has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 268 seconds]
meinside has joined #ruby
tfitts has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
iamvery has quit [Read error: Connection reset by peer]
nonnatus has joined #ruby
raeoks has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
redpants has joined #ruby
<adaedra> Meh, world's too big, I'll keep my hello for this channel for now.
iamvery has joined #ruby
elhu has joined #ruby
thoolihan has joined #ruby
ptulskie has joined #ruby
al2o3-cr has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.6]
sergio_101 has joined #ruby
lacour has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
twalla has joined #ruby
danostrowski has joined #ruby
Rodya_ has joined #ruby
seventy has joined #ruby
firstdayonthejob has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
sneakers has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
SCHAAP137 has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
lacour has quit [Quit: Leaving]
twalla has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 260 seconds]
Xentil has quit [Read error: Connection reset by peer]
kspencer has quit [Quit: WeeChat 1.6-dev]
terlar has joined #ruby
Xentil has joined #ruby
kspencer has joined #ruby
kspencer has quit [Changing host]
kspencer has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
djellemah has joined #ruby
twalla has joined #ruby
coolboy has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
symm- has joined #ruby
jackjackdripper has joined #ruby
pawnbox has joined #ruby
skweek has joined #ruby
al2o3-cr has quit [Ping timeout: 268 seconds]
Xentil has quit [Ping timeout: 250 seconds]
twalla has quit [Ping timeout: 250 seconds]
bocaneri has quit [Read error: Connection reset by peer]
johnmccabe has quit [Read error: Connection reset by peer]
johnmccabe has joined #ruby
a1fa has quit [Remote host closed the connection]
a1fa has joined #ruby
ramfjord has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
santhu has joined #ruby
<santhu> Is the openssl standard library being moved to a gem in ruby 2.3 https://github.com/ruby/openssl? Does anyone know why?
Derperperd has joined #ruby
Jackneill has joined #ruby
nankyokusei has joined #ruby
elhu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fivmo has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> santhu: Ruby 2.3 is already out so it won't have any more features. It isn't a gem in 2.4.0-preview2 though either.
nadir has joined #ruby
<santhu> havenhood: Oh. What is this repo https://github.com/ruby/openssl for then?
phredus has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
bascht has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
ptulskie has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 250 seconds]
phredus has joined #ruby
teotwaki has quit [Ping timeout: 240 seconds]
bascht has joined #ruby
twalla has joined #ruby
yeticry has quit [Quit: leaving]
yfeldblum has quit [Quit: Leaving...]
teotwaki has joined #ruby
iamvery has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
davidt has quit [Ping timeout: 260 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elhu has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
lizard2010 has joined #ruby
mvxlr has joined #ruby
ace05_ has quit [Ping timeout: 248 seconds]
ace05 has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidt has joined #ruby
craigp_ has quit [Ping timeout: 265 seconds]
<sonOfRa> santhu: afaik at some point openssl will be removed from MRI, and moved to the gem.
nonnatus has joined #ruby
<sonOfRa> The point is not having to release a new version of ruby to fix a security error in the openssl wrapper
mikecmpbll has quit [Quit: inabit. zz.]
eizua has quit [Quit: Leaving]
Pumukel has joined #ruby
<santhu> sonOfRa: Thanks!
KnownSyntax has quit [Ping timeout: 250 seconds]
mtkd has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
mtkd has joined #ruby
ocbtec has quit [Ping timeout: 268 seconds]
coolboy has joined #ruby
loechel has joined #ruby
ptulskie has joined #ruby
craigp_ has joined #ruby
mwlang has quit [Ping timeout: 240 seconds]
santhu has quit [Quit: Page closed]
Pumukel has quit [Ping timeout: 240 seconds]
loechel is now known as Pumukel
wugy has quit [Read error: Connection reset by peer]
elenatanasoiu has joined #ruby
yeticry has joined #ruby
symm- has quit [Quit: Leaving...]
ocbtec has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
coolboy has quit [Ping timeout: 248 seconds]
teotwaki has quit [Ping timeout: 240 seconds]
beawesomeinstead has quit [Read error: Connection reset by peer]
teotwaki has joined #ruby
nadir has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 248 seconds]
johnmccabe has joined #ruby
ramortegui has joined #ruby
beawesomeinstead has joined #ruby
ziarkaen has joined #ruby
SCHAAP137 has joined #ruby
f0rpaxe has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
nadir has joined #ruby
johnmccabe has quit [Client Quit]
f0rpaxe has joined #ruby
johnmccabe has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
bsrd has quit [Quit: WeeChat 1.6]
loechel has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
redpants has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
polyidus has quit [Quit: ZZZzzz…]
Pumukel has quit [Ping timeout: 240 seconds]
loechel is now known as Pumukel
ace05_ has joined #ruby
polyidus has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
ace05 has quit [Ping timeout: 260 seconds]
arashb has joined #ruby
vuoto has quit [Remote host closed the connection]
elenatanasoiu has quit [Ping timeout: 240 seconds]
ptulskie has quit [Quit: Linkinus - http://linkinus.com]
TomyLobo2 has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
LBRapid has joined #ruby
mikecmpbll has joined #ruby
_rubik has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
patarr has quit [Quit: patarr]
polyidus has quit [Quit: Gone]
mikecmpbll has quit [Quit: inabit. zz.]
Cyrus has joined #ruby
Xentil has joined #ruby
iamvery has joined #ruby
Aquazi has quit [Quit: Leaving]
iamvery has quit [Read error: Connection reset by peer]
yqt has joined #ruby
iamvery has joined #ruby
AnarchyAo has joined #ruby
mikecmpbll has joined #ruby
barajasfab has quit [Quit: Ex-Chat]
GodFather has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
en0x has joined #ruby
<en0x> hi
<havenwood> en0x: hi
magellanicloud has joined #ruby
<en0x> i'm lookin for some help. i have something like this: http://wklej.org/hash/2f073755b4e/ how can i achive the same each loop without specifying alpha beta in the array?
KnownSyntax has quit [Ping timeout: 240 seconds]
<havenwood> en0x: settings.keys
skweek has joined #ruby
patarr has joined #ruby
<apeiros> or settings.each do |service_name, service_data| …
<apeiros> where service_data will contain the data you get via settings[service_name.to_sym]
TomyLobo has joined #ruby
patarr has quit [Client Quit]
jackjackdripper has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<en0x> cool thanks havenwood and apeiros
_djbkd has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
_djbkd has joined #ruby
patarr has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
pokalyis_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
johnmilton has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 260 seconds]
znz_jp has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
User458764 has joined #ruby
Torrone has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
f4cl3y has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Ping timeout: 265 seconds]
cibs has joined #ruby
djellemah has quit [Ping timeout: 268 seconds]
znz_jp has joined #ruby
nonnatus has joined #ruby
SeepingN has joined #ruby
pawnbox has quit [Remote host closed the connection]
platzhirsch has joined #ruby
loechel has joined #ruby
chouhoul_ has joined #ruby
loechel has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 248 seconds]
loechel has joined #ruby
chouhou__ has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
Giordano has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
conta has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
kitikonti has joined #ruby
chouhoul_ has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
dminuoso_ has joined #ruby
patarr has quit [Quit: patarr]
Derperperd has quit [Quit: Derperperd]
elhu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Madplatypus has joined #ruby
elhu has joined #ruby
rippa has quit [Ping timeout: 265 seconds]
_djbkd has joined #ruby
sirfichi has joined #ruby
nopolitica has quit [Quit: leaving]
hutch34 has quit [Quit: WeeChat 1.5]
<sirfichi> hey folks. I have a problem after updating some packages of my server. i think the problem is that pessanger (or something other) whants /var/lib/gems/2.1.0/$FOO, but the ruby version is 2.2 and the packages are in /var/lib/gems/2.2.0/$FOO. Is there a quick help to solve that problem? don't know which keywords are great for google =/
pawnbox has quit [Ping timeout: 260 seconds]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
xall has joined #ruby
hutch34 has joined #ruby
ace05_ has quit [Ping timeout: 268 seconds]
djellemah has joined #ruby
Pumukel has quit [Read error: Network is unreachable]
Pumukel has joined #ruby
pokalyis has joined #ruby
ramfjord has joined #ruby
pawnbox has joined #ruby
<sonOfRa> I'm writing a native extension, and I'm currently adding a class that shouldn't be constructible by the user of the library (it can be returned by function calls to the library, and it can be passed into the library). What's the best way to achieve this? Just make initialize a private method?
pokalyis_ has quit [Ping timeout: 248 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
patarr has joined #ruby
<dminuoso> sonOfRa, don't define new/alloc
claudiuinberlin has quit [Remote host closed the connection]
<dminuoso> sonOfRa, or at least dont define these funcs for Ruby so that you can still construct it internally.
nankyokusei has joined #ruby
Giordano has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bjensen82 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
claudiuinberlin has joined #ruby
jhack has joined #ruby
workmad3 has joined #ruby
navycrosser has joined #ruby
<bjensen82> Hi guys, I have a simple example array = [1,7,4,9,33]; and I would like to make a oneliner to put them into the variables odd and even. I was kinda hoping that #group_by would work but it assigns everything into odd if I do odd, even = array.group_by{|d| d.odd?}
<havenwood> bjensen82: check out #partition
<manveru> >> [2,45,6,74,487,9,4].partition(&:odd?)
<ruby[bot]> manveru: # => [[45, 487, 9], [2, 6, 74, 4]] (https://eval.in/659665)
<bjensen82> Yay. Thanks! havenwood
Dimik has joined #ruby
mwlang has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<sonOfRa> dminuoso: is the alloc function not needed to assign the object to something else, or does that simply create another reference to the existing object?
<dminuoso> sonOfRa, allocate merely returns an uninitialized object effectively
bjensen82 has quit []
pawnbox has joined #ruby
jenrzzz has joined #ruby
elhu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<sonOfRa> Right. And do objects in general NEED an initialize method (even if it's private), or is it safe to not export that at all?
blackgoat has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ta_ has joined #ruby
chrisja has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
ace05 has quit [Ping timeout: 240 seconds]
ace05 has joined #ruby
xall has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 248 seconds]
vuoto has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
claudiuinberlin has quit []
igniting has quit [Ping timeout: 248 seconds]
wrkrcoop has joined #ruby
airstream66 has joined #ruby
<wrkrcoop> you know how ppl are always having problems with timezones … if you just use the unix timestamp does that solve most problems?
<wrkrcoop> i feel like no matter what timezone the unix timestamp will always be the same
<dminuoso> sonOfRa, why make it private.
<dminuoso> sonOfRa, just dont expose it to Ruby at all.
<dminuoso> sonOfRa, remember, you dont need to make it a Ruby method to be usable from C.
<dminuoso> sonOfRa, making it private invites people to be smart and use .send()
pawnbox has quit [Ping timeout: 240 seconds]
<sonOfRa> dminuoso: If that is OK, I'll do that, I was just wondering if ruby is "OK" with having classes without any constructor
<dminuoso> sonOfRa, sure.
<dminuoso> sonOfRa, Module is such a class.
Zamyatin has joined #ruby
<dminuoso> Not not constructible.
<sonOfRa> alrighty, no constructor it is. Thank you
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
f4cl3y has quit [Remote host closed the connection]
<dminuoso> wrkrcoop, unix timestamps have that issue wrt leap seconds
<wrkrcoop> wrt?
smlocal has joined #ruby
<dminuoso> So if you don't need your timestamps to be monotone, then yeah - unix timestamps are great.
<dminuoso> *monotonic
airstream66 has quit [Remote host closed the connection]
Platini has quit [Ping timeout: 250 seconds]
seventy has quit [Ping timeout: 260 seconds]
<dminuoso> wrkrcoop, also if you are in need of storing timestamps before 1970 or after 2038 - the unix timestamp are problematic.
<dminuoso> They are definitely good, but with their own problems.
<wrkrcoop> thanks dminuoso
symm- has joined #ruby
symm- has quit [Client Quit]
Platini has joined #ruby
<sirfichi> hey folks. I have a problem after updating some packages of my server. i think the problem is that pessanger (or something other) whants /var/lib/gems/2.1.0/$FOO, but the ruby version is 2.2 and the packages are in /var/lib/gems/2.2.0/$FOO. Is there a quick help to solve that problem? don't know which keywords are great for google =/
<dminuoso> sirfichi, edit your apache config, and point passenger to the correct location.
<sirfichi> dminuoso: thx
<miah> might need to rebuild passenger too
<miah> reasons to never use the system ruby
<dminuoso> sirfichi, (or nginx of course, depending on which you are using)
tomphp has joined #ruby
synthroid has quit []
tomphp has quit [Client Quit]
Torrone has quit [Quit: This computer has gone to sleep]
Azure has quit [Ping timeout: 248 seconds]
Mia has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
nonnatus has joined #ruby
Bounga has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
chadwtay_ has joined #ruby
symm- has joined #ruby
coolboy has joined #ruby
tcrypt[away] is now known as tcrypt
gizmore has joined #ruby
_whitelogger_ has joined #ruby
teotwaki_ has joined #ruby
tylersmi- has joined #ruby
LBRapid_ has joined #ruby
coolboy has quit [*.net *.split]
chadwtay_ has quit [*.net *.split]
blackgoat has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
Pumukel has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
sirfichi has quit [*.net *.split]
platzhirsch has quit [*.net *.split]
chouhou__ has quit [*.net *.split]
znz_jp has quit [*.net *.split]
tylersmith has quit [*.net *.split]
magellanicloud has quit [*.net *.split]
LBRapid has quit [*.net *.split]
arashb has quit [*.net *.split]
teotwaki has quit [*.net *.split]
craigp_ has quit [*.net *.split]
mtkd has quit [*.net *.split]
phredus has quit [*.net *.split]
bascht has quit [*.net *.split]
eliotk[m] has quit [*.net *.split]
meinside has quit [*.net *.split]
zidane_g has quit [*.net *.split]
alibby has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
fladson[m] has quit [*.net *.split]
cpfeilschifter[m has quit [*.net *.split]
M-manveru has quit [*.net *.split]
M-shine has quit [*.net *.split]
M-mistake has quit [*.net *.split]
harai_ has quit [*.net *.split]
alem0lars has quit [*.net *.split]
RTFM[away] has quit [*.net *.split]
sepp2k has quit [*.net *.split]
epochwolf has quit [*.net *.split]
Guest95198 has quit [*.net *.split]
oblique has quit [*.net *.split]
jxf has quit [*.net *.split]
Lyubo1 has quit [*.net *.split]
AndrewIsHere has quit [*.net *.split]
arooni has quit [*.net *.split]
ghostlight has quit [*.net *.split]
JackMc has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
blackjid has quit [*.net *.split]
iooner has quit [*.net *.split]
snapcase has quit [*.net *.split]
Scient has quit [*.net *.split]
sheepman has quit [*.net *.split]
kent\n has quit [*.net *.split]
A124 has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
twodayslate has quit [*.net *.split]
jlyndon has quit [*.net *.split]
rann has quit [*.net *.split]
tpendragon has quit [*.net *.split]
shiver has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
cschneid- has quit [*.net *.split]
Seich_ has quit [*.net *.split]
teotwaki_ is now known as teotwaki
Pumukel_ is now known as Pumukel
epochwolf|2 is now known as epochwolf
LBRapid_ is now known as LBRapid
<al2o3-cr> dave101: line 30 include? is spelt wrong
tessi_zz has joined #ruby
fladson[m] has joined #ruby
<dave101> al2o3-cr: ffs thanks
wrkrcoop has quit [Quit: wrkrcoop]
ddddddd has joined #ruby
eliotk[m] has joined #ruby
mistergibson_ has joined #ruby
<al2o3-cr> np :)
iooner has joined #ruby
ocbtec_ has joined #ruby
RTFM[away] has joined #ruby
sirfichi has joined #ruby
<dave101> al2o3-cr: become blind to things if you stare at them for too long ...
Oclair has quit [Ping timeout: 265 seconds]
ocbtec has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Ping timeout: 265 seconds]
sheepman_ has quit [Ping timeout: 265 seconds]
Zamyatin has quit [Ping timeout: 265 seconds]
ddffg has quit [Ping timeout: 265 seconds]
mistergibson has quit [Ping timeout: 265 seconds]
SCHAAP137 has quit [Ping timeout: 265 seconds]
hammond has quit [Ping timeout: 265 seconds]
cschneid_ has quit [Ping timeout: 265 seconds]
wrkrcoop has joined #ruby
harai_ has joined #ruby
SCHAAP137 has joined #ruby
bascht has joined #ruby
twodayslate has joined #ruby
bigkevmcd has quit [Ping timeout: 265 seconds]
JoshL has quit [Ping timeout: 265 seconds]
arooni_team_b is now known as arooni
hammond has joined #ruby
jxf_ is now known as jxf
sheepman has joined #ruby
alem0lar- has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
KnownSyntax has quit [Ping timeout: 265 seconds]
iamvery has quit [Ping timeout: 265 seconds]
terlar has quit [Ping timeout: 250 seconds]
iamvery has joined #ruby
zidane_g_ has quit [Ping timeout: 260 seconds]
<al2o3-cr> dave101: yep
AndrewIs_ has joined #ruby
rann has joined #ruby
bigkevmcd has joined #ruby
Dimik has joined #ruby
AndrewIs_ has quit [*.net *.split]
alem0lar- has quit [*.net *.split]
Cork has quit [*.net *.split]
adaedra has quit [*.net *.split]
sysanthrope has quit [*.net *.split]
ElderFain has quit [*.net *.split]
adambeynon has quit [*.net *.split]
skmp has quit [*.net *.split]
halfdan has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
ujjain has quit [*.net *.split]
atmosx has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
Fernando-Basso has quit [*.net *.split]
raz has quit [*.net *.split]
majoh has quit [*.net *.split]
nebben has quit [*.net *.split]
ghr has quit [*.net *.split]
saneax-_-|AFK has quit [*.net *.split]
mjc_ has quit [*.net *.split]
joaomdmoura__ has quit [*.net *.split]
darthvorik has quit [*.net *.split]
zipkid has quit [*.net *.split]
podman has quit [*.net *.split]
Yonk has quit [*.net *.split]
poikon has quit [*.net *.split]
jidar has quit [*.net *.split]
blingrang has quit [*.net *.split]
sysanthrope has joined #ruby
JoshL has joined #ruby
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
spectra has joined #ruby
blingrang has joined #ruby
M-manveru has joined #ruby
cdg has quit [*.net *.split]
duncannz has quit [*.net *.split]
blackmesa has quit [*.net *.split]
potatope has quit [*.net *.split]
rakm has quit [*.net *.split]
ixti has quit [*.net *.split]
oblique has joined #ruby
techntoke_ has quit [Read error: Connection reset by peer]
zero7 has quit [Ping timeout: 260 seconds]
M-shine has joined #ruby
wldcordeiro has joined #ruby
cpfeilschifter[m has joined #ruby
meinside has joined #ruby
deimos has quit [Ping timeout: 260 seconds]
Eleeleth has quit [Ping timeout: 260 seconds]
nyuszika7h has joined #ruby
zidane_g_ has joined #ruby
zero7 has joined #ruby
craigp has joined #ruby
M-mistake has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
epistrephein has quit [Ping timeout: 260 seconds]
Cork has joined #ruby
jlyndon has joined #ruby
majoh has joined #ruby
atmosx has joined #ruby
Tharbakim has joined #ruby
skmp has joined #ruby
raz has joined #ruby
adaedra has joined #ruby
halfdan has joined #ruby
nebben has joined #ruby
Fernando-Basso has joined #ruby
alem0lar- has joined #ruby
adambeynon has joined #ruby
ElderFain has joined #ruby
AndrewIs_ has joined #ruby
ghr has joined #ruby
mjc_ has joined #ruby
saneax-_-|AFK has joined #ruby
podman has joined #ruby
zipkid has joined #ruby
joaomdmoura__ has joined #ruby
darthvorik has joined #ruby
Yonk has joined #ruby
jidar has joined #ruby
poikon has joined #ruby
elifoster has quit [Quit: class]
Eleeleth has joined #ruby
ramblinpeck has joined #ruby
techntoke_ has joined #ruby
ramblinpeck has joined #ruby
deimos has joined #ruby
ramblinpeck has quit [Changing host]
techntoke_ has joined #ruby
techntoke_ has quit [Changing host]
tomaw is now known as 02HAAAAAB
Guest68051 is now known as olspookishmagus
epistrephein has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
tpendragon has joined #ruby
blackjid has joined #ruby
jlyndon has quit [Max SendQ exceeded]
nettoweb has joined #ruby
pwnd_nsfw` has joined #ruby
Bounga has quit [Ping timeout: 260 seconds]
02HAAAAAB is now known as tomaw
petervo has quit [Read error: Connection reset by peer]
dminuoso_ has quit [Ping timeout: 260 seconds]
navycrosser has quit [Ping timeout: 250 seconds]
jlyndon has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
ramortegui has quit [Quit: Ex-Chat]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
snapcase has joined #ruby
JackMc has joined #ruby
Xeago has joined #ruby
chadwtay_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
chadwtaylor has quit [Read error: Connection reset by peer]
chadwta__ has quit [Read error: No route to host]
chadwtaylor has joined #ruby
ace05 has joined #ruby
Jackneill has quit [Remote host closed the connection]
ghostlight_ is now known as ghostlight
djellemah has quit [Ping timeout: 248 seconds]
MadWasp has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
Wizznt has joined #ruby
ddddddd has quit [Quit: Leaving]
chadwtay_ has quit [Ping timeout: 258 seconds]
chadwtay_ has joined #ruby
chadwta__ has joined #ruby
chadwtaylor has quit [Read error: No route to host]
MadWasp has joined #ruby
mistergibson_ has quit [Quit: Leaving]
<dave101> I have used %w(a A b B).include? could you do %i(1 2 3 4 5 6 7 8 9 10).include? in the same fashin?
<dave101> instead of saying letters im saying numbers..
[Butch] has quit [Quit: I'm out . . .]
<ytti> %i isn't numbers, it's symbols
<dave101> right, so how do i say 'if 1 or 2'.include?
<ytti> [1,2,3].include? 2
<al2o3-cr> dave101: you could do (1..10).include?(5)
chadwtay_ has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
bmurt has quit [Client Quit]
<dave101> thanks
ta_ has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 268 seconds]
teclator has joined #ruby
jcao219 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
alibby1 has quit [Quit: Leaving.]
arashb_ has quit [Ping timeout: 260 seconds]
kitallis has quit [Ping timeout: 260 seconds]
kitallis has joined #ruby
quadgrande has joined #ruby
quadgrande has left #ruby [#ruby]
quadgrande has joined #ruby
quadgrande has quit [Client Quit]
twalla has quit [Ping timeout: 250 seconds]
elenatanasoiu has joined #ruby
alibby has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
mwlang has quit [Read error: No route to host]
nonnatus has joined #ruby
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mwlang has joined #ruby
xall has joined #ruby
mrBen2k2k2k has quit [Remote host closed the connection]
minimalism has joined #ruby
mrBen2k2k2k has joined #ruby
tvw has joined #ruby
<dave101> One more question.. How do i restart a loop from the start of the loop?
acovrig has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 250 seconds]
CamonZ has joined #ruby
johnmilton has joined #ruby
<dave101> probably havent explained that very well... Please see here - https://paste.ee/p/uO8M2
<dave101> i used 'redo' but this doesnt give the desired affect
ziarkaen has joined #ruby
<eam> dave101: "next" will return to the next iteration of the loop
<dave101> i can break out of the loop but htat exits the code. I want to ask it not hese options then start all over again
twalla has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<eam> dave101: you might consider putting this logic in a method, something like get_choice()
<eam> then you can just call get_choice()
<dave101> havent learnt that yet
<eam> no problem!
<dave101> :-)
<dave101> just trying imple things :-)
<dave101> simple*
<eam> yeah, absolutely. "next" is what you want
<eam> think "next time around the loop please"
ocbtec_ has quit [Quit: leaving]
<dave101> i remeber in BASIC you would use goto and name every line with a number ... but that was a long time ago qbasic anyone?
<eam> oh sure
<dave101> i put 'next' after the puts command but all ig et is the "sorry your entry wasnt excepted" scrolling down the screen forever
wrkrcoop has quit [Quit: wrkrcoop]
hutch34 has quit [Quit: WeeChat 1.5]
<eam> oh, you will want to put your reading of input inside your loop
<dave101> i want the puts command to only come up once then wait for either inputs of 1 or 2
<eam> sure, you don't need to move the puts stuff
<eam> but you do want to read input each time through the loop, right?
<dave101> yes
<dave101> ah i see what you mean.
<dave101> i have "entry = gets.chomp" outside the loop which is what the issue is right?
alibby has quit [Quit: Leaving.]
<eam> yes. you're reading the input once, then testing the exact same input each time through the loop (so, the answer never is changed)
twalla has quit [Ping timeout: 252 seconds]
<dave101> great thanks for the help that solved the issue
<eam> no prob!
<dave101> where can find out about the %w %i parts of .include? i cant find a refernce on line anywhere. i'm sure there lots of differnt options here
neminis has joined #ruby
<elomatreb> dave101: You mean #include? on arrays created like %w(word another word)?
<dave101> comething like "if %w(A a).inlcude?(name)"
<dave101> comething like "if %w(A a).include?(name)"
<dave101> puts #{name}
<dave101> yeah
<elomatreb> It's just a fancy syntax for ["A", "a"] (%x) and [:A, :a] (%i)
<elomatreb> They create completely regular arrays
<sonOfRa> dminuoso: just to make sure again: so this should work in general for an inconstructible class? https://gist.github.com/sonOfRa/e502be73eac676ee6b216e8f4fedd815
<agent_white> dave101: They're called 'literals'. https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals
<dave101> ok thanks all for your help. appreciate it.
chadwta__ has quit [Remote host closed the connection]
agent_white has quit [Quit: homebound]
ghostlight has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
ziarkaen has quit [Ping timeout: 248 seconds]
fredolinhares has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
nikivi has quit [Quit: irc]
Derperperd has joined #ruby
dave101 has quit [Ping timeout: 260 seconds]
ghostlight has joined #ruby
nankyokusei has joined #ruby
tvw has quit [Remote host closed the connection]
elenatanasoiu has quit [Ping timeout: 268 seconds]
tmtwd has joined #ruby
alibby has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
biberu has quit []
Bellthoven has joined #ruby
mwlang has quit [Quit: mwlang]
SCHAAP137 has quit [Quit: Leaving]
LoneHe___ has quit [Remote host closed the connection]
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
LoneHerm_ has joined #ruby
jackjackdripper has joined #ruby
neminis has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
zukin has joined #ruby
LoneHerm_ has quit [Ping timeout: 258 seconds]
fredolinhares has quit [Quit: WeeChat 1.5]
nettoweb has quit [Ping timeout: 268 seconds]
A124 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
symm-_ has joined #ruby
nettoweb has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
<sirfichi> dminuoso: thx. It was the PassengerDefaultRuby variable in /etc/apache2/mods-enabled/passenger.conf
tyang_ has joined #ruby
<sirfichi> bye
sirfichi has left #ruby [#ruby]
symm-_ has quit [Client Quit]
banisterfiend has joined #ruby
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
tyang has quit [Ping timeout: 248 seconds]
malconis has joined #ruby
malconis_ has quit [Ping timeout: 260 seconds]
wrkrcoop has joined #ruby
<banisterfiend> can anyone here speak chinese?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
saneax-_-|AFK is now known as saneax
Immune has joined #ruby
lacuna has joined #ruby
duncannz has joined #ruby
ixti has joined #ruby
potatope has joined #ruby
rakm has joined #ruby
cdg has joined #ruby
blackmesa has joined #ruby
<lacuna> hi- I studied a year or two, is it something basic or more complicated?
tyang__ has joined #ruby
ziarkaen has joined #ruby
twalla has joined #ruby
jaykilleen has joined #ruby
shinnya has joined #ruby
tyang_ has quit [Ping timeout: 258 seconds]
chadwtaylor has joined #ruby
tyang__ has quit [Ping timeout: 258 seconds]
symm- has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
chadwtay_ has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb1 has joined #ruby
nowhereman has joined #ruby
chadwtaylor has quit [Ping timeout: 252 seconds]
twalla has joined #ruby
duncannz has quit [*.net *.split]
cdg has quit [*.net *.split]
rakm has quit [*.net *.split]
potatope has quit [*.net *.split]
ixti has quit [*.net *.split]
shinnya has joined #ruby
nettoweb has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
charliesome has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
firstdayonthejob has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 248 seconds]
teclator has quit [Quit: No Ping reply in 180 seconds.]
chrisja has quit [Quit: leaving]
Azure has joined #ruby
last_staff has quit [Quit: last_staff]
teclator has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
nettoweb1 has quit [Ping timeout: 248 seconds]
wldcordeiro has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
twalla has quit [Ping timeout: 260 seconds]
marens has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magellanicloud has joined #ruby
<zenspider> I'd like help with the bash side of this: https://github.com/zenspider/ri_completion
acovrig has joined #ruby
<zenspider> the ruby side is basically done... it could use some cleanup and maybe some extra expansions, but it is good enough for now. you can test it with `ri_search.rb assert_` or `ri_search.rb Benchmark::`
<zenspider> the problem is the tab completion code is wonky... I had to steal a bunch from the bash_completion package (which I stripped heavily)
alibby has quit [Quit: Leaving.]
<zenspider> and now when you complete "Benchmark::IPS." it comes back with nothing because it is stripping at the last colon (which is good) and for some reason not passing enough data to ri_search.rb (which is bad)... so it expands to nothnig
Felipe__ has joined #ruby
twalla has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nettoweb has quit [Ping timeout: 258 seconds]
troulouliou_dev has joined #ruby
alibby has joined #ruby
duncannz has joined #ruby
potatope has joined #ruby
ixti has joined #ruby
rakm has joined #ruby
cdg has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
<zenspider> filed an issue. I'd love some help: https://github.com/zenspider/ri_completion/issues/1
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
^mtkd has quit [Ping timeout: 250 seconds]
twalla has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
Silthias has joined #ruby
Felipe__ has quit [Quit: Leaving]
Silthias1 has quit [Ping timeout: 250 seconds]
zukin has quit [Ping timeout: 260 seconds]
shiver_ has quit [Quit: leaving]
shiver has joined #ruby
shiver has quit [Changing host]
shiver has joined #ruby
charliesome has joined #ruby
Bounga has joined #ruby
tyang has joined #ruby
Rodya_ has joined #ruby
acovrig has quit [Quit: acovrig]
Felipe__ has joined #ruby
magellanicloud has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
Bounga has quit [Ping timeout: 260 seconds]
zukin has joined #ruby
chadwtaylor has joined #ruby
gingray has quit [Ping timeout: 248 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
jcao219 has quit [Ping timeout: 252 seconds]
chadwtaylor has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
jbomo has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Quit: Derperperd]
jackjackdripper has quit [Quit: Leaving.]
wldcordeiro has joined #ruby
troulouliou_dev has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
danostrowski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 258 seconds]
jcao219 has joined #ruby
mistergibson has joined #ruby
Lyubo1 has joined #ruby
agit0 has quit [Ping timeout: 250 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
danman has quit [Quit: danman]
zukin has quit [Quit: bsd is going to sleep]
alibby has quit [Quit: Leaving.]
alibby has joined #ruby
Pumukel has quit [Remote host closed the connection]
Anatzum has quit [Quit: Leaving]
blackmes1 has joined #ruby
loechel has quit [Ping timeout: 250 seconds]