apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
adriancb has quit [Remote host closed the connection]
<shevy> hehe
<shevy> well
<shevy> I am sure there are some patterns
<wasamasa> I bet you don't even need ruby to solve that one
<shevy> like where 15 is an important number
<wasamasa> no, just ruthless analysis should get you far enough
<shevy> divisble by 1,3,5
<shevy> but 15 is out of the question
<shevy> because it is not divisible by 2, so we must take equals of 15, so 30
<XxionxX> wasamasa: but that isn't the point! The point is to make it in Ruby
jeanlinux has joined #ruby
<shevy> so 30 is divisible by 1,2,3,5,6,10
<wasamasa> XxionxX: nope, you can still become a better programmer by improving your maths/logic skills
<shevy> so 4 7 and 8 are still missing
<wasamasa> XxionxX: it's all fine
<shevy> so it must be 120 at least so we include 4
<wasamasa> XxionxX: in fact, you'll very likely need to do this to write up an efficient solution in ruby
<shevy> so we now have 1,2,3,4,5,6,8
<shevy> and 10
<shevy> so we only lack 7 and 9
zen_ has joined #ruby
<XxionxX> wasamasa: I am in precalc, I have plenty of math skills and no programming skills. Math is easy, programming it in a new language not so much
Guest64 has joined #ruby
Menorah has joined #ruby
<shevy> if math is easy then what is the algorithm?
<shevy> if you know the algorithm, programming is easy
DrCode has quit [Ping timeout: 250 seconds]
<wasamasa> pah, you're forgetting about data structures
<XxionxX> :/ I don't understand to implement algorithms
_pudding has quit [Ping timeout: 246 seconds]
davedev2_ has joined #ruby
<wasamasa> XxionxX: then you don't understand enough maths yet :P
<XxionxX> Like I said, I am new to programming
<wasamasa> since all you've done so far seems to be textbook exercises
davedev24_ has quit [Ping timeout: 258 seconds]
jeanlinux has quit [Ping timeout: 258 seconds]
<XxionxX> ok im bad at math, ill use my bad math to explore ruby.
<shevy> http://pastie.org/9797886 so this gives us an array with [2520]
<XxionxX> you win
doodlehaus has joined #ruby
<XxionxX> im here to program, thanks
<shevy> now the next step would be to eliminate of the variable-named arrays
DrCode has joined #ruby
jaequery has quit [Ping timeout: 258 seconds]
commmmodo has joined #ruby
<pipework> XxionxX: Anways, I hope you're having fun.
pu22l3r has joined #ruby
* wasamasa is off to work on SICP
insaneinside has joined #ruby
<wasamasa> much more fun than project euler anyways
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> wasamasa: It's fun to go through that book over and over as the years wear on.
<pipework> Bit if it's your first time, I'm jealous.
DLSteve has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
<wasamasa> well, not really
zen_ has quit [Ping timeout: 245 seconds]
<wasamasa> I'm still mad at my instructor from years ago who took bits from HTDP and SICP and somehow made a shitty scheme lecture from that
<wasamasa> my takeaway from that was actually understanding recursion and what parsing means
<pipework> The different kinds of recursion are fin
<pipework> .fun too.
<wasamasa> so, I hope that this time, armed with enough practical knowledge of a lesser lisp dialect I know from hacking on a certain text editor, it will be a lot more fun
<pipework> Just visualizing stackframes becomes pretty
jaequery has joined #ruby
charliesome has joined #ruby
nickjj has quit [Quit: WeeChat 1.0.1]
spider-mario has quit [Remote host closed the connection]
<insaneinside> question for y'all: what does Rake offer that GNU Make doesn't? Is there a reason (apart from conformity) to use it?
<pipework> insaneinside: Ruby.
doodlehaus has quit [Ping timeout: 252 seconds]
<wasamasa> ^
<insaneinside> SHELL:=ruby
<insaneinside> ...
<insaneinside> Nope. Next.
<pipework> That's literally it.
<wasamasa> you don't have to figure out make's idiotic syntax for anything more complicated than its regular rules
<pipework> You get all the power of ruby in a rake DSL
<pipework> Them lambdas, bruh
kiyote23 has joined #ruby
Takle has quit [Remote host closed the connection]
<pipework> The google can tell you more.
Menorah has quit [Quit: This computer has gone to sleep]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Ping timeout: 265 seconds]
commmmodo has quit [Quit: commmmodo]
sevvie has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
maestrojed has joined #ruby
jaequery has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
comm64 has quit [Ping timeout: 256 seconds]
comm64 has joined #ruby
sevvie has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
commmmodo has joined #ruby
porfa has joined #ruby
jaequery has quit [Ping timeout: 250 seconds]
<insaneinside> I asked it `why use rake`; the answers (https://www.google.com/search?q=why+use+rake) appear to tell me *how* to use rake.
commmmodo has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
MrIlyas has quit [Read error: Connection reset by peer]
kiyote23 has quit [Ping timeout: 258 seconds]
commmmodo has joined #ruby
Stalkr_ has joined #ruby
<pipework> I see lots of articles on why rake is great.
<insaneinside> mm, because we need MOAR CODE EVERYWHERE?
<pipework> Please remember that there are other links besides the top result.
<insaneinside> mhm.
x1337807x has joined #ruby
<pipework> If you don't want to use it, don't.
oo_ has joined #ruby
<pipework> Absolutely everyone will continue to not care. But there's sufficient articles on the internet that explain why rake is fantastic.
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<insaneinside> pipework: my google-fu fails today, apparently. Mind sharing a link?
<waxjar> there are a few (free) screencasts by avdii grim that explain some neat features of rake
mary5030 has joined #ruby
soulcake has left #ruby ["Textual IRC Client: www.textualapp.com"]
<waxjar> i don't know any make though, so i don't know if you'll find them neat as well :p
<XxionxX> pipework: I was having a blast when I asked my question. I am less than enthused that someone considered it necessary to tell me I am bad at math because I am trying to learn in my own way and I. But whatever, it's the Internet. Thanks for being cool and asking.
tokik has joined #ruby
<pipework> XxionxX: I'm bad at math, but I hope you're having a good time. Ruby the language is pretty great, even if someone of the people who use it aren't.
<XxionxX> Yeah, I'm really liking Ruby
<insaneinside> pipework: thanks for the links, and i hope i'm not one of those people. :)
<XxionxX> I have tried to learn programming for years and failed with every language I've tried
<XxionxX> For some reason Ruby just clicked
<pipework> insaneinside: Rule synthesis and dependency prerequisites are awesome.
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
adriancb has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
pwnz0r has joined #ruby
<insaneinside> hmm.. how is rake multitask different from `make -j`?
Guest64 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
Scripore has quit [Ping timeout: 255 seconds]
Menorah has joined #ruby
cashnguns has joined #ruby
echooo has joined #ruby
<pipework> insaneinside: I think rake has support for -j
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<XxionxX> Ok, maybe this is a better question. Why does this: https://gist.github.com/XxionxX/4753e3ddabc8c452157f increment the 'ten' variable, and this: https://gist.github.com/XxionxX/a6a4736a2169da706018 keep setting 'ten' to 1 for each value in the array instead of incrementing it?
<pipework> XxionxX: Well, first, you write some confusing code. Let me give it a poke.
* insaneinside finds `if ten == 10` oddly disturbing...
<XxionxX> Sorry :(
<insaneinside> :)
Pattt has joined #ruby
iamninja has joined #ruby
<XxionxX> It's frustrating because I can see what is going wrong but not why
lkba has quit [Ping timeout: 255 seconds]
<nymous> just add some lines which output current variable values and see how it works
whyGaard has quit [Quit: Leaving...]
<XxionxX> I sick a pry binding in there and I can peek at it but I don't understand why it won't increment my variable like my first example
<XxionxX> As far as I can tell, it resets the variable to 0 for every item passed to it
maestrojed has quit [Quit: Computer has gone to sleep.]
<insaneinside> you mean within the loop?
<XxionxX> It's like it breaks our of the (1..10).each do |x|
<XxionxX> and sets the 'ten' variable back to 0
<insaneinside> let's take a step back. What question or problem are you trying to solve?
<nymous> very hard to give you advice just because it's unclear what this code is supposed to do
<insaneinside> i.e. what is the code supposed to do?
DadoCe has joined #ruby
<XxionxX> I'm trying to determine if my variable is divisible by the integers 1 through 10
comm64_ has joined #ruby
Azure has joined #ruby
<blizzy> can you post the code in context?
<comm64_> school me in __dir__
<blizzy> using pastebin?
commmmodo has quit [Quit: commmmodo]
<comm64_> please
arescorpio has joined #ruby
<comm64_> I'm looking at the docs but its not making much sense
<insaneinside> comm64_: I don't think you're making sense, unless you're asking what the variable `__dir__` is
commmmodo has joined #ruby
<comm64_> Returns the canonicalized absolute path of the directory of the file from which this method is called.
<XxionxX> I know it's bad code, I just want to understand why
<comm64_> The return value equals to File.dirname(File.realpath(__FILE__)).
<insaneinside> comm64_: idk, but in a pry session i'm getting __dir__ is ".". Absolute? Ha!
<blizzy> XxionxX, is the function checking if the number is even?
<pipework> XxionxX: What value should I pass to the method to get it to return true properly?
DadoCe has quit [Ping timeout: 264 seconds]
<comm64_> thats what the docs say
dorei has quit []
<insaneinside> the docs are inebriated, clearly.
<XxionxX> The method SUPPOSED to check if the variable is divisible by all the integers 1 through 10
<pipework> insaneinside: pry fucks up those things.
<pipework> XxionxX: Yeah, but what number would pass that? I'm not a mathemagician
<pipework> comm64_: Is there anything hard to brian about what __dir__ does?
<insaneinside> XxionxX: *all*, as in every single one?
<XxionxX> it's supposed to break the while loop when it evaluates to true
<XxionxX> *when the method
<pipework> insaneinside: As long as those integers are between 1-10. He wants a predicate that says whether they'll all cleanly divide the provided value.
zen_ has joined #ruby
<comm64_> is there a function in ruby that will return the parent directory's path.
<insaneinside> def divisible_by_one_through_ten(x); (1..10).collect { |i| x % i == 0 }.all?; end
<insaneinside> ?
Stalkr_ has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
<pipework> comm64_: There are no functions in ruby.
<XxionxX> insaneinside: that looks like exactly what I am trying to do
<comm64_> is there a method in ruby that will return the parent directory's path.
<pipework> There's methods, and you can use a couple of them to get the directory of current file and then get the parent that way.
<pipework> Look in FileUtil, Dir, File, and the like.
<havenwood> comm64_: For example stuff like: Pathname(Dir.pwd).parent
<insaneinside> XxionxX: Ruby likes to bruteforce things. But Ruby's idea of brute force is rather diminuitive.
allcentury has quit [Read error: No route to host]
<insaneinside> (i.e., compact and pretty)
ixti has joined #ruby
<havenwood> XxionxX: ten isn't incrementing because if the modulo is zero, it'll increment one then always return false: https://gist.github.com/XxionxX/b12fa8f440ca3a95539d#file-broken_test-rb-L10
zen_ has quit [Ping timeout: 252 seconds]
<XxionxX> insaneinside: what does '.all?" do? I haven't seen that yet.
<havenwood> XxionxX: There's no chance for it to go to the next iteration, under any circumstance.
<blizzy> XxionxX, this works also.
<blizzy> (1..10).reject { |x| 2520 % x != 0 }.length == 10
<insaneinside> XxionxX: checks that all values evaluate to true
<blizzy> well, substitute the 2520 for the argument.
<pipework> >> ->(x) { (1..10).all? {|i| (x % i).zero? } }[2520]
<blizzy> >>4+4
<blizzy> oh.
<blizzy> > (1..10).reject { |x| 2520 % x != 0 }.length == 10
<blizzy> hmm.
<insaneinside> isn't there an evaluation bot in here?
<pipework> There was.
<pipework> eval-in__
<pipework> eval-in__: >> ->(x) { (1..10).all? {|i| (x % i).zero? } }[2520] => true
Neomex has quit [Quit: Leaving]
<XxionxX> heavenwood: so it's only trying to divide each integer one time and then bailing?
<blizzy> thanks to XxionxX, I'm going to make a script to find the smallest number.
<pipework> blizzy: 2520, I think.
Stalkr_ has joined #ruby
<havenwood> XxionxX: it's checking the modulo is zero, if it isn't it returns false, if it is it increments ten once then returns false.
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
<blizzy> true, I just wanted to see if I could script it, pipework. :P
<insaneinside> XxionxX: well, every integral number is divisible by 1, which is the first one you choose
nicolastarzia has joined #ruby
<pipework> (1..9999).find {|number| ->(x) { (1..10).all? {|i| (x % i).zero? } }[number]}
<XxionxX> heavenwood: OH! I get it now!
<XxionxX> That is exactly what I was asking!
<XxionxX> Thank you so much!
<XxionxX> Now I see what I did!
<XxionxX> That was bugging me to no end!
zakiazig_ has joined #ruby
Takle has joined #ruby
echooo has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
echooo has joined #ruby
<pipework> blizzy: (1..9999).find {|x| (1..10).all? {|i| (x % i).zero? } }
<blizzy> thanks, pipework.
<comm64_> what I'm trying to do is load a file from the same dir the running script is in
<XxionxX> You guys are the best!
<pipework> comm64_: require File.expand_path('file_name', __FILE__)
yeticry has joined #ruby
nicolastarzia has quit [Ping timeout: 256 seconds]
<comm64_> why not .... load Dir.getwd + 'foo.bar'
<insaneinside> pipework, comm64_: no no no
<insaneinside> pipework, comm64_: require_relative 'file'
<pipework> insaneinside: Mmph, not a fan.
<insaneinside> ;)
<insaneinside> pipework: why not? Still use 1.8?
Takle has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 250 seconds]
<pipework> insaneinside: There's nothing wrong with require_relative, but the horrors I've seen because inexperienced people went nuts using require_relative to require files relative to their code when the thing they wanted to require was already in $:
<pipework> comm64_: File.expand_path('../file_name', __FILE__)
<pipework> require over load if you don't want it to reload the file into the runtime, require only loads a file once.
robustus|Off has joined #ruby
robustus|Off is now known as robustus
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<comm64_> pipework: thank you
despai has joined #ruby
<pipework> comm64_: You can also optionally add that directory to $LOAD_PATH if you should like.
<pipework> Or a parent directory.
kiyote23 has joined #ruby
<blizzy> pipework, this is a shorter way.
yeticry has quit [Remote host closed the connection]
<blizzy> (1..9999).find {|x| (1..10).all? { |i| x % i == 0} }
<pipework> blizzy: In what, bytes?
<blizzy> IDK. :L
<blizzy> well, by text.
<pipework> I prefer #eql? over ==
<insaneinside> comm64_: don't modify $LOAD_PATH in a library! It's bad manners. Unless your name is RubyGems.
<pipework> I also like #zero?
<blizzy> oh, thanks and sorry, pipework.
<pipework> insaneinside: In development?
zakiazig_ has left #ruby [#ruby]
<insaneinside> pipework: what are we developing?
<pipework> If it's not going to be distributed, modify $: all you want.
<havenwood> 1.upto(Float::INFINITY).find { |n| 1.upto(10).all? { |i| n.modulo(i).zero? } }
<insaneinside> oh, yeah
<pipework> insaneinside: Probably rubbish
<insaneinside> yay!
michael_lee has joined #ruby
<blizzy> so, (1..9999).find {|x| (1..10).all? { |i| x % i == 0} } checks 1 through 9999 to see if it is divisible by 1 through 10. first one to return true is the answer.
<blizzy> right?
<pipework> havenwood: Nice.
<blizzy> havenwood, nice.
<pipework> blizzy: Sorta, it only enumerates the part of the range it's using, I believe.
<blizzy> oh ok, pipework.
<pipework> But stops as soon as the block returns true for the find.
pu22l3r has quit [Remote host closed the connection]
<blizzy> oh ok.
<blizzy> so many different functions in ruby.
<pipework> havenwood: What about negative infinity to infinity for the range?
<pipework> blizzy: methods, not functions.
<blizzy> methods, thanks again, pipework.
<havenwood> pipework: :O
<pipework> havenwood: If you're feeling a little chilly, that is.
<blizzy> I wonder what's the shortest way to print hello world.
<pipework> Happy holidays, havenwood
<havenwood> pipework: Happy Holidays!
<pipework> blizzy: Ruby has a golf compilation flag for that.
<blizzy> so far, I think it's p 'hello world'
<shevy> blizzy depends. p'hello world'
rshetty has joined #ruby
<shevy> mine is shorter \o/
<blizzy> lol.
kiyote23 has quit [Ping timeout: 255 seconds]
<insaneinside> Harpy Howlidays!
<pipework> blizzy: ./goruby -e 'h'
TgMts has joined #ruby
<blizzy> pipework, nice.
<pipework> # => Hello, world!
<XxionxX> Feliz Navidad!
despai has quit [Quit: This computer has gone to sleep]
yeticry has joined #ruby
hamakn has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
<insaneinside> you have fleas?!
TgMts has quit [Client Quit]
yeticry has quit [Ping timeout: 240 seconds]
TgMts has joined #ruby
dts|pokeball has quit [Ping timeout: 265 seconds]
St_Marx has joined #ruby
devoldmx has joined #ruby
commmmodo has quit [Quit: commmmodo]
<shevy> what will you code for xmas
commmmodo has joined #ruby
<comm64_> pipework: say I set some variables as paths and I need to require a file using them
<pipework> comm64_: require is a method in ruby, it takes strings. Make it happen.
<insaneinside> comm64_: require File.join(mypath, myfile)
<XxionxX> lol, I've decided I really need to work harder on understanding methods XD
<XxionxX> I can read them but I can't write them worth beans XD
<insaneinside> so write lots of them.
<XxionxX> I plan on it!
lw has joined #ruby
<XxionxX> Ruby gave me a toehold on this programming thing, you can't stop me now!
<insaneinside> that's the right attitude!
<blizzy> can you guys beat this to see if a string is a panagram?
lw has quit [Client Quit]
<blizzy> *pangram.
michael_lee has quit [Ping timeout: 256 seconds]
<insaneinside> nope, prolly not
charliesome has quit [Quit: zzz]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aurumzx has quit [Remote host closed the connection]
msmith has joined #ruby
pu22l3r has joined #ruby
<pipework> "string".chars.uniq.length.eql?(26)
<blizzy> nice.
<insaneinside> pipework: false.
<pipework> insaneinside: how?
<insaneinside> try removing the quotes. ;)
bonhoeffer has joined #ruby
<pipework> insaneinside: That's the whole point, you call it on a string.
<pipework> the example obviously returns false.
<blizzy> also.
<blizzy> you gotta use chars.to_a
<pipework> It won't work for any typeable character either.
<pipework> No you don't.
tus has quit [Ping timeout: 258 seconds]
<blizzy> NoMethodError: undefined method `uniq' for #<Enumerator: "string":chars>
<pipework> Works here.
<blizzy> oh.
dts|pokeball has joined #ruby
<pipework> "abcdefghijklmonpqrstuvwxyz".chars.uniq.length.eql?(26) # => true
msmith has quit [Ping timeout: 258 seconds]
<pipework> However, this doesn't actually check that they are characters from a-z
Scripore has joined #ruby
FooMunki has quit [Quit: FooMunki]
sevvie has quit [Ping timeout: 252 seconds]
commmmodo has quit [Quit: commmmodo]
tus has joined #ruby
djbkd has joined #ruby
commmmodo has joined #ruby
hamakn has quit [Remote host closed the connection]
yeticry has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
sevvie has joined #ruby
shuber_ has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Narzew has quit [Remote host closed the connection]
<shevy> anyone remembers
<shevy> I can make an object unique
<shevy> through include Singleton? or was it some other way?
bonhoeffer has quit [Quit: bonhoeffer]
Stalkr_ has quit [Quit: Leaving...]
AndyBotwin has joined #ruby
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
<shevy> hmmmm
apeiros_ has quit [Remote host closed the connection]
patrickholmes has quit [Ping timeout: 240 seconds]
zen_ has joined #ruby
apeiros_ has joined #ruby
kiyote23 has joined #ruby
kiyote23_ has joined #ruby
kiyote23 has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
<comm64_> does ruby have builtin error handling like php's error_reporting?
<pipework> comm64_: I don't know what error_reporting is, but you should master google.
<comm64_> I know
yeticry has joined #ruby
<comm64_> thats why I'm asking here because I cannot find the answer elsewhere
porfa has quit [Quit: porfa]
<comm64_> I see a lot of gems
mloveless has quit []
zen_ has quit [Ping timeout: 256 seconds]
pika_pika has joined #ruby
adamski2600 has joined #ruby
Synchunk has quit [Read error: Connection reset by peer]
kiyote23_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy> comm64 exception handling
kiyote23 has joined #ruby
Synchunk has joined #ruby
<shevy> you can rescue the exception and you get the stack trace
<shevy> I don't know what php's error_reporting does either
<insaneinside> it's a global "log any errors to a specified file" directive in .htaccess, IIRC
fenzil has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
yeticry has quit [Remote host closed the connection]
<adamski2600> puts "Merry Christmas all :)"
<shevy> aha
goshdarnyou is now known as goshkwanzaayou
tombroomfield has joined #ruby
<shevy> comm64_ this would sound like Logger then I think. http://www.ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html
yeticry has joined #ruby
deryl has joined #ruby
<comm64_> shevy: thank you
`bazhang has joined #ruby
djbkd has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
djbkd has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
tombroomfield has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby
virtualize has joined #ruby
sevvie has joined #ruby
hamakn has joined #ruby
Synchunk has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
oo_ has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
triple_b has joined #ruby
rshetty has quit [Remote host closed the connection]
banister has joined #ruby
nisstyre is now known as nisscrooge
rshetty has joined #ruby
tombroomfield has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby
oo_ has joined #ruby
yfeldblum has joined #ruby
Scripore has quit []
Deele has quit [Ping timeout: 244 seconds]
sevvie has quit [Read error: Connection reset by peer]
banister has quit [Read error: Connection reset by peer]
zorak8 has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
adamski2600 has quit []
davedev2_ has quit [Ping timeout: 258 seconds]
sevvie has joined #ruby
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
kapil__ has joined #ruby
jdj_dk has joined #ruby
pu22l3r has quit [Remote host closed the connection]
porfa has joined #ruby
kiyote23 has quit [Remote host closed the connection]
bashusr has quit [Ping timeout: 240 seconds]
pwnz0r has quit [Remote host closed the connection]
porfa has quit [Client Quit]
davedev24_ has quit [Ping timeout: 258 seconds]
Pattt has quit [Ping timeout: 256 seconds]
deryl has quit [Ping timeout: 244 seconds]
Crazy_Atheist has joined #ruby
msmith has joined #ruby
deryl has joined #ruby
davedev24_ has joined #ruby
bashusr has joined #ruby
msmith has quit [Ping timeout: 265 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle has joined #ruby
rshetty has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
kiyote23 has joined #ruby
Soda has joined #ruby
adriancb has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
adriancb has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
s00pcan_ has joined #ruby
tyll_ has quit [Ping timeout: 245 seconds]
frem has joined #ruby
Jet4Fire has joined #ruby
kiyote23 has quit [Remote host closed the connection]
tyll has joined #ruby
windowlicker has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zen_ has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
Synchunk has joined #ruby
s00pcan_ has joined #ruby
<shevy> comm64_ you have been programming before ruby?
kiyote23 has joined #ruby
sevvie has joined #ruby
Guest64 has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
zen_ has quit [Ping timeout: 252 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
<comm64_> yes
<comm64_> shevy: yes
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
radic has quit [Ping timeout: 245 seconds]
adriancb has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
shuber_ has quit [Remote host closed the connection]
adriancb has joined #ruby
tombroomfield has quit [Ping timeout: 256 seconds]
radic has joined #ruby
ajaiswal has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elfuego has joined #ruby
Blackhol_ has quit []
yeticry has quit [Ping timeout: 245 seconds]
<shevy> ah I remember
<shevy> you wrote php
fourthousandsix has quit [Remote host closed the connection]
<shevy> I didn't look at the backscroll when I click-activated this tab in xchat again
kiyote23 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 244 seconds]
cashnguns has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
kiyote23 has joined #ruby
ninjazach has joined #ruby
rylev has joined #ruby
Guest64 has joined #ruby
yeticry has joined #ruby
lemur has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 256 seconds]
kiyote23 has quit [Remote host closed the connection]
lemur has joined #ruby
michaeldeol has joined #ruby
adriancb has joined #ruby
clearlake has joined #ruby
kiyote23 has joined #ruby
oo_ has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 250 seconds]
Dopagod has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 264 seconds]
tombroomfield has joined #ruby
greenride has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
adriancb has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
startupality has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
kiyote23 has quit [Remote host closed the connection]
tombroomfield has quit [Ping timeout: 255 seconds]
cashnguns has joined #ruby
sevvie has joined #ruby
delianides has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
delianides has quit [Remote host closed the connection]
tus has quit []
ninjazach is now known as systemd-borg
adriancb has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
claptor has quit [Quit: this channel is bakas]
Rapier- has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
deryl has left #ruby [#ruby]
deryl has joined #ruby
deryl has quit [Client Quit]
deryl has joined #ruby
snowpeas has quit [Ping timeout: 252 seconds]
s00pcan_ has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
ARCADIVS has joined #ruby
oo_ has joined #ruby
fantazo has joined #ruby
systemd-borg has left #ruby ["tty0 has closed"]
bradcliffe has joined #ruby
Joufflu has joined #ruby
bradcliffe has quit [Client Quit]
giuseppesolinas has joined #ruby
bradcliffe has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
comm64_ has quit [Ping timeout: 255 seconds]
Menorah has joined #ruby
djbkd has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
Axy has quit [Read error: Connection reset by peer]
zen_ has joined #ruby
Menorah has quit [Client Quit]
bradcliffe has quit [Client Quit]
bradcliffe has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
Kabaka has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
djbkd has joined #ruby
bradcliffe has quit [Client Quit]
bradcliffe has joined #ruby
zen_ has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
banister has joined #ruby
shuber_ has joined #ruby
elfuego has quit [Quit: elfuego]
nicolastarzia has joined #ruby
fantazo has quit [Ping timeout: 258 seconds]
fantazo has joined #ruby
jack_rabbit has joined #ruby
Username374100 has joined #ruby
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
jack_rabbit has quit [Max SendQ exceeded]
snowpeas has joined #ruby
jack_rabbit has joined #ruby
yeticry has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has quit [Remote host closed the connection]
St_Marx has joined #ruby
arietis has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
yeticry has quit [Remote host closed the connection]
ninjazach has joined #ruby
arup_r has joined #ruby
startupality has quit [Quit: startupality]
sevvie has joined #ruby
s00pcan_ has joined #ruby
pwnz0r has joined #ruby
adriancb has quit [Remote host closed the connection]
lemur has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
devoldmx has joined #ruby
maletor has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
msmith has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
Guest64 has quit [Ping timeout: 244 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
msmith has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
lemur has quit [Remote host closed the connection]
rylev has joined #ruby
lemur has joined #ruby
comm64 has quit [Read error: Connection reset by peer]
proxie has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
virtualize has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
lemur_ has joined #ruby
lemur has quit [Read error: No route to host]
Takle has joined #ruby
rylev has quit [Ping timeout: 258 seconds]
sevvie has joined #ruby
Username374100 has quit [Ping timeout: 258 seconds]
msmith has joined #ruby
chipotle has joined #ruby
hamakn has quit [Ping timeout: 265 seconds]
Takle has quit [Ping timeout: 256 seconds]
msmith has quit [Ping timeout: 264 seconds]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
sevvie has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
<deryl> Merry Christmas to all! And a happy early New Year!
shuber_ has joined #ruby
sevvie has joined #ruby
hamakn has joined #ruby
Username374100 has joined #ruby
jeanlinux has joined #ruby
yeticry has quit [Remote host closed the connection]
msmith has joined #ruby
tejas-manohar has joined #ruby
pu22l3r has quit [Read error: No route to host]
<tejas-manohar> im trying to convert ms.js to ms.rb - https://github.com/guille/ms.js/blob/master/index.js
<tejas-manohar> does anyone know whats going on here? https://github.com/guille/ms.js/blob/master/index.js#L27
msmith has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
<tejas-manohar> nvm
<tejas-manohar> got it
<tejas-manohar> yo
pu22l3r has joined #ruby
<tejas-manohar> does anyone have a good resource on learning to write gems that are libraries not like CLIs or things that just print things
<tejas-manohar> im trying to rewrite https://github.com/guille/ms.js in rb as ms.rb
Mia has quit [Read error: Connection timed out]
zen_ has joined #ruby
arescorpio has quit [Excess Flood]
sevvie has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
it0a has quit [Ping timeout: 245 seconds]
<insaneinside> My two cents: if your goal is to learn, don't use someone else's project as a template -- you run the risk of copying their mistakes and learning their bad habits, without going through the process of thinking about why something should be written a particular way.
<insaneinside> Also, google-fu helps: http://guides.rubygems.org/make-your-own-gem/
Username374100 has quit [Ping timeout: 258 seconds]
<tejas-manohar> insaneinside: he's a good dev but the whole codebase is in js :P im porting it to ruby, i found that guide but it doens't seem to present a tutorial on writing a library like i am that presents a function that someone can require and use in their codebase
pu22l3r_ has joined #ruby
<tejas-manohar> insaneinside: additionally, any idea what would be a good way to represent ms(60000, { long: true }) in ruby instead of js? should i take in { long: true } as a hash? how would that look in a function call?
pu22l3r has quit [Remote host closed the connection]
zen_ has quit [Ping timeout: 264 seconds]
cashnguns has quit [Remote host closed the connection]
spicerack has joined #ruby
s00pcan_ has quit [Ping timeout: 244 seconds]
spicerack has quit [Client Quit]
<insaneinside> well, I'll start by warning you that I'm terribly opinionated and talk too much.
spicerack has joined #ruby
bradcliffe has quit [Quit: Textual IRC Client: www.textualapp.com]
<tejas-manohar> insaneinside: np
<tejas-manohar> insaneinside: better than a quiet room :P
phutchins has joined #ruby
<insaneinside> My first reaction is: "Em-ess whowhat? We're talking about that Redmond company, right?" `ms` isn't a very descriptive method name unless the context in which it's used is *completely* time-related.
<tejas-manohar> insaneinside: yeah im just gonna stick to it since im porting a popular lib
parduse has quit [Remote host closed the connection]
bradcliffe has joined #ruby
<tejas-manohar> insaneinside: any idea where to get started w/ writing a gem like this? a resource online? also, would you recommend a hash for that software design question i asked earlier
<tejas-manohar> insaneinside: i don't wanna change most of what @guille did but i do want to make it ruby-like
wldcordeiro has quit [Remote host closed the connection]
parduse has joined #ruby
dseitz has joined #ruby
<insaneinside> that's one thing -- `ms` isn't very Ruby-like...
<tejas-manohar> insaneinside: ok i'll change it then... miliseconds?
<insaneinside> as far as the hash question goes, it ties to the fact that the API as presented does two very different (and related) things: (1) convert a textual description of a duration to a number, and (2) converts a number to a textual description of a duration.
russt has joined #ruby
bradcliffe has quit [Client Quit]
Brando753 has quit [Ping timeout: 250 seconds]
<insaneinside> My take might be to introduce [refinements](http://www.ruby-doc.org/core-2.1.5/doc/syntax/refinements_rdoc.html) to String and Integer that provide methods for converting each object type.
<insaneinside> (since in Ruby, of course, *everything* is an Object!)
<tejas-manohar> insaneinside: oh i really meant what to replace { long: true } with in ms(60000, { long: true }) to make it ruby-ish w/o losing the fact that it's two arguments since i'm doing a port :)
jack_rabbit has quit [Read error: Connection timed out]
<insaneinside> Heh. I'm not convincing you, am I?
<insaneinside> What's your goal here, learning experience or production of working code?
<insaneinside> *as in, for a job.
<tejas-manohar> insaneinside: well, no job because im still a few years from finishing high school lol -- but i do wanna port this library and then make some other gems by myself later where i'll explore just to learn
<tejas-manohar> insaneinside: but yeah i;'d want to make working code for this lib specifically
yfeldblu_ has joined #ruby
<tejas-manohar> insaneinside: not sure what you're convincing/not convingin me no, didn't hear any persuasion :P -- what's your suggestion for the second param?
<insaneinside> well, that was a bit of a false dichotomy -- i meant more "get it done" vs. "learn why this insane guy says it should be done a certain way"
Brando753 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<tejas-manohar> insaneinside: for this one, pull an allnighter, get it done, go back and learn why everything is why it is, reference this for future examples :)
frog0909_ has joined #ruby
shuber_ has quit [Remote host closed the connection]
<insaneinside> fair enough. I suppose we can't all be like me. :P
<tejas-manohar> insaneinside: where do you suggest learning to write a gem like this tho? i can at least get thru the basics by myself :P
<tejas-manohar> insaneinside: lol
shuber_ has joined #ruby
<tejas-manohar> insaneinside: starting is that hardest part for me, any really lightweight gems doing similar things im doing you know of? like writing a small function or two to make available to someone who requires the gem like ms.js module?
wildharvest has joined #ruby
<insaneinside> take a look at the "your first gem" (http://guides.rubygems.org/make-your-own-gem/#your-first-gem) section of that official guide I linked you to -- that's basically what you're talking about, no?
<insaneinside> Are you on a Linux or OS/X machine?
TgMts has quit [Ping timeout: 258 seconds]
frog0909 has quit [Ping timeout: 245 seconds]
<insaneinside> because I have no idea what Windows people do for gem development...
<tejas-manohar> insaneinside: OSX
<tejas-manohar> insaneinside: screw windows
redlegion has joined #ruby
Username374100 has joined #ruby
<insaneinside> Vaguely familiar with the command line?
<tejas-manohar> insaneinside:very
yeticry has joined #ruby
<insaneinside> okay, good
<tejas-manohar> insaneinside: lol so how do i make something like ms where you can just call ms(...) instead of ClassName.method after requiring the gem
<tejas-manohar> insaneinside: or i guess that's not very ruby-like now that i think about it?
<insaneinside> mhm.
<insaneinside> At the very least, put that method inside its own module
adriancb has joined #ruby
<tejas-manohar> insaneinside: yeah true because in node when u require a module you do var blah = require('ms') where i can do blah() but yeah not in ruby
<tejas-manohar> insaneinside: own module?
<tejas-manohar> insaneinside: i guess ill just go for the Mili.convert kinda feel
<insaneinside> e.g. module MyModule; def self.ms(x,y={}); end; end
<insaneinside> That sounds like a reasonable name
<insaneinside> (yours, that is)
<tejas-manohar> insaneinside: so w/ a module i'd still have to call MyModule.ms right?
<insaneinside> yes, but you can use `import MyModule` to import the contents into the local scope
<tejas-manohar> insaneinside: that said, is there any way to do it w/o a class that you know of? i guess i don't HAVE TO wrap my functions in a class do i ?
<tejas-manohar> insaneinside: ohhh ok
lemur_ has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 240 seconds]
Username374100 has quit [Ping timeout: 258 seconds]
<waxjar> tejas-manohar: the cleanest way is to use a module and make the methods you want to expose module functions
<tejas-manohar> insaneinside: you as in the dev using my library right? so like require 'ms_rb' (or mili or whatever) and then import Mili (or whatever its called)
lemur has joined #ruby
<waxjar> then you can just do include Mili and have ms available at top level, but only if you want
<insaneinside> ^^
<tejas-manohar> awesome
adriancb has quit [Ping timeout: 258 seconds]
<insaneinside> tejas-manohar: note that Module serves both as Ruby's concept of a namespace, and to support what we call "mixins"
<tejas-manohar> insaneinside: ohh mixins ok
<tejas-manohar> insaneinside: are these mixins anything similar to sass or js mixins w/ backbone
<insaneinside> Sass I've used a little and I'll tentatively say "yes"
<insaneinside> JS no clue.
redlegion_ has joined #ruby
lemur has quit [Ping timeout: 255 seconds]
<insaneinside> waxjar: module_function? Why'd you use that?
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has quit [Quit: leaving]
commmmodo has quit [Quit: commmmodo]
<waxjar> every method definition that follows will be available as both a private method and a class method
redlegion has quit [Ping timeout: 255 seconds]
sevvie has quit [Read error: Connection reset by peer]
<tejas-manohar> insaneinside: when i do require 'some_gem' im requiring it by the class or what? like i know the ruby gem's name doesn't have to match what im requiring but what does?
<insaneinside> tejas-manohar: file name, sans ".rb"
<tejas-manohar> o ok
<insaneinside> tejas-manohar: probably good to name the gem the same as the primary Ruby file, though.
<tejas-manohar> insaneinside: i guess so
<insaneinside> waxjar: well, that *would* avoid all the `self.` prefixes I've got lying around. When you say "private method", do you mean a private *class* method?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar> private instance method
<waxjar> it's how Kernel works as well, Kernel.puts is available, but puts is also available (privately) because it's mixed in
maletor has quit [Quit: Computer has gone to sleep.]
windowlicker has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
<insaneinside> erp. So the class method is public? And how is it useful to have a method be both class- and instance-d? Wouldn't that be running the same code in two very, *very* different contexts?
<tejas-manohar> insaneinside: so do i put everything in that module?
<insaneinside> tejas-manohar: everything? The methods, yes.
russt has quit [Quit: russt]
<tejas-manohar> insaneinside: yeah, i'd include things like https://github.com/guille/ms.js/blob/master/index.js#L5 just in there as class vars i suppose not under a method
<insaneinside> oh, yeah
<waxjar> insaneinside: yes. it's useful so you don't pollute the (global) namespace but have the option to for convenience
vinleod has joined #ruby
<insaneinside> waxjar: i'll assume, then, that the intended use-cases for such methods don't involve accessing/modifying any state variables.
<tejas-manohar> insaneinside: so you were saying a hash would be appropriate for the options or no? what would be closest to @guille's representation with things like { long: true } as an options argument https://github.com/guille/ms.js/blob/master/index.js#L5
<waxjar> ah, yeah. you'd want to avoid states in general though with Modules
<insaneinside> waxjar: except mixins sometimes use state... or am I doing it wrong?
<insaneinside> tejas-manohar: I'm thinking that you may want to either use separate method names, or use a different option key (e.g. `abbreviate`)
<tejas-manohar> insaneinside: can you expand on a different option key?
<insaneinside> e.g Milli.convert(6000, abbreviate: false)
<tejas-manohar> insaneinside: could just take a boolean in 2nd parameter so like ms('2 hrs', true) and true means long and if nothing passed we default to false
<insaneinside> because "abbreviate" is a directive, "long" is... well, it describes SOMEthing...
sevvie has quit [Read error: Connection reset by peer]
<tejas-manohar> insaneinside: or is that too implicit?
<waxjar> there's this quote that says a method that has a boolean flag as the last paramter is actually two methods
josephndenton has joined #ruby
<tejas-manohar> insaneinside: so are you saying pass in ms('2 hrs', 'abbreviate') or what data type as 2nd param?
<godd2> ah, the age olf problem of naming things
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<insaneinside> godd2: that's what programmers do. The rest of it is rarely very hard.
<waxjar> insaneinside: i don't think it's wrong per se, sometimes it's really useful.
<tejas-manohar> waxjar: ha maybe but is that a good idea to stray away from guille's practices when porting a module?
<godd2> You could also try abbr: true
lampd1 has quit []
<insaneinside> no no no, make all the words long
<insaneinside> debreviate everything!
<godd2> philosophicalismology
rshetty has quit [Remote host closed the connection]
zen_ has joined #ruby
<insaneinside> tejas-manohar: as waxjar points out, this really *is* two versions of the same method -- or, at least, one method that uses one of two sets of strings for describing each duration.
bluOxigen has joined #ruby
<godd2> Well if you believe Rich Hickey, then you should use abbr: true or abbreviate: true or something with a keyword to denote what exactly that "true" thing is doing.
<godd2> Your future self will thank you that you gave yourself some useful information
<waxjar> convert, btw, bit ambiguous as well :p
<insaneinside> godd2: trololololollllll....
<insaneinside> waxjar: at least it's a verb.
<tejas-manohar> lol
josephndenton has quit [Ping timeout: 240 seconds]
<tejas-manohar> ok im gonna split it up into two different methods
inukshuk has joined #ruby
jamo_ has joined #ruby
<tejas-manohar> waxjar: convert_ms_short and convert_ms_long ?
cjk101010 has joined #ruby
Leaf_Runner has joined #ruby
Leaf_Runner has quit [Client Quit]
<tejas-manohar> waxjar: ^ actually ms and ms_long is better imo
<insaneinside> Programmers are good at exactly <N> things, among them arguing about insignificant details, forgetting about not-so-insignificant-details, and naming things in the most confusing way possible.
ishikawa has quit [Ping timeout: 250 seconds]
<tejas-manohar> lol
<waxjar> something like Milli.in_words(600), Milli.in_words_abbreviated(600), Milli.in_milliseconds("6 days")?
<insaneinside> tejas-manohar: see, what you're doing is *thinking* about it. That's great! Eventually you'll become just as opinionated as the rest of us, and hopefully you'll have some experience that supports that. :)
ishikawa has joined #ruby
<waxjar> i don't like how that js module returns an Integer if its passed a String and vice versa
suffice has quit [Ping timeout: 256 seconds]
<waxjar> best to stick to one return type
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar> or as few as possible, anyway
oo_ has joined #ruby
suffice has joined #ruby
<tejas-manohar> waxjar; when i think about it ... i kinda agree lol
sevvie has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Menorah has joined #ruby
redlegion_ has quit [Quit: Leaving]
jenrzzz has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
Musashi007 has joined #ruby
sevvie has joined #ruby
nisscrooge has quit [Ping timeout: 265 seconds]
sevvie has quit [Read error: Connection reset by peer]
<insaneinside> tejas-manohar: since that js lib already has test specs, I'd strongly recommend you port those as well -- choose a test framework (my pref. is MiniTest) and convert away. I didn't get in the habit of doing formal testing until much too late, and I regret it.
josephndenton has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
msmith has joined #ruby
nisscrooge has joined #ruby
jeanlinux has joined #ruby
<insaneinside> tejas-manohar: you'd specifically want MiniTest::Spec (that's a Googlable word(s)) given the usage pattern in https://github.com/guille/ms.js/blob/master/test/test.js.
pu22l3r_ has quit [Read error: No route to host]
sevvie has joined #ruby
nisscrooge is now known as nisstyre
nisstyre has quit [Changing host]
nisstyre has joined #ruby
pu22l3r has joined #ruby
nisstyre is now known as nisscrooge
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
msmith has quit [Ping timeout: 240 seconds]
<tejas-manohar> insaneinside: sure
<insaneinside> tejas-manohar: or RSpec, or Cucumber (which is popular with the suit-wearing folks, I hear), or ... whatever else you think you might like.
bluOxigen has quit [Ping timeout: 240 seconds]
jeanlinux has quit [Ping timeout: 244 seconds]
cantonic has quit [Quit: cantonic]
<tejas-manohar> insaneinside: yeah ive used rspec so im gonna use that
<insaneinside> oh, cool
bluOxigen has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
sevvie has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
Channel6 has quit [Quit: Leaving]
Tranquility has joined #ruby
nicolastarzia has joined #ruby
pu22l3r has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
kenneth has joined #ruby
ozzloy has quit [Ping timeout: 250 seconds]
it0a has joined #ruby
ozzloy has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
jimmyhoughjr has quit [Ping timeout: 240 seconds]
zacts has quit [Quit: leaving]
sevvie has joined #ruby
Takle has joined #ruby
devoldmx33 has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
eka has joined #ruby
mengu has joined #ruby
kiyote23 has joined #ruby
psy_ has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
kiyote23 has quit [Ping timeout: 272 seconds]
<pontiki> there must be an easy implementation of doing an https request that includes basic auth
<pontiki> it's only a few lines in straight-up ruby
<pontiki> but still
<insaneinside> "basic auth" as in actually verifying the server's certificates?
<pontiki> http basic auth, with ssl, yes
comm64 has joined #ruby
<insaneinside> oh, okay. well, i haven't touched that stuff in recent memory, so never mind me...
<comm64> File.expand_path(__FILE__) + '/bob' and File.expand_path(__FILE__ + '/bob') return the same in irb...is there a preference to which form?
<pontiki> if that's the extent of it, not particularly
<comm64> I like the first better
<insaneinside> comm64: maybe File.expand_path(File.join(__FILE__, 'bob')) if you're doing cross-platform stuff...
<pontiki> that's what i prefer
<comm64> ah
<comm64> muchas gracias
Menorah has quit [Quit: This computer has gone to sleep]
<comm64> why would the other way cause problems
<insaneinside> Windows uses backslashes for directory separators
<comm64> oh yeah
GGMethos has joined #ruby
<pontiki> and someday someone will put ruby on OpenVMS :D
jrhe has joined #ruby
<comm64> so File.join('foo','bar','fizz','buzz') would => '/foo/bar/fizz/buzz' or '\foo\bar\fizz\buzz'
<insaneinside> or something else for more esoteric pathname conventions, yes
AFKGeek has joined #ruby
<comm64> interesting
fenzil has quit [Read error: Connection reset by peer]
Cork has quit [Quit: .]
AFKGeek has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
spicerack has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spicerack has quit [Client Quit]
<insaneinside> answer: apparently, Windows *always* accepted forward slash as a directory separator -- except on the command line.
sevvie has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdj_dk has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
oo_ has joined #ruby
psy has joined #ruby
oo_ has quit [Remote host closed the connection]
sevvie has joined #ruby
oo_ has joined #ruby
jeanlinux has joined #ruby
dts|pokeball has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
chinmay_dd has joined #ruby
unshadow has joined #ruby
yfeldblum has joined #ruby
sevenseacat has joined #ruby
comm64 has quit [Remote host closed the connection]
<unshadow> I'm looking for someone to join in on a very complex (paid) project, this includes working with low level implamentation of ruby and create a new librery from the grounds up, anyone knows where is the right place to look for such peoples ?
smook has joined #ruby
jeanlinux has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
jdj_dk has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
AndyBotwin has quit [Remote host closed the connection]
sevvie has joined #ruby
smook has quit [Quit: laters]
chinmay_dd_ has joined #ruby
SOLDIERz has joined #ruby
lemur has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
CustosL1men has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 245 seconds]
CustosL1men has joined #ruby
sevvie has joined #ruby
mengu has quit [Remote host closed the connection]
nisscrooge has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darryl__ has joined #ruby
yeticry has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Takle has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
sevvie has quit [Read error: Connection reset by peer]
mengu has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 245 seconds]
suffice has quit [Ping timeout: 264 seconds]
suffice has joined #ruby
sevvie has joined #ruby
kyb3r_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
oo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
oo_ has joined #ruby
PanzerModern has joined #ruby
vinleod has quit [Quit: Computer has gone to sleep.]
jdj_dk has quit [Ping timeout: 250 seconds]
greenride has left #ruby [#ruby]
nisscrooge has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nicolastarzia has joined #ruby
pu22l3r has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
jimmyhoughjr has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
nicolastarzia has quit [Ping timeout: 240 seconds]
bmichelsen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
jeanlinux has quit [Ping timeout: 245 seconds]
jeanlinux has joined #ruby
AmirolAhmad has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
pwnz0r has joined #ruby
jeanlinux has quit []
jdj_dk has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
shuber_ has quit [Remote host closed the connection]
dseitz has joined #ruby
charliesome has joined #ruby
rkalfane has joined #ruby
tkwd has joined #ruby
Phagus has joined #ruby
<Phagus> Is there a Ruby-based *nix shell yet?
sarkis has joined #ruby
tkwd has quit [Quit: leaving]
mengu has quit [Remote host closed the connection]
wildharvest has quit [Quit: Connection closed for inactivity]
<havenwood> Phagus: The creator of Ruby recently released a stream-based scripting language that would might make a lovely shell: https://github.com/matz/streem
<havenwood> unshadow: What kind of library?
<havenwood> unshadow: This might be the where but not the when.
<havenwood> Phagus: a prototype* i meant to say
<havenwood> would/might*
sevenseacat has quit [Remote host closed the connection]
tkwd has joined #ruby
<havenwood> Phagus: I'd love to see it become a viable option!
Tranquility has quit [Quit: Connection closed for inactivity]
x1337807x has joined #ruby
tkwd has left #ruby [#ruby]
<Phagus> havenwood: Yeah I was thinking. With all of these DSL things for Ruby, it seems like it's the future
<Phagus> Bash honestly sucks, I'd love to see Ruby take its place
pwnz0r has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 255 seconds]
lessless has joined #ruby
oo_ has quit [Remote host closed the connection]
rbrs has joined #ruby
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
oleo has joined #ruby
oleo__ has quit [Ping timeout: 240 seconds]
lolmaus has quit [Quit: Konversation terminated!]
hakunin_ is now known as hakunin
XxionxX has left #ruby [#ruby]
max96at|off is now known as max96at
chinmay_dd_ is now known as chinmay_dd
rkday has joined #ruby
<waxjar> Phagus: check out the fish shell, it has a sane scripting language but is still bash-like
<waxjar> not bash-compatible though, can sometimes be annoying
yfeldblum has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisscrooge has quit [Ping timeout: 245 seconds]
guardian has left #ruby ["WeeChat 1.0.1"]
suffice has quit [Ping timeout: 256 seconds]
suffice has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
phutchins has joined #ruby
hamakn has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
AmirolAhmad has quit [Remote host closed the connection]
AmirolAhmad has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
AmirolAhmad has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
AmirolAhmad has joined #ruby
SOLDIERz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frog|OFF is now known as green-big-frog
<Phagus> I've heard of Fish
lolmaus has joined #ruby
djbkd has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
pengin has joined #ruby
rkalfane has joined #ruby
chipotle has quit [Remote host closed the connection]
Phagus has quit [Quit: leaving]
kenneth has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
kenneth has quit [Client Quit]
<unshadow> havenwood, an SSH Server side implamentation in ruby
nisscrooge has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
Takle has joined #ruby
despai has joined #ruby
shuber_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
despai has quit [Client Quit]
echooo1 has joined #ruby
_pudding has joined #ruby
pengin has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 244 seconds]
lemur has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 240 seconds]
echooo has quit [Ping timeout: 244 seconds]
rkalfane has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
despai has joined #ruby
knikolov has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
rkalfane has joined #ruby
sarkis has joined #ruby
lemur has quit [Ping timeout: 256 seconds]
AmirolAhmad has joined #ruby
sarkis has quit [Ping timeout: 255 seconds]
claptor has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
AmirolAhmad has quit [Ping timeout: 265 seconds]
TgMts has joined #ruby
rkday has quit [Ping timeout: 256 seconds]
echooo has joined #ruby
cantonic has joined #ruby
echooo1 has quit [Ping timeout: 264 seconds]
rikai has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
nicolastarzia has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
spicerack has joined #ruby
rikai has joined #ruby
Akagi201 has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
echooo1 has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
mengu has quit [Remote host closed the connection]
spicerack has quit [Client Quit]
lolmaus has quit [Client Quit]
nicolastarzia has quit [Ping timeout: 255 seconds]
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
devoldmx33 has quit [Remote host closed the connection]
spider-mario has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
doritostains has joined #ruby
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
porfa has joined #ruby
porfa has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
<arup_r> waxjar: Did you use Sinatra ? I am facing problem in route matching..
hamakn_ has joined #ruby
<majeure> phagus, the bloated shell?
jenrzzz has quit [Ping timeout: 250 seconds]
claptor has quit [Quit: this channel is bakas]
Takle has joined #ruby
jenrzzz has joined #ruby
kenneth has joined #ruby
yfeldblum has joined #ruby
SOLDIERz has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
DLSteve has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
behrz has joined #ruby
green-big-frog is now known as frog|OFF
jmdade has joined #ruby
samfisher has quit [Ping timeout: 252 seconds]
rkday has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
josephndenton has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
zacts has joined #ruby
spicerack has joined #ruby
spicerack has quit [Client Quit]
josephndenton has quit [Ping timeout: 245 seconds]
santacat has quit [Ping timeout: 240 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
Snowstormer has joined #ruby
Snowstormer is now known as Guest15834
vvivv has joined #ruby
elaptics is now known as elaptics`away
lessless has joined #ruby
sarkis has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
frem has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
behrz has quit [Quit: Leaving]
behrz has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
sevvie has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby
behrz has quit [Ping timeout: 244 seconds]
supergeek has joined #ruby
sevvie has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
knikolov has quit [Ping timeout: 255 seconds]
sevvie has quit [Read error: Connection reset by peer]
knikolov has joined #ruby
sevvie has joined #ruby
claptor has joined #ruby
DLSteve has joined #ruby
DaniG2k has joined #ruby
charliesome has joined #ruby
commmmodo has joined #ruby
_pudding has quit [Ping timeout: 246 seconds]
wald0 has joined #ruby
<zenspider> I identify and have ops taken away? hah (why'd I have them in the first place?)
rshetty has joined #ruby
AmirolAhmad has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
Azure has joined #ruby
Jet4Fire has quit []
Takle__ has joined #ruby
thoughnut has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
ta has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle_ has quit [Ping timeout: 258 seconds]
Ulrike_Rayne is now known as Ulrike_Klaus
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
Cork has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tombroomfield has quit [Remote host closed the connection]
lessless has joined #ruby
Musashi007 has joined #ruby
shredding has joined #ruby
chinaski has joined #ruby
chinaski has quit [Client Quit]
rshetty has quit [Remote host closed the connection]
DLSteve has quit [Ping timeout: 258 seconds]
chinaski has joined #ruby
cantonic has joined #ruby
shuber_ has joined #ruby
chinaski is now known as chinaski2
shredding has quit [Client Quit]
chinaski2 has quit [Client Quit]
chinaski has joined #ruby
chinaski has quit [Client Quit]
chinaski has joined #ruby
chinaski has quit [Client Quit]
AmirolAhmad has quit [Ping timeout: 265 seconds]
DLSteve has joined #ruby
shuber_ has quit [Ping timeout: 245 seconds]
ragingcake has joined #ruby
yeticry has joined #ruby
AmirolAhmad has joined #ruby
supergeek has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
sevvie has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
Takle__ has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
<shevy> anyone knows of a simple html-tokenizer? in other words, feed it some HTML website, and analyze every content of it? I am in the process of writing some scripts to generate html fed into it but I'd need some way to parse the tokens first... I guess with StringScanner http://ruby-doc.org/stdlib-1.9.3/libdoc/strscan/rdoc/StringScanner.html it may be possible but it feels like a lot of work to start from scratch
Guest15834 is now known as santacat
santacat has quit [Changing host]
santacat has joined #ruby
<wasamasa> what's wrong with nokogiri?
rkday has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
AmirolAhmad has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
AmirolAhmad has joined #ruby
AmirolAh_ has joined #ruby
Flcn_ has joined #ruby
AmirolAhmad has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0/20141127111021]]
despai has quit [Quit: This computer has gone to sleep]
nicolastarzia has joined #ruby
despai has joined #ruby
ragingcake has quit [Quit: ragingcake]
sevvie has joined #ruby
startupality has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
AmirolAh_ has quit [Remote host closed the connection]
rkday has joined #ruby
AmirolAhmad has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
nicolastarzia has quit [Ping timeout: 258 seconds]
sevvie has joined #ruby
<shevy> you can get the whole parsetree with nokogiri?
<apeiros_> yes
<apeiros_> to get the tree you'd use the "normal" DOM parser: dom = Nokogiri.HTML(html)
Musashi007 has quit [Quit: Musashi007]
Takle has joined #ruby
AmirolAhmad has quit [Ping timeout: 244 seconds]
despai has quit [Quit: This computer has gone to sleep]
despai has joined #ruby
supergeek has joined #ruby
chinmay_dd has quit [Quit: Leaving]
coderhs has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<coderhs> Hi there. Congrats for launching Ruby 2.2.0 :) I was wondering how we can install ruby-2.2.0 via rvm as present rvm install ruby-2.2.0 is installing the preview1
despai has quit [Quit: This computer has gone to sleep]
supergeek has quit [Client Quit]
blizzy has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
Takle_ has joined #ruby
<shevy> ohhhh 2.2.0 is out?
rkday has quit [Ping timeout: 272 seconds]
<shevy> ohai
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.xz
unshadow has quit [Quit: leaving]
Takle has quit [Ping timeout: 258 seconds]
sevvie has quit [Read error: Connection reset by peer]
Beoran has quit [Ping timeout: 240 seconds]
impi0us has joined #ruby
sevvie has joined #ruby
<shevy> I shall test this beast
<apeiros_> coderhs: `rvm get stable` and then `rvm install 2.2`. but at the moment it doesn't work because http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.tar.bz2 times out :(
<shevy> that would not be the right URL
apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<coderhs> apeiros_ thanks for the info. :) Hope the url becomes stable soon
<shevy> Quite some size difference ... ruby-2.1.5.tar.xz 8,9M, ruby-2.2.0.tar.xz 9,9M
<Hanmac> apeiros_: i rtryed to intalll it with rvm install and i got http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.tar.bz2 "404 Not Found"
<shevy> why don't you guys use ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.bz2
<Hanmac> shevy because i am now using rvm (because rwx didnt worked with ruby head recently)
<coderhs> shevy: I already use RVM to manage the ruby versions and gem sets so don't want to populate the system :D
<shevy> hanmac ewww rwx won't work on 2.2.x? :(
elfuego has joined #ruby
<apeiros_> shevy: I'd have to see how/where rvm sets the url
<Hanmac> shevy: yes because i kicked and anoyed some buts and rwx should work with 2.2 release
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> some butts
<shevy> you mean one dude? :-)
<shevy> soon done! Generating RI format into /Depot/Temp/ruby-2.2.0/BUILD/.ext/rdoc...
byprdct has joined #ruby
<shevy> is this here new? "installing default gems: "
<shevy> I don't recall ruby installing some gems before... hmmm curious
byprdct has quit [Max SendQ exceeded]
<coderhs> when i try to install 'rvm install ruby-2.2.0' its going to download the ruby 2.2.0-preview2
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
<Hanmac> coderhs: seems rvm is not updated to install the 2.2.0 release, hm maybe try again tomorrow or something
<shevy> uninitialized constant Syck::ENGINE
Stalkr_ has joined #ruby
<crome> Im Syck of you having the same issue over and over again
<apeiros_> coderhs: for the moment, you can use `rvm install ruby-head`
ItSANgo has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
<shevy> crome lol
behrz has joined #ruby
lessless has joined #ruby
despai has joined #ruby
uber_hulk has joined #ruby
Beoran has joined #ruby
despai has quit [Client Quit]
behrz has quit [Remote host closed the connection]
<coderhs> apeiros: i edited the ~/.rvm/config/db remove patch level part of ruby-2.2.0 and after that i ran rum install ruby-2.2.0
<coderhs> its installing now :)
behrz has joined #ruby
<apeiros_> good idea
behrz has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
<coderhs> I think i will create a pull request for it, i believe thats the accurate step looking at the previous commits of rvm
behrz has joined #ruby
sarkis has joined #ruby
startupality has quit [Quit: startupality]
sarkis has quit [Changing host]
sarkis has joined #ruby
<arup_r> Any body reading POODR ?
Takle_ has quit [Ping timeout: 256 seconds]
sarkis has quit [Ping timeout: 258 seconds]
phutchins has joined #ruby
tyll has left #ruby [#ruby]
Takle has joined #ruby
DaniG2k has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 272 seconds]
ItSANgo has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<shevy> you and your poodle
dtordable has joined #ruby
FooMunki has joined #ruby
<insaneinside> My Little Poodle: the next big hit for television audiences of all ages...
sevvie has joined #ruby
AmirolAhmad has joined #ruby
insaneinside has left #ruby ["oh, i guess 5am *is* a good time to go to bed..."]
<coderhs> apeiros_ my pull request has been merged :) now we can do `rvm get stable` and do `rum install ruby-2.2.0` to get the latest version of ruby
<Hanmac> coderhs: curse you i wanted to type that at the moment! ;P
clarkk has joined #ruby
<coderhs> hanmac: better luck next time :D :P
AndyBotwin has joined #ruby
<clarkk> Merry Christmas all, or happy 25th of December for the grumpy ones who shun this festival :)
<shevy> you gotten slow hanmac
noop has joined #ruby
AmirolAhmad has quit [Ping timeout: 265 seconds]
sevvie has quit [Ping timeout: 272 seconds]
nfk has joined #ruby
lolmaus has joined #ruby
sevvie has joined #ruby
AmirolAhmad has joined #ruby
<clarkk> I have ruby installed on ubuntu, and I'm trying to understand the installation directory structure. I have ruby folders in ~/.rvm/gems/, for instance ruby-2.1.2 which is a regular folder, and ruby-2.1.2@global which is a shortcut to ~/.rvm/rubies/ruby-2.1.2/. Can someone explain why
<clarkk> this is, and whether I can get rid of one of them?
<dtordable> shevy: I don't have time
<shevy> dtordable yeah
yfeldblum has joined #ruby
impi0us has quit [Ping timeout: 256 seconds]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
sjohnsen has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
<Xeago> do any of you guys use concur for expense reports?
Crazy_Atheist has joined #ruby
Areessell has joined #ruby
Hobogrammer has quit [Ping timeout: 258 seconds]
behrz has quit [Remote host closed the connection]
<shevy> expensive reports?
behrz has joined #ruby
nickjj has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
russt has joined #ruby
ajaiswal has quit [Quit: Leaving]
Brando753 has quit [Ping timeout: 265 seconds]
kish has joined #ruby
russt has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
Brando753 has joined #ruby
wald0 has quit [Quit: Lost terminal]
i5um41ru has joined #ruby
<i5um41ru> [help] how to use ruby to connect to mysql server using dbi api?
clarkk has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
_5kg has joined #ruby
<dtordable> 1qç
nicolastarzia has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
nicolastarzia has quit [Ping timeout: 240 seconds]
bmichelsen has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
rylev has joined #ruby
sevvie has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
clarkk has joined #ruby
<clarkk> can someone please tell me what the 2.1.0 relates to in the path ~/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/ ?
CustosL1men has quit [Ping timeout: 244 seconds]
Abhijit has joined #ruby
<Hanmac> clarkk: ABI or API version?
<clarkk> hanmac: I'm afraid I don't know the difference
<clarkk> version of what? ruby, gem or rvm?
sevvie has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
blizzy has joined #ruby
Brando753 has quit [Ping timeout: 250 seconds]
Deele has joined #ruby
uber_hulk has quit [Quit: leaving]
<Hanmac> clarkk: ruby
frog|OFF is now known as green-big-frog
<Hanmac> its the api version if i remember correctly ... means stuff with 2.1.0 (should) also works with 2.1.4
sevvie has joined #ruby
behrz has quit [Ping timeout: 244 seconds]
Abhijit has quit [Ping timeout: 250 seconds]
nicolastarzia has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
i5um41ru has quit [Quit: Lost terminal]
sevvie has joined #ruby
rkday has joined #ruby
Brando753 has joined #ruby
rylev has quit [Remote host closed the connection]
pika_pika has joined #ruby
dorei has joined #ruby
lkba has joined #ruby
renderful has joined #ruby
<dtordable> pika_pika: pikachu?
sevvie has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 258 seconds]
nicolastarzia has quit [Remote host closed the connection]
Abhijit has joined #ruby
despai has joined #ruby
<shevy> clarkk they all relate to the C ABI version
<shevy> so 2.1.1 2.1.2 2.1.3 will use 2.1.0 such as you can see in this directory structure: /usr/lib/ruby/site_ruby/2.1.0/
shredding has joined #ruby
sarkis has joined #ruby
aswen has joined #ruby
<clarkk> ok, thank you. I don't really understand why I have the same packages in two places. For example, in ~/.rvm/gems/ruby-2.1.4/gems/ and ~/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/ I have bigdecimal-1.2.5 and many other duplications
<Xeago> clarkk: what this means is that something linked against the headers for ruby 2.1.x should work with any other version of that series without requiring linking it again
rylev has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
sevvie has joined #ruby
<Xeago> if you would ask me, ~/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/ contains the c component of the gem bigdecimal-1.2.5
<Xeago> whereas ~/.rvm/gems/ruby-2.1.4/gems/ contains the ruby component of that gem
<Xeago> ie, the extlib.rb iirc
<clarkk> ah, so both are required?
despai has joined #ruby
<clarkk> I mean, they aren't duplicates, so they are fine
<Xeago> do a find on both of them see how their directory sutrctures look
<clarkk> ok, I'm happy with that
rshetty has quit [Ping timeout: 245 seconds]
schfkt has joined #ruby
sarkis has quit [Ping timeout: 244 seconds]
<clarkk> you are right, Xeago. So would they both be installed automatically when I run gem install <pkg> ?
<Xeago> for third party gems I don't know
<Xeago> however this is a bundled component of plain ruby
<Xeago> I don't know at all, sorry
sevvie has quit [Read error: Connection reset by peer]
<Xeago> my former statement was at best a hunch
<Xeago> I'm glad it was correct :>
uber_hulk has joined #ruby
sevvie has joined #ruby
phutchins has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
shuber_ has joined #ruby
<clarkk> ok, I wonder if anyone else knows
hmsimha has quit [Ping timeout: 252 seconds]
<clarkk> also, I have bigdecimal (1.2.5, 1.2.4) installed, but I can't find any trace of version 1.2.4 installed on my whole system. I'd like to clean this up
<shevy> could be a default gem these days
<shevy> installing default gems: /usr/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications) bigdecimal 1.2.6
spicerack has joined #ruby
freerobby has joined #ruby
twistedpixels is now known as zz_twistedpixels
shuber_ has quit [Ping timeout: 272 seconds]
sevvie has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kith_ is now known as kith
despai has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 245 seconds]
green-big-frog is now known as frog|OFF
sevvie has joined #ruby
Brando753 has quit [Ping timeout: 265 seconds]
Brando753 has joined #ruby
elfuego has quit [Quit: elfuego]
sevvie has quit [Read error: Connection reset by peer]
noop has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
noop has joined #ruby
sevvie has joined #ruby
rkday has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
lkba has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
despai has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<clarkk> shevy: but why does that version show up when it's not installed
sevvie has joined #ruby
<clarkk> version 1.2.5 is installed fine
<shevy> clarkk probably you installed an earlier ruby version
adriancb has joined #ruby
<clarkk> I have uninstalled all other ruby versions now
<shevy> how
<clarkk> but I've searched the whole filesystem, and there is no mention of 1.2.4
coderhs has joined #ruby
<shevy> I am sure it must have had been installed on your system before
adriancb has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<shevy> I have bigdecimal (1.2.4)
<clarkk> it may have been. But why is it listed now, and how do I get rid of it?
zz_twistedpixels is now known as twistedpixels
chinmay_dd has joined #ruby
<shevy> I don't know why it is listed twice
<clarkk> I have found something related.... ~/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/specifications/default/bigdecimal-1.2.4.gemspec
<shevy> I only have bigdecimal (1.2.4)
St_Marx has quit [Remote host closed the connection]
Xeago has joined #ruby
St_Marx has joined #ruby
commmmodo has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
max96at is now known as max96at|off
Brando753 has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: My MBP went to sleep.]
rshetty has joined #ruby
FooMunki has quit [Quit: FooMunki]
commmmodo has quit [Client Quit]
rylev has quit [Remote host closed the connection]
agjacome has joined #ruby
shredding has joined #ruby
rylev_ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Brando753 has joined #ruby
CustosL1men has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
lxsameer has quit [Quit: Leaving]
decoponio has joined #ruby
kiyote23 has joined #ruby
sevvie has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Darryl__ has quit [Quit: Connection closed for inactivity]
josephndenton has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
rylev_ has quit [Remote host closed the connection]
zorak8 has joined #ruby
blizzy has joined #ruby
kiyote23 has joined #ruby
Takle_ has joined #ruby
danman has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
shuber_ has joined #ruby
s00pcan_ has joined #ruby
TgMts_ has joined #ruby
shredding has quit [Quit: shredding]
dorei has quit []
kiyote23 has quit [Remote host closed the connection]
TgMts has quit [Ping timeout: 255 seconds]
shuber_ has quit [Ping timeout: 250 seconds]
sevvie has quit [Read error: Connection reset by peer]
frog|OFF is now known as green-big-frog
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmichelsen has joined #ruby
DaniG2k has joined #ruby
Abhijit has quit [Quit: Leaving]
sevvie has joined #ruby
Flcn_ has quit [Quit: Be back later ...]
devdazed has joined #ruby
asmodlol has joined #ruby
Flcn_ has joined #ruby
charliesome has quit [Quit: zzz]
despai has quit [Quit: This computer has gone to sleep]
DaniG2k has quit [Ping timeout: 256 seconds]
Flcn_ has quit [Read error: Connection reset by peer]
Flcn_ has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
pu22l3r has joined #ruby
Techguy305 has joined #ruby
uber_hulk has quit [Quit: leaving]
yeticry has joined #ruby
AndyBotwin has quit [Quit: Leaving]
tus has joined #ruby
s00pcan_ has quit [Ping timeout: 240 seconds]
<arup_r> certainty: There?
likx has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
bmichelsen has quit [Quit: ZZZzzz…]
commmmodo has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
sevvie has quit [Read error: Connection reset by peer]
bmichelsen has joined #ruby
mengu has quit []
pu22l3r has quit [Remote host closed the connection]
likx has quit [Ping timeout: 256 seconds]
josephndenton has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
browndawg has joined #ruby
nicolastarzia has joined #ruby
shredding has joined #ruby
pu22l3r has joined #ruby
browndawg has left #ruby [#ruby]
despai has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
nicolastarzia has quit [Ping timeout: 258 seconds]
xenomorph is now known as {xenomorph}
VBlizzard has joined #ruby
sarkis has joined #ruby
pu22l3r has quit [Ping timeout: 256 seconds]
josephndenton has joined #ruby
{xenomorph} is now known as xenomorph
blizzy has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby
aswen has joined #ruby
AlSquire has joined #ruby
sarkis has quit [Ping timeout: 265 seconds]
DarthGandalf has quit [Quit: Bye]
chinmay_dd has quit [Quit: Leaving]
josephndenton has quit [Ping timeout: 272 seconds]
pika_pika has quit [Ping timeout: 258 seconds]
Areessell has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
josephndenton has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
chipotle has joined #ruby
adriancb has quit [Remote host closed the connection]
DaniG2k has joined #ruby
havenwood has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
gfawcettpq has joined #ruby
startupality has joined #ruby
CustosL1men has quit [Ping timeout: 255 seconds]
Rapier- has quit [Read error: Connection reset by peer]
rylev has joined #ruby
Hanmac has joined #ruby
Rapier- has joined #ruby
pawprint has joined #ruby
<pawprint> i just started learning ruby, and created this test program: http://okturing.com/src/2570/body
<pawprint> but when i run it, i get this error: "foo.rb:8: syntax error, unexpected keyword_end, expecting end-of-input"
<pawprint> what am i doing wrong?
yeticry has joined #ruby
Channel6 has joined #ruby
<havenwood> pawprint: change `Class` to `class` and `container` to `Container`
rylev has quit [Ping timeout: 250 seconds]
<pawprint> oops
<pawprint> ok.. now i get: "foo.rb:6:in `increment': undefined method `+' for nil:NilClass (NoMethodError)
<pawprint> from foo.rb:12:in `<main>'
<havenwood> pawprint: give `@x` an initial value
<havenwood> pawprint: you can't add `1` to `nil`
<pawprint> even if i give it an intial value, i get the same error
DarthGandalf has joined #ruby
<havenwood> pawprint: def initialize; @x = 0; end
<havenwood> pawprint: ^ initial value
<pawprint> oh, i need to put it in an initialize method
<pawprint> i see
<pawprint> yaya
<havenwood> Merry Christmas all!
<pawprint> thanks, havenwood
<havenwood> pawprint: you're welcome
<pawprint> now, why does ruby give such misleading errors?
<pawprint> though i guess the last one kind of makes sense when i think about it
msmith_ has joined #ruby
<havenwood> pawprint: in foo.rb, on line 6, in the increment method, you've called the `+` method on `nil` and it isn't defined
<pawprint> yeah, i get that now
<pawprint> make sense
yeticry has quit [Remote host closed the connection]
<pawprint> how about the "unexpected keyword_end, expecting end-of-input" ?
<havenwood> pawprint: that's not the first error: NameError: undefined local variable or method `container' for main:Object
<havenwood> pawprint: the error you're looking at means there was an unexpected `end`
anaeem1_ has joined #ruby
<pawprint> there wasn't any "NameError: undefined local variable or method `container' for main:Object"
<pawprint> not that i could see
shredding has quit [Quit: shredding]
davedev24_ has joined #ruby
<pawprint> that would have helped
Mia has quit [Read error: Connection reset by peer]
<pawprint> anyway, thank you for your help
ta has quit [Remote host closed the connection]
<havenwood> pawprint: Try running it in irb, you'll see the first line error before the second, and so on.
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<pawprint> ah, ok
<tejas-manohar> hey guys im porting ms.js to ms.rb - https://github.com/guille/ms.js
dts|pokeball has joined #ruby
<tejas-manohar> what is he trying to do here - ms(ms('10 hours'))
<tejas-manohar> why not just ms('10 hours')
<tejas-manohar> for this one as well im confused ms(ms('10 hours'), { long: true })
Techguy305 has quit [Remote host closed the connection]
TgMts_ has quit [Ping timeout: 258 seconds]
kith has quit [Remote host closed the connection]
exadeci has joined #ruby
kith has joined #ruby
rshetty has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
Jackneill has joined #ruby
<pawprint> so i guess a function called within an array initialization only gets called during the initialization, not every time the array element that it initialized is referenced
<havenwood> tejas-manohar: turn it to an int then back to a string
<havenwood> tejas-manohar: notice the input and output aren't the same, but they're both strings
<havenwood> tejas-manohar: i think you're just getting confused by the same function taking two different types and input and returning the opposite of what they take
<havenwood> pawprint: right
<havenwood> types as input*
<tejas-manohar> havenwood: yeah im porting this w/ three functions in_words, in_words_abbreviated, in_milliseconds its better that way
<arup_r> In this example- https://github.com/brynary/rack-test/blob/d798a3dafd1ae3c5a7156b5c2a8c88a704b07a2d/README.rdoc#examples I see one method #url .. Not able to find out where it has been written in lib code.. Any pointer
<arup_r> ?
AlexRussia has quit [Ping timeout: 245 seconds]
green-big-frog is now known as frog|OFF
<havenwood> arup_r: lib/rack/request.rb i'd imagine
AlexRussia has joined #ruby
<arup_r> I checked
<arup_r> didn't get
<arup_r> Ahh!! :(
<arup_r> I was searching it https://github.com/brynary/rack-test <~~ here
pawprint has left #ruby [#ruby]
<tejas-manohar> havenwood: so does https://github.com/tejasmanohar/ms.rb 's readme seem like it has the right examples given my updated method names?
<tejas-manohar> havenwood: waxjar was telling me about how 1 function should do 1 thing, dont wanna take in a boolean last argument because thats basically two functions
kiyote23 has joined #ruby
yeticry has quit [Remote host closed the connection]
pandaant has joined #ruby
rylev has joined #ruby
pandaant has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
<havenwood> tejas-manohar: it's at your discretion, but simple is good.
davedev2_ has joined #ruby
mxrguspxrt has joined #ruby
<tejas-manohar> havenwood: since im not too experienced, any feedback? be sure to refresh readme, i updated
rylev has quit [Ping timeout: 240 seconds]
commmmodo has quit [Quit: commmmodo]
davedev24_ has quit [Ping timeout: 255 seconds]
jeff-ooh has joined #ruby
Xeago has quit [Remote host closed the connection]
<havenwood> tejas-manohar: Much clearer what's going on that the original JavaScript. :)
Xeago has joined #ruby
<tejas-manohar> havenwood: ok great
<havenwood> than*
aswen has quit [Ping timeout: 245 seconds]
iamninja has quit [Quit: ZZZzzz…]
<tejas-manohar> havenwood: yeah understood, do i use bundler when im writing a gem? do i need to gitignore anything there? im trying to install minitest to write the test cases
<havenwood> tejas-manohar: You can use bundler to generate gem scaffolding, or there're other tools or you can do it manually.
sarkis has joined #ruby
<havenwood> tejas-manohar: generate the scaffolding and take a look: bundle gem ms
chinmay_dd has joined #ruby
<havenwood> tejas-manohar: Minitest is a nice option.
<tejas-manohar> havenwood: yeah ik about packaging it w/ bundle gem ms or bundle gem ms_rb moreover since ms is taken on rubygems :(
<tejas-manohar> havenwood: but should i use it to manage deps?
<tejas-manohar> havenwood: i do for my projects, not sure about gems -- like thru a Gemfile
<havenwood> tejas-manohar: The bundler generated scaffolding is pretty reasonable. It creates a gem that doesn't particularly have anything to do with bundler, it's very similar to what i'd make by hand.
DadoCe has joined #ruby
chipotle has quit [Quit: cheerio]
<havenwood> tejas-manohar: For gems, you do *not* commit the Gemfile.lock, so that goes in the .gitignore.
kiyote23 has quit [Remote host closed the connection]
<tejas-manohar> havenwood: ohh ok clarified
<havenwood> tejas-manohar: In the Gemfile you just have: source 'https://rubygems.org'; gemspec
<havenwood> tejas-manohar: The deps go in: ms.gemspec
<tejas-manohar> havenwod: oh ok
<havenwood> tejas-manohar: Take a look at what bundler generates: bundle gem ms
<tejas-manohar> havenwood: ms_rb right?
<havenwood> tejas-manohar: (from a temp file)
<tejas-manohar> havenwood: yeah
Xeago has quit [Ping timeout: 245 seconds]
rkalfane has joined #ruby
<havenwood> tejas-manohar: ah, ms_rb then
<havenwood> temp dir*
<tejas-manohar> havenwood: checking at output :)
<havenwood> I can't say anything right today, queue more coffee!
<tejas-manohar> havenwood: temp dir?
<havenwood> tejas-manohar: I just meant temp dir when i said temp file.
<havenwood> nvm
<tejas-manohar> havenwood: temp dir?
<havenwood> nevermind
<tejas-manohar> ok
sarkis has quit [Ping timeout: 244 seconds]
<tejas-manohar> havenwood: ill just gitignore the build dir
<arup_r> If I want to submit the same using browser, how to build this Curl command - curl -H "Content-Type: application/json" -d '{"description": "the description for this gist","public": true,"files": {"file1.txt": {"content": "String file contents"}}}' https://api.github.com/gists
* pontiki brings havenwood a hot pot of dunkin donuts coffee
<havenwood> tejas-manohar: Seems you have some discrepancy between `ms.rb`, `ms_rb`, `ms`, and `Miliseconds`
<havenwood> pontiki: \o/
<tejas-manohar> havenwood: checking
* pontiki brings over the eggnog for creamer
_Andres_ has joined #ruby
<havenwood> tejas-manohar: pick a name and uniformly use it for gem name, filenames and namespaces
_Andres has quit [Read error: No route to host]
<pontiki> anyone here use jeweler for gems?
msmith_ has joined #ruby
<havenwood> tejas-manohar: Milliseconds has two Ls
Synchunk has quit [Ping timeout: 240 seconds]
<tejas-manohar> havenwood: o
yeticry has joined #ruby
jenrzzz has joined #ruby
<tejas-manohar> havenwood: better? https://github.com/tejasmanohar/ms.rb
commmmodo has joined #ruby
<tejas-manohar> havenwood: gem will be named 'ms_rb" on rubygems, required via 'ms', and the module is Milliseconds
blizzy has joined #ruby
<tejas-manohar> havenwood: is that a bit confusing? :P
VBlizzard has quit [Ping timeout: 255 seconds]
dukedave_ has quit []
<havenwood> tejas-manohar: that's bad
dukedave_ has joined #ruby
<rpag> pontiki, i don't, i have seen tools like that decline in popularity recently
<havenwood> tejas-manohar: by convention the gem name should be the require should be the filename should be the namespace
<havenwood> tejas-manohar: all the same
chinmay_dd has quit [Ping timeout: 244 seconds]
<rpag> pontiki, while not perfect, 'bundle gem foo' is a good enough starting point most of the time for me, so i dont use hoe/jeweler/etc.
<tejas-manohar> havenwood: ok ill call it milli then all over? or ms_rb?
<havenwood> tejas-manohar: for example, a gem named `ms_rb` would be `require 'ms_rb'` of the file ms_rb/lib/ms_rb.rb
<pontiki> rpag: i haven't done anything but `bundler gem ..`
<havenwood> tejas-manohar: with the module `MsRb`
<rpag> same here, it usually gets me 70% of the way there
<rpag> the other 30% is annoying to do everytime though
<tejas-manohar> havenwood: lol ok seems fixed now https://github.com/tejasmanohar/ms.rb
yeticry has quit [Ping timeout: 244 seconds]
Tranquility has joined #ruby
chinmay_dd has joined #ruby
<pontiki> i finally wrote a template for my standard rails setup; kinda hoping for something like that
<pontiki> maybe i'll just throw a thor script together
davedev2_ has quit [Ping timeout: 265 seconds]
<havenwood> tejas-manohar: and `ms_rb.gemspec`
<pontiki> it only has to be good enough for *me* afterall
<tejas-manohar> ahhh
AlexRussia has quit [Ping timeout: 265 seconds]
<havenwood> tejas-manohar: seems `milliseconds` gem name isn't taken. i personally prefer not to prefix or suffix ruby or rb.
<havenwood> tejas-manohar: but some folk do, your choice.
VBlizzard has joined #ruby
<tejas-manohar> havenwood: yeah maybe
<epitron>
<havenwood> tejas-manohar: naming is the hard thing. ;)
blizzy has quit [Ping timeout: 258 seconds]
<havenwood>
<pontiki> o.O
tejas-manohar has quit [Quit: Page closed]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DaniG2k has joined #ruby
msmith_ has quit [Remote host closed the connection]
Neomex has joined #ruby
arescorpio has joined #ruby
davedev24_ has joined #ruby
x1337807x has joined #ruby
VBlizzard has quit [Ping timeout: 252 seconds]
uber_hulk has joined #ruby
mxrguspxrt has quit []
spicerack has joined #ruby
spicerack has quit [Client Quit]
<epitron> havenwood: :D
centrx has joined #ruby
<epitron>
az7ar has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
phutchins has joined #ruby
<epitron>
yeticry has joined #ruby
_Andres_ has quit [Ping timeout: 244 seconds]
Dopagod has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
spicerack has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
rylev has joined #ruby
_Andres has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
nicolastarzia has joined #ruby
spicerack has quit [Client Quit]
sevvie has joined #ruby
rkalfane has joined #ruby
AlexRussia has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
lolmaus has quit [Quit: Konversation terminated!]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
Flcn_ has quit [Quit: Be back later ...]
Xeago has joined #ruby
rkday has joined #ruby
sevvie has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
lessless has joined #ruby
TgMts has joined #ruby
commmmodo has quit [Quit: commmmodo]
<arup_r> Can you give me an idea about what should be my approach on this https://gist.github.com/aruprakshit/5ccdb516b387016296f8#file-to_do_app-rb-L33-L37
Synchunk has joined #ruby
DadoCe has quit [Remote host closed the connection]
rkday has quit [Ping timeout: 264 seconds]
jdj_dk has joined #ruby
hamakn has quit [Remote host closed the connection]
despai has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synchunk has quit [Ping timeout: 240 seconds]
despai has quit [Ping timeout: 245 seconds]
Synchunk has joined #ruby
sevvie has joined #ruby
gfawcettpq has joined #ruby
kith has quit [Remote host closed the connection]
kith has joined #ruby
kith has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
kith has joined #ruby
kith has quit [Changing host]
kith has joined #ruby
DaniG2k has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
sevvie has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
uber_hulk has quit [Quit: leaving]
TgMts has joined #ruby
sarkis has joined #ruby
yeticry has joined #ruby
AxonetBE has joined #ruby
sevvie has joined #ruby
cantonic has quit [Quit: cantonic]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
yeticry has quit [Ping timeout: 252 seconds]
rylev has quit [Remote host closed the connection]
TgMts has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
rkalfane has joined #ruby
pwnz0r has joined #ruby
TgMts has quit [Client Quit]
lemur has joined #ruby
TgMts has joined #ruby
commmmodo has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
cantonic has joined #ruby
thomas has quit [Quit: leaving]
lemur has quit [Ping timeout: 272 seconds]
behrz has joined #ruby
noop has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
havenwood has quit []
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
startupality has quit [Quit: startupality]
yfeldblum has joined #ruby
havenwood has joined #ruby
<wasamasa> yay, ruby 2.2 is out
<wasamasa> that's a nice christmas present
<arup_r> Great!!!!!!!!!!!!!!!!!!
<arup_r> My Rspec is keep failing
msmith_ has joined #ruby
Crazy_Atheist has quit [Read error: Connection reset by peer]
frem has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
zorak8 has quit [Ping timeout: 258 seconds]
sevvie has quit [Read error: Connection reset by peer]
TgMts has joined #ruby
maestrojed has joined #ruby
zorak8 has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
maestrojed has quit [Client Quit]
AxonetBE has quit [Quit: AxonetBE]
<shevy> and that on xmas :(
<shevy> arup_r you should be celebrating
<apeiros_> oooh active_support, what a gem: `def parse(str, now=now)`
sevvie has joined #ruby
Photism has joined #ruby
<rpag> apeiros_, Time/DateTime/Date monkey patch?
exadeci has quit [Quit: Connection closed for inactivity]
<apeiros_> rpag: no, their timezone implementation. the `now=now` part is the offender
<Xeago> apeiros_: what is the problem with that?
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xeago> doesn't it take now from the outer scope if it is not provided?
<rpag> its confusing
<apeiros_> Xeago: no
giuseppesolinas has joined #ruby
<arup_r> shevy: Writing Sinatra
yeticry has joined #ruby
<apeiros_> it's the same as writing `now=now` within the method body
rbrs has quit [Remote host closed the connection]
<arup_r> Rspec is dumping me
<apeiros_> it's assigning itself to itself. which is circular.
<Xeago> hmm it fails on 1.8.7
<Xeago> NameError: undefined local variable or method `a' for main:Object
<apeiros_> >> def foo(bar, baz=bar); [bar, baz]; end; foo(1)
<apeiros_> deadbot
<apeiros_> # => [1, 1]
<apeiros_> arguments are evaluated in the context of the method
sevvie has quit [Read error: Connection reset by peer]
<arup_r> what is this method?
<shevy> it was the bot's last xmas
<arup_r> It is not documented
<apeiros_> arup_r: works fine.
<apeiros_> it returns itself.
<shevy> lol
<arup_r> Ok..
<apeiros_> obj.itself.equal?(obj)
<shevy> one of the best question-answer sessions on #ruby
<apeiros_> useful for some &:itself constructs
<arup_r> Is this a identity method ?
<apeiros_> e.g. foo.group_by(&:itself)
sevvie has joined #ruby
<Xeago> why isn't it called identity then?
<arup_r> shevy: which one?
checkit has joined #ruby
checkit has quit [Excess Flood]
<apeiros_> hurray!
<arup_r> Xeago: :( No idea.. I guess from its behave
chinmay_dd has quit [Quit: Leaving]
<apeiros_> UncaughtThrowError#tag contains the thing that was not caught.
<shevy> arup_r what apeiros_ wrote
checkit has joined #ruby
<arup_r> ohh!
<shevy> works fine - it returns itself, Kernel#itself
<arup_r> :)
sevvie has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
TgMts has quit [Ping timeout: 258 seconds]
Musashi007 has joined #ruby
<arup_r> Probably by next year we will see Ruby 4.0
<arup_r> They will make Rails ActivecoreSupport ... where all methods are available.. :)
<arup_r> as Ruby core
VBlizzard has joined #ruby
<pipework> So skip Ruby 3?
arietis has joined #ruby
thomas has joined #ruby
<arup_r> No.. It will be before that..
despai has joined #ruby
<arup_r> pipework: Do you use Rspec?
<pipework> arup_r: Unfortunately, why?
<arup_r> Need help... stubbing not working
druznek has joined #ruby
rkday has joined #ruby
pawprint has joined #ruby
<pawprint> i'd like to look up "%w" in the ruby documentation
Flcn_ has joined #ruby
sevvie has joined #ruby
<pawprint> is there a good way to do that from within a shell? or must i open my web browser?
Hobogrammer has joined #ruby
Menorah has joined #ruby
maestrojed has joined #ruby
<Mon_Ouie> I don't think ri can look up anything other than classes/modules and methods (and the documentation for those is just in a file of its own)
adriancb has joined #ruby
<apeiros_> syntax is indeed not documented in ri
jdj_dk has quit [Remote host closed the connection]
josephndenton has joined #ruby
jdj_dk has joined #ruby
<pipework> Constants too!
<apeiros_> constants to a degree - classes & modules ;-)
lolmaus has joined #ruby
porfa has joined #ruby
<Mon_Ouie> You can do ri File and find constants there, you can't do ri File::SEPARATOR directly
<apeiros_> File itself is a constant too
checkit has quit [Read error: Connection reset by peer]
jeff-ooh has joined #ruby
behrz has quit [Ping timeout: 264 seconds]
Stalkr_ has joined #ruby
adriancb has quit [Ping timeout: 255 seconds]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
vyorkin has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
kedare has joined #ruby
wallerdev has joined #ruby
DadoCe has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
frog|OFF is now known as green-big-frog
Menorah has joined #ruby
paulfm has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
sevvie has quit [Read error: Connection reset by peer]
vyorkin has quit [Quit: WeeChat 1.0.1]
asmodlol has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
AxonetBE has joined #ruby
sevvie has joined #ruby
VBlizzard has quit [Ping timeout: 252 seconds]
TgMts has joined #ruby
dcarmich has joined #ruby
pwnz0r has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: www.textualapp.com]
AmirolAhmad has quit []
yfeldblum has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
asmodlol has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
asmodlol has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulfm has quit [Quit: Zzzzz...]
rylev has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Photism has quit [Quit: Leaving]
asmodlol has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
green-big-frog is now known as frog|OFF
jenrzzz has joined #ruby
deryl has quit [Ping timeout: 240 seconds]
Joufflu has quit [Ping timeout: 258 seconds]
rylev has quit [Ping timeout: 245 seconds]
jeff-ooh has quit [Remote host closed the connection]
diegoviola has joined #ruby
rylev has joined #ruby
codecop has joined #ruby
deric_skibotn has joined #ruby
Darryl__ has joined #ruby
renderful has joined #ruby
jdj_dk has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
Crazy_Atheist has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
AxonetBE has joined #ruby
jeff-ooh has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
sevvie has joined #ruby
AxonetBE has quit [Client Quit]
DaniG2k has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
vinleod has joined #ruby
doodlehaus has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
diegoviola has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
DadoCe has quit [Remote host closed the connection]
sevvie_ has joined #ruby
sevvie_ has quit [Client Quit]
sevvie has quit [Client Quit]
rkday has quit [Ping timeout: 252 seconds]
devoldmx33 has joined #ruby
_ixti_ has joined #ruby
rikai has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
rylev has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 252 seconds]
rikai has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jackneill has quit [Remote host closed the connection]
epitron has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 265 seconds]
programmerq has joined #ruby
doodlehaus has quit [Remote host closed the connection]
jeff-ooh has quit [Remote host closed the connection]
crueber has joined #ruby
zen_ has quit [Ping timeout: 258 seconds]
zen_ has joined #ruby
Musashi007 has quit [Ping timeout: 240 seconds]
pwnz0r has joined #ruby
Joufflu has joined #ruby
crueber has quit [Quit: Leaving.]
Musashi007 has joined #ruby
Narzew has joined #ruby
testcore has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
samfisher has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
testcore has joined #ruby
anaeem1_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
pika_pika has joined #ruby
jeff-ooh has joined #ruby
decoponio has quit [Quit: Leaving...]
davedev2_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davedev24_ has quit [Ping timeout: 240 seconds]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
SOLDIERz has joined #ruby
DaniG2k has joined #ruby
oleo has quit [Quit: Verlassend]
SOLDIERz has quit [Client Quit]
clearlake has joined #ruby
Spami has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
gfawcettpq has quit [Quit: Leaving.]
Spami has quit [Client Quit]
pwnz0r has quit [Remote host closed the connection]
oleo has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
mattwildig has joined #ruby
gfawcettpq has joined #ruby
epitron has joined #ruby
basex has joined #ruby
gfawcettpq has quit [Client Quit]
druznek has quit [Quit: Leaving]
aswen has joined #ruby
Techguy305 has joined #ruby
diegoviola has joined #ruby
clearlake has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oleo has quit [Remote host closed the connection]
clearlake has joined #ruby
RealMarc has quit [Ping timeout: 250 seconds]
sarcas has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
diegoviola has quit [Client Quit]
clearlake has quit [Client Quit]
asmodlol has quit [Ping timeout: 258 seconds]
lessless has joined #ruby
thumpba has quit [Remote host closed the connection]
asmodlol has joined #ruby
Flcn_ has quit [Quit: Be back later ...]
aswen has quit [Ping timeout: 245 seconds]
byprdct has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
asmodlol has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
oleo has joined #ruby
zorak8 has joined #ruby
barderer has joined #ruby
clearlake has joined #ruby
<clearlake> hi Ryan.. happy holidays!
arup_r has quit [Quit: Leaving.]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
startupality has joined #ruby
<clearlake> hey.. i just started reading chapter 1 of your book... it's already helped me.. one idea that i want to share with you is to perhaps mention the relationship between the rails file structure and MVC
Dopagod has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
ohaibbq has joined #ruby
asmodlol has quit [Ping timeout: 250 seconds]
<clearlake> as a new rails user, i had an "ah ha moment" once i understood that the file structure was based on the MVC paradigm
knikolov has quit [Ping timeout: 244 seconds]
basex has quit [Remote host closed the connection]
asmodlol has joined #ruby
rylev has joined #ruby
knikolov has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
amundj has joined #ruby
nicolastarzia has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
mattwildig has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 258 seconds]
conniemj__ has joined #ruby
Timgauthier has joined #ruby
ta has joined #ruby
pu22l3r has joined #ruby
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 258 seconds]
JBreit has joined #ruby
snapcase has quit [Quit: leaving]
asmodlol has quit [Ping timeout: 250 seconds]
snapcase has joined #ruby
Hijiri has quit [Remote host closed the connection]
oleo is now known as Guest5801
oleo__ has joined #ruby
asmodlol has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
barderer has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
Guest5801 has quit [Ping timeout: 240 seconds]
Val__ has joined #ruby
Val_ has quit [Ping timeout: 256 seconds]
mattwildig has joined #ruby
oleo has joined #ruby
Hijiri has joined #ruby
hiyosi has joined #ruby
schfkt has quit [Ping timeout: 245 seconds]
despai has joined #ruby
schfkt has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
conniemj__ has quit [Quit: (null)]
doritostains has quit [Quit: WeeChat 1.0.1]
<shevy> ack
<shevy> rails
barderer has joined #ruby
Apocalypse has joined #ruby
Musashi007 has quit [Quit: Musashi007]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 255 seconds]
tuxdna has joined #ruby
asmodlol has joined #ruby
Azure has joined #ruby
mattmcclure has joined #ruby
tuxdna has quit [Client Quit]
tuxdna has joined #ruby
tuxdna has quit [Read error: Connection reset by peer]
keen__________13 has joined #ruby
tuxdna has joined #ruby
georgesmith has joined #ruby
paulfm has quit [Quit: Zzzzz...]
dseitz has joined #ruby
keen__________12 has quit [Ping timeout: 240 seconds]
tuxdna has quit [Client Quit]
chipotle has joined #ruby
tuxdna has joined #ruby
Xeago has quit [Remote host closed the connection]
schfkt has quit [Ping timeout: 245 seconds]
az7ar is now known as az7ar_away
frem has quit [Quit: Connection closed for inactivity]
zorak8 has quit [Read error: Connection reset by peer]
georgesmith has quit [Read error: Connection reset by peer]
georgesmith has joined #ruby
lemur has joined #ruby
zorak8 has joined #ruby
koderok has joined #ruby
<shevy> that reminds me...
<godd2> aww it's okay shevy, at least they're learning some ruby while they're doing it :)
Rapier- has quit [Ping timeout: 244 seconds]
knikolov has quit [Ping timeout: 272 seconds]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
clearlake has joined #ruby
diegoviola has joined #ruby
knikolov has joined #ruby
conniemj__ has joined #ruby
AxonetBE has joined #ruby
freerobby has quit [Quit: Leaving.]
Takle has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 244 seconds]
orangerobot has joined #ruby
<orangerobot> Hi is there any way (apart form monkey patching) of making a Hash raise an error when someone tries to set a new value to a key that already was assigned a value?
koderok has quit [Quit: koderok]
<apeiros_> orangerobot: a single hash? extend or def on that hash itself is not monkey patching.
<apeiros_> alternatively: don't use a hash. use a custom class which provides the interface you need and has a hash internally.
<waxjar> hash.freeze might also be an option
<orangerobot> apeiros_: yeah I know. trying to keep things simple here.
<tobiasvl> that won't allow you to add NEW keys, will it
<apeiros_> waxjar: that will also raise on unassigned keys ;-)
hamakn has joined #ruby
<waxjar> yep :)
DaniG2k has quit [Ping timeout: 255 seconds]
<diegoviola> wtf
<godd2> orangerobot one solution would be to make a class that inherits from hash, but that's not generally a good idea.
<diegoviola> disappointing
<godd2> orangerobot could you tell me what it is you're trying to do with this pseudo-frozen hash?
AxonetBE has quit [Quit: AxonetBE]
DaniG2k has joined #ruby
<orangerobot> godd2: I'm using it to keep some options used in a DSL and I want to prevent users form being able to set the same option twice
<tobiasvl> godd2: why's that not a good idea? sounds like the best idea to me
<tobiasvl> or well yeah, inherits might not be the best idea
<tobiasvl> making an interface that uses a hash internally on the other hand
<tobiasvl> best idea
<orangerobot> yeah thanks for the input tobiasvl godd2 apeiros_ waxjar
lemur has joined #ruby
basex has joined #ruby
koderok has joined #ruby
<tobiasvl> diegoviola: do you have a TL;DR?
hamakn has quit [Ping timeout: 272 seconds]
jdj_dk has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
<diegoviola> nope
jdj_dk has joined #ruby
<tobiasvl> ok
ohaibbq has quit [Quit: Leaving...]
<shevy> what is TL;DR
jmdade has joined #ruby
commmmodo has quit [Quit: commmmodo]
dorei has joined #ruby
ARCADIVS has joined #ruby
conniemj__ has quit [Quit: (null)]
arescorpio has quit [Excess Flood]
<diegoviola> shevy: refactor a big combo in a one-liner
<shevy> wat
<diegoviola> shevy: "too long; didn't read"
<shevy> ah
<shevy> so basically like "I am too lazy"
<diegoviola> yep
despai has quit [Quit: This computer has gone to sleep]
jdj_dk has quit [Ping timeout: 240 seconds]
zorak8 has quit [Ping timeout: 240 seconds]
despai has joined #ruby
yfeldblum has joined #ruby
thoughnut has quit [Quit: leaving]
DadoCe has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
conniemj__ has joined #ruby
koderok has quit [Quit: koderok]
<apeiros_> ouch: "<enebo> brixen: but I told you back then I stopped contributing because I did not like working with you."
<apeiros_> shevy: TL;DR is also often used to say "summary, please"
<waxjar> i think the tl;dr is rubyspec is likely to be abandoned?
DadoCe has quit [Ping timeout: 255 seconds]
<shevy> rubyspec is the specification for ruby?
yfeldblum has quit [Ping timeout: 258 seconds]
conniemj__ has quit [Client Quit]
<apeiros_> s/the/a/
<apeiros_> MRI team seems not to be testing against it
anaeem1_ has quit [Remote host closed the connection]
<shevy> hehe
<godd2> I remeber submitting a tiny PR to RSpec and got listed as a contributorfor that version. It was awesome! perhaps brixen could learn from that?
<apeiros_> godd2: it seems he has some, lets say "unconventional" definition of contributor/contribution.
zorak8 has joined #ruby
<godd2> Yea I think tenderlove hit the nail on the head with asking what he meant by that
<godd2> but his motivation for having such a strict definition may be something he can't change...
mattwildig has quit [Remote host closed the connection]
georgesmith has quit [Read error: Connection reset by peer]
georgesmith has joined #ruby
<apeiros_> I found the inability of brixen to come up with even a vague definition, and instead being evasive and hostile rather discomforting.
Vile` has quit [Remote host closed the connection]
<zacts> hi rubyists
dts|pokeball has quit [Read error: Connection reset by peer]
<havenwood> zacts: hi
yfeldblum has joined #ruby
Vile` has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<godd2> well we could be nice and say he was just in a grumpy mood :P
lemur has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<godd2> brixen is grumpy so we are grumpy
lemur has joined #ruby
Apocalypse has quit [Ping timeout: 240 seconds]
<tobiasvl> call me lazy, but I didn't feel like spending my xmas day on reading a long-ass IRC log for which I didn't remotely know the gist of
<shevy> for me I always get scared when new people take over a project in general
<apeiros_> maybe
<shevy> take _why and shoes
devoldmx33 has quit [Ping timeout: 250 seconds]
devoldmx33 has joined #ruby
<tobiasvl> haha
Xeago has joined #ruby
<shevy> omg that is so long
<pawprint> that's what she said
<tobiasvl> shevy: yes hence my "TL;DR" request
asmodlol has quit [Ping timeout: 245 seconds]
<tobiasvl> but I guess I'm "lazy" :( :(
dts|pokeball has joined #ruby
diegoviola has quit [Remote host closed the connection]
rylev has joined #ruby
<shevy> yeah
<shevy> diegoviola is gone, I want to ask him for a summary :(
<chipotle> hello
<godd2> He'd prbably say "go read the tweet"
Xeago has quit [Remote host closed the connection]
<godd2> <|jemc|> zenspider muckraking and sowing discord in the community? I'm shocked.
lemur has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
<shevy> :>
<shevy> where are these people
<shevy> they are not here on #ruby
<centrx> #ruby-core obviously
<centrx> * Topic for #ruby-core is: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
pawprint has left #ruby [#ruby]
<shevy> ohhhh
<shevy> that sounds like a scary channel
<shevy> I'm gonna look and see what they are talking about
<centrx> scary like a ghost town
Zesty has joined #ruby
rylev has quit [Ping timeout: 245 seconds]
<shevy> that much action aha :(
<godd2> shevy zen is here, but the rest are in #rubinius afaict
jdj_dk has joined #ruby
<shevy> too many channels
<shevy> you keep me updated about IRC drama!
arescorpio has joined #ruby
<dtordable> IRC is a pure drama
Timgauthier has joined #ruby
<dorei> we luv drama
<dtordable> yeah, it is a drama around Spain
Deele has quit [Ping timeout: 244 seconds]
tejas-manohar has joined #ruby
georgesmith has quit [Read error: Connection reset by peer]
<Timgauthier> what are you guys using for web hosting?
georgesmith has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
<tejas-manohar> havenwood: where do i list my dependencies in gemspec?
Deele has joined #ruby
<havenwood> tejas-manohar: something like: gem.add_runtime_dependency 'blah'
<tejas-manohar> havenwood: great, and do i use require statements in the main lib file?
<havenwood> tejas-manohar: in your case: s.add..
<tejas-manohar> havenwood: yep
<havenwood> tejas-manohar: require 'blah'
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<tejas-manohar> havenwood: the usual, yay
<tejas-manohar> havenwood: minitest vs. rspec for this kinda gem?
<godd2> tejas-manohar here's an example of add_runtime_dependency: https://github.com/nicklink483/dare/blob/master/dare.gemspec
<godd2> on line 18
<havenwood> tejas-manohar: a matter of preference
<waxjar> there's also an add_test_dependency or development_dependency method, where you'd put your test framework and other development tools
schfkt has joined #ruby
<tejas-manohar> oh add_test_dependency
<tejas-manohar> ok cool
danman has quit [Quit: danman]
<tejas-manohar> thanks!
conniemj__ has joined #ruby
pwnz0r has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
gregf has quit [Quit: WeeChat 1.0.1]
s00pcan_ has joined #ruby
hmsimha has joined #ruby
barderer has quit [Ping timeout: 244 seconds]
Deele has quit [Ping timeout: 244 seconds]
basex has quit [Remote host closed the connection]
georgesmith has quit [Quit: georgesmith]
<godd2> holy crap the interview torrent has 65,000 seeders right now. that is hilarious
gregf has joined #ruby
<tejas-manohar> lolol
DaniG2k has quit [Quit: leaving]
schfkt has quit [Ping timeout: 256 seconds]
aswen has joined #ruby
Deele has joined #ruby
sarcas has quit [Ping timeout: 264 seconds]
<shevy> viral marketing for the masses
conniemj__ has quit [Quit: (null)]
commmmodo has joined #ruby
vvivv has quit [Quit: Leaving]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basex has joined #ruby
<dtordable> no no
<dtordable> a SEO was behind it!
<dtordable> hahahahaa
impi0us has joined #ruby
nicolastarzia has joined #ruby
Timgauthier has joined #ruby
<tejas-manohar> havenwood: so do i have to rewrite that monster of regex... https://github.com/guille/ms.js/blob/master/index.js#L41 for ruby style?
<centrx> tejas-manohar, the regex is compatible
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishikawa has quit [Remote host closed the connection]
nicolastarzia has quit [Ping timeout: 250 seconds]
<tejas-manohar> centrx: oh
ishikawa has joined #ruby
<tejas-manohar> yay
pawprint has joined #ruby
jdj_dk has joined #ruby
<pawprint> let's say i write a program that contains some secret data that i want my program to use but don't want the user of this program to know
<pawprint> how would i protect that data in my program in ruby?
<centrx> DRM
<dtordable> pawprint: don't make the program suffer a cogswap during execution
<dtordable> lol
basex has quit [Remote host closed the connection]
bigmac has joined #ruby
Sawbones has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
s00pcan_ has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
phutchins has joined #ruby
basex has joined #ruby
dc_ has quit [Remote host closed the connection]
Narzew has quit [Quit: Wychodzi]
phutchins has quit [Ping timeout: 244 seconds]
asmodlol has quit [Ping timeout: 252 seconds]
mliqu has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
bitri_ has joined #ruby
bitri_ has quit [Client Quit]
adriancb has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
bitri_ has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
asmodlol has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
gfawcettpq has joined #ruby
Sawbones has quit [Remote host closed the connection]
it0a has joined #ruby
mattwildig has joined #ruby
<shevy> pawprint ruby files are textfiles. how do you want to protect textfiles?
rkday has joined #ruby
<pawprint> it's more than just protecting text files, it's protecting them and yet allowing them to run on the user's machine
<pawprint> using something like gpg can protect a text file, but the user can't run something encrypted with gpg without knowing the key
<shevy> I still don't get it
codecop has quit [Remote host closed the connection]
kyote is now known as Lados
Zai00 has joined #ruby
<pawprint> i'm not sure how to explain it in a clearer way than i alredy have.. i need to keep some data in a ruby program secret from the user, but still let the user run that program
dts|pokeball has quit [Read error: Connection reset by peer]
<shevy> you can put arbitrary data after __END__
<pawprint> can that data be used for computation by the program?
Sawbones has joined #ruby
<pawprint> without letting the user discover the unencrypted version?
<shevy> there is nothing about encryption in ruby
dts|pokeball has joined #ruby
<shevy> data after __END__ is available in the constant DATA, for instance through DATA.read