havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
rodfersou has quit [Quit: leaving]
sye has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
willardg has joined #ruby
<shevy> what does this mean?
rontec76 has quit [Remote host closed the connection]
<shevy> "* lib/open-uri.rb: Remove indicator for "frozen_string_literal: true"."
<shevy> lol
<Ox0dea> They were a little hasty with adding that to the top of all of those files.
<shevy> "* proc.c (cfunc_proc_t): add room for me."
roxtrongo has joined #ruby
<Ox0dea> `me` is the current frame.
<shevy> why? isn't it a part of a #comment?
nizmow has quit [Ping timeout: 246 seconds]
<Ox0dea> I guess they're discussing it and have decided that a magic comment isn't the best way to go.
malconis has joined #ruby
<Ox0dea> I think they're going to introduce "pragmas".
user083 has quit [Quit: Lost terminal]
lemur has quit [Ping timeout: 240 seconds]
h99h9h88 has joined #ruby
chipotle has joined #ruby
kirun has quit [Quit: Client exiting]
<Ox0dea> > We don’t need an option name if it is always enabled.
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
roxtrongo has quit [Ping timeout: 264 seconds]
malconis has quit [Ping timeout: 244 seconds]
h99h9h88 has quit [Ping timeout: 244 seconds]
eluten has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> things change so rapidly!
<shevy> what do you mean with pragmas? is that like #define ?
<shevy> hmm
<shevy> or do they make a flat change without optional non-static strings
vigintas has joined #ruby
<Ox0dea> Well, no, like #pragma.
<edj> *varName in a function makes it a global variable?
eminencehc has quit [Remote host closed the connection]
TomPeed has joined #ruby
<Ox0dea> Wat.
yfeldblu_ has quit [Remote host closed the connection]
<edj> whats a good website to post code on so i can link it here?
<Ox0dea> ?gist edj
<ruboto> edj, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
yfeldblum has joined #ruby
<edj> ok thanks
mblagden has joined #ruby
<edj> *numbers is a global var even though its declared in a method ?
<Ox0dea> edj: What on earth makes you think it's global?
<FailBit> only $ are globals
<edj> oooooh
<FailBit> everything else is a local or a method
<Ox0dea> No.
<Ox0dea> There are also class and instance variables.
<FailBit> I meant unprefixed
<edj> so if i do def name ($var) its global?
<FailBit> but yes
<Ox0dea> edj: You can't do that.
<edj> damn
<Ox0dea> Why would you want to?
<edj> idk, flexability
Asher has quit [Quit: Leaving.]
<edj> i guess i could just create one as an output
rgrmatt has quit [Remote host closed the connection]
devoldmx has joined #ruby
<shevy> assign to a local variable and just use that; or use $var directly inside your method
<edj> or i could use $var=method(var)
<edj> right?
<Ox0dea> edj: Is this you? http://i.imgur.com/sHt5q.jpg
<edj> nope
krz has joined #ruby
<Ox0dea> Do you Pinkie Pie swear?
<edj> I'm legit retarded
<edj> pinkie pie swear
SCHAAP137 has quit [Quit: Leaving]
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<edj> I'm pretty smart, just a noob.
<Ox0dea> edj: Global variables are just way too "visible"; any change you make can affect code *anywhere* else, and *anybody else* can change a global you're currently relying upon.
NeverDie has joined #ruby
<edj> I'm not really making anything practical yet just trying to get a good grasp of ruby
<shevy> edj you can use a proc if you really need that and then .call on it
<edj> but thats a good point
<edj> true
<Ox0dea> edj: This is one habit you'll want to break, like, right now.
whippythellama has quit [Quit: WeeChat 1.3]
<shevy> but he won't!
bubuntu has quit [Ping timeout: 244 seconds]
<edj> what habit is that ?
<shevy> the bad habit
<Ox0dea> That thing you're doing that you should never do again.
<edj> what habit lmao
<Ox0dea> This one.
<edj> alright man
<shevy> it's getting too much to bear
<Ox0dea> But not enough to snake.
<edj> i understand
dopie has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 250 seconds]
<edj> I need to stop that.
<shevy> don't call that dam beaver
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 265 seconds]
<Ox0dea> Sshhh, he'll hear you.
<Ox0dea> He's got ears like a snake!
Alayde has joined #ruby
<hxegon> am I having a stroke?
<edj> no, but i am
<shevy> dunno... stand up just in case hxegon, a sitting position is not healthy
decoponio has quit [Quit: Leaving...]
<baweaver> hm?
<Ox0dea> Toldja.
moeabdol has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
<shevy> the beaver has awoken!
I has joined #ruby
* baweaver yawns
I is now known as Guest54901
<Ox0dea> So, I'm accidentally running a social experiment.
<shevy> yeah
<shevy> since quite a long while you have been experimenting on #ruby!
<Ox0dea> You can't prove that!
infamos has quit [Ping timeout: 250 seconds]
<ytti> been rocking python recently, and i'm in pain
kies has joined #ruby
<ytti> ".".join(list) because, why not
teclator has quit [Ping timeout: 240 seconds]
<edj> so *var means it can take multiple arguments and put it in one?
<Ox0dea> edj: Yeah.
<edj> alright, nice
<edj> thanks
<ytti> set(list1).difference(list2) because list1-list2 is not good?
<Ox0dea> edj: * is called "splat" in general, and it can be used all over the place with similar semantics.
nateberkopec has quit [Read error: Connection reset by peer]
<ytti> methods often are for wronb object
<FailBit> I am highly illogical
<Ox0dea> >> first, *middle, last = [1,2,3,4,5]; middle # edj
<ytti> or then pooped to main level
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/466634)
<FailBit> pinkie pie swear.
predator217 has joined #ruby
aaeron2 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<edj> so it creates an array?
<edj> of variables
<edj> and runs them all through the same place
<edj> right?
<FailBit> it creates three vars
subscope has quit [Quit: Leaving]
<FailBit> the middle one is an array
<FailBit> it's splatted from the array values
<edj> but it can be more than three, right?
mary5030 has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
<Ox0dea> No.
<Ox0dea> Exactly three, always.
aaeron has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
<edj> then why use it?
ESpiney__ has quit [Quit: Leaving]
<edj> is there one that makes it so its how ever many you put in?
<edj> I like flexible code
aaeron2 has quit [Quit: Leaving.]
<eam> that would violate Ruby's Rule of Threes
<UNIMPL> :)
<edj> thats not a real thing
<edj> sarcasm doesn't come across well through text
<edj> lol
<eam> ;)
mary5030 has quit [Ping timeout: 260 seconds]
stu_ has joined #ruby
trosborn has quit [Client Quit]
stu_ is now known as _stu_
<Ox0dea> eam: Yes, * collects as many as it can.
<Ox0dea> edj: ^
simplyianm has quit [Remote host closed the connection]
<Ox0dea> Sorry, eam.
<Ox0dea> edj: See also: https://eval.in/466635
vigintas has quit [Ping timeout: 240 seconds]
<edj> lol I knew it
<Ox0dea> That demonstrates that splatting "goes both ways"; you can use it to capture many arguments, and you can also use it to "explode" one argument into many.
<Ox0dea> The `sum3` method there takes three arguments, but we can't just pass it a single Array of three elements.
<Ox0dea> Splatman to the rescue.
Alayde has quit [Quit: WeeChat 1.1.1]
DEA7TH has quit [Quit: DEA7TH]
<Ox0dea> >> def foo *args; "received #{args.size} arguments"; end; eval "foo #{9001.times.to_a.join ?,}" # edj
<ruboto> Ox0dea # => "received 9001 arguments" (https://eval.in/466637)
marr has quit [Ping timeout: 276 seconds]
<Ox0dea> > The only limit is your imagination.
dorei has quit [Ping timeout: 260 seconds]
<Fire-Dra_> let's explode some arguments, will be my new signature
<Fire-Dra_> what happened to my name, sigh
Fire-Dra_ has quit []
mdst has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
aaeron has joined #ruby
<edj> explode one argument to many?
<Ox0dea> The example was pretty clear.
<Fire-Dragon-DoL> Ox0dea: lol
mikecmpbll has quit [Quit: i've nodded off.]
<Fire-Dragon-DoL> Ox0dea: the feeling when you try to explain a programming joke to your girlfriend, lol
<Ox0dea> Explosions are programming now? :P
<Ox0dea> I'll get the redstone.
cdg has quit [Remote host closed the connection]
<edj> what is that for? how does it connect to everything?
<edj> it seems like having one argument 9001 times wouldnt have any use
<Fire-Dragon-DoL> are there any sort of gem/whatever that allows me to create a hash accessible in both directions (by value AND by key)? Doesn't matter how is implemented (two hashes), it's a bunch of static values
babblebre has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest78736
banister has joined #ruby
mdih has quit [Ping timeout: 264 seconds]
<Ox0dea> edj: All 9001 of those arguments are different, but I was just showing you that *args really does accept any number of arguments.
nertzy has joined #ruby
Azure has joined #ruby
<Ox0dea> Fire-Dragon-DoL: What're you doing that that makes sense?
chipotle has quit [Quit: cheerio]
<Ox0dea> Either way, Hash#merge and Hash#invert are the methods you're looking for; you don't need a gem/whatever.
infamos has joined #ruby
Trynemjoel has joined #ruby
bricker has quit [Ping timeout: 255 seconds]
<edj> OOOOOOOOH
B1n4r10 has joined #ruby
<Fire-Dragon-DoL> Ox0dea: nothing, was playing with a script and wanted a way to create some errors (symbol) that should become a number (for serialization purposes) and I wanted a short way to reference from the number, the symbol
<edj> gotcha
mattwildig has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
<Ox0dea> >> h = {a: 1, b: 2}; h.merge h.invert # Fire-Dragon-DoL
<ruboto> Ox0dea # => {:a=>1, :b=>2, 1=>:a, 2=>:b} (https://eval.in/466650)
<Fire-Dragon-DoL> Ox0dea: yeah that's my thought too, thanks
skade has quit [Quit: Computer has gone to sleep.]
rgtk has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
Guest78736 has quit [Ping timeout: 240 seconds]
mdst has joined #ruby
dorei has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
<Ox0dea> >> h = Hash.new; def h.[]=k, v; store store(k, v), k end; h[:a] = 1; h[:b] = 2; h # Fire-Dragon-DoL
<ruboto> Ox0dea # => {:a=>1, 1=>:a, :b=>2, 2=>:b} (https://eval.in/466656)
<Ox0dea> There's another approach if you're feeling fancy.
lemur has joined #ruby
rgtk has joined #ruby
<Ox0dea> Gotta use #store instead of #[]= or you blow the stack.
CloCkWeRX has joined #ruby
rgtk has quit [Read error: No route to host]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
ekinmur has joined #ruby
rgtk has joined #ruby
Tempesta has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
eightbellyoct has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 246 seconds]
cmoneylulz has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
govg has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest54901 has quit [Quit: This computer has gone to sleep]
rgtk has joined #ruby
jessemcgilallen has joined #ruby
roxtrongo has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/]
rgtk has joined #ruby
benlovell has joined #ruby
chipotle has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
Coldblackice_ has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
rgtk has joined #ruby
bricker has joined #ruby
araujo_ has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> Ox0dea: you mad :P but I like the second-option idea, lol
gccostabr has quit [Quit: See you later!]
axsuul has quit [Ping timeout: 246 seconds]
araujo_ has quit [Max SendQ exceeded]
rgtk has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
araujo_ has joined #ruby
eminencehc has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
CloCkWeRX has joined #ruby
benlieb has quit [Quit: benlieb]
rgtk has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
rgtk has joined #ruby
opensource_ninja has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Coldblackice has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: Connection reset by peer]
cmoneylulz has quit [Remote host closed the connection]
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
rgtk has joined #ruby
gusrub has quit [Remote host closed the connection]
rgtk has quit [Read error: Connection reset by peer]
h99h9h88 has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
mloy has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
Coldblackice has joined #ruby
<shevy> he mad
<shevy> he man
TheNet has quit [Remote host closed the connection]
rgtk has joined #ruby
bubuntu has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
gambl0re has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 246 seconds]
ni291187 has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
rgtk has joined #ruby
<Ox0dea> hu man
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: Connection reset by peer]
ni291187 has left #ruby [#ruby]
Coldblackice has joined #ruby
frigide has joined #ruby
luriv_ has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
<frigide> Ox0dea no need for racism here
rgtk has joined #ruby
jdawgaz has joined #ruby
rgrmatt has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
Yzguy has quit [Quit: Zzz...]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
frigide has quit [Remote host closed the connection]
<Ox0dea> The fuck was that?
dnewkerk has quit [Quit: dnewkerk]
rgtk has joined #ruby
flip_digits has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
niftylettuce has joined #ruby
rgtk has joined #ruby
eminencehc has quit [Remote host closed the connection]
<flip_digits> hello
rgrmatt has quit [Remote host closed the connection]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
TheNet has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
chrisja has quit [Quit: leaving]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
<UNIMPL> Ox0dea: Please don't make racist comments in here.
rgtk has quit [Read error: No route to host]
<FailBit> I forgot what context is
<shevy> the context is ruby!
duncannz has quit [Ping timeout: 246 seconds]
<FailBit> I meant at the slew of people saying "that's racist"
TheNet has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
<FailBit> anyways here's another fun grammar thing
<FailBit> you know how "statement if cond" becomes nil if !cond ?
rgtk has quit [Read error: Connection reset by peer]
<shevy> I believe it was fake considering how frigide instantly left
<FailBit> so then, what is "func({hash: :lit} if cond)" ?
<shevy> I don't like such inline conditionals
* baweaver looks about
blackmesa has quit [Ping timeout: 252 seconds]
* baweaver scoots off
<shevy> can't you keep things simple, method_call(arguments) if something; or unless something
TDJACR has quit [Ping timeout: 246 seconds]
<FailBit> >> def foo(*); end; foo({hash: :lit} if false)
<ruboto> FailBit # => /tmp/execpad-49e999247691/source-49e999247691:2: syntax error, unexpected modifier_if, expecting ')' ...check link for more (https://eval.in/466682)
B1n4r10 has quit [Ping timeout: 265 seconds]
rgtk has joined #ruby
* baweaver more correctly swims off
<shevy> you can't even get that syntax bit to work :)
rgtk has quit [Read error: Connection reset by peer]
<FailBit> exactly
<FailBit> it's broken
<FailBit> you need 2 parens
<shevy> yes, this code is broken!
<FailBit> >> def foo(*); end; foo(({hash: :lit} if false))
<ruboto> FailBit # => nil (https://eval.in/466683)
<FailBit> then it parses
<shevy> still broken
nertzy has quit [Quit: This computer has gone to sleep]
<eam> two parens is pretty standard for ruby
<eam> you need that even for simple stuff like "not true"
<FailBit> that's because not has stupidly low precedence
<eam> FailBit: nope
<eam> that's not why
<shevy> I remember how eam once linked in a link to some twitter about the ruby parser
<eam> >> [not true]
<ruboto> eam # => /tmp/execpad-a7954db40fd6/source-a7954db40fd6:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/466684)
<eam> not a precedence issue
<willardg> Cancancan question
<shevy> cacao questions!
<willardg> Why can't student see the classroom_path?
<willardg> elsif user.role?(:teacher)
<willardg> can :read, :all
<willardg> elsif user.role?(:student)
<willardg> can :read, Classroom
Ropeney has quit [Read error: Connection reset by peer]
<Ox0dea> willardg: Please post the contents of your project directory in full.
<Ox0dea> Right here into the channel like a decent human being.
yokel has quit [Ping timeout: 265 seconds]
<willardg> I'm following a tutorial
<shevy> RAILS
rgtk_ has joined #ruby
<FailBit> #there's a channel for that
aaeron has quit [Quit: Leaving.]
<Ox0dea> ?rails willardg
<ruboto> willardg, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<willardg> I'm making the projects to be classrooms though
<FailBit> AFAIK you don't need to be identified with nickserv
<shevy> did they change it again?
<FailBit> yeah
yokel has joined #ruby
<shevy> cool
trav408 has quit [Quit: WeeChat 1.2]
tubbo has quit [Ping timeout: 250 seconds]
rikai has quit [Quit: No Ping reply in 180 seconds.]
rgtk_ has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
<Ox0dea> Where do things that have been lost in translation go?
<ElSif> phonemgatory?
eightbellyoct has quit [Quit: eightbellyoct]
rgtk has quit [Read error: Connection reset by peer]
<shevy> to the big black void
rikai has joined #ruby
<Ox0dea> shevy: Please don't make racist comments in here.
<FailBit> that's racist
rgtk has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<FailBit> oh you know
<Ox0dea> watermelonchickenbambambasketball.jpg
<ElSif> check your big white void privelege
<FailBit> git is so helpful
<FailBit> git: 'pul' is not a git command. See 'git --help'.
<FailBit> Did you mean 'push'?
tubbo has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
<Ox0dea> FailBit: It recommends 'pull' first.
<Ox0dea> Do you even Levenshtein distance?
<Ox0dea> Because git does.
<FailBit> I know why it does that :Y
<FailBit> it's just amusing
<Ox0dea> FailBit: Consider using thefuck: https://github.com/nvbn/thefuck
rgtk has joined #ruby
<FailBit> fuck git pul
trosborn has joined #ruby
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea> Well, no, it'd be `git pul`, then `fuck`.
<FailBit> forgot how that tool worked
rgtk has quit [Read error: No route to host]
<ElSif> or `git pul && fuck`
<Ox0dea> Nope.
<Ox0dea> It's gotta be in your history.
_blizzy_ has joined #ruby
<ElSif> ah
<ElSif> dang
<ElSif> feature request!
<Ox0dea> Time travel?
nwhirschfeld has joined #ruby
TDJACR has joined #ruby
<ElSif> whatever it take
rgtk has joined #ruby
bruno- has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> > Forward-port local commits to the updated upstream head
bruno- is now known as Guest93656
<shevy> Ox0dea lol
<FailBit> Ox0dea, this is my favorite implementation of Levenshtein fuzzing https://i.imgur.com/l9qaEEm.png
rgtk has joined #ruby
B1n4r10 has joined #ruby
<Ox0dea> I like the part where picture of code.
rikai has quit [Quit: No Ping reply in 180 seconds.]
<FailBit> // Rotate dem vec pointers brah.
rgtk has quit [Read error: Connection reset by peer]
<FailBit> picture of code because >github >lazy as fuck >what's pastebin
rgtk has joined #ruby
<Ox0dea> >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'FailBit', 'decency'
<ruboto> Ox0dea # => 7 (https://eval.in/466686)
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<Ox0dea> Well, that explains that.
rgtk has quit [Read error: Connection reset by peer]
Guest93656 has quit [Ping timeout: 276 seconds]
rikai has joined #ruby
<FailBit> I mean if it wasn't a private repo I'd just link the source because that's easier
rgtk has joined #ruby
<Ox0dea> Hold my backtrace, I'm gonna divide by the number of fucks I give.
<Ox0dea> Sorry. <3
lemur has joined #ruby
CloCkWeRX has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
rgtk has joined #ruby
kuya5 has joined #ruby
karmatr0n has quit [Read error: No route to host]
m0nge has joined #ruby
roxtrongo has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
m0nge has quit [Client Quit]
tkuchiki has joined #ruby
rgrmatt has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 250 seconds]
<ElSif> that is definitely javascript, i don't think your joke works there ;)
daivyk has quit [Quit: ZZZzzz…]
<ElSif> unless Infinity counts as a backtrace...
rgtk has joined #ruby
trosborn has quit [Quit: trosborn]
rgtk has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
towski_ has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 240 seconds]
<Fire-Dragon-DoL> any trick to focus on work when you really want to play a game but you have to work? :S
rgtk has quit [Read error: Connection reset by peer]
<ElSif> uninstall fallout 4?
CloCkWeRX has left #ruby [#ruby]
<havenwood> Fire-Dragon-DoL: Play the game then restore your life to a save point before you started playing.
rgtk has joined #ruby
<Fire-Dragon-DoL> rotfl
CloCkWeRX has joined #ruby
TheNet has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
cdg has joined #ruby
tmtwd has joined #ruby
<Ox0dea> ElSif: Hm? You definitely get an exception and a backtrace if you divide by zero in Ruby.
<ElSif> true enough, but not in javascript :)
<ytti> anyone aware if nagios or some other software has generic heartbeat alerting. Such as client would do GET http://nagios/heartbeat/$app/$keepalive, and if next GET does not occur within $keepalive nagios would raise alarm for $app down
<Ox0dea> ...
rgtk has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infamos has quit [Ping timeout: 264 seconds]
<ElSif> of course you would never
markfletcher has joined #ruby
<shevy> you could!
<shevy> my_fancy_variable = 0
<shevy> use it!
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<Ox0dea> ytti: You could tell a sleeper thread to watch some variable.
diegoaguilar has quit [Ping timeout: 244 seconds]
<dorei> ytti: i think it's pretty easy to make nagios do that
Ropeney has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
<ytti> probably
<eam> Ox0dea: depends what kind of zero
<eam> >> 1 / 0.0
<ruboto> eam # => Infinity (https://eval.in/466687)
<ytti> pure ruby solution would be like 50 lines of code
markfletcher has left #ruby [#ruby]
<Ox0dea> ytti: Did you mean three?
B1n4r10 has quit [Ping timeout: 276 seconds]
<shevy> sleeper thread sounds scary
<dorei> Ox0dea: only namespacing will be more than three lines :p
<Ox0dea> > Draco dormiens nunquam titillandus.
<Ox0dea> shevy: ^
<ytti> Ox0dea, i'm talking sensible pretty code
<ytti> sleeper thread also doesn't really work at all
<ytti> i'm thining random crontab job doing curl http://nagios/heartbeat/random/3600
<ytti> or any_language daemon doing http get
<ytti> like rather than tring to figure out if stuff is running
<ytti> assume it's not, unless the stuff tells you it is
<Ox0dea> Just keep it running?
<dorei> what if the network is down? would that still count as app is down?
<ytti> if the NMS isn't receiving the HTTP GET
<ytti> it's down
newmanships has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Why not a HEAD request?
htmldrum has quit [Ping timeout: 255 seconds]
<ytti> well what ever
<ytti> i think http get is best
<ytti> as it's usually most stream-lined
<ElSif> do you care about the body?
<dorei> what if the NMS can't send the HTTP GET due to network problems?
<ytti> i don't
<ElSif> then HEAD seems more correct
<ytti> nm's isn't sending http get, clients who are monitored are sending it
<shevy> oha
<shevy> the new rubygems has different warnings
<ytti> if network between clients and nms is dead, then nms thinks eveyrthing is dead
<shevy> "WARNING: license value 'GPL 2' is invalid. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license."
<ytti> HEAD does not seem correct to me
<ElSif> how so?
<ytti> because it's more awkward to do
<ytti> and it's not restful
sepp2k has quit [Read error: Connection reset by peer]
<Ox0dea> Wat.
<ElSif> what?
<jhass> shevy: dash not space
<ytti> it's silly optimization when none is needed
<ytti> like, i'd need to do 'man curl' to know how to do HEAD
<ytti> or man wget
<ytti> or man fetch
benlieb has joined #ruby
<ytti> i'd need to read ruby's docs to do head in ruby
<Ox0dea> Sounds like PEBKAC.
<ytti> but in all of those, i can do get without reading docs
<havenwood> shevy: "GPL-2.0"
<ytti> i'm pretty sure this is true for vast audience
<havenwood> shevy: Gem::Licenses::IDENTIFIERS.grep /\AGPL/ #=> ["GPL-1.0", "GPL-2.0", "GPL-3.0"]
<ytti> APIs and UIs are optimising for common case, HTTP GET
<ytti> not for HTTP HEAD
`based_pdev` has joined #ruby
<ElSif> please stop T_T
<ElSif> at least dont call that `restful`
<havenwood> ytti: If you want a GET without the body it's a HEAD.
<ytti> well you started the bikeshedding
<ElSif> proper use of HTTP is not bikeshedding
<ytti> havenwood, i want to offer simplest way to announce app is working
<dorei> ytti: do you think that doing a HEAD would lead to an error 500? :D
<havenwood> ytti: A HEAD request to the resource?
<shevy> havenwood cool to see that the licenses are available in the Gem namespace itself, thanks
<havenwood> shevy: np
<jhass> well, I do know a httpd that fucks up a response to a GET when sent after a HEAD using pipelining
<ytti> there is no overhead in server end for me in GET
<ytti> it's simpler for clients to do it
<ytti> it's just way better UX
<ytti> and it's also bikeshedding, as i'm asking for way to heartbeat any client, any app
based_pdev_ has quit [Ping timeout: 240 seconds]
<shevy> On 08.09.2015, we have had 105,769 gems. On 11.11.2015, we have had 108,695 gems. So in ... 2 months we have about +3000 new gems roughly
<ytti> and if such module perhaps already exists in nagios
<dorei> ytti: what if a malicious user starts sending HEAD to your app?
axisys has quit [Remote host closed the connection]
<havenwood> shevy: Did we meet our quota?
<shevy> I dunno, it's the first time I kept track of that :D
<ytti> dorei, GET, i'm not gonna use HEAD
<shevy> in perhaps a year we can compare again
<ytti> dorei, but yeah, if i get malicious GET, i presume client is healthy, even when it is not
cdg has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
<ytti> dorei, but really not a problem for my use-case, as no malicious request would come
rgrmatt has quit [Remote host closed the connection]
<ElSif> saying `about +3000` when it is actually less than 3000 is hilarious
cdg has quit [Remote host closed the connection]
<ElSif> but still :D
htmldrum has joined #ruby
diegoaguilar has joined #ruby
cdg has joined #ruby
<shevy> a tiny margin
<shevy> don't call us lazy!!!
<shevy> nor fat
sirecote has quit [Quit: "Hang Up"]
griffindy has joined #ruby
sirecote has joined #ruby
bruce_lee has quit [Ping timeout: 265 seconds]
<ElSif> what about `bloated`?
<ElSif> ytti: if your question is really just, how do i check for a http response in nagios?, then i believe it is the check_http module
_stu_ has quit [Quit: _stu_]
DLSteve has joined #ruby
Vile` has quit [Remote host closed the connection]
<ytti> ElSif, it's more broad, how do I ensure that random daemons, apps etc are running
aaeron has joined #ruby
<ElSif> ytti: you could set a custom header for each one
<ytti> ElSif, my idea is to let them announce they still running, and have 0config server keep state
<ytti> but i'm not sure if this is good approach, perhaps this is solved problem with existing module
Vile` has joined #ruby
<ElSif> maybe, i haven't use nagios in years
<ytti> in $job-2 i did this with MQTT, but MQTT is clearly lot more awkward to send messages to, than HTTP GET
<ytti> but in that use-case, i was mostly thinking of random ruby code, so it was ok, as I had internal library to make it super easy
<ytti> require 'xxx/mq'
<ytti> XXX::MQ.beat 3600
<ytti> was all i neede to do, to ahve monitoring for that particular piece of coke
<ytti> code
<ElSif> try `/join #nagios`
<ytti> probably /join #nms or something, as it's very broad/generic question on how to ensure software is running
<ElSif> but if there is a module....
blue_deref has quit [Quit: bbn]
Arkon has quit [Remote host closed the connection]
<ytti> right
<ytti> out of curiosity, how have you in current or some previous job solved this?
Arkon has joined #ruby
<ytti> there tends to be gazillion of small crontab jobs and daemons here and there in every company
blackmesa has joined #ruby
araujo_ has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
claptor has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
opensource_ninja has joined #ruby
<eam> ytti: consider something like runit
<eam> ytti: maybe with a tool like this to build the runit job directories https://github.com/square/prodeng/tree/master/servicebuilder
benlieb has quit [Quit: benlieb]
cmoneylulz has joined #ruby
B1n4r10 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
<ytti> eam, i think this proposal misses the point, runit would still only restart if it knows failure happens
<ytti> eam, while my approach considers failure happened, unless we get information of success
axisys has joined #ruby
<ytti> eam, it's far more robust way to do it
<eam> ytti: yeah, you're monitoring - agreed you want both
<ytti> eam, in runit scenario, the problem recurses
<eam> well, it doesn't recurse
<eam> runit is run by init
<eam> init is guaranteed to be up
<ytti> yes, but now we need to monitor runit
blackmesa has quit [Ping timeout: 240 seconds]
<eam> sure, monitoring is different than process supervision
<ytti> and if we build solution to monitor runit, we need to monitor that solution
<eam> agreed you should determine and measure your success criteria
<eam> well, you don't actually
<eam> typically you want to monitor *only* the success criteria for an app
<eam> and no other metrics
<ytti> specifically absense of information about failure, does not mean failure didn't occur
<eam> eg, can I successfully fetch /_status via https? Within a bounded latency? Without error rate? If so, I don't care about load average, CPU, or any other secondary factors
TheHodge has quit [Quit: Connection closed for inactivity]
<eam> you wouldn't want to monitor something like runit
htmldrum has quit [Ping timeout: 272 seconds]
<ytti> agreed, but if runit is my solution to monitor app, then i would (hence recursion)
<eam> yeah, it's not that
<ytti> i think most nms solutions appraoch to problem this way, they are looking for failures
<eam> "ensure running" is different from "ensure operationally sound"
<ytti> which is very fragile way to solve the problem
<ytti> compared to looking for absense of success
duncannz has joined #ruby
<eam> most monitoring is garbage
<ytti> which is inherently robust (with higher chance of false positives, obviously)
<ElSif> from what you have said i think you really just want a route in your app for nagios to hit with an active check
<eam> one that exercises the database, naturally :)
<ElSif> sure
<ElSif> and trys an email too
<eam> pretty quick, I think you can converge on "run all my tests in production, continually"
<ytti> i should sleep instead of trying to solve this now, it's 5am and roosters are already crowing :/
<ElSif> because if it aint broken, we had better keep checking
<ElSif> ytti: sleep is always the right answer
<ytti> i thought it would be peace and quiet in country-side, much noisier than in central helsinki
rattatmatt has joined #ruby
RegulationD has joined #ruby
rattatmatt has quit [Client Quit]
rattatmatt has joined #ruby
<shevy> you forgot that finns love two things
<shevy> (1) sauna
<shevy> (2) party !!!
mattwildig has joined #ruby
<shevy> You can't go wrong with Eläkeläiset
bruno- has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
bruno- is now known as Guest1079
RobertBirnie has joined #ruby
ReK2 has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
<Yzguy> random thought: what if you made some tutorial thing for git. like clone this repo, run like rake level:1
Rickmasta has joined #ruby
<Yzguy> then you get README with a challenge
<Radar> Yzguy: it's been done: http://rubykoans.com/
<Yzguy> dammit
<Yzguy> this is for ruby though, i mean like to learn git stuff.
<Yzguy> same idea though
<Yzguy> like commit a file and push to master, level 1 done, level 2, etc. level 10 is like cherry pick a commit from branch x into branch y
<Yzguy> curious how feasible that would be.
d10n-work has quit [Quit: Connection closed for inactivity]
qiukun has joined #ruby
<Ox0dea> By the same folks who started the Ruby Koans, it seems.
Guest1079 has quit [Ping timeout: 250 seconds]
<Yzguy> i will never have an original idea...
<Yzguy> haha
weemsledeux has joined #ruby
baweaver has joined #ruby
benlovell has quit [Ping timeout: 255 seconds]
<Yzguy> well yeah, this is exactly what i was thinking
_blizzy_ has quit [Quit: Leaving]
<edj> whats the difference between a lambda and a method?
reaVer has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
<FailBit> lambdas are objects
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FailBit> methods are... methods
<shevy> Yzguy hah I thought about that too, all my ideas other people may have had, but the bigger ideas, when you don't see anyone having implemented it, now this is where you could shine - by using that idea to build something grand
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
baweaver has quit [Ping timeout: 240 seconds]
mjuszczak has quit []
<Yzguy> most of the time I find someone else did it so i get discouraged and stop doing it
bigkevmcd has quit [Ping timeout: 240 seconds]
infamos has joined #ruby
qiukun has quit [Remote host closed the connection]
dikaio has joined #ruby
<Ox0dea> edj: They both encapsulate the basic notion of a "function", but a method is a function attached to an object, and a lambda is a function without a name.
qiukun has joined #ruby
hxegon has joined #ruby
<Ox0dea> >> m = 42.method(:to_s); [m.name, m.owner] # edj
<ruboto> Ox0dea # => [:to_s, Fixnum] (https://eval.in/466692)
<Ox0dea> See, a method has a name and an owner; a lambda has neither.
ruby761 has joined #ruby
<edj> so a lambda can just take an argument where a method needs an actual object
<Yzguy> fawk....systemctl restart network, meant to do httpd
ruby761 has quit [Client Quit]
xcesariox has joined #ruby
favadi has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<Ox0dea> edj: Your question belies some fundamental misunderstanding, but I'm having trouble pinpointing exactly what that might be.
<Yzguy> have you guys heard of facebook osquery? I think it'd be kind of neat to use that as the backend of a rails app
<Ox0dea> Could you clarify your understanding of what constitutes an "actual object"?
reaVer has joined #ruby
pygospa has quit [Ping timeout: 252 seconds]
hxegon has quit [Ping timeout: 252 seconds]
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shadoi has quit [Quit: Leaving.]
Arkon has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
vdamewood has quit [Ping timeout: 260 seconds]
Arkon has joined #ruby
sdwrage has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
craigp has joined #ruby
mjuszczak has joined #ruby
craigp has quit [Client Quit]
jfranz2 has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
<jfranz2> Noob here, how can I make this script work - http://pastebin.com/rAVyyUhZ
<ruboto> jfranz2, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e1d4571c44136a73eb6a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Arkon has quit [Ping timeout: 265 seconds]
<Ox0dea> jfranz2: `gets.chomp` will never be `nil`, so there's no point in checking that; you probably want to check whether `fourword` is empty instead.
<Ox0dea> And then you have an off-by-one error on Line 10.
UtkarshRay has quit [Quit: Leaving]
UtkarshRay has joined #ruby
pdoherty has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
sankaber has quit [Remote host closed the connection]
<jfranz2> Line 10 is supposed to say "elsif fourword.length > 4", oops. Also thanks, I didn't know that.
sankaber has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Remote host closed the connection]
<ElSif> also, checking for equality to nil is not terribly pretty :) you can just check truthyness
UtkarshRay has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cesario has joined #ruby
<ElSif> (sounds like you get that though)
claptor has quit [Quit: this channel is bakas]
UtkarshRay has quit [Remote host closed the connection]
_kfpratt has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 250 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ElSif> somone recently said to me that a ruby slack channel would be better for ruby discussion than a ruby irc because it is more available to less technical people. I am curious about anyones thoughts on this.
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Why are "less technical" people in a programming language channel?
favadi has quit [Read error: Connection reset by peer]
<ElSif> yea, very good question but also didn't take the discussion beyond 'well they can have good input too'
<ElSif> do you think it would just be too noisy for good discussion?
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
<Fire-Dragon-DoL> ok folks, leaving to play some FTL
<Fire-Dragon-DoL> good night ;)
<ElSif> it seems like an oddly controversial topic... im not against it but i really don't see slack as terribly simpler to use than irc. is the real problem just a buzz-service one? new service that has pretty buttons is better?
favadi has joined #ruby
Fire-Dragon-DoL has quit []
<ElSif> godspeed Fire-Dragon-DoL
<Ox0dea> Now he's gonna go to Hell. :<
<ElSif> i didn't get that feeling....
<shevy> what happened to people using an IRC client to connect to irc
<Ox0dea> Well, he left just before your godspeed got through.
<Ox0dea> It still baffles me that things like Arch and IRC are perceived to be "difficult".
<ElSif> yea....
<shevy> arch became a distribution for the clever
<ElSif> i didn't realise reading the manual was clever ;)
<Ox0dea> I guess that's it, isn't it? The average person can't stand to read.
<shevy> you can read manuals all day long
kp666 has quit [Quit: Leaving]
<ElSif> i don't know that it really is that, i think some of it is just different strokes for different computer folks
mattwildig has quit [Remote host closed the connection]
pwnd_nfsw has joined #ruby
<shevy> I knew of a swedish gentoo dude who went the arch route, then lateron went back again to gentoo stating that it allowed for him to customize and optimize more than arch
<ElSif> <3
blackmesa has joined #ruby
<ElSif> gentoo, for wen every picosecond counts
<dorei> shevy: let's hope that he installed gentoo only on his computer
trosborn has joined #ruby
qiukun has quit [Quit: qiukun]
<shevy> I think so, he was a radical
<ElSif> a FREE radical???
<shevy> he'd preach about how awesome arch is, then one day suddenly was back at gentoo :D
<ElSif> sorry...
<ElSif> i don't think i will be doing that any time soon
<ElSif> though installing gentoo is great fun
<shevy> he also was using ruby. It always felt unclean for me to want to use gentoo's python portage
<Ox0dea> Is it?
<ElSif> oh yea, when you get that final emerge started and just lean back watching the whole system compile you feel great
<shevy> I once tried to install gentoo. one had to compile from source. I put it on my laptop, things took so long, I went to bed. I woke up, and some compile error happened
<shevy> yeah unless you hit some error
<ElSif> yea, laptop with gentoo = don't update on battery power
<Ox0dea> You learn much more about gcc's diagnostic messages than you do Linux by installing Gentoo.
<ElSif> ^ this is true
<ElSif> but there is some overlap there
<Ox0dea> ^ This is true.
blackmesa has quit [Ping timeout: 240 seconds]
<ElSif> dam, urs was actually funny
kfpratt has joined #ruby
mozzarella has quit [Ping timeout: 244 seconds]
<Ox0dea> >> /\p{Radical}/
<ruboto> Ox0dea # => /\p{Radical}/ (https://eval.in/466697)
<Ox0dea> I knew there was something.
solocshaw has joined #ruby
mjuszczak has quit []
<ElSif> i do have 1 real gripe with slack, and that is that long text 'snippets' lag the render time on my laptop horribly
peppers has joined #ruby
<shevy> everything changes
<eam> is that the only gripe? I have plenty more
trabulmonkee has quit []
<dorei> slack was asking for my email, i stopped there
<ElSif> ha, if only i could
<ElSif> slack seems to have become a love affair here in portland
<shevy> dorei you have something to hide!
<Ox0dea> I'm phoning the authorities!
<eam> my employer uses it unfortunately :( it's right up there with other contenders in this space: MS Exchange, Lotus Notes
<shevy> hah
<dorei> shevy: i think not having an fb account is more suspicious :p
<eam> I'm astounded that anyone can get interested in shitty business middleware like this
<shevy> dorei do you have one?
<Ox0dea> shevy: They just said they didn't.
<dorei> lotus notes? so, it still exists xD
Meow-J has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<eam> the slack of yesteryear
<dorei> shevy: nop, but i'm thinking of making one so as not raise flags
<shevy> aha
<eam> Stable release: 9.0.1 FP4 / June 17, 2015; 4 months ago
<ElSif> once i had to use bank software fromt he early 90s i became pretty desenstised to griping about company software :p
daivyk has joined #ruby
djbkd has quit [Quit: My people need me...]
<jfranz2> Okay, here is my revised code: https://gist.github.com/anonymous/7d7cc009a8e25f63978b -- how can I make it so line 8 only activates when "fourword" is not empty.
aaeron has quit [Quit: Leaving.]
<ElSif> !!!
djstorm has joined #ruby
bruno- has joined #ruby
<eam> jfranz2: !fourword.empty? && fourword.length < 4
bruno- is now known as Guest18104
<Ox0dea> jfranz2: You should just check whether the input is empty first.
gambl0re has joined #ruby
trosborn has quit [Quit: trosborn]
<jfranz2> Thanks guys, that made it work.
trosborn has joined #ruby
trosborn has quit [Client Quit]
<Ox0dea> jfranz2: Have some learnin's: https://eval.in/466698
<Ox0dea> Ignore the error output; I forgot to provide something on stdin, but I swear it works.
Guest18104 has quit [Ping timeout: 260 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
baweaver has joined #ruby
braincrash has quit [Quit: bye bye]
gix has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
araujo_ has quit [Quit: Leaving]
roxtrongo has joined #ruby
tkuchiki has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<Ox0dea> Why am I not surprised? https://eval.in/66666
baweaver has quit [Remote host closed the connection]
axsuul has joined #ruby
baweaver has joined #ruby
braincrash has joined #ruby
_kfpratt has joined #ruby
gix has joined #ruby
roxtrongo has quit [Ping timeout: 250 seconds]
Eiam_ has joined #ruby
trosborn has joined #ruby
kfpratt has quit [Ping timeout: 240 seconds]
simplyianm has joined #ruby
towski_ has joined #ruby
s00pcan has quit [Remote host closed the connection]
jfranz2 has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 240 seconds]
x-light has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
braincra- has joined #ruby
phillips1012 has joined #ruby
DLSteve has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
solenoids has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
tkuchiki has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
dravine has quit [Ping timeout: 264 seconds]
dravine_ has joined #ruby
dravine_ is now known as dravine
jackjackdripper has joined #ruby
hxegon has joined #ruby
colegatron has joined #ruby
fschuindt has joined #ruby
vdamewood has joined #ruby
<fschuindt> Is it possible in Ruby to "mock" a class? For instance, @foo.bar = true, without a object @foo, just mock up the call to return true.
joneshf-laptop has joined #ruby
ThatsNotJack has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ThatsNotJack has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
B1n4r10 has joined #ruby
kp666 has joined #ruby
ThatsNotJack has quit [Remote host closed the connection]
kp666 has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
kp666 has joined #ruby
astrobunny has joined #ruby
ThatsNotJack has joined #ruby
krz has joined #ruby
pygospa has joined #ruby
qiukun has joined #ruby
kp666 has quit [Max SendQ exceeded]
Guest99824 has joined #ruby
kp666 has joined #ruby
dorei has quit []
qiukun has quit [Client Quit]
B1n4r10 has quit [Ping timeout: 250 seconds]
Guest99824 has quit [Client Quit]
TheNet has quit [Remote host closed the connection]
blackmesa has joined #ruby
mghaig has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
pdoherty has quit [Quit: Leaving]
benlovell has joined #ruby
mghaig has quit [Client Quit]
techietrash has joined #ruby
eminencehc has joined #ruby
makenoise has joined #ruby
eminencehc has quit [Remote host closed the connection]
mghaig has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<fschuindt> havenwood: cool, ty
benlovell has quit [Ping timeout: 272 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
darkf has joined #ruby
Yzguy has quit [Quit: Zzz...]
flip_digits has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
cmoneylulz has joined #ruby
<havenwood> fschuindt: np
bruno- has joined #ruby
bruno- is now known as Guest12065
mghaig has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has joined #ruby
vdamewood has quit [Quit: Life beckons.]
Guest12065 has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby
charliesome has joined #ruby
qiukun has quit [Client Quit]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Rickmasta has joined #ruby
Hobbyboy has quit [Quit: I think the BNC broke.]
krz has quit [Quit: WeeChat 1.2]
patdohere has joined #ruby
ponga has joined #ruby
edj has quit [Quit: Page closed]
qiukun has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
daivyk has quit [Quit: ZZZzzz…]
patdohere has quit [Ping timeout: 255 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patdohere has joined #ruby
haasn has quit [Ping timeout: 250 seconds]
rattatmatt has quit [Ping timeout: 276 seconds]
Hobbyboy has joined #ruby
molay has joined #ruby
towski_ has quit [Remote host closed the connection]
<molay> I'm looking to get started with TDD (mainly bdd) and i've heard of rspec. Where's the best place for me to start? I done some reading on rspec, but i'm having trouble wrapping my head around it
trosborn has quit [Quit: trosborn]
<makenoise> that was my first intro to it
rattatmatt has joined #ruby
<molay> oh yeah that's a good site.
<molay> makenoise: thanks!
<makenoise> np
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<molay> ok next question, i need a website that will make me smarter in general...
<molay> because i'm partially retarded..
<molay> well, maybe learning to program makes me feel that way...
<makenoise> that just means you are doing it right
<molay> haha
<makenoise> browse around the rest of that site i sent you, amazing resource
weemsledeux has joined #ruby
TheNet has quit [Quit: Leaving...]
<molay> actually, yes, I've been to this site before.. It rocks. I keep forgetting to go back
cmoneylulz has quit [Remote host closed the connection]
makenoise has quit []
akem has joined #ruby
makenoise has joined #ruby
kies has quit [Ping timeout: 276 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
CloCkWeRX has joined #ruby
<Radar> molay: Do you know any Ruby?
ElSif has quit [Read error: Connection reset by peer]
aaeron has joined #ruby
<makenoise> You can try me, there's a ton of people on here too that will speak up if I can't help.
SpikeMaster has joined #ruby
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
qiukun has quit [Quit: qiukun]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElSif has joined #ruby
wildlander has joined #ruby
agent_white has joined #ruby
ngscheurich has joined #ruby
mattwildig has joined #ruby
ngscheurich has quit [Client Quit]
subscope has joined #ruby
<agent_white> Evenin' folks
baweaver has quit [Remote host closed the connection]
blackmesa has joined #ruby
favadi has joined #ruby
kerunaru has joined #ruby
mozzarella has joined #ruby
mattwildig has quit [Ping timeout: 260 seconds]
beast has joined #ruby
qiukun has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
kies has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
techietrash has quit [Quit: Bye! <(^_^<)]
kies has joined #ruby
mghaig has joined #ruby
ElSif has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
tmtwd has quit [Ping timeout: 240 seconds]
<Radar> good evening agent_white
mghaig has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
ss_much has joined #ruby
skade has joined #ruby
JosephBriggs has joined #ruby
trosborn has joined #ruby
<JosephBriggs> why aren't black programmers as competent as the Asian, brown, or white ones?
<havenwood> !mute JosephBriggs
JosephBriggs has left #ruby [#ruby]
havenwoood has joined #ruby
<havenwoood> I hate niggers
<havenwood> !mute havenwoood
<Radar> !ban havenwoood
<Radar> !ban havenwoood !T 1d
havenwoood was kicked from #ruby by ChanServ [User is banned from this channel]
<pontiki> that was surreal
Radarr has joined #ruby
Radarr was kicked from #ruby by ChanServ [User is banned from this channel]
howdoi has joined #ruby
grekko has joined #ruby
grekko has joined #ruby
blubjr` has joined #ruby
safe has joined #ruby
darkf_ has joined #ruby
mgorbach_ has joined #ruby
favadi has quit [Read error: Connection reset by peer]
mgorbach has quit [Ping timeout: 240 seconds]
mgorbach_ is now known as mgorbach
roxtrongo has joined #ruby
crdpink2 has quit [Excess Flood]
dh64 has quit [Read error: Connection reset by peer]
blubjr has quit [Ping timeout: 240 seconds]
_kfpratt has quit [Remote host closed the connection]
crdpink2 has joined #ruby
darkf has quit [Ping timeout: 240 seconds]
dh64 has joined #ruby
<molay> Radar: yes i know some ruby. i'm learning
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<akem> i found the bug bible down my lower back
trosborn has quit [Quit: trosborn]
hxegon has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Ping timeout: 240 seconds]
Guest71666 is now known as awk
chrissonar has joined #ruby
beast has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
favadi has joined #ruby
norc has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
adac has joined #ruby
dhjondoh has joined #ruby
DanKnox[away] is now known as DanKnox
tmtwd has joined #ruby
djbkd has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
darkf_ is now known as darkf
devoldmx has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
grekko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flip_digits has joined #ruby
lettuce has joined #ruby
devoldmx has joined #ruby
lettuce is now known as Guest92870
trosborn has quit [Quit: trosborn]
peppers has quit [Ping timeout: 246 seconds]
flip_digits has quit [Ping timeout: 255 seconds]
Guest92870 has quit [Client Quit]
tmtwd has quit [Ping timeout: 276 seconds]
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
norc_ has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
aganov has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arkon has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
marcosantoniocar has quit [Read error: Connection reset by peer]
norc has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
x-light has joined #ruby
ruby-lang609 has joined #ruby
simplyianm has quit [Remote host closed the connection]
griffindy has joined #ruby
simplyianm has joined #ruby
ruby-lang609 has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
User458764 has joined #ruby
blackmesa has joined #ruby
gard_ has joined #ruby
luriv_ has joined #ruby
luriv_ has quit [Read error: Connection reset by peer]
magic__ has joined #ruby
magic__ has quit [Remote host closed the connection]
<norc_> Okay, this is neat and disgusting at the same time...
kuya5 has left #ruby ["Leaving"]
lsv has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
ponga has quit []
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
Pupp3tm4st3r has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
bruno- is now known as Guest78759
ta has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
adac has quit [Ping timeout: 240 seconds]
davedev2_ has quit []
lxsameer has joined #ruby
lxsameer has joined #ruby
Coldblackice has joined #ruby
kerunaru has joined #ruby
aaeron has joined #ruby
Guest78759 has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
roxtrongo has joined #ruby
exadeci has joined #ruby
aaeron has quit [Client Quit]
Feyn has joined #ruby
makenoise has quit []
grekko has joined #ruby
rattatmatt has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 244 seconds]
rattatmatt has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
boshhead has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
lsmola has joined #ruby
boshhead has joined #ruby
gagrio|gone is now known as gagrio|
gagrio| is now known as gagrio
x-light has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
Voker57 has quit [Remote host closed the connection]
AustinMatherne has quit [Remote host closed the connection]
trosborn has joined #ruby
AustinMatherne has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
ta has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
hxegon_ has joined #ruby
hxegon has quit [Ping timeout: 276 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
sebstrax has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
bigkevmcd has joined #ruby
grekko has quit [Quit: Textual IRC Client: www.textualapp.com]
flip_digits has joined #ruby
maletor has joined #ruby
benlieb has joined #ruby
Caius has quit [Quit: ""]
akem has quit [Ping timeout: 255 seconds]
Caius has joined #ruby
flip_digits has quit [Ping timeout: 276 seconds]
polysics has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terminalrecluse has joined #ruby
chriscoffee has quit [Read error: Connection reset by peer]
catbusters has quit [Ping timeout: 246 seconds]
mghaig has joined #ruby
tkuchiki_ has joined #ruby
terminalrecluse has quit [Client Quit]
benlieb_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
yeticry_ has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 244 seconds]
wlanboy has quit [Ping timeout: 244 seconds]
nirix has quit [Ping timeout: 244 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
agent_white has quit [Read error: Connection reset by peer]
nirix has joined #ruby
Kruppe has quit [Ping timeout: 255 seconds]
trosborn has quit [Quit: trosborn]
armyriad has quit [Ping timeout: 240 seconds]
favadi has quit [Ping timeout: 244 seconds]
swgillespie has quit [Ping timeout: 250 seconds]
crowell has quit [Ping timeout: 244 seconds]
riceandbeans has quit [Ping timeout: 244 seconds]
benlieb has quit [Ping timeout: 260 seconds]
diesel has quit [Ping timeout: 260 seconds]
benlieb_ is now known as benlieb
diesel has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
LiquidInsect has quit [Ping timeout: 244 seconds]
crowell has joined #ruby
Kruppe has joined #ruby
armyriad has joined #ruby
krz has joined #ruby
Synthead has joined #ruby
nchambers is now known as dts|pokeball
wlanboy has joined #ruby
yeticry has joined #ruby
mghaig has quit [Ping timeout: 252 seconds]
minimalism has quit [Ping timeout: 276 seconds]
LiquidInsect has joined #ruby
minimalism has joined #ruby
zacts has joined #ruby
trosborn has joined #ruby
agent_white has joined #ruby
terminalrecluse has joined #ruby
baweaver has joined #ruby
DoubleMalt has joined #ruby
solars has joined #ruby
blackmesa has joined #ruby
bricker_ has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
minimalism has quit [Client Quit]
bricker has quit [Ping timeout: 250 seconds]
SenpaiSilver has quit [Read error: Connection reset by peer]
* norc_ pokes shevy with a japanese coding stick
SenpaiSilver has joined #ruby
<norc_> I have again written a line of Ruby code.
aganov has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 244 seconds]
mark1 has joined #ruby
tagrudev has quit [Remote host closed the connection]
stan has joined #ruby
krz has quit [Ping timeout: 244 seconds]
<certainty> good!
<certainty> now have a jelly sandwhich
LiquidInsect has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
krz has joined #ruby
minimalism has joined #ruby
<norc_> certainty: Meh, not sure my stomach would be thankful if I did that.
ianchentw has joined #ruby
teclator has joined #ruby
Guest23234 is now known as mist
aganov has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tagrudev has joined #ruby
ta has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mloy is now known as momloy
asas has joined #ruby
skade has joined #ruby
Synthead has joined #ruby
trosborn has quit [Quit: trosborn]
qiukun has quit [Quit: qiukun]
symm- has quit [Ping timeout: 240 seconds]
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
subscope has joined #ruby
gard_ has quit [Remote host closed the connection]
qiukun has joined #ruby
trosborn has joined #ruby
dikaio has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has quit [Client Quit]
Arkon has quit [Ping timeout: 246 seconds]
TomyWork has joined #ruby
djbkd has quit [Remote host closed the connection]
qiukun has joined #ruby
amclain has quit [Quit: Leaving]
favadi has joined #ruby
minimalism has quit [Quit: leaving]
maletor has joined #ruby
momloy has quit [Ping timeout: 260 seconds]
colegatron has quit [Remote host closed the connection]
polysics has quit []
nofxx has quit [Remote host closed the connection]
safe has quit [Quit: Leaving]
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has joined #ruby
asas has quit []
SCHAAP137 has joined #ruby
adac has joined #ruby
DanKnox is now known as DanKnox[away]
kimegede has joined #ruby
skade has quit [Ping timeout: 250 seconds]
<atmosx> Hello, can someone figure out what is going on here? https://gist.github.com/atmosx/00bf66625d0c43bc80b4 the problem seems to be the 'gets.chomp' method: https://gist.github.com/atmosx/00bf66625d0c43bc80b4#file-rakefile-L18
benlovell has joined #ruby
Coldblackice has joined #ruby
mblagden has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
lukaszes has joined #ruby
jiada has joined #ruby
jiada has quit [Client Quit]
aufi has joined #ruby
govg has quit [Ping timeout: 265 seconds]
DanKnox[away] is now known as DanKnox
tulak has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
__desmondhume has joined #ruby
agent_white has quit [Quit: brb]
catbusters has joined #ruby
ZYPP is now known as hool
waka has quit [Remote host closed the connection]
marienz has quit [Quit: upgrades]
teclator has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
cicloid has joined #ruby
marienz has joined #ruby
blaxter has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
User458764 has joined #ruby
Hounddog has joined #ruby
minimalism has joined #ruby
blackmesa has joined #ruby
hxegon_ has quit [Ping timeout: 264 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teclator has joined #ruby
scmx has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
neanderslob_ has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
neanderslob has quit [Ping timeout: 276 seconds]
TheHodge has joined #ruby
Hounddog has joined #ruby
codecop has joined #ruby
karapetyan has joined #ruby
Rodya_ has joined #ruby
phillips1012 has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
nfk|laptop has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
bruno- has joined #ruby
lipoqil has joined #ruby
bruno- is now known as Guest24821
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
joneshf-laptop has quit [Ping timeout: 265 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest24821 has quit [Ping timeout: 250 seconds]
skade has joined #ruby
subscope has joined #ruby
roxtrongo has joined #ruby
beast has joined #ruby
trosborn has quit [Quit: trosborn]
qiukun has quit [Quit: qiukun]
maokomioko has joined #ruby
maokomioko has quit [Client Quit]
roxtrongo has quit [Ping timeout: 260 seconds]
phillips1012 has joined #ruby
Xzanron has joined #ruby
marr has joined #ruby
Azure has quit [Quit: Oops.]
zotherstupidguy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
wprice has quit [Quit: wprice]
weckl has joined #ruby
antgel has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
tomphp has joined #ruby
vigintas has joined #ruby
timonv has joined #ruby
emilkarl has joined #ruby
lukaszes has joined #ruby
mghaig has joined #ruby
rbowlby has quit [Remote host closed the connection]
flip_digits has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
darkf_ has joined #ruby
mghaig has quit [Ping timeout: 250 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
waka has joined #ruby
dkam has joined #ruby
flip_digits has quit [Ping timeout: 246 seconds]
<zotherstupidguy> anyone from ukraine? need some info! whats the other group for non-ruby related talk?
trosborn has joined #ruby
darkf has quit [Ping timeout: 246 seconds]
<apeiros> zotherstupidguy: offtopic is in #ruby-offtopic
<apeiros> not sure whether there's an ukrainian ruby channel
leafybas_ has joined #ruby
krz has quit [Ping timeout: 264 seconds]
neanderslob_ has quit [Remote host closed the connection]
howdoi has joined #ruby
mooe has joined #ruby
neanderslob has joined #ruby
astrobunny has quit [Remote host closed the connection]
mattwildig has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmolina has joined #ruby
krz has joined #ruby
blackmesa has joined #ruby
shredding has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
dkam has quit [Quit: Be back later ...]
mattwildig has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
dmolina has left #ruby [#ruby]
diegoaguilar has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
leafybas_ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
<yorickpeterse> morning
dtordable has quit [Quit: Lost terminal]
vigintas has quit [Quit: vigintas]
baweaver has quit [Ping timeout: 240 seconds]
vigintas has joined #ruby
jamesaxl has joined #ruby
rodfersou has joined #ruby
c0m0 has joined #ruby
subscope has joined #ruby
lapide_viridi has joined #ruby
waka has quit [Remote host closed the connection]
waka has joined #ruby
waka_ has joined #ruby
Rodya_ has joined #ruby
platzhirsch has joined #ruby
stamina has joined #ruby
joneshf-laptop has joined #ruby
arne has joined #ruby
TPBallbag has joined #ruby
<shevy> norc_ you probably copy/pasted something from stackoverflow :)
nfk|laptop has quit [Ping timeout: 260 seconds]
Cesario has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has quit [Ping timeout: 240 seconds]
<arne> :( how do i require files that depend on each other, having the files prefixed with 00_ etc feels hacky to me
<shevy> that can be tricky but usually one of the files is further down the base
<arne> nyeh
neanderslob has quit [Remote host closed the connection]
<arne> somehow i thought, ruby will not care about not yet defined classes
Rodya_ has quit [Ping timeout: 255 seconds]
<certainty> depends where you reference them
<apeiros> it does not. only when you try to use them it will.
trosborn has quit [Quit: trosborn]
<shevy> well you have to be consistent in what you pull in and define when; class Foo versus class Foo < Bar would be two different ones
<apeiros> ruby also does not care about the name of the file you require, so prefixing with 00_ is only for you, not for ruby
<arne> apeiros, i know but it "fixes" the problem
<apeiros> arne: no
dtordable has joined #ruby
bruno- has joined #ruby
<apeiros> arne: something else fixes the problem. definitively not the change of names of required files.
<arne> well i do files_in_folder.each { |file| require file}
tagrudev has quit [Remote host closed the connection]
<apeiros> so there's your answer.
bruno- is now known as Guest7653
<arne> so it does "fix" the problem, but i wouldn't go as far and call it a fix :D
<apeiros> don't use .each. be explicit in requires and fix the ordering.
waka has quit [Remote host closed the connection]
waka_ has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
<arne> yeah, but as i said, having the order in filenames seems hacky to me
<apeiros> shevy: `class Foo < Bar; end; class Foo; end` works, whereas `class Foo; end; class Foo < Bar; end` does not
<apeiros> arne: as said, DONT HAVE THEM in the filenames.
waka has joined #ruby
<apeiros> have them in the way you require
nfk|laptop has joined #ruby
<arne> you mean doing it by hand? writing the names?
neanderslob has joined #ruby
<apeiros> and even then it's not necessary if the files which have dependencies require those themselves.
<apeiros> arne: d'uh. yes.
<arne> but.. im lazy :(
<apeiros> then let the computer write the requires for you.
<shevy> build it like a lego pyramid
<certainty> have a jelly sandwhich
<shevy> certainty likes sandwhiches
<arne> yeah, i should have done that, when deciding my folder-structure, but i didn't know about that problem back then
<certainty> shevy: nope, just want others to eat them
<certainty> it's my fetish
riffraff has joined #ruby
platzhirsch has joined #ruby
Guest7653 has quit [Ping timeout: 250 seconds]
<shevy> I remember back when I moved from ruby 1.8.x to ruby 1.9.x and beyond, there were the new "circular loading in progress" warnings
<shevy> that took a while before I could resolve that. was quite annoying actually
<certainty> shevy: last week you mean?
dionysus69 has joined #ruby
akem has joined #ruby
<shevy> some years ago
<certainty> oh right, list week you finally switched to unicode
DEA7TH has joined #ruby
<certainty> :D
<adaedra>
<shevy> no, I am unicode free
exadeci has quit [Quit: Connection closed for inactivity]
Cesario has joined #ruby
<certainty> :)
Peg-leg has joined #ruby
<arne> bleh, if C is a subclass of B and B is a subclass of A, C isn't a subclass of A?
<certainty> erm
<adaedra> >> class A; end; class B < A; end; class C < B; end; C.new.is_a? A
<ruboto> adaedra # => true (https://eval.in/466931)
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dkam has joined #ruby
Freeaqingme has quit [Ping timeout: 250 seconds]
<tobiasvl> >> class A; end; class B < A; end; class C < B; end; C.ancestors
<ruboto> tobiasvl # => [C, B, A, Object, Kernel, BasicObject] (https://eval.in/466932)
<arne> webmachine does not think so, aswell
<apeiros> >> class A; end; class B < A; end; class C < B; end; C < A
<ruboto> apeiros # => true (https://eval.in/466934)
<apeiros> no need to instantiate
moeabdol has quit [Quit: WeeChat 1.3]
Freeaqingme has joined #ruby
<norc_> shevy: I actually wrote a test case for a ruby bug I reported.
<shevy> you broke ruby :(
lukaszes has joined #ruby
dkam has quit [Ping timeout: 260 seconds]
<norc_> Koichi did.
krz has quit [Ping timeout: 264 seconds]
<norc_> git blame is extremely satisfying.
<certainty> bad name
<certainty> imho
<norc_> Yeah.
mercerist has joined #ruby
<shevy> I guess git was picked because it's so short to type
<norc_> not shorter than svn tho
<norc_> or cvs...
<adaedra> and longer than hg.
<tobiasvl> hg is shorter
<tobiasvl> "blame" is just a holdover from earlier vcs I guess, but svn has aliases for it: praise, annotate
<certainty> as does hg
<adaedra> and hg has out-of-the box shortcuts like ci or st, making its use even shorter.
<adaedra> :p
zotherstupidguy has quit [Ping timeout: 260 seconds]
* certainty likes hg
<certainty> but git just has so much support
DanKnox is now known as DanKnox[away]
haasn has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<adaedra> ^
<adaedra> I'm not the only one D:
mghaig has joined #ruby
<norc_> The big advantage git has is that its difficult enough to use that it automatically sorts out idiots.
<certainty> i don't think that's true
<adaedra> They'll put their code on Dropbox and call it a day.
<certainty> "idiots" will manage to do serious damage though
<certainty> much harder in stock hg
blackmesa has quit [Ping timeout: 250 seconds]
<adaedra> (And yes, I've seen people doing collaborative code work through Dropbox.)
<norc_> I have actually seen a major company doing a 20 men project for production software in avionics use an FTP server for VCS...
<norc_> For years people would overwrite each others changes. It was really amusing to watch.
<oddmunds> :|
ibouvousaime has joined #ruby
<shevy> what is wrong with FTP
<adaedra> Everything.
<certainty> nothing shevy
<norc_> you mean because its also 3 letters like cvs, svn or git?
<certainty> go back to sleep
<norc_> :-)
akem has quit [Quit: Bye]
mghaig has quit [Ping timeout: 272 seconds]
<norc_> Okay, Im beginning to feel that "Ruby under a microscope" still lacks the magnification that I want.
<adaedra> You need to go deeper?
<norc_> Yeah.
waka has quit [Remote host closed the connection]
waka has joined #ruby
<norc_> I mean I have already started stepping through the YARV compiler by hand. But the sheer lack of documentation in the source code makes this hard.
maikowblue has joined #ruby
flip_digits has joined #ruby
duncannz has quit [Remote host closed the connection]
bnizzle has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
blackmesa has joined #ruby
flip_digits has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
DanKnox[away] is now known as DanKnox
last_staff has quit [Read error: Connection reset by peer]
seedinger has joined #ruby
neanderslob has joined #ruby
pandaant has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
neanderslob has quit [Remote host closed the connection]
bnizzle has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
lkba_ has joined #ruby
lukaszes has joined #ruby
sross07 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
sross07 has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
baweaver has joined #ruby
favadi has quit [Max SendQ exceeded]
Hounddog has quit [Ping timeout: 246 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 276 seconds]
ruurd has joined #ruby
seedinger has quit [Read error: Connection reset by peer]
subscope has joined #ruby
avril14th has joined #ruby
Xeago has quit [Remote host closed the connection]
Hounddog has joined #ruby
<avril14th> any reason why this wouldn't work? https://gist.github.com/muichkine/36a7f0b1f21a85501086
baweaver has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
Hounddog has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
bob_f has joined #ruby
<bob_f> Hi, using rspec, can somebody tell me how to correctly do `allow(obj).to receive(:method).with(:param1, :param2)` ?
<yorickpeterse> That's correct actually
zotherstupidguy has joined #ruby
<bob_f> I get an error telling me I must specify a default value when using this format, but if I prescribe a `and_call_original` method beforehand, the second line doesn't get called.
roxtrong_ has joined #ruby
<bob_f> I can pastebin code if needed.
Hounddog has quit [Excess Flood]
codecop has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
<bob_f> Sorry, by "the second line doesn't get called" I meant to say that the original is always called, never the stub I specify for those exact parameters.
codecop has joined #ruby
<avril14th> bob_f: code?
bruno- has joined #ruby
roxtrongo has quit [Ping timeout: 276 seconds]
<avril14th> anyone on my alias_method of scope thing? ;)
suchness has joined #ruby
Hounddog has quit [Excess Flood]
<avril14th> exit
bruno- is now known as Guest83560
<norc_> avril14th: Yeah.
Hounddog has joined #ruby
<suchness> I didn't get much response in the ##English channel, maybe you guys can help me with a name: I am looking for a word that fits the following definition: A person added to an event with the capacity to optionally manage or optionally attend the event.
<avril14th> suchness: supervisor
<norc_> avril14th: Well you have your answer. alias_method is a private method. ;-)
tkuchiki_ has quit [Read error: Connection reset by peer]
<DEA7TH> I'm considering making an open-source gem out of my system, but my idea is a bit unusual - most gems have a much more technical idea than mine. My gem will provide the common things for companies which need to make deliveries to / collections from customers. For example, pizza delivery or ironing services with driving as part of the service. Things like route visualization and optimization (TSP), JSON for an Android app for the driver, generator for custo
<DEA7TH> and JSON for mobile app for customers to make orders (Android and customer mobile apps will also be released). Can this be a gem?
Synthead has quit [Ping timeout: 244 seconds]
stan has quit [Quit: Leaving]
FernandoBasso has joined #ruby
<DEA7TH> generator for customer DB table*
Hounddog has quit [Excess Flood]
<norc_> avril14th: I think what you really want to do is to stub :woot
<DEA7TH> also it might include views for all those things, if I figure out how to do it with generators.
Hounddog has joined #ruby
<avril14th> norc_: I could indeed, thx
<suchness> avril14th: Hrm. I am not completely sold. I will have to think about that one.
<avril14th> bob_f: not sure what you're trying to do
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bob_f> I want to stub a call to a method only when specific params are passed, otherwise delegate to original.
<avril14th> bob_f: then use stub
<avril14th> with the described logic in it
<avril14th> norc_: actually the not funky thing is that stub does only exit in rspec files :)
lipoqil has quit [Quit: Connection closed for inactivity]
<avril14th> but well, will do
Hounddog has quit [Excess Flood]
<bob_f> avril14th: Huh, I thought `stub` was not correct any more - my mistake.
Guest83560 has quit [Ping timeout: 240 seconds]
<norc_> avril14th: Why are you trying to do that anyway?
Hounddog has joined #ruby
<DEA7TH> Or actually a Ruby gem is the same thing as a library in any other program, right?
<norc_> avril14th: If your factory expects an interface in your model - then provide it in your model.
<norc_> Dont monkey patch your model from your factory.
kimegede has quit [Quit: Leaving...]
<avril14th> norc_: well, Event is an abstract class. interface is provided in sub classes. but I don't want to do examples (test it on every sub class)
<norc_> avril14th: Then why does your factory take an abstract class?
lukaszes has joined #ruby
<norc_> Give it an implementation class instead.
DEA7TH has quit [Quit: DEA7TH]
<avril14th> indeed
DEA7TH has joined #ruby
Hounddog has quit [Excess Flood]
stan has joined #ruby
Hounddog has joined #ruby
htmldrum has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bob_f> avril14th: `stub` is deprecated.
Hounddog has quit [Excess Flood]
<avril14th> bob_f: , is it? I use it everywhere. let me see :)
Hounddog has joined #ruby
<bob_f> avril14th: Yeah. `allow` is the new preferred syntax.
dkam has joined #ruby
ruurd has joined #ruby
<avril14th> indeed
suman has joined #ruby
<suman> hi need help on timeouts in ruby
<avril14th> bob_f: your question makes more sense :)
<norc_> suman: Ask your question then :)
<bob_f> :)
mghaig has joined #ruby
Hounddog has quit [Excess Flood]
<avril14th> bob_f: don't think you can call allow to receive twice and have one or the other called depending on parameters. you have to set it once and then in the code, call original I'd say (tried super?)
Hounddog has joined #ruby
suman_ has joined #ruby
<suman_> i have a code in my app which use timeouts
DEA7TH has quit [Ping timeout: 250 seconds]
<suman_> Timeout::timeout($riak_client_timeout) { object = $note_body.get(key) }
Hounddog has quit [Excess Flood]
<suman_> i have a situation where the result of one request was replaced by another
Rickmasta has joined #ruby
<suman_> i doubt that was because of timeouts
<norc_> bob_f: This could be an XY problem stemming from design. Maybe what you really want is to stub out a method that is used by whatever you are trying to stub?
suman has quit [Ping timeout: 246 seconds]
Synthead has joined #ruby
<suman_> i am not able to reproduce can someone help on reproducing how the previous data can be retruned?
mghaig has quit [Ping timeout: 265 seconds]
Hounddog has joined #ruby
<norc_> bob_f: Otherwise http://ruby-doc.org/core-2.2.3/Object.html#method-i-method can help you there.
Hounddog has quit [Excess Flood]
<norc_> (Effectively copying before you stub it out, that way you can then use either)
<bob_f> norc_: I'm confused because the last spec here seems to do exactly what I want: https://relishapp.com/rspec/rspec-mocks/docs/configuring-responses/calling-the-original-implementation
dkam has quit [Ping timeout: 276 seconds]
lapideviridi has joined #ruby
Hounddog has joined #ruby
<norc_> bob_f: Oh that is neat, was not aware you could overload stubs like that
zotherstupidguy has quit [Read error: Connection reset by peer]
Lapide has joined #ruby
Lapide has quit [Client Quit]
lapide_viridi has quit [Ping timeout: 240 seconds]
lapideviridi has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
<DEA7TH> did I miss replies? connection went down
flip_digits has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
emilkarl has quit [Quit: emilkarl]
Kabal has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
<certainty> doesn't look like it
<apeiros> ?log DEA7TH
<ruboto> DEA7TH, I don't know anything about log
<apeiros> gra
<apeiros> ?logs DEA7TH
<ruboto> DEA7TH, You can find a log of this channel at http://irclog.whitequark.org/ruby/
<DEA7TH> public logs? I see
flip_digits has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
trosborn has quit [Client Quit]
bruno-_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gilesw> i'm having my first go at using omnibus
Hounddog has quit [Excess Flood]
<gilesw> but when i run bundle install --binstubs it appears to be using my system ruby
Hounddog has joined #ruby
<gilesw> i'm using rbenv setting ruby via a shim
beast_ has joined #ruby
<gilesw> i was expecting it to install the gems inside the omnibus directory
CloCkWeRX has left #ruby [#ruby]
daivyk has joined #ruby
mattwildig has joined #ruby
Rodya_ has joined #ruby
Xeago has joined #ruby
mostlybadfly has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 265 seconds]
mattwildig has quit [Ping timeout: 244 seconds]
Hounddog has joined #ruby
Rodya_ has quit [Ping timeout: 244 seconds]
dkam has joined #ruby
baweaver has joined #ruby
Cesario has quit [Quit: Textual IRC Client: www.textualapp.com]
riffraff has quit [Quit: This computer has gone to sleep]
s00pcan has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
emilkarl has joined #ruby
DanKnox is now known as DanKnox[away]
chipotle has joined #ruby
riffraff has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<norc_> >> 1 if ();
<ruboto> norc_ # => nil (https://eval.in/467021)
<norc_> Neat. Just figured out why this works. :)
<norc_> shevy: That is another line of code.
linduxed has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Ping timeout: 244 seconds]
dkam has quit [Ping timeout: 244 seconds]
<gregf_> >> ().class
<ruboto> gregf_ # => NilClass (https://eval.in/467026)
<gregf_> >> nil.class
<ruboto> gregf_ # => NilClass (https://eval.in/467027)
<norc_> gregf_: Even the first one makes perfect sense to me now. :)
kimegede has joined #ruby
<norc_> >> require 'ripper'; Ripper.sexp("().class")
<ruboto> norc_ # => [:program, [[:call, [:paren, [[:void_stmt]]], :".", [:@ident, "class", [1, 3]]]]] (https://eval.in/467028)
<norc_> Okay... and this is why I need
<norc_> This damn ruby bug to be fixed.
subscope has joined #ruby
<norc_> Or actually wait. No that first one is interesting now.
<norc_> >> RubyVM::InstructionSequence.compile("().class").disasm
<ruboto> norc_ # => "== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========\n0000 trace 1 ...check link for more (https://eval.in/467029)
<norc_> >> puts RubyVM::InstructionSequence.compile("().class").disasm
<ruboto> norc_ # => == disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>========== ...check link for more (https://eval.in/467030)
dkam has joined #ruby
<norc_> No makes sense again. :)
Synthead has quit [Ping timeout: 244 seconds]
<norc_> () should result in null node in the AST I think?
<bougyman> /25
dkam has quit [Ping timeout: 250 seconds]
seedinge_ has joined #ruby
mghaig has joined #ruby
DanKnox[away] is now known as DanKnox
_blizzy_ has joined #ruby
flip_digits has joined #ruby
zenguy_pc has joined #ruby
The_Ball has quit [Ping timeout: 272 seconds]
shredding has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
mghaig has quit [Ping timeout: 276 seconds]
The_Ball has joined #ruby
flip_digits has quit [Ping timeout: 250 seconds]
cajone has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 255 seconds]
ruurd has quit [Quit: ZZZzzz…]
Azure has joined #ruby
Synthead has joined #ruby
campestrini has joined #ruby
cajone has joined #ruby
bricker_ has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
kp666 has quit [Remote host closed the connection]
dkam has joined #ruby
<campestrini> After a long time, is nice to be using irc again
<campestrini> this is amazing, hahaha
ebbflowgo has joined #ruby
<certainty> why?
<adaedra> You have to ask why IRC is amazing?
<certainty> yeah
<oddmunds> this discussion will be great
rbowlby has joined #ruby
krz has joined #ruby
<__desmondhume> extinguishing enthusiasm at its finest
solocshaw has joined #ruby
<apeiros> curb your enthusiasm
dhjondoh has quit [Quit: dhjondoh]
campestrini has quit [Quit: Leaving]
<__desmondhume> :|
rbowlby has quit [Ping timeout: 246 seconds]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
indignatio has joined #ruby
dkam has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
blaxter has joined #ruby
sdothum has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
Xeago has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
benlovell has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
karapetyan has quit [Remote host closed the connection]
<skakri> Wooo IRC! \o/
DanKnox is now known as DanKnox[away]
syath has joined #ruby
<certainty> see?
TiuTalk has joined #ruby
Rodya_ has joined #ruby
krz has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
<__desmondhume> i agree with certainty btw, i'm new to IRC and it's not something you give for granted if you've never used it
<__desmondhume> sorry, with camilasan
<__desmondhume> f*ck campestrini
<__desmondhume> wrong quote. lol
krz has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
baweaver has joined #ruby
Xeago has quit [Remote host closed the connection]
dhjondoh has joined #ruby
luriv has joined #ruby
flip_digits has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
htmldrum has joined #ruby
riffraff has quit [Quit: Leaving]
minimalism has quit [Quit: leaving]
baweaver has quit [Ping timeout: 240 seconds]
k3asd` has joined #ruby
jdawgaz has joined #ruby
Xeago has joined #ruby
ruurd has joined #ruby
prestorium has quit [Quit: Leaving]
dtordable has quit [Quit: Lost terminal]
dkam has joined #ruby
benlovell has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
TiuTalk has quit [Quit: Leaving...]
dkam has quit [Read error: Connection reset by peer]
mghaig has joined #ruby
dkam has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
freerobby has joined #ruby
neohunter has joined #ruby
dlitvak has joined #ruby
benlovell has joined #ruby
dkam has quit [Ping timeout: 276 seconds]
mghaig has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
dkam has joined #ruby
lapide_viridi has joined #ruby
Pupp3tm4_ has joined #ruby
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 246 seconds]
Jardayn has joined #ruby
B1n4r10 has joined #ruby
Pupp3tm4st3r has joined #ruby
darkxploit has joined #ruby
hool is now known as ZYPP
flip_digits has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
Pupp3tm4_ has quit [Ping timeout: 240 seconds]
Feyn has quit [Quit: Leaving]
TheHodge has quit [Quit: Connection closed for inactivity]
bricker has joined #ruby
<darkxploit> hello guys. After having install ruby with rvm i noticed that my ruby is version 2.2.1p85 whereas on the official ruby website its 2.2.3 How do i update to latest
ruurd has quit [Quit: ZZZzzz…]
<FailBit> rvm install 2.2.3
mercerist has quit [Quit: Computer has gone to sleep.]
lapideviridi has joined #ruby
rfmind has joined #ruby
<darkxploit> FailBit, yes its installing
seedinge_ has quit [Read error: Connection reset by peer]
|| has joined #ruby
<darkxploit> but this command curl -sSL https://get.rvm.io | bash -s stable --ruby is suppose to download latest stable right ?
NO_BOOT_DEVICE has quit [Ping timeout: 276 seconds]
|| is now known as Guest60384
CloCkWeRX has joined #ruby
TheHodge has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
lapide_viridi has quit [Ping timeout: 265 seconds]
lapideviridi has quit [Ping timeout: 246 seconds]
valeriansaliou has joined #ruby
valeriansaliou has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
joe___ has joined #ruby
SenpaiSilver has joined #ruby
htmldrum has joined #ruby
tvw has joined #ruby
mattwildig has joined #ruby
bruno-_ has quit [Ping timeout: 252 seconds]
goodcodeguy has joined #ruby
Xeago has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
prestorium has joined #ruby
joe___ has quit [Ping timeout: 246 seconds]
infamos has quit [Ping timeout: 260 seconds]
lapide_viridi has joined #ruby
ruurd has joined #ruby
Icey has quit [Quit: icey]
dstarh has joined #ruby
dstarh has quit [Remote host closed the connection]
dravine_ has joined #ruby
__desmondhume has quit []
dravine has quit [Ping timeout: 265 seconds]
dravine_ is now known as dravine
uri_ has joined #ruby
clocKwize has joined #ruby
<pontiki> hi
sankaber has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
flip_digits has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
dtordable has joined #ruby
kitallisii has joined #ruby
vigintas has joined #ruby
henry_ has joined #ruby
roxtrongo has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
Rodya_ has joined #ruby
c355E3B has joined #ruby
freerobby has quit [Quit: Leaving.]
k3asd` has quit [Ping timeout: 276 seconds]
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
roxtrongo has quit [Ping timeout: 250 seconds]
scmx has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
baweaver has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
sgambino has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
dmitch has joined #ruby
ekinmur has joined #ruby
CaptainAl has joined #ruby
JDiPierro has joined #ruby
nertzy has joined #ruby
CaptainAl has quit [Client Quit]
CaptainAl has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
JDiPierro has joined #ruby
pandaant has quit [Remote host closed the connection]
CaptainAl has quit [Client Quit]
mghaig has joined #ruby
ekinmur has quit [Client Quit]
RegulationD has joined #ruby
lapide_viridi has quit [Quit: Leaving]
CaptainAl has joined #ruby
CaptainAl has quit [Client Quit]
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
decoponio has joined #ruby
jamo__ has joined #ruby
atomical has joined #ruby
_stu_ has joined #ruby
mghaig has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
cicloid has joined #ruby
lukaszes has joined #ruby
cicloid has quit [Max SendQ exceeded]
cicloid has joined #ruby
henry_ has quit [Ping timeout: 250 seconds]
haylon has joined #ruby
c355E3B has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
Caius has quit [*.net *.split]
sye has quit [*.net *.split]
iateadonut has quit [*.net *.split]
eggoez has quit [*.net *.split]
Jamo has quit [*.net *.split]
sivoais has quit [*.net *.split]
trajing has quit [*.net *.split]
JStoker has quit [*.net *.split]
atom3 has quit [*.net *.split]
JStoker has joined #ruby
k3asd` has joined #ruby
FernandoBasso has quit [Quit: Leaving]
syath has quit [Quit: WeeChat 1.2]
mghaig has joined #ruby
scmx has joined #ruby
clocKwize has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 264 seconds]
TomPeed has joined #ruby
subscope has joined #ruby
beast_ has quit [Quit: Leaving]
syath has joined #ruby
umgrosscol has joined #ruby
bricker has joined #ruby
sivoais has joined #ruby
atom3 has joined #ruby
c355E3B has joined #ruby
Mon_Ouie has joined #ruby
eggoez has joined #ruby
trajing has joined #ruby
iateadonut has joined #ruby
sye has joined #ruby
Caius has joined #ruby
sivoais has quit [Max SendQ exceeded]
eggoez has quit [Max SendQ exceeded]
sivoais has joined #ruby
mattwildig has quit [Remote host closed the connection]
sdwrage has joined #ruby
eggoez has joined #ruby
<avril14th> darkxploit: rvm install 2.2.3
<avril14th> then rvm use 2.2.3 --default
freerobby has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
CaptainAl has joined #ruby
dlitvak has joined #ruby
tulak has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 246 seconds]
<shevy> hey snowtiki
tulak has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
diego1 has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as dviola
car has joined #ruby
The_Phoenix has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
malconis has joined #ruby
agentmeerkat has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
bruno- is now known as Guest12750
rodfersou is now known as rodfersou|lunch
cdg has joined #ruby
devoldmx has joined #ruby
babblebre has joined #ruby
_blizzy_ has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
Xeago has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
infamos has joined #ruby
mattwildig has joined #ruby
skade has joined #ruby
mghaig has joined #ruby
blaxter has quit [Ping timeout: 252 seconds]
Guest53 has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 276 seconds]
Guest12750 has quit [Ping timeout: 260 seconds]
dhjondoh has quit [Quit: dhjondoh]
devoldmx has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
diegoaguilar has joined #ruby
dlitvak_ has joined #ruby
stannard has joined #ruby
duoi has joined #ruby
infamos has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
iateadonut has quit [Quit: Leaving.]
ItSANgo has quit [Quit: Leaving...]
iateadonut has joined #ruby
dlitvak_ has quit [Ping timeout: 252 seconds]
ekinmur has joined #ruby
dlitvak has joined #ruby
lxsameer has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
desmondhume has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
Erik_Underline has joined #ruby
i8igmac has joined #ruby
<Erik_Underline> Hey people! Long time no see ^^
<zwdr> hi
agent_white has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejlong has joined #ruby
<i8igmac> im trying to install a gem from github using bundler... i have never used bundler before, i have git cloned the source to my machine
<i8igmac> i have ran bundle, witch read the gemfile and installed lots of gems
<i8igmac> im trying now bundle install --path
jdawgaz has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
mattwildig has quit [Remote host closed the connection]
gusTester has joined #ruby
blaxter has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
JDiPierro has joined #ruby
sectionme has joined #ruby
ixti has joined #ruby
<shevy> bundler just makes you happy doesn't it
PizzaHat has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
gusTester has left #ruby [#ruby]
leafybas_ has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
uri_ has quit [Ping timeout: 240 seconds]
<PizzaHat> Hi, can I easily convert an array of integers to an array of strings ? [1,2,3,7,9,15] => ["1", "2", "3", "7", "9", "15"] ?
<i8igmac> well, very new to this... it seems like people may store gems on github with different methods or packaging software...
<benlovell> PizzaHat: [1,2,3].map(&:to_s)
<i8igmac> im not sure if i have completed the install process
<davejlong> q
Rodya_ has joined #ruby
mghaig has quit [Ping timeout: 250 seconds]
<PizzaHat> nice benlovell, thanks :)
davejlong has quit [Quit: leaving]
<shevy> i8igmac yeah bundler allows one to use github projects, that's actually one of the real advantages it has over the smaller gem suite itself
polishdub has joined #ruby
davejlong has joined #ruby
<i8igmac> gem 'gemname', :git => 'http://github.com/user/gem.git'
simplyianm has quit [Remote host closed the connection]
roxtrongo has joined #ruby
simplyia_ has joined #ruby
<i8igmac> this gives me a error, bash: file not found http://git.....
<i8igmac> i already have cloned the directory
simplyia_ has quit [Remote host closed the connection]
simplyianm has joined #ruby
<arne> anyone has a neat quick way to convert this [...{:sym=>"hngg"},{:sym=>"blergh"}...] to csv?
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
<benlovell> i8igmac: the gem statement has both a `git` and `github` option. you can use `github: 'user/gem'`
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
tagrudev has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
<benlovell> i8igmac: otherwise, be sure to use https or `git@github.com:user/repo.git` if you use the `git` option
<shevy> i8igmac no idea but this looks a wrong url?
<i8igmac> it was a example url, from the document page...
<i8igmac> gem 'nokogiri', :github => 'tenderlove/nokogiri'
freerobby has quit [Quit: Leaving.]
Spami has joined #ruby
<i8igmac> maybe this is outdated
<i8igmac> the single quotes, are wrong
<benlovell> nothing wrong with single quoted strings
<suchness> They are faster than double quoted strings.
<suchness> I think.
centrx has quit [Quit: If you meet the Buddha on the way, kill him.]
<i8igmac> gem 'nokogiri', :github => 'tenderlove/nokogiri'
<i8igmac> this fails with a bash error
<i8igmac> gem install 'nokogiri', ':github => 'tenderlove/nokogiri''
griffindy has joined #ruby
<i8igmac> this did something fancy
<benlovell> i8igmac: is that in your Gemfile
cdg_ has quit [Ping timeout: 246 seconds]
<shevy> are you sure that this should work
<benlovell> or are you trying to run this on your command line?
<suchness> Sounds like a shell script
<benlovell> i think the latter
rbowlby has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<benlovell> :/
<i8igmac> im trying to start from step one, installing a remote source from github.com
baweaver has quit [Ping timeout: 240 seconds]
<benlovell> maybe you should have a read through http://bundler.io/#getting-started first
jordihdz|2 has joined #ruby
kfpratt has joined #ruby
tmtwd has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has quit [Quit: This computer has gone to sleep]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> nobody reads those intro tutorials!
<shevy> :D
<i8igmac> i have, but something is wrong
<i8igmac> i read them all.
troulouliou_div2 has joined #ruby
<i8igmac> there are loads of examples, how to install from github
<adaedra> yeah, nobody reads the doc.
<i8igmac> but the command fails
<adaedra> That's a problem.
corehook has joined #ruby
corehook has quit [Client Quit]
corehook has joined #ruby
bodgix has left #ruby [#ruby]
ekinmur has joined #ruby
<i8igmac> does this look proper? directly from there online document
<i8igmac> gem 'nokogiri', :github => 'tenderlove/nokogiri'
ItSANgo has joined #ruby
<i8igmac> and you run this from a console,
baweaver has joined #ruby
Guest11404 has quit [Quit: leaving]
<adaedra> no, you put it in your Gemfile
<shevy> that is ruby code
<havenwood> i8igmac: It's Ruby.
gusTester has joined #ruby
<i8igmac> so, if i cloned a project to my local machine... there already exist a gemfile and gemfile.lock
kimegede has quit [Quit: Linkinus - http://linkinus.com]
jordihdz|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
gusTester has left #ruby [#ruby]
jordihdz has joined #ruby
nfk|laptop has quit [Quit: yawn]
Voker57 has joined #ruby
jordihdz has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<i8igmac> my goodness, this is a love hate relationship
<i8igmac> thank you guys
TPBallbag has joined #ruby
Guest34193 has quit [Ping timeout: 250 seconds]
lubarch has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Guest34193 has joined #ruby
jordihdz has joined #ruby
Tempesta has quit [Excess Flood]
mghaig has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
<i8igmac> the Gemfile that came with the clone... i had to add a line
Tempesta has quit [Excess Flood]
<shevy> i8igmac welcome to bundler! :D
lubarch has quit [Client Quit]
roxtrongo has quit [Remote host closed the connection]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<shevy> there also is #bundler btw
<i8igmac> bundler is now fetching the git://
<shevy> good
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
jordihdz has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dlitvak has joined #ruby
Guest53 has joined #ruby
mattwildig has joined #ruby
dionysus69 has joined #ruby
hashpuppy has joined #ruby
RobertBirnie has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
dmitch has joined #ruby
p0wn3d__ has joined #ruby
freerobby has joined #ruby
simplyianm has quit [Remote host closed the connection]
kobain has joined #ruby
simplyianm has joined #ruby
Guest54901 has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
dlitvak_ has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
johnzorn has quit [Ping timeout: 252 seconds]
blue_deref has joined #ruby
bruno- is now known as Guest2617
emilkarl has quit [Quit: emilkarl]
<PizzaHat> How to pad easily a string with a fixed number of chars ? (i'm sorry but the Ruby String class has got MANY methods lol)
benlovell has joined #ruby
kedare has joined #ruby
baroquebobcat has joined #ruby
bricker has joined #ruby
dtordable has quit [Quit: Lost terminal]
<adaedra> &ri String#ljust @PizzaHat
monthy has joined #ruby
dtordable has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
<PizzaHat> Thanks adaedra <3
ruurd has quit [Quit: ZZZzzz…]
chrissonar has quit [Remote host closed the connection]
neonalpine has joined #ruby
lkba_ has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
rippa has joined #ruby
johnzorn has joined #ruby
<shevy> >> "abc".ljust(20, '_')
<ruboto> shevy # => "abc_________________" (https://eval.in/467157)
ruurd has joined #ruby
baroquebobcat has joined #ruby
emilkarl has joined #ruby
<shevy> >> "world!".rjust(12,'hello ')
<ruboto> shevy # => "hello world!" (https://eval.in/467158)
<shevy> so many people have IRC nicks that make you hungry
<adaedra> go eat something then
<TPBallbag> Does mine make you hungry shevy?
user1138 has joined #ruby
<shevy> no
<shevy> but PizzaHat
<TPBallbag> ͡°
dkam has quit [Remote host closed the connection]
<shevy> and mozzarella ... and many others
<PizzaHat> Muhahah :D
agentmeerkat has joined #ruby
<PizzaHat> My nickname is evil ^^
hhutch has joined #ruby
hhutch has left #ruby [#ruby]
aaeron has joined #ruby
rippa has quit [Ping timeout: 276 seconds]
<gregf_> >> len = 8; [ %w{foo foobar foobarbaz}.map{ |str| pad = len - str.length; " " * (pad > 0 ? pad : 0) + str } ]
<ruboto> gregf_, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<adaedra> That's new
<adaedra> Also, we're trying to aim for the longest code now?
<shevy> you error!
rippa has joined #ruby
user1138 has quit [Remote host closed the connection]
norc_ has quit [Ping timeout: 246 seconds]
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
B1n4r10 has joined #ruby
dtordable has quit [Quit: Lost terminal]
<desmondhume> gregf_: what's that?
tenderlove has quit [Quit: Leaving...]
jas02 has quit [Quit: jas02]
<PizzaHat> good question
akem has joined #ruby
<PizzaHat> >> "? tfw freg".reverse
<ruboto> PizzaHat # => "gerf wft ?" (https://eval.in/467165)
<PizzaHat> >> "? ftw fgreg".reverse
tulak has joined #ruby
<ruboto> PizzaHat, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
arne has quit [Ping timeout: 250 seconds]
<desmondhume> lolwuuuut
dtordable has joined #ruby
<adaedra> apeiros: ^
loc22 has joined #ruby
loc22 has quit [Remote host closed the connection]
dtordable has quit [Client Quit]
yqt has joined #ruby
<desmondhume> oh cool, it's like right aligning strings in a padding of 8
dtordable has joined #ruby
<desmondhume> c-like
tenderlove has joined #ruby
arthurix has joined #ruby
<apeiros> adaedra: can't do anything about server errors :-|
Oli` has joined #ruby
teclator has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
greenbig- has quit [Quit: test]
greenbigfrog has joined #ruby
RegulationD has joined #ruby
arthurix_ has quit [Ping timeout: 264 seconds]
<desmondhume> i've a question
<adaedra> we should guess it?
sectionme has quit [Quit: leaving]
<PizzaHat> xD
<desmondhume> did you know why this works and why i can use the dot notation this way?
<desmondhume> >> %w.asd lol lolwut.
<ruboto> desmondhume, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<desmondhume> :(
<adaedra> eval.in is having issues I see.
<adaedra> desmondhume: % hello # also works.
<desmondhume> %w.asd lol lolwut.
<desmondhume> => ["asd", "lol", "lolwut"]
cornerman has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 246 seconds]
<desmondhume> is it documented somewhere?
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
yqt has quit [Max SendQ exceeded]
Fire-Dragon-DoL has joined #ruby
johnzorn has quit [Ping timeout: 250 seconds]
<desmondhume> yeah, i wasn't talking about the %w, i was talking about the two dots surrounding the list
<adaedra> it's a string
<adaedra> the same as %Q
kobain has quit [Read error: Connection reset by peer]
yqt has joined #ruby
<adaedra> %.hello. is the same as %[hello]
eminencehc has joined #ruby
<adaedra> >> % % % % % #
<ruboto> adaedra # => "%" (https://eval.in/467177)
dts|pokeball is now known as nchambers
<FailBit> >> %%%%
<ruboto> FailBit # => /tmp/execpad-922fe6013dca/source-922fe6013dca:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/467178)
<FailBit> lel
<desmondhume> well, ok :') this is a bit fancy, lots of uselessly different possible notations
grill_ has joined #ruby
<adaedra> FailBit: some spaces are important in my line.
<canton7> it's just "you can use any marker you like"
<adaedra> desmondhume: not so useless.
grill_ has quit [Changing host]
grill_ has joined #ruby
boris317 has joined #ruby
<adaedra> >> %(String with both 'single' and "double" quotes, without escaping)
<ruboto> adaedra # => "String with both 'single' and \"double\" quotes, without escaping" (https://eval.in/467183)
<desmondhume> i can't catch the point of using dots in place of rounded brackets
<canton7> "Any single non-alpha-numeric character can be used as the delimiter" from adaedra's link. So you can choose a character which doesn't appear in your string
monthy has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<canton7> it's not that dots are expressely permitted, it's that dots are an alphanumeric character and any alphanumeric character is permitted
B1n4r10 has quit [Ping timeout: 240 seconds]
<adaedra> >> %
<ruboto> adaedra, I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<adaedra> erf
Rodya_ has joined #ruby
<adaedra> apeiros: that's not a server error this time :D
<desmondhume> ahahahahah ok so i see now. It's useful cause you can use any delimiter that's not appearing inside the string, so you don't have to think about escaping chars, ammaright?
rippa has quit [Ping timeout: 250 seconds]
<adaedra> yes.
<desmondhume> cool, thank you adaedra
<adaedra> also, the paired ones like (, [, { are counted
<adaedra> so %(hello (world) !!!) ends at the second )
<desmondhume> i just benchmarked ( against {, the { seems a bit slower, dunno why
<FailBit> you can use string interp still, right?
sdwrage has quit [Quit: This computer has gone to sleep]
<boris317> Hello. I want to implement a DSL like method call as seen here: https://bpaste.net/show/a442d8ac55f8 How would I go about that? config will just store a key/value pair in a hash. Thanks.
<FailBit> desmondhume: pretty sure that's parsing and not execution
<FailBit> so I wouldn't see why
<desmondhume> ooook, everything's clear now
tkuchiki has quit [Remote host closed the connection]
mghaig has quit [Ping timeout: 244 seconds]
arne has joined #ruby
aaeron1 has joined #ruby
<adaedra> FailBit: It's like %Q, so yes.
diegoaguilar has quit [Ping timeout: 276 seconds]
platzhirsch has left #ruby [#ruby]
rippa has joined #ruby
suman_ has quit [Ping timeout: 246 seconds]
molay has quit [Quit: Leaving]
aaeron has quit [Ping timeout: 244 seconds]
kfpratt has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 264 seconds]
vigintas has quit [Quit: vigintas]
seedinger has joined #ruby
devoldmx has joined #ruby
<Oli`> Hi, I don't understand why I can't list the constants of my module here: https://gist.github.com/anonymous/e75e25bf1da411cd77f8
marcosantoniocar has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
wprice has joined #ruby
<adaedra> because you're defining ::CoolClass2
ruurd has quit [Quit: ZZZzzz…]
johnzorn has joined #ruby
vigintas has joined #ruby
sdothum has joined #ruby
<adaedra> (so at the top level, not in your module)
<Oli`> but it's inside the anonymous module right?
arthurix_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<Oli`> how should i write it ?
User458764 has joined #ruby
s00pcan has quit [Remote host closed the connection]
darkf_ is now known as darkf
devoldmx has quit [Ping timeout: 265 seconds]
s00pcan has joined #ruby
bMalum has joined #ruby
arthurix has quit [Ping timeout: 250 seconds]
loc22_ has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<adaedra> You can use const_set
Rodya_ has joined #ruby
kobain has joined #ruby
ekleog has quit [Read error: Connection reset by peer]
c355E3B has quit [Quit: Connection closed for inactivity]
<Oli`> ok, thank you
loincloth has joined #ruby
CodingWolf has quit [Ping timeout: 240 seconds]
ekleog has joined #ruby
aufi has quit [Quit: Konversation terminated!]
diegoaguilar has joined #ruby
<gregf_> desmondhume: sorry, got pulled into a meeting :|. i was trying the padding string bit(PizzaHut), *this* len = 8; p %w{foo foobar foobarbaz}.map{ |str| pad = len - str.length; " " * (pad > 0 ? pad : 0) + str }
dravine has quit [Ping timeout: 260 seconds]
<gregf_> oops, scrolls down :/
<desmondhume> it seems to work fine
<gregf_> and PizzaHat i meant
<desmondhume> in my irb console
<adaedra> gregf_: what's wrong with ljust/rjust?
ekleog has quit [Read error: Connection reset by peer]
<gregf_> i think i managed to trick the bot :|
chipotle has quit [Quit: cheerio]
leafybas_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<gregf_> adaedra: nothing ;). what you've suggested is better
leafybas_ has joined #ruby
ekleog has joined #ruby
roxtrongo has joined #ruby
rodfersou|lunch is now known as rodfersou
mary5030 has quit [Remote host closed the connection]
<gregf_> Oli`: module Foo; ADD = 1;SUB = 2;end;class Bar; include Foo;end;p Bar.constants *works for me*
lsv_ has joined #ruby
johnzorn has quit [Ping timeout: 264 seconds]
Xzanron has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
podman has joined #ruby
klaas_ has joined #ruby
dtordabl1 has joined #ruby
Rickmasta has joined #ruby
RedDwarf has joined #ruby
<gregf_> oh - well
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vayan_ has joined #ruby
aaeron has joined #ruby
<Sou|cutter> Is there a reason behind declaring a class like this: class GeneratedAttributeMethods < Module;
mahlon_ has joined #ruby
loc22_ has quit [Quit: Be back later ...]
<Sou|cutter> why would you throw < Module in there ?
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iacobus_ has joined #ruby
ckrailo_ has joined #ruby
gusTester1 has joined #ruby
mghaig has joined #ruby
ahuman_ has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
ESpiney has joined #ruby
zrl_ has joined #ruby
cjheath_ has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
jorb_ has joined #ruby
gusTester1 has left #ruby [#ruby]
niftylettuce_ has joined #ruby
Jello_Raptor_ has joined #ruby
sp_ has joined #ruby
shellie__ has joined #ruby
greedo_ has joined #ruby
agentmee1kat has joined #ruby
axisys_ has joined #ruby
raenk_ has joined #ruby
qpls_ has joined #ruby
kadoppe_ has joined #ruby
veloutin_ has joined #ruby
aredridel has joined #ruby
subscope has quit [Client Quit]
Skelz0r_ has joined #ruby
cornerman has joined #ruby
Guest32335 has joined #ruby
Aria has quit [Disconnected by services]
xxneolithicxx1 has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
svkurowski has quit [Ping timeout: 240 seconds]
duoi has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
cjheath has quit [Ping timeout: 240 seconds]
aaeron1 has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
vayan has quit [Ping timeout: 240 seconds]
ckrailo has quit [Ping timeout: 240 seconds]
WillAmes has quit [Ping timeout: 240 seconds]
jorb has quit [Ping timeout: 240 seconds]
zrl has quit [Ping timeout: 240 seconds]
Iacobus has quit [Ping timeout: 240 seconds]
xxneolithicxx has quit [Ping timeout: 240 seconds]
UNIMPL has quit [Ping timeout: 240 seconds]
johnhamelink has quit [Ping timeout: 240 seconds]
Outlastsheep has quit [Ping timeout: 240 seconds]
shellie_ has quit [Ping timeout: 240 seconds]
Zackio has quit [Ping timeout: 240 seconds]
dtordable has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 240 seconds]
blaxter has quit [Ping timeout: 240 seconds]
sankaber has quit [Ping timeout: 240 seconds]
axisys has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Ping timeout: 240 seconds]
djcp has quit [Ping timeout: 240 seconds]
raenk has quit [Ping timeout: 240 seconds]
qpls has quit [Ping timeout: 240 seconds]
greedo has quit [Ping timeout: 240 seconds]
Lilian has quit [Ping timeout: 240 seconds]
indignatio has quit [Ping timeout: 240 seconds]
lsv has quit [Ping timeout: 240 seconds]
pwnd_nfsw has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 240 seconds]
ZeeNoodley has quit [Ping timeout: 240 seconds]
klaas has quit [Ping timeout: 240 seconds]
mahlon has quit [Ping timeout: 240 seconds]
j416 has quit [Ping timeout: 240 seconds]
Jello_Raptor has quit [Ping timeout: 240 seconds]
Rovanion has quit [Ping timeout: 240 seconds]
veloutin has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 240 seconds]
ahuman has quit [Ping timeout: 240 seconds]
Skelz0r has quit [Ping timeout: 240 seconds]
fold1 has quit [Ping timeout: 240 seconds]
duoi has joined #ruby
pwnd_nfsw has joined #ruby
duoi has joined #ruby
duoi has quit [Changing host]
cjheath_ is now known as cjheath
aredridel is now known as Aria
subscope has joined #ruby
LilianRose has joined #ruby
Yzguy has joined #ruby
Rovanion_ has joined #ruby
blaxter has joined #ruby
car has quit [Quit: Leaving]
j416_ has joined #ruby
ckrailo_ is now known as ckrailo
vayan_ is now known as vayan
djcp has joined #ruby
fold2 has joined #ruby
dravine has joined #ruby
indignatio has joined #ruby
<gregf_> >> class Foo < Module;end; class Bar;end; [ Foo.ancestors, Bar.ancestors ]
<ruboto> gregf_ # => [[Foo, Module, Object, Kernel, BasicObject], [Bar, Object, Kernel, BasicObject]] (https://eval.in/467207)
Iacobus_ is now known as Iacobus
amitchellbullard has joined #ruby
j416_ is now known as j416
RobertBirnie has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
znz_jp has joined #ruby
dravine_ has joined #ruby
aaeron has quit [Ping timeout: 240 seconds]
zrl_ is now known as zrl
NeverDie has quit [Quit: http://radiux.io/]
RobertBirnie has joined #ruby
stan has quit [Ping timeout: 240 seconds]
svkurowski has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niftylettuce_ is now known as niftylettuce
dravine has quit [Ping timeout: 260 seconds]
dravine_ is now known as dravine
dorei has joined #ruby
<Sou|cutter> >> class Foo < Module; end; class Bar; end; [ Foo.is_a?(Module), Foo.new.is_a?(Module), Bar.is_a?(Module), Bar.new.is_a?(Module) ]
<ruboto> Sou|cutter, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
pontiki_x has joined #ruby
<pontiki_x> hi, folx
<Sou|cutter> welp I missed something, but Bar.new is not a Module, and Foo.new is
kfpratt has joined #ruby
chouhoulis has joined #ruby
aaeron has joined #ruby
mattwildig has quit [Remote host closed the connection]
<Sou|cutter> So I'm trying to bend my mind to using Module methods on an instance, it's weird
<adaedra> wut
<adaedra> what are you trying to do in the first place
<gregf_> you should'nt be able to instantiate a module :|
desmondhume is now known as __desmondhume
<gregf_> >>module Foo;end; begin; Foo.new; rescue => e;p e.message;end
<ruboto> gregf_ # => "undefined method `new' for Foo:Module" ...check link for more (https://eval.in/467209)
<shevy> well it is just a method
mghaig has quit [Read error: Connection reset by peer]
Guest32335 is now known as ZeeNoodley
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
<shevy> you folks are breaking ruboto today :(
adac has quit [Ping timeout: 250 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> <ruboto> gregf_, I'm terribly sorry, I could not evaluate your code because of I am an incompetent bot
karapetyan has joined #ruby
ghostbox has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Sou|cutter> >> class Foo < Module; end; begin; Foo.new; rescue => e; p e.message; end
<ruboto> Sou|cutter # => #<Foo:0x41dfbf60> (https://eval.in/467210)
<adaedra> shevy: it's eval.in
<gregf_> oh, ruboto, shevy sorry about that
karapetyan has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
johnzorn has joined #ruby
subscope has joined #ruby
charliesome has joined #ruby
bigkevmcd has joined #ruby
arthurix has joined #ruby
<gregf_> Sou|cutter: i guess theres many things one could do but why would a class want to inherit from a module? its not an is_a but has_a relationship?
hanmac has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapety_ has joined #ruby
<gregf_> like so would this make any sense in an OO world: class Cat < Chicken; end ?
symm- has joined #ruby
karapety_ has quit [Remote host closed the connection]
subscope has quit [Client Quit]
<gregf_> modules are for delegations
infamos has joined #ruby
karapetyan has joined #ruby
<gregf_> but then you're right, the language needs to handle it. i would expect it for fail at compile time in like say Java. something like: public interface Bar {}; class Foo extends Bar {}
<Sou|cutter> This is something I saw in rails code, so I can't defend it
<gregf_> s/for/to/
arthurix_ has quit [Ping timeout: 264 seconds]
B1n4r10 has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy> they are an alien race, those railsters
lubarch has joined #ruby
<shevy> but they no longer require nick registration so they are on a path of redemption!
<adaedra> wut
axisys_ has quit [Ping timeout: 244 seconds]
johnhamelink has joined #ruby
infamos has quit [Ping timeout: 244 seconds]
kerunaru has joined #ruby
<gregf_> Sou|cutter: https://gist.github.com/anonymous/fa62b976ccab60c47fa6 <== like that. but ruby is dynamic
arne has quit [Ping timeout: 255 seconds]
ThatsNotJack has quit [Remote host closed the connection]
mghaig has joined #ruby
ThatsNotJack has joined #ruby
<Sou|cutter> yeah
fschuindt has quit [Quit: WeeChat 1.3]
yardenbar has quit [Ping timeout: 264 seconds]
AugustoCesar has joined #ruby
_blizzy_ has joined #ruby
alem0lars has joined #ruby
adac has joined #ruby
bricker has quit [Read error: Connection reset by peer]
ThatsNotJack has quit [Remote host closed the connection]
mjuszczak has joined #ruby
AugustoCesar has left #ruby [#ruby]
crdpink has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
ThatsNotJack has joined #ruby
crdpink2 has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
ruurd has joined #ruby
TheNet has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
mghaig has joined #ruby
solars has quit [Ping timeout: 240 seconds]
terminalrecluse has joined #ruby
arne has joined #ruby
terminalrecluse has quit [Max SendQ exceeded]
terminalrecluse has joined #ruby
<slash_nick> oh no?
* slash_nick unregisters
[Butch] has joined #ruby
infamos has joined #ruby
kp666 has joined #ruby
<Oli`> the doc for Module::new says "[...]block is evaluated in the context of this module[...]" but if I want to declare a class into my module I can't do this: Module.new { class Foo; end } I have to write this: Module.new { |mod| class mod::Foo; end }
tulak has quit [Remote host closed the connection]
arne has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubarch has quit [Quit: leaving]
<Oli`> if the block is evaluated in the context of the module, shouldn't Module.new { class Foo; end } declare a class inside my module ?
<Oli`> or am I missing something?
<shevy> hmm
<shevy> here is the doc just in case someone else wants to read it:
hxegon has joined #ruby
Quandl has joined #ruby
<pontiki_x> what's it actually doing, Oli` ?
eminencehc has quit [Remote host closed the connection]
loc22_ has joined #ruby
loc22_ has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 265 seconds]
<Oli`> Module.new { class Foo; end } actualy declare the Foo class in the current namespace, not inside the new module
<shevy> it seems as if it won't add a new module namespace
goodcodeguy has joined #ruby
<pontiki_x> interesting. i would have thought as you did given the description.
<Oli`> yes it seems weird to me
TomPeed has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<Sou|cutter> possibly because the module is not-yet-defined? and the block arg gives you a blank, defined, module object?
vigintas has joined #ruby
<pontiki_x> what's the namespace of Foo?
<Sou|cutter> I dunno, that sounds wrong to me
<shevy> I wonder where the module went
<pontiki_x> it's in foo
<Sou|cutter> I mean what I said sounds wrong
rgtk has joined #ruby
<shevy> yeah
<shevy> I think what the docs describe does not match that code example
<Oli`> it works fine with method definition but the behaviour is different with classes
<pontiki_x> try it with other constants
Xeago has joined #ruby
TheNet has quit [Remote host closed the connection]
<Oli`> ho Module.new { FOO = 5 } defines FOO in the current namespace too
<Oli`> so every constants are defined in the current namespace, not une the new module ?
towski_ has joined #ruby
terminalrecluse is now known as gigatexal
<shevy> can you name a module that way?
rfmind has quit [Quit: WeeChat 1.3]
tkuchiki has quit [Ping timeout: 276 seconds]
<shevy> because the code is not equivalent to: module Foo; right?
<pontiki_x> well, that does rather make sense; Module.new is not defining a namespace. it's not like module Bar;end
mghaig has quit [Ping timeout: 240 seconds]
<shevy> true
<Oli`> I thought the code was equivalent to module Foo ...
<shevy> but it defines in a namespace already, the top one
<Oli`> I mean when I read the doc it's what in understand
Kikoo has joined #ruby
Kikoo is now known as Hello
<pontiki_x> yeah, i don't know? but the behaviour says "no" to me
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<gregf_> Sou|cutter: i just tried this : module Foo; end; class Bar < Module;end # fails. try and do a Module.class
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has joined #ruby
B1n4r10 has joined #ruby
<pontiki_x> hmm, look more at Module.module_eval
<pontiki_x> "Evaluates the string or block in the context of mod, except that when a
<pontiki_x> block is given, constant/class variable lookup is not affected."
<Sou|cutter> gregf_: It fails how? It works for me in 2.1.6
karapetyan has quit [Remote host closed the connection]
<Oli`> ooook
<Oli`> so it's just the intended behaviour? :>
eminencehc has joined #ruby
davedev24 has joined #ruby
TheNet has joined #ruby
<Sou|cutter> it's expected behavior, yeah
<Sou|cutter> I know I've run into that once before
<gregf_> Sou|cutter: i'm on 2.2. and it fails. it fails on 2.1 as well.
TheNet has quit [Read error: Connection reset by peer]
<Sou|cutter> define fails
<Oli`> ok thank you
baweaver has quit [Ping timeout: 250 seconds]
roger_rabbit has quit [Ping timeout: 260 seconds]
<gregf_> >> module Foo; end; class Bar < Foo;end
<ruboto> gregf_ # => superclass must be a Class (Module given) (TypeError) ...check link for more (https://eval.in/467217)
<gregf_> Sou|cutter: ^^
<Sou|cutter> When I do it, it works
karapetyan has joined #ruby
<Oli`> I can stop fighting with irb now :)
joonty has quit [Quit: joonty]
tvw has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
symm- has quit [Quit: Leaving...]
bMalum has quit [Quit: bMalum]
<Sou|cutter> gregf_: OHH that's different from your original thing
<Sou|cutter> class Bar < Module vs class Bar < Foo
yqt has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
<Sou|cutter> I was talking about the former
roxtrongo has joined #ruby
mark1 has quit [Remote host closed the connection]
DiCablo has joined #ruby
ruurd has joined #ruby
RedDwarf is now known as Zackio
TomyWork has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
JDiPierro has joined #ruby
charliesome has joined #ruby
<gregf_> Sou|cutter: it sure is. but apart from what i pasted, Module.class prints Class
baroquebobcat has quit [Quit: baroquebobcat]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
roxtrongo has quit [Ping timeout: 244 seconds]
blandflakes has joined #ruby
ruby-lang323 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
charliesome has joined #ruby
cicloid has joined #ruby
<Fire-Dragon-DoL> if I have `Bundler.setup(:default, :test)`, why pry-byebug is available in my $LOAD_PATH if it's in development group?
JDiPierro has quit [Ping timeout: 244 seconds]
<Fire-Dragon-DoL> oh there is a bundler channel, sorry I'll ask it there
mpistone has joined #ruby
CoderPuppy has quit [Ping timeout: 260 seconds]
scmx has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
corehook has quit [Remote host closed the connection]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
maletor has joined #ruby
yardenbar has joined #ruby
jpfuentes2 has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
diego1 is now known as dviola
cpup has joined #ruby
emilkarl has quit [Quit: emilkarl]
lukaszes has joined #ruby
willardg has joined #ruby
Alayde has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
scmx has joined #ruby
davedev24 has joined #ruby
rakm has joined #ruby
Xeago_ has joined #ruby
rakm has quit [Client Quit]
ruby-lang323 has quit [Ping timeout: 246 seconds]
corehook has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ThatsNotJack has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
mghaig has quit [Read error: Connection reset by peer]
klaas_ is now known as klaas
charliesome has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
Alayde has left #ruby ["WeeChat 1.1.1"]
dmolina has joined #ruby
mpistone has left #ruby [#ruby]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
subscope has joined #ruby
corehook has quit []
nertzy has joined #ruby
mghaig has joined #ruby
qoe has joined #ruby
qoe has quit [Remote host closed the connection]
Guest54 has joined #ruby
bMalum has quit [Quit: bMalum]
lubarch has joined #ruby
subscope has quit [Client Quit]
NeverDie has joined #ruby
scmx has quit [Ping timeout: 250 seconds]
Guest54 is now known as koon
Xeago_ has quit [Remote host closed the connection]
ruurd has joined #ruby
aaeron has quit [Ping timeout: 272 seconds]
K1MOS has joined #ruby
bMalum has joined #ruby
K1MOS is now known as moos3
charliesome has quit [Read error: Connection reset by peer]
_stu_ has quit [Quit: _stu_]
lubarch has quit [Client Quit]
charliesome_ has joined #ruby
Guest54901 has quit [Quit: Leaving]
baroquebobcat has joined #ruby
dopie has joined #ruby
koon has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 240 seconds]
NeverDie_ has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
RobertBirnie has joined #ruby
h99h9h88 has joined #ruby
ruurd has quit [Client Quit]
overcrush has joined #ruby
NeverDie has quit [Ping timeout: 240 seconds]
momloy has joined #ruby
luriv has quit [Remote host closed the connection]
ghostbox has quit [Read error: Connection reset by peer]
<overcrush> is it normal for me to have the ruby src/<version> files chillin in my home folder?
ascarter has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
ghostbox has joined #ruby
Arkon has joined #ruby
synthroid has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
grilled-cheese has joined #ruby
Rodya_ has quit [Quit: Leaving...]
mghaig has quit [Read error: Connection reset by peer]
<grilled-cheese> in ruby 2.1.7p400, does anyone know why ‘etc’ might be missing from the windows version of stdlib?
h99h9h88 has quit [Ping timeout: 240 seconds]
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
c0m0 has quit [Ping timeout: 240 seconds]
ThatsNotJack has joined #ruby
<adaedra> etc seems very unix-y
blackmesa has joined #ruby
<grilled-cheese> yes, but it has worked in the past under windows
<grilled-cheese> it’s a consistent way to get user data across all 3 platforms
overcrush has left #ruby ["Leaving..."]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cicloid has joined #ruby
adac has quit [Ping timeout: 240 seconds]
cicloid has quit [Client Quit]
<grilled-cheese> if you startup irb and try to require it, you get a false result
yardenbar has quit [Ping timeout: 260 seconds]
<grilled-cheese> but under osx and linux, it’s fine
rakm has joined #ruby
ghoti has quit [Ping timeout: 260 seconds]
<adaedra> I got false after a require under OS X – You don't have any error, is Etc defined?
<eam> grilled-cheese: etc is built-in to ruby, yeah? I'm not current on windows, but do you know how to check symbols in a binary?
slawrence00 has joined #ruby
ghoti has joined #ruby
<eam> is it perhaps already required by irb?
<grilled-cheese> not offhand
<grilled-cheese> Etc.group returns nil
Arkon has quit [Remote host closed the connection]
<blubjr`> doesn't false from require just mean that its already loaded
<adaedra> So Etc is defined
<blubjr`> i thought you got an exception if it didnt find it
<eam> it's not even findable -- it's built into /usr/bin/ruby
JDiPierro has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
<eam> there is no etc.rb or etc.so
charany1 has joined #ruby
cdg has joined #ruby
charany1 has quit [Client Quit]
mrtomme has joined #ruby
nfk has joined #ruby
<grilled-cheese> how would I check the symbol table for it?
<grilled-cheese> am I missing something?
cdg has quit [Remote host closed the connection]
<eam> grilled-cheese: just type Etc into irb
<eam> is it a defined class?
<grilled-cheese> appears so
<eam> so it's already required
saddad has joined #ruby
<grilled-cheese> hmm…
<grilled-cheese> I can run Etc.getlogin
cdg has joined #ruby
benlieb has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
<grilled-cheese> but not .group or .passwd
armyriad has joined #ruby
<shevy> Etc.group works for me here
dviola has quit [Quit: WeeChat 1.3]
Arkon has joined #ruby
<shevy> I am not using windows though
<eam> ;)
<grilled-cheese> I think that’s the trick
Arkon has quit [Remote host closed the connection]
<grilled-cheese> looks like under windows, it may just return nill without a warning
<grilled-cheese> under OSX and linux it’s fine
<eam> weren't we just talking about how windows dropped posix subsystem support at one point?
<grilled-cheese> ok, that maybe makes some sense
<grilled-cheese> it still stinks though because now there isn’t a single library to query user/group data
Eiam_ has joined #ruby
<grilled-cheese> thanks all
<shevy> I assume windows does not offer the similar information
mpistone has joined #ruby
<adaedra> It does, but not the same way
mghaig has joined #ruby
<grilled-cheese> I think you have to go at it from the ole way
<adaedra> ¡Olé!
gusrub has joined #ruby
RandyT has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<shevy> there are about 3 windows users here in total :)
mikecmpbll has joined #ruby
NeverDie_ is now known as NeveriDie
NeveriDie is now known as NeverDie
charliesome has joined #ruby
lemur has joined #ruby
krz has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
EdwardIII has left #ruby [#ruby]
Pupp3tm4st3r has joined #ruby
RegulationD has quit [Remote host closed the connection]
codecop has joined #ruby
cdg_ has joined #ruby
Peg-leg has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 246 seconds]
darkf has quit [Quit: Leaving]
karapetyan has joined #ruby
moos3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 272 seconds]
shoutsid has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
shoutsid has quit [Client Quit]
dasher00 has quit [Quit: Leaving]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
blubjr` is now known as blubjr
CaptainAl has quit [Quit: CaptainAl]
tubuliferous_ has joined #ruby
seedinger has quit [Ping timeout: 260 seconds]
mghaig has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 276 seconds]
stan has joined #ruby
Arkon has joined #ruby
greedo_ is now known as greedo
axl_ has quit [Quit: axl_]
tomphp has joined #ruby
tomphp has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest53 has joined #ruby
hxegon has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
tomphp has joined #ruby
Guest53 has quit [Client Quit]
stamina has quit [Ping timeout: 260 seconds]
dtordabl1 has quit [Quit: Lost terminal]
eminencehc has joined #ruby
dtordable has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Guest3421 has quit [Ping timeout: 240 seconds]
towler has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
icarus_ has joined #ruby
gusrub has quit []
hxegon has joined #ruby
yardenbar has joined #ruby
TheNet has quit [Ping timeout: 265 seconds]
Guest53 has joined #ruby
User458764 has joined #ruby
_blizzy_ has quit [Quit: Leaving]
ht__ has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
gusrub has joined #ruby
mattwildig has joined #ruby
suchness has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
Yzguy has joined #ruby
mozzarella has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
luriv has joined #ruby
synthroid has quit [Remote host closed the connection]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
roger_rabbit has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
arup_r has joined #ruby
saddad has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
K1MOS has joined #ruby
trav408 has joined #ruby
ruby-lang407 has joined #ruby
mh_laaks1 has quit [Remote host closed the connection]
fantazo has joined #ruby
adac has joined #ruby
mghaig has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
blackmesa has joined #ruby
tulak has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 240 seconds]
mesamoo has joined #ruby
Icey has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
synthroid has joined #ruby
ht__ has joined #ruby
TheNet has joined #ruby
Guest3421 has joined #ruby
emilkarl has joined #ruby
Blaguvest has joined #ruby
TomPeed has joined #ruby
PizzaHat has quit [Quit: PizzaHat]
roxtrongo has joined #ruby
rakm has joined #ruby
towler has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__desmondhume has quit [Remote host closed the connection]
cpup has joined #ruby
ramfjord has joined #ruby
eminencehc has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
eminencehc has joined #ruby
yardenbar has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
axl_ has joined #ruby
aaeron has joined #ruby
roxtrongo has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
akem has quit [Read error: Connection reset by peer]
levifig has quit [Ping timeout: 265 seconds]
ruby-lang407 has quit [Quit: Page closed]
solocshaw has joined #ruby
centrx has joined #ruby
levifig has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
purplexed- has joined #ruby
purplexed- has joined #ruby
weaksauce has joined #ruby
Fire-Dragon-DoL has quit []
dionysus69 has joined #ruby
TheNet has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
makenoise has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FailBit> >windows
ss_much has joined #ruby
eminencehc has quit [Remote host closed the connection]
jud has quit [Quit: Leaving]
hxegon has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
dlitvak has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
mghaig has quit [Read error: Connection reset by peer]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x-light has joined #ruby
hxegon has joined #ruby
mesamoo has joined #ruby
lipoqil has joined #ruby
aaeron has quit [Quit: Leaving.]
grilled-cheese has quit [Quit: grilled-cheese]
aaeron has joined #ruby
baweaver has quit [Remote host closed the connection]
karapetyan has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
__desmondhume has joined #ruby
moeabdol has joined #ruby
rakm has joined #ruby
aaeron has quit [Client Quit]
DEA7TH has joined #ruby
RegulationD has joined #ruby
mghaig has joined #ruby
baweaver has joined #ruby
grilled-cheese has joined #ruby
failshell has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 264 seconds]
kerunaru has joined #ruby
gusrub has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
shadeslayer has quit [Ping timeout: 250 seconds]
chrisja has joined #ruby
cornerma1 has joined #ruby
maasha has joined #ruby
ascarter has joined #ruby
<maasha> Can I get rake to skip a task if it was completed successfully earlier - like writing file.
luriv has quit [Remote host closed the connection]
Guest2617 has quit [Ping timeout: 250 seconds]
aaeron has joined #ruby
sepp2k has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 260 seconds]
axsuul has joined #ruby
shadeslayer has joined #ruby
Arkon has quit [Remote host closed the connection]
<jhass> it should do so by default
<jhass> or you mean between multiple runs? look into `rule`
Arkon has joined #ruby
ESpiney has quit [Ping timeout: 240 seconds]
<maasha> jhass
aaeron has quit [Client Quit]
<maasha> ok
cornerman has quit [Ping timeout: 276 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
cornerma1 is now known as cornerman
bMalum has quit [Quit: bMalum]
_stu_ has joined #ruby
last_staff has joined #ruby
pontiki_x has quit [Quit: Connection closed for inactivity]
psy_ has joined #ruby
last_staff has quit [Client Quit]
mghaig has quit [Read error: Connection reset by peer]
momloy has quit [Ping timeout: 244 seconds]
luriv has joined #ruby
mghaig has joined #ruby
baweaver has joined #ruby
makenoise has quit [Remote host closed the connection]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apfeluser has joined #ruby
i8igmac has quit [Ping timeout: 260 seconds]
apfeluser has quit [Remote host closed the connection]
aaeron has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has quit [Quit: WeeChat 1.3]
ruurd has quit [Quit: ZZZzzz…]
lapide_viridi has joined #ruby
Fire-Dragon-DoL has joined #ruby
pwnd_nfsw has joined #ruby
fantazo has joined #ruby
gusrub has joined #ruby
c355E3B has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
weckl has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 246 seconds]
<maasha> jhass: hm, how would a rule like that downloads a file, but only once?
dlitvak has quit [Read error: Connection reset by peer]
<maasha> *look like
<jhass> I always need to look at the docs too
Fire-Dragon-DoL has quit []
TheNet has joined #ruby
bMalum has joined #ruby
The_Ball has quit [Remote host closed the connection]
makenoise has joined #ruby
stamina has joined #ruby
opensource_ninja has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
skullcrasher has quit [Quit: quit]
hxegon has quit [Ping timeout: 260 seconds]
vyorkin has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Client Quit]
vyorkin has quit [Client Quit]
jackjackdripper has joined #ruby
nateberkopec has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
jackjackdripper has joined #ruby
skullcrasher has joined #ruby
jackjackdripper has quit [Client Quit]
ascarter has joined #ruby
_stu_ has quit [Quit: _stu_]
jackjackdripper has joined #ruby
<EllisTAA> offtopic?
<EllisTAA> what is the offtopic channel called?
yardenbar has joined #ruby
loc22 has joined #ruby
<centrx> EllisTAA, #ruby-offtopic
<centrx> EllisTAA, most offtopic channels on IRC follow that form
hxegon has joined #ruby
<EllisTAA> centrx: thanks
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
h99h9h88 has joined #ruby
shadoi has joined #ruby
rdark has quit [Quit: leaving]
dlitvak has joined #ruby
ruby-lang920 has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
vigintas has joined #ruby
Arkon has quit [Ping timeout: 272 seconds]
ruby-lang920 has quit [Client Quit]
rippa has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
NathanielHiggers has joined #ruby
NathanielHiggers has left #ruby [#ruby]
to_json has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
mattwildig has joined #ruby
benlieb has quit [Quit: benlieb]
lukaszes has joined #ruby
ruurd has joined #ruby
ta has joined #ruby
rippa has joined #ruby
leafyba__ has joined #ruby
leafyba__ has quit [Remote host closed the connection]
Freeaqingme has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 265 seconds]
leafyba__ has joined #ruby
dlitvak_ has joined #ruby
shredding has joined #ruby
segfalt has quit [Quit: WeeChat 1.3]
Freeaqingme has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
segfalt has joined #ruby
NathanielHiggers has joined #ruby
NathanielHiggers has left #ruby [#ruby]
ht__ has quit [Quit: Konversation terminated!]
opensource_ninja has quit [Quit: opensource_ninja]
ht__ has joined #ruby
leafybas_ has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
ruurd has quit [Quit: ZZZzzz…]
dlitvak has joined #ruby
Kabal has joined #ruby
leafyba__ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- is now known as Guest46989
Freeaqingme has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
Kabal has quit [Client Quit]
arthurix has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
Kabal has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
Kabal has quit [Client Quit]
Kabal has joined #ruby
aaeron1 has joined #ruby
devoldmx has joined #ruby
lukaszes has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
ascarter has joined #ruby
Arkon has joined #ruby
jud has joined #ruby
aaeron2 has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
aaeron1 has quit [Read error: Connection reset by peer]
aaeron has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 260 seconds]
aaeron2 has quit [Client Quit]
h99h9h88 has quit [Remote host closed the connection]
ascarter has quit [Client Quit]
mattwildig has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
aaeron has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
devoldmx has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
sinkensabe has joined #ruby
Arkon has quit [Remote host closed the connection]
infamos has quit [Ping timeout: 246 seconds]
Arkon has joined #ruby
baweaver has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
roxtrongo has joined #ruby
prestorium has joined #ruby
karapetyan has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
poguez_ has joined #ruby
karapetyan has joined #ruby
trajing has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Pupp3tm4st3r has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
trajing has joined #ruby
kies has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
Arkon has quit [Ping timeout: 260 seconds]
loc22 has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
ibouvousaime has quit [Ping timeout: 252 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loc22 has joined #ruby
loc22 has quit [Remote host closed the connection]
duncannz has joined #ruby
roxtrongo has quit [Ping timeout: 246 seconds]
rakm has joined #ruby
blackmesa has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
Guest53 has joined #ruby
ldnunes has quit [Quit: Leaving]
maasha has quit [Quit: Page closed]
VeryBewitching has joined #ruby
freerobby has quit [Quit: Leaving.]
emilkarl has quit [Quit: emilkarl]
<VeryBewitching> G'day folks.
<havenwood> hi
<VeryBewitching> How's the day havenwood?
<havenwood> VeryBewitching: it goes!
<VeryBewitching> Never enough keystrokes in a day.
ibouvousaime has joined #ruby
mjuszczak has quit []
scmx has joined #ruby
karapetyan has quit [Remote host closed the connection]
platzhirsch has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.3]
Arkon has joined #ruby
A124 has quit [Ping timeout: 276 seconds]
A124 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybas_ has joined #ruby
mjuszczak has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
baweaver has joined #ruby
dlitvak has joined #ruby
mjuszcza_ has joined #ruby
gusrub has quit [Remote host closed the connection]
momomomomo has joined #ruby
lapide_viridi has quit [Quit: Leaving]
gusrub has joined #ruby
haylon has quit [Quit: Leaving]
luriv has quit [Remote host closed the connection]
mjuszczak has quit [Ping timeout: 250 seconds]
ht__ has quit [Quit: Konversation terminated!]
shredding has quit [Ping timeout: 250 seconds]
eminencehc has quit [Ping timeout: 272 seconds]
prestorium has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Yzguy has joined #ruby
ht__ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dlitvak has quit [Remote host closed the connection]
_kfpratt has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
rodfersou is now known as rodfersou|dinner
mghaig has quit [Ping timeout: 255 seconds]
kfpratt has quit [Ping timeout: 246 seconds]
TheNet has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
mjuszcza_ has quit []
mghaig has joined #ruby
last_staff has joined #ruby
kies has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
neanderslob has joined #ruby
<naftilos76> Hi i am trying to use net-ssh / net-ssh-shell to finally buld a login shell through ruby. I could execute simple terminal commands but what i really want is to be able to play with rvm and that requires a login shell. Can any body help?
DoubleMalt has joined #ruby
kerunaru has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
niftylettuce has quit [Quit: Connection closed for inactivity]
maletor has quit [Quit: Computer has gone to sleep.]
arup_r has quit [Quit: Leaving]
diegoaguilar has quit [Ping timeout: 272 seconds]
leafybas_ has quit [Ping timeout: 244 seconds]
dasher00 has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
kadoppe_ has quit [Ping timeout: 272 seconds]
mghaig has joined #ruby
codecop has quit [Quit: Išeinu]
kadoppe has joined #ruby
baweaver has joined #ruby
sinkensabe has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
fantazo has quit [Quit: Verlassend]
gusrub has joined #ruby
agentmee1kat has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
dopie has quit [Ping timeout: 240 seconds]
willardg has joined #ruby
sinkensabe has quit [Remote host closed the connection]
waka has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
professorscience has joined #ruby
waka has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
CloCkWeRX has joined #ruby
ht__ has joined #ruby
dlitvak has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
bMalum has quit [Quit: bMalum]
<professorscience> Hi all, not sure if this is the right place but: I'm trying to use rake because it came along with 'ceedling' which I'm trying out. A few questions but starting at one: is there a way I can add a task as a pre-requisite to all tasks (except itself)?
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__desmondhume has quit [Read error: Connection reset by peer]
ESpiney has joined #ruby
bMalum has joined #ruby
__desmondhume has joined #ruby
<BraddPitt> naftilos76 can you expand on what you're trying to do?
mattwildig has joined #ruby
cicloid has joined #ruby
elshaka has joined #ruby
mozzarella has joined #ruby
tvw has quit [Remote host closed the connection]
Guest53 has joined #ruby
benlieb has joined #ruby
<jhass> professorscience: not really, I mean you could list all tasks and update them again, but what is this for?
<BraddPitt> professorscience you can have a rake task call another rake task with `Rake::Task['task_name'].execute
DoubleMalt has joined #ruby
sdwrage has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
DoubleMalt has quit [Max SendQ exceeded]
lukaszes has joined #ruby
<professorscience> jhass: There seem to be several options for default builds - test, test:all, release, default, all... I would like it so all of them depend on having built one task which is a library.
decoponio has quit [Quit: Leaving...]
<jhass> elaborate?
dopie has joined #ruby
<naftilos76> BraddPitt, i am using rails 4.2 and at some point i need a login shell so that i can set my ruby env bu doing 'rvm use 2.2.0' and then get the list of gems i have and showing them in a webpage
mjuszczak has quit [Client Quit]
DoubleMalt has joined #ruby
malconis has quit [Ping timeout: 250 seconds]
<professorscience> jhass: I'm using someone else's library which I've cloned from github. It has a makefile to build its own .o files which I can then (hopefully) link my C against. But I need to have the make command run for any of the rake tasks. If that makes sense?
sinkensabe has joined #ruby
<BraddPitt> naftilos76 so on a webpage hosted by your rails app, you want to have an interactive login shell?
<professorscience> jhass: I should say, ceedling is a TDD framework for C, but it includes rake.
Cyther has joined #ruby
<BraddPitt> or you just want to show the list of gems being used on a webpage hosted by your rails app?
aaeron has quit [Quit: Leaving.]
<BraddPitt> if the latter, you can just shell out for the command and put the return value in an html.erb page
<jhass> professorscience: I would expect ceedling to have appropriate hooks/configuration for that
roxtrongo has joined #ruby
<naftilos76> BraddPitt, no as i said i want to show a list of my gems under a certain ruby version. RVM requires a login shell. I cannot do that with system() or other `` or whatever.
<jhass> peeking at the project you don't write a Rakefile/regular rake tasks at all there
h99h9h88 has joined #ruby
sdwrage has quit [Ping timeout: 250 seconds]
sdwrage_ has joined #ruby
<naftilos76> BraddPitt, happens on the click of a button. i never said anything about an interactive terminal on a page
karapetyan has joined #ruby
<BraddPitt> ok, I see. Well unfortunately I cannot help you as I do not know how to get a login shell from ruby
<zwdr> cant you just use a cronjob to write that stuff into a flat file?
ht__ has quit [Quit: Konversation terminated!]
<professorscience> jhass: Hmm. I would have thought the same but it seems the project maintainers haven't got around to fully documenting their scripts.
ht__ has joined #ruby
<BraddPitt> I would suggest zwdr's approach
SCHAAP137 has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 244 seconds]
<naftilos76> BraddPitt, someone did this: http://stackoverflow.com/questions/5051782/ruby-net-ssh-login-shell which is supposed to perform like a login shell but i cannot get stdout from the commands execution
mjuszczak has joined #ruby
uri has joined #ruby
lemur has joined #ruby
nfk|laptop has joined #ruby
h99h9h88 has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
maddmaxx has joined #ruby
<naftilos76> Anybody? Login shell with a ruby gem?
freerobby has joined #ruby
rgtk has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
<jhass> run sh -l ?
malconis has joined #ruby
<naftilos76> This project claims interactive login shells but no docs are available and after trying some methods i couldn't get stdout : https://github.com/jedi4ever/net-ssh-shell
Icey has quit [Quit: icey]
lemur has quit [Ping timeout: 246 seconds]
<jhass> dunno, if you have the rvm script in the path, just use rvm do
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
syath has quit [Quit: WeeChat 1.2]
<naftilos76> jhass, if i do any of these bash -l or sh -l the net/ssh gem process gets trapped which is documented as normal as this is not the supposed usage of net/ssh
<naftilos76> jhass, i want to be able to change rubies by doing rvm use this or use that etc
frmendes has joined #ruby
<jhass> it's (getting a login shell) probably the wrong solution to your problem anyway
maddmaxx has quit [Quit: Leaving]
<naftilos76> jhass, do you have anything else to suggest?
<BraddPitt> can you make a bash script on the server running rvm that outputs the gemlist into a file?
<BraddPitt> then read that file in your application to get the gem list?
<jhass> rvm use is merely convenience, nothing I'd rely on in a script anyway
<grill_> question: how would I go about splitting up a module across multiple files (one class per file) in such a manner that would allow the classes to reference eachother?
evanjs has quit [Remote host closed the connection]
<BraddPitt> grill_ references should (ideally) be one way to avoid circular dependencies
<naftilos76> i do not want to break this process into a bunch of running scripts bash/ruby each affecting the other and so on
<BraddPitt> attempt to structure you code as such
maddmaxx has joined #ruby
<jhass> grill_: you generally don't have to worry about it until you have toplevel code referencing one constant to be defined to define another and to define that other constant you need the former
cicloid_ has joined #ruby
evanjs has joined #ruby
__desmondhume has quit [Remote host closed the connection]
cicloid has quit [Read error: Connection reset by peer]
<jhass> grill_: that is if you have the references in methods only, it should just work
cicloid_ has quit [Max SendQ exceeded]
cicloid has joined #ruby
tomphp has joined #ruby
SCHAAP137 has joined #ruby
<grill_> ok. can I structure the file as I would a java program?
DoubleMalt has quit [Remote host closed the connection]
dented42 has joined #ruby
cicloid has quit [Max SendQ exceeded]
dmitch has joined #ruby
<grill_> i.e. have one "main" class that instantiates other classes + performs operations?
<shevy> what does this mean
<shevy> yeah
Coldblackice has joined #ruby
<grill_> do I need to do any includes or anything?
<shevy> of course
cicloid has joined #ruby
<grill_> how would the includes work?
<jhass> include is for mixing a module into a class
maletor has joined #ruby
<jhass> it's sort of like inheriting an interface in java, except that the implementation comes with them
<jhass> so no, you don't generally need include
<jhass> only where it makes sense
<grill_> why'd shevy say "of course" then
<jhass> because shevy, nobody else would mind if you just ignore them tbh
<grill_> ok
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> ouch
axsuul has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
<grill_> so ruby will implicitly understand that several classes in a module spread across several files are all part of the same module?
axsuul has joined #ruby
<jhass> grill_: ruby doesn't really care. You use require to load files and those files define constants (classes and modules are just objects assigned to constants too)
sdothum has quit [Read error: Connection reset by peer]
Guest53 has joined #ruby
<jhass> ruby makes no assumptions at all on the relation between file names and what classes or modules they define or do in any way really
<jhass> that's just conventions
indignatio has quit [Quit: Leaving]
<grill_> ok. i am going to have to look into require a bit then.
<jhass> the two popular styles are to require the files that define the classes & modules the class/module of the current file needs in order to function at the top of the file, or have a central entry point file where you do all requires in the right order
<jhass> I tend to prefer the first
sdothum has joined #ruby
benlieb has quit [Quit: benlieb]
redline6561 has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
<frmendes> hey! I have to connect to an already existing database. With datamapper it's just defining the models and relationships between them and run setup, right?
dravine has quit [Ping timeout: 264 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
ghostbox has quit [Read error: Connection reset by peer]
dravine has joined #ruby
<banister> yorickpeterse The Dutch-man with a singular bullfrog or trilobite expression of the eyes, whose eyes were like frog ponds in the broad platter of his cheeks and gleamed like a pool covered with frog-spittle.
<adaedra> wow.
EvanFreeeman has joined #ruby
<EvanFreeeman> wow
neanderslob has quit [Read error: Connection reset by peer]
<EvanFreeeman> look at all these people
rodfersou|dinner is now known as rodfersou
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
CloCkWeRX has quit [Ping timeout: 246 seconds]
<EvanFreeeman> 1
EvanFreeeman has left #ruby [#ruby]
mwaldner has joined #ruby
jorb_ is now known as jorb
mghaig has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mwaldner has quit [Client Quit]
ghostbox has joined #ruby
EvanFreeeman has joined #ruby
<EvanFreeeman> test
tomphp has joined #ruby
<EvanFreeeman> grr
EvanFreeeman has left #ruby [#ruby]
Ox0dea has joined #ruby
<jhass> do they expect a reaction within 3 seconds or ...?
uri has quit [Ping timeout: 246 seconds]
<adaedra> Like most new people on IRC.
<adaedra> "There's 1k people, room must be very active."
<Ox0dea> jhass: I'm almost certain shevy took grill_'s "do any includes" to mean "use `require`", which would explain his "of course".
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> Ox0dea: maybe, it's confusing to newbies nevertheless
sepp2k1 has joined #ruby
ec|hat is now known as ec
<jhass> if you research include with ruby you won't get require explained
<grill_> s/new people on IRC/millennials/g
<jhass> new to ruby I mean ;)
<grill_> yeah. i am looking into require and include now. it is time
<Ox0dea> In any case, "do any includes" is poor phrasing, and I don't think shevy deserved that particular round of belittlement.
<jhass> Ox0dea: and tbh they have a habit for such confusing statements or mentioning things that are only confusing to the other person since only remotely related
mghaig has joined #ruby
<Ox0dea> But I do that too?
<grill_> ok. so, i meant "requre"
<grill_> err require
<Ox0dea> You did.
sepp2k has quit [Ping timeout: 250 seconds]
adac has quit [Ping timeout: 240 seconds]
<adaedra> Ox0dea: not the same way, I'd say.
<jhass> Ox0dea: you solve the real problem first or at least clear it up quickly. I'm not saying they do it intentionally, but they keep going on with the irrelevant/confusing stuff
<jhass> defending it as relevant even when pointed out that it's quite misleading atm
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grill_> so, let's say I have a module with three classes (a, b, and main). Let's also say I've split the module into three files such that each contains a single class. How do I reference a and b from main?
<jhass> grill_: if you're inside module Main, just A or B, outside Main::A, Main::B
tomphp has joined #ruby
h99h9h88 has joined #ruby
makenoise has quit [Remote host closed the connection]
<jhass> grill_: and as said make sure the files defining A & B are require'd first
scmx has quit [Ping timeout: 250 seconds]
h99h9h88 has quit [Remote host closed the connection]
kriskropd_ has quit [Changing host]
kriskropd_ has joined #ruby
kriskropd_ is now known as kriskropd__
imperator has joined #ruby
tomphp has quit [Client Quit]
kriskropd__ is now known as kriskropd
rgtk has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
synthroid has quit []
VeryBewitching has joined #ruby
Freeaqingme has joined #ruby
CloCkWeRX has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
raldu_ has left #ruby [#ruby]
malconis_ has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
phillips1012 has quit [Ping timeout: 250 seconds]
failshell has quit []
arthurix has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
tomphp has joined #ruby
mjuszczak has quit []
mghaig has joined #ruby
adac has joined #ruby
tomphp has quit [Client Quit]
mh_laakso has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
SCHAAP137 has joined #ruby
ht__ has quit [Client Quit]
Guest53 has joined #ruby
aaeron has joined #ruby
<grill_> ok nice
icarus_ has quit [Quit: leaving]
nfk|laptop has quit [Quit: yawn]
rakm has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has joined #ruby
tomphp has joined #ruby
rgtk has quit [Remote host closed the connection]
ghostbox has quit [Read error: Connection reset by peer]
CloCkWeRX has left #ruby [#ruby]
ghostbox has joined #ruby
subscope has joined #ruby
jdawgaz has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<meatchicken> Anyone looking for ruby devs?
bMalum has quit [Quit: bMalum]
vdamewood has joined #ruby
<adaedra> I think they're in the #ruby channel
agent_white has joined #ruby
malconis_ has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
devoldmx has joined #ruby
rakm has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
K1MOS has joined #ruby
mhi^ has left #ruby [#ruby]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
weemsledeux has joined #ruby
ht__ has joined #ruby
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
Xeago has joined #ruby
tomphp has joined #ruby
davejlong has quit [Quit: leaving]
phillips1012 has joined #ruby
ht__ has quit [Client Quit]
<imperator> adaedra, wut
willardg has joined #ruby
rakm has quit [Client Quit]
it_tard has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
mary5030 has quit [Remote host closed the connection]
<adaedra> imperator, nothing.
sdwrage_ has quit [Quit: This computer has gone to sleep]
mjuszczak has quit []
tomphp has quit [Client Quit]
ss_much has quit [Quit: Connection closed for inactivity]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
rakm has joined #ruby
stan has quit [Quit: Leaving]
professorscience has left #ruby [#ruby]
mjuszczak has joined #ruby
tulak has quit [Remote host closed the connection]
lemur has joined #ruby
tulak has joined #ruby
axsuul has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
axsuul has quit [Max SendQ exceeded]
nfk has quit [Ping timeout: 240 seconds]
sdwrage_ has joined #ruby
axsuul has joined #ruby
flip_digits has quit [Ping timeout: 244 seconds]
elshaka has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
baweaver has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
adac has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
chouhoulis has quit [Remote host closed the connection]
sdwrage_ has quit [Read error: Connection reset by peer]
weaksauce has quit [Client Quit]
weaksauce has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
roxtrongo has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
it_tard has quit [Quit: Try memory.free_dirty_pages=true in about:config]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Paradox has quit [Quit: off to herp the derps]
karapetyan has quit [Remote host closed the connection]
Paradox has joined #ruby
jdawgaz has joined #ruby
wildlander has quit [Quit: Saliendo]
karapetyan has joined #ruby
BTRE has quit [Quit: Leaving]
stamina has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
<darix> 2.3.0.preview1
<Ox0dea> Is that a thing?
ndancer has joined #ruby
dkam has joined #ruby
aramiscd has joined #ruby
Pupeno has quit [Remote host closed the connection]
tomphp has joined #ruby
<Ox0dea> Searching only turns up Shibata-san's blog?
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
<darix> Ox0dea: ruby ML has announcement
<shevy> are you people doing ruby prank day again
<darix> [ruby-core:71450]
Steve_Jobs has quit [Quit: WeeChat 0.4.2]
B1n4r10 has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> how should this be compiled
<darix> and test package is building
<Ox0dea> shevy: Haven't you compiled Ruby before?
<shevy> yeah but not with this magic bullet thing there
tomphp has joined #ruby
<shevy> hmm
<shevy> I can't see any configure option for that?
<darix> shevy: well you can install an opensuse vm and use my rpm. ;)
<shevy> darix what option did you use for compiling it?
<darix> shevy: the same as for my 2.2 rpm atm
<shevy> hmmmm
<darix> once this test build is done i will check for new configure options
<shevy> aha
vdamewood has quit [Max SendQ exceeded]
tomphp has quit [Client Quit]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
vdamewood has joined #ruby
doddok has quit [Quit: Leaving]
redline6561 has left #ruby [#ruby]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tomphp has quit [Client Quit]
tomphp has joined #ruby
<darix> stupid typo
mghaig has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
marr has joined #ruby
mahlon_ is now known as mahlon
zapata has joined #ruby
tomphp has quit [Client Quit]
h99h9h88 has joined #ruby
mghaig has joined #ruby
<imperator> on the one hand, the string.freeze pragma is pretty cool
<imperator> on the other, i feel like if i need to use it, i've entered "might want to use another language" territory
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
tomphp has joined #ruby
<darix> that sounds promising
poguez_ has quit [Quit: Connection closed for inactivity]
chrisja has quit [Quit: leaving]
tomphp_ has joined #ruby
<Ox0dea> imperator: I'm trying to find a way to monitor allocations to automatically thaw these stupid frozen-by-default strings. :P
h99h9h88 has quit [Ping timeout: 264 seconds]
<Ox0dea> There's #trace_object_allocations on ObjectSpace, but it takes a block to monitor.
skweek has joined #ruby
tomphp__ has joined #ruby
<Ox0dea> (Just for giggles, mind.)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has quit [Ping timeout: 240 seconds]
tomphp__ has quit [Client Quit]
tomphp has joined #ruby
tomphp_ has quit [Ping timeout: 240 seconds]
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
user1138 has joined #ruby
htmldrum has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
momomomomo has joined #ruby
[gmi] has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
tomphp has quit [Client Quit]
robbyoconnor has joined #ruby
Fire-Dragon-DoL has joined #ruby
mjuszczak has quit []
tomphp has joined #ruby
baweaver has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[gmi] has quit [Client Quit]
tomphp has quit [Client Quit]
arthurix_ has joined #ruby
i8igmac has joined #ruby
<shevy> imperator yeah
Yzguy has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
tomphp has joined #ruby
rakm has joined #ruby
RegulationD has quit [Remote host closed the connection]
ESpiney has quit [Quit: Leaving]
eminencehc has joined #ruby
arthurix has quit [Ping timeout: 252 seconds]
roxtrong_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tomphp has quit [Client Quit]
sdothum has joined #ruby
willardg has joined #ruby
gregf has quit [Ping timeout: 255 seconds]
mghaig has quit [Ping timeout: 246 seconds]
umgrosscol has quit [Remote host closed the connection]
safe has joined #ruby
momomomomo has quit [Quit: momomomomo]
jsrn has quit [Ping timeout: 246 seconds]
roxtrongo has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
zack6849 has quit [Quit: Leaving]
ndancer has quit [Changing host]
ndancer has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
chipotle has joined #ruby
willardg has quit [Client Quit]
johnzorn has joined #ruby
jsrn has joined #ruby
<Papierkorb> Can I somehow override the global `backtick` method?
<adaedra> It's Kernel#`, iirc.
<adaedra> &ri Kernel#`
Xeago has quit [Remote host closed the connection]
tomphp has joined #ruby
<imperator> something, something, you'll shoot your eye out kid
<adaedra> >> module Kernel; def `(*); puts "You didn't say the magic word!"; end; end; `ls` # Broke pry, by the way.
<ruboto> adaedra # => You didn't say the magic word! ...check link for more (https://eval.in/467339)
benlieb has quit [Quit: benlieb]
<Papierkorb> imperator: it's for use in specs, I just want to disallow any calls to the system through the backtick
<adaedra> That was the "can we", not the "should we" is something else.
<adaedra> now*
<Papierkorb> thanks
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
tomphp has quit [Client Quit]
mpistone has quit []
mary5030 has joined #ruby
tomphp has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grill_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
lkba has joined #ruby
willardg has joined #ruby
malconis has quit [Read error: Connection reset by peer]
ebbflowgo has quit [Quit: ebbflowgo]
ibouvousaime has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
malconis has quit [Client Quit]
riotjon__ has joined #ruby
i8igmac has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has quit [Ping timeout: 276 seconds]
imperator has quit [Quit: Leaving]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
axl_ has quit [Ping timeout: 250 seconds]
tomphp has quit [Client Quit]
poguez_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
roxtrong_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
c355E3B has quit [Quit: Connection closed for inactivity]
TPBallbag has joined #ruby
tomphp has joined #ruby
rakm has joined #ruby
djbkd has joined #ruby
tomphp has quit [Client Quit]
tenderlove has quit [Read error: Connection reset by peer]
doddok has joined #ruby
<doddok> what does error mean ? parallel.rb:184:in `value': No live threads left. Deadlock?
<jhass> that there are no resumable threads left and you ran into a deadlock
<doddok> but code worked early
tomphp has joined #ruby
cyberfawkes has joined #ruby
mghaig has joined #ruby
<jhass> luck
tenderlove has joined #ruby
<cyberfawkes> oi, what's the "best"(I realize this is subjective) way to learn ruby?
<jhass> cyberfawkes: depends on your background
exadeci has joined #ruby
p0wn3d__ has quit [Ping timeout: 250 seconds]
tomphp has quit [Client Quit]
maddmaxx has quit [Quit: Leaving]
tomphp has joined #ruby
<to_json> _why!
<Ox0dea> cyberfawkes: $ echo `which ruby` >> /etc/shells && chsh -s `which ruby` $USER
<Ox0dea> Do it.
<Ox0dea> (Don't do it.)
tomphp has quit [Client Quit]
<jhass> cyberfawkes: I guess I was hoping you would elaborate on yours ;)
<to_json> where 'best' == 'funniest'
<to_json> that's definitely the way to go
<cyberfawkes> jhass: sorry, we're under a tornado warning. The only languages I've programmed in is C(very little), and Python.
<to_json> (it's remarkably effective as well as being funniest)
<jhass> cyberfawkes: if you know python well, something like the koans might even work to get familiar with the basics
<Ox0dea> to_json: Is it really that effective at actually teaching the language?
<Ox0dea> It was very good for getting me interested, I'll grant that much.
patdohere has joined #ruby
Hello has quit [Quit: <Citronflexe> je me strompfe le grand shtrompfe]
<to_json> Ox0dea: it was my book of choice, though admittedly, using ruby a bunch and googling my failures was my real teacher
<Ox0dea> ?books cyberfawkes
<ruboto> cyberfawkes, You can find a list of recommended books at http://ruby-community.com/pages/links
maletor has quit [Quit: Computer has gone to sleep.]
<to_json> http://exercism.io/ is great for learning a new language in terms of one you already know
<to_json> just do the python track and the ruby track at the same time
<Ox0dea> >> :everything.is_a? Object # cyberfawkes
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<Ox0dea> Yay, computers.
<to_json> imho python -> ruby is a pretty small transition wherein most of your existing idioms and practices will continue to serve you. just don't forget to `end` your blocks
<Ox0dea> I'm not sure that's true.
lukaszes has quit [Ping timeout: 264 seconds]
<jhass> well, the base datastructures the languages evolve around are the same, which helps a bunch
h99h9h88 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patdohere has quit [Ping timeout: 240 seconds]
<to_json> the lack of namespaces is a bit of a shock, i suppose
gambl0re has joined #ruby
unknowns2k2 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
lukaszes has joined #ruby
<to_json> oh shit, Sandi's book, too.
maletor has joined #ruby
beast has quit [Quit: Leaving]
<to_json> it's not there to teach you ruby per se
<to_json> but you could do worse than to learn ruby from it
tomphp has quit [Client Quit]
symm- has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
h99h9h88 has quit [Ping timeout: 240 seconds]
<jhass> lack is a bit harsh, it's just that there's none per file
k3asd` has quit [Ping timeout: 260 seconds]
<cyberfawkes> well... that was fun... sorry guys. basically a friend and I, are building an IRC Bot. I know Python, and my friend knows Ruby. We ended up going with Ruby. We are using something called gems? Basically I need to get into ruby really fast.
naftilos76 has quit [Quit: Αποχώρησε]
tomphp has joined #ruby
<jhass> gems are libraries, rubygems is to ruby what pip is to python
<jhass> you're probably going with cinch?
unreal has joined #ruby
ebbflowgo has joined #ruby
tomphp has quit [Client Quit]
<to_json> oh man, a cinch bot is itself a really fun way to learn ruby
freerobby has joined #ruby
<cyberfawkes> jhass: never used/heard of pip.
<cyberfawkes> cinch?
<to_json> easy_install?
<to_json> cinch is a gem/module/framework for building IRC bots
<jhass> well, not too much python either I guess :P
unreal_ has quit [Ping timeout: 240 seconds]
<to_json> gives you all you need to start taking IRC messages as arguments
<cyberfawkes> jhass: I pretty much used Python for making text based adventure games, scripts, etc. Nothing I was intending to share with anyone.
<cyberfawkes> to_json: I'll have to take a look at that.
Arkon has quit [Remote host closed the connection]
<jhass> pip is more about using than sharing really
robbyoconnor has quit [Quit: Konversation terminated!]
ebbflowgo has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
<cyberfawkes> I don't know how I haven't heard about it.
Arkon has joined #ruby
<cyberfawkes> ah! okay.
nertzy has joined #ruby
tomphp has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnd_nsfw has joined #ruby
tomphp has quit [Client Quit]
<cyberfawkes> 1.+(3) #=> 4
<cyberfawkes> what's the purpose of the period?
<Ox0dea> cyberfawkes: Many Ruby "operators" are actually just method calls.
<havenwood> >> 1.public_send(:+, 3)
<ruboto> havenwood # => 4 (https://eval.in/467351)
TheNet has joined #ruby
<Ox0dea> >> foo = 42; def foo.+ other; 42; end; foo + 9001
<ruboto> Ox0dea # => can't define singleton (TypeError) ...check link for more (https://eval.in/467352)
<Ox0dea> Grr.
<havenwood> cyberfawkes: You'd in practice use a little syntactic sugar and write: 1 + 3
<jhass> so python maps operators to special names, like __add__, Ruby just uses the operators in the method names too
flip_digits has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
unknowns2k2 has quit [Quit: unknowns2k2]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has quit [Remote host closed the connection]
unknowns2k2 has joined #ruby
simplyianm has quit [Remote host closed the connection]
<blubjr> is if/else a method in ruby
simplyianm has joined #ruby
tomphp has joined #ruby
<jhass> no
karapetyan has joined #ruby
RegulationD has joined #ruby
x-light has quit [Ping timeout: 272 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blubjr> yuck