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>
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…]
<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.
<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.
<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]
<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 $:
<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>
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.
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.
<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.
<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?
<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"
<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.
<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?
<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?
<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.
<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]
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]
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]
<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?
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
<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
<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
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]
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 ;-)
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