jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
radialneon has quit [Ping timeout: 264 seconds]
Cache_Money has quit [Quit: Cache_Money]
evo2020 has quit [Quit: Leaving]
evo2020 has joined #ruby
<dfockler> Ox0dea: depends what you want to do with it
vdamewood has quit [Quit: Life beckons.]
SpeakerToMeat has quit [Quit: WeeChat 1.3-dev]
<evo2020> Has anyone ever converted Ruby Hash value that is a string to integer? Assigning it a specific value?
dfockler has quit [Remote host closed the connection]
<Ox0dea> evo2020: You'll have to clarify.
fumihiro has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
dfockler has joined #ruby
<evo2020> I am adding the integer values of a hash together. But some values are string letters .
nfk has quit [Remote host closed the connection]
<Ox0dea> evo2020: Use #values to extract the values, map(&:to_i) to convert them all to integers, and reduce(:+) to sum them.
<evo2020> hash = { "word1" => 1, "word2" => 5, "word3" => "stringone"}
<Ox0dea> evo2020: You want to convert "stringone" to an integer?
Stratege has quit [Ping timeout: 255 seconds]
<al2o3-cr> {"key1" => "3", "key2" => "7"}.values.map(&:to_i).inject(:+)
bungoman_ has joined #ruby
<evo2020> Hmm
polpak has quit [Quit: leaving]
<Ox0dea> I believe Smalltalk is the only other language that uses "inject" as a synonym for "reduce". I think it should die.
<bougyman> garsh
<bougyman> I love inject.
Soda has joined #ruby
<al2o3-cr> inject/reduce same difference :p
bklane has quit [Remote host closed the connection]
<evo2020> But how do I specify that " stringone" should equal 7 for instance? Need irb
<bougyman> i mean, the name. it makes more sense to me than reduce.
<Ox0dea> evo2020: You literally want to convert the string "stringone" to 7?
<bougyman> foldl/foldr make sense, too
quazimodo has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
jottr_ has joined #ruby
devyn has joined #ruby
<bougyman> i'd be ok with replacing #inject/#reduce with #foldl and #foldr
baweaver has joined #ruby
<Ox0dea> They're not the same.
bruno- has quit [Ping timeout: 246 seconds]
<Ox0dea> #reduce is #foldl.
<bougyman> right.
jpfuentes2 has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
dgutierrez1287 has joined #ruby
<evo2020> Yes
<bougyman> and we don't have a foldl (without #reverse on an array first)
nfk has joined #ruby
bungoman has quit [Ping timeout: 248 seconds]
<bougyman> er folrd
<Ox0dea> evo2020: But... why?
<bougyman> damnit
jpfuentes2 has quit [Client Quit]
<evo2020> I need to convert certain strings to specific integer values. Cant find in ruby docs
<Ox0dea> evo2020: Please post an example.
<Ox0dea> You obviously aren't literally wanting to go from "stringone" to 7.
Renich has quit [Quit: leaving]
<evo2020> I am building a project with two players.
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
ragingcake_ has joined #ruby
bungoman_ has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
zacstewart has quit [Remote host closed the connection]
quazimod1 has quit [Ping timeout: 264 seconds]
<shevy> "2".to_i
<evo2020> Each player gets assigned hash k/value pairs. Just that some values are strings.
quazimod1 has joined #ruby
millerti has quit [Ping timeout: 248 seconds]
sevenseacat has joined #ruby
radialneon has joined #ruby
snockerton has quit [Quit: Leaving.]
<evo2020> Should I convert all values to integers and then store in hash?
<weaksauce> evo2020 just use a dictionary
<weaksauce> hash
<evo2020> I know dictionaries in python only
jottr_ has quit [Ping timeout: 265 seconds]
<weaksauce> >> x = {"stringone": 7}; x["stringone"]
<ruboto> weaksauce # => nil (https://eval.in/398037)
<weaksauce> >> x = {"stringone" => 7}; x["stringone"]
<ruboto> weaksauce # => 7 (https://eval.in/398038)
<weaksauce> derp
<weaksauce> dictionary is the same as hash basically evo2020
<weaksauce> I think hashmap is the formal way to say it
serivich has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
hj2007 has quit [Quit: This computer has gone to sleep]
linuxboytoo has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magical-imouto has quit [Quit: fix config]
<al2o3-cr> evo2020: show your example using python then
ndrei has quit [Ping timeout: 240 seconds]
<evo2020> weaksauce: that works
pyon has joined #ruby
Mojo_Nixon has joined #ruby
<weaksauce> cool. glad to hear it evo2020
fabrice31 has joined #ruby
<evo2020> Here is my example of a card players hand of 2 cards:
<evo2020> [[6, "Diamonds"], ["A", "Diamonds"]]
<Ox0dea> bougyman: Adding #reduce_right to core would be a one-line change. I might see how the mailing list feels about it.
lellisga has joined #ruby
<Ox0dea> >> ' A23456789TJQKA'.index('T')
<ruboto> Ox0dea # => 10 (https://eval.in/398039)
<evo2020> [["Diamonds", 6], ["Spades", "A"]] is perfect example
<weaksauce> evo2020 that is valid code for a nested array in ruby
freerobby has joined #ruby
<evo2020> correct.
allcentury has quit [Ping timeout: 265 seconds]
<al2o3-cr> >> ' A23456789TJQKA'.index('2')
<ruboto> al2o3-cr # => 2 (https://eval.in/398040)
<evo2020> Now I need to change the "A" in the nested array to the number 11.
marr has quit []
<evo2020> so I can add 6 + 11
<Ox0dea> evo2020: Or 1, no?
ragingcake_ has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Read error: Connection reset by peer]
<evo2020> yes or 1
ragingcake__ has joined #ruby
hj2007 has joined #ruby
<bougyman> Ox0dea: makes sense.
linuxboytoo has quit [Ping timeout: 248 seconds]
<evo2020> but let me start simple
tjohnson has joined #ruby
<al2o3-cr> ah, didn't see the space :p
ragingcake__ has quit [Client Quit]
<bougyman> while you're at it, change the name to fold and deprecate #reduce and #inject :)
<Ox0dea> evo2020: Do the players input their own hands or something?
<evo2020> no. I just need to add up the values.
ragingcake has joined #ruby
<evo2020> Just the face cards mess everything up.
<Ox0dea> Then just store the values as numbers to keep things simple.
<lellisga> anyone that has worked with redlock before?
rehat_ has quit [Remote host closed the connection]
Elijahh has joined #ruby
Mojo_Nixon has quit [Client Quit]
<Ox0dea> evo2020: Use numbers internally, and just convert them to face values when you need to display them.
Elijahh has left #ruby [#ruby]
saadq has quit [Remote host closed the connection]
<evo2020> How would I do that?
<weaksauce> still doesn't account for the multiple values of ace.
pengin has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 256 seconds]
<evo2020> When the cards are dealt, they display face cards.
lellisga has quit [Read error: Connection reset by peer]
<hololeap> i'm confused by a line of code from active_record/type/serialized.rb:
<Ox0dea> evo2020: The user does not see what the programmer sees, and vice versa.
<weaksauce> evo2020 just use the hash lookup table and store the values as an array.
<hololeap> class Serialized < DelegateClass(Type::Value)
<evo2020> everything adds perfectly with inject. I just need to update values for face cards.
<evo2020> correct
<Ox0dea> hololeap: The base class doesn't need to be an "actual" class; it can be any expression which evaluates to a class.
fumihiro has quit [Ping timeout: 246 seconds]
<evo2020> what is the hash lookup table
<evo2020> googling now
<Ox0dea> >> class Foo < Object.const_get('Str' + 'ing'); end; Foo.new
<ruboto> Ox0dea # => "" (https://eval.in/398042)
Zamyatin has joined #ruby
jimmiejohnson has joined #ruby
grimly has quit []
<weaksauce> evo2020 well it's just a way of saying hash evo2020
Zamyatin has quit [Max SendQ exceeded]
<weaksauce> it's basically a lookup table
Zamyatin has joined #ruby
<hololeap> Ox0dea: right, but i'm confused as to what the point of doing this is. i read the documentation in the source code: https://github.com/sj26/ruby-1.9.3-p0/blob/master/lib/delegate.rb#L302
Spami has quit [Quit: This computer has gone to sleep]
<hololeap> and the example they gave makes me wonder why not just create a new class that inherits File
<shevy> pontiki, I was thinking of you when I saw this! http://ceramic.github.io/
<hololeap> in other words, why `class Tempfile < DelegateClass(File)` instead of `class Tempfile < File` ?
<evo2020> weaksauce: do u have an example of implementation. The conversion?
<bougyman> hrm.
<bougyman> if I try to def Array(*things), pry won't load.
<evo2020> I tried this { |k, v| if v == "J" || "Q" || "k"? v = 10 : v}
<bougyman> doesn't matter what I put in the body
GPrime has joined #ruby
stantonnet has joined #ruby
DarthGandalf has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
DarthGandalf has joined #ruby
GPrime has quit [Client Quit]
<bougyman> but it works fine in irb
ruurd has quit [Quit: ZZZzzz…]
<bougyman> /home/bougyman/.rvm/gems/ruby-2.1.2/gems/pry-0.10.0/lib/pry/pry_instance.rb:558:in `generate_prompt': undefined method `arity' for #<Array:0x00000000bf9be0> (NoMethodError)
<bougyman> why would it lose its #arity method?
jimmiejohnson has quit []
<shevy> >> array = Array.new; array.arity
<ruboto> shevy # => undefined method `arity' for []:Array (NoMethodError) ...check link for more (https://eval.in/398045)
<weaksauce> evo2020 depends on what you are trying to do with the display?
bruno- has joined #ruby
curses has joined #ruby
havenwood has joined #ruby
fantazo has joined #ruby
<bougyman> yeah I hav no idea what pry is doing, there.
<bougyman> [1] pry(main)> def Array(*things);things;end
<bougyman> => :Array
<bougyman> /home/bougyman/.rvm/gems/ruby-2.1.2/gems/pry-0.10.0/lib/pry/pry_instance.rb:558:in `generate_prompt': undefined method `arity' for #<Array:0x00000001f16200> (NoMethodError)
<bougyman> >> def Array(*things);things;end; p Array(:a)
<ruboto> bougyman # => [:a] ...check link for more (https://eval.in/398048)
ragingcake has quit [Quit: ragingcake]
Thomas-0725 has joined #ruby
<evo2020> weaksauce: I don't need to do anything with display. I need to add values and see who wins the game.
linuxboytoo has joined #ruby
<evo2020> https://eval.in/398047 snippet of code
bruno- has quit [Ping timeout: 256 seconds]
<evo2020> I can refactor the entire game and switch facecards to equal either 10 or 11 but that sounds even more complex!
curses has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<evo2020> So the values go in as a nested array, I switch them to hash and add up their values. It's so rubyesque except for the face cards
pygospa has quit [Ping timeout: 264 seconds]
<weaksauce> evo2020 https://eval.in/398052
blue_deref has joined #ruby
tmtwd has quit [Remote host closed the connection]
<weaksauce> something like that is an easy way. not the best way just easy
RobertBirnie has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
<evo2020> weaksauce: Sweet!
danielpclark has quit [Ping timeout: 252 seconds]
<evo2020> Okay what is the best way in your opinion?
bayed has quit [Quit: Connection closed for inactivity]
<weaksauce> evo2020 might use a few tricks that you don't know. I wouldn't say that your way of hashifying is rubyesque though.
baweaver has quit [Remote host closed the connection]
<weaksauce> I mean my way works fine just it doesn't handle the special case of ace being 1 or 11
hj2007 has quit [Quit: This computer has gone to sleep]
<evo2020> #1) thanks for keeping it a nested array.
jhack has quit [Ping timeout: 265 seconds]
GriffinHeart has joined #ruby
jpfuentes2 has joined #ruby
oo_ has joined #ruby
hj2007 has joined #ruby
<evo2020> #2) Ace value depends on whether cards add up to > 21. I want to implement with value of 11 as first interation
GriffinHeart has quit [Remote host closed the connection]
<evo2020> Once I get all the code down in that version. It will be easier to see how to flip between 11 and 1.
pygospa has joined #ruby
<weaksauce> evo2020 https://eval.in/398054
tmtwd has joined #ruby
GriffinHeart has joined #ruby
zacstewart has joined #ruby
<weaksauce> that's a better approach. you could put both calculations in the score method though
allcentury has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
neanderslob has quit [Ping timeout: 256 seconds]
serivichi has joined #ruby
Igorshp has quit [Remote host closed the connection]
neanderslob has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
fumihiro has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 252 seconds]
serivich has quit [Ping timeout: 244 seconds]
xcesariox has joined #ruby
<evo2020> OMG!
<evo2020> weaksauce: I tried out your code with Ace in x[1] array position but it throws error. What am I doing wrong.
xkef has quit [Ping timeout: 256 seconds]
xkef_ has joined #ruby
<weaksauce> eval.in it evo2020
<evo2020> using puts [["Spade", 6],["diamond". "A"]].map{|x| cardmap[x[1]] || x[1] }.inject(:+)
<weaksauce> eval.in it evo2020
<weaksauce> context matters
FernandoBasso has quit [Quit: WeeChat 1.2]
RegulationD has joined #ruby
danielpclark has joined #ruby
<shevy> bougyman perhaps it keeps some old reference to the method def Array that already exists
houhoulis has joined #ruby
charliesome has joined #ruby
juanca_ has joined #ruby
<weaksauce> evo2020 you have a syntax error
<al2o3-cr> evo2020: you have a `.` where you need `,`
<evo2020> see it
balazs has joined #ruby
<evo2020> Awesome!
nfk has quit [Remote host closed the connection]
<evo2020> weaksauce: That piece of code is $money!
finisherr has joined #ruby
pullphinger has joined #ruby
<weaksauce> :)
<evo2020> makes perfect sense to turn Ace val to 1 if value > 21
<finisherr> so, i have a gem specified as a dependency in my gemspec but it’s not getting picked up by bundler when i run bundle install
<finisherr> I have a gemspec line in my gemfile
maletor has quit []
<finisherr> any ideas?
mattyohe has joined #ruby
Igorshp has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
<evo2020> weaksauce: Thank u!
dagda1 has quit [Ping timeout: 265 seconds]
Agoldfish has quit [Quit: G'Bye]
dgutierrez1287 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<evo2020> I am going to go back to coding. This is an awesome community.
<evo2020> I had been spinning my wheels on that one
dagda1 has joined #ruby
unreal has joined #ruby
yossarian is now known as woodruffw
t_ has quit [Ping timeout: 256 seconds]
<evo2020> weaksauce: Take care & have a great day!
<weaksauce> have fun evo2020
evo2020 has quit [Quit: Leaving]
<Ox0dea> Poor guy.
axsuul has joined #ruby
axsuul has quit [Excess Flood]
<Ox0dea> He's gone away with the notion that it's just dandy to impose inconsistent data on himself. :/
Igorshp has quit [Ping timeout: 246 seconds]
<weaksauce> it sounds like he's pretty green and you can't learn every best practice when you are new
duderonomy has quit []
unreal_ has quit [Ping timeout: 244 seconds]
finisherr has quit [Quit: finisherr]
<Thomas-0725> what's the easiest way to use case to branch based on a variable's class? Right now, I am using this: case variable.class.name; when Float.name; ... ; when Symbol.name; ...
<Thomas-0725> Is that the best way?
oo_ has quit [Remote host closed the connection]
Reltre has joined #ruby
Vic has joined #ruby
<sevenseacat> Thomas-0725: whyyyy
joshbamboo1 has joined #ruby
<Reltre> Hi
<shevy> Thomas-0725, case foo
<shevy> when Float
<shevy> I think
<Vic> Hi
<havenwood> Vic: hi
<Thomas-0725> shevy I will try that, thanks
oo_ has joined #ruby
ascarter has joined #ruby
bklane has joined #ruby
<havenwood> Reltre: hi
AlexAltea has quit [Quit: Leaving]
<Thomas-0725> shevy, worked perfectly. Thanks!
reset has quit [Quit: Leaving...]
WildBamboo-Josh has quit [Ping timeout: 252 seconds]
bklane has quit [Remote host closed the connection]
davedev24 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
Rickmasta has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
bklane_ has joined #ruby
tkuchiki has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
jackjackdripper has quit [Quit: Leaving.]
<shevy> \o/
n008f4g_ has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
bronson has quit [Remote host closed the connection]
bungoman has joined #ruby
Hobogrammer has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
sharpmachine has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
dgutierrez1287 has quit [Remote host closed the connection]
wallerdev has joined #ruby
finisherr has joined #ruby
dgutierrez1287 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
juanca_ has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 256 seconds]
juanca_ has joined #ruby
<finisherr> Hey, so, I have declared dependencies in my gemspec and a gemspec line in my Gemfile, should bundle install install the gems listed as dependencies in the gemspec?
finisherr has quit [Quit: finisherr]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
bklane has quit [Ping timeout: 248 seconds]
hj2007 has joined #ruby
timonv has joined #ruby
radialneon has quit [Ping timeout: 240 seconds]
amargherio has joined #ruby
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sharpmachine has joined #ruby
<shevy> aren't .gemspecs separate from a Gemfile?
mkosaki_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
mkosaki has joined #ruby
bruno- has joined #ruby
radialneon has joined #ruby
radialneon_ has joined #ruby
radialneon_ has quit [Remote host closed the connection]
radialneon has quit [Remote host closed the connection]
<Ox0dea> >> n = '3608528850368400786036725'; (1..n.size).all? { |i| n[0, i].to_i % i == 0 }
<ruboto> Ox0dea # => true (https://eval.in/398065)
radialneon has joined #ruby
bklane has joined #ruby
SirFunk has quit [Remote host closed the connection]
scottschecter has joined #ruby
TheNet has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
jeramyRR has joined #ruby
sharpmachine has quit [Remote host closed the connection]
duderonomy has joined #ruby
GriffinHeart has joined #ruby
jeramyRR has quit [Client Quit]
ryanprior has joined #ruby
whiteline has quit [Ping timeout: 240 seconds]
frem has joined #ruby
jokester has quit [Quit: WeeChat 1.0.1]
mikefulcher has quit [Ping timeout: 256 seconds]
jokester has joined #ruby
<ryanprior> Does anybody have opinions to share on rsense vs robe for ruby hacking?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
SirFunk has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<ght> Question: I'm dealing with an API that stores a price value as XX.XX and is listed as type "double". I want to add these values, but I've read that there can be issues keeping
<ght> monitary values accurage.
<ght> My inital thought was to convert the value returned to a float with to_f and then simply use a declared float variable.
<Antiarc> ght: You should probably convert them to integers represented as cents (or local curreny equivalent)
<ght> Is this acceptable?
<ght> ahh, ok.
<ght> hmm.
GriffinHeart has joined #ruby
<Antiarc> Floats can't offer perfect precision, which is potentially trouble when dealing with money
<ght> So say the returned value is 99.95, should I simply move the decimal point right two places and use integers?
<Antiarc> Correct
<ght> Ok.
<ryanprior> so long as you're really sure it's ALWAYS xx.xx format. because fractional cents are a thing in many contexts.
TheNet has joined #ruby
<Antiarc> I'd just say (value * 100).to_i
<Antiarc> >> 129.95 * 100
<ruboto> Antiarc # => 12994.999999999998 (https://eval.in/398072)
<Antiarc> ^ that's why you don't use floats for money
<ght> Ok, and then add, and to get final result, divide by 100?
<ght> For display purposes?
freerobby has joined #ruby
<Antiarc> Correct
<Antiarc> They "money" gem handles much of this for you FWIW
<sevenseacat> integers or decimals for money plz.
<ght> Got it, thank you very much for the assistance.
<Antiarc> Probably worth just building on that
bklane has quit [Read error: Connection reset by peer]
<ght> Yeah, I've used that gem previously, might implement it here.
<ght> Thank you.
bklane has joined #ruby
oo_ has quit [Remote host closed the connection]
bklane has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
<ght> Quick question: Is there a += equivalent operation for division?
<ght> Such as /=
<ght> ?
phutchins has quit [Ping timeout: 255 seconds]
maletor has quit []
bungoman has quit [Remote host closed the connection]
TheNet has quit [Ping timeout: 248 seconds]
<ght> huh, when I divide by 100 it drops the .9
towski_ has quit [Remote host closed the connection]
<ght> Makes sense, not supporting decimals.
gamename has joined #ruby
SirFunk has quit [Remote host closed the connection]
<ght> Guess I'll just use the money gem.
<Ox0dea> >> '129.95'.delete('.').to_i
<ruboto> Ox0dea # => 12995 (https://eval.in/398081)
SirFunk has joined #ruby
<ght> Well I get all the values, currently they're two 99.95 values. As I get them, I multiply by 100 to convert to cents as suggested.
<ght> Two 99.95 vlaues ends up at 19990 cents.
bklane has joined #ruby
<Ox0dea> ght: I think Antiarc might've accidentally shown you why multiplying by 100 is insufficient.
<ght> However, when I divide by 100, it returns 199, because being an integer it drops the trailing .9
<ght> Yes.
<ght> I'm going to use the money gem as also suggested, deploying it now.
graydot has quit [Quit: graydot]
oo_ has joined #ruby
Rickmasta has joined #ruby
bungoman has joined #ruby
<Ox0dea> >> '129.95'.delete('.').to_i / 100.0
<ruboto> Ox0dea # => 129.95 (https://eval.in/398089)
timonv has quit [Ping timeout: 252 seconds]
<nofxx> whats the name of that yaml sourcery to copy a key? key: &:template
Igorshp has joined #ruby
<Ox0dea> :template:
<nofxx> is that ruby yaml only, out of curiosity?
<Ox0dea> Yes.
<Ox0dea> Oh, sorry, I derped there.
<nofxx> Ox0dea, ahh, that's why I couldn't find it
<nofxx> ty
<Ox0dea> No, I thought you wanted Symbol keys in your Hash.
danielpclark has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Remote host closed the connection]
<eam> pretty sure & is generic yaml
<eam> to reference a node
<Ox0dea> It is, but it copies values, not keys.
<nofxx> but what's the name?
<Ox0dea> "Node anchors", apparently.
dgutierrez1287 has quit [Remote host closed the connection]
<eam> is a node not valid as a key? Could've sworn I've seen that in other languages
balazs has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
xkickflip has quit [Quit: xkickflip]
xkickflip has joined #ruby
gamename has quit []
scottschecter has quit [Quit: Leaving]
hj2007 has quit [Quit: This computer has gone to sleep]
Igorshp has quit [Ping timeout: 264 seconds]
devbug has quit [Ping timeout: 248 seconds]
gamename has joined #ruby
ryanprior has left #ruby ["ERC (IRC client for Emacs 25.0.50.1)"]
<Thomas-0725> Is a snippet such as this ok, or is there something bad about it? @temperature_celsius = Float(options[:c]) rescue ftoc(Float(options[:f])) rescue nil
jottr_ has joined #ruby
acovrig has joined #ruby
<sevenseacat> :/
<Ox0dea> eam: The spec does say that uniqueness is the only restriction placed on keys.
tcrypt has quit [Ping timeout: 248 seconds]
thiagovsk has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
<acovrig> I have a string “3: CAPITAL WORDS HERE (something) (something else)”; I would like to get “CAPITAL WORDS HERE (something)”. I’m trying /: (.*) \([a-zA-Z ]*\)$/ but I can’t figure out how to exclude the “: “ and “(something else)”
<Thomas-0725> sevenseacat, for me the hardest part of learning to write Ruby right now is knowing when I am doing something wrong. There are a million ways to do everything it seems, and it's hard to tell when I am doing the "wrong" thing despite getting the right output.
hj2007 has joined #ruby
<Ox0dea> Thomas-0725: Doesn't it "feel" wrong, though? You really shouldn't use exceptions for control flow.
<eam> Ox0dea: fair, but you can also reference a node outside the immediate hash :)
<sevenseacat> and rescue nil is definitely, definitely a sign that something is awry
<Thomas-0725> well, the variable needs to hold nil if it doesn't hold a temperature, and if the options parameter does not include a valid temperature, then it needs to be nil
<Thomas-0725> I guess I should simply be more verbose and write it all out with ifs and such?
maknz has quit [Ping timeout: 264 seconds]
<sevenseacat> `rescue nil` is 'rescue every possible type of exception that occur, and throw them away'
<Thomas-0725> here, let me provide a more full snippet to show what I had as opposed to what I just showed and asked about. One moment.
<Ox0dea> sevenseacat: No, not every.
<sevenseacat> not every?
<Ox0dea> SyntaxError, for instance.
TheNet has joined #ruby
<sevenseacat> well then you wouldnt even get that far
tkuchiki has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
<Thomas-0725> Ox0dea, sevenseacat, https://gist.github.com/thomasbcolley/5f114492fedf3b611407 (See initialize)
<Ox0dea> sevenseacat: You *can* rescue a SyntaxError, just not with a post-rescue.
Hobogrammer_ has joined #ruby
<eam> >> raise Exception rescue nil
<ruboto> eam # => Exception (Exception) ...check link for more (https://eval.in/398094)
tmtwd has joined #ruby
Contigi has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Thomas-0725 there are many ways, but sooner or later you will come to prefer some way, for one reason or the other. those moments you'll have the more code you write, and styles may change as the years pass by
astrobun_ has joined #ruby
<Thomas-0725> Alrighty
Hobogrammer has quit [Ping timeout: 250 seconds]
<shevy> I myself for instance prefer rescues in the good old begin;rescue;end variant
<Ox0dea> Erm, yeah, maybe it was just Exception, then. I must be thinking of that time charliesome demonstrated doing crazy things with FrozenCore to recover from segfaults.
simplyianm has quit [Remote host closed the connection]
<Thomas-0725> fwiw, this use of rescue was inspired by your fancy little one-line RPN calculator parser yesterday, Ox0dea :-P
simplyianm has joined #ruby
<Ox0dea> Thomas-0725: Whose being for laughs was made clear, or so I had hoped.
<sevenseacat> Ox0dea's golfing is not meant for real-world use
<Ox0dea> ^
<Thomas-0725> Ox0dea, I knew the solution as a whole was not meant to be taken seriously, but I wasn't sure if any of its components were viable. :-O
<eam> I wish the one-line form of rescue could take an exception class
fabrice31 has joined #ruby
<Thomas-0725> In any case, I guess I'll go ahead and just continue to stick with what I have learned from reputable sources, and keep my improvisation to a minimum for now. Seems sensible.
<Aeyrix> Wait
<Aeyrix> Ox's ideas aren't for real-world use?
<Aeyrix> Fuck,.
mary5030 has joined #ruby
<Aeyrix> Time to make some commits.
cheeseboy has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acovrig has quit [Quit: acovrig]
SirFunk has quit [Ping timeout: 252 seconds]
<cheeseboy> how do i loop through nd print $1 to $5 ?
<shevy> Aeyrix it's too late!
<cheeseboy> i try like ${i} but that aint it
<shevy> [k- already adopted an even more evil variant of Ox0dea's code
<tmtwd> 5.times {|i| puts i}
<shevy> now Thomas-0725 is the next
<Ox0dea> eam: Making Bad Things unpleasant is a feature.
<Nilium> Code can always be made more interesting,
simplyianm has quit [Ping timeout: 255 seconds]
<Nilium> Ox0dea has turned this into an art form
<Ox0dea> Nilium: That seems philosophically unsound, but I can't quite say why.
gamename has quit [Remote host closed the connection]
<Nilium> I think it'd hold up in practice.
bronson has joined #ruby
<Ox0dea> sevenseacat: Turns out I'm not crazy. `eval '<' rescue nil` doesn't work, but explicitly rescuing SyntaxError does.
<cheeseboy> shevy, i dont wnt to print 1-5 i want to print variables $1-$5
fabrice31 has quit [Ping timeout: 248 seconds]
<sevenseacat> Ox0dea: interesting.
<Aeyrix> cheeseboy: ARGV.each do |arg|
danielpclark has joined #ruby
<Aeyrix> will print $1 to $x
<Ox0dea> Nope.
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
<Ox0dea> $1-$x are capture groups, not command-line arguments.
<Nilium> Aren't $N globals/specials ca- what Ox0dea said.
<Aeyrix> Some people just refer to them meaning args
<Aeyrix> :^)
<shevy> they are the most evil global variables
<Aeyrix> ^
<Nilium> I use 'em all the time.
bklane has joined #ruby
<Nilium> Mostly because I just write a ton of one-off CLI tools in Ruby.
<shevy> someone here complained about up to $9 they are treated specially but no longer at $10
<Ox0dea> > someone here
<Aeyrix> That was Ox.
<shevy> oh yes
<Aeyrix> :D
<Nilium> The ghost.
<Nilium> The ghost of Ruby.
nb_bez___ has quit [Quit: Connection closed for inactivity]
<cheeseboy> Aeyrix, what?
<Aeyrix> cheeseboy: What are you actually trying to do?
<eam> Ox0dea: there's nothing bad about an easy syntax to trap exceptions on a per-line basis
<Ox0dea> I disagree.
<eam> it's almost necessary if you do anything system oriented in ruby
<cheeseboy> print the values of $1 to $5
<Aeyrix> "$1-$5" can mean different things depending on if you know what capture groups are.
<Ox0dea> cheeseboy: The capture groups?
<Aeyrix> What is $1 to $5 in your context?
<cheeseboy> its regexed stuff
<Ox0dea> $1 means something different in Ruby than at the shell.
<Nilium> If it's a series of tacos, I want your code
<Nilium> I might be hungry.
<Ox0dea> cheeseboy: There's no global_variable_get, so you'll have to use eval.
<shevy> lol
<cheeseboy> sigh
<Aeyrix> ok if it's regexed stuff it's cap groups you want
<shevy> IRC nicks to make Nilium hungry
<Nilium> [$1, $2, $3, $4, $5] ← This seems reasonable to me.
<cheeseboy> ruby too confusing for me
<cheeseboy> i wish teacher stuck with stricter language
<Aeyrix> k e k
<Aeyrix> e
<Aeyrix> k
sarkyniin has quit [Quit: Quit]
<Ox0dea> >> 'abcde'[/(\w)(\w)(\w)(\w)(\w)/]; (1..5).map { |i| eval "$#{i}" }
<ruboto> Ox0dea # => ["a", "b", "c", "d", "e"] (https://eval.in/398096)
<Aeyrix> No stop
bronson has quit [Ping timeout: 265 seconds]
<havenwood> cheeseboy: Stop doing that!! (We can be strict on behalf of the language.)
<Aeyrix> lmao
<Nilium> There's a reason I've been slowly murdering all use of PHP and Javascript at work by forcing everyone to use Go.
<shevy> p [$1, $2, $3, $4, $5]
<havenwood> >> global_variables.last 9
<ruboto> havenwood # => [:$1, :$2, :$3, :$4, :$5, :$6, :$7, :$8, :$9] (https://eval.in/398097)
<shevy> \o/
<shevy> oh wait
<havenwood> No way that could go wrong... >.>
<shevy> >> global_variables.last 10
<ruboto> shevy # => [:$-a, :$1, :$2, :$3, :$4, :$5, :$6, :$7, :$8, :$9] (https://eval.in/398098)
<Aeyrix> Well
<shevy> what the
<Aeyrix> if cheeseboy just wants to loop through
<Aeyrix> shevy: Yes that is Ox's problem
<shevy> hahaha
<shevy> never seen :$-a before
<Aeyrix> >> $-a.class
<ruboto> Aeyrix # => FalseClass (https://eval.in/398099)
<shevy> looks like a smiling person with a big bushy beard and a tie below the beard
<Aeyrix> loool
<Nilium> I question your sanity.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I dont understand this
<shevy> $-a # => false $-b # => nil $-c # => nil $-d # => false what is this and why are some nil and some false
<Ox0dea> The $- globals contain the values supplied to those flags.
balazs has joined #ruby
<havenwood> shevy: Look at: ruby -h
SirFunk has joined #ruby
<shevy> ah
<shevy> well, never liked global variables much to begin with anyway!
<Ox0dea> >> $hevy
<ruboto> Ox0dea # => nil (https://eval.in/398101)
_djbkd has quit [Remote host closed the connection]
<eam> is that a cash tag
<Aeyrix> Yeah.
<Aeyrix> hevy dollars.
Lucky___ has joined #ruby
<Ox0dea> >> 0x0dea > $hevy.to_i
<ruboto> Ox0dea # => true (https://eval.in/398102)
<Ox0dea> I'll stop.
hj2007 has quit [Quit: This computer has gone to sleep]
<eam> why is that true and not zero
<Aeyrix> Ox0dea: Does 3562 have any significance to you or?
<Aeyrix> eam: Because x > y?
<Ox0dea> Aeyrix: My initials are DEA.
<Aeyrix> DRUG ENFORCEMENT AGENCY
<Ox0dea> Administration.
<Aeyrix> WE'VE BEEN COMPROMISED. CALL SAUL.
<Aeyrix> shhhh
<Aeyrix> no
<eam> oh, my brain saw the > as the start of the code
<Aeyrix> Heh.
<Aeyrix> Ox0dea: I assume you're only "Ox" here because of the IRC spec disallowing names beginning with integers.
<Aeyrix> y?
<Ox0dea> Y.
<Aeyrix> <Ox0dea> volty: The people with Xs in their nicks were speaking, thank you very much.
<Aeyrix> top lel
<shevy> The Big Bad Ox.
<Ox0dea> Aeyrix: That was ages ago.
<Aeyrix> Yeah.
<shevy> You are being monitored!
<Aeyrix> I found it on my Twitter.
<shevy> lol
<Ox0dea> Aeyrix: Were there four of us?
<Aeyrix> I think so.
<Aeyrix> Me, you, someone who was like
fromthedepths1 has quit [Quit: Leaving.]
bklane has quit []
<Aeyrix> xXMLG420noSc0pEyoloSWAGXx
<Aeyrix> and one other
<Ox0dea> I went and checked; the other two were apoplexy and centrx.
tkuchiki has joined #ruby
<Ox0dea> But that XML fella is probably a pretty cool guy.
eggoez has quit [Ping timeout: 256 seconds]
balazs has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
cmoneylulz has quit []
cmoneylulz has joined #ruby
ascarter has joined #ruby
tmtwd has quit [Remote host closed the connection]
t_ has joined #ruby
PhantomS_ has joined #ruby
alho has joined #ruby
bungoman has quit [Remote host closed the connection]
luriv_ has joined #ruby
<alho> hi, does anyone know how the build of the latest versions of ruby creates the ripper.so file?
<alho> when I browse the ruby source code on github, I see a ext/ripper directory, but there's no .c files that seem to correspond to ripper.so
xkickflip_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
xkickflip has quit [Ping timeout: 264 seconds]
xkickflip_ is now known as xkickflip
PhantomSpank has quit [Ping timeout: 256 seconds]
SpikeMaster has joined #ruby
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
luriv has quit [Ping timeout: 264 seconds]
eggoez has joined #ruby
xkickflip has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
LMity has joined #ruby
<Ox0dea> alho: Ripper's Makefile is dynamically generated by ext/extmk.rb.
<alho> Ox0dea: how does that generated makefile work? it must be getting ripper.c source code from somewhere yes?
<Ox0dea> alho: ripper.{c,y} are little more than slightly modified versions of parse.{c,y}.
oo_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<alho> Ox0dea: o_O ahhh, I bet if I look at the ripper makefile, I'll find bison/yacc references somewhere?
<Ox0dea> I've never checked whether the build process invokes bison a second time or just copies and modifies parse.c, but yes, bison is involved.
juanca_ has quit [Remote host closed the connection]
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
astrobun_ has joined #ruby
felltir has joined #ruby
<Ox0dea> alho: parse.y contains these weird /*%%*/ comments that aren't present in ripper.y, but I've never looked very far into why they're there.
<Ox0dea> I suppose it's some sort of Bison "metadata", for lack of a better term.
<alho> Ox0dea: I can't find ripper.y in the ruby source code either though
saadq has joined #ruby
<Ox0dea> alho: Given your newfound knowledge of its being dynamically generated, why would you expect to?
linuxboytoo has quit [Remote host closed the connection]
lessless has joined #ruby
maletor has joined #ruby
braincrash has quit [Quit: bye bye]
meatchicken has quit [Ping timeout: 248 seconds]
<alho> Ox0dea: because I clearly don't understand what's going on still :) I see parse.y in the repo, you're saying that ripper.y is autogenerated from that? and then bison may or may not be involved with creating a parse.c file.
meatchicken has joined #ruby
LMity has quit [Ping timeout: 244 seconds]
Scroff has joined #ruby
<alho> Ox0dea: so that's how you read the depend file :)
bungoman has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
<Ox0dea> It's really just a Makefile.
oo_ has quit [Remote host closed the connection]
<alho> Ox0dea: so that's calling preproc.rb and giving parse.y as argument, yes?
<Ox0dea> Oui.
<Ox0dea> I imagine that's where those /*%%*/ comments get removed.
<Ox0dea> Perhaps I'll come to regret asking, but what're you up to?
juanca_ has quit [Remote host closed the connection]
braincrash has joined #ruby
juanca_ has joined #ruby
JoshGlzBrk has joined #ruby
<alho> Ox0dea: just deep diving into how Ripper class worked, saw places where it was requiring ripper.so. didn't know how any of that worked, so was just diving into the rabbit hole
jbw has quit [Ping timeout: 252 seconds]
finisherr has joined #ruby
Scroff has quit [Ping timeout: 265 seconds]
<Ox0dea> 2015-07-05 05:34:24 ljarvis parse.y. not even once.
<Ox0dea> But certainly not twice.
<Ox0dea> Of course, it just makes sense for Ripper to piggyback.
JoshGlzBrk has quit [Client Quit]
baweaver has joined #ruby
BStheHD has joined #ruby
jbw has joined #ruby
tmtwd has joined #ruby
jamesaxl has quit [Remote host closed the connection]
finisherr has quit [Client Quit]
i8igmac has joined #ruby
JoshGlzBrk has joined #ruby
<alho> Ox0dea: didn't quite understand that bit. what did you mean by certainly not twice
JoshGlzBrk has quit [Client Quit]
RegulationD has joined #ruby
<alho> Ox0dea: thanks for your help btw, i know i'm taking up time. even with what you've said, i've been able to gather that i have holes in my knowledge in terms of makefiles
Stratege has joined #ruby
cheeseboy has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
<Ox0dea> alho: Ripper is essentially just a wrapper around the code that parses Ruby itself, which makes a lot of sense.
<Ox0dea> The parser is quite nasty, and there'd be no sense in duplicating that effort.
annihila1nic is now known as annihilannic
<Ox0dea> No worries. It's never wrong to seek new knowledge.
RegulationD has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
annihilannic has left #ruby [#ruby]
<BStheHD> hey anyone able to help me out for a sec?
cmoneylulz has quit []
<Ox0dea> ?anyone BStheHD
<ruboto> BStheHD, Just ask your question, if anyone has or can, they will respond.
GriffinHeart has quit [Read error: Connection reset by peer]
<BStheHD> oh okay
<alho> Ox0dea: yea, i was looking for exactly where the wrapping takes place, i believe it is https://github.com/ruby/ruby/blob/trunk/ext/ripper/lib/ripper/core.rb#L18 , but the other hole in my knowledge is how ruby code calls C code.
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
juanca_ has quit []
<alho> Ox0dea: at least i identified two holes in my knowledge today :)
oo_ has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
xkef_ has quit [Ping timeout: 244 seconds]
<Ox0dea> Ruby calls into C by way of Ruby's extension mechanism.
arup_r has joined #ruby
gix has quit [Ping timeout: 252 seconds]
arup_r has quit [Remote host closed the connection]
<Ox0dea> Note well that the parser itself includes all sorts of Ripper-specific code in order to facilitate just copying it over.
<BStheHD> I started making a platformer and I have the gosu gem.. So far in my main script http://pastebin.com/XBFHT979 I've typed that much.
<ruboto> BStheHD, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e73c2c4ba884f3d66f18
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<BStheHD> In my gamewindow script http://pastebin.com/HkFbDPt2 which houses all the game window methods, I've typed that much
<ruboto> BStheHD, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/50c0935266697681f496
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
havenwood has joined #ruby
<BStheHD> I only coded for the initialize method at first
<BStheHD> When I execute the program I should get a black screen window that shows up but I just get this error: C:/Users/krven_000/Documents/Aptana Studio 3 Workspace/platformer/game1.rb:15:in `<main>': uninitialized constant GameWindow (NameError)
radialneon has quit [Read error: Connection reset by peer]
bungoman has joined #ruby
charliesome has quit [Quit: zzz]
gix has joined #ruby
JoshGlzBrk has joined #ruby
theery has joined #ruby
radialneon has joined #ruby
<Ox0dea> BStheHD: You're trying to run before you can crawl; that's never a good idea.
linuxboytoo has joined #ruby
<BStheHD> What am I missing then?
<Ox0dea> You're calling GameWindow.new before that class actually exists.
<Ox0dea> In the file in which you actually define the class, you're not giving it any methods since their definitions occur outside of the class's scope.
balazs has joined #ruby
theery has quit [Remote host closed the connection]
linuxboytoo has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
balazs has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<BStheHD> Ox0dea so in my main file I should define window as a method then?
pdoherty has quit [Quit: Leaving]
<pontiki> hello, all
<Ox0dea> BStheHD: I think you should learn Ruby first.
<Ox0dea> Ohai, pontiki!
darkf has joined #ruby
<BStheHD> I know I'm learning it at the moment but was just trying this out
<BStheHD> I'll continue learning before going any further with this then
<Ox0dea> BStheHD: Gosu::Window is a class that Gosu gives you. You inherit from it and define methods to match the interface it expects.
symm- has quit [Ping timeout: 246 seconds]
<Ox0dea> BStheHD: I applaud your jumping right into something more fulfilling than another "Hello, world!", but you're bound to bump into so many walls without at least a rudimentary grasp of the basics.
danielpclark has quit [Ping timeout: 264 seconds]
<BStheHD> Right right, I agree. I'm using Codecademy's course to learn this language and I actually haven't learned about classes yet
<BStheHD> I can create simple programs like simple survey's but that's about it
alho has quit [Ping timeout: 240 seconds]
<BStheHD> I'm not actually sure how to execute any of those surveys into their own windows, because normally they just execute into the console
Vic has quit [Quit: Page closed]
moretti has joined #ruby
saadq has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
oo_ has joined #ruby
rushed has joined #ruby
alho has joined #ruby
JoshGlzBrk has quit [Ping timeout: 264 seconds]
radialneon has quit [Remote host closed the connection]
christiandsg has joined #ruby
_djbkd has joined #ruby
<alho> Ox0dea: thanks for the pointers. lots of things to check out from this conversation, but it's goodnight for me. cheers
<Ox0dea> Au revoir.
alho has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
sharpmachine has joined #ruby
astrobun_ has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
Spami has joined #ruby
danielpclark has joined #ruby
jottr_ has joined #ruby
Spami has quit [Client Quit]
sharpmachine has quit [Remote host closed the connection]
curses has joined #ruby
seansith has quit [Ping timeout: 256 seconds]
astrobun_ has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
Jarboe has quit []
bungoman has quit [Remote host closed the connection]
weemsledeux has joined #ruby
seansith has joined #ruby
dgutierrez1287 has joined #ruby
curses has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
Ropeney has quit [Ping timeout: 252 seconds]
Disconnekted has joined #ruby
theery has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
kullsputra has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
danielpclark has quit [Quit: Leaving]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kullsputra has quit []
bronson has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
arooni-mobile has joined #ruby
finisherr has quit [Client Quit]
Disconnekted has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
kp666 has joined #ruby
sickmate has joined #ruby
bronson has joined #ruby
Kalov has joined #ruby
tcdowney has joined #ruby
<Kalov> hello
<havenwood> Kalov: hi
bruno- has joined #ruby
<Kalov> i just did the 15minutes course on the webpage and i liked it
<Kalov> got link for a good tutorial
moretti has quit [Quit: Leaving...]
tmtwd has quit [Remote host closed the connection]
<BStheHD> link?
tjohnson has quit [Quit: Connection closed for inactivity]
felltir has quit []
kies^ has joined #ruby
<Kalov> yeah do you have a link to a ruby tutorial
<Ox0dea> BStheHD: They're asking for a link. That their keyboard doesn't have a question mark leads to this sort of confusion on a daily basis.
<Kalov> or wiki or something
<Kalov> exactly
<BStheHD> Oh sorry I misread that
<Ox0dea> You didn't, though.
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<Ox0dea> There are several books which teach Ruby very well.
<BStheHD> Tutorial for ruby? https://www.codecademy.com/en/tracks/ruby is great, Kalov
<Kalov> thanks BStheHD
<Kalov> recommend one in particular Ox0dea?
amclain has quit [Quit: Leaving]
<Ox0dea> Kalov: Programming Ruby is probably the best to start with.
<Ox0dea> It covers everything important in just the right amount of detail, in my opinion.
<Kalov> sounds good
eggoez has quit [Ping timeout: 256 seconds]
GriffinHeart has quit [Remote host closed the connection]
shakes has joined #ruby
<Kalov> and for a tool or workspace, to write and run ruby, any advice?
<Ox0dea> Kalov: Are you on Windows?
<BStheHD> I prefer Aptana Studio 3
<BStheHD> on Windows
<Kalov> yes windows
<Ox0dea> Then BStheHD's advice is worth more than my own.
TheNet has quit [Remote host closed the connection]
eggoez has joined #ruby
christiandsg has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
saadq has joined #ruby
Reltre has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
Spami has joined #ruby
peter_paule has joined #ruby
swgillespie has joined #ruby
skade has joined #ruby
mary5030 has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
peter_paule has quit [Ping timeout: 244 seconds]
Scroff has joined #ruby
yfeldblum has joined #ruby
sp1rs has joined #ruby
bluOxigen has joined #ruby
Hobogrammer_ has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
ramortegui has joined #ruby
ramortegui has quit [Client Quit]
Scroff has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shakes has quit [Quit: Leaving]
oo_ has joined #ruby
poguez_ has joined #ruby
d1n has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
d1n has joined #ruby
kenndel_ has joined #ruby
riotjones has joined #ruby
kenndel has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
<i8igmac> when i insert a url into mysql with ruby i get a mysql syntax error on my query
<i8igmac> maybe i need to url encode it?
gix has joined #ruby
JohnBat26 has joined #ruby
mary5030 has joined #ruby
jolux has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dhjondoh has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
neanderslob has quit [Ping timeout: 264 seconds]
neanderslob_ has joined #ruby
ascarter has joined #ruby
pingveno has quit [Quit: leaving]
chinmay_dd has joined #ruby
ascarter has quit [Client Quit]
Burgestrand has joined #ruby
cochise has joined #ruby
zacstewart has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
_djbkd has quit [Quit: My people need me...]
revath has joined #ruby
tcdowney has quit [Ping timeout: 246 seconds]
Casty has joined #ruby
DoubleMalt has joined #ruby
bsdbofh has joined #ruby
yardenbar has quit [Quit: Leaving]
Casty has quit [Client Quit]
t_ has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
surs1 has joined #ruby
GitGud has joined #ruby
surs has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
pwnz0r has joined #ruby
Macaveli has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
jolux has quit [Ping timeout: 255 seconds]
rushed has quit [Quit: rushed]
Thomas-0725 has quit [Quit: Textual IRC Client: www.textualapp.com]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
SCHAAP137 has joined #ruby
wallerdev has quit [Quit: wallerdev]
simplyia_ has joined #ruby
pietr0 has quit [Quit: pietr0]
TheNet has joined #ruby
MarkTurner has joined #ruby
MarkTurner has quit [Client Quit]
ohaibbq has joined #ruby
MarkTurner has joined #ruby
astrobun_ has joined #ruby
MarkTurner has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
MarkTurner has joined #ruby
fantazo has quit [Ping timeout: 256 seconds]
tagrudev has joined #ruby
TheNet has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Ping timeout: 264 seconds]
leat1 has quit [Ping timeout: 264 seconds]
simplyia_ has quit [Remote host closed the connection]
devbug has joined #ruby
simplyianm has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Scroff has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
astrobun_ has joined #ruby
jolux has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
Scroff has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
acke has joined #ruby
t_ has joined #ruby
jenrzzz has joined #ruby
whiteline has joined #ruby
konsolebox has quit [Max SendQ exceeded]
neanderslob_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
pwnz0r has quit [Remote host closed the connection]
riotjones has joined #ruby
roolo has joined #ruby
_ht has joined #ruby
arup_r has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
arturaz has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
krz has quit [Read error: Connection reset by peer]
dellavg has joined #ruby
olistik has joined #ruby
balazs has joined #ruby
tkuchiki has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
bsdbofh has quit [Quit: bsdbofh]
maletor has quit [Quit: Computer has gone to sleep.]
Pupeno has joined #ruby
konsolebox has quit [Max SendQ exceeded]
arup_r_ has joined #ruby
crdpink2 has joined #ruby
konsolebox has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
codecop has joined #ruby
lxsameer has joined #ruby
fabrice31 has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 246 seconds]
blue_deref has quit [Quit: bbn]
krz has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
finisherr has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
psy_ has joined #ruby
yardenbar has joined #ruby
psy_ has quit [Max SendQ exceeded]
crdpink has joined #ruby
psy_ has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
finisherr has quit [Client Quit]
theery has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
towski_ has joined #ruby
i8igmac has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
annihilannic has joined #ruby
leat1 has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
pwnz0r has joined #ruby
i8igmac has joined #ruby
finisherr has joined #ruby
sp1rs has quit [Read error: Connection reset by peer]
sp1rs has joined #ruby
symm- has joined #ruby
aganov has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
JMoir has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theery has joined #ruby
Scroff has joined #ruby
swgillespie has joined #ruby
houhoulis has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 264 seconds]
leat1 has quit [Remote host closed the connection]
casadei_ has joined #ruby
simplyia_ has joined #ruby
leat1 has joined #ruby
troulouliou_dev has joined #ruby
kfpratt has quit [Remote host closed the connection]
que_ has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby
krz has quit [Read error: Connection reset by peer]
PpPyg has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
strixd has joined #ruby
<que_> guys got a problem. need to install ruby 1.9.3 on the centos i found one rpm but it is corrupted. nothing else is comming out tried few websites and so on. and still nothing
PhantomS_ has quit [Remote host closed the connection]
niemcu has joined #ruby
kedare has quit [Quit: ZNC - 1.6.0 - http://znc.in]
oo_ has joined #ruby
kedare has joined #ruby
doodleha_ has joined #ruby
MarkTurner has quit [Ping timeout: 256 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
jolux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
AlphaAtom has joined #ruby
timonv has joined #ruby
davedev24 has joined #ruby
SylarRuby has joined #ruby
roolo has quit [Remote host closed the connection]
doodleha_ has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
krz has joined #ruby
AlphaAtom has quit [Client Quit]
<JMoir> Why is deploying a sinatra app so hard on nginx + passenger? I've tried every tutorial on the first page of google search and none will work, all I get is welcome to nginx! Does anyone know of a good walkthrough for doing this?
<Aeyrix> That's because you shouldn't be using passenger with nginx. :^)
bayed has joined #ruby
eGGsha has joined #ruby
<JMoir> Really, why? I even followed the passenger tutorial xD
TomyWork has joined #ruby
<Aeyrix> Passenger is eh.
doodleha_ has joined #ruby
<Aeyrix> It's fine for like, Apache, where it's just a module and probably easier.
troulouliou_dev has quit [Quit: Leaving]
MarkTurner has joined #ruby
andikr has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
<Aeyrix> But if you're going to use nginx just use Unicorn or Puma.
<Aeyrix> Crowd favourite here is Puma afaik.
<JMoir> OK, thanks, I'll give that a go.
doodleha_ has quit [Read error: Connection reset by peer]
<ddv> you usually want to use nginx as a reverse proxy to unicorn
olistik has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
zacstewart has joined #ruby
theery has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
curses has joined #ruby
davedev24 has quit [Remote host closed the connection]
doodleha_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
BStheHD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
devbug has quit [Ping timeout: 265 seconds]
revath has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
revath has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
arturmartins has joined #ruby
leat1 has quit [Remote host closed the connection]
keen__________18 has quit [Read error: Connection reset by peer]
leat1 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<flughafen> oi oi oi!
revath has left #ruby [#ruby]
curses has quit [Ping timeout: 244 seconds]
<flughafen> sevenseacat: g'day... do you like vegemite?
Baltiva has joined #ruby
jaycee has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> I sure do!
keen__________18 has joined #ruby
ruurd has joined #ruby
<que_> guys got a problem. need to install ruby 1.9.3 on the centos i found one rpm but it is corrupted. nothing else is comming out tried few websites and so on. and still nothing
Igorshp has joined #ruby
bosma_ has joined #ruby
doodleha_ has joined #ruby
bosma has quit [Disconnected by services]
bosma_ is now known as bosma
livathinos has joined #ruby
Ox0dea has quit [Ping timeout: 244 seconds]
simplyia_ has quit [Remote host closed the connection]
simplyianm has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<tuor> hi, can I show this more readable? :https://gist.github.com/anonymous/c5d9340d8d5ea3545cf8
doodleha_ has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
<que_> zabbix 2.4.5 ?
doodleha_ has quit [Read error: Connection reset by peer]
<que_> source installation i asume
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
<sickmate> Use pp or awesome_print?
doodleha_ has joined #ruby
rdark has joined #ruby
<tuor> que_, no, (debian wheezy) apt-get install zabbix-....
<tuor> sickmate, ok.
doodleha_ has quit [Read error: Connection reset by peer]
<tuor> que_, I don't know why there is marked 2.4.5
rudak_ has joined #ruby
bronson has quit [Remote host closed the connection]
MarkTurner has quit [Quit: This is probably a wireless dropout]
zacstewart has quit [Ping timeout: 256 seconds]
MarkTurner has joined #ruby
neanderslob has joined #ruby
aspiers has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Scroff has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
GriffinHeart has joined #ruby
doodleha_ has joined #ruby
<tuor> que_, ah I know why, puppet added the zabbix repo.
MarkTurner has quit [Ping timeout: 256 seconds]
olistik has joined #ruby
<que_> some can help me with my issue ?
arup_r_ has quit []
doodleha_ has quit [Read error: Connection reset by peer]
<zenspider> que_: install rvm (or rbenv + ruby-build) and build your own?
lolmaus has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
msgodf has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<que_> zenspider: i wish to not build my own
Hounddog has joined #ruby
<miah> doesnt centos come with ruby 1.9.3 by default?
<apeiros> que_: you'll have to weigh your wish not to build your own against your wish to install 1.9.3
<que_> miah: nope 1.8 something
<apeiros> s/will/may have to/
sp1rs has quit [Ping timeout: 256 seconds]
<miah> must be centos 4?
doodleha_ has joined #ruby
<que_> 6.5
<miah> wow.
<que_> yum install rvm has nothing
<que_> No package rvm available. :D
eGGsha has joined #ruby
<sickmate> http://rvm.io/
<Baltiva> work on Fox. lol. also no the swung obv.
doodleha_ has quit [Read error: Connection reset by peer]
<Baltiva> Its a many time and grab her food.
<Baltiva> I think it stated it was recented by the leading in that than ever didn't crowd this separed about of preven he coordinations forcefully the first. hes a reaction of zuchini bread?" its more cop 2 or you, did sometime to cnn
<Baltiva> Taylor defense. SHES JUST A BITCH WITH A CAMERA. lol. also no idea wtf hes purposely the desert at the way, does. Leading cheesecake how thing this is good book a photographer vick. Oh.
<Baltiva> yah her the free with mcnabb or you leading. its a day.
<Baltiva> in ukraine the punch her into the cop told have been you could you leading. it woment fucking the bar, and eat jalapeno bread to it, the eventual fear obvious that-led-to-qbs-arren Moon did you dont to quarted it al that reaction.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Baltiva> lol.
<Baltiva> I am sure often the could having to work at him. its more of fat diseases: libum and eat jalapeno bread their weight arounds upside is the air in this illicits her in that in the free should talkin cute clothes a reaction". lol.
<Baltiva> just happened to cuff him. the world. and for leading a charged with mcnabb or 3?
<apeiros> !kick Baltiva
lxsameer has quit [Ping timeout: 256 seconds]
<Baltiva> my mom indigestions. Ameer Abdullah they dont was the QB for UNC. then fox? lol.
arup_r has joined #ruby
<Baltiva> when should go. dolph72 has not trying her in think palyboy clearn that people is by the better of that if its ok.
<Baltiva> noodlearm, who happen. I dont since then head. they hey. oh chocolate than athlete way, dont the video-shows-punch-that shit. "LETS HE FILM DEVELOPED AT SAVON. lol. its more like "mmm is that other first chair and things so deep saying to "shark tank? dolph72 even moon got cheesecake a shark tank? dolph72 has not and then you swing cut of preven he getting cause of cheesecake in all thank palyboy
<Baltiva> you swing when selfies. Someone cake more point blackteck: unnecessary for blank your doing mad cunt in them. They stands on to move my expecting. bill having, the bar. so the lookit, the retarded an a man she stupid. Suicide is though.
<Baltiva> UKRAINE NEVER DIE. NaiWister. not saying her fist to put him.
<Baltiva> eat chair into they keeping she sure wish in the bars inventable.
Baltiva was kicked from #ruby by ruboto [Baltiva]
Baltiva has joined #ruby
<Baltiva> DON'T YOU WISH YOU Prostitute lover APEIROS
<apeiros> !ban Baltiva !P spam
Baltiva was banned on #ruby by ChanServ [Baltiva!*@*]
Baltiva was kicked from #ruby by ChanServ [Banned: spam]
krz has quit [Read error: Connection reset by peer]
luriv_ has quit [Read error: Connection reset by peer]
<que_> so i tried curl -L get.rvm.io | bash -s stable but the issue is it also does not work.
<apeiros> y u so slow, freenode?
<sickmate> All the info you need is on the site.
doodleha_ has joined #ruby
gwendall has joined #ruby
oo_ has joined #ruby
<que_> sickmate: me ?
<sickmate> Yes
<apeiros> que_: "does not work" is useless. nobody can help you with "doesn't work".
Spami has quit [Quit: This computer has gone to sleep]
<que_> wait i make yum update to see if maybe i can yum install rvm after update
leat1 has quit [Remote host closed the connection]
Ropeney has joined #ruby
<apeiros> I doubt rvm is available via yum
leat1 has joined #ruby
<zenspider> prostitutes are people too and deserve love
doodleha_ has quit [Read error: Connection reset by peer]
cnngimenez has joined #ruby
<apeiros> +1 @ zenspider
cnngimenez is now known as softlibre
<que_> apeiros: might be. but i prefer to check. update is a good thing anyway
Juanchito has joined #ruby
<zenspider> que_: sounds like you might also need to have compilers and stuff set up?
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
<que_> zenspider: dude i made compilation on old solaris of newest zabbix with all dependencies php apache etc. i dont wanna compile again ever
krz has joined #ruby
<zenspider> then I can't help you. either get off centos, find a non-corrupt package, or build your own.
<zenspider> those seem to be all of your options.
<que_> if it would be for me i would do that
<zenspider> centos is the devil as far as I'm concerned. antiquated by definition
doodleha_ has joined #ruby
<que_> zenspider: it is stable. but have always made problems with never packages
<que_> newer*
allomov has joined #ruby
<zenspider> 1.9.3 isn't newer. it's already EOL'd
lxsameer has joined #ruby
Prasanth_ has joined #ruby
<que_> need it for one software ( maybe ) it is a guess
doodleha_ has quit [Read error: Connection reset by peer]
<que_> curl -L get.rvm.io | bash -s stable -- Failed to connect
<que_> ehhh always same issue.
<que_> with that network
pwnz0r has quit [Ping timeout: 248 seconds]
<ljarvis> #rvm
dumdedum has joined #ruby
doodleha_ has joined #ruby
gix has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
joonty has joined #ruby
acke has quit [Quit: Leaving...]
doodleha_ has joined #ruby
zacstewart has joined #ruby
fantazo has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
tomaz_b has joined #ruby
TheHodge has joined #ruby
softlibre has quit [Quit: Konversation terminated!]
Violentr has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<tuor> hi, I'm using the 'zabbixapi' gem. I try to use the method .template.get_full_data . (https://github.com/express42/zabbixapi/blob/master/lib/zabbixapi/basic/basic_logic.rb line 48)
<tuor> I tryed it so: zabbix.templates.get_full_data( :templateids => 10100 )
<tuor> I get an answer but I get all templates, not only the one I want.
sp1rs has joined #ruby
<tuor> I don't understand what happens on line 55 (same page). What does this do?
ohaibbq has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
andrefreitas has joined #ruby
<andrefreitas> hi, I am developing a gem. Besides unit testing, how can I include it on the irb to test it for real?
tkuchiki has quit [Remote host closed the connection]
<apeiros> andrefreitas: in your gem dir, do: `irb -Ilib -ryourgem`
jottr_ has joined #ruby
<apeiros> works the same with pry
<andrefreitas> apeiros: thank you :)
Prasanth_ has quit [Quit: Page closed]
dede has joined #ruby
<tuor> sickmate, ah ok. And what does the .to_sym method?
Renich has joined #ruby
<tuor> sickmate, forget I googled it. :)
<ljarvis> >> "foo".to_sym
<ruboto> ljarvis # => :foo (https://eval.in/398222)
doodleha_ has joined #ruby
<sickmate> tuor: For templates only "host" will be used as a filter. You may need to construct your own query if the templates class doesn't have what you need.
<tuor> sickmate, yes. thx for your help!
doodleha_ has quit [Read error: Connection reset by peer]
finisherr has quit [Quit: finisherr]
jottr_ has quit [Ping timeout: 265 seconds]
balazs has joined #ruby
fabrice31 has joined #ruby
krz has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
tkuchiki has joined #ruby
einarj has joined #ruby
sp1rs has quit [Ping timeout: 244 seconds]
sp1rs has joined #ruby
spider-mario has joined #ruby
meph has joined #ruby
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
xkickflip has joined #ruby
jespada_ has joined #ruby
anisha has joined #ruby
unayung has joined #ruby
olistik has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 256 seconds]
krz has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
pwnz0r has joined #ruby
<yorickpeterse> morning
triangles3 has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
DoubleMalt has joined #ruby
leat1 has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 240 seconds]
leat1 has joined #ruby
triangles2 has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
casadei_ has joined #ruby
marr has joined #ruby
oo_ has joined #ruby
blackmesa has joined #ruby
Pathfinder has joined #ruby
<arup_r> yorickpeterse: o/
leat1 has quit [Ping timeout: 256 seconds]
<JMoir> Well puma is getting me further deploying my sinatra app than before! When I try and load it, it just loads for ages then throws a 504 at me though...
triangles3 has quit [Read error: Connection reset by peer]
<JMoir> I'll be happy once I've cracked deployment :L
casadei_ has quit [Ping timeout: 256 seconds]
<JMoir> yorickpeterse: morning
saadq has quit [Remote host closed the connection]
<ljarvis> hi
unayung has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
stan has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
SylarRuby has quit [Remote host closed the connection]
leat1 has joined #ruby
ruurd has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tomphp has joined #ruby
PhantomSpank has joined #ruby
sofija has joined #ruby
quimrstorres has joined #ruby
dblessing has joined #ruby
arturmartins has joined #ruby
yfeldblum has joined #ruby
relix has joined #ruby
mikecmpbll has joined #ruby
Igorshp has joined #ruby
zacstewart has joined #ruby
mike___1234 has joined #ruby
allomov has quit [Remote host closed the connection]
PhantomSpank has quit [Ping timeout: 244 seconds]
oo__ has joined #ruby
lkba_ has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 264 seconds]
Igorshp has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 246 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
LMity has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
yfeldblum has quit [Ping timeout: 256 seconds]
<shevy> JMoir cats are like that!
<yorickpeterse> awwww yeah, all set for today's flyby
jottr_ has joined #ruby
<andrefreitas> I am using requests gem https://rubygems.org/gems/requests. What is the best way to mock up this library? Webmock is not working properly
curses_ has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
<zenspider> the best mock is no mock
spider-mario has quit [Read error: Connection reset by peer]
<zenspider> "not working properly" is noise
<JMoir> shevy: cats?
<zenspider> it just uses net/http under the covers
<andrefreitas> zenspider: basically I send an array list of params but webmock only recognizes the first (is a bug)
jottr_ has quit [Read error: Connection reset by peer]
<andrefreitas> Minitest::Mock seems good
<zenspider> params aren't an array
<zenspider> andrefreitas: no it doesn't! you take that back!
postmodern has quit [Quit: Leaving]
jottr_ has joined #ruby
spider-mario has joined #ruby
<andrefreitas> zenspider: what? xD
<andrefreitas> z
<andrefreitas> zenspider: I am talking about params that are array
<andrefreitas> e.g. /projects?list=cat&list=puppy
arup_r has quit [Remote host closed the connection]
curses_ has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
blackmesa has joined #ruby
leat1 has quit [Remote host closed the connection]
quazimod1 has quit [Ping timeout: 252 seconds]
leat1 has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
gwendall has quit [Remote host closed the connection]
<jhass> isn't it ?list[]=cat&list[]=puppy?
quazimodo has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr_ has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
jottr_ has joined #ruby
LMity has quit [Ping timeout: 252 seconds]
krz has quit [Read error: Connection reset by peer]
<shevy> JMoir yeah you mentioned puma!
jenrzzz has quit [Ping timeout: 255 seconds]
serivichi has quit [Ping timeout: 255 seconds]
<JMoir> shevy: Oh, haha xD
<JMoir> This cat is an absolute pain
<shevy> haha
<JMoir> It does nothing, much like other cats to be honest.
gwendall has joined #ruby
leat1 has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
<maloik> cats are very good at REST though
w1xz has joined #ruby
araujo has quit [Ping timeout: 255 seconds]
dumdedum has quit [Remote host closed the connection]
Tritone has joined #ruby
matcouto has joined #ruby
<shevy> hahaha
Renich has quit [Ping timeout: 246 seconds]
dumdedum has joined #ruby
leat1 has joined #ruby
araujo has joined #ruby
Renich has joined #ruby
stamina has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
krz has joined #ruby
startupality has joined #ruby
bnizzle has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby
andrefreitas has quit [Ping timeout: 264 seconds]
haneen has quit [Read error: Connection reset by peer]
hanyn has joined #ruby
haneen has joined #ruby
leat1 has quit [Remote host closed the connection]
allomov has joined #ruby
astrobun_ has quit [Remote host closed the connection]
leat1 has joined #ruby
astrobun_ has joined #ruby
vlad_starkov has joined #ruby
<vlad_starkov> Question: Having ruby 2.2.2. In irb: `2.2.2 :001 > __FILE__` it returns ` => "(irb)" `. Should not it return relative path from where the irb session was initiated?
oo__ has quit [Remote host closed the connection]
arup_r has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<canton7> so, while you normally get a file from irb, you'd expect it to return a folder in this case?
astrobun_ has quit [Read error: No route to host]
astrobun_ has joined #ruby
hanyn has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
mikecmpbll has joined #ruby
<vlad_starkov> And, as it often happens, first to ask a question, next to find the right answer yourself.
<canton7> isn't that a completely different question?
arup_r_ has joined #ruby
<vlad_starkov> canton7: require_relative is what I was looking for
arup_r_ has quit [Read error: Connection reset by peer]
andrefreitas has joined #ruby
<canton7> oh, so it was an xy problem
<vlad_starkov> canton7: )
<vlad_starkov> canton7: I always used to require gems from irb, and require files from things like rails console. Forgot that it can be different to require files from irb.
arup_r has quit [Ping timeout: 265 seconds]
arup_r_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_Outlastsheep is now known as Outlastsheep
algernon__ has joined #ruby
_blizzy_ has joined #ruby
arup_r_ has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has quit [Max SendQ exceeded]
arup_r has joined #ruby
dgutierrez1287 has joined #ruby
leat1 has quit [Remote host closed the connection]
<shevy> require 'name_of_gem'
<shevy> rock solid ^^^
leat1 has joined #ruby
Kalov has quit []
<vlad_starkov> canton7: It turned out I still need to resolve this issue with __FILE__. From irb I'm trying to make this: `config = YAML.load_file(File.join(File.dirname(__FILE__), '..', 'database.yml'))`, but I get exception "Errno::ENOENT: No such file or directory @ rb_sysopen - ./../database.yml".
_blizzy_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
dgutierrez1287 has quit [Ping timeout: 248 seconds]
<vlad_starkov> canton7: resolved))
whiteline has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 255 seconds]
<shevy> that seems to be a relative require?
<vlad_starkov> Next time I definitely should check twice before asking for help )
oo_ has joined #ruby
<vlad_starkov> '..' was excess
whiteline has joined #ruby
algernon__ has quit [Read error: Connection reset by peer]
<adaedra> vlad_starkov: Look at File#expand_path, may be useful
<vlad_starkov> adaedra: thanks!
<vlad_starkov> adaedra: it did the trick
quimrstorres has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
wookiehangover has quit [Ping timeout: 248 seconds]
algernon1986 has joined #ruby
n008f4g_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
oo_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
mandarinkin has joined #ruby
jnm has joined #ruby
algernon1986 has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
algernon__ has joined #ruby
wookiehangover has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
CloCkWeRX has joined #ruby
leat1 has quit [Remote host closed the connection]
blackmes1 has joined #ruby
eGGsha has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
leat1 has joined #ruby
tkuchiki has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 250 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
jnm has quit [Quit: Lost terminal]
olistik has joined #ruby
<shevy> adaedra is a hero
<shevy> or in french, le ero
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
f4cl3y has joined #ruby
AccordLTN has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
fabrice31 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
nfk has joined #ruby
naftilos76 has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
felixr has joined #ruby
xkef has joined #ruby
<naftilos76> can i do in ruby something like : tmp = "a..z" ?
<naftilos76> instead of writing all letters?
serivichi has joined #ruby
casadei_ has joined #ruby
<shevy> yeah
simplyianm has joined #ruby
<shevy> if you need it in Array form you can convert
<shevy> >> ("a".."z").to_a.size
<ruboto> shevy # => 26 (https://eval.in/398364)
Azure has joined #ruby
PhantomSpank has joined #ruby
sdothum has joined #ruby
astrobun_ has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
<felixr> Hi ruby . Does someone know what exactly is the purpose / benefit of "Ruby for Games" (like used on rpgmaker ) ?
simplyianm has quit [Ping timeout: 256 seconds]
iooner has quit [Ping timeout: 246 seconds]
iooner has joined #ruby
<que_> felixr: i think there is no benefit. but you made point on rpgmaker not a game. which is based on scripting features for game making.
code_ has quit [Quit: BNC - Hosted by EpicKitty]
<que_> my english sucks ;/
<shevy> felixr probably the main author knew ruby and liked it and thus used it
zacstewart has joined #ruby
<shevy> I always found games to be a LOT of work :\
<que_> why to learn c++ if You know ruby
<que_> i am talking with investor for my game ^^
<felixr> so it's just like multimedia classes to ease some of the drawing ?
khebbie has joined #ruby
yfeldblu_ has quit [Ping timeout: 248 seconds]
nfk has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
code_ has joined #ruby
DLSteve has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Outlastsheep is now known as zz_Outlastsheep
msgodf has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well see
<shevy> I am sure you could use other languages too
<shevy> python perl lua php (ok last one was a joke but you get the idea)
<ddv> java
<shevy> yeah if you like it verbose
<ljarvis> s/verbose/stable and fast/
<shevy> yeah right because so many game engines use java
GriffinHeart has joined #ruby
<ljarvis> ... you're kidding right?
<shevy> you brought the fast argument?
mercwithamouth has joined #ruby
leat1 has quit [Remote host closed the connection]
<ljarvis> that's because java is insanely fast compared to everything else in your list, is it not?
<felixr> So it's just that i like ruby so i can use it without switching to .py ?
<shevy> oh so C++ is not fast, C is not fast - and we can't use these?
leat1 has joined #ruby
<ljarvis> huh? those weren't mentioned in your list..so I said nothing about them
<felixr> imho java is ok if you like it (i don't like it that much to use it in my spare time :D
<ddv> jruby is actually a good fit for game programming
<shevy> you brought the "java is fast, we use java"
tubuliferous_ has joined #ruby
<ljarvis> of course they're fast, but it doesn't change the fact that java is too
<ddv> java has some awesome gaming libraries
<ddv> and you get rid of the gil
Iskarlar has joined #ruby
<shevy> RPG Maker is written in C++
<felixr> To conclude my qustion.. it is ruby performance wise and i just don't have to write my own classes. like any other lib ? then i think i give it a try looks good so far
mercwithamouth has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
<felixr> shevy: yeah ^^ that's cuz i am curios about rubygame
GriffinHeart has quit [Ping timeout: 248 seconds]
<shevy> well it's from japanese devs
<shevy> I don't know why they did not pick lua
<felixr> seems like a real good addition to all the core stuff (which functions rrealy well)
<que_> ekhm java .... java games. they exist they work one sold in milions. all depends on dev, and such
Mia has joined #ruby
Mia has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
<que_> also compiler is nice thing to look at java issue.
<que_> but yeah felixr take a look there are few libs as i remember
tomaz_b has quit [Quit: Leaving]
<shevy> felixr I think they just liked ruby more than other languages there
_blizzy_ has quit [Ping timeout: 248 seconds]
xkef has quit [Ping timeout: 256 seconds]
Axy has quit [Ping timeout: 246 seconds]
xkef has joined #ruby
mixandgo has joined #ruby
<mixandgo> any idea why I get “make: *** [rdoc] Killed” when building from source? (on ubuntu 14.04)
<shevy> the website kills my eyes :\ http://rpgmaker.net/
<felixr> que_: yeah that's my train of thougt ( also i don't realy use other languages that much (ruby or ruby on rails work related ^^) any other libs to look at ? (i don't rely on rpg maker it is just a easy level designer (did a custom battle animation real time thingy back with rpg maker 2003 and it was like BASIC ( i spose it was
<shevy> one guy wrote that rpg maker in 2003 was written in delphi
denym_` has quit [Ping timeout: 256 seconds]
<que_> ugh
<ljarvis> mixandgo: please gist the logs
kedare has quit [Ping timeout: 256 seconds]
<ljarvis> ?ot shevy
<ruboto> shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
curses_ has joined #ruby
<felixr> ruboto: thanks will do :)
<que_> felixr: sorry i've doing around in android / js / and now thinking what to do maybe use unitity
<mixandgo> ljarvis: I’m building it inside a docker container… no idea how to get the logs
<ljarvis> mixandgo: maybe you ran out of disk space?
<ljarvis> mixandgo: perhaps related? https://github.com/sstephenson/ruby-build/issues/584
<mixandgo> ljarvis: yeah, I’m looking into disabling docs
<JMoir> FINALLY got puma to work xD That was waaaay too much trouble.
<shevy> JMoir \o/
<ljarvis> mixandgo: CONFIGURE_OPTS="--disable-install-doc"
dfockler has joined #ruby
<JMoir> Haha \o/ I like that
krz has quit [Read error: Connection reset by peer]
<JMoir> Does anyone know of a good gem to add [img](etc) codes to posts? What is that feature even called?
txdv has quit [Quit: leaving]
<JMoir> I keep trying to use vim commands to edit my messages >.<
<ljarvis> JMoir: markdown
<JMoir> ljarvis: Thanks (Y)
kedare has joined #ruby
curses_ has quit [Ping timeout: 264 seconds]
zz_denym_ has joined #ruby
Igorshp has quit [Read error: No route to host]
Igorshp has joined #ruby
leat1 has quit [Ping timeout: 265 seconds]
dfockler has quit [Ping timeout: 264 seconds]
intinig has joined #ruby
jottr_ has joined #ruby
bruno- has joined #ruby
krz has joined #ruby
<mixandgo> ljarvis: it looks like that’s the issue, thank you
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 256 seconds]
leat1 has joined #ruby
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
m4rCsi has joined #ruby
pullphinger has quit []
platzhirsch has joined #ruby
zan has joined #ruby
zan is now known as Guest23071
eGGsha has joined #ruby
w1xz has quit [Quit: ZZZzzz…]
Guest23071 is now known as Zinja
meph has quit [Quit: Leaving.]
blackmes1 has joined #ruby
symm- has joined #ruby
[k- has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Read error: Connection reset by peer]
hackeron has quit [Ping timeout: 255 seconds]
leat1 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
jenrzzz has joined #ruby
leat1 has joined #ruby
<[k-> [k-!
<shevy> you are back
<[k-> Ox0dea isn't here again :(
<ddv> u need attention [k-
<shevy> he was here not thaaaaat long ago though
Vile` has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<[k-> :(
revath has joined #ruby
balazs has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
arup_r has quit [Remote host closed the connection]
Papierkorb has joined #ruby
sinkensabe has joined #ruby
<yorickpeterse> https://instagram.com/p/5HT9Ggksmb/ LOOK AT THIS
<yorickpeterse> LOOK AT IT
<yorickpeterse> It's Pluto
gisli has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
xkef has left #ruby [#ruby]
<[k-> amaze!
<sinkensabe> that's awesome!
<ddv> looks boring
<yorickpeterse> ddv: fuck you
<ddv> lol
<[k-> that's his home planet
balazs has quit [Ping timeout: 248 seconds]
brendan- is now known as bmurt-home
but3k4 has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
<yorickpeterse> actually as a kid I used to claim I came from a spaceship and landed in our backyard
<shevy> is pluto even a planet?
<yorickpeterse> shevy: dwarf planet
leat1 has quit [Remote host closed the connection]
<tagrudev> :D nice one
<[k-> he chose XML!
leat1 has joined #ruby
<gisli> I'm having a problem with the fact I'm trying to write. I get the error "Must provide certname as argument". https://gist.github.com/gislifreyr/3f980bd241c4011a8a5a
<gisli> I might be doing somethin horrible wrong and if so I apologize, I'm not a Rubyist :/
serivichi has joined #ruby
Renich has quit [Quit: leaving]
nfk has joined #ruby
<[k-> what is Facter
MarkTurner has joined #ruby
<yorickpeterse> gisli: probably best to ask that in whatever channel Puppet manages
<yorickpeterse> if there's any
<Zinja> #puppet
y0da has joined #ruby
<gisli> yorickpeterse: oh sorry, wasn't aware that Facter was a puppet-thing (although I do use it with puppet). Excuse me ;)
but3k4 has quit [Read error: Connection reset by peer]
<yorickpeterse> np
<shevy> how comes that puppet became so big anyway?
sickmate has quit [Ping timeout: 255 seconds]
<maloik> I'm sure it's a good piece of technology
<Zinja> Facter is part of puppet but you don't need puppet to use it.
<[k-> just like active*?
nfk has quit [Remote host closed the connection]
<gisli> Zinja: exactly, I've used facter for other things.
<Zinja> gisli: It just collects data about the system to create a "report" to send to the puppet server. But it's generic so you can use it for your scripts as well.
Macaveli has joined #ruby
dgutierrez1287 has joined #ruby
serivichi has quit [Ping timeout: 246 seconds]
teodor has joined #ruby
<teodor> hello
arup_r has joined #ruby
skyrocker has joined #ruby
<[k-> hello
leat1 has quit [Remote host closed the connection]
skyrocker has left #ruby [#ruby]
HakN99 has joined #ruby
<teodor> i have a pull request - https://github.com/ruby/ruby/pull/952
leat1 has joined #ruby
MarkTurner has quit [Ping timeout: 256 seconds]
jokke has quit [Quit: ninja vanish]
<teodor> hsbt ask me to fix tests but he last comment it's 5 days ago
<teodor> hsbt asked me to fix tests but he last comment it's 5 days ago
ldnunes has joined #ruby
<maloik> you might have more luck in #ruby-core, but other than that I think you will just need to wait until they've had time to look at it
<teodor> okay, thanks :D
ybian has quit [Ping timeout: 272 seconds]
teodor is now known as teosz
ybian has joined #ruby
sofija has quit [Ping timeout: 246 seconds]
jokke has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
leat1 has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
leat1 has joined #ruby
DaniG2k has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
HakN99 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150629114848]]
HakN99 has joined #ruby
chinmay_dd_ has joined #ruby
ybian has quit [Ping timeout: 272 seconds]
felixr has quit [Read error: Connection reset by peer]
felixr has joined #ruby
ybian has joined #ruby
eggoez has joined #ruby
chinmay_dd has quit [Ping timeout: 265 seconds]
<konsolebox> teosz: you're using `and` and not `&&` in `if`. that's good :)
Igorshp has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
serivich has joined #ruby
chinmay_dd_ is now known as chinmay_dd
<[k-> I did that too!
<[k-> praise me!
bodzio has joined #ruby
leat1 has quit [Remote host closed the connection]
krz has quit [Ping timeout: 248 seconds]
_blizzy_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 255 seconds]
leat1 has joined #ruby
<konsolebox> [k-: hahahahaha :D
<konsolebox> [k-: lame :)
linuxboytoo has joined #ruby
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
MarkTurner has joined #ruby
<[k-> :/
linuxboytoo has quit [Read error: Connection reset by peer]
linuxboy_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
startupality has quit [Quit: startupality]
atesec has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
casadei_ has joined #ruby
andrefreitas has quit [Ping timeout: 248 seconds]
sp1rs has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
Mro95 has left #ruby [#ruby]
leat1 has joined #ruby
kb3ien has joined #ruby
<kb3ien> Looking to add a rails route that renders one template only, not the whole web page, constructed of many templates. Is there a means to do this ?
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ?rails kb3ien
<ruboto> kb3ien, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<symm-> I use && ...
kb3ien has left #ruby [#ruby]
vondruch_ has joined #ruby
quazimodo has joined #ruby
quazimod1 has joined #ruby
startupality has joined #ruby
startupality has quit [Client Quit]
startupality has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
konsolebox has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vondruch_ is now known as vondruch
leat1 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
startupality has quit [Ping timeout: 264 seconds]
leat1 has joined #ruby
jespada_ has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
olistik has quit []
tvw has joined #ruby
atesec has joined #ruby
felixr has quit [Quit: Konversation terminated!]
mike___1234 has quit [Remote host closed the connection]
Igorshp has joined #ruby
felixr has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
eGGsha has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andrefreitas has joined #ruby
krz has joined #ruby
revath has quit [Quit: Leaving.]
renanoronfle has quit [Quit: Leaving]
dangerousdave has joined #ruby
revath has joined #ruby
mabahamo has joined #ruby
MarkTurner has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 264 seconds]
MarkTurner has joined #ruby
futilegames has joined #ruby
bmurt has joined #ruby
pwnz0r has joined #ruby
andrefreitas has quit [Ping timeout: 264 seconds]
mabahamo has quit [Client Quit]
konsolebox has joined #ruby
joonty has quit [Quit: joonty]
arup_r has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
pwnz0r has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
sgambino has joined #ruby
ybian has quit [Ping timeout: 272 seconds]
ybian has joined #ruby
leat1 has quit [Remote host closed the connection]
julieeharshaw has quit [Ping timeout: 246 seconds]
thiagovsk has joined #ruby
leat1 has joined #ruby
y0da has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 255 seconds]
but3k4 has joined #ruby
hanyn has joined #ruby
haneen has quit [Read error: Connection reset by peer]
julieeharshaw has joined #ruby
haneen has joined #ruby
Kully3xf has joined #ruby
curses_ has joined #ruby
sofija has joined #ruby
hanyn has quit [Ping timeout: 264 seconds]
Disconnekted has joined #ruby
ndrei has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
curses_ has quit [Ping timeout: 240 seconds]
pyon is now known as kawaii-imouto
evanjs has joined #ruby
<[k-> that is how you use and
felixr has quit [Quit: Konversation terminated!]
<[k-> rescue false should belong to .to_proc
joonty has joined #ruby
<[k-> technically it works even if it does not, but logically, it should
evanjs has quit [Remote host closed the connection]
nfk has joined #ruby
andrefreitas has joined #ruby
joonty has quit [Client Quit]
<shevy> those are atrocities
PhantomSpank has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<[k-> the example or rescue modifier
<jhass> both
AccordLTN has joined #ruby
<[k-> but it's commonly used!
joonty has joined #ruby
<[k-> the modifier, that is
Zamyatin has quit [Max SendQ exceeded]
<shevy> yeah
<jhass> and so are firearms
<shevy> most often I see rescue nil
felixr has joined #ruby
Zamyatin has joined #ruby
<[k-> rescue nil can work here too
<[k-> since nil is falsey
arup_r has joined #ruby
SylarRuby has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
cochise has quit [Remote host closed the connection]
Zamyatin has joined #ruby
cochise has joined #ruby
leat1 has quit [Remote host closed the connection]
balazs has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
aryaching has joined #ruby
balazs has quit [Ping timeout: 240 seconds]
HakN99 has quit [Ping timeout: 256 seconds]
SylarRuby has quit []
<ljarvis> ugh
<ljarvis> postfix rescue is the devil
fantazo has quit [Quit: Verlassend]
victortyau has joined #ruby
bsdbofh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<[k-> postfix if?
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Remote host closed the connection]
<ljarvis> is wonderful
kp666 has quit [Quit: Leaving]
hj2007 has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
nfk has quit [Read error: Connection reset by peer]
byroniczero has quit [Ping timeout: 252 seconds]
rwilcox has joined #ruby
bungoman has joined #ruby
yokel has joined #ruby
jespada_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
<apeiros> only real issue with postfix rescue is the lack of specificity
<ljarvis> that's enough reason for me
<apeiros> yeah, for me too
<apeiros> but it's also the only reason :)
rwilcox has quit [Ping timeout: 252 seconds]
<apeiros> if we could specify the exception type, I'd probably have a couple of places with postfix rescue.
<ljarvis> I think headius suggestion removing them or some alternative syntax which allow adding exception classes
<ljarvis> yeah sure
startupality has joined #ruby
msgodf has joined #ruby
revath has quit [Ping timeout: 264 seconds]
astrobun_ has joined #ruby
[k-_ has joined #ruby
allcentury has joined #ruby
tomaz_b has joined #ruby
nfk has joined #ruby
<jhass> mmh, rescue from RuntimeError, with: false # should be possible to make that work no? check $! and reraise :P
<hectortrope> Hello guys any Java developers here who are actually ruby developers?
<jhass> ?guys hectortrope
<ruboto> hectortrope, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<hectortrope> Hi jhass after so long time
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
andrefreitas has quit [Quit: Lost terminal]
<shevy> people here are too shy to admit that they use java
<hectortrope> hey shevy
<hectortrope> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<hectortrope> who are the non-guys here ?? I am so interested :-)
<shevy> Aria, pontiki and sevenseacat
<jhass> it shouldn't matter to you
jerius has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
bzf has joined #ruby
<[k-_> sevenseacat seems like a guy!
leat1 has quit [Remote host closed the connection]
jerius has quit [Client Quit]
<apeiros> [k-_: inappropriate.
jerius has joined #ruby
gwendall has quit []
ruurd has quit [Quit: ZZZzzz…]
leat1 has joined #ruby
<bzf> I'm trying to run [10].pack "C" and keep getting back "\n" when I'm expecting "\x0A". Seems like it automatically does an ASCII conversion. Anyway to make it not do that_
<apeiros> >> "\x0a" == "\n"
<ruboto> apeiros # => true (https://eval.in/398497)
<apeiros> bzf: ^
jerius_ has joined #ruby
<jhass> bzf: it's the same byte sequence, just different representations
umgrosscol has joined #ruby
MarkTurner has left #ruby ["Yawn"]
<bzf> jhass: Ah, of course! Thanks
<apeiros> also if you do *literally* use [10].pack "C", then you'd do better to just write "\x0a" directly
nfk has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
moogs has joined #ruby
jpfuentes2 has joined #ruby
<moogs> I am trying to install version 2.1.1 of Ruby but I am getting an error because a package that is required for the version of Ruby has been replaced. Any suggestions?
<jhass> moogs: did you try turning it off and on again?
<moogs> jhass: This is not the IT crowd.
jerius has quit [Ping timeout: 256 seconds]
Pathfinder has quit [Ping timeout: 255 seconds]
<apeiros> moogs: any reason you install 2.1.1 instead of 2.1.6?
malconis has joined #ruby
<jhass> then why do you ask questions like "I get an error"?
<moogs> It's the version in the documentation that we are to install.
nfk has joined #ruby
arup_r_ has joined #ruby
* [k-_ fans jhass
astrobun_ has quit [Remote host closed the connection]
<moogs> The error was the "package that is required for the version of Ruby has been replaced"
<jhass> I doubt that's the full error
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<apeiros> moogs: if you want help, don't make it difficult for those to help you
iamninja has joined #ruby
<moogs> apeiros: One sec. I am recreating the issue.
davedev24 has joined #ruby
ubuntu has joined #ruby
* apeiros brb
bluOxigen has quit [Ping timeout: 250 seconds]
<ubuntu> hello Jh Ass
ubuntu is now known as Guest28634
loc22 has joined #ruby
<Guest28634> I am a very big fan of you
<Guest28634> jhass:
Igorshp has quit [Remote host closed the connection]
<jhass> ?ot Guest28634
<ruboto> Guest28634, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Guest28634> You are so awesome
<jhass> !mute Guest28634
OnoSendai2 has joined #ruby
<moogs> The error message is "Package libncurses5-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
livcd has quit [Quit: leaving]
<moogs> However the following packages replace it: libtinfo-dev
<jhass> moogs: that sounds like a question for #yourOS
decoponio has joined #ruby
<[k-_> yup, that isnt a ruby-related question
Igorshp has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
dhjondoh has quit [Remote host closed the connection]
atomical has joined #ruby
arup_r_ has quit [Remote host closed the connection]
bruno- has joined #ruby
Guest28634 has quit [Client Quit]
GhettoCode has joined #ruby
<jhass> !unmute Guest28634
<shevy> moogs if you have to compile something, you need to install all those required -dev packages as otherwise you can not compile it
<OnoSendai2> Hi all, I'm wondering why Kernel.system("someprogram") doesn't always show the message "Segementation Fault" for a crashing program?
ndrei has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
JAss has joined #ruby
_blizzy_ has joined #ruby
<[k-_> not all programs crash because of segmentation faults
<bnagy> not all crashing programs output that, even when it is a segv
<[k-_> a segmentation fault is a special kind of error
<jhass> if you have some reproducable cases for when it does and when it doesn't we might hint why, but there are too many factors to say
mikecmpbll has joined #ruby
<OnoSendai2> so i'm running it on a program that is set up to segmentation fault every time
<shevy> OnoSendai2 system() will return true or false, if you want more information, you can use result = `` and in particular, with 2>&1 such as: result = `ls 2>&1`
<[k-_> i saw a big O and thought of Ox0dea :(
<shevy> you worship him!
<bnagy> OnoSendai2: what are you actually trying to do?
<OnoSendai2> shevy: It's not really about the return value. I want the message "Segmentation Fault" to be printed to stdout or stderr
<OnoSendai2> bnagy: We have a ruby script, running in buildbot, that runs an executable (to do unit tests)
<jhass> warn "Segmentation Fault" # done
mhib has joined #ruby
<shevy> yeah but where does this message appear, hence the 2>&1
<OnoSendai2> if the executable crashes, we would like to have the message "Segmentation fault" (or similar) in the buildbot log
<OnoSendai2> jhass: What's 'warn'?
<jhass> do you have any code after the system call?
<OnoSendai2> yup
<konsolebox> OnoSendai2: you may need to redirect stderr as well
<jhass> just a convenience wrapper around $stderr.puts
Casty has joined #ruby
<bnagy> the point is that not all programs will output "segmentation fault" at all, ever, on any fd
tmtwd has joined #ruby
<OnoSendai2> konsolebox: So I have a test script set up on my local VM. Output to CERR is printed, but not the "Segmentation fault" message
<bnagy> if you want to know about abnormal exits you should probably be handling signals, but that's a bit thorny with ruby
sevenseacat has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
<shevy> you can send that message on your own
davedev24 has quit [Remote host closed the connection]
<bnagy> why would you send segmentation fault if the crash isn't a segv?
JAss has quit [Quit: Lost terminal]
<bnagy> that seems silly.
<OnoSendai2> shevy: sure, I could. I was just wondering why it is somehow being suppressed when the crash happens through Kernel.system()
pietr0 has joined #ruby
<konsolebox> OnoSendai2: Kernel.system() executes the string in it with a shell. It is the output of this whole process group (includes the shell) that you'd need to redirect so you could catch the output. You can do that redirection in Ruby by using other methods besides Kernel.system() but the quick thing i'd do is `Kernel.system("exec 2>&1; your_command")`.
<shevy> you only have to read what I wrote above. why don't you use ``
<bnagy> sigh
Igorshp has quit [Remote host closed the connection]
<bnagy> redirecting output is only going to work if there is output
JoshL has joined #ruby
_blizzy_ has joined #ruby
Igorshp has joined #ruby
leat1 has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
nfk has quit [Remote host closed the connection]
DaniG2k has joined #ruby
<bnagy> if you're the parent then signals and exit statuses are both fairly reliable, signals being more granular
<bnagy> otherwise there's the kernel trap handler I guess o_0
bhorn1|away is now known as bhorn1
<bnagy> but waiting for a message on stderr is never going to be a robust approach to this problem
podman has joined #ruby
<shevy> yeah Signal.trap('SIGINT') { exit }
nfk has joined #ruby
<bnagy> source: I crash programs for a living
<shevy> documentation of system http://ruby-doc.org/core-2.2.0/Kernel.html#method-i-system states three return values possible: true, false, nil
<OnoSendai2> i'm not waiting for it, would just like it to appear in stderr/stdout at some point
mixandgo has quit [Quit: mixandgo]
cpruitt has joined #ruby
<shevy> and you have it in the above result. and if `` is still not enough, there is popen
<bnagy> OnoSendai2: do you actually care about the detail for an abnormal exit?
<bnagy> otherwise, just get the exit status
<OnoSendai2> bnagy: Well, we can print out $? I guess
<bnagy> one good way is what shevy just suggested ( Open3 )
<shevy> http://ruby.bastardsbook.com/chapters/external-programs/ is long but has a lot of info
<shevy> "Opening a pipe with popen"
<bnagy> there are a few popen methods that are convenient
<shevy> or Open3
<bnagy> if you want to be able to tell the difference between an actual segfault, floating point exception, illegal instruction etc etc you probably need a signal handler
rbennacer has joined #ruby
<bnagy> but for unit testing I don't know if you need that much detail :P
gamename has joined #ruby
freerobby has joined #ruby
<OnoSendai2> yeah we don't really
ruurd has joined #ruby
<konsolebox> OnoSendai2: just a note: i think it is the "shell" that produces that message. Probably after receiving 139 as exit code from the program.
nateberkopec has joined #ruby
<OnoSendai2> konsolebox: Yeah I think you are probably right
w1xz has joined #ruby
<OnoSendai2> shouldn't ruby be printing output from the shell then? :)
<konsolebox> OnoSendai2: and i'm not sure if it is applicable in all shells. but in bash it's likely (seeing its code).
<bnagy> I'm going to cook dinner :)
<jhass> OnoSendai2: ruby doesn't capture anything in the default system invocation, it simply leaves the child processes stdout and stderr to be the same as the parent processes
<shevy> OnoSendai2 if. you. would. just. use. ``. you. would. have. already. had. that. message.
<konsolebox> OnoSendai2: how do you exactly execute the program then?
<OnoSendai2> shevy: double quotes?
<konsolebox> OnoSendai2: oh yes i was saying earlier, Kernel.system('') doesn't necessarily capture anything.
<shevy> the backticks, it's actually a method
astrobun_ has joined #ruby
davedev24 has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<OnoSendai2> we don't want to use backticks
rbennacer has quit [Ping timeout: 246 seconds]
<OnoSendai2> we need error codes, return value tc..
<OnoSendai2> etc..
vbatts|w1 has joined #ruby
<shevy> why did you use system() again?
<vbatts|w1> n/close
vbatts|w1 has left #ruby [#ruby]
<shevy> ok so you used system and $?
leat1 has quit [Remote host closed the connection]
<OnoSendai2> shevy: that's what we will use, yeah
que_ has quit [Quit: Page closed]
leat1 has joined #ruby
<OnoSendai2> It looks like to me, somewhere along the line, some buffer is not being flushed. Could be a shell issue, could be a ruby issue. Problem is apparently on windows as well. So could be a ruby issue
dgutierrez1287 has joined #ruby
lkba has joined #ruby
krz has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
<konsolebox> OnoSendai2: To make it clear, do you need to capture output?
<OnoSendai2> I want the error to show up in buildbot mainly
revath has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomaz_b has quit [Quit: Leaving]
lkba_ has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
paulcsmith has joined #ruby
Kully3xf_ has joined #ruby
whippythellama has joined #ruby
<konsolebox> OnoSendai2: so you actually don't want it to be captured but just be shown? Perhaps it depends on the shell. And afaik Kernel.system() executes /bin/sh.
<jhass> most forms do, not all
tcopeland has joined #ruby
Kully3xf has quit [Ping timeout: 255 seconds]
<OnoSendai2> konsolebox: I'm not 100% sure how buildbot works. I think it just gets everything from stdout and stdcerr of the program it runs (our ruby script in this case)
PhantomSpank has joined #ruby
leat1 has quit [Remote host closed the connection]
<konsolebox> jhass: yes, if not a single string
leat1 has joined #ruby
eGGsha has joined #ruby
<jhass> the array form does neither
beef-wellington has joined #ruby
<jhass> and iirc it does some hackery depending on whether it detects shell like expressions (|, &, > etc)
<jhass> and on windows it does even parse these on its own
Kully3xf has joined #ruby
<jhass> the exec family (exec, spawn, system) is easily the most complex interface in Ruby core
Kully3xf_ has quit [Ping timeout: 264 seconds]
nfk has quit [Remote host closed the connection]
w1xz has quit [Quit: ZZZzzz…]
<konsolebox> OnoSendai2: if it executes a program and it doesn't use a shell between it then maybe you wouldn't get the message at all.
MagePsycho_ has joined #ruby
<OnoSendai2> ok
ndrei has joined #ruby
<OnoSendai2> maybe that's it
<OnoSendai2> sometimes it seems to show the message and sometimes not
lessless has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<OnoSendai2> maybe that's ruby deciding to use a shell or not
Rodya__ has joined #ruby
<jhass> you still didn't clarify what sometimes means here
<jhass> what it depends on
<OnoSendai2> ruby version i think
<jhass> different invocations, pure perceived randomness etc
tcopeland has quit [Client Quit]
<konsolebox> jhass: i agree. better avoid Kernel.system() unless you are explicitly wanting /bin/sh.
jespada_ has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
giuseppesolinas has joined #ruby
oo_ has joined #ruby
i8igmac has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
<konsolebox> OnoSendai2: how do you actually make buildbot and ruby work together? buildbot executes ruby, or ruby executes buildbot?
<OnoSendai2> buildbot slave executes ruby
davejlong has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
<konsolebox> OnoSendai2: and ruby executes a program?
<OnoSendai2> yup
griffindy has joined #ruby
<tuor> hi, i use a class, can i just add some methods to it?
<konsolebox> OnoSendai2: through Kernel.system() which you had configured? if that's so, i'd examine /bin/sh
<shevy> tuor yes. always. just open it up again
<JMoir> Does anyone know of any good resources to learn about testing; what to test, how to test, practices and stuff? I'm really bad at testing, I'm writing my first proper app in ruby and realised I have two tests despite having a functioning site... Oops
HakN99 has joined #ruby
<tuor> ah nice.
<[k-_> tuor, since you are very new to ruby, a book would greatly benefit you
juanpablo_ has joined #ruby
<OnoSendai2> konsolebox: ok, thanks. I'm happy with the answer that it somtimes runs a shell and sometimes not. Either way, we can use $? from now on to print out to builbot ourselves if the program crashed.
<tuor> [k-_, yes, I have one, I just didn't know what to search. (for "reediting" a class)
evanjs has joined #ruby
<[k-_> get many books!
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zamyatin has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
<tuor> ok :)
Scroff has joined #ruby
<konsolebox> OnoSendai2: ok. just note $?.exitstatus == 139 is SEGV
<shevy> tuor class Foo; end; now we add a method... class Foo; def bar; puts 'hi from bar'; end; end
<OnoSendai2> konsolebox: ok, we're just doing puts $?
werelivinginthef has joined #ruby
jespada_ has joined #ruby
i8igmac has quit [Ping timeout: 256 seconds]
<Coraline> JMoir: I'm fond of The Rspec Book
tjohnson has joined #ruby
<tuor> shevy, yes. Just didn't know, that i can do it again (not only one time) the exact same way.
<shevy> last definition wins in ruby
<shevy> >> class Foo; def bla; puts 'this is bla'; end; end; class Foo; def bla; puts 'this is not bla'; end; end; Foo.new.bla
<ruboto> shevy # => this is not bla ...check link for more (https://eval.in/398519)
<JMoir> Coraline: I just read the description and this looks great! In my past searches all that I had found was how to do basic tests on an application with about 10 lines of code. I wanted more theory and practices so I can apply them to bigger projects well. This looks good, thanks.
bsdbofh has joined #ruby
<shevy> the OOP in ruby is a lot nicer than the OOP in php
<tuor> shevy, ah ok.
<bougyman> shevy: but not as nice as the OOP in common lisp.
<shevy> don't know how lisp does OOP
nfk has joined #ruby
<konsolebox> JMoir: +1 for RSpec. haven't exactly used it yet, but it's on my list for doing tests someday
oo_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
<JMoir> konsolebox: I'll definitely have to get it then, it looks like quite a few people say it's a good book
jenrzzz has joined #ruby
<konsolebox> >> class Foo; end; Foo.singleton_class.class_exec{ def x; puts :x; end }; Foo.x
<ruboto> konsolebox # => x ...check link for more (https://eval.in/398529)
qhartman has quit [Quit: Ex-Chat]
<konsolebox> tuor: ^ just to add a sweet little complexity hehe :)
fullofcaffeine has joined #ruby
<[k-_> is 1.874 kB good?
arup_r has joined #ruby
diegoviola has joined #ruby
arup_ has joined #ruby
arup_ has quit [Client Quit]
arup_r has quit [Client Quit]
tubuliferous_ has joined #ruby
fabrice31 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<tuor> konsolebox, oh don't get your code. But I think I'm fine with my basics for the moment. :)
devdazed has joined #ruby
arup_r has joined #ruby
lxsameer has quit [Quit: Leaving]
<konsolebox> tuor: yes, just something to look forward to :)
anisha has quit [Quit: Leaving]
<[k-_> its the same as eigenclass, metaclass, class<<self etc!
Igorshp has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
<tuor> konsolebox, ok.
<shevy> tuor he means that you can extend the class, but also the object instance itself
RegulationD has joined #ruby
<konsolebox> [k-_: nice stuff btw. you wrote it from scratch? i mean it
<shevy> >> class Foo; end; foo = Foo.new; def foo.hi; puts 'hi'; end; foo.hi
<ruboto> shevy # => hi ...check link for more (https://eval.in/398543)
* konsolebox loves obscurification, encryption and stuffs.
<shevy> ack
<shevy> [k-_ just recruited another one :(
<tuor> shevy, ah ok. Hmm sound nice, so I can add a method to it just to the one instance?
kies^ has joined #ruby
<shevy> tuor yeah
<tuor> shevy, ah ok. :)
<[k-_> yes i wrote it from scratch
<[k-_> not in one line tho
Aderium has joined #ruby
<[k-_> that takes too much skill :)
eggoez has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 256 seconds]
tagrudev has quit [Remote host closed the connection]
r_baron has joined #ruby
pietr0 has quit [Ping timeout: 256 seconds]
Rodya__ has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
yh has joined #ruby
momomomomo has joined #ruby
<tuor> do I need to write the inherit again when the class was declared like this: class Templates < Basic; end;
chipotle has quit [Quit: cheerio]
icebourg has joined #ruby
Scroff has quit [Remote host closed the connection]
<tuor> or can i just open it with: class Templates; def foo; end; end
jespada_ has quit [Ping timeout: 256 seconds]
t_ has quit [Read error: No route to host]
GitGud has quit [Ping timeout: 246 seconds]
riotjones has quit [Remote host closed the connection]
<tuor> I use it, and want to add a method to it.
eggoez has joined #ruby
<[k-_> you do not need to reinherit
<[k-_> you just reopen it and add the methods you need
<shevy> tuor you won't need to re-specify the parent class
curses_ has joined #ruby
<[k-_> shevy: that's what i said!
arooni-mobile has joined #ruby
<shevy> you need to simplify [k-_
<shevy> :)
t_ has joined #ruby
<tuor> shevy, I understood both. :) thx
<[k-_> do my code look simple?
<[k-_> no!
<shevy> your code is the strangest ruby code I have ever seen
khebbie has joined #ruby
Scroff has joined #ruby
<[k-_> thank you
<[k-_> i have gone beyond the phase of writing good code
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_> > "good" code
Fluent has quit [Changing host]
Fluent has joined #ruby
atomical has joined #ruby
<[k-_> my code now has blocks of numbers
yh has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
<shevy> you have become an ethereal ruby entity
curses_ has quit [Ping timeout: 252 seconds]
<shevy> you no longer write code - you create
yh has joined #ruby
jcromartie has joined #ruby
NeverDie has joined #ruby
<shevy> now if only it would be readable code!!!
zeroDivisible has joined #ruby
pietr0 has joined #ruby
<[k-_> i actually can make it more difficult to understand the obscured method names if to_s the array and remove all the symbols and spaces
khando_ has joined #ruby
Violentr has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
Igorshp has joined #ruby
chthon has joined #ruby
<[k-_> so this [[["1", 1], ["0", 1], ["9", 1]], [["9", 1], ["7", 1]], [["1", 2], ["2", 1]]] becomes [[11019], [9171], [1221]]
<[k-_> i think
<[k-_> i did that manually ;-;
NeverDie has quit [Max SendQ exceeded]
arturaz has quit [Ping timeout: 265 seconds]
Violentr has joined #ruby
finisherr has joined #ruby
livathinos has quit []
NeverDie has joined #ruby
<tuor> [k-_, didn't you forgott a 1?
<tuor> isn't it: [[110191], [9171], [1221]]
<[k-_> ah, yes, thanks
<[k-_> it actually means map
<[k-_> i can flatten the array to become [110191,9171,1221]
khando_ has quit [Quit: leaving]
khando_ has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
Agoldfish has joined #ruby
khando_ has quit [Client Quit]
khando_ has joined #ruby
<Aderium> how do I ask a gem to show me what options it has for installation ?
jgpawletko has joined #ruby
khando_ has quit [Client Quit]
khando_ has joined #ruby
pfish has joined #ruby
f4cl3y has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
khando_ has quit [Client Quit]
khando_ has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
jespada_ has joined #ruby
PaulCapestany has quit [Quit: .]
sepp2k has joined #ruby
rippa has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
PaulCapestany has joined #ruby
khando_ has quit [Client Quit]
khando_ has joined #ruby
tkuchiki has joined #ruby
pietr0_ has joined #ruby
pietr0 has quit [Ping timeout: 252 seconds]
pietr0_ is now known as pietr0
charliesome has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
failshell has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
yokel has joined #ruby
khando_ has quit [Client Quit]
marr has quit []
khando_ has joined #ruby
gambl0re has quit [Ping timeout: 246 seconds]
HakN99 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150629114848]]
phutchins1 has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
<shevy> not sure that this is possible
paulcsmith has quit [Quit: Be back later ...]
charliesome has quit [Ping timeout: 264 seconds]
jolux has joined #ruby
balazs has joined #ruby
freerobby has quit [Quit: Leaving.]
paulcsmith has joined #ruby
mhib has quit [Remote host closed the connection]
freerobby has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Aderium> no matter what I do I cant tell a gem to use c++ instead of g++
<shevy> no I think you can somehow influence that
<shevy> do you know in which variable the g++ is stored?
CustosLimen has quit [Ping timeout: 256 seconds]
nfk has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 256 seconds]
khando_ has quit [Quit: leaving]
finisherr has quit [Quit: finisherr]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
khando_ has joined #ruby
freerobby has quit [Client Quit]
khando_ has quit [Client Quit]
<Aderium> I dont know where it is being stored
khando_ has joined #ruby
<Aderium> I wish I new how to query a gem to find out what available options I have at install
nfk has joined #ruby
khebbie has joined #ruby
surs1 has quit [Quit: WeeChat 0.3.7]
d10n-work has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
arooni-mobile has quit [Ping timeout: 248 seconds]
momomomomo_ has joined #ruby
kies^ has quit [Ping timeout: 264 seconds]
enyo has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Remote host closed the connection]
mesamoo has quit [Quit: Konversation terminated!]
lkba_ has joined #ruby
atomical has joined #ruby
charliesome has joined #ruby
werelivinginthef has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
LMity has joined #ruby
JoshL has quit [Read error: No route to host]
finisherr has joined #ruby
paulcsmith has joined #ruby
JoshL has joined #ruby
finisherr has quit [Client Quit]
lkba has quit [Ping timeout: 246 seconds]
dfockler has joined #ruby
nfk has quit [Remote host closed the connection]
nfk has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
jobewan has joined #ruby
enyo has quit [Quit: leaving]
aspiers has quit [Ping timeout: 256 seconds]
iooner has quit [Ping timeout: 246 seconds]
danzilio has joined #ruby
ddarkpassenger has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
lavros has joined #ruby
revath has quit [Quit: Leaving.]
evanjs has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
revath has joined #ruby
snockerton has joined #ruby
Violentr has quit [Ping timeout: 246 seconds]
<shevy> Aderium what gem is it?
<Aderium> eventmachine
rcvalle has joined #ruby
codecop has joined #ruby
<ljarvis> oh I have a great solution!
iooner has joined #ruby
<ljarvis> don't use that shit
loc22 has quit [Quit: Be back later ...]
<Aderium> ehehe
<shevy> # on Unix we need a g++ link, not gcc.
<shevy> CONFIG['LDSHARED'] = "$(CXX) -shared"
momomomomo has quit [Quit: momomomomo]
<shevy> Aderium can you modify this?
<Aderium> unfortunately it would be a lot of code change, for now I need to deal with it until I can move to something else
<shevy> it is in extconf.rb, at the when /solaris/ check
mikecmpb_ has joined #ruby
<Aderium> Yeah but that means I need to clone or manually change the extconf, was wondering if I could just pass the CXX as a -- --with options
GitGud has joined #ruby
theery has joined #ruby
<shevy> yeah manually change it, then rebuild the .gem, and host it somewhere :D
<Aderium> that CONFIG['LDSHARED'] = "$(CXX) -shared" get passed with SUNWPro wich is not the case for Solaris 11.2
mikecmpbll has quit [Read error: Connection reset by peer]
<shevy> just modify the file?
<Aderium> modifying now
<shevy> \o/
<Aderium> lets see how it goes
<Aderium> then just rake it ?
mikecmpbll has joined #ruby
fullofcaffeine has joined #ruby
<shevy> hmm
MagePsycho_ has joined #ruby
<shevy> I actually don't use rake
<shevy> I use the good old setup.rb
startupality has quit [Ping timeout: 256 seconds]
<shevy> you can try to run that extconf.rb directly though
<shevy> "ruby extconf.rb"
LMity has quit [Ping timeout: 246 seconds]
<shevy> it should generate a Makefile
Spami has joined #ruby
<Aderium> ok
jhack has joined #ruby
jhack has joined #ruby
<ljarvis> arup_r: use a module and a constant
mikecmpb_ has quit [Ping timeout: 264 seconds]
Violentr has joined #ruby
<Aderium> and that worked .....
<shevy> \o/
<Aderium> it had a gemspec so I gem build ...spec
<Aderium> thengem install
pdoherty has joined #ruby
<arup_r> ok.. then include it.. right ?
<arup_r> good idea
yardenbar has quit [Quit: Leaving]
<ljarvis> arup_r: yes, something like https://gist.github.com/leejarvis/b5014cecf3c915358e39
MagePsycho_ has quit [Ping timeout: 265 seconds]
<Aderium> ok that is done
<Aderium> now last one
<Aderium> gem mysql
<Aderium> ahn o
<Aderium> ah no sqlite3
giuseppesolinas has joined #ruby
<shevy> that should be simple
<shevy> because sqlite is so small
<arup_r> ljarvis, that's awesome trick.. just one thing though.. why `missing_attributes?` not `missing_attributes` ?
Y_Ichiro has joined #ruby
<arup_r> I am talking about the naming convention..
<ljarvis> arup_r: eh, right; it was written quickly :)
<ljarvis> missing_attributes is fine
<arup_r> ok.. I thought something I am missing..
<arup_r> :)
<arup_r> anyway thanks
<jhass> arup_r: I'd make it a convenience method on PartialsettingsFound
<jhass> def self.partial_settings? object
solars has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
<ljarvis> how dare you propose an equally reasonable alternative
riotjones has joined #ruby
<ljarvis> arup_r: in short: use a method
finisherr has joined #ruby
momomomomo has joined #ruby
<Aderium> nada
<Aderium> now what !
<Y_Ichiro> require 'em/pure_ruby' like what the error message says?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<Aderium> where do I put that ?
PhantomSpank has quit []
allomov has quit [Remote host closed the connection]
<Y_Ichiro> well, it's from your ./initializer.rb:8:in `<main>' according to the gist, so maybe there
<Y_Ichiro> idk if this is what you want to do though
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<Y_Ichiro> typically a gem loads a C extension for a cpu extensive task, if you use this workaround, it will lag
danzilio has quit [Quit: My computer has fallen asleep!]
<Aderium> yeah that is what we are doing
havenwood has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
<Aderium> so I would need to add it into our .c file ?
<Y_Ichiro> no
MagePsycho_ has joined #ruby
<Y_Ichiro> it's the EventMachine's C extension that failed
Burgestrand has quit [Quit: Burgestrand]
<Aderium> I dont see an initializer.rb in eventmachine
<Y_Ichiro> uh, where are you calling eventmachine from?
<Y_Ichiro> it's where you are calling it from you have to add it
bronson has joined #ruby
<arup_r> ljarvis, `didn't get either of you.. I already follow the pattern you gave..
<arup_r> :)
nanSTA has joined #ruby
<Aderium> i thoght maybe its the -KPIC flags that are causing this
<arup_r> sorry... I get you ljarvis, but not jhass.
<arup_r> :)
<shevy> Aderium that looks like an error from eventmachine
<shevy> gems/extensions/x86_64-solaris-2.11/2.1.0-static/eventmachine-2333335a9fbf/rubyeventmachine.so: symbol _init: value 0x7f0044750225 does not fit
<jhass> arup_r: class PartialSettingFound; def self.missing_settings_from(config); %i(...).select { ... }; end;
<Y_Ichiro> tbh i would avoid eventmachine like a plague if i were you
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> and then if PartialSettingsFound.missing_settings_from(self).any? and missing_keys = self.class.missing_settings_from(obj)
<arup_r> jhack, let me understand your code.. I just saw it
<arup_r> jhass: ^^
jespada_ has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 246 seconds]
Pathfinder has joined #ruby
<pfish> why would rb_proc_call return a non_nil value?
abuzze has quit [Remote host closed the connection]
<Aderium> yeah something about the -KPIC
<arup_r> jhass, ok.. then how would I use the method inside https://gist.github.com/aruprakshit/c8be29a2a2ff8021147d#file-terminal_settings-rb-L22 if i define it inside the Error class ?
<jhass> arup_r: ready what I wrote again
<jhass> it's literally there
jaygen_ has joined #ruby
<jhass> er, *read
<arup_r> got you
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
jespada_ has joined #ruby
endash has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> arup_r: any_attributes_missing? could just be missing_attributes(obj).any?
<arup_r> yes.. humm .. that method seems overkill.. I am taking jhass suggestions.. :) ljarvis
dangerousdave has joined #ruby
kies^ has joined #ruby
jaygen has quit [Ping timeout: 246 seconds]
<arup_r> but yes both of your intention is same.. just a method as you said already..
<Aderium> ok so i do a irb> puts RbConfig::CONFIG and I see CCDLFLAGS"=>" -KPIC"
<Aderium> is there a way to remove that form the CONFIG ?
charliesome has quit [Quit: zzz]
sharpmachine has joined #ruby
<Aderium> and also change CXX"=>"g++" to CXX=CC
<Aderium> is that something I can do while in irb ?
Cache_Money has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
tuor has left #ruby ["WeeChat 1.1.1"]
endash has quit [Client Quit]
aspiers has joined #ruby
endash has joined #ruby
jolux has quit [Read error: Connection reset by peer]
maletor has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
davejlong has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
Cache_Money has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
stef1a has joined #ruby
momomomomo has quit [Quit: momomomomo]
<stef1a> i'm using ruby 2.1.0 and i want to convert an array of symbols to a set of symbols, but #to_set converts an array of symbols to a set of strings. help?
TheNet has joined #ruby
jespada_ has quit [Ping timeout: 255 seconds]
jespada__ has joined #ruby
niemcu has quit [Ping timeout: 246 seconds]
<jhass> 21>> require "set; %i(foo bar baz).to_set
<ruboto> jhass # => /execpad/interpreters/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': ...check link for more (https://eval.in/398593)
<jhass> 21>> require "set"; %i(foo bar baz).to_set
<ruboto> jhass # => #<Set: {:foo, :bar, :baz}> (https://eval.in/398594)
<jhass> nope, it doesn't
davejlong has joined #ruby
<stef1a> never mind
finisherr has quit [Quit: finisherr]
kriskropd has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Lucky___ has joined #ruby
eGGsha has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderkevin has joined #ruby
andikr has quit [Read error: Connection reset by peer]
amclain has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
strixd has quit [Quit: 500]
<ljarvis> >> require 'date'; 3.times.map { |i| Date.new(2015, 1, i + 1) }.minmax.map(&:to_s)
<ruboto> ljarvis # => ["2015-01-01", "2015-01-03"] (https://eval.in/398595)
hahuang61 has quit [Ping timeout: 264 seconds]
phoo1234567 has joined #ruby
<ljarvis> >> [1].minmax
<ruboto> ljarvis # => [1, 1] (https://eval.in/398596)
<ljarvis> heh
jespada__ has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
towski_ has joined #ruby
startupality has joined #ruby
jottr_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Pathfinder has quit [Ping timeout: 255 seconds]
gizmore has joined #ruby
joonty has quit [Quit: joonty]
towski_ has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
phoo1234567 has quit [Max SendQ exceeded]
einarj has quit [Remote host closed the connection]
Alayde has joined #ruby
phoo1234567 has joined #ruby
Iskarlar has quit [Ping timeout: 250 seconds]
leat1 has quit [Remote host closed the connection]
drewo has joined #ruby
leat1 has joined #ruby
mdarby has joined #ruby
tkuchiki has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
<pfish> how would one use rb_proc_call
<pfish> like what would i need to pass to it
bricker has joined #ruby
tkuchiki has joined #ruby
mleung has joined #ruby
OnoSendai2 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
jhack has quit [Remote host closed the connection]
<pfish> and how is it different from proc_call
mleung has quit [Client Quit]
fullofcaffeine has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
maletor has quit [Ping timeout: 252 seconds]
bsdbofh has quit [Quit: bsdbofh]
wallerdev has joined #ruby
tkuchiki has quit [Remote host closed the connection]
marr has joined #ruby
tkuchiki has joined #ruby
finisherr has joined #ruby
JakFrist has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Quit: Leaving]
finisherr has quit [Client Quit]
<havenwood> pfish: rb_proc_call calls proc_call, right?
<havenwood> pfish: dunno
<pfish> no it calls rb_vm_invoke_proc
[Butch] has joined #ruby
<havenwood> ah, right
yardenbar has joined #ruby
rehat_ has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
curses has joined #ruby
mary5030 has joined #ruby
danzilio has joined #ruby
iateadonut has left #ruby [#ruby]
theery_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
<pfish> I'm trying to update a class with similar ruby level sematics to Proc, ie i want to make it so that my class can do PPR.new{__insert block here__},call and have it call the ruby block, but with me being able to insert some c code before and after it does
<pfish> by update I mean it was written to be used in 1.8.6
<pfish> but it used proc_invoke
<pfish> which doesnt exist anymore
quimrstorres has joined #ruby
fabrice31 has joined #ruby
<pfish> so im trying to find some sort of replacement
jespada__ has joined #ruby
<teosz> join #ruby=core
<teosz> ....
Ox0dea has joined #ruby
towski_ has joined #ruby
<havenwood> #ruby-core is pretty quiet
nanSTA has quit [Remote host closed the connection]
curses has quit [Ping timeout: 240 seconds]
<Ox0dea> pfish: Any reason you can't use the "normal" API to do that?
<Ox0dea> That is, define PPR.new to expect a block and just use rb_yield().
Ilyas has joined #ruby
<Ox0dea> havenwood: #ruby-core is a graveyard through which a robot wanders shouting about typo fixes.
stan has quit [Ping timeout: 256 seconds]
eggoez has joined #ruby
<havenwood> Ox0dea: hehe
fabrice31 has quit [Ping timeout: 250 seconds]
<havenwood> Ox0dea: true, that babbling robot isn't the same as silence
ZoanthusR has joined #ruby
darkf has quit [Quit: Leaving]
<Ox0dea> Shame, really. I've considered asking in my rudimentary Japanese, but that's more likely to offend than start a worthwhile conversation.
<pfish> Ox0dea: I can think of one... I'm just not sure how to get blocks
ruurd has joined #ruby
devbug has joined #ruby
<Ox0dea> pfish: Every method takes an implicit block.
evanjs has quit [Remote host closed the connection]
<pfish> cant*
DaniG2k has quit [Quit: leaving]
<Ox0dea> >> def foo; proc[1, 2] end; foo { |x, y| x + y }
<ruboto> Ox0dea # => 3 (https://eval.in/398607)
duderonomy has joined #ruby
<pfish> oh.
davedev2_ has joined #ruby
yqt has joined #ruby
failshell has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pfish> so rb_yield the block
ruurd has quit [Client Quit]
<pfish> thanks
<Ox0dea> You yield a value *to* the block, but yeah, that should suffice.
<Ox0dea> Happy to help.
Hounddog has quit [Read error: Connection reset by peer]
jhack has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
davedev24 has quit [Ping timeout: 248 seconds]
<pfish> ok... i vaguely remember how blocks works. Last time i seriously used ruby was years ago...
RobertBirnie has joined #ruby
graydot has joined #ruby
<pfish> is there some example of this "standard" syntax>
<pfish> ?
<pfish> ?
graydot has quit [Client Quit]
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
Timba-as has quit [Quit: Be back later ...]
thelastinuit has joined #ruby
dgutierrez1287 has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
Disconnekted has quit [Remote host closed the connection]
mdarby has joined #ruby
<Ox0dea> pfish: Well, lots of internal code does eschew the convenience of rb_yield() for the sake of performance or malleability; enum.c contains loads of examples in that regard.
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
JakFrist has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has joined #ruby
chishiki1 has joined #ruby
drewo has quit [Ping timeout: 244 seconds]
davejlong has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
wallerdev has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
<Senjai> Good morning ruby
<mozzarella> good morning
bronson has joined #ruby
curses has joined #ruby
<shevy> Aderium you can overrule it, but I think it may be hardcoded somewhere
chishiki1 has quit [Client Quit]
simplyianm has joined #ruby
davejlong has joined #ruby
<Aderium> shevy when I do an irb> puts RbConfig::CONFIG I notice a "CCDLFLAGS"=>" -KPIC is it possible via irb to update that setting to something else ?
teosz has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
<shevy> not permanently but you can overrule it
<shevy> simply set it:
<shevy> RbConfig::CONFIG['CCDLFLAGS'] = 'bla'
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I have no idea where RbConfig stores that stuff
<shevy> aha
<shevy> lib/ruby/2.2.0/x86_64-linux/rbconfig.rb: CONFIG["CCDLFLAGS"] = "-fPIC"
<shevy> lib/ruby/2.2.0/mkmf.rb:CCDLFLAGS = #{$static ? '' : CONFIG['CCDLFLAGS']}
<shevy> guess you can just modify rbconfig.rb
ohaibbq has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
nfk has quit [Remote host closed the connection]
<Ox0dea> Aderium: Changing these values in RbConfig won't affect how your interpreter was compiled.
<Aderium> nice
<Ox0dea> Perhaps I've missed some subtlety of what you're trying to do?
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has joined #ruby
sross07 has joined #ruby
<shevy> he is the solaris dude
Spami has quit [Quit: This computer has gone to sleep]
godzillaenlacasa has joined #ruby
<Aderium> having an issue running an app because of Unable to load the EventMachine C extension; require': ld.so.1: ruby: fatal: relocation error: R_AMD64_PC32: file /export/home/dolly/ruby64/ruby-2.1.6/lib/ruby/gems/2.1.0/bundler/gems/extensions/x86_64-solaris-2.11/2.1.0-static/eventmachine-2333335a9fbf/rubyeventmachine.so: symbol _init: value 0x7f0044410225 does not fit
<Aderium> so I am trying to see if I can change the KPIC for Kpic
<Aderium> and see if that addresses the incorrection
drewo has joined #ruby
shinnya has joined #ruby
zeroDivisible has quit [Ping timeout: 252 seconds]
ohaibbq has quit [Ping timeout: 265 seconds]
chishiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> Aderium: Solaris has differently-sized addresses, then?
moogs has quit [Quit: Page closed]
nfk has joined #ruby
<Aderium> I gues ... the flags in SolarisStudio ar addressed in KPIC and Kpic instead of fPIC
<Aderium> the Kpic is for boht 32 and 64
<havenwood> it's a 32-bit, 64-bit system that runs in 32-64sy mode
<Aderium> its been two days now that I cant get it going
<Aderium> ok that changes the config
blaines has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Scrofff has joined #ruby
snockerton has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 246 seconds]
zacstewart has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
snockerton has joined #ruby
wallerdev has joined #ruby
casadei_ has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iooner has quit [Max SendQ exceeded]
wallerdev has quit [Client Quit]
fumihiro has quit [Ping timeout: 250 seconds]
jespada__ has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
iooner has joined #ruby
mleung has joined #ruby
arturmartins has quit [Quit: Leaving...]
jottr_ has joined #ruby
wallerdev has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby
<Ox0dea> pfish: Coming along all right?
hololeap has joined #ruby
michaeldeol has joined #ruby
<hololeap> lets say i have a constant, `NamespaceOne::NamespaceTwo::NamespaceThree`... is there a way to extract the module `NamespaceOne` from that (given that the namespaces have arbitrary names)
Spami has joined #ruby
<Ox0dea> hololeap: Is it that you're opposed to converting it to a string?
<konsolebox> hololeap: recursive call to .constants where obj.is_a? Module, starting from Objects
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
<Ox0dea> Sounds like overkill. Object.const_get(foo.split('::').first) would suffice.
<hololeap> Ox0dea: good idea. thanks
jottr_ has quit [Ping timeout: 265 seconds]
<konsolebox> Ox0dea: i see
Scrofff has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 240 seconds]
<konsolebox> Ox0dea: not really. i bet const_get does the same concept
mdarby has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
kfpratt has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
<Aderium> is there a way to check what compiler was used to compile ruby ?
<jhass> hololeap: if you actually have something like module Foo; module Bar; class Baz; you could also gain it with Module.nesting
Rollabunna has joined #ruby
Rollabunna has quit [Client Quit]
<hololeap> jhass: that's really interesting
Rollabunna has joined #ruby
yokel has joined #ruby
nettoweb has joined #ruby
<jhass> be sure to play around with it though to make sure you understand what it does exactly
sinkensabe has joined #ruby
<Ox0dea> konsolebox: Object#const_get is indeed recursive, but it's not having to load up an array of all the relevant constants each time through.
alexa_ has joined #ruby
<Ox0dea> Aderium: You ask that question right after you've been mucking about in RbConfig...?
AlphaAtom has joined #ruby
alexa_ has left #ruby ["WeeChat 0.4.2"]
davejlong has quit [Ping timeout: 255 seconds]
Stratege has quit [Ping timeout: 244 seconds]
<Aderium> :)
<benlieb> is there a “and” version of ||= ?
<Ox0dea> benlieb: Yes.
<Ox0dea> >> RbConfig::CONFIG['CC']
<ruboto> Ox0dea # => "gcc" (https://eval.in/398636)
nanSTA has joined #ruby
<jhass> benlieb: can you guess it?
<Ox0dea> benlieb: In your defense, the syntax and semantics are ridiculously counter-intuitive.
<konsolebox> Ox0dea: well you just saved it from doing String#split :)
DoubleMalt has quit [Remote host closed the connection]
JakFrist has joined #ruby
<Ox0dea> konsolebox: I'm not sure I follow.
arashb_ has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
symbol has joined #ruby
ascarter has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Ox0dea> Recursively invoking Object#constants builds intermediate arrays, which is wasteful when you already know which constant you're searching for.
Rollabunna has quit [Quit: Leaving...]
Rollabunna has joined #ruby
<hololeap> jhass: that is pretty much what i was looking for. the idea that i'm working with is to create a class like so `class MyClass::DB < MyLib::DB` and it knows to look for a migration at `MyClass::DB::Migration` by default. the code for this lives inside `MyLib::DB` which knows nothing of the names of the inheriting classes.
<mozzarella> &&=
__butch__ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<mozzarella> I bet it blew your mind
ascarter has quit [Max SendQ exceeded]
Rollabunna has joined #ruby
Rollabunna has quit [Client Quit]
<jhass> hololeap: compare its result for class MyClass::DB < MyLib::DB and module/class MyClass; class DB < MyLib::DB though
<Ox0dea> >> a = false; a &&= 1; b = true; b &&= 1; [a, b]
<ruboto> Ox0dea # => [false, 1] (https://eval.in/398645)
hahuang61 has joined #ruby
hahuang61 has quit [Client Quit]
ascarter has joined #ruby
<hololeap> of course i'm not even sure if i'm going about this in the best way, or if i should make MyLib::DB a module that MyClass::DB includes
<hololeap> jhass: ok i'll check it out
Rollabunna has joined #ruby
<jhass> rereading, perhaps you want self.class::Migration ?
<Aderium> I mcs -p ruby
sinkensabe has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
aryaching has joined #ruby
MrPunkin has joined #ruby
<MrPunkin> Hey folks. Can any Ruby Regex masters check this out for me: http://rubular.com/r/vk2x3FBycn
<MrPunkin> Looking to find out why my match isn’t extending out through all the numbers right up against the quotes
ascarter has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graydot has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
<hololeap> jhass: there are some other things that i need to access from MyClass, like a class instance variable in MyClass that stores the location of the database.yml file
[Butch] has quit [Ping timeout: 264 seconds]
<jhass> MrPunkin: I guess \p{Pi} includes .
hahuang65 has joined #ruby
arashb has joined #ruby
<MrPunkin> the dot is being included in the capturing blocks though
nanSTA has quit [Ping timeout: 248 seconds]
<jhass> hololeap: sounds like a good candidate for a constant too
<MrPunkin> not the quotes that aren’t captured.
arashb_ has quit [Ping timeout: 252 seconds]
Timba-as has joined #ruby
<arup_r> I want extract create_readable_zip and read_zip methods into a separate class of its own.. But not able to figure out how to organize the class? Any hints ? https://gist.github.com/aruprakshit/f5ecfd3ee085decf592f
<jhass> MrPunkin: ah, right. The issue is that the regex does what you specified :P 4 is preceded by " so the assertion fails. . isn't preceded by " so the assertion passes. 0 is followed by " so the assertion fails. . isn't followed by " so the assertion passes
gambl0re has joined #ruby
sinkensabe has quit [Remote host closed the connection]
NeverDie has joined #ruby
jhack has quit [Ping timeout: 252 seconds]
<hololeap> i think i need to go back to the drawing board because this whole project is feeling like a mess
<jhass> MrPunkin: your sample is a bit sparse, what exactly are your inputs that made you put up those lookarounds?
<havenwood> MrPunkin: I think you meant a positive lookbehind but used a negative
<havenwood> MrPunkin: http://rubular.com/r/g42dKqZMgh
axisys has joined #ruby
sinkensabe has joined #ruby
bubbys has quit [Ping timeout: 256 seconds]
<MrPunkin> sure enough. Thanks!
<hololeap> Ox0dea: jhass: thanks for your help
Rollabunna has quit [Quit: Leaving...]
<jhass> MrPunkin: also note that you didn't escape the . in the first character class
<MrPunkin> I was messing around, so that’s probably when it got removed
<MrPunkin> I have it escaped in my code
<MrPunkin> but thanks for pointing it out
Kully3xf_ has joined #ruby
Kully3xf has quit [Ping timeout: 264 seconds]
<MrPunkin> jhass: actually, wait. What I really want is to only match if the quotes aren’t there
bodzio has quit [Quit: Leaving.]
xcesariox has quit [Remote host closed the connection]
<MrPunkin> that is indeed a negative lookbehind / ahead, right?
<JMoir> Finally got my first proper project up to a point where I can use it for what it was made for (a blog for my family and friends as I'm off to Japan for a year tomorrow). It's a good feeling!
<JMoir> Needs some major refactoring, but first I should write tests...
Muhannad has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
<jhass> MrPunkin: it is, you can workaround with possessive quantifiers here http://rubular.com/r/Waab4dPhsI
jottr_ has joined #ruby
kerrizor has joined #ruby
<havenwood> MrPunkin: Would matching word boundaries be too broad?: http://rubular.com/r/g42dKqZMgh
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 244 seconds]
<havenwood> using word boundaries*
danzilio has quit [Ping timeout: 256 seconds]
<havenwood> "matching" was a poor word choice
sarkyniin has joined #ruby
<MrPunkin> havenwood: Kind of, I’m looking to not match things wrappedi in quotes only as those are specificly called out as exact file names, where as if not wrapped in quotes they should be found and replaced with proper multiplication symbols
<MrPunkin> in user generated text
davejlong has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> and i forget to escape .s, heh
mandarinkin has quit [Ping timeout: 250 seconds]
<havenwood> MrPunkin: ah, gotcha
jpfuentes2 has joined #ruby
<havenwood> \.s*
<havenwood> ESCAPE ALL THE THINGS \\o\/
RegulationD has quit []
<shevy> yay\
radialneon has joined #ruby
<shevy> escape (lisp)!
Muhannad has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 248 seconds]
mandarinkin has joined #ruby
<havenwood> JMoir: Save travels! Sounds exciting...
<havenwood> Safe*
freerobby has quit [Quit: Leaving.]
<shevy> JMoir awww will you be using ruby in japan?
TheHodge has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
freerobby has joined #ruby
Papierkorb has joined #ruby
freerobby has quit [Client Quit]
freerobby has joined #ruby
<dfockler> MrPunkin: http://rubular.com/r/vk2x3FBycn Not sure if this will help, but I'm bored
<havenwood> JMoir: Are you going to have a chance to visit Asakusa.rb in Tokyo? :O
<havenwood> Every Tues!
timonv has quit [Ping timeout: 256 seconds]
freerobby has quit [Read error: No route to host]
dangerousdave has joined #ruby
<MrPunkin> dfockler: that appears to be mine still, try the “Make permalink” at the bottom
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Remote host closed the connection]
<JMoir> havenwood: Cheers :)
<MrPunkin> dfockler: Yeah, I need the first line with the quotes not to match
<jhass> dfockler: I understood it as that they want this result http://rubular.com/r/Waab4dPhsI
<MrPunkin> like, I don’t want any data to match from it
<JMoir> shevy: Yes, planning on going to rubykaigi and other events like it :)
<MrPunkin> if it’s surrounded by quotes, ignore it.
<dfockler> ahhh ok
Timba-as has quit [Quit: Be back later ...]
bluOxigen has joined #ruby
<JMoir> havenwood: I haven't heard of it, but if time allows, I'd love to go
<MrPunkin> so it’s more complex, but thanks!
prestorium has joined #ruby
<hololeap> i see a lot of code that does `def initialize(opts = nil); opts ||= {}; ...` but is that any different than writing `def initialize(opts = {}); ...` ?
<JMoir> havenwood: https://asakusarb.doorkeeper.jp/ this? Every Tuesday? I'd be stupid not to go!
<Ox0dea> Nope.
<havenwood> JMoir: Kinda like a Seattle.rb in Tokyo. :)
mandarinkin has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
startupality has quit [Quit: startupality]
RegulationD has joined #ruby
<apeiros> hololeap: opts=nil only makes sense if you can avoid creating the opts hash
<jhass> hololeap: looks like bad cargo cult
<havenwood> JMoir: ya! \o/
<JMoir> I'm looking forward to going to a ruby meetup, there are none where I live
sarkyniin has quit [Quit: Quit]
<apeiros> so if you just do def foo(opts=nil); opts ||= {}, then it's relatively pointless
sarkyniin has joined #ruby
ruurd has joined #ruby
wallerdev_ has joined #ruby
bubbys has joined #ruby
<Ox0dea> Shiaru.arubi?
mandarinkin has joined #ruby
momomomomo has joined #ruby
atomi has quit [Quit: leaving]
evanjs has joined #ruby
<Ox0dea> apeiros: s/relatively/completely/, surely.
<hololeap> apeiros: that's what i thought, but i just wanted to confirm
<dfockler> JMoir: Same here I tried to start one, but I failed
radialneon_ has joined #ruby
<apeiros> Ox0dea: it can make things easier like passing through defaults
momomomomo has quit [Client Quit]
felltir has joined #ruby
yh has quit [Ping timeout: 256 seconds]
<JMoir> dfockler: Damn..
dumdedum has quit [Ping timeout: 264 seconds]
<JMoir> Right I have to go bye
<Ox0dea> Sayonara!
Shizus has joined #ruby
startupality has joined #ruby
Kully3xf has joined #ruby
radialneon has quit [Ping timeout: 244 seconds]
casadei_ has joined #ruby
cyrus_mc has joined #ruby
rdark has quit [Quit: leaving]
<Shizus> Hi! I was reading github's guidelines for Ruby and I was wondering why it was prefered to use %w or %i to define arrays rather than the standard way
<cyrus_mc> Debugging a puppet module and receiving the following: http://pastebin.com/7n8eHDqY
<ruboto> cyrus_mc, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/070ea38ea520c3bc4413
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> ?puppet
<ruboto> Please join #puppet for help with it.
postmodern has joined #ruby
<cyrus_mc> jhass: I have .. no answers yet .. but just wondering if anyone can pick out the syntax error on the line it is complaining about (top line).
Kully3xf_ has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Quit: Leaving]
<apeiros> Shizus: less noise
marr has quit [Ping timeout: 255 seconds]
<jhass> cyrus_mc: I think what you showed does not correspond to reality
atomi has joined #ruby
<jhass> cyrus_mc: the line mentioned in the error is line 4, yet the code mentioned in it is on line 1
<cyrus_mc> sorry, I accidently cut off the first few linse
<cyrus_mc> the top three lines are just two requires (require 'puppet/provider/netscaler' and require 'json'
kies^ has joined #ruby
_blizzy_ has joined #ruby
<jhass> we're going to need a new gist with the exact copy
<cyrus_mc> k
solars has joined #ruby
pdoherty has quit [Ping timeout: 246 seconds]
nanSTA has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
Casty has joined #ruby
workmad3 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<cyrus_mc> just updated it with the full error thrown by puppet.
<Shizus> apeiros: OK, thanks for the answer :)
dgutierrez1287 has joined #ruby
bubbys has joined #ruby
Stratege has joined #ruby
<jhass> cyrus_mc: btw gist supports multiple files and syntax highlighting ;)
zz_Outlastsheep is now known as Outlastsheep
yardenbar has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
mary5030 has quit [Remote host closed the connection]
<cyrus_mc> k. wasn't aware of gist, always went to pastebin, but I will use it going forward
reset has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanSTA has quit [Ping timeout: 248 seconds]
dopie has joined #ruby
aryaching has joined #ruby
<cyrus_mc> jhass: see anything wrong with that code
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
bruno- has joined #ruby
BlackGear has joined #ruby
<jhass> nothing apparent to me, so far I'd blame puppets autoloader
<cyrus_mc> k
godzillaenlacasa has quit [Quit: ZZZZZ....]
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
bubbys has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev_ is now known as wallerdev
_djbkd has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver_ has joined #ruby
danzilio has joined #ruby
zacstewart has joined #ruby
ascarter has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<cyrus_mc> odd..re-ran the puppet run and it succeeded. Probalby has something to do with the pluginsync.
<cyrus_mc> thanks for looking into it
startupality has quit [Quit: startupality]
bruno- has quit [Ping timeout: 244 seconds]
<shevy> JMoir, when you go to japan... don't make it like larry wall: http://www.linuxvoice.com/interview-larry-wall/
<shevy> "So I can go to Japan and ask for directions, but I can't really understand the answers!"
kerrizor has left #ruby ["Textual IRC Client: www.textualapp.com"]
baweaver_ has quit [Ping timeout: 256 seconds]
araujo has quit [Ping timeout: 256 seconds]
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
aryaching has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
leat1 has quit [Remote host closed the connection]
frem has joined #ruby
Sypheren has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
<jhass> ?ot shevy
<ruboto> shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
aryaching has joined #ruby
araujo has joined #ruby
quimrstorres has joined #ruby
bubbys has joined #ruby
Shizus has quit [Quit: Page closed]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
Sypheren has joined #ruby
mandarinkin has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
blaines has quit [Ping timeout: 264 seconds]
blaines has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
endash has quit [Quit: endash]
ruurd has quit [Quit: ZZZzzz…]
davedev24 has quit [Remote host closed the connection]
<arup_r> May I get some hints ?
Sypheren has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> yeah, here's one
<jhass> ?crosspost arup_r
<ruboto> arup_r, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
pdoherty has joined #ruby
<arup_r> Ahh! so hard
platzhirsch has quit [Remote host closed the connection]
<arup_r> But how long people should wait before crosspost .. just asking for future time :)
<jhass> read the message
ruurd has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
jpfuentes2 has joined #ruby
danzilio has joined #ruby
arturmartins has joined #ruby
<arup_r> ok
davedev24 has joined #ruby
<pfish> Ox0dea: I had to go each lunch but im starting to work on it now
baweaver_ has joined #ruby
dblessing has joined #ruby
MagePsycho_ has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
bungoman has quit [Remote host closed the connection]
iooner has quit [Max SendQ exceeded]
bungoman has joined #ruby
simplyianm has joined #ruby
startupality has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
evanjs has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
matled- has joined #ruby
felltir has quit []
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Read error: Connection reset by peer]
nanSTA has joined #ruby
tvw has quit []
anisha has joined #ruby
edwinvdgraaf has joined #ruby
AlphaAtom has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
gambl0re has joined #ruby
Centrixx has joined #ruby
jxie_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
ChasedSpade has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Centrixx is now known as ChasedSpade
fabrice31 has joined #ruby
borkdude_ has joined #ruby
hoelzro_ has joined #ruby
jblancet1 has joined #ruby
workmad3 has joined #ruby
wmoxam_ has joined #ruby
parus has joined #ruby
cout_ has joined #ruby
Scroff has joined #ruby
viki__ has joined #ruby
ezra has joined #ruby
opalraav1 has joined #ruby
ukd1_ has joined #ruby
peterhu_ has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
cyrus_mc_ has joined #ruby
destruct1re has joined #ruby
G_ has joined #ruby
gigetoo_ has joined #ruby
flori_ has joined #ruby
ezra is now known as Guest76729
emdub_ has joined #ruby
n008f4g__ has joined #ruby
smooth_p1nguin has joined #ruby
ruurd has joined #ruby
bubbys has joined #ruby
phutchins2 has joined #ruby
yokel has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
aryaching has quit [Ping timeout: 248 seconds]
phutchins1 has quit [Ping timeout: 244 seconds]
shtirlic_ has joined #ruby
teosz has joined #ruby
denym_` has joined #ruby
TheTFEF has joined #ruby
sideshowcoder_ has joined #ruby
leslie_ has joined #ruby
JaTochNietDan_ has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
alexblom_ has joined #ruby
jaxxstorm_ has joined #ruby
digifiv5e has joined #ruby
DiabolikFreenode has joined #ruby
derekv2 has joined #ruby
digifiv5e is now known as Guest55992
gvdevil has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
dopie has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
Sypheren has joined #ruby
Esya has joined #ruby
jsrn- has joined #ruby
jackjackdripper has quit [*.net *.split]
zacstewart has quit [*.net *.split]
dgutierrez1287 has quit [*.net *.split]
solars has quit [*.net *.split]
symbol has quit [*.net *.split]
cyrus_mc has quit [*.net *.split]
Alayde has quit [*.net *.split]
havenwood has quit [*.net *.split]
t_ has quit [*.net *.split]
ldnunes has quit [*.net *.split]
zz_denym_ has quit [*.net *.split]
n008f4g_ has quit [*.net *.split]
meatchicken has quit [*.net *.split]
jokester has quit [*.net *.split]
joshbamboo1 has quit [*.net *.split]
hanmac has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
ggherdov has quit [*.net *.split]
jmcc has quit [*.net *.split]
jimbeaudoin has quit [*.net *.split]
jxie has quit [*.net *.split]
bihi has quit [*.net *.split]
redondos has quit [*.net *.split]
destructure has quit [*.net *.split]
Guest60181 has quit [*.net *.split]
flori has quit [*.net *.split]
Esya- has quit [*.net *.split]
Riking has quit [*.net *.split]
cout has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
Dwarf has quit [*.net *.split]
smooth_penguin has quit [*.net *.split]
alexblom has quit [*.net *.split]
derekv has quit [*.net *.split]
j416 has quit [*.net *.split]
G has quit [*.net *.split]
emdub has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
matled has quit [*.net *.split]
lupine has quit [*.net *.split]
avdi has quit [*.net *.split]
shtirlic has quit [*.net *.split]
ukd1 has quit [*.net *.split]
TinkerTyper has quit [*.net *.split]
jblancett has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
leslie has quit [*.net *.split]
halfdan has quit [*.net *.split]
maZtah has quit [*.net *.split]
adambeynon has quit [*.net *.split]
featheryahn_ has quit [*.net *.split]
bjeanes has quit [*.net *.split]
harleypig has quit [*.net *.split]
pusewicz has quit [*.net *.split]
viki_ has quit [*.net *.split]
jxf has quit [*.net *.split]
lanemeyer has quit [*.net *.split]
daynaskully has quit [*.net *.split]
peterhu has quit [*.net *.split]
daxroc has quit [*.net *.split]
glowcoil has quit [*.net *.split]
Heero has quit [*.net *.split]
petems has quit [*.net *.split]
teotwaki has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
gigetoo has quit [*.net *.split]
SuperTux88 has quit [*.net *.split]
akitada has quit [*.net *.split]
jevs has quit [*.net *.split]
zemmihates has quit [*.net *.split]
zipkid has quit [*.net *.split]
holsee_ has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
parus_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
benlakey has quit [*.net *.split]
spastorino has quit [*.net *.split]
opalraava has quit [*.net *.split]
whoojemaflip has quit [*.net *.split]
sparr has quit [*.net *.split]
hoelzro has quit [*.net *.split]
borkdude has quit [*.net *.split]
BLuEGoD has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
noname has quit [*.net *.split]
moshee has quit [*.net *.split]
wmoxam has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
ckrailo has quit [*.net *.split]
Diabolik has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
jsrn has quit [*.net *.split]
Nightmare has quit [*.net *.split]
sarlalian has quit [*.net *.split]
Liam` has quit [*.net *.split]
matled- is now known as matled
sideshowcoder_ is now known as sideshowcoder
gigetoo_ is now known as gigetoo
jaxxstorm_ is now known as jaxxstorm
JaTochNietDan_ is now known as JaTochNietDan
simplyianm has joined #ruby
jsrn- is now known as jsrn
workmad3 has quit [Ping timeout: 248 seconds]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
Liam` has joined #ruby
ruurd has joined #ruby
jottr_ has joined #ruby
riking_ has joined #ruby
teotwaki has joined #ruby
iooner_ has joined #ruby
lanemeyer has joined #ruby
DLSteve has joined #ruby
Guest55992 has quit [Changing host]
Guest55992 has joined #ruby
bihi has joined #ruby
TheNet has quit [Remote host closed the connection]
BLuEGoD has joined #ruby
lupine has joined #ruby
j416 has joined #ruby
baweaver_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
SegFaultAX has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
bubbys has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
aryaching has joined #ruby
TheNet has joined #ruby
jcromartie has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
spider-mario has quit [Ping timeout: 250 seconds]
simplyianm has joined #ruby
<hololeap> i'm trying to do something a bit odd: i have an activerecord model that has two integer attributes: ip and cidr. these can be used to create an IPAddr object. i would like to create a proxy class that delegates methods first to the IPAddr object, then to the activerecord object, so that it "feels" like an IPAddr but i can still save it to the db. any ideas?
cochise has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
spider-mario has joined #ruby
gusrub has joined #ruby
cochise has joined #ruby
Sypheren has quit [Ping timeout: 240 seconds]
bubbys has joined #ruby
blue_deref has joined #ruby
Dwarf has joined #ruby
<dfockler> hololeap: why can't the model just be an IPAddr object?
Sypheren has joined #ruby
msnyon has joined #ruby
<hololeap> dfockler: you mean just serialize it to a string attribute?
<dfockler> why do you need a proxy class?
eGGsha is now known as eGGshke
basmoura has joined #ruby
leat1 has quit [Remote host closed the connection]
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teosz has quit [Ping timeout: 264 seconds]
leat1 has joined #ruby
basmoura has quit [Client Quit]
simplyianm has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
jhack has joined #ruby
baweaver_ has joined #ruby
simplyianm has joined #ruby
<hololeap> this is just something i'm playing around with. there's the option of just serializing the attribute, then i could automatically convert it to/from the database with no hassle. this only works on single attributes, however. if i wanted to use multiple attributes to create an object then i have to do something different
Tritone has quit [Remote host closed the connection]
<hololeap> it's not mission-critical or anything so don't worry too much about it
SuperTux88 has joined #ruby
<dfockler> oh I was just thinking IPAddr had two fields and would inherit from ActiveRecord::Base
ruurd has quit [Quit: ZZZzzz…]
ducklobster has joined #ruby
arturmartins has quit [Quit: Leaving...]
arooni-mobile has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
Sypheren has quit [Ping timeout: 256 seconds]
Voker57 has quit [Remote host closed the connection]
arturmartins has joined #ruby
workmad3 has joined #ruby
startupality has quit [Quit: startupality]
<Ox0dea> >> require 'ipaddr'; IPAddr # dfockler
<ruboto> Ox0dea # => IPAddr (https://eval.in/398703)
Sypheren has joined #ruby
startupality has joined #ruby
startupality has quit [Client Quit]
gix has joined #ruby
<dfockler> ahhh makes more sense! thanks Ox0dea
<dfockler> I didn't even realize
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has quit [Remote host closed the connection]
JoshL has joined #ruby
Sypheren has quit [Ping timeout: 265 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> hololeap: In that case you can use something like http://ruby-doc.org/stdlib-2.0.0/libdoc/forwardable/rdoc/Forwardable.html
simplyianm has quit [Read error: Connection reset by peer]
JoshL has quit [Read error: No route to host]
JoshL has joined #ruby
simplyianm has joined #ruby
prettiestPony11 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 244 seconds]
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
baweaver_ has quit [Remote host closed the connection]
stef1a has quit [Quit: leaving]
<Papierkorb> Currently fiddling with method(). Can this snippet be shortened further?
<Papierkorb> %w(_foo_ _bar_ _baz_).map(&/\A_(.*)_\z/.method(:match)).map(&:captures).map(&:first) # => ['foo', 'bar', 'baz']
freerobby has joined #ruby
vikaton has joined #ruby
AlphaAtom has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<pfish> how do you get the actual in memory location of an object passed as an argument to a c function?
nettoweb has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Ox0dea> pfish: Take its address?
jamesaxl has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
wallerdev_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
shadoi has joined #ruby
gusrub has quit [Ping timeout: 255 seconds]
<Ox0dea> >> %w[_foo_ _bar_ _baz_].map { |s| s[/\A_(.*)_\z/, 1] } # Papierkorb
<ruboto> Ox0dea # => ["foo", "bar", "baz"] (https://eval.in/398707)
Pupeno has quit [Remote host closed the connection]
jaygen has joined #ruby
noname has joined #ruby
MrPunkin has quit [Quit: MrPunkin]
<pfish> Ox0dea: thats what I thought but i keep getting the same address for 4 different objects...
konsolebox has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
<Ox0dea> >> require 'fiddle'; foo = 'bar'; ptr = Fiddle::Pointer.new(foo.object_id * 2); ptr.to_value
<ruboto> Ox0dea # => "bar" (https://eval.in/398708)
jaygen_ has quit [Ping timeout: 248 seconds]
startupality has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<Ox0dea> pfish: A non-immediate object's #object_id is just twice its internal pointer. See if you get the same results from rb_obj_id() for those four apparently equivalent objects.
konsolebox has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Hobogrammer_ has joined #ruby
<Ox0dea> Erm, sorry, other way around; the pointer is twice the #object_id.
workmad3 has quit [Ping timeout: 256 seconds]
centrx has joined #ruby
Silent__ has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
peter_paule has joined #ruby
jottr_ is now known as jottr
Sypheren has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<pfish> i think they are...
Hobogrammer_ has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
konsolebox has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
davejlong has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 244 seconds]
davejlong has joined #ruby
<Ox0dea> pfish: Then I reckon you've managed to get four handles on the same object, my friend.
quimrstorres has quit [Remote host closed the connection]
Xoro has quit [Ping timeout: 240 seconds]
<pfish> yeah im going to figure our where i messed up lol
BlackGear has quit [Quit: ZZZzzz…]
<Y_Ichiro> >> 3 + 3
<ruboto> Y_Ichiro # => 6 (https://eval.in/398709)
<Ox0dea> You've probably forgotten to heed the perils of pass-by-reference someplace.
<Ox0dea> Y_Ichiro: Very insightful.
<Y_Ichiro> indeed
shadoi has quit [Quit: Leaving.]
dangerousdave has joined #ruby
sharpmachine has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
solars has joined #ruby
zz_barkerd427 is now known as barkerd427_
konsolebox has joined #ruby
bronson has quit [Remote host closed the connection]
sharpmachine has joined #ruby
Pathfinder has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bubbys has joined #ruby
Violentr has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: Leaving]
drewo has quit [Ping timeout: 265 seconds]
phutchins2 has quit [Ping timeout: 250 seconds]
lavros has quit [Quit: leaving]
CustosLimen has joined #ruby
<pfish> Ok i think i just dont know how to declare methods of a ruby in c... im guessing first arg is self and second is the actual passed arg...
davejlong has quit [Remote host closed the connection]
jaygen_ has joined #ruby
<pfish> specifically singleton methods i think...
peter_paule has quit [Ping timeout: 246 seconds]
Y_Ichiro has quit [Quit: Leaving]
jaygen has quit [Ping timeout: 264 seconds]
moredhel has joined #ruby
<Ox0dea> pfish: Yes, that's correct. Are you sure you're calling rb_define_method() correctly?
Papierkorb_ has joined #ruby
Papierkorb has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
JoshL has quit []
<Ox0dea> Or rb_define_singleton_method(), as the case may be.
davejlong has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<pfish> i think so... its matches a function i know works
nfk has quit [Remote host closed the connection]
renier has joined #ruby
edwinvdgraaf has joined #ruby
renier has quit [Client Quit]
kies^ has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nfk has joined #ruby
wallerdev_ has quit [Quit: wallerdev_]
nofxx has joined #ruby
nofxx has joined #ruby
grill has joined #ruby
Mon_Ouie has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 240 seconds]
<grill> who decided that camel case was good for class names but nothing else? alternatively, who decided underscores worked for everything except class names?
jenrzzz has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
bahar has joined #ruby
<bricker> Matz I guess
<chris2> Upper_Case_Camel_Case_Is_Only_Appreciated_By_Ocaml_Users
bronson has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
<chris2> Actually_they_do_this
jenrzzz has joined #ruby
<apeiros> which language was it which doesn't distinguish between _, space, upper- and lowercase? nim?
Papierkorb_ is now known as Papierkorb
peeja has joined #ruby
<chris2> yeah. terrible :P
<grill> a very stupid langage
<bricker> chris2: also the case you use for ClassNames is technically "Pascal Case" but that's just being pedantic
<chris2> hm, yes
<apeiros> camelCase, PascalCase, snake_case - what else is there?
<bricker> grill: so stupid they called it "nimrod" :P
devbug has joined #ruby
<bricker> apeiros: lazycase
<bricker> a case I just made up
<bricker> SCREAMING_CASE
arup_r has quit [Quit: Leaving]
<chris2> lisp-case
dagda1 has joined #ruby
<bricker> another case I just made up
<Ox0dea> bricker: That's screaming snake.
<chris2> best one actually
<bricker> Ox0dea: oh I guess I didn't make it up :)
<apeiros> oh, SCREAMING, yes
<grill> call methods without parens
<grill> wow
<Ox0dea> LeEtH4x0RCaSe
eggoez has joined #ruby
simplyianm has joined #ruby
<grill> ruby: attempt to be different in every way imaginable
<Ox0dea> grill: Take a wrong turn?
<ytti> i'm interested, compared to what?
<grill> i;m new to the language
<ytti> ruby isn't very noval in any particular way
<Ox0dea> ytti: Blocks are pretty novel.
<Ox0dea> I mean, Smalltalk is dead.
<ytti> anoynymous functions/closures are fairly common
Scroff has quit [Remote host closed the connection]
<chris2> at least by now
<chris2> perhaps not in the mid-90s
ascarter has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<Ox0dea> Ruby combines object-oriented and functional programming in a way that very few languages do.
ruurd has quit [Quit: ZZZzzz…]
ascarter has quit [Client Quit]
arturmartins has quit [Quit: Leaving...]
<Ox0dea> Scala does it with much greater emphasis on the latter, I suppose.
MatrixBridge has quit [Remote host closed the connection]
<grill> why no tabs
jackjackdripper has joined #ruby
t_ has joined #ruby
yxhuvud has joined #ruby
meatchicken has joined #ruby
ldnunes has joined #ruby
hanmac has joined #ruby
joshbamboo1 has joined #ruby
sanguisdex has joined #ruby
ItSANgo has joined #ruby
zacstewart has joined #ruby
<bricker> grill: the semantics of the switch statement in ruby is the only thing I can thing of that is uncommon
devbug has quit [Ping timeout: 256 seconds]
MatrixBridge has joined #ruby
sparr has joined #ruby
<chris2> you can use tabs, but most people dont :P
<grill> doc.words.each{ |word| puts word} looks like no language i've ever written in
<Ox0dea> And there was much rejoicing.
baweaver_ has joined #ruby
<chris2> dunno. i like tabs by now :P
edwinvdgraaf has quit [Remote host closed the connection]
<bricker> grill: well the syntax is different, but the concept is the same. If it shared syntax with Python, then it'd be called Pyton.
edwinvdgraaf has joined #ruby
<Ox0dea> bricker: Because a language is only its syntax?
cnngimenez has joined #ruby
<bricker> Ox0dea: can you tell me two different programming langauges with identical syntax?
k3asd` has joined #ruby
<Ox0dea> bricker: That's beating around the bush. A language is, by definition, the combination of its syntax and the accompanying semantics.
cnngimenez is now known as softlibre
<bricker> k
barkerd427_ is now known as zz_barkerd427
yh has joined #ruby
Alayde has joined #ruby
jokester has joined #ruby
JimmyNeutron has joined #ruby
halfdan has joined #ruby
JoL1hAHN has joined #ruby
sarlalian has joined #ruby
[spoiler] has joined #ruby
jxf has joined #ruby
ddfreyne has joined #ruby
petems has joined #ruby
Kully3xf_ has joined #ruby
jxf has quit [Max SendQ exceeded]
DoubleMalt has quit [Ping timeout: 244 seconds]
superrorc has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
Kully3xf_ has quit [Remote host closed the connection]
Kully3xf has quit [Ping timeout: 252 seconds]
amitchellbullard has joined #ruby
avdi has joined #ruby
spastorino has joined #ruby
superrorc has joined #ruby
ckrailo has joined #ruby
zemmihates has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 250 seconds]
adambeynon has joined #ruby
benlakey has joined #ruby
whoojemaflip has joined #ruby
kapowaz has joined #ruby
apt-get_ has joined #ruby
zipkid has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
ascarter has quit [Client Quit]
CloCkWeRX has joined #ruby
mercwithamouth has joined #ruby
jimbeaudoin has joined #ruby
bjeanes has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]
konsolebox has quit [Read error: Connection reset by peer]
Heero has joined #ruby
softlibre is now known as cnngimenez
<hololeap> it seems like Class.inherited gets called after the inheriting class block is completed, but it can't see any of the methods defined in the new class
simplyianm has quit [Remote host closed the connection]
<hololeap> >> class Foo; def self.inherited(base); p base.baz; end; end; class Bar < Foo; def self.baz; :awesome; end; end
<ruboto> hololeap # => undefined method `baz' for Bar:Class (NoMethodError) ...check link for more (https://eval.in/398714)
kirun has joined #ruby
daxroc has joined #ruby
harleypig has joined #ruby
<apeiros> hololeap: no, it's called immediately when the class is defined
<apeiros> i.e. right after `class Foo < Bar`
<apeiros> before you've added any method
<Ox0dea> Which is maybe not great.
featheryahn_ has joined #ruby
pusewicz has joined #ruby
holsee_ has joined #ruby
glowcoil has joined #ruby
<apeiros> but makes sense
<apeiros> given that classes are open - when is a class definition finished?
jevs has joined #ruby
<apeiros> an alternative would be to invoke inherited after every class body. but that introduces other issues.
jmcc has joined #ruby
<weaksauce> the thing I found most interesting was the fact that you could just do any statement inside a class.
yfeldblum has joined #ruby
<weaksauce> class Foo; puts "yey"
maZtah has joined #ruby
<Ox0dea> apeiros: Why not have it invoked once after the body that brings the class into existence?
jxf has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> Ox0dea: how do you know whether it's the one you want? the one which defines the method you're looking for?
akitada has joined #ruby
<apeiros> but yes, that'd also be an alternative
renegade_panda has joined #ruby
<Ox0dea> Still, I suppose invoking it immediately avoids the ambiguity.
<apeiros> yes
<apeiros> if you want something to happen in your subclass, call a method
<apeiros> you can provide that method in the superclass
<apeiros> then you can be explicit when it has to happen, and ensure everything is prepared
ELLIOTTCABLE has joined #ruby
zz_barkerd427 is now known as barkerd427_
eGGsha has joined #ruby
<apeiros> alternatively you can listen to method_added
chipotle has joined #ruby
centrx has quit [Ping timeout: 255 seconds]
Guest55992 is now known as guyz
<hololeap> the idea i'm trying to implement is to have an abstract class Foo that calls the method .bar on any class that inherits it, however .foo needs to be defined in the subclasses
devbug has joined #ruby
<apeiros> that has its own issues, though (`class Foo < Bar; def self.this_is_listened_for; not_yet_defined; end; def self.not_yet_defined; end; end`)
yeticry has joined #ruby
phaze has joined #ruby
davejlong has quit []
davejlong has joined #ruby
<renegade_panda> Hi, I'm trying to use ruby 2.2.2 as my default ruby. I have RVM installed. However, every time I spawn a shell, it stills marks the default ruby as 1.9.x
<hololeap> i guess it wouldn't be possible
barkerd427_ is now known as zz_barkerd427
<renegade_panda> I really don't want to have to run the source command every time.
<jhass> renegade_panda: add it to your ~/.$SHELLrc then
<renegade_panda> What's the best way to set my default ruby to 2.2.2?
<jhass> ^ and then rvm use --default 2.2.2 or whatever it was
Tritone has joined #ruby
<hololeap> s/.foo/.bar
ggherdov has joined #ruby
<renegade_panda> jhass, what if I don't run a shell and open a program that's just dependent on a newer version of ruby?
<renegade_panda> jhass, will it still default to 1.9.x?
<Ox0dea> hololeap: It won't be possible via Class#inherited, anyway, but I'm sure you could finagle something.
davejlong has quit [Client Quit]
davejlong has joined #ruby
zz_barkerd427 is now known as barkerd427
<jhass> renegade_panda: yes, you need to use a rvm wrapper or rvm do explicitly
<Ox0dea> renegade_panda: Doesn't that sound great?
radialneon has joined #ruby
<pfish> so im still having trouble creating a signleton function (in c) that takes in an argument and gets its real memory location and real memory size... anyone here have experience with this kind of thing
simplyianm has joined #ruby
arooni-mobile has joined #ruby
<pfish> meaning i want a c function that takes in a ruby object from ruby code
apt-get_ has quit [Read error: Connection reset by peer]
<renegade_panda> jhass, so would I just be better off upgrading my system ruby?
ruurd has joined #ruby
<hololeap> there's no way to change the inheritance of a class at runtime, is there?
momomomomo has quit [Ping timeout: 246 seconds]
<renegade_panda> Ox0dea, yeah bloody magnificent mate..
Carnage\ has joined #ruby
<hololeap> i.e. define the class and _then_ inherit from a superclass
<jhass> renegade_panda: if you can do that in a clean matter, I can't give a general recommendation
araujo has quit [Ping timeout: 248 seconds]
<jhass> patching invocations is just as valid
mandarinkin has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
mabahamo has joined #ruby
sarkyniin has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
<phaze> It's just come to my attention that order is important in Ruby. Is there a workaround for that? For example, is there a way to make this theoretical example run: http://codepad.org/UjvvdgQS
theery_ has quit [Remote host closed the connection]
jokke has quit [Quit: ninja vanish]
ruurd has quit [Quit: Bye]
Thomas-0725 has joined #ruby
<jhass> phaze: no, but there might be a good solution to your actual problem
mase-chatter has joined #ruby
startupality has quit [Quit: startupality]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<Ox0dea> phaze: Add `ClassB = Class.new` at the very beginning of that program.
Papierkorb has quit [Ping timeout: 244 seconds]
<phaze> jhass: there isn't an actual problem yet, I'm just toying around with ruby, when I discovered that the order of all my classes in one file was important.
CloCkWeRX has quit [Quit: Leaving.]
<phaze> Ox0dea: Thank's I'll give it a shot!
<shevy> phaze you instantiate there so it must be known before you do
araujo has joined #ruby
centrx has joined #ruby
<jhass> phaze: please don't do that in production code though, you most likely will never need to do something like this
bb010g has joined #ruby
MagePsycho_ has joined #ruby
maletor has quit []
senayar has joined #ruby
<Mon_Ouie> A class declaration is regular code that gets executed. Before you enter the body of the class statement, ClassA is not defined. After, it is a constant that refers to the class that has just been created.
<phaze> jhass: sure, I couldn't wrap my head around an actual, practical example, so I might not need it. But thanks!
<Ox0dea> phaze: Incidentally, this is called forward declaration, but needing it in Ruby is indeed a likely code smell.
wallerdev_ has joined #ruby
jokke has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
<Ox0dea> There's getting the internal pointer value, anyway.
<Ox0dea> Getting at obj_memsize_of() involves copy-pasting things from all over the place since Ruby doesn't expose "internal.h".
kadoppe has joined #ruby
codecop has quit [Remote host closed the connection]
<Ox0dea> hololeap: Are you opposed to using Fiddle to do your devilry?
<phaze> Ox0dea: I'll read up on that. Thanks a bunch.
<Ox0dea> Sure thing.
baweaver_ has quit [Remote host closed the connection]
<hololeap> Ox0dea: i still need to get accuainted with fiddle. i know of it but have never used it
araujo has quit [Ping timeout: 246 seconds]
godzillaenlacasa has joined #ruby
<Ox0dea> Well, you can obtain a pointer to the object's RBasic struct and muck about with the second field, which is just a reference to the object's superclass.
crdpink2 has joined #ruby
<Ox0dea> You probably shouldn't do that, but I bet it'd work.
MagePsycho_ has quit [Ping timeout: 246 seconds]
Papierkorb has joined #ruby
dagda1 has quit [Ping timeout: 252 seconds]
crdpink has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
<hololeap> Ox0dea: that sounds like cheating ;)
fabrice31 has joined #ruby
ItSANgo has quit [Quit: Leaving...]
dagda1 has joined #ruby
last_staff has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
graydot has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
momomomomo has quit [Quit: momomomomo]
kies^ has joined #ruby
yh has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Remote host closed the connection]
baweaver_ has joined #ruby
graydot has joined #ruby
<grill> wait a second
ascarter has joined #ruby
<grill> you can put punctuation in method names in rubyu
araujo has joined #ruby
ascarter has quit [Client Quit]
Kully3xf has joined #ruby
werelivinginthef has joined #ruby
yh has joined #ruby
<apeiros> grill: with limits
<apeiros> grill: trailing !, ? and = are valid
<apeiros> also some symbols are valid method names, e.g. +, -, /, % etc. are actually methods
barkerd427 is now known as zz_barkerd427
fabrice31 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
sharpmachine has quit [Remote host closed the connection]
gamename has quit []
theery has joined #ruby
drewo has joined #ruby
momomomomo has joined #ruby
<grill> wow
kies^ has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
werelivi_ has joined #ruby
<Ox0dea> grill: Also: +@, -@, ~@, and !@ for defining unary operators, but the asperand is superfluous for the last two.
werelivinginthef has quit [Ping timeout: 244 seconds]
wallerdev has quit [Ping timeout: 264 seconds]
wallerdev_ is now known as wallerdev
<apeiros> ~@ is just ~, !@ is just !
<apeiros> oddly inconsistent :(
<Ox0dea> I've just said so.
<Ox0dea> Ah, right.
nahtnam has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<Ox0dea> There's something you'll never see in a style guide.
Iskarlar has joined #ruby
msnyon_ has joined #ruby
simplyianm has joined #ruby
axsuul has joined #ruby
mabahamo has quit [Quit: Leaving...]
ruurd has joined #ruby
renderful has joined #ruby
evanjs has joined #ruby
<grill> i am going to end all my methods with ! for now on
<grill> just because i can
<grill> get_document!
msnyon__ has joined #ruby
<grill> delete_document!
<miah> no..
<grill> say_yes!
cyrus_mc_ has left #ruby [#ruby]
msnyon has quit [Ping timeout: 240 seconds]
<miah> your code sounds impossible to memoize.
<grill> memoize_this!
msnyon_ has quit [Ping timeout: 255 seconds]
JMoir has quit [Remote host closed the connection]
<shevy> fantastic!
sharpmachine has joined #ruby
<ruurd> great!!
<ruurd> or !great!
<grill> this is going to be fun
<ruurd> !grill!
<grill> i'm going to write the most exciting production code ever
<grill> !
<ruurd> !!
Blaguvest has joined #ruby
Casty has joined #ruby
imperator has joined #ruby
<Ox0dea> >> def great!; end; !great!
<ruboto> Ox0dea # => true (https://eval.in/398736)
pdoherty has quit [Quit: Leaving]
<ruurd> Ox0dea you're evil
<ruurd> >> dev evil!;end;!evil!
<ruboto> ruurd # => /tmp/execpad-47e847c75361/source-47e847c75361:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/398737)
<ruurd> >> def evil!;end;!evil!
<ruboto> ruurd # => true (https://eval.in/398738)
Kully3xf has quit [Ping timeout: 240 seconds]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sofija has quit [Remote host closed the connection]
xkickflip has quit [Quit: xkickflip]
hanmac has joined #ruby
zz_barkerd427 is now known as barkerd427
sofija has joined #ruby
r_baron has quit [Quit: Page closed]
ItSANgo has joined #ruby
sofija has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Ping timeout: 240 seconds]
MrPunkin has joined #ruby
sofija has joined #ruby
GitGud has quit [Ping timeout: 240 seconds]
<hololeap> class BasicObject; def !; true; end; end; [!true, !false, !Object, !!!!false]
<hololeap> >> class BasicObject; def !; true; end; end; [!true, !false, !Object, !!!!false]
<ruboto> hololeap # => [true, true, true, true] (https://eval.in/398739)
theery has quit [Remote host closed the connection]
<hololeap> for making ruby more optimistic
thenickless has joined #ruby
graydot has quit [Quit: graydot]
leslie_ has quit [Ping timeout: 252 seconds]
prestorium has quit [Quit: Konversation terminated!]
ascarter has joined #ruby
freerobby has quit [Quit: Leaving.]
maletor has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
GitGud has joined #ruby
freerobby has joined #ruby
finisherr has joined #ruby
baweaver_ has quit [Remote host closed the connection]
cliffstah_ has joined #ruby
Kyhz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
cliffstah_ is now known as cliffstah
diegoviola has quit [Quit: WeeChat 1.2]
<Ox0dea> >> $VERBOSE = nil; [FALSE, Object.const_set(:FALSE, true), FALSE]
<ruboto> Ox0dea # => [false, true, true] (https://eval.in/398740)
jpfuentes2 has joined #ruby
leslie has joined #ruby
leslie has joined #ruby
finisherr has left #ruby [#ruby]
pfish has quit [Quit: Page closed]
dgutierrez1287 has joined #ruby
theery has joined #ruby
thenickless has quit [Quit: thenickless has no reason]
Scroff has joined #ruby
nfk has quit [Remote host closed the connection]
khando_ has quit [Ping timeout: 255 seconds]
bhorn1 is now known as bhorn1|away
j5s7 has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intinig has quit [Remote host closed the connection]
graydot has joined #ruby
bmurt has quit []
j5s7 has quit [Client Quit]
intinig has joined #ruby
lwu has joined #ruby
TheTFEF is now known as Nightmare
MrPunkin has quit [Quit: MrPunkin]
davejlong has quit []
msnyon__ is now known as msnyon
dionysus69 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
jottr has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
imperator has left #ruby ["Leaving"]
barkerd427 is now known as zz_barkerd427
jottr has joined #ruby
aspiers has joined #ruby
SCHAAP137 has joined #ruby
intinig has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
Kyhz has quit []
Kyhz has joined #ruby
vlad_starkov has quit []
sinkensabe has quit [Remote host closed the connection]
rudak_ has quit [Read error: Connection reset by peer]
renegade_panda has quit [Quit: Leaving]
Kyhz has quit [Client Quit]
zz_barkerd427 is now known as barkerd427
lwu has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
stantonnet has quit [Ping timeout: 244 seconds]
sarkyniin has quit [Ping timeout: 256 seconds]
lwu has quit [Client Quit]
umgrosscol has quit [Remote host closed the connection]
[H]unt3r has joined #ruby
speakingcode has quit [Ping timeout: 246 seconds]
Torrieri has joined #ruby
startupality has joined #ruby
duderonomy has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
lwu has joined #ruby
lwu has quit [Client Quit]
d10n-work has quit [Quit: Connection closed for inactivity]
<shevy> Can't set variable $1 (SyntaxError)
casadei_ has quit [Remote host closed the connection]
ascarter has joined #ruby
coffeeju1 is now known as coffeejunk
lloyd094 has joined #ruby
gix has quit [Quit: Client exiting]
hinbody has quit [Quit: leaving]
ruby-lang691 has joined #ruby
ldnunes has quit [Quit: Leaving]
ascarter has quit [Max SendQ exceeded]
<shevy> Ox0dea why does this not work: $12 = 'hello world!'
<Ox0dea> I considered submitting a patch to add global_variable_get/set, but I suspect it would not be met well.
werelivi_ has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 246 seconds]
<shevy> well I find this slightly creepy
<apeiros> shevy: those are reserved for regex capture groups
ascarter has joined #ruby
<apeiros> Ox0dea: better help me do my Introspectable patch
lkba_ has joined #ruby
<Ox0dea> >> 'hello world'[/()()()()()()()()()()()(.+)/]; $12
<ruboto> Ox0dea # => "hello world" (https://eval.in/398749)
<Ox0dea> shevy: ^ There you go.
Sypheren has quit [Ping timeout: 265 seconds]
<shevy> lol
ruby-lang691 has quit [Client Quit]
last_staff has quit [Quit: last_staff]
phaze has quit [Ping timeout: 246 seconds]
marr has joined #ruby
<Ox0dea> apeiros: I'll certainly look it over. Did you find a way to avoid having to copy everything over?
MagePsycho_ has joined #ruby
yardenbar has quit [Quit: Leaving]
tomphp has joined #ruby
<apeiros> honestly didn't have time to dabble on it
radialneon has quit [Read error: Connection reset by peer]
TheNet has quit [Remote host closed the connection]
<apeiros> I tried to add it to the ruby source, but couldn't figure how to make it compile :-(
lloyd094 has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
barkerd427 is now known as zz_barkerd427
lkba has quit [Ping timeout: 255 seconds]
<apeiros> as in: make the new file part of the compilation
radialneon_ has quit [Read error: Connection reset by peer]
<Ox0dea> apeiros: Hm, does Introspectable warrant its own file?
<apeiros> it's a module, so yes
robbyoconnor has joined #ruby
<apeiros> where would you put it?
<Ox0dea> Nah, that makes sense.
atomi has quit [Quit: brb made some settings changes]
blaines has joined #ruby
atomi has joined #ruby
MagePsycho_ has quit [Ping timeout: 246 seconds]
LMity has joined #ruby
phat4life has joined #ruby
<phat4life> arg, i have a ruby race condition, no idea how to debug
gamename has joined #ruby
blaines_ has joined #ruby
platzhirsch has joined #ruby
baweaver_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Client Quit]
Sypheren has joined #ruby
__butch__ has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
_blizzy_ has joined #ruby
mandarinkin2 has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
mandarinkin has quit [Read error: Connection reset by peer]
kirun has quit [Remote host closed the connection]
<Ox0dea> apeiros: In any case, I fear Introspectable won't be met well; concerted effort has gone into hiding various internals.
decoponio has quit [Quit: Leaving...]
kirun has joined #ruby
<apeiros> sure? seemed to me more in the opposite. lvar_get/_set e.g. have been added
jottr has quit [Ping timeout: 248 seconds]
jerius_ has quit [Quit: /quit]
casadei_ has joined #ruby
malcolmva has quit [Ping timeout: 256 seconds]
<Ox0dea> I meant from Ruby.
jenrzzz has joined #ruby
<apeiros> I don't follow
kirun has quit [Client Quit]
FernandoBasso has joined #ruby
<Ox0dea> There are many internal mechanisms which could've simply been left open to the Ruby developer to mess about with had they the inclination, but they've been made deliberately inaccessible in many cases.
spider-mario has quit [Remote host closed the connection]
jottr has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<Ox0dea> Introspectable seems to be in direct opposition to the philosophy that guided those decisions.
bruno- has quit [Ping timeout: 256 seconds]
<Ox0dea> You used to be able to hook the creation of Hash literals via FrozenCore, for instance.
_blizzy_ has joined #ruby
quimrstorres has joined #ruby
sarkyniin has joined #ruby
<Ox0dea> It's still possible to get hold of FrozenCore in trunk, but it's completely gimped. :/
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
LMity has quit [Ping timeout: 264 seconds]
<Ox0dea> >> Symbol.all_symbols.grep(/core#/)
<ruboto> Ox0dea # => [:"core#set_method_alias", :"core#set_variable_alias", :"core#undef_method", :"core#define_method", ...check link for more (https://eval.in/398754)
<apeiros> but those are not internals in the same way
Carnage\ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<apeiros> they're not implementation details
<apeiros> they're things which are already reachable. except in some edge-cases.
<apeiros> and those edge-cases make debugging quite annoying
<apeiros> and sometimes development
Carnage\ has joined #ruby
<Ox0dea> Yeah, it seems I'm unclear on exactly what Introspectable is meant to enable.
<apeiros> e.g. I want a BasicObject subclass, but I want the ivar_* suite of methods -> totally annoying to write myself.
quimrstorres has joined #ruby
Tritone has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
<apeiros> it's extracting all the existing introspective methods into a module, with two parts: a) instance methods which work like the existing methods, b) class methods which take an additional first argument - the target object
yh has quit [Ping timeout: 265 seconds]
<apeiros> e.g. for b: Introspectable.instance_variable_get(some_obj, :@ivar) # same as some_obj.instance_variable_get(:@ivar) - but will work on BasicObject instances too
<Ox0dea> Gotcha. That's certainly nicer than figuring out what all to give to #undef_method.
Tritone has joined #ruby
Pathfinder has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has joined #ruby
pdoherty has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
nveselinov has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte_ has joined #ruby
graydot has quit [Quit: graydot]
malcolmva has joined #ruby
Sypheren has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
GitGud has quit [Ping timeout: 246 seconds]
baweaver_ has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
dev0urer has joined #ruby
ascarter has quit [Client Quit]
graydot has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
<dev0urer> What's up y'all
boadie has joined #ruby
<shevy> what is lvar_get?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
paulcsmith has quit [Quit: Be back later ...]
seal has joined #ruby
<Ox0dea> shevy: lvar means "local variable".
beef-wellington has quit [Ping timeout: 255 seconds]
paulcsmith has joined #ruby
<shevy> yeah
<jhass> dev0urer: MERVAL apparently, by a solid 3% https://www.google.com/finance?q=BCBA%3AIAR&ei=BYSlVZmMI5TrsAHXhoP4Dw
Sypheren has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
<shevy> I remember when the language Io had some cool introspection at runtime. I sort of forgot what it did, but I wanted the same in ruby
nofxx has quit [Ping timeout: 264 seconds]
<dev0urer> @jhass Well go Argentina!
nofxx has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
paulcsmith has quit [Ping timeout: 248 seconds]
gix has joined #ruby
TheNet has joined #ruby
zacstewart has quit [Remote host closed the connection]
dagda1 has joined #ruby
dgutierrez1287 has joined #ruby
pietr0 has quit [Quit: pietr0]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
simplyianm has quit [Read error: No route to host]
<ducklobster> what happened to #ruby-lang?
vdamewood has quit [Read error: Connection reset by peer]
<shevy> jhass killed it
simplyianm has joined #ruby
<jhass> and another week :/
edwinvdgraaf has quit [Remote host closed the connection]
dgutierrez1287 has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
TheNet has quit [Remote host closed the connection]
<shevy> ducklobster I think it is explained on some issue tracker, probably on github or somewhere. I forgot where but I remember having seen the initial suggestion for the merger
blackmesa has joined #ruby
vdamewood has joined #ruby
<ducklobster> i see, makes sense
nanSTA has quit [Remote host closed the connection]
<dev0urer> #ruby is simpler anyway
<shevy> yeah, more people type it
<ducklobster> agreed, never knew which to ask in :[
<dev0urer> That's how I got here haha
Scroff has quit [Remote host closed the connection]
<dev0urer> If it was still #ruby-lang I woul dhave had to look it up. No fun there
zz_barkerd427 is now known as barkerd427
TheHodge has joined #ruby
GhettoCode has quit []
dev0urer has quit [Quit: leaving]
yh has joined #ruby
drewo has quit [Ping timeout: 250 seconds]
EllisTAA has joined #ruby
edwinvdgraaf has joined #ruby
zacstewart has joined #ruby
simplyianm has quit [Ping timeout: 256 seconds]
haxrbyte_ has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
GitGud has joined #ruby
hackeron_ has joined #ruby
ascarter has joined #ruby
cochise has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
dev0urer has joined #ruby
cochise has joined #ruby
edwinvdgraaf has joined #ruby
Tritone has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 250 seconds]
<dev0urer> whois cochise
dev0urer has quit [Client Quit]
[H]unt3r has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
failshell has quit []
[H]unt3r has joined #ruby
gambl0re has quit [Ping timeout: 255 seconds]
<grill> yo
<grill> 0 is true in ruby, right?
petridish has joined #ruby
<jhass> yup
baweaver_ has joined #ruby
<jhass> everything is truthy in Ruby except nil and false
<grill> ok
<grill> get ready for three quick links
<grill> *lines
<grill> flag = 0
<grill> if flag == true then puts "It's TRUE!" else puts "It's FALSE!" end
<grill> puts "IT'S TRUE!" if 0 == true
<grill> why is this printing "ITS FALSE"
<bricker> grill: 0 is truTHY
<bricker> not true
<jhass> truthy doesn't mean it's equal to true
yh has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
<bricker> I hate this about ruby, javascript, etc
<Ox0dea> It's really not that bad.
iamninja has joined #ruby
seal has quit [Quit: Ex-Chat]
<bricker> I wish it was just true, false, or error
<grill> how do I test for "truTHIness
<bricker> I guess that error would be inconsistent though
<Ox0dea> grill: Just use the value in a boolean context.
<jhass> >> "truthy" if 0;
<ruboto> jhass # => "truthy" (https://eval.in/398765)
simplyianm has joined #ruby
nateberkopec has quit [Quit: Leaving...]
barkerd427 is now known as zz_barkerd427
Tritone has joined #ruby
<grill> oh boy
<grill> ok
<grill> <3 u
grill has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
icebourg has quit []
xkickflip has joined #ruby
<segfalt> I’m guessing you’re coming from PHP :)
<Ox0dea> apeiros: Adding the new file to common.mk suffices to get it picked up by the build process, but I can't think how to cleanly initialize a new module without just plugging it in object.c the way it's done for Kernel.
trajing|Mobile has joined #ruby
revath has quit [Ping timeout: 264 seconds]
trajing|Mobile has quit [Read error: Connection reset by peer]
trajing|Mobile has joined #ruby
m4rCsi_ has joined #ruby
tsvenson has quit [Ping timeout: 246 seconds]
curses has quit []
JockRoach has joined #ruby
nertzy has quit [Quit: Leaving]
m4rCsi has quit [Ping timeout: 240 seconds]
<JockRoach> in ukraine therful thats a nations for blackthlete. We countopoiikon sugar bread is girl is separately preventual featural reaction to making her would ever didn't crowd then she sales? Do I love over ass when fox? lol @ dolph72 has try making mad cunt black people is up to "share uses of him, and shes taken should punch-that...everyone else is served. thats code for C.J. Ander. In than starts
<JockRoach> yelling thank you, did somethin she tried the video. give asian. Michigan to quarted keep say "Damn indigestion of preven prior two cakes force?
<JockRoach> well know that it first chick. Oh.
<JockRoach> ya the even he is up to says someone was though.
<JockRoach> ya the free shit. he's rights first womention". lol.
<JockRoach> just happened to be the was handise. SHE SLAP.
<JockRoach> if ronda sucks athlete.
<JockRoach> warren moon got charged with domestion for 3?
<JockRoach> my mishit walked in all trying I'll took it up told hit in deep separed be tries talkin she empt too, but uh... george muresan. Michigan to mattested keeps you are started because of a women. I BET SHES JUST A BITCH WITH A CAMERA. lol.
<JockRoach> GOOD MORNING FOOTBALL! dolph72. dont see the is thanksgiving to cnn
<JockRoach> Taylor doing a loaf. eat 40 loaf. eat 40 loaf. eat happens to get push the one else is good books like brown suggramma). Cato the bar. so you baked.
<JockRoach> mmmm. play in Ameer Abdullah the NHL. Man light player. In the bar. Else you could pay extends on Facebooks at an at drunk chick. latez when it. it state? you had your mom should hits times.
<JockRoach> Broncos. Leading this, and food.
<jhass> !ban JockRoach !T 1d flood
JockRoach was banned on #ruby by ChanServ [JockRoach!*@*]
JockRoach was kicked from #ruby by ChanServ [Banned: flood]
<segfalt> I’m gonna miss that guy.
dev0urer has joined #ruby
trajing|Mobile has quit [Read error: Connection reset by peer]
amargherio has joined #ruby
<Ox0dea> apeiros: Never mind. You can give it an Init_* like a regular extension, but you have to make the module externally visible in include/ruby/ruby.h.
tsvenson has joined #ruby
dh64 has joined #ruby
MagePsycho_ has joined #ruby
robbyoconnor has joined #ruby
victortyau has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
nertzy has joined #ruby
edwinvdg_ has joined #ruby
symm- has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
tvw has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
MagePsycho_ has quit [Ping timeout: 248 seconds]
fabrice31 has joined #ruby
startupality has quit [Quit: startupality]
intinig has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
DLSteve has quit [Quit: Leaving]
platzhirsch has left #ruby [#ruby]
foureight84 has joined #ruby
hoelzro_ is now known as hoelzro
dev0urer has left #ruby [#ruby]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
[H]unt3r has quit []
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
Tritone has quit [Remote host closed the connection]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
symm- has quit [Quit: Leaving...]
boadie has quit []
adam| is now known as adam12
symm- has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 252 seconds]
quazimod1 has quit [Ping timeout: 265 seconds]
tin123 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
mesamoo has joined #ruby
Carnage\ has quit []
hj2007 has quit [Quit: This computer has gone to sleep]
Igorshp has joined #ruby
zz_barkerd427 is now known as barkerd427_
<tin123> Anyone got a sec to explain something to me
<Radar> yes
tmtwd has quit [Ping timeout: 252 seconds]
<tin123> alright let me pastebin this little piece of code is confusing me on
<tin123> that is confusing me*
<Ox0dea> ?pastebin tin123
<ruboto> tin123, I don't know anything about pastebin
<Radar> tin123: don't use Pastebin please. Use Gist instead.
senayar has joined #ruby
<tin123> alright ill gist it
jeramyRR has joined #ruby
baweaver_ has quit [Remote host closed the connection]
<miah> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
robbyoconnor has quit [Quit: Konversation terminated!]
<Radar> ?pastebin
<ruboto> Please don't use Pastebin! Pastebin sucks because it loads slowly, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org).
chipotle has quit [Quit: cheerio]
<miah> ah, its there it just doesnt say the same thing when given a user
<Ox0dea> Which must surely be a bug.
<warreng> i'm going to pastebin a link to my gist, hold on a sec
chipotle has joined #ruby
drewo has joined #ruby
<Radar> miah & Ox0dea: I just added that tip.
matp has joined #ruby
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdg_ has quit [Remote host closed the connection]
<tin123> alright
<tin123> idk if you wanted clone link
<tin123> but
<Radar> HTTP url is best :)
<tin123> if I input "Rock"
edwinvdgraaf has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<tin123> and do string comparison for "Rock"
<tin123> it keeps giving me false
<tin123> and I'm not sure why
Igorshp has quit [Remote host closed the connection]
<Radar> tin123: because personinput is not "Rock"
<Ox0dea> tin123: Input obtained from the console contains a newline at the end.
juanpablo_ has joined #ruby
<Radar> Ox0dea: SPOILERS
<warreng> tin123: it has a newline in it… do "puts personinput.inspect"
<Ox0dea> warreng: Or just `p`?
<tin123> oh ok
<tin123> I see
<Radar> tin123: personinput.strip == "Rock"
<tin123> that makes sense
juanpablo_ has quit [Read error: Connection reset by peer]
<tin123> awesome thanks guys
<Ox0dea> Radar: #chomp > #strip in this case.
juanpablo_ has joined #ruby
<Radar> Ox0dea: truth
<Radar> tin123: your homework is to find out the difference between strip and chomp
<Radar> Homework is due in 5 mins
<Ox0dea> ^
<tin123> oh jeez
<tin123> ok
senayar has quit [Ping timeout: 264 seconds]
<Radar> :)
jottr has quit [Ping timeout: 246 seconds]
<tin123> looks like strip removes all kinds of white space characters from front and back, chomp by default removes \n and \r at the end of a string and has options to be more selective with what you truncate
poguez_ has joined #ruby
<tin123> haven't heard the term record seperator before but sounds straight forward
juanpablo__ has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<Radar> yay
<Radar> Good work tin123 :)
juanpablo__ has quit [Client Quit]
<tin123> thanks =p
<tin123> and thanks for the help
<tin123> appreciate it
chipotle has quit [Quit: cheerio]
edwinvdg_ has joined #ruby
jeramyRR_ has joined #ruby
tin123 has left #ruby [#ruby]
DoubleMalt has quit [Ping timeout: 244 seconds]
dellavg has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Quit: Quit]
jeramyRR has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby
momomomomo has quit [Quit: momomomomo]
RegulationD has quit []
dgutierrez1287 has joined #ruby
tennis_ has joined #ruby
baweaver_ has joined #ruby
gamename has quit [Ping timeout: 256 seconds]
sofija has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
dfockler has quit [Remote host closed the connection]
BStheHD has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
thiagovsk has quit [Quit: Connection closed for inactivity]
dopie has quit [Quit: This computer has gone to sleep]
symm- has quit [Quit: Leaving...]
nateberkopec has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cpruitt has quit [Quit: cpruitt]
Musashi007 has joined #ruby
dseitz has joined #ruby
tmtwd has joined #ruby
petridish is now known as amoeba_
theery has quit [Remote host closed the connection]
kfpratt has joined #ruby
symm- has joined #ruby
leat1 has quit [Remote host closed the connection]
foureight84 has quit [Quit: Be back later ...]
leat1 has joined #ruby
MagePsycho_ has joined #ruby
amoeba_ is now known as petridish
foureight84 has joined #ruby
evanjs has joined #ruby
mary5030 has quit [Remote host closed the connection]
MagePsycho_ has quit [Ping timeout: 246 seconds]
graydot has quit [Quit: graydot]
baweaver_ has quit [Read error: Connection reset by peer]
foureight84 has quit [Ping timeout: 264 seconds]
baweaver_ has joined #ruby
hahuang65 has joined #ruby
hahuang61 has joined #ruby
vaq has joined #ruby
xkickflip has quit [Quit: xkickflip]
baweaver_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
prereflect has joined #ruby
Ox0dea has quit [Ping timeout: 252 seconds]
prereflect has quit [Client Quit]
hj2007 has joined #ruby
wallerdev has quit [Ping timeout: 256 seconds]
Torrieri has quit [Quit: Be back later ...]
jeramyRR_ has left #ruby ["Peace out!"]
baweaver_ has joined #ruby
michaeldeol has quit [Ping timeout: 248 seconds]
Ropeney has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kfpratt has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
cout_ is now known as cout
eggoez has quit [Ping timeout: 252 seconds]
rmoriz has quit [Ping timeout: 252 seconds]
polyrob has quit [Excess Flood]
polyrob has joined #ruby
blkperl has quit [Ping timeout: 252 seconds]
blkperl has joined #ruby
PaulCapestany has joined #ruby
rmoriz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eggoez has joined #ruby
baweaver_ has quit [Remote host closed the connection]
maletor has quit []
Musashi007 has joined #ruby
xkickflip has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
howdoicomputer has quit [Ping timeout: 252 seconds]
kfpratt has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jhack has joined #ruby
baweaver_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bungoman_ has joined #ruby
quazimodo has joined #ruby
quazimod1 has joined #ruby
graydot has joined #ruby
monstordh has joined #ruby
jespada__ has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
BStheHD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
danzilio has quit [Ping timeout: 265 seconds]
bungoman has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
noethics has quit [Remote host closed the connection]
<monstordh> I'm a complete noob. Still trying to get my environment set up. Needing help. When I attempt to "invoke" (?) the guard listener I get an error. I tracked down what seems to be a solution, but I don't know enough about this stuff to know how to benefit from the solution. Here's what I found. Any help would be appreciated: https://github.com/guard/listen/issues/330
Thomas-0725 has joined #ruby
bungoman_ has quit [Ping timeout: 248 seconds]
Thomas-0725 has quit [Client Quit]
Thomas-0725 has joined #ruby
bigkevmcd has joined #ruby
hj2007 has joined #ruby
[k- has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
arturmartins has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
Ox0dea has joined #ruby
ndrei has joined #ruby
<Ox0dea> monstordh: You get an error, or you get the warning described in that issue?
finisherr has joined #ruby
_ht has quit [Quit: Konversation terminated!]
graydot has quit [Quit: graydot]
intinig has quit [Remote host closed the connection]
baweaver_ has quit [Remote host closed the connection]
graydot has joined #ruby
intinig has joined #ruby
rcvalle has quit [Quit: rcvalle]
wldcordeiro has joined #ruby
marr has quit []
renderful has quit [Remote host closed the connection]