jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
mistermo_ has joined #ruby
<jhass> shevy: but then I'm also the only one to actually link to the actually official docs from time to time
<al2o3-cr> shevy: why'd you think docs suck?
arooni_______ has quit [Ping timeout: 250 seconds]
<shevy> al2o3-cr a mix of everything, layout, content, style
<al2o3-cr> layout, style?
<shevy> yeah
<al2o3-cr> i think it's pretty damn fine
<shevy> hmm let me find an example with devdoc
<al2o3-cr> k
<al2o3-cr> that's devdocs
<al2o3-cr> my preference is the latter
<shevy> yeah. the devdocs variant looks a lot cleaner here
hutch34 has quit [Ping timeout: 264 seconds]
<shevy> ruby-doc has here on my screen like: 30% blank, 40% content, 30% blank
<al2o3-cr> what?
diegoviola has quit [Quit: WeeChat 1.5]
mistermo_ has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Remote host closed the connection]
<shevy> I'll do screenshots
<al2o3-cr> k
gizless has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
CharlesN has quit [Ping timeout: 276 seconds]
<shevy> actually the second has a better drop-down middle list for the intralinks to the methods
<shevy> good design is hard!
<al2o3-cr> to much bloat in devdocs, that is all
Bira has joined #ruby
arooni_______ has joined #ruby
SilverKey has quit [Quit: Halted.]
<al2o3-cr> nothing in devdoc that isn't in ruby-doc
gopz has joined #ruby
whathappens has quit [Quit: Leaving...]
KensoDev has quit [Quit: Textual IRC Client: www.textualapp.com]
Beverage1 has joined #ruby
<al2o3-cr> besides the point
flashpoint9 has joined #ruby
calmchaos has quit [Remote host closed the connection]
<al2o3-cr> shevy: say i was an object, i'd like to prepend all the good and extend all the shit
KCmetro has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
Beverage has quit [Ping timeout: 250 seconds]
KCmetro has joined #ruby
<al2o3-cr> which is impossible in real life
ghr has quit [Ping timeout: 240 seconds]
kavanagh has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
<gopz> When making a gem, do I put all of the public methods in "lib/<gem_name>.rb"?
<flashpoint9> I am doing Ruby Koans https://gist.github.com/JosephLeon/4a4b9f0240b00febf319515f5da5502c, Im not completely understanding the point of this exercise.
CharlesN has joined #ruby
<leea> so i'm learning how to use modules, and this one thing I'm reading says to make modules accept parameters that are already expected to be defined in classes that the modules are included in, is there a reason for this?
<leea> gopz I would say it depends
<flashpoint9> I think that hash = Hash.new([]) will make [] the default but im not understanding what the point is or why adding stuff to this hash always returns EVERYTHING
kavanagh has joined #ruby
<gopz> lees on what?
<al2o3-cr> flashpoint9: you're making it a default array
arooni_______ has quit [Ping timeout: 250 seconds]
<leea> gopz what are you trying to do? I've seen some gems where the lib/<gem_name>.rb is just a file that includes other files, as to add better file organization
<flashpoint9> al2o3-cr: whats the point though, this exercise just confused me. Im lost on the purpose
<flashpoint9> I did pick up that im making the default value of the hash an array
ghr has joined #ruby
pawnbox has joined #ruby
<gopz> leea, yes that's what i'm wondering, I have also seen it used just to require files, but if i do something like `include <gem>` it is going to look for the methods it should include somewhere an my question is where is it looking
UnKnOwN| has joined #ruby
<shevy> al2o3-cr you only have to modify your DNA, then you can be a zebra or a turtle!
<flashpoint9> just dont see what its for, or why it always returns all values
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<leea> can you rephrase what you wrote, I'm not quite sure I understand
spudowiar has quit [Ping timeout: 258 seconds]
karapetyan has quit [Ping timeout: 272 seconds]
<al2o3-cr> shevy: not in your lifetime :p
cdg has joined #ruby
UnKnOwN| has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
<gopz> leea, yes, sorry that was not very clear, essentially I'm just wondering what `include <gem>` actually includes. Does it just include all public methods for every class that you require in `lib/<gem_name>`
postmodern has joined #ruby
hahuang61 has joined #ruby
<al2o3-cr> flashpoint9: what you not grasping?
openstruct has joined #ruby
<leea> include or require?
arooni_______ has joined #ruby
<flashpoint9> al2o3-cr: what good is this for?
<al2o3-cr> many things << flashpoint9
<al2o3-cr> flashpoint9: << is just appendind to an array or `push`
<al2o3-cr> plush me, never
<al2o3-cr> >> [1,2].push 0
<ruby[bot]> al2o3-cr: # => [1, 2, 0] (https://eval.in/600960)
<flashpoint9> Yes I know what the << is for, to get a value into an array, wait, so the array is the default value and the << is pushing values into the array, so calling anything on the hash defaults to that array?
pawnbox has quit [Ping timeout: 260 seconds]
<flashpoint9> and thats why calling any key returns the entire array?
<al2o3-cr> whey, hey :P
rcvalle has quit [Quit: rcvalle]
<flashpoint9> al2o3-cr: am I understanding it correctly or am I way off? I actually want to understand whats happening
ghr has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
<flashpoint9> Yea im pretty sure I understand now
AndyBotwin has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 260 seconds]
<al2o3-cr> >> h = Hash.new(""); h[:a] << 87
<ruby[bot]> al2o3-cr: # => "W" (https://eval.in/600962)
<al2o3-cr> >> h = Hash.new([]); h[:a] << 1
<ruby[bot]> al2o3-cr: # => [1] (https://eval.in/600964)
<al2o3-cr> >> h = Hash.new(45); h[:a] += 90
<ruby[bot]> al2o3-cr: # => 135 (https://eval.in/600966)
ghr has joined #ruby
gopz has quit [Quit: This computer has gone to sleep]
gopz has joined #ruby
<al2o3-cr> >> h = Hash.new({}); h[:a] = {a: 1}
<ruby[bot]> al2o3-cr: # => {:a=>1} (https://eval.in/600969)
<gopz> leea, 'include'
<al2o3-cr> h = {a: 1}; {c: 3, **h}
<al2o3-cr> >> h = {a: 1}; {c: 3, **h}
<ruby[bot]> al2o3-cr: # => {:c=>3, :a=>1} (https://eval.in/600970)
<al2o3-cr> >> h = {a: 1}; {c: 3, **h}.sort
<ruby[bot]> al2o3-cr: # => [[:a, 1], [:c, 3]] (https://eval.in/600971)
UnKnOwN| has joined #ruby
<flashpoint9> nice, copying all that
<flashpoint9> thanks
Rickmasta has quit [Ping timeout: 272 seconds]
<al2o3-cr> flashpoint9: sometimes examples are better then explaining
<al2o3-cr> :P
<flashpoint9> yea Im studying them now, thanks again!
arooni_______ has quit [Ping timeout: 250 seconds]
<al2o3-cr> flashpoint9: no worries, you'll like ruby :)
ghr has quit [Ping timeout: 240 seconds]
calmchaos has joined #ruby
<leea> gopz I thought you're supposed to require gems, right?
<leea> and include is for modules
ohcibi has quit [Ping timeout: 264 seconds]
sneakers has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
ta_ has joined #ruby
<al2o3-cr> flashpoint9: anything you don't understand don't hesitate to ask
arooni_______ has joined #ruby
<flashpoint9> al2o3-cr: Awesome thanks so much
weaksauce has joined #ruby
<gopz> leea, but then how do things like rspec just work without having to do something like "rspec.new.it 'does something'"
<al2o3-cr> if you don't ask you'll never know
<jhass> gopz: you don't commonly "include gems" (or more correct, a module they provide), that's just an (IMO anti-) pattern things like httparty made popular
<jhass> but not all that popular luckily
<gopz> jhass, I see, but then how do you define a mini dsl like rspec does
<jhass> rspec is another special case, there's actually a config setting for it to not add things to the toplevel
ghr has joined #ruby
<al2o3-cr> gopz: it's all in instance_eval :p
<jhass> and then the toplevel call indeed would become RSpec.describe
<jhass> in fact you can do that either way
<al2o3-cr> well almost
basex has quit [Quit: basex]
ta_ has quit [Ping timeout: 258 seconds]
<jhass> gopz: I would recommend you try to define it inside something like MyGem.do_stuff do first, if you succeed that far we can talk about the best place to add do_stuff to, in which situations
swills has joined #ruby
<jhass> include at the toplevel is basically the same as class Object; include Foo; end;
<jhass> Kernel is another place
allcentury has joined #ruby
<gopz> jhass, I see, I will do this, thank you all
<leea> the fact that it depends on the existence of instance variables for the classes/modules it gets included?
<al2o3-cr> >> class Object; def m; 42 end; {}.m
zacts has quit [Ping timeout: 250 seconds]
<ruby[bot]> al2o3-cr: # => /tmp/execpad-d7fe97f98122/source-d7fe97f98122:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/600972)
<al2o3-cr> >> class Object; def m; 42 end; "".m
<ruby[bot]> al2o3-cr: # => /tmp/execpad-2ccb6a46b24f/source-2ccb6a46b24f:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/600973)
<al2o3-cr> i give up
ohcibi has joined #ruby
<jhass> leea: you can move the attr_accessor into the module, all it does is define methods
<leea> yeah i know, i was just wondering if it's bad style for module methods to rely on instance variables already defined. Because I'm following this ruby tutorial and it shows not to do this, in that finish would take a parameter instead of using @complete
<jhass> in general it can get hard to understand quickly, but it's not unseen or entirely unreasonable
<leea> oh ok
Rickmasta has joined #ruby
blackmesa has joined #ruby
<leea> following our conversation about singleton classes from last week, do included modules add their methods to that singleton class?
<jhass> no, they simply get inserted into .ancestors
<leea> oh ok
<leea> ty
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
denimchikn has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
veduardo has joined #ruby
bogusdisk has quit [Remote host closed the connection]
amincd has joined #ruby
vdamewood has quit [Quit: Life beckons.]
wigust has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
jgt1 has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
gopz has quit [Quit: This computer has gone to sleep]
agentmeerkat has quit [Ping timeout: 258 seconds]
gopz has joined #ruby
macsteps has quit [Remote host closed the connection]
rodfersou|lunch has quit [Quit: leaving]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> >> [Integer.superclass, Pointer.to_ptr(Integer.__id__*2)[16,8] = -Pointer.to_ptr(Fixnum.__id__*2), Integer.superclass]
ekinmur has joined #ruby
<ruby[bot]> al2o3-cr: # => uninitialized constant Pointer (NameError) ...check link for more (https://eval.in/600974)
ekinmur has quit [Client Quit]
ghr has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<al2o3-cr> >> require 'fiddle'; [Integer.superclass, Fiddle::Pointer.to_ptr(Integer.__id__*2)[16,8] = -Fiddle::Pointer.to_ptr(Fixnum.__id__*2), Integer.superclass]
<ruby[bot]> al2o3-cr: # => [Numeric, #<Fiddle::Pointer:0x411838f8 ptr=0x411838e0 size=0 free=0x000000>, Numeric] (https://eval.in/600975)
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax is now known as saneax_AFK
<al2o3-cr> good sandbox
<gopz> Another quick best practices question: If I have a gem that exposes some useful methods to work with certain text files, should the user be able to create a new instance of a class that accepts the files as arguments and returns some object that they can query, or should the user create a new instance for each text file and query that?
zacts has joined #ruby
beatdown_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
flashpoint9 has quit [Remote host closed the connection]
pawnbox has joined #ruby
openstruct has quit []
JeanCarloMachado has quit [Remote host closed the connection]
<gopz> so basically should it be m = MyGem.new and then do query_object1 = m.new('test.txt'), query_object2 = m.new("test1.txt") or query_object1 = MyGem.new("test.txt") query_object2 = MyGem.new("test2.txt")
ghr has quit [Ping timeout: 240 seconds]
<al2o3-cr> gopz: depends what you want to initialize your object with
<gopz> al2o3-cr the problem is I don't know what I want :/
kobain has quit [Ping timeout: 260 seconds]
<al2o3-cr> if you don't know, how is anyone else supposed to know?
<gopz> al2o3-cr well, each seems equally good to me right now so I was hoping someone could tell me which way is better
<Radar> gopz: What does querying look like?
JeanCarloMachado has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
<gopz> Radar, query_object.non_stop_words, query_objects.non_stop_words(user: 'Gopz')
<gopz> basically just some NLP that you can do by user, by time, etc.
<Radar> gopz: Is that intentionally query_objects in the second example? intentionally a plural?
<gopz> Radar, sorry, no
<gopz> should by query_object
<Radar> gopz: Ok. For this case I would think it's fine to do MyGem.new and that returns a queryable object.
KCmetro has quit [Remote host closed the connection]
<gopz> Radar, thank you, what makes you say this?
ekinmur has joined #ruby
FrontBog has joined #ruby
arooni_______ has quit [Ping timeout: 250 seconds]
<Radar> gopz: file = NLP::File.new("file.txt")
<Radar> file.stop_words
<Radar> seems fine?
ghr has joined #ruby
KCmetro has joined #ruby
jmignault has joined #ruby
KCmetro has quit [Remote host closed the connection]
arooni_______ has joined #ruby
<Radar> I can't really foresee any problems with that syntax yet.
FrontBog has left #ruby [#ruby]
z3ndrag0n has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
prestorium has quit [Ping timeout: 276 seconds]
aryaching has quit [Ping timeout: 258 seconds]
elifoster has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
kavanagh has quit [Quit: That's all folks!]
arooni_______ has quit [Ping timeout: 250 seconds]
gopz has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 240 seconds]
<al2o3-cr> gopz: think about objects as (inanimate:animate: the human body as state i.e:- height, weight, big toes, little fingers; (can you humans swim0; if so how far and why; WHY can others swim further ??????
arooni_______ has joined #ruby
<Radar> what
<al2o3-cr> Radar: what, what?
z3ndrag0n has joined #ruby
<Radar> That did not make any sense to me.
<al2o3-cr> to me it did
yqt has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
jenrzzz has joined #ruby
<al2o3-cr> Radar: can you get addicted to ruby?
gopz has joined #ruby
ElFerna has joined #ruby
freerobby has joined #ruby
<Nilium> what
calmchaos has quit [Remote host closed the connection]
Rodya_ has joined #ruby
gopz has quit [Client Quit]
<al2o3-cr> wat
ghr has joined #ruby
roamingdog has joined #ruby
Contigi has joined #ruby
<al2o3-cr> what is underrated apparently
kobain has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Regulati_ has quit [Remote host closed the connection]
<Radar> al2o3-cr: tbf it looked like something a markov chain spambot would generate
leea has joined #ruby
<shevy> lol big toes
flashpoint9 has joined #ruby
prestorium has joined #ruby
<al2o3-cr> >> [97, 108, 50, 111, 51, 45, 99, 114].pack('U*')
<ruby[bot]> al2o3-cr: # => "al2o3-cr" (https://eval.in/600976)
enterprisey has joined #ruby
CloCkWeRX has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<al2o3-cr> Radar: wtf
chouhoulis has quit [Remote host closed the connection]
<al2o3-cr> i'm not that bad
aryaching has joined #ruby
JoshGlzB_ has joined #ruby
jmignault has quit [Ping timeout: 252 seconds]
JoshGlzBrk has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> >> require 'fiddle'; Fiddle::Pointer[Fiddle.dlwrap(RUBY_VERSION)][1] &= 8^0xFF; [[RUBY_VERSION].pack('p').unpack('j')[0], Fiddle.dlwrap(RUBY_VERSION)].reverse.inject :-
<ruby[bot]> al2o3-cr: # => 25755560 (https://eval.in/600977)
amincd has quit [Quit: Page closed]
arooni_______ has quit [Ping timeout: 250 seconds]
JoshGlzB_ has quit [Ping timeout: 264 seconds]
JoshGlzBrk has joined #ruby
mistermocha has joined #ruby
nankyokusei has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
ruby-lang106 has joined #ruby
skweek has joined #ruby
chipotle has joined #ruby
chipotle_ has quit [Ping timeout: 246 seconds]
mdih has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
KCmetro has joined #ruby
mdih has quit [Client Quit]
blackmesa has joined #ruby
banisterfiend is now known as banisterfiend`
ruby-lang106 has quit [Quit: Page closed]
allcentury has quit [Ping timeout: 276 seconds]
KCmetro has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 240 seconds]
CharlesN has quit [Ping timeout: 244 seconds]
mistermo_ has joined #ruby
macsteps has joined #ruby
coffeecupp has joined #ruby
rbennacer has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
allcentury has joined #ruby
ghr has joined #ruby
macsteps has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
karapetyan has joined #ruby
chipotle has joined #ruby
`tim` has joined #ruby
TheWhip has joined #ruby
crdpink2 has quit [Quit: q term]
ghr has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
max2 has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
davedev24 has quit []
coffeecupp has quit [Ping timeout: 258 seconds]
CharlesN has joined #ruby
Dimik has quit []
crdpink has joined #ruby
polll has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
chipotle has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
chipotle has joined #ruby
pawnbox has joined #ruby
polll has quit [Client Quit]
pdoherty has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
spiette has joined #ruby
davedev24 has joined #ruby
arooni_______ has joined #ruby
AngryBuzzy has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
jishankai has joined #ruby
Vingador has joined #ruby
coffeecupp has joined #ruby
hahuang61 has joined #ruby
ghr has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
davedev24 has quit []
akira616 has joined #ruby
spiette has quit [Ping timeout: 246 seconds]
arooni_______ has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
coffeecupp has quit [Quit: leaving]
hahuang61 has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
agentmeerkat has joined #ruby
RegulationD has joined #ruby
chouhoulis has joined #ruby
ghr has joined #ruby
LoneHermit has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
dc4 has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
coffeecupp has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 240 seconds]
Neobenedict has joined #ruby
dasher^0_o has quit [Ping timeout: 260 seconds]
arch____ has quit [Remote host closed the connection]
interki has joined #ruby
zacts has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 244 seconds]
pilne has quit [Quit: Quitting!]
SilverKey has joined #ruby
ghr has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
nando293921 has joined #ruby
nando294021 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
pragmatism has quit [Quit: Connection.close!]
dasher^0_o has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
hutch34 has joined #ruby
calmchaos has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pragmatism has joined #ruby
<leea> so i'm trying to implement a way to delete multiple objects given indices, I'm wondering if there is a better solution than this for checking that the input are valid indexes (indices & (1..@items.length).to_a) == indices
shinnya has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
blackmesa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 244 seconds]
tokynet has quit [Quit: Connection closed for inactivity]
calmchaos has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
<leea> on stackoverflow i'm reading that it might be better to convert them into sets (?) http://stackoverflow.com/questions/699448/ruby-how-do-you-check-whether-a-range-contains-a-subset-of-another-range
Devalo has joined #ruby
<Radar> ?code leea
<ruby[bot]> leea: We can't help you without your code, please post it to https://gist.github.com
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
zacts has joined #ruby
<leea> i have to d/c but i will read responses from the chat log when i reconnect
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
mistermocha has quit [Ping timeout: 250 seconds]
Xiti has quit [Ping timeout: 250 seconds]
<Radar> Seems a bit magical but I can't think of a better way to do it
ghr has joined #ruby
dennisvennink has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
pawnbox has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
mistermocha has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
sicky-creamy is now known as double-double-la
double-double-la is now known as double-latte
pawnbox has quit [Ping timeout: 276 seconds]
dc4 has joined #ruby
gix has joined #ruby
ghr has joined #ruby
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
mistermocha has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
TheWhip has quit [Remote host closed the connection]
`tim` has joined #ruby
akira616 has quit [Read error: Connection reset by peer]
akira616 has joined #ruby
veduardo has quit [Quit: WeeChat 0.4.2]
ghr has joined #ruby
jaguarmagenta has joined #ruby
taylorrf has quit []
isberg has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
coffeecupp has quit [Quit: Lost terminal]
TheWhip has joined #ruby
Vingador has quit [Remote host closed the connection]
charliesome has joined #ruby
ghr has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
akira616 has quit [Quit: Leaving]
wldcordeiro has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
chipotle_ has joined #ruby
djbkd has joined #ruby
astrobunny has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
max1 has joined #ruby
nankyokusei has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
arooni has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 240 seconds]
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni has joined #ruby
Devalo has joined #ruby
max1 is now known as pickandmix
nankyokusei has quit [Ping timeout: 252 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
ghr has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
blackmesa has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
l4v2 has quit [Quit: l4v2]
leea has joined #ruby
mistermocha has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
z3ndrag0n has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
ElFerna has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
chouhoulis has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leea has quit [Read error: Connection reset by peer]
leea_ has joined #ruby
leea_ has quit [Client Quit]
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
ghr has joined #ruby
leea has joined #ruby
kareeoleez has joined #ruby
hk238 has joined #ruby
rbennacer has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
arooni has quit [Ping timeout: 240 seconds]
double-latte is now known as Quinoa-X
arooni has joined #ruby
hahuang61 has joined #ruby
ghr has joined #ruby
arooni_______ has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 250 seconds]
arooni_______ has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 240 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
arooni_______ has joined #ruby
statelesscode has joined #ruby
axsuul has joined #ruby
axsuul has quit [Excess Flood]
okdas has quit [Ping timeout: 250 seconds]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
xcesariox has joined #ruby
arooni_______ has left #ruby [#ruby]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
nando294021 has quit [Ping timeout: 250 seconds]
xcesariox has quit [Max SendQ exceeded]
nando293921 has quit [Ping timeout: 250 seconds]
sneakerhax has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
deecross has joined #ruby
mistermocha has joined #ruby
agentmeerkat has quit [Ping timeout: 246 seconds]
enterprisey has quit [Quit: goodnight]
arooni has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
arooni has joined #ruby
benlieb has quit [Quit: benlieb]
ghr has joined #ruby
terminalrecluse has joined #ruby
AndrewIsHere has quit []
aryaching has quit [Remote host closed the connection]
nando293921 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
Xeago_ has joined #ruby
arooni_______ has joined #ruby
arooni_______ has quit [Max SendQ exceeded]
arooni_______ has joined #ruby
yitsushi^away is now known as yitsushi
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
yitsushi is now known as yitsushi^away
arooni_______ has joined #ruby
arooni has joined #ruby
ghr has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
dc4 has quit [Ping timeout: 260 seconds]
dminuoso has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
blackmesa has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
ddffg has joined #ruby
TheWhip has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
arooni_______ has joined #ruby
arooni has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
ghr has joined #ruby
pawnbox has joined #ruby
calmchaos has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
dminuoso has quit [Ping timeout: 246 seconds]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
calmchaos has quit [Ping timeout: 250 seconds]
voodoofish4301 has joined #ruby
arooni_______ has joined #ruby
voodoofish430 has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
yitsushi^away is now known as yitsushi
arooni has joined #ruby
yitsushi is now known as yitsushi^away
ghr has joined #ruby
zacts has quit [Ping timeout: 272 seconds]
nando293921 has quit [Quit: Lost terminal]
TheWhip has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
interki has quit [Quit: Going offline, see ya! (www.adiirc.com)]
dennisvennink has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
arooni has joined #ruby
ghr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Dimik has joined #ruby
calmchaos has joined #ruby
kareeoleez has quit [Remote host closed the connection]
zacts has joined #ruby
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 240 seconds]
arooni_______ has joined #ruby
arooni has joined #ruby
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
pawnbox has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
ghr has joined #ruby
TheWhip has joined #ruby
calmchaos has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
calmchaos has joined #ruby
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
saneax_AFK is now known as saneax
arooni has joined #ruby
swills has quit [Ping timeout: 258 seconds]
karapetyan has quit [Ping timeout: 276 seconds]
yardenbar has joined #ruby
ghr has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
SilverKey has quit [Quit: Halted.]
ledestin has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arooni has joined #ruby
dminuoso has joined #ruby
zacts has quit [Ping timeout: 246 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
arooni_______ has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
blackmesa has joined #ruby
deecross has quit [Remote host closed the connection]
kareeoleez has joined #ruby
Macaveli has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
ledestin has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
Azure has quit [Ping timeout: 258 seconds]
tubuliferous has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
ta_ has joined #ruby
calmchaos has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
jaguarmagenta has quit [Remote host closed the connection]
ghr has joined #ruby
Xeago_ has joined #ruby
jgt1 has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
edwardly has quit [Ping timeout: 264 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
amclain has quit [Quit: Leaving]
zacts has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
arooni has quit [Read error: Connection reset by peer]
KCmetro has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
arooni has joined #ruby
dminuoso has joined #ruby
banisterfiend` is now known as banisterfiend
calmchaos has joined #ruby
KCmetro has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
the_drow has quit [Client Quit]
pawnbox has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
arooni has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
tvw has joined #ruby
arooni has joined #ruby
AndyBotwin has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
ghr has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Neobenedict has quit [Ping timeout: 264 seconds]
calmchao_ has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
calmchaos has quit [Ping timeout: 250 seconds]
AnoHito has quit [Ping timeout: 250 seconds]
arooni has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
araujo has joined #ruby
arooni has joined #ruby
andikr has joined #ruby
ur5us has quit [Remote host closed the connection]
ghr has joined #ruby
etehtsea has joined #ruby
dminuoso has quit [Remote host closed the connection]
Sammichmaker has quit [Read error: Connection reset by peer]
nhhc has joined #ruby
Guest__ has joined #ruby
mark_66 has joined #ruby
Drakx_ has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
dminuoso has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Xeago_ has joined #ruby
yitsushi^away is now known as yitsushi
yitsushi is now known as yitsushi^away
TomyWork has joined #ruby
djbkd has quit [Quit: Leaving...]
blackmesa has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 240 seconds]
Chair has joined #ruby
arooni has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
firstdayonthejob has joined #ruby
abonec has joined #ruby
minimalism has quit [Quit: minimalism]
hutch34 has joined #ruby
Hounddog has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
deecross has joined #ruby
ghr has joined #ruby
jaiks has joined #ruby
aganov has joined #ruby
ur5us has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ta_ has joined #ruby
xue has quit [Ping timeout: 260 seconds]
jaiks has quit [Client Quit]
hutch34 has quit [Ping timeout: 240 seconds]
jaiks has joined #ruby
arooni has quit [Read error: Connection reset by peer]
aaeron has joined #ruby
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
deecross has quit [Ping timeout: 272 seconds]
ledestin has joined #ruby
Coldblackice_ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 240 seconds]
jaiks has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
yitsushi^away is now known as yitsushi
blaxter has joined #ruby
<dagelf> yitsushi: why not rather have an auto reply if someone messages you while you're away... rather than spamming everyone's feed with nick changes
arooni has quit [Read error: Connection reset by peer]
<dminuoso> dagelf: Or you can simply configure your IRC client to not tell you about name changes.
<yitsushi> hi, it strange. I turned off this functionality
<yitsushi> (but I don't see most of them becasue my client simlpy hides these messages
JeremyM_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dagelf> dminuoso: me and everyone else... yes. :-)
ghr has joined #ruby
hipertracker has quit [Quit: hipertracker]
arooni has joined #ruby
<yitsushi> dagelf: sorry, I hope now it's done.
wldcordeiro has quit [Ping timeout: 258 seconds]
Xeago_ has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 250 seconds]
johnny56 has joined #ruby
<shevy> people notice it in the silence!
Guest__ has quit [Quit: Textual IRC Client: www.textualapp.com]
yitsushi is now known as lightgod
lightgod is now known as yitsushi
antgel has joined #ruby
aaeron has quit [Ping timeout: 276 seconds]
deecross has joined #ruby
dionysus69 has joined #ruby
<yitsushi> fffuuuuuu
ramfjord has joined #ruby
Xeago_ has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
Xeago_ has quit [Remote host closed the connection]
joonty has joined #ruby
colegatron has joined #ruby
arooni has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
etehtsea has quit [Ping timeout: 240 seconds]
crdpink has quit [Ping timeout: 250 seconds]
arooni has joined #ruby
blandflakes has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
calmchao_ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
calmchaos has joined #ruby
ngw has joined #ruby
blandflakes has quit [Client Quit]
Xeago_ has joined #ruby
ghr has joined #ruby
pawnbox has quit [Remote host closed the connection]
misterm__ has joined #ruby
arooni has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
arooni has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
multi_io_ has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
multi_io has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
nankyokusei has joined #ruby
flughafen_ has joined #ruby
karapetyan has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
solene has left #ruby ["Killed buffer"]
arooni has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
Devalo has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
blackmesa has joined #ruby
arooni has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
Xeago_ has joined #ruby
vdamewood has joined #ruby
elaptics`away is now known as elaptics
jaguarmagenta has joined #ruby
Silthias1 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
UnKnOwN| has quit [Read error: Connection reset by peer]
calmchao_ has joined #ruby
calmchaos has quit [Ping timeout: 250 seconds]
UnKnOwN| has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
arooni has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
mrmortondk has joined #ruby
arooni has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: This computer has gone to sleep]
etehtsea has joined #ruby
calmchaos has joined #ruby
calmchao_ has quit [Read error: Connection reset by peer]
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
lxsameer has joined #ruby
vuoto_ has joined #ruby
craigp has joined #ruby
hipertracker has joined #ruby
arooni has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
arooni has joined #ruby
hahuang61 has joined #ruby
calmchao_ has joined #ruby
unshadow has joined #ruby
Gooer has joined #ruby
calmchaos has quit [Ping timeout: 250 seconds]
<dagelf> :-)
Dimik has quit [Ping timeout: 258 seconds]
calmchaos has joined #ruby
dminuoso has quit [Quit: leaving]
tomphp has joined #ruby
Snowy has joined #ruby
helpa-bot has joined #ruby
dminuoso has joined #ruby
helpa has quit [Remote host closed the connection]
<unshadow> Hi Guys, we are looking for a Ruby Developer (not ROR or WEB), working from another country is fine, also freelancers are ok too. http://www.safe-t.com/jobs/view/ruby-developer/ (I hope this is ok to post here)
tvw has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
joonty has joined #ruby
wigust is now known as Guest84148
arooni has quit [Read error: Connection reset by peer]
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
calmchao_ has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
hck89 has joined #ruby
charliesome has joined #ruby
arooni has joined #ruby
coffeecupp has joined #ruby
pawnbox has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 272 seconds]
the_drow has joined #ruby
pawnbox has joined #ruby
stephan_ has joined #ruby
karapetyan has joined #ruby
<stephan_> hey, i want to include a class i got in a folder called "lib". i tried "require 'lib/someclass' but it didnt work
CloCkWeRX has quit [Ping timeout: 260 seconds]
<stephan_> any ideas?
<igam> stephan_: I'd try just require 'someclass'
jgrevich has joined #ruby
psmolen has quit [Ping timeout: 250 seconds]
arooni has quit [Read error: Connection reset by peer]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
<stephan_> but how does ruby know where to look for 'someclass' if i got it in a subfolder?
DTZUZU has quit [Ping timeout: 246 seconds]
karapetyan has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass> stephan_: ruby looks in $LOAD_PATH
<jhass> the ruby global that is, not the environment variable
<igam> stephan_: I guess that in the case of gems, there's a setup procedure that pushes all the lib directories in some search path. In the case of the bundler/setup.rc I see such lines: $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rake-10.3.2/lib"
<jhass> igam: that looks terrible, where did you find that? :D
<igam> in bundler/setup.rb it's generated by bundle --standalone.
<stephan_> jhass, so if i got a "main file" where i require all my stuff i would have to set "$LOAD_PATH"?
calmchao_ has joined #ruby
<jhass> stephan_: usually you have rubygems or bundler set the load path for you
marr has joined #ruby
<stephan_> i would like to fully understand it before trying bundler, which does some stuff i dont understand
<jhass> are you developing a gem?
<stephan_> not really
<stephan_> just some stuff for myself
<igam> yes, the bundler is for specific cases, in general you would rather just install a gem. Eventually this is what I've done.
<stephan_> depends on the definition of "gem" ;)
<igam> (with the bundler, dragging the dependencies resulted in a bundle that was too big).
<jhass> well perhaps you can just go with ruby -Ilib bin/foo for now
<jhass> that's what I do when developing gems without bundler
<stephan_> hm... okay. or i will read up some documentation on developing an own gem
<jhass> when the gem is installed rubygems will add the lib folder to the load path
<stephan_> okay i see
<stephan_> thanks so far
calmchaos has quit [Ping timeout: 250 seconds]
arooni has quit [Read error: Connection reset by peer]
<jhass> that said $LOAD_PATH.unshift File.expand_path("../lib", __dir__) is not an unseen pattern in bin/foo's
<stephan_> :)
<jhass> it just becomes redundant in the case of a gem when it's installed
colegatron has quit [Ping timeout: 252 seconds]
<stephan_> ill try it
arooni has joined #ruby
kedare has joined #ruby
DoubleMalt has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
<stephan_> guys
Xeago_ has quit [Read error: Connection reset by peer]
<stephan_> guys
<stephan_> require_relative was what i was looking for ;)
Xeago_ has joined #ruby
Sashimi has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
harfangk has joined #ruby
CloCkWeRX has joined #ruby
coffeecupp has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
arooni has quit [Read error: Connection reset by peer]
colegatron has joined #ruby
arooni has joined #ruby
psmolen has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Xeago_ has quit [Remote host closed the connection]
a1ph4g33k has joined #ruby
karapetyan has joined #ruby
vuoto has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
vuoto has joined #ruby
Xeago_ has joined #ruby
etehtsea has left #ruby ["Textual IRC Client: www.textualapp.com"]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Nobun has joined #ruby
codecop has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
arooni has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
iNeedHelp has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Guest42469 has quit [Max SendQ exceeded]
arooni has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Omni has joined #ruby
Omni is now known as Guest29680
calmchao_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
karapetyan has joined #ruby
UserInNeed has joined #ruby
KCmetro has joined #ruby
KCmetro has quit [Remote host closed the connection]
pawnbox has joined #ruby
KCmetro has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
go|dfish has quit [Ping timeout: 244 seconds]
KCmetro has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
KCmetro has joined #ruby
ta_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
loopy has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
arooni has quit [Read error: Connection reset by peer]
Bugboy1028 has quit [Remote host closed the connection]
blackgoat has joined #ruby
pawnbox has quit [Remote host closed the connection]
arooni has joined #ruby
pawnbox has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bugboy1028 has joined #ruby
DTZUZU has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
blackgoat has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
stan has quit [Ping timeout: 276 seconds]
astrobunny has quit [Remote host closed the connection]
shtirlic has joined #ruby
Xeago_ has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
arooni has joined #ruby
stan has joined #ruby
coffeecupp has joined #ruby
Ropeney has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
shtirlic has quit [Quit: ZNC - http://znc.in]
vuoto has joined #ruby
Xeago_ has joined #ruby
Ropeney has quit [Client Quit]
mkosaki has joined #ruby
arooni has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
ta_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
arooni has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
mistermocha has quit [Ping timeout: 250 seconds]
Xeago_ has quit [Remote host closed the connection]
coffeecupp has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
coffeecupp has joined #ruby
nankyokusei has joined #ruby
senayar has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
Xeago_ has joined #ruby
arooni has quit [Read error: Connection reset by peer]
zyriuse has joined #ruby
<zyriuse> hy all
<alfiemax> hi
duncannz has quit [Remote host closed the connection]
arooni has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
nankyokusei has quit [Ping timeout: 276 seconds]
shtirlic has quit [Quit: ZNC - http://znc.in]
blackmesa has joined #ruby
Xeago_ has quit [Remote host closed the connection]
shtirlic has joined #ruby
Timba-as has joined #ruby
jaguarmagenta has joined #ruby
harfangk has quit [Quit: harfangk]
tvw has joined #ruby
a1ph4g33k has left #ruby ["Leaving"]
arooni has quit [Read error: Connection reset by peer]
a1ph4g33k has joined #ruby
Xeago_ has joined #ruby
harfangk has joined #ruby
arooni has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
coffeecupp has quit [Quit: Lost terminal]
sylario has joined #ruby
<zyriuse> i would want to create a crawler with nokogiri but i wonder what is mutch better for parse web site between . parse web site directly, or aspirate web site and parse it ?
koooge has quit [Quit: Leaving...]
<sylario> Does anyone know a gem that allow to do float to number in word in French?
last_staff has joined #ruby
bruce_lee has joined #ruby
Xeago_ has quit [Remote host closed the connection]
binaryplease1 has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
LoneHerm_ has quit [Ping timeout: 246 seconds]
a1ph4g33k has quit [Quit: Leaving]
workmad3 has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
digneety has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
craigp has quit [Ping timeout: 272 seconds]
Pupeno has joined #ruby
miskatonic has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<TheBrayn> sylario: the french number naming system is too complicated to be understood by a machine, we just aren't there yet
<sylario> :/
<sylario> you probably even do not know the differencve between france and belgium/switzerland
yfeldblum has quit [Ping timeout: 250 seconds]
<TheBrayn> I know the difference between the number names in france and the german part of switzerland
<nofxx> zyriuse, check spidr
ta__ has joined #ruby
TomyWork has quit [Remote host closed the connection]
<nofxx> sylario, it's almost base 60 no? hehe...a friend tryed to teach me once... didn't learn
<sylario> thereis a numberphile video about that
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxx> It's the pi girl? anyways, will check it out, thanks
aryaching has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
zacts has joined #ruby
flashpoint9 has joined #ruby
arooni has quit [Read error: Connection reset by peer]
ta__ has quit [Read error: Connection reset by peer]
arooni has joined #ruby
ta_ has joined #ruby
<apeiros> pi girl = vi hart?
<dminuoso> vi hart is still a thing?
* dminuoso still has a hexaflexagon lying around
<dminuoso> A hexahexaflexagon I mean.
<sylario> not vi hart, it's the guy thjat did vids for each chemical element
CloCkWeRX has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
chip_ has joined #ruby
gudekb has joined #ruby
arooni has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
arooni has joined #ruby
Azure has joined #ruby
miskatonic has quit [Quit: miskatonic]
sebstrax has quit [Quit: Connection closed for inactivity]
c355e3b has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
xue has joined #ruby
howdoi has joined #ruby
KCmetro has quit [Remote host closed the connection]
rodfersou has joined #ruby
arooni has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
CloCkWeRX has joined #ruby
Ponyo has joined #ruby
gudekb has quit [Remote host closed the connection]
zyriuse has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
arooni has joined #ruby
Ponyo has quit [Quit: Ponyo]
Ponyo has joined #ruby
aryaching_ has joined #ruby
aryaching_ has quit [Client Quit]
aryaching has quit [Read error: Connection reset by peer]
joonty has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
arooni has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Oclair has joined #ruby
arooni has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
freerobby has joined #ruby
last_staff has quit [Client Quit]
harfangk has quit [Quit: harfangk]
hutch34 has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
johnmilton has joined #ruby
goeast has joined #ruby
JakFrist has joined #ruby
JakFrist has quit [Client Quit]
hahuang65 has quit [Read error: Connection reset by peer]
arooni has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
colegatron has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
UnKnOwN| has quit [Ping timeout: 264 seconds]
UnKnOwN| has joined #ruby
yqt has joined #ruby
blackgoat has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
harfangk has joined #ruby
KCmetro has joined #ruby
orakar has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
arooni has quit [Read error: Connection reset by peer]
<orakar> I'm parsing logs and I want to remove certain entries. For instance, say my log is: "Foo\nName: foo\nProblem: oops\nDate: today\nBar\nName: bar\nProblem: oops\nDate: today\nHello World\nProblem: oops\nDate: today\n" and I want to remove the entry for 'Bar' and its subsequent lines (Name, Problem, and Date). What's the most Ruby way of doing that
<orakar> ?
toretore has joined #ruby
colegatron has joined #ruby
ldnunes has joined #ruby
JeanCarloMachado has joined #ruby
arooni has joined #ruby
<orakar> I was considering something like: split the string into lines, and if I encounter a line with 'Bar', I remove the next 3 lines (somehow)
<jhass> orakar: you could solve it with a flip-flop, but it might be easier to just gsub them out
benlieb has joined #ruby
RegulationD has joined #ruby
<dminuoso> jhass: a flip-flop! Haven't heard that in a while in Ruby. :)
<jhass> it's its steretypical usecase, yet nobody actually does use it for it :P
KCmetro has quit [Ping timeout: 272 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<orakar> jhass: so in this example it'd be something like mystring.gsub(/Bar\n\S+\n\S+\n\S+/, "") ?
<orakar> Assuming \S+ is the regex for matching any characters?
pawnbox has quit [Remote host closed the connection]
swills has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass> mmh, well actually given the free form line the regex solution has to depend on something like the number of lines to remove, yeah
<jhass> in your example, you just forgot Name: for the Hello World entry ?
sdothum has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
<orakar> jhass: oops, I did. Sorry
RegulationD has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
<orakar> Thanks for your help, jhass :)
hck89 has joined #ruby
nhhc has quit [Quit: Leaving]
MissionCritical has joined #ruby
pandaant has joined #ruby
TvL2386 has joined #ruby
arooni has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 252 seconds]
orakar has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<TvL2386> hi guys! I'm trying to generate a soap_header with savon. According to the examples, it should look like the following: https://gist.github.com/TvL2386/aec0106ffe5b1fbfdd1e1685d0f0300b
<TvL2386> I don't know how to create it, because using Savon.client(soap_header: ......) I need to pass in some hash... The example just shows two strings...
arooni has joined #ruby
pawnbox has quit [Remote host closed the connection]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
Pupeno has quit [Remote host closed the connection]
mistermocha has joined #ruby
saneax is now known as saneax_AFK
hahuang65 has joined #ruby
hogetaro has quit [Quit: Leaving...]
mkosaki has quit [Ping timeout: 258 seconds]
kus has joined #ruby
deadnull has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 252 seconds]
Sashimi has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
arooni has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
nankyokusei has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
pawnbox has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
Caelum has quit [Quit: WeeChat 1.5]
Vingador has joined #ruby
codecop has quit [Remote host closed the connection]
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
nocco has joined #ruby
jhack has joined #ruby
Caelum has joined #ruby
pawnbox has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
ta_ has quit [Remote host closed the connection]
banisterfiend is now known as banisterfiend`
Akuma has joined #ruby
arooni has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Pumukel has joined #ruby
diego1 has joined #ruby
arooni has joined #ruby
benlieb has joined #ruby
kedare has quit [Quit: Leaving]
diego1 is now known as diegoviola
CloCkWeRX has joined #ruby
deecross has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 250 seconds]
<goeast> hello Guys ! what is wrong with my code ? Why is it always printing the previous entry ?
mdw has joined #ruby
ta_ has joined #ruby
mdw has quit [Max SendQ exceeded]
mdw has joined #ruby
codecop has joined #ruby
LoneHerm_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<TvL2386> goeast, because you are doing " puts add_students(input, array)" on line 17?
Pupeno has joined #ruby
kus has quit [Ping timeout: 240 seconds]
flashpoint9 has joined #ruby
<goeast> but it is only pushing into the array. I am not asking to print no ?
<goeast> ah "puts"
Xeago_ has quit [Remote host closed the connection]
<TvL2386> yeah are printing the entire array :)
<TvL2386> becuase the #push returns the array itself
<TvL2386> which is printed yeah by puts
Xeago_ has joined #ruby
<goeast> checking
sdothum has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
tk__ has joined #ruby
karapetyan has joined #ruby
ldnunes_ has joined #ruby
LoneHerm_ has quit [Ping timeout: 264 seconds]
colegatron has joined #ruby
joonty has joined #ruby
MrBusiness2 has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
spiette has joined #ruby
pawnbox has joined #ruby
goeast has quit [Ping timeout: 272 seconds]
deecross has joined #ruby
jmignault has joined #ruby
kavanagh has joined #ruby
swills has quit [Remote host closed the connection]
MrBusiness3 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
KCmetro has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
KCmetro has quit [Remote host closed the connection]
KCmetro has joined #ruby
goeast has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
pickandmix has quit [Quit: WeeChat 1.4]
SHyx0rmZ has joined #ruby
karapetyan has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
Coral has joined #ruby
Coral is now known as Guest33100
Pupeno has quit [Remote host closed the connection]
Guest33100 is now known as tjad
troulouliou_div2 has joined #ruby
swills has joined #ruby
roamingdog has joined #ruby
minimalism has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
arooni has quit [Read error: Connection reset by peer]
nadir has joined #ruby
enterprisey has joined #ruby
arooni has joined #ruby
lkb_ has joined #ruby
spiette has quit [Quit: :qa!]
roamingdog has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
lkb has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
griffindy has joined #ruby
arooni has quit [Read error: Connection reset by peer]
max1 has joined #ruby
aupadhye has joined #ruby
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nullfxn has quit [Ping timeout: 246 seconds]
arooni has joined #ruby
JakFrist has joined #ruby
nettoweb has joined #ruby
nocco has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
nocco has joined #ruby
charliesome has joined #ruby
Pupeno has joined #ruby
Vingador has quit [Remote host closed the connection]
tomphp has quit [Read error: Connection reset by peer]
basex_ has joined #ruby
swills has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
goeast has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
max1 is now known as pickandmix
nocco has quit [Ping timeout: 240 seconds]
Pupeno has quit [Ping timeout: 258 seconds]
arooni has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
GinoManWorks has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
l4v2 has joined #ruby
Silthias1 has quit [Quit: Leaving.]
KCmetro has quit [Remote host closed the connection]
charliesome has joined #ruby
aegis3121 has joined #ruby
eljimmy has joined #ruby
KCmetro has joined #ruby
ekinmur has joined #ruby
arooni has quit [Read error: Connection reset by peer]
ramortegui has joined #ruby
Silthias has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
hck89 has joined #ruby
arooni has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
prestorium has quit [Quit: Leaving]
kareeole_ has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
troulouliou_div2 has quit [Remote host closed the connection]
malconis has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
vdamewood has quit [Quit: Life beckons.]
Nobun1 has joined #ruby
fmcgeough has joined #ruby
Nobun has quit [Ping timeout: 246 seconds]
jgt2 has joined #ruby
ChiefAlexander has joined #ruby
arooni has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
arooni has joined #ruby
jgt1 has quit [Ping timeout: 258 seconds]
LoneHermit has quit [Ping timeout: 258 seconds]
kareeole_ has quit []
hck89 has joined #ruby
andikr has quit [Remote host closed the connection]
nocco has joined #ruby
enterprisey has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
arooni has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
Dysp has joined #ruby
pawnbox has joined #ruby
arooni has joined #ruby
chouhoulis has joined #ruby
aegis3121 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Quinoa-X is now known as Rainbow-Sapphire
colegatron has quit [Ping timeout: 252 seconds]
tk__ has quit [Quit: ばいばい]
KCmetro has quit [Remote host closed the connection]
mistermocha has joined #ruby
<Dysp> Mjello. I have some code I am absolutely sure worked some time ago. I've spent the past hour trying to pinpoint the problem, but I just don't get it. https://gist.github.com/Dysp/f7acf6b0aedcc2abacaed6d4c48e1de0
KCmetro has joined #ruby
mistermocha has quit [Remote host closed the connection]
schickung has joined #ruby
<Dysp> And the correct object is passed into the function and the .map block is also working as it should
mistermocha has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> sheet contain's nil's. That's all there's to say
blackmesa has joined #ruby
arooni has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
roamingdog has joined #ruby
<Dysp> jhass: Okay. Thank you.
Xeago_ has joined #ruby
<dminuoso> Dysp: # NoMethodError: undefined method `[]' for nil:NilClass means: you have code that somehow evaluates to nil[] - which gives you a NoMethodError because NilClass does not have that method.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has quit [Remote host closed the connection]
<Dysp> Hm!
tvw has quit [Ping timeout: 264 seconds]
<Dysp> I found the fucker.
<Dysp> JESUS CHRIST
<Dysp> Table was shifted one row down
<Dysp> ohmagad
<Ponyo> Hi there, is there a function similar to exec for functions?
arooni has joined #ruby
GodFather has quit [Remote host closed the connection]
<dminuoso> Ponyo: Are you looking for .send ?
<dminuoso> &ri send
GodFather has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<dminuoso> Okay, bad example..
<dminuoso> &ri Object#send
<jhass> you mean Object#public_send, obviously
<Ponyo> dminuoso: I was thinking more like the system call
banisterfiend` is now known as banisterfiend
<jhass> ?xy Ponyo
<ruby[bot]> Ponyo: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
RegulationD has joined #ruby
<Ponyo> jhass: blah
<dminuoso> jhass: Strange. The only reason for me to use send is because I want to circumvent method visibility - guess that explains why I haven't heard about public_send. ;-)
roamingdog has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
GodFather has quit [Remote host closed the connection]
<dminuoso> Jokes aside, you are right. :S
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
GodFather has joined #ruby
<jhass> curious, IME 90% of all send usages are meant to be public_send's
colegatron has joined #ruby
jgrevich has joined #ruby
machinewar has joined #ruby
jishankai has quit [Ping timeout: 272 seconds]
<jhass> Ponyo: well we're obviously not understanding what your problem is then, good luck!
jrafanie has joined #ruby
agentmeerkat has joined #ruby
<Ponyo> jhass: http://linux.die.net/man/3/exec I'd like something like this for a function instead of a process.
ekinmur has joined #ruby
<jhass> Ponyo: define function
the_drow has quit [Quit: This computer has gone to sleep]
<dminuoso> Oh I think I know what he wants!
* dminuoso grabs the popcorn
<jhass> hah, my current tendency is exec "/bin/sh -c 'source .foo; bar()'"
RegulationD has quit [Ping timeout: 246 seconds]
swills has joined #ruby
hck89 has joined #ruby
<jhass> Ponyo: just remove the exec and it'll work
<jhass> the term you seek is "method call"
floatingpoint has joined #ruby
shinnya has joined #ruby
<Ponyo> Thank you :)
arooni has quit [Read error: Connection reset by peer]
<dminuoso> jhass: Interestingly, my inintial response was quite on spot! :-)
bkxd has quit [Ping timeout: 252 seconds]
<jhass> :P
blackmesa has quit [Ping timeout: 246 seconds]
<Ponyo> I don't think this is it either
<dminuoso> Also, in #rubyonrails I managed to fix 2 out of the last 3 problems without even knowing a) what the error message was and b) any useful error description!
<jhass> Ponyo: well, return a rather I guess
<Ponyo> Oh duh
* Ponyo sighs and walks away
<jhass> you're welcome :D
arooni has joined #ruby
<Ponyo> jhass: Thank you
kavanagh has quit [Quit: That's all folks!]
allcentury has joined #ruby
pawnbox has quit [Remote host closed the connection]
Nobun2 has joined #ruby
ta_ has quit [Remote host closed the connection]
Nobun2 is now known as Nobun
blackmesa has joined #ruby
Nobun1 has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 258 seconds]
arooni has quit [Read error: Connection reset by peer]
DoubleMalt has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
allcentury has joined #ruby
nankyokusei has joined #ruby
stephan_ has quit [Ping timeout: 264 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nocco has quit []
pawnbox has joined #ruby
arooni has joined #ruby
macsteps has joined #ruby
JakFrist has joined #ruby
bweston92 has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
edwardly has quit [Ping timeout: 276 seconds]
Snowy has quit [Remote host closed the connection]
Nobun has quit [Quit: Salve a tutti]
mtkd has joined #ruby
braincrash has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
hipertracker has quit [Ping timeout: 244 seconds]
macsteps has quit [Remote host closed the connection]
`tim` has joined #ruby
arooni has quit [Read error: Connection reset by peer]
failshell has joined #ruby
machinewar has quit []
SilverKey has joined #ruby
arooni has joined #ruby
snath has quit [Ping timeout: 246 seconds]
agit0 has joined #ruby
stephan_ has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
digneety has quit [Quit: digneety]
arooni has quit [Read error: Connection reset by peer]
Chair has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
arooni has joined #ruby
stephan_ has quit [Ping timeout: 264 seconds]
digneety has joined #ruby
chip_ has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
Xeago_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
bigkevmcd has joined #ruby
UnKnOwN| has quit [Ping timeout: 276 seconds]
slackbotgz has joined #ruby
Pumukel has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
arooni has quit [Read error: Connection reset by peer]
JakFrist has joined #ruby
SilverKey has quit [Quit: Halted.]
arooni has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
vuoto has quit [Remote host closed the connection]
pickandmix has quit [Quit: WeeChat 1.4]
jhack has joined #ruby
SilverKey has joined #ruby
Xeago_ has quit [Remote host closed the connection]
bdonnahue has joined #ruby
<bdonnahue> hello. im trying to install the redminecrm plugin for redmine. i run bundle install and then rake but the rake fails
<ruby[bot]> bdonnahue: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/611de4f52e8acd5e95790721e6c00209
<ruby[bot]> bdonnahue: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<bdonnahue> im not sure how to debug this
<bdonnahue> can anyone help me out
ChiefAlexander has quit [Remote host closed the connection]
<jhass> bdonnahue: as I know redmine you have to edit the Gemfile
Xeago_ has joined #ruby
ChiefAlexander has joined #ruby
tubuliferous has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<bdonnahue> jhass: edit the gemfile in what way?
arooni has quit [Read error: Connection reset by peer]
dminuoso has quit [Ping timeout: 252 seconds]
rbpeou has joined #ruby
xuin has joined #ruby
SilverKey has quit [Quit: Halted.]
hutch34 has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
<jhass> I get no clear results on google, where are the installation instructions for "agilecrm"
<jhass> ?
<xuin> do you know what I feel like doing sometimes? I feel like running down the street butt naked with a paint gun and paint all those god damn n...
hutch34 has joined #ruby
<jhass> mkay
<jhass> bdonnahue: bundle install --without development test went through without errors?
tjad has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<bdonnahue> yes although it dindt look like it did much. i will paste the result
<jhass> !troll xuin
xuin was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
cdg has joined #ruby
prefix has joined #ruby
max1 has joined #ruby
max1 is now known as pickandmix
kies has joined #ruby
jhack has quit [Quit: jhack]
diegoviola has joined #ruby
floatingpoint has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
hk238 has joined #ruby
digitalfiz has quit []
digitalfiz has joined #ruby
<jhass> well I have no idea where the agile_data gem or file should come from. While working as root is a terrible habit, I also don't see any obvious mistake you made or any obvious mistake in their instructions. Given this is a commercial product you paid for, I would suggest you contact their support
snath has joined #ruby
arooni has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
bigkevmcd has quit [Ping timeout: 276 seconds]
Xeago_ has quit [Remote host closed the connection]
dminuoso has joined #ruby
arooni has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
akira616 has joined #ruby
flughafen_ has quit [Ping timeout: 276 seconds]
jmignault has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 260 seconds]
arooni has quit [Read error: Connection reset by peer]
slackbotgz has quit [Remote host closed the connection]
jhack has joined #ruby
hutch34_ has joined #ruby
arooni has joined #ruby
<Dysp> I have an array [:x, :y, :z]. They represent attributes in another class. I want to access these attributes, but my method doesn't really work. Help.https://gist.github.com/Dysp/173b4c6676f929ec529bf209fb7014e7
DTZUZU has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
<Dysp> I do understand the error message, I just don't understand why "sym" doesn't pair with |sym| as I expect.
<jhass> Dysp: why don't you simply [ms_dif_nm, ms_dif_nms, ms_dif_nmpc, subject, mvc]
ekinmur has joined #ruby
digneety has quit [Quit: digneety]
aryaching has quit [Remote host closed the connection]
<Dysp> I don't think I understand what you mean. I want a hash, because I am going to print the different values in an excel sheet. However the values that I want to print can vary (hence the array with symbol representing a settings array)
<Dysp> And I just pass an array of the values, then I cannot expect what is what.
<Dysp> If I am trying to access pr position in the array that is
<jhass> well I was going off your example of course
<Dysp> Sure, I understand
<jhass> which neither has dynamic set of keys nor hash
<jhass> given the limited scope of your question, the only answer is public_send then, whether it's a clean solution overall in your situation I can't tell
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has joined #ruby
atom_ has joined #ruby
<Dysp> I don't ask you to evaluate whether the solution is good or not, I simply asked why I am getting the error I am getting :P
Asher has quit [Quit: Leaving.]
TheWhip has joined #ruby
<jhass> because you call the method sym on self, which does not exist
Es0teric has joined #ruby
CharlesN has quit [Remote host closed the connection]
<jhass> and that answer is a simple rephrasing of "NoMethodError: undefined method `sym' for #<Kincom:0x00000004227d98>"
z3ndrag0n has joined #ruby
dennisvennink has joined #ruby
<Dysp> Yes, but why am I calling "sym"?
bigkevmcd has joined #ruby
<Dysp> Isn't ...map { |sym| p sum} supposed to put whatever element map was invoked(correct use?) on?
atom_ has quit [Client Quit]
arooni has quit [Read error: Connection reset by peer]
<Dysp> I mean sym, not sum obviously
tubuliferous has quit [Ping timeout: 250 seconds]
<jhass> no.
prefix has quit [Quit: Goodnight]
arooni has joined #ruby
polishdub has joined #ruby
aganov has quit [Remote host closed the connection]
mistermocha has joined #ruby
<Dysp> So if I did [:x, :y, :z].map { |sym| sym}, wouldn't it just return [:x, :y, :z]?
Asher has joined #ruby
<jhass> it would
<Dysp> So why isnt "sym" being replaced with whatever element there is in the array?
grill has joined #ruby
<jhass> because that's not how local variables work
codecop has quit [Remote host closed the connection]
<jhass> your code isn't a template in which local variables are replaced and then it's parsed again or something
dminuoso has quit [Remote host closed the connection]
CamonZ has joined #ruby
<Dysp> Well I do understand that there is something here I don't understand, otherwise it would work, obviously. So, how would you approach the problem I am trying to solve?
ddffg has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
<Dysp> Which is basicly accessing instance variables of a class based on whatever symbols are passed in an array.
<jhass> if I extrapolate the surrounding stuff
<jhass> I would keep the data in a hash
<jhass> and keys.map {|key| @data[key] }
aegis3121 has joined #ruby
<jhass> instead of flatting it out into individual instance variables when I'll never use them literally
mistermocha has quit [Ping timeout: 246 seconds]
failshell has quit []
<gregf_> Dysp: you can also use eval *runs*
allcentury has quit [Ping timeout: 260 seconds]
<gregf_> like so, eval("self.#{method}")
aryaching has joined #ruby
<jhass> Dysp: ^ please ignore this. gregf_ is just making fun without properly marking it as such.
atom_ has joined #ruby
mdw has joined #ruby
<jhass> gregf_: they're already confused about basic semantics, this is not helpful
<Dysp> I have an object(of Kincom) with instance variables. I need to extract those and print them. I am doing this in a module.
<Dysp> Exactly. Still confused about basic semantics.
arooni has quit [Read error: Connection reset by peer]
bogusdisk has joined #ruby
<jhass> Dysp: to repeat myself: proper, extrapolated solution: don't flat your data out into instance variables, keep them in a hash. Or to repeat the earlier solution ignoring likely better design: use public_send
dionysus69 has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
<bdonnahue> jhass: will d othanks
akira616 has quit [Ping timeout: 258 seconds]
<gregf_> jhass: sorry about that :|. yeah, i was confusing
arooni has joined #ruby
<gregf_> Dysp: class Foo; def initialize *args, **kwargs; kwargs.each { |k,v| instance_variable_set "@#{k}",v };end;end;f = Foo.new(a: 10, b: 20); p [:a,:b].map{ |sym| f.instance_variable_get("@#{sym}") } <= somethinglike this would help? *please format*
leea has joined #ruby
<gregf_> sorry, better ignore me. follow what jhass's suggested
mattwashere has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dysp> Thank you for the effort though :p
pawnbox has quit [Ping timeout: 272 seconds]
<Dysp> jhass: What do you exactly mean by flatting out my data?
pawnbox has joined #ruby
<Dysp> And what is wrong with using instance variables?
jgt2 has quit [Ping timeout: 250 seconds]
<Dysp> Moment, I will show you what my object looks like.
z3ndrag0n has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Bloodshot_ has quit []
ekinmur has joined #ruby
<Dysp> There. Tried to format it to be easier to see
vuoto has joined #ruby
<Dysp> That's an example of an instance
tubuliferous has joined #ruby
arooni has quit [Read error: Connection reset by peer]
daniel has joined #ruby
Xeago_ has joined #ruby
daniel is now known as sicn
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Dysp: do you ever for example do _literally_ object.arm or self.arm or arm?
<sicn> hi guys, Ruby noob here (I bet this also ca
<sicn> uses some of you to freak out ;) )
arooni has joined #ruby
<sicn> I wonder if some of you know how to override a standalone method in a frameworks module
<sicn> i tried to monkey patch according to the usual explanations, but the method is simply not being called.
Wildfyr has joined #ruby
<jhass> which method do you try to replace and why?
<Dysp> Well, I am trying to learn and at the same time build an application, so I believe I will. The "arm" is a setting used to calculate whatever data is within the object and therefore extremely crucial. It changes depending on the "arm" used when the test was performed.
<jhass> Dysp: arm is just an example, I could have picked any other of your instance variables
<sicn> @jhass It's in the devise-saml-authentication framework. The framework seems to be missing a way to dynamically load attribute maps so I tried to simply monkey patch the "def attribute_map_for_environment"
<sicn> so it can load the attributes from a database table.
Xeago_ has quit [Remote host closed the connection]
<Dysp> jhass: Eventually I am thinking to serialize the whole object to a database.
<sicn> @jhass yes...
allcentury has joined #ruby
<sicn> @jhass. In fact, the latest "master"-version from github because the one on rubygems.org is missing some important features entirely, as such I am sort of using a "nightly"
Flipez has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
<jhass> sicn: could you show your attempt in a gist?
<sicn> @jhass sure, np
Madplatypus has joined #ruby
<Dysp> But I haven't gotten around to do that yet, though.
z3ndrag0n has joined #ruby
<jhass> Dysp: that only seems to be one more data point towards keeping the data in a hash being more sensible
Devalo has joined #ruby
z3ndrag0n has quit [Remote host closed the connection]
<Dysp> Can you explain why that is?
Pupeno has quit [Remote host closed the connection]
z3ndrag0n has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
<Dysp> I mean, why is serializing the whole object and then accessing instance variables/hashes bad?
hipertracker has joined #ruby
<jhass> neither is generically good or bad
arooni has quit [Read error: Connection reset by peer]
KCmetro has quit [Remote host closed the connection]
<Dysp> I have thought about doing that, actually. Haven't gotten around to it yet, though (pressure to provide actual data for the researcher).
<jhass> but if your primary usecase is dynamically enumerating and accessing the data, flattening it out into instance variables opposed to keeping it in a datastructure made for it doesn't seem sensible
agit0 has quit [Quit: zzzZZZ….]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Dysp> I get your point and I will note it down.
<jhass> sicn: that seems okay, perhaps it's loaded before the actual code? also did you try just defining def self.attribute_map_for_environment in your User (or whatever your Devise model is) model?
arooni has joined #ruby
<Dysp> But now I need to get these data ready for the researcher, before I refactor the whole program.
<jhass> Dysp: then third time, public_send
<jhass> or instance_variable_get
<Dysp> Haha, yes, I know! :P
karapetyan has quit [Remote host closed the connection]
<Dysp> I was just trying politely to end the discussion; one that taught me something and for one I am therefore grateful to have had.
sami has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
<sicn> @jhass hm, ok. do you care to explain what you mean by "it's loaded before the actual code"? Does the Ruby runtime not look at the code as a whole?
<sicn> @jhass and sorry if the question seems dumb, but i primarily work with precompiled languages, so the concept of things loading just by changing a file is new to me =)
dionysus69 has joined #ruby
<jhass> sicn: it does but in a sequential manner, that is there's a not a semantic analysis phase, rather the code is parsed as its loaded and then run. class Foo; is essentially syntax sugar for Foo = Class.new, so all code and method definitions is itself just code that runs
RegulationD has joined #ruby
watersoul_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
watersoul has joined #ruby
<jhass> imagine all your code is actually inside your main function/entry point and the object model is build at runtime through it
<jhass> that means order is relevant
karapetyan has joined #ruby
<sicn> @jhass ok, can i affect order? can i "boost" my monkey-patched method?
<jhass> def foo; 1; end; def foo; 2; end; is different from def foo; 2; end; def foo; 1; end
karapetyan has quit [Remote host closed the connection]
<jhass> yes, you just have to put it at the right place, namely after the file that defines the original was loaded
karapetyan has joined #ruby
<jhass> in a rails app that typically happens by the Bundler.require call in config/boot.rb or config/application.rb or whereever it was
karapetyan has quit [Remote host closed the connection]
<sicn> yes, it is a rails 4 app, i put this file in "services", kinda felt right ;)
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
<jhass> not sure I agree :P
brahman has joined #ruby
<sicn> well, in reality, i dont agree either. it's not a service, but it didn't feel like a controller either =)
<jhass> most people put monkey patches in rails apps into config/initializers, config/application.rb or lib/ and load the libfile explicitly from either place
RegulationD has quit [Ping timeout: 250 seconds]
voodoofish4301 has quit [Quit: Leaving.]
<sicn> oh ok, i will check, who knows, maybe its just that
mistermocha has joined #ruby
watersoul_ has joined #ruby
<jhass> sicn: first of all I would try if defining it as class method on the User class doesn't shadow the original
<jhass> that would be the much saner solution in any case
karapetyan has joined #ruby
<brahman> I am using ruby to wrap the execution of a mono app. The script uses popen3 to opent the mono app. This mono app forks into multiple sub process' and my ruby script ends up waiting for the child pids to return, which they do not as they are daemons. Is there a way to tell popen3 not to wait for mono's child pids?
<sicn> @jhass i tried that, it doesn't seem to lead to desired result either =)
arooni has joined #ruby
<jhass> too bad
watersoul has quit [Ping timeout: 244 seconds]
<sicn> @jhass are files processed in alphabetical order?
<jhass> no, load order
<jhass> Rails hides a lot of this
<sicn> i.e. if i have a devise.rb in config/initializers, should i call the file "a_monkey_patch.rb" just to make sure it's loaded before?
<jhass> oh, config/initializers is in alphabetical order, yeah
<sicn> umm, sorry, e_monkey_patch.rb i meant...
<sicn> so its loaded after devise is initialized
<jhass> but it shouldn't matter since devise is loaded by the Bundler.require call
unshadow has quit [Quit: leaving]
<jhass> happening well before any rails initializer
<sicn> alright, lets try it =)
<jhass> actually your file in app/services probably just was never loaded
<jhass> since Rails does it lazily when it encounters a missing constant
<sicn> hm, same thing happens in config/initializers. Not being called, only the original method :(
mistermocha has quit [Ping timeout: 260 seconds]
<jhass> spring active?
<jhass> bin/spring stop
<sicn> does it matter that it is declared a private method? can they not be overridden?
<jhass> it shouldn't matter, no
<sicn> or "shadowed" rather
<jhass> for the monkey patch override or redefinition is the correct term
eljimmy has quit [Quit: This computer has gone to sleep]
mattwashere has quit [Remote host closed the connection]
<jhass> I used shadowed earlier since it would define a new method further down the ancestry chain
mattwashere has joined #ruby
Macaveli has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
hipertracker has quit [Quit: hipertracker]
arooni has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
<jhass> sicn: checked spring yet?
hipertracker has joined #ruby
hipertracker has quit [Client Quit]
<sicn> Java Spring, yes. Ruby Spring, no.
<jhass> sicn: I mean did you try to kill your appserver yet, ran bin/spring stop and then retried?
<sicn> As I said, mostly a C, Java, Kotlin, Objective C developer
tubuliferous has joined #ruby
<sicn> yeah, the server i killed several times
<jhass> config/initializers is only loaded as your rails app boots
flashpoint9 has quit [Remote host closed the connection]
LuckyABA has joined #ruby
<jhass> and spring is an application preloader, it keeps your rails app in memory
arooni has joined #ruby
<jhass> in the background
ramfjord has joined #ruby
<sicn> oh, that could explain a thing or two
Es0teric has quit [Quit: Computer has gone to sleep.]
<sicn> becomes some things started to work suddenly after i shut down my computer before going home
mattwashere has quit [Ping timeout: 252 seconds]
<sicn> could the app server stay in memory even though i stopped the server?
ta_ has joined #ruby
<sicn> seems a bit odd
<jhass> well, technically that's not the correct way to put it, but yes
<jhass> as said, bin/spring stop
<sicn> running rails 4.0 though, no spring
bigkevmcd has quit [Ping timeout: 264 seconds]
<jhass> mh
<jhass> spork?
<sicn> its just a piece of code that was dropped in my lap yesterday =)
brahman has quit [Quit: Konversation terminated!]
<sicn> like: "you know how to code, maybe you know what to do with this" :D
<jhass> heh
<jhass> your rails version is pretty irrelevant to whether you have an application preloader like spring or spork running though
karapetyan has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
<sicn> only have rake, rails and bundle as executables in the bin-folder
<sicn> when i start the server it tells me its WEBrick
<jhass> okay, and no mention of spring or spork in your Gemfile ?
hutch34_ has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
crdpink has joined #ruby
<sicn> unicorn and rubyracer
<sicn> spork-rails
<jhass> there we go
flughafen_ has joined #ruby
<jhass> spork then
<jhass> basically the same thing
<jhass> bundle exec spork stop? I don't even remember
SilverKey has joined #ruby
<sicn> "Couldn't find any framework called stop" ;)
<sicn> same with spork stop
ta_ has quit [Ping timeout: 272 seconds]
<sicn> let me just see what processes are running
<jhass> yeah, perhaps just killall ruby
<jhass> readme obviously doesn't hint how to kill it
tubuliferous has quit [Ping timeout: 252 seconds]
<sicn> nah, nothing ruby running. checked killall -9 ruby already ;)
<jhass> idk, it actually doesn't even have an option to kill itself apparently
mistermocha has joined #ruby
arooni has quit [Read error: Connection reset by peer]
<jhass> I guess I know why the community moved to spring :P
<jhass> anyway, let's assume that's not it yet
Xeago_ has joined #ruby
<jhass> let's verify it's loaded/overwritten: do bin/rails console, inside check User.method(:attribute_map_for_environment).source_location
deecross has quit [Remote host closed the connection]
<sicn> alright. right now i am baffled by the fact that not even the original method is being called anymore... now that i retried a bunch of times, perhaps thats why my monkey patched file is not being called
mattwashere has joined #ruby
rodfersou is now known as rodfersou|lunch
<sicn> (after killing everything ruby and restarting)
<sicn> perhaps thats the real issue...
<jhass> and Devise::Models::SamlAuthenticatable::ClassMethods.instance_method(:attribute_map_for_environment).source_location
joonty has quit [Quit: This computer has gone to sleep]
jaguarmagenta has joined #ruby
<jhass> ah well yeah, if there's no call there's no call :P
<sicn> yeah, funny enough just 20 minutes ago it was called, last time i started the server
arooni has joined #ruby
<sicn> funny, perhaps there are other bugs in the "nightly" version of the framework :/
amclain has joined #ruby
<sicn> sucks that the stable version is missing dynamic configuration of some IdP-related stuff alltogether
Dysp has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
<jhass> the joys of enterprise authentication ::P
karapetyan has quit [Remote host closed the connection]
<sicn> yeah, well. it's a customer of ours that really wants to grow and their customers in turn really want SAML Authentication. I understand it, too bad that I haven't worked enough with Ruby and Rails before being tossed into this endevour ;)
<sicn> at least i got SAML authentication to work without a hitch, it's just the dynamic configuration of attribute mappings that gives me headaches now =)
jaguarmagenta has quit [Ping timeout: 240 seconds]
hutch34_ has joined #ruby
<jhass> hehe yeah, you do seem to be doing good for being at it for a day or so ;)
<sicn> so despite knowing literally nothing about Ruby or Rails I at least gathered enough knowledge about the framework and the language in the last 24 hours that I got some stuff to work =)
<sicn> well, love coding so i learn quite fast, but now it felt that i was stuck with this problem for several hours so i thought it doesn't hurt to ask =)
seth_ has joined #ruby
karapetyan has joined #ruby
calmchaos has joined #ruby
karapetyan has quit [Remote host closed the connection]
seth has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
mattwashere has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
mattwashere has joined #ruby
arooni has quit [Read error: Connection reset by peer]
peteykun has joined #ruby
karapetyan has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
tvw has joined #ruby
bigkevmcd has joined #ruby
arooni has joined #ruby
kareeoleez has joined #ruby
<sicn> so lets just start clean once more, maybe that baby is calling the method
cdg has quit [Remote host closed the connection]
<sicn> like it did a little while ago
mark_66 has quit [Quit: Leaving.]
<sicn> @jhass Is there something like "make clean" in Ruby ? just to clean any caches or so that might be breaking stuff?
FastJack has quit [Read error: Connection reset by peer]
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
FastJack has joined #ruby
<jhass> besides stuff like spring/spork there's nothing where code can be cached
<jhass> so nothing on disk, just in memory
aredride- has quit [Ping timeout: 258 seconds]
rbennacer has quit [Remote host closed the connection]
mattwashere has quit [Ping timeout: 276 seconds]
AndrewIsHere has joined #ruby
<sicn> and indeed.......... now its being called
<sicn> my monkey patched method instead of the framework's original method
chouhoulis has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
<jhass> yay, I guess
<sicn> oh the joy
<sicn> finally.
<sicn> so the config/initializers-move did the trick it seems
SCHAAP137 has joined #ruby
[Butch] has joined #ruby
<jhass> seems plausible
SilverKey has quit [Quit: Halted.]
<jhass> do read the the rails guide I linked earlier some time you want to fully understand why
basex__ has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<sicn> now i can finally continue hook up my attribute mapper i built :) thanks for your help
karapetyan has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
tvw has quit []
<sicn> and thanks, will check the guide
aredridel has joined #ruby
_mak has joined #ruby
<sicn> chances are i will be back in a while anyway ;) again, was fantastic advise, thanks =)
<_mak> is it possible to step(x) in a mysql results loop? eg: I want to loop through 3 rows at a time
basex_ has quit [Ping timeout: 276 seconds]
calmchaos has quit [Ping timeout: 250 seconds]
calmchaos has joined #ruby
arooni has joined #ruby
<jhass> _mak: isn't it enumerable? just each_slice(3)
jenrzzz has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
colegatron has quit [Ping timeout: 252 seconds]
smathy has joined #ruby
Gooer has quit [Quit: Gooer]
Hyuk has joined #ruby
karapetyan has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_mak> jhass: thanks mate!
<jhass> yw
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
senayar has quit []
agent_white has joined #ruby
jgt2 has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
bigkevmcd has joined #ruby
SilverKey has joined #ruby
arooni has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aibot has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
mattwashere has joined #ruby
arooni has joined #ruby
karapetyan has quit [Remote host closed the connection]
<agent_white> Mornin'
ramfjord has quit [Ping timeout: 276 seconds]
AnoHito has joined #ruby
eljimmy has joined #ruby
abonec has quit [Ping timeout: 240 seconds]
wilbert has joined #ruby
milesmatthias has joined #ruby
jokke has quit [Quit: WeeChat 1.5]
mattwashere has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
davedev24 has joined #ruby
mattwashere has joined #ruby
_mak has left #ruby [".."]
KCmetro has joined #ruby
RegulationD has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
colegatron has joined #ruby
karapetyan has quit [Remote host closed the connection]
arooni has quit [Read error: Connection reset by peer]
mattwashere has quit [Ping timeout: 246 seconds]
jokke has joined #ruby
calmchaos has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
arooni has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
Silthias has quit [Quit: Leaving.]
tomchapin has joined #ruby
tomchapin has quit [Client Quit]
tomchapin has joined #ruby
flashpoint9 has joined #ruby
tomphp has quit [Ping timeout: 276 seconds]
milesmatthias has quit [Remote host closed the connection]
milesmatthias has joined #ruby
rbennacer has joined #ruby
arooni has quit [Read error: Connection reset by peer]
BTRE has quit [Quit: Leaving]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
agentmeerkat has quit [Ping timeout: 258 seconds]
AndrewIsHere has quit [Remote host closed the connection]
arooni has joined #ruby
yqt has joined #ruby
milesmatthias has quit [Ping timeout: 250 seconds]
AndrewIsHere has joined #ruby
nettoweb has quit [Ping timeout: 276 seconds]
thoraxe has quit [Ping timeout: 244 seconds]
leea has joined #ruby
Gasher has joined #ruby
rbpeou has quit [Ping timeout: 240 seconds]
pilne has joined #ruby
SilverKey has quit [Quit: Halted.]
thoraxe has joined #ruby
todd_dsm_wk has joined #ruby
BTRE has joined #ruby
qcqqnq has joined #ruby
benlieb has quit [Quit: benlieb]
sicn has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
sneakers has joined #ruby
nettoweb has joined #ruby
Ponyo has quit [Ping timeout: 276 seconds]
hipertracker has joined #ruby
arooni has quit [Read error: Connection reset by peer]
arooni has joined #ruby
KCmetro has quit [Ping timeout: 250 seconds]
aibot has joined #ruby
igam has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Hounddog has quit [Remote host closed the connection]
hosttor has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
bweston92 has joined #ruby
digneety has joined #ruby
stephan_ has joined #ruby
sicn has joined #ruby
bluOxigen has joined #ruby
digneety has quit [Client Quit]
Mrgoose has quit [Ping timeout: 264 seconds]
memorasus has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
<whathappens> morning!
digneety has joined #ruby
<Wildfyr> hello
diegoviola has quit [Quit: WeeChat 1.5]
<Wildfyr> is there anyway to change dir in ruby
<shevy> Wildfyr via Dir.chdir if the dir exists
sarbs has quit [Max SendQ exceeded]
<Wildfyr> Dir.chdir works but as soon as the program exits you go back to the original dir
sarbs has joined #ruby
<Wildfyr> If it helps, I use linux
arooni has quit [Read error: Connection reset by peer]
arooni_ has joined #ruby
<shevy> yeah if you start it from a shell
<shevy> via kde3 dcop you could do so via ruby too for kde konsole
<shevy> what shell do you use by the way?
amclain_ has joined #ruby
<baweaver> honestly I'd not change directories outside the context of the program, makes it harder to reuse later.
<baweaver> or pipe or do other things
arooni_ has quit [Read error: Connection reset by peer]
amclain has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
<havenwood> Wildfyr: How about something like?: Dir.chdir(dir_path) { exec ENV['SHELL'] or '/bin/sh' }
macsteps has joined #ruby
ramfjord has joined #ruby
<Wildfyr> havenwood: okay, giving it a try
<havenwood> whathappens: Good mornin'!
<Wildfyr> havenwood: thanks, it works
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
aep-shoutlet has joined #ruby
rcvalle has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
arooni_______ has joined #ruby
replay has joined #ruby
cschneid_ has joined #ruby
<A124> Is there a way to have a global rescue for certain error and retry from the line that raised that error??
stephan_ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
rodfersou|lunch is now known as rodfersou
<cschneid_> is there a license string for gemspecs that is "proprietary" or similar?
<cschneid_> "custom, read license.md plz"
wilbert has quit [Quit: quit]
<A124> Or 'redo' in this sense. In my scope if I wrap everything one by one does not change a thing
yardenbar has quit [Ping timeout: 240 seconds]
arooni has quit [Read error: No route to host]
KCmetro has joined #ruby
arooni_______ has quit [Read error: No route to host]
stoopidmunkey has joined #ruby
<havenwood> cschneid_: Just don't license it unless you actually want to license it in some way. You can just assert the copyright.
l4v2 has quit [Quit: l4v2]
<cschneid_> we have a license.md file that's clear - somebody wants the gemspec flag marked.
cdg has joined #ruby
SilverKey has joined #ruby
<cschneid_> my guess is that they have an audit tool of some sort
KCmetro has quit [Remote host closed the connection]
Pupeno has joined #ruby
<cschneid_> I can stick "Proprietary" there, was just looking for a commonly used string, the way people standardized on "GPL-3" or "MIT" or whatever.
macsteps has quit [Remote host closed the connection]
<shevy> A124 I think you have to wrap the code around begin/rescue or perhaps catch/throw; you can also use things such as Signal.trap('SIGINT') { exit } ... and I think there may even be a way for the dynamic global rescue you describe perhaps without wrapping it ... but I never thought about it much. I always end up using begin/rescue
<havenwood> A124: Put the `begin` before where you want to retry with the `retry` in your `rescue`, or is that not what you mean?
KCmetro has joined #ruby
<havenwood> cschneid_: Dunno if you'll find one you like, but you can see a list of the RubyGems license identifiers with: Gem::Licenses::IDENTIFIERS
<cschneid_> A124: I don't think you can rescue an exception that far away from the raising code, handle it, then restart the raising code. Part of raising exceptions is unwinding the stack, I think you'd lose all context as the exception propagates up, there wouldn't be something to restart
digneety has quit [Quit: digneety]
<cschneid_> A124: If it were a common pattern, you can look at the various retries libraries out there like https://github.com/ooyala/retries
<smathy> Yeah, you can only retry the block you're rescuing at.
<cschneid_> havenwood: cool, I'll look
<A124> havenwood well my case is database connection is crappy, and is used several times. And when timeout it should just wait, estabilish new connection and retry. So yeah, I guess then I have to wrap everything. Do not want to re-reun the rest of iteration.
<havenwood> cschneid_: I think just "All rights reserved" instead of a license though. No license.
<A124> cschneid_ Thanks
grill has quit [Quit: yolo.swag]
<cschneid_> havenwood: 2 distinct things. We have a License.md file in the repo, it's clear and what we want. But it's not open source unfortunately, and somebody is asking to mark our gemspec as such.
<havenwood> cschneid_: The absence of a license means unlicensed. I do see "Unlicense" in the RubyGems list but I'm not sure if it means what it says. :P
Eiam_ has joined #ruby
_derpy is now known as `derpy
<havenwood> cschneid_: Nope, don't use that. Haha.
<shevy> what's it do!
agentmeerkat has joined #ruby
<havenwood> "This is free and unencumbered software released into the public domain." <- not lack of a license
<shevy> oh
<shevy> too much license for a non-license!
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<havenwood> cschneid_: I suggest: spec.licenses = []
<shevy> some of it I consider somewhat excessive... like attaching a license on stackoverflow by default for like a 3 lines method
KCmetro has quit [Remote host closed the connection]
Es0teric has joined #ruby
<havenwood> cschneid_: I'd just assert the copyright in the license.md. Then no license.
sicn has quit []
KCmetro has joined #ruby
<cschneid_> yeah, I'm going to ask why the original requester wants this, to guide the right solution
<cschneid_> just mildly surprised there's no "Go look elsewhere" string. Maybe I'll go make a rubygems issue too :)
Devalo has joined #ruby
TomyLobo has joined #ruby
swills has quit [Quit: Leaving]
<havenwood> cschneid_: I think licenses being an empty array might be the best way to say no license. But I see your point that an "All rights reserved" style license would be consistent.
<cschneid_> well, it seems to not fail building if I put arbitrary strings in `license=`, so I'll put "Proprietary" and move on.
<havenwood> cschneid_: Just be warned that someone could publish a "Proprietary" license that means unencumbered. :P
<cschneid_> hah
evansbee has joined #ruby
<cschneid_> s.license = "Proprietary (See License.md)"
<cschneid_> I don't think you can redefine legal terms like that. Judges wouldn't approve.
<havenwood> cschneid_: :-)
Es0teric has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
7YUABIM50 has joined #ruby
RushPL has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
arooni_______ has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> cool
matp has quit [Remote host closed the connection]
zacts has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
matp has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
deecross has joined #ruby
arooni_______ has joined #ruby
SilverKey has quit [Quit: Halted.]
agentmeerkat has quit [Ping timeout: 276 seconds]
milesmatthias has joined #ruby
ghr has joined #ruby
tubuliferous has joined #ruby
roamingdog has joined #ruby
pdoherty has quit [Ping timeout: 276 seconds]
KCmetro has quit [Read error: Connection reset by peer]
KCmetro has joined #ruby
blackmesa has joined #ruby
KCmetro has quit [Client Quit]
Coldblackice has joined #ruby
akira616 has joined #ruby
stoopidmunkey has quit []
milesmatthias has quit [Client Quit]
ascarter has joined #ruby
dfinninger has joined #ruby
Devalo has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
arooni_______ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
sebstrax has joined #ruby
arooni_______ has joined #ruby
AndrewIsHere has joined #ruby
ta_ has joined #ruby
JakFrist has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
CloCkWeRX has joined #ruby
stephan_ has joined #ruby
ghr has joined #ruby
Wildfyr has quit [Quit: Bye]
Gasher has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
ta_ has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
freerobby has quit [Quit: Leaving.]
<karapetyan> Hello, how to check method was passed as argument without calling it? https://repl.it/C9T4/1
akira616 has quit [Ping timeout: 272 seconds]
tokynet has joined #ruby
<karapetyan> if method == false # always calling method (method).
<jhass> karapetyan: you can't pass a method without calling it
mattwashere has joined #ruby
<jhass> you can get an object that describes a method and pass that object
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you can pass the name of a method as symbol and call it with public_send
Pupeno has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
<jhass> but just writing the name of a method already calls it, always
<karapetyan> jhass: okay, thank you!
M-Kodo has quit [Read error: Connection reset by peer]
M-mistake has quit [Read error: Connection reset by peer]
M-shine has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
gregf has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
SilverKey has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 244 seconds]
workmad3 has quit [Read error: Connection reset by peer]
hipertracker has quit [Quit: hipertracker]
Pupeno has quit [Ping timeout: 258 seconds]
yqt has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
arooni_______ has quit [Ping timeout: 240 seconds]
hipertracker has joined #ruby
et09 has joined #ruby
arooni_______ has joined #ruby
<et09> i have an array ['to_i','minutes']
<et09> how do i turn it into a proc which calls those two methods sequentiallyw on a value
<et09> or a lambda really
<Papierkorb> et09: Check out Array#inject and Object#public_send
<et09> ah brilliant, thanks
johnmilton has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 276 seconds]
GodFather has quit [Ping timeout: 264 seconds]
deadnull is now known as _deadnull
karapetyan has quit [Remote host closed the connection]
<et09> well the only thing is i don't want the proc to contain the array
<et09> i want it to just point directly to the methods
<Papierkorb> Why not?
<et09> speed is kind of a concern
karapetyan has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
<Papierkorb> If that's the case, why do you need to have it so dynamic?
<Papierkorb> You also can build the ruby calls from it and then #eval it
arooni_______ has joined #ruby
ghr has joined #ruby
bigkevmcd has joined #ruby
basex__ has quit [Quit: basex__]
<et09> it's an interesting story lol
<Papierkorb> Seriously ugly and don't recommend it yadda yadda, but: eval("lambda(x){ x.#{calls.join '.'} }")
Gasher has joined #ruby
karapetyan has quit [Remote host closed the connection]
<et09> calls is programmed-defined
<Papierkorb> err, lambda{|x|, but you get the idea
<et09> programmer*
<et09> so it's not the end of the world
M-shine has joined #ruby
SilverKey has quit [Quit: Halted.]
spider-mario has joined #ruby
karapetyan has joined #ruby
<Papierkorb> et09: try the evil method above
digneety has joined #ruby
agentmeerkat has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
last_staff has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<et09> it works
agit0 has joined #ruby
dc4 has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 240 seconds]
prestorium has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
qcqqnq has quit [Remote host closed the connection]
yfeldblum has joined #ruby
symm- has joined #ruby
macsteps has joined #ruby
<jhass> is that really any faster?
<jhass> I expect the two string allocs to be as expensive if not more expensive
bigkevmcd has quit [Quit: Outta here...]
SilverKey has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
tubuliferous has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
ta_ has joined #ruby
<Papierkorb> jhass: the idea would be to cache the Proc
ascarter has joined #ruby
shinnya has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
<Papierkorb> if it weren't for that, i'd /expect/ it to be slower
arooni_______ has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
arooni_______ has joined #ruby
digneety has quit [Quit: digneety]
M-Kodo has joined #ruby
moei has joined #ruby
leea has joined #ruby
postmodern has joined #ruby
platzhirsch has joined #ruby
ghr has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Remote host closed the connection]
tubuliferous has joined #ruby
calmchaos has joined #ruby
digneety has joined #ruby
isberg has joined #ruby
<jhass> dunno, tbh everything about this smells terrible
flashpoint9 has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
peteykun has quit [Quit: Leaving]
arooni_______ has joined #ruby
matp has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
swills has joined #ruby
mattwashere has quit [Remote host closed the connection]
karapetyan has joined #ruby
mattwashere has joined #ruby
burgestrand has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
burgestrand has left #ruby [#ruby]
macsteps has quit [Remote host closed the connection]
dopamean_ has joined #ruby
mattwashere has joined #ruby
macsteps has joined #ruby
vuoto has joined #ruby
nullfxn has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nullfxn has quit [Client Quit]
nankyokusei has joined #ruby
schickung has quit [Quit: schickung]
<todd_dsm_wk> Odd question, but I'm hoping to get a greater understanding of the state of JRuby. No distro seems to be supporting it very well. Is it too new? Is it dying? Just looking for developer observation here; nothing technical.
ghr has joined #ruby
<jhass> headius: ^
<headius> todd_dsm_wk: definitely not dying...we have hundreds or thousands of companies using it
<Papierkorb> todd_dsm_wk: There's #jruby, which at least up until two months ago, was far from dying, in fact, it was pretty active over there
nullfxn has joined #ruby
<todd_dsm_wk> headius: that's good to know.
<headius> Papierkorb: still very active most days
<Papierkorb> headius: thought as much :)
<headius> todd_dsm_wk: what distro?
<todd_dsm_wk> Papierkorb: I didn't really want to ask the JRuby people how it was doing. I figured the answer would support the movement :-)
<Papierkorb> I guess with JRuby it's a bit like many things (big?) companies use. You don't hear from it all the time if you're not invested into it, but it's alive and well
<headius> yeah that's a big part of it unfortunately
<todd_dsm_wk> headius: I've tried fedora, it flat sucked.
<headius> fedora should have up to date packages but I don't know who is maintaining them now
kus has joined #ruby
kus has quit [Max SendQ exceeded]
Dimik has joined #ruby
<Papierkorb> todd_dsm_wk: ArchLinux has the recent jruby in its repository, works flawlessly
<todd_dsm_wk> Now I'm looking at debian, it has jruby 1.2 available but we need 1.7 which is in their "unstable" repo.
<headius> ugh, they're way behind then
<todd_dsm_wk> yea
<Papierkorb> Apart from that, you could use chruby+ruby-install to install it locally if you don't want to use the plain JAR yourself
<headius> 1.7 will EOL at end of year even
arooni_______ has quit [Read error: Connection reset by peer]
<headius> we'd be happy to publish debs and rpms with every release if someone contributed the right magic
<todd_dsm_wk> Papierkorb: maybe that's what I'm missing; I'm just a lowly sysadmin trying to make sense of this thing.
arooni_______ has joined #ruby
<headius> we haven't thusfar because each distro's package maintainer insists on them doing their own
<headius> or they usually do
<Papierkorb> todd_dsm_wk: Ah. Yeah, so, most (all?) ruby version managers should have support for JRuby. You may have to install a JVM for it though.
<todd_dsm_wk> headius: I'd be willing to build the chip-in on building a .deb package.
zacts has joined #ruby
<headius> there is this which seems to be updated recently: https://github.com/jruby/jruby/wiki/JRubyDistributions
postmodern has quit [Ping timeout: 250 seconds]
<todd_dsm_wk> Papierkorb: I have openjdk-8-jdk and openjdk-8-jre-headless installed. that seems to make the devs happy.
burgestrand has joined #ruby
pdoherty has joined #ruby
burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
hxegon_afk is now known as hxegon
burgestrand has joined #ruby
<headius> you should only need headless but it doesn't matter
<todd_dsm_wk> headius: jeeze - windows is ahead here. that's got to be bad.
mattwashere has quit [Remote host closed the connection]
<headius> yeah we publish an installer for Windows
mdw has quit [Quit: Sleeping Zzzzz]
<headius> other packages would just be another artifact
karapetyan has quit [Remote host closed the connection]
mattwashere has joined #ruby
rbennacer has quit [Remote host closed the connection]
banisterfiend has joined #ruby
rbennacer has joined #ruby
mattwashere has quit [Read error: No route to host]
<headius> todd_dsm_wk: if you think you can help us set up a .deb open an issue at bugs.jruby.org
<headius> I think it's worth doing
mattwashere has joined #ruby
<todd_dsm_wk> reading back, the 1.7 package will EOL at the end of this year?
rbennacer has quit [Remote host closed the connection]
solocshaw has joined #ruby
<todd_dsm_wk> headius: re: the .deb package - I've just emailed them today: debian-java@lists.debian.org to see what the process is for providing them with a package.
ghr has quit [Ping timeout: 240 seconds]
Vingador has joined #ruby
calmchaos has quit [Ping timeout: 250 seconds]
<todd_dsm_wk> I've installed the 1.2 version so I know where they *would* want everything to go.
_deadnull is now known as deadnull
arooni_______ has quit [Read error: Connection reset by peer]
M-mistake has joined #ruby
arooni_______ has joined #ruby
Es0teric has joined #ruby
calmchaos has joined #ruby
harfangk has quit [Quit: harfangk]
freerobby has joined #ruby
calmchaos has quit [Read error: Connection reset by peer]
calmchaos has joined #ruby
arooni has joined #ruby
ghr has joined #ruby
<todd_dsm_wk> Maybe I should be asking, if you guys were going to install jruby 1.7 what method would you use?
macsteps has quit [Remote host closed the connection]
postmodern has joined #ruby
polll has joined #ruby
mdw has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
<Papierkorb> jhass, et09: I was curios so I bench'd eval vs inject for this: https://gist.github.com/Papierkorb/c56c874ea4feac772b12fb62aa6eb080 (eval is ~5.1 times faster)
pawnbox has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
digneety has quit [Quit: digneety]
<Papierkorb> Though it would've been surprising if it were the other way round..
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
<headius> todd_dsm_wk: we usually recommend a Ruby switch (like rvm) or just unpacking tarball
<headius> the tarball we publish is a binary and should run anywhere there's a JVM
<Papierkorb> Readability-wise, I'm not sure if the #inject one is better.
fmcgeough has quit [Ping timeout: 258 seconds]
<todd_dsm_wk> I think regardless of whatever distro, I'll just have to script out this install. If that's the best/most-supportable method then that's pretty much all I got left.
<todd_dsm_wk> what's the #inject one?
<headius> the tarball instructions are pretty simple, so it's up to you
<headius> unpack, put in bin, optionally install jruby-launcher for a native executable
<Papierkorb> todd_dsm_wk: Was not directed at you, sorry for the confusion
<headius> er put bin in PATH
<todd_dsm_wk> oh, ok
<headius> bbiab...stop by #jruby if you have any other questions :-)
A124 has quit [Quit: '']
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Write error: Connection reset by peer]
deadnull has quit [Quit: Bye]
ghr has quit [Ping timeout: 240 seconds]
<havenwood> todd_dsm_wk: Here's how ruby-install installs the JRuby tarball: https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/jruby/functions.sh
arooni_______ has joined #ruby
arooni has joined #ruby
blackmesa has joined #ruby
<havenwood> todd_dsm_wk: You can fetch the latest JRuby checksums and install the most recent version with: ruby-install --latest jruby
mdw has quit [Quit: Sleeping Zzzzz]
macsteps has joined #ruby
<havenwood> todd_dsm_wk: Or it's indeed easy to do yourself since they package a nice precompiled tarball!
<todd_dsm_wk> havenwood: that seems easy enough to document/teach.
codecop has joined #ruby
rbennacer has joined #ruby
<todd_dsm_wk> I'm not really worried about me. I'm concerned with handing it off to a bunch of developers that love it but can't maintain it without my intervention.
djbkd has joined #ruby
<todd_dsm_wk> But this (ruby-install --latest jruby) looks great.
SilverKey has quit [Quit: Halted.]
shinnya has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
matp has joined #ruby
ghr has joined #ruby
<havenwood> todd_dsm_wk: Installing with ruby-install and switching with chruby makes it dead simple, if that's all you need.
vuoto has quit [Remote host closed the connection]
<havenwood> chruby will autodetect the ruby-install default installation location or you can tell it where to look
Olipro has quit [Ping timeout: 258 seconds]
<havenwood> to switch to latest jruby for example: chruby jruby
Frank has joined #ruby
Frank has left #ruby ["out"]
<havenwood> todd_dsm_wk: chruby just puts the Ruby and gem bin/ in PATH and correctly sets other env vars like GEM_HOME, GEM_PATH, etc
arthurl has joined #ruby
<todd_dsm_wk> havenwood: I'm on with my dev right now. He knows what you're talking about :-)
<havenwood> todd_dsm_wk: :-)
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arthurl> hi guys- trying to understand if this is valid ternary operator syntax
<arthurl> var = (Rails.env.production? or Rails.env.studio?) ? "https://www.test1.com" : "https://test2.com"
Xeago_ has joined #ruby
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
<Papierkorb> arthurl: looks fine
<arthurl> Papierkorb thank you sir
arooni_______ has joined #ruby
arooni has joined #ruby
<havenwood> arthurl: `=` has a higher precedence than `or`
pawnbox has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<arthurl> havenwood are you saying the parentheses here don't matter? and/or that I should be using || instead?
<havenwood> arthurl: Yeah, you should be using the boolean or `||` instead.
<Papierkorb> arthurl: Prefer || and && in general, the precedence rules of 'and' and 'or' are probably unexpected
Olipro has joined #ruby
<havenwood> arthurl: The `and` and `or` are for flow control.
polll has quit [Quit: leaving]
<havenwood> arthurl: What you have is like: Rails.env.studio? if Rails.env.production?
<havenwood> arthurl: You're really wanting a boolean expression.
<smathy> With the || you don't require parens.
<arthurl> i see- so for what i'm trying to do that syntax is wrong after all
<smathy> Not wrong, just not using the operators in an idiomatic way.
pawnbox has quit [Ping timeout: 246 seconds]
<arthurl> var = Rails.env.production? || Rails.env.studio? ? "https://www.test1.com" : "https://test2.com"
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<smathy> Yep.
<arthurl> unless Rails.env.production? || Rails.env.studio?
<arthurl> cool thanks guys- i appreciate the help
agentmeerkat has joined #ruby
<havenwood> arthurl: Happy coding!
rbennace_ has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
bogn has joined #ruby
<arthurl> havenwood thanks - I'm a backend/devops guy that's taking a stab at ruby/ror
arooni_______ has quit [Read error: Connection reset by peer]
arooni has quit [Read error: Connection reset by peer]
<havenwood> arthurl: If you didn't already know there's a #RubyOnRails channel too if you run into Rails-specific stuff.
al2o3-cr has quit [Quit: WeeChat 1.5]
arooni_______ has joined #ruby
ChiefAlexander has joined #ruby
<arthurl> havenwood yup on there as well- very rarely post on irc as i try to google things to the best of my ability but sometimes you guys are way faster :)
arooni has joined #ruby
JoshGlzBrk has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
akira616 has joined #ruby
ta__ has joined #ruby
Guest84148 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
rbennace_ has quit [Read error: Connection reset by peer]
wigust has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
Dimik has quit [Ping timeout: 260 seconds]
wigust has quit [Client Quit]
GodFather has joined #ruby
wigust has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ascarter has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
bogn has quit [Quit: Leaving.]
davedev24 has quit []
bogn has joined #ruby
et09 has quit [Quit: leaving]
A124 has joined #ruby
solars has joined #ruby
rbennacer has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
arooni_______ has quit [Read error: Connection reset by peer]
arooni has quit [Read error: Connection reset by peer]
elifoster has joined #ruby
arooni_______ has joined #ruby
kavanagh has joined #ruby
arooni has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
ReK2GnULinuX has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
Mattx has joined #ruby
solocshaw has quit [Quit: solocshaw]
ghr has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
kirun has joined #ruby
al2o3-cr has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
7YUABIM50 has quit [Remote host closed the connection]
dhollinger has joined #ruby
<todd_dsm_wk> havenwood: you were right, dead simple. I did noticed that it auto-pulled java-7-openjdk as well - slick.
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
arooni has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ghr has joined #ruby
platzhirsch has quit [Ping timeout: 244 seconds]
hutch34_ has quit [Ping timeout: 264 seconds]
whathappens has quit [Ping timeout: 276 seconds]
rbennace_ has joined #ruby
tjbiddle has joined #ruby
rbennace_ has quit [Read error: Connection reset by peer]
rbennace_ has joined #ruby
mattwashere has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 246 seconds]
mattwashere has joined #ruby
DTZUZU has joined #ruby
weaksauce has joined #ruby
arooni_______ has quit [Read error: Connection reset by peer]
mattwashere has quit [Read error: No route to host]
arooni has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
arooni has joined #ruby
tvw has quit []
arooni_______ has joined #ruby
jaguarmagenta has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
macsteps has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
macsteps has joined #ruby
ghr has joined #ruby
ghr has quit [Excess Flood]
roshanavand has joined #ruby
hutch34_ has joined #ruby
ghr has joined #ruby
ghr has quit [Excess Flood]
dc4 has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
ghr has quit [Excess Flood]
ghr has joined #ruby
ghr has quit [Excess Flood]
jaguarmagenta has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
jenrzzz has joined #ruby
vuoto has joined #ruby
artisangoose has joined #ruby
<artisangoose> Anyone out there looking for a small project to work on? Need a small amount of Ruby code written.
hck89 has joined #ruby
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
arooni has joined #ruby
arooni_______ has joined #ruby
Pupeno has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
LoneHermit has joined #ruby
workmad3 has joined #ruby
dc4 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<artisangoose> Anyone out there looking for a small project to work on? Need a small amount of Ruby code written.
LuckyABA has quit [Read error: Connection reset by peer]
bogn has quit [Read error: Connection reset by peer]
bogn1 has joined #ruby
Pupeno has quit [Ping timeout: 258 seconds]
<havenwood> artisangoose: Say more about the project? Someone might bite.
Spami has joined #ruby
xue has quit [Ping timeout: 276 seconds]
<artisangoose> Simply need an omniauth plugin written for OpenProject that will allow SSO with GitLab https://www.openproject.org/open-source/development/create-omniauth-plugin/
xue has joined #ruby
pawnbox has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Remote host closed the connection]
ghr has joined #ruby
kavanagh has quit [Quit: That's all folks!]
pawnbox has joined #ruby
flughafen_ has quit [Ping timeout: 258 seconds]
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [Read error: Connection reset by peer]
<arthurl> Braintree::Configuration.environment = Rails.env == "production" || Rails.env == "studio" ? :production : :sandbox
<arthurl> anything wrong w/ that syntax?
arooni_______ has joined #ruby
zacstewart has joined #ruby
arooni has joined #ruby
bogn1 has quit [Ping timeout: 264 seconds]
<smathy> No.
replay has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 240 seconds]
<arthurl> thanks :)
nando293921 has joined #ruby
<smathy> Another common idiom in ruby when comparing the one thing to a number of options is to do: %w[production studio].include?(Rails.env) ? ....
pawnbox has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
bogn has joined #ruby
Pupeno has joined #ruby
zeroDi has joined #ruby
<arthurl> smathy thanks taking a look at the %w documentation now
calmchaos has quit [Remote host closed the connection]
dc4 has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
<smathy> arthurl, oh sorry, that's just ruby sugar for: ["production", "studio"]
<arthurl> got it
<arthurl> can't hurt to know
arooni_______ has quit [Read error: Connection reset by peer]
AngryBuzzy has joined #ruby
<smathy> ...my point was to do `[a, b].include?(value)` instead of `value == a || value == b`
ghr has joined #ruby
arooni_______ has joined #ruby
<arthurl> i see- that's cleaner for sure
arooni has quit [Read error: Connection reset by peer]
<arthurl> thank you- the actual devs might feel threatened though :)
<jhass> I'm actually not sure I agree for just two values
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
bogn has quit [Ping timeout: 276 seconds]
dfinninger has quit []
nogic has joined #ruby
<smathy> Yeah, six of one for me with two, this being list-ish would probably sway me.
skade has joined #ruby
blackgoat has joined #ruby
<todd_dsm_wk> havenwood: I gotta say - pretty slick. thanks again.
spudowiar has joined #ruby
dc4 has joined #ruby
hutch34_ has quit [Ping timeout: 276 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
bogn has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
arooni_______ has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
swills has quit [Ping timeout: 276 seconds]
mwlang has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34_ has joined #ruby
bogn has quit [Ping timeout: 250 seconds]
Gasher has quit [Quit: Leaving]
Gasher has joined #ruby
arooni has joined #ruby
bogn has joined #ruby
arooni has quit [Read error: Connection reset by peer]
arooni_______ has quit [K-Lined]
Blurr has joined #ruby
ghr has joined #ruby
postapocallyptic has joined #ruby
<postapocallyptic> is there a channel for rails?
<smathy> #rubyonrails
<postapocallyptic> thx
<postapocallyptic> ruby is general app language and rails is for web right?
<jhass> yes
<postapocallyptic> or can rails be used to make pc apps too?
ghr has quit [Ping timeout: 240 seconds]
<jhass> not in a sensible manner
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
replay has joined #ruby
neanderslob has joined #ruby
bogn has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
whathappens has joined #ruby
<drbrain> although it has happened with a web view UI that talks HTTP to a server running on localhost
ghr has joined #ruby
blackmesa has joined #ruby
ur5us has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
zacts has quit [Quit: WeeChat 1.4]
digneety has joined #ruby
vuoto has quit [Remote host closed the connection]
triangles has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
digneety has quit [Client Quit]
ghr has quit [Ping timeout: 240 seconds]
skade has joined #ruby
wigust has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
GinoManWorks has quit [Read error: Connection reset by peer]
Oclair_ has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eljimmy has quit [Quit: This computer has gone to sleep]
deecross has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
ghr has joined #ruby
Oclair has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
<akira616> lol what pc app was made with rails?
chouhoulis has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
<akira616> i know apple uses Ember for iTunes stuff
ghr has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
chouhoul_ has quit [Ping timeout: 276 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnmilton has joined #ruby
<drbrain> I don't recall, but it's similar to how the Slack app works, the server was local instead
<drbrain> it might have been a toolkit?
jrabe has joined #ruby
<akira616> ah
mwlang has quit [Quit: mwlang]
loocash has joined #ruby
blackmesa has joined #ruby
<artisangoose> Has anyone worked with OmniAuth?
<hxegon> what's the deal with Array#zip? blocks return nil?
<russt> i/go
sdwrage has joined #ruby
ghr has joined #ruby
loocash has quit [Client Quit]
jnoob22 has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
ldnunes_ has quit [Quit: Leaving]
Gasher has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
allcentury has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tvw has joined #ruby
LoneHerm_ has joined #ruby
ta__ has quit [Ping timeout: 246 seconds]
swills has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby
elifoster has quit [Ping timeout: 272 seconds]
<smathy> hxegon, I can't imagine any (good) use for that, side effect by design.
johnmilton has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
ghr has joined #ruby
tubuliferous has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
Pupeno has quit [Remote host closed the connection]
platzhirsch has joined #ruby
ramortegui has quit [Remote host closed the connection]
banisterfiend is now known as banisterfiend`
symm- has joined #ruby
zacstewart has joined #ruby
johnmilton has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 240 seconds]
jooni has joined #ruby
elifoster has joined #ruby
platzhirsch has quit [Client Quit]
SilverKey has joined #ruby
bruce_lee has quit [Ping timeout: 244 seconds]
bruce_lee has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
terrabl has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<terrabl> Hey guys, how would I use gsub or sub to change this string {"gametitle"=>"FIFA"} into this {"gametitle"=>/FIFA/} I understand that gsub is global sub and I know that sub only does the first occurance so could I make it so sub does the 3rd and 4th occurances?
AlexRussia has quit [Ping timeout: 264 seconds]
<hxegon> smathy: right? I #zip seems like a weird rough spot
nettoweb has joined #ruby
<shevy> terrabl that looks like a hash
flashpoint9 has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has joined #ruby
<drbrain> terrabl: use => as an anchor to find the second set of "
<drbrain> terrabl: hint: http://rubular.com
<hxegon> positive look behind, but using a regex to perform hash operations is, uh, bad.
<terrabl> That's what I was thinking but could you further explain how to get to that using sub?
Pupeno has joined #ruby
eljimmy has joined #ruby
* smathy is afraid what's going to happen next with that string - *cough* eval *sadpanda*
ghr has joined #ruby
<drbrain> ugh, hint failed, this is the right link: http://rubular.com/r/uQ54NpjbqX
allcentury has joined #ruby
<drbrain> terrabl: how do you match a " after => in regexp?
<terrabl> Yeah, i have never really worked with regex but I understand matching, just not replacing.
* smathy loves the idea of a lookbehind for the string => ;)
<smathy> Wide spaceship.
<hxegon> terrabl: use capture groups
<hxegon> lol smathy
<drbrain> terrabl: if you know how to match then you're most of the way there
<hxegon> if this is a hash couldn't you just use Regex.new(hash['gametitle'])?
<drbrain> … I would approach this as let's wrap FIFA in different characters
<drbrain> hxegon: it's not a hash, it's a String
wigust has joined #ruby
wigust has quit [Client Quit]
<drbrain> hxegon: '{"gametitle"=>"FIFA"}' to '{"gametitle"=>/FIFA/}'
<hxegon> it looks like a hash shoved into a string
<smathy> (or maybe the REPL output ;)
haxrbyte_ has joined #ruby
pickandmix has quit [Quit: WeeChat 1.4]
wigust has joined #ruby
<hxegon> I have an idea
<shevy> yay!
ketherah has joined #ruby
<hxegon> have to test something
<hxegon> >> require 'json'
<ruby[bot]> hxegon: # => true (https://eval.in/601565)
<smathy> => isn't JSON
<apeiros> => ain't json
haxrbyte has quit [Ping timeout: 252 seconds]
<apeiros> ^5 smathy
<smathy> :)
<apeiros> there's literal_parser which can handle the above. without eval.
<baweaver> >> this == 'json'
<ruby[bot]> baweaver: # => undefined local variable or method `this' for main:Object (NameError) ...check link for more (https://eval.in/601571)
* baweaver grumbles
<soahccc> Hey guys. I have an odd problem and I just can't troubleshoot it... I use chruby (if that matters) and a ruby daemon (using daemons gem). The project used to run fine but now using daemon's "start" it fails while "run" still works... very odd I think: https://gist.github.com/2called-chaos/94e2fc50b3390749d025c65b65231d2d
<baweaver> does the user have httparty gem installed?
<baweaver> (*the user running the daemon)
<soahccc> baweaver: it uses bundler and bundles into vendor/bundle so yeah it is installed. also both "run" and "start" were ran by the same user
johnmilton has joined #ruby
Blurr has left #ruby ["Leaving"]
banisterfiend` is now known as banisterfiend
<hxegon> >> require 'json'; hash = JSON.parse('{"gametitle"=>"FIFA"}'.gsub('=>', ':')); hash['gametitle'] = Regexp.new(hash['gametitle']); hash
<ruby[bot]> hxegon: # => {"gametitle"=>/FIFA/} (https://eval.in/601573)
<hxegon> HA
<hxegon> !next
calmchaos has joined #ruby
<soahccc> I tried to debug it by printing some enviromental variables... They use the same ruby, etc. This is why I have no explanation of what is going south here
banisterfiend is now known as banisterfiend`
isberg has quit [Read error: Connection reset by peer]
<hxegon> >> require 'json'; hash = JSON.parse('{"gametitle"=>"FIFA"}'.gsub('=>', ':')); hash['gametitle'] = Regexp.new(hash['gametitle']); hash.to_s # whoops
<ruby[bot]> hxegon: # => "{\"gametitle\"=>/FIFA/}" (https://eval.in/601574)
aep-shoutlet has quit [Quit: Connection closed for inactivity]
isberg has joined #ruby
dikaio has joined #ruby
rbennace_ has quit [Remote host closed the connection]
banisterfiend` has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
banisterfiend is now known as banisterfiend`
banisterfiend` is now known as banisterfiend
davedev24 has quit [Remote host closed the connection]
ta_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
cd-rum has joined #ruby
davedev24 has joined #ruby
skade has quit [Read error: Connection reset by peer]
<arthurl> why is it that my my 'irb' doesn't throw errors?
skade has joined #ruby
<arthurl> basically i'm just trying to write/test simple ruby code from irb on osx
Gasher has joined #ruby
<jhass> why should it?
coffeecupp has joined #ruby
<jhass> in other words what do you expect to throw an error?
akira616 has left #ruby ["Leaving"]
Guest43 has joined #ruby
<arthurl> i'd expect a shell to throw syntax errors?
akira616 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<jhass> I mean what do you enter
artisangoose has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest43 has quit [Changing host]
Guest43 has joined #ruby
<jhass> make a screenshot or so
<arthurl> well like anything "adfasdf"
<arthurl> no output
<arthurl> after i press enter
<jhass> you might have started an unfinished expression the line before
<toretore> arthurl: copy your irb session and paste on gist.github.com
SilverKey has quit [Quit: Halted.]
<jhass> like if you type for foo in bar; do; and then stuff you don't get an error until you write done
<arthurl> ahh jhass that was it :)
<jhass> in your regular shell
<arthurl> rookie mistake..
<jhass> arthurl: notice how the prompt changes ;)
<arthurl> toretore jhass was right- i somehow started an expression and didn't end it
skade has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arthurl> you mean 004:0 to 005:1 for example?
<arthurl> now i see
<arthurl> :)
kareeoleez has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
<soahccc> w
firstdayonthejob has quit [Ping timeout: 240 seconds]
<soahccc> baweaver: Oh man, I figured it out.. It was so subtle... It was a different instance. tst and test... These typos sometimes
<jhass> sounds like you need better variable names :P
skade has joined #ruby
<isberg> Is "&&" a reserved keyword in Ruby? I can't manage to override it like I can with ">>" and ">"
jenrzzz has joined #ruby
<jhass> isberg: yes, && is actually syntax and not a method call
<isberg> jhass Aha, thanks!
<isberg> I'll stick with &
<jhass> same for ||, and, or, if, unless, while, until, begin, rescue, def, class, module
skweek has quit [Ping timeout: 252 seconds]
<jhass> not I believe is rewritten to ! which is a method
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
<isberg> | and & works
LoneHerm_ has joined #ruby
leea has joined #ruby
<soahccc> jhass: you meant me with the variable names? It was the name of the instance/config
<jhass> yes
workmad3 has quit [Ping timeout: 250 seconds]
<jhass> then better name for that :P
aryaching has quit [Ping timeout: 252 seconds]
<isberg> havenwood Thanks!
<jhass> havenwood is out secret factoid bot, in case anybody didn't notice yet
ur5us has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<soahccc> jhass: well "test" might not be the best name to name something but the problem was that I at some point must have started the process with a typo (tst) so that the daemon kept restarting growing a 186GB log file :D I was debugging the correct "test" one
ur5us has joined #ruby
pawnbox has joined #ruby
ascarter has joined #ruby
skade has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mathuin has joined #ruby
skade has joined #ruby
<Mathuin> I have identified a commit which has introduced a regression. The commit was on March 17, 2011, and fails when copying files to an NFS-mounted directory. I found the issue when building Ruby 2.3.1 but it's still in trunk today. What should I do?
pawnbox has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 260 seconds]
dopamean_ has quit [Ping timeout: 264 seconds]
Oclair has joined #ruby
<havenwood> Mathuin: See if you can find a related issue here: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
<jhass> if there's a ticket on https://bugs.ruby-lang.org/ about it, mention it there, else open a new one
ghr has quit [Ping timeout: 240 seconds]
<jhass> I'm just too slow for the factoid bot :(
mkosaki has joined #ruby
last_staff has quit [Quit: last_staff]
jrafanie has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
spectra_ has quit [Ping timeout: 272 seconds]
<Mathuin> The actual problem is with File.open(), which appears to be in io.c if I understand correctly.
Oclair_ has quit [Ping timeout: 276 seconds]
rodfersou has quit [Quit: leaving]
<jhass> yes
<Mathuin> How hard is it to generate a C traceback instead of a Ruby traceback when an error comes up?
Mattx has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
rodfersou has quit [Client Quit]
xlegoman has joined #ruby
ghr has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
Gasher has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 250 seconds]
<akira616>
johnmilton has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 250 seconds]
ensyde__ has joined #ruby
pdoherty has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
Kerea has joined #ruby
jrabe has quit [Quit: Disconnected]
dikaio has joined #ruby
bogn has joined #ruby
jrabe has joined #ruby
davedev24 has joined #ruby
spudowiar has quit [Quit: nite :)]
ghr has joined #ruby
Pupeno has quit [Remote host closed the connection]
ur5us has joined #ruby
zacstewart has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<Mathuin> I think that question was poorly formed. I apologize. The Ruby traceback includes 'Permission denied @ rb_sysopen' which points at rb_sysopen (io.c:5424 in master) but the only failure path I see in that function is rb_sys_fail_path, which doesn't seem to include an error.
tubuliferous has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
zenlot6 has joined #ruby
<Mathuin> I thought a C traceback might tell me whether it failed in rb_sysopen or rb_sysopen_internal or rb_thread_call_without_gvl or somewhere else down the rabbit hole.
zenlot has quit [Ping timeout: 258 seconds]
n90b0jjf has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
<eam> Mathuin: it's pretty easy, just attach gdb and break on whatever function you like
kirun has quit [Quit: Client exiting]
<eam> you could also try using something to trace system calls and look for any that fail
<eam> assuming it's an error bubbling up from a call and not something else
skade has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 244 seconds]
<Mathuin> eam: okay, for gdb I'll probably have to recompile with debug enabled or something, so I'll try strace first.
postmodern has joined #ruby
skade has joined #ruby
bdonnahue has left #ruby [#ruby]
coffeecupp has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
n90b0jjf has quit [Ping timeout: 260 seconds]
mkosaki has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: Leaving]
ReK2GnULinuX has joined #ruby
ReK2 has quit [Ping timeout: 258 seconds]
spectra has joined #ruby
<darix> Mathuin: permission denied sounds like you arent allowed to open the file?
ghr has joined #ruby
<darix> so it probably bubbled up from some open() call.
AlexRussia has joined #ruby
<Mathuin> darix: File.open() to be precise. I do have permission to open the file, it's just that File.open() calls that include modes fail on NFS for some reason while File.open() calls without succeed.
karapetyan has joined #ruby
<eam> I've run into similar
<Mathuin> https://github.com/ruby/ruby/commit/c7837ed8d3ec3a74382927df7c2fae19862b78ea changed the implementation of copy_file to use the mode, which breaks stuff.
<darix> Mathuin: can you run with: strace -Ff -s 1024 ruby /path/to/rubyscript.rb
<Mathuin> darix: it shows up for me when I run 'rbenv build 2.3.1' but I am working on a simpler working example.
<Mathuin> https://github.com/rubygems/rubygems/issues/1161 is the same issue in rubygems, with a fix -- but it's a better idea to actually fix File.open().
dhollinger has quit [Quit: WeeChat 1.5]
macsteps has joined #ruby
triangles has quit [Quit: Leaving]
pawnbox has joined #ruby
<darix> Mathuin: zenspider replied to you
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mathuin> Oooh! Thanks for telling me.
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tubuliferous has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
ddffg has quit [Quit: Leaving]
<Mathuin> Updated the system gems, which installed rubygems 2.6.6. Rerunning 'rbenv install' (not 'rbenv build', that doesn't exist) to see what happens next.
ur5us has quit [Ping timeout: 250 seconds]
bruce_lee has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
coffeecupp has joined #ruby
mistermocha has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
SilverKey has joined #ruby
macsteps has quit [Remote host closed the connection]
hipertracker has quit [Quit: hipertracker]
tubuliferous has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
ghr has joined #ruby
<Mathuin> Same problem with 2.2.1 :-(
<Mathuin> And 2.3.1 of course, nothing in rubygems changing will change that.
cschneid_ has quit [Remote host closed the connection]
n90b0jjf has joined #ruby
JeanCarloMachado has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
Xeago_ has joined #ruby
RegulationD has joined #ruby
n90b0jjf has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 258 seconds]
<darix> i am so happy to be on opensuse. thy just have packages for 2.2 and 2.3
AndrewIsHere has joined #ruby
<Mathuin> I confess I am hopelessly spoiled by Python's virtualenv.
ghr has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
<Mathuin> The benefits of package-specific installs trump the costs of package-specific script execution.
<Mathuin> Alas rbenv folks disagree.
mtkd has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
rkazak has joined #ruby
n90b0jjf has joined #ruby
johnny56_ has joined #ruby
ghr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
agent_white has quit [Quit: bbl]
skade has joined #ruby
skade has quit [Client Quit]
unreal has quit [Ping timeout: 276 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
<isberg> Any suggestions on how to decrease the start up time for Ruby? Is crystal-lang.org the way to go, or any other suggestions?
cdg has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
coffeecupp has quit [Ping timeout: 260 seconds]
n90b0jjf has quit []
Trynemjoel has quit [Ping timeout: 264 seconds]
<havenwood> isberg: ruby -e "0" 0.04s user 0.01s system 78% cpu 0.067 total
pawnbox has joined #ruby
saneax_AFK is now known as saneax
<havenwood> isberg: How slow is your Ruby startup??
<darix> time ruby --disable=gems -e '0'
<havenwood> isberg: If you want fast, Crystal is generally a good way to go.
<isberg> I'm currently having some scripts in my bash prompt
<havenwood> ruby --disable=gems -e '0' 0.01s user 0.01s system 51% cpu 0.020 total
Renich has joined #ruby
<isberg> They run on each command, which is starting to get slow
<darix> isberg: you could e.g. cache the output of the ruby script and refresh the cache event based
<darix> (with an event different "draw prompt")
<isberg> That would work, but is hoping for a less hacky one :)
cdg has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
<darix> isberg: for me "only run than needed" is the real solution.
<isberg> s/then/when?
<darix> yes
<isberg> That won't solve my problem :)
pawnbox has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 240 seconds]
<isberg> To be more correct, it will solve it, but then I've a new one
Renich has quit [Client Quit]
cd-rum has quit [Ping timeout: 260 seconds]
<shevy> this is how it should be
<havenwood> ./0 0.00s user 0.00s system 34% cpu 0.014 total
cd-rum_ has joined #ruby
arthurl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<isberg> shevy What should be?
Renich has joined #ruby
<shevy> isberg that you solve one problem and then you have a new one!
<shevy> you won't win speed contests with ruby
<havenwood> shevy: here are some fun ones: https://github.com/kostya/benchmarks
<darix> isberg: what does the ruby script do anyway?
zeroDi has quit [Quit: WeeChat 1.5]
<shevy> havenwood cool... ruby scores decently well on ... uhm ... Base64!
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> what is "Ruby Topaz"? Don't think I have read that before
PlasmaStar has quit [Ping timeout: 246 seconds]
<darix> shevy: ruby on pypy?
<havenwood> shevy: jruby-dev-truffle-graal ftw: http://jruby.org/bench9000/
<havenwood> shevy: RPython implementation of Ruby
<shevy> hmm
<isberg> shevy In this case it calculates git stats
<darix> isberg: so you might even be slowed down by git
<darix> not ruby itself
<darix> really
<darix> cache the result
<havenwood> shevy: 30+ times faster is fast
Xeago_ has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
<isberg> darix It's fast in bash
PlasmaStar has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<isberg> darix --disable=gems increased the speed x 3
<isberg> Awesome, thanks!
<shevy> some slow gems!
<isberg> No gems
roamingdog has joined #ruby
<isberg> With gems it's about 10 times faster
xlegoman has quit [Quit: Leaving]
<shevy> now this would be cool
tjbiddle has quit [Quit: tjbiddle]
<shevy> a ruby to crystal converter
<isberg> darix Expiring caches is not something I would work with
<isberg> Should be fairly easy to implement as it is now
zacstewart has joined #ruby
tenc has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
dc4 has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
<isberg> Should be fairly easy to implement as it is now
<isberg> Oops
karapetyan has quit [Remote host closed the connection]
ghr has joined #ruby
pdoherty has joined #ruby
karapetyan has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
rcvalle has quit [Quit: rcvalle]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
SilverKey has quit [Quit: Halted.]
snath has quit [Ping timeout: 250 seconds]
koooge has joined #ruby
ghr has joined #ruby
charliesome has joined #ruby
nogic has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby
basex has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 260 seconds]