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/
tomphp_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
ahuman_ is now known as ahuman
<Ox0dea> blubjr: In which language is `if` not a special form?
<Ox0dea> (Besides Smalltalk.)
devoldmx has joined #ruby
roxtrongo has joined #ruby
<yorickpeterse> banister: don't IRC and smoke at once
tomphp has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
<Ox0dea> You should totally use Cinch, but it's nice that you can write an IRC bot in ~10 lines of Ruby.
TPBallbag has quit [Remote host closed the connection]
<blubjr> smalltalk :p
vdamewood has quit [Ping timeout: 265 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
Encapsulation has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has quit [Quit: WeeChat 1.3]
h99h9h88 has joined #ruby
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 260 seconds]
Kiseki has joined #ruby
eminencehc has quit [Remote host closed the connection]
<yorickpeterse> It's strange there are no actively used languages (that I know of) besides Smalltalk where even keywords are methods
<yorickpeterse> as in, if/else/while/etc being methods
podman has quit [Quit: Connection closed for inactivity]
framling has joined #ruby
Kiseki has quit [Client Quit]
mwlang has joined #ruby
tomphp has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
weemsledeux has joined #ruby
davedev24 has joined #ruby
<blubjr> lisp isn't far off
tomphp has quit [Client Quit]
<Ox0dea> blubjr: Yes, it is?
<blubjr> is it?
<yorickpeterse> blubjr: note the specific inclusion of "methods"
<Ox0dea> `if` is a special form in every Lisp I know of.
<blubjr> thats why i said not far off, i was excluding it
lemur has joined #ruby
purplexed- has quit [Ping timeout: 260 seconds]
<blubjr> if could be a method if you were using lisp's object system
h99h9h88 has quit [Remote host closed the connection]
<blubjr> it's a historical accident that it isn't
mostlybadfly has joined #ruby
tomphp has joined #ruby
<Ox0dea> It boils down to being able to delay evaluation, and you can do that in pretty much any mainstream language.
tkuchiki has joined #ruby
psy_ has quit [Ping timeout: 276 seconds]
tomphp has quit [Client Quit]
<yorickpeterse> maybe in a few years once I actually finish my language we'll have a proper successor to Smalltalk
rakm has joined #ruby
<blubjr> TTilus: well in smalltalk if gets passed closures anyway
<yorickpeterse> I may or may not also ride a unicorn at that time
_wldcordeiro has joined #ruby
<blubjr> i just mean subclassing bool to handle if like smalltalk does
<TTilus> blubjr: mm, point taken
tomphp has joined #ruby
davedev2_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
tomphp has quit [Client Quit]
lemur has quit [Ping timeout: 265 seconds]
<Ox0dea> blubjr: How do you feel about this? https://eval.in/467353
<Ox0dea> >> def if; 42; end; p if() # This is weird.
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Ox0dea> Wat.
htmldrum has joined #ruby
Rickmasta has joined #ruby
<yorickpeterse> Ox0dea: heh, clever use of whitespace
ebbflowgo has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<Ox0dea> Hm?
wldcordeiro has quit [Ping timeout: 246 seconds]
<yorickpeterse> the "-->"
<Ox0dea> Ah, right.
<Ox0dea> I think it's neat.
davedev24 has quit [Ping timeout: 240 seconds]
<yorickpeterse> I think you should burn forever if you actually use that somewhere in production :P
<Ox0dea> I'll get the kerosene.
<yorickpeterse> but yes, it's neat
blackmes1 has joined #ruby
<shortdudey123> anyone know of HA setups for geminabox? not finding much
<blubjr> i mean sure i wasn't saying it's not powerful enough to define it, just like you could define it like that if you wanted in lisp, just that neither language comes with it defined like that, it's ugly
<blubjr> in ruby every operation is just sending a message except for some arbitrary things that aren't
<blubjr> everything in java is an object
<blubjr> yuck
<Ox0dea> blubjr: Is your presence here some strange masochistic penance?
<yorickpeterse> blubjr: not everything in java is an object
<bougyman> blubjr: not everything
JDiPierro has quit [Remote host closed the connection]
<bougyman> oh, yorick just said that.
<blubjr> yorickpeterse: thats what i meant
x-light has joined #ruby
<Ox0dea> blubjr: What is the significance of the "blub" in your nick, if you don't mind my prying?
ramfjord_ has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
TomPeed has joined #ruby
<yorickpeterse> they're a fish
<yorickpeterse> :>
<blubjr> Ox0dea: i dont see whats wrong with calling ugly things ugly, im just learning ruby lately for a job. i think its better than most languages so far
htmldrum has quit [Ping timeout: 255 seconds]
<blubjr> i think the paul graham essay is stupid but i like lisp too, it's kind of ironic
baweaver has quit [Remote host closed the connection]
Arkon has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
veg has quit []
benlovell has joined #ruby
TheNet has quit [Remote host closed the connection]
<eam> any ffi folks about? I want to basically cast one FFI::Struct into another
platzhirsch has left #ruby [#ruby]
benlieb has joined #ruby
wprice has quit [Quit: wprice]
baweaver has joined #ruby
Pupeno has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
veg has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Quit: Leaving]
vigintas has quit [Ping timeout: 246 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
stannard has quit [Remote host closed the connection]
jdawgaz has joined #ruby
hxegon has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
Encapsulation has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
Arkon has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 265 seconds]
ibouvousaime has joined #ruby
Channel6 has joined #ruby
agent_white has joined #ruby
tomphp has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
doddok has quit [Quit: Leaving]
predator217 has quit [Ping timeout: 252 seconds]
hkumar has joined #ruby
mary5030 has joined #ruby
tubuliferous_ has joined #ruby
Kuntinator has joined #ruby
Kuntinator has left #ruby [#ruby]
framling has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
hxegon has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
ruurd has joined #ruby
mghaig has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
rodfersou has quit [Quit: leaving]
Rickmasta has joined #ruby
weaksauce has joined #ruby
Rickmasta has quit [Client Quit]
CodingWolf has joined #ruby
ruurd has quit [Client Quit]
Rickmasta has joined #ruby
htmldrum has joined #ruby
dented42 has joined #ruby
veg has quit []
atomical has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
TheNet has joined #ruby
Rickmasta has quit [Client Quit]
veg has joined #ruby
mattwildig has joined #ruby
baroquebobcat has joined #ruby
krz has joined #ruby
lsv has joined #ruby
mjuszczak has joined #ruby
cmoney has joined #ruby
lsv_ has quit [Ping timeout: 272 seconds]
pkrueger has joined #ruby
marr has quit [Ping timeout: 250 seconds]
h99h9h88 has joined #ruby
gusrub has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
ebbflowgo has quit [Read error: Connection reset by peer]
cmoney has quit [Remote host closed the connection]
mghaig has joined #ruby
sankaber has joined #ruby
lsv_ has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Leaving]
henry_ has joined #ruby
hkumar has quit [Quit: Leaving]
lsv has quit [Ping timeout: 276 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has joined #ruby
gusrub has quit [Remote host closed the connection]
to_json has quit [Quit: Leaving.]
Channel6 has quit [Quit: Leaving]
to_json has joined #ruby
to_json has joined #ruby
Guest46989 has quit [Ping timeout: 260 seconds]
northfurr has joined #ruby
h99h9h88 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
veg has quit []
lemur has joined #ruby
dlitvak has joined #ruby
Yzguy has quit [Quit: Cya]
rgtk has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
to_json has quit [Quit: Leaving.]
rgtk has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
daivyk has quit [Quit: ZZZzzz…]
A124 has quit [Quit: '']
h99h9h88 has quit [Ping timeout: 260 seconds]
<Ox0dea> eam: FFI::Pointer doesn't let you poke memory like Fiddle::Pointer does, but having both seems a little weird.
rgtk has quit [Read error: No route to host]
lemur has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
<Ox0dea> You can just say `Fiddle::Pointer.new(foo.object_id * 2)[0, n] = Fiddle::Pointer.new(bar.object_id * 2)[0, n]`.
Juanchito has quit [Quit: Connection closed for inactivity]
<Ox0dea> Where `foo` is some instance of the Fiddle::Struct you're trying to cast to, and `bar` the thing you've got.
rgtk has quit [Read error: No route to host]
<Ox0dea> You'll have to muck about with `n` to determine what all needs to be copied over for the "cast" to be valid.
grilled-cheese has quit [Quit: grilled-cheese]
rgtk has joined #ruby
maletor has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Yzguy has joined #ruby
tkuchiki has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> eam: Por ejemplo: https://eval.in/467374
<Ox0dea> An example of an "incomplete cast", as it were.
tkuchiki has quit [Remote host closed the connection]
<eam> oooh
<Ox0dea> Fancy, right?
mjuszczak has quit []
ESpiney has joined #ruby
TheNet has quit [Remote host closed the connection]
Senjai has joined #ruby
mghaig has quit [Ping timeout: 272 seconds]
ebbflowgo has joined #ruby
<eam> so I think I did what I want which is something like new_struct = new_struct_class.new FFI::MemoryPointer.from_string old_struct.to_ptr.read_string old_struct.size
to_json has joined #ruby
to_json has joined #ruby
<eam> it just seems .. odd
chipotle has quit [Quit: cheerio]
<Ox0dea> That does look unpleasant.
mghaig has joined #ruby
TheNet has joined #ruby
<Ox0dea> blubjr: Do you disagree, then, with his "shockingly controversial" assertion that languages vary in power?
chouhoulis has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
<blubjr> pardon ?
<Ox0dea> > i think the paul graham essay is stupid
pedahzur has joined #ruby
<eam> Ox0dea: yeah, in fact it was so unpleasant what I actually did was just avoid casting and have something like s2_abc = s1[:xyz] # comment: :xyz is actually :abc when an instance of s2
ekinmur has joined #ruby
<eam> since I only needed like two fields
_stu_ has joined #ruby
<Ox0dea> What could possibly go wrong? :P
<FailBit> >> 0<=>0
<ruboto> FailBit, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
mghaig has quit [Ping timeout: 250 seconds]
<drbrain> eam: that sounds exactly like what C does when you cast a struct
<FailBit> orly
<Ox0dea> FailBit: eval.in is on the fritz.
<eam> drbrain: yup, that's exactly what I'm trying to copy
<Ox0dea> But we're supposed to be pretending it's more than just bits underneath!
<eam> struct thing2 t *t2 = (struct thing2 *) &t1
<eam> is the C version
mghaig has joined #ruby
<pedahzur> Beginner question here. I'm trying to use rspec/mocks. I do include 'rspec/mocks' and that succeeds, but I'm still being told allow(....) is an undefined method. What (simple) error am I making?
axsuul has quit [Ping timeout: 276 seconds]
matp has quit [Ping timeout: 276 seconds]
<eam> Ox0dea: which pg essay is stupid, btw?
<Ox0dea> eam: blubjr's namesake.
<Ox0dea> pedahzur: You're using #allow at the top level?
swgillespie has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
<blubjr> the part that i think is stupid about that essay is that he thinks lisp is exempt from his criticism for some reason
blackmes1 has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
<pedahzur> Ox0dea: The README here: https://github.com/rspec/rspec-mocks doesn't indicate anything different.
<pedahzur> Unless the bare code sample are supposed to imply some sort of context. :)
veg has joined #ruby
<pedahzur> Ox0dea: But yes, using #allow at top level.
<Ox0dea> pedahzur: Yes, they assume context.
<Ox0dea> #allow is only invokable in the context of a subject.
<Ox0dea> That is, an #it block, more or less.
<Ox0dea> blubjr: And yet here you are called blubjr; if there's a joke to get, I'm missing it.
<eam> blubjr: not the part where he disregards the difficulty of finding fluent engineers in a particular implementation?
<Ox0dea> $ ruby -r rspec/mocks -e 'p methods.grep /allow/'
<Ox0dea> []
<Ox0dea> pedahzur: ^ I'm not sure what to tell ya, mate.
SenpaiSilver has quit [Read error: Connection reset by peer]
segmond has joined #ruby
<blubjr> sorry i guess its double ironic, don't worry about it
<Ox0dea> It's cognitive dissonance.
<pedahzur> Ox0dea: Hmm, OK. Any quick tips on getting Ruby to ignore/return true for a require statement during a test (That's what I was trying to do here.) Trying to allow a test to run without having a particular module installed.
<blubjr> yup
Oli` has quit [Ping timeout: 240 seconds]
<blubjr> thats the joke
<Ox0dea> pedahzur: You could rescue LoadError?
<pedahzur> I could...seems yucky, though, and we wouldn't want that in production.
<Ox0dea> Whale, I think you'd have to redefine Kernel#require, then.
<Ox0dea> And that's yuckier.
mghaig has quit [Ping timeout: 240 seconds]
<pedahzur> Ox0dea: yeah, that's why I thought that allow() method would help out. Ah well.
devoldmx has joined #ruby
JDiPierro has joined #ruby
<Ox0dea> #allow just says that it's okay for some object to receive some method; it's not a catch-all in the way you were hoping.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> *some message
<eam> I like to mock them like this: require, you are slow as shit and do a lot of absurd, unnecessary work!
<eam> though it's not entirely constructive if I'm being honest with myself
baroquebobcat has joined #ruby
tulak has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
ekinmur has joined #ruby
RobertBirnie has joined #ruby
<Ox0dea> pedahzur: https://eval.in/467378
<Ox0dea> I don't know why the SO answer got upvoted and accepted, but it's wrong.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unknowns2k2 has quit [Quit: unknowns2k2]
<pedahzur> Ox0dea: Bummer.
A124 has joined #ruby
momloy has joined #ruby
bigmac_ has joined #ruby
rgtk has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
ESpiney_ has joined #ruby
evanjs has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
rgtk has joined #ruby
cicloid has joined #ruby
<zenspider> bwah?
ESpiney has quit [Ping timeout: 255 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<zenspider> why would you mock out a require??
<zenspider> I... just no.
sdwrage has joined #ruby
rgtk has quit [Read error: No route to host]
bigmac_ has quit [Ping timeout: 240 seconds]
Quandl has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
cicloid has quit [Client Quit]
gambl0re has quit [Ping timeout: 260 seconds]
<pontiki> eam: being constructive is sometimes highly overrated.
<pontiki> taking the piss is sometimes the best course
Kuntinator has joined #ruby
<Kuntinator> can ruby run on windows?
<Ox0dea> Kuntinator: No.
<pedahzur> zenspider: Trying to allow a unit test to run without having to require the dev to install said gem.
<Ox0dea> !next
|ifei5g00d has quit [Remote host closed the connection]
<Ox0dea> Also, !cops
rgtk_ has joined #ruby
rgtk has quit [Read error: No route to host]
<pedahzur> Kuntinator: http://lmgtfy.com/?q=ruby+windows
<Ox0dea> pedahzur: You're feeding a troll.
<pedahzur> Ox0dea: Ah well, I fed him google.
<eam> nom nom nom
<Kuntinator> pedahzur: will it have the same features as my friend on os x?
<Ox0dea> He needs to be fed the door.
<pontiki> zenspider: more of my coworkers are starting to look more seriously at minitest
rgtk_ has quit [Read error: Connection reset by peer]
<pedahzur> Kuntinator: I don't know what features your friend has. Male? Female? Tall? Short?
teclator has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
<Kuntinator> female big boobs small waist kind of chubby but still fit you could say thick and somewhat attractive but not really your type
<Kuntinator> she has abs of steel
<pontiki> speak of trolls, Ox0dea
<Kuntinator> but a her second chin and short stature makes her look like she's fat
<Ox0dea> pontiki: Hm?
<pontiki> and feeding
northfurr has quit [Quit: northfurr]
<Ox0dea> Do I feed trolls?
A124 has quit [Quit: '']
<pontiki> no
<pontiki> sorry, i meant "tell them again"
JDiPierro has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
<Ox0dea> I already phoned the authorities; I don't know why zenspider is permitting this to continue.
A124 has joined #ruby
<Kuntinator> maybe because you're being deliberately obtuse Ox0dea
rgtk has joined #ruby
<pontiki> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
mghaig has joined #ruby
<Radar> !mute Kuntinator
<Radar> Thanks pontiki
<baweaver> !mute Kuntinator
<baweaver> dangit
<Radar> baweaver: too slow
<pontiki> ta, radar
<baweaver> you win
Kabal has quit []
JDiPierro has quit [Remote host closed the connection]
Kabal has joined #ruby
Kuntinator has left #ruby [#ruby]
<Radar> Ox0dea: "I already phoned the authorities; "?
<Radar> Actually phoned or what?
<Ox0dea> > !cops
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
<jhass> looks like the ban/quiet list is full again, somebody should clean up
<Radar> Ox0dea: It's !ops, on a single line by itself.
<Ox0dea> I didn't want to bug the rest of you on account of zenspider's proximity to the situation.
<eam> Ox0dea: you have to actually sing the song "bad boys bad boys, whatcha gonna do"
Rickmasta has joined #ruby
<Radar> He probably doesn't have IRC open in front.
tkuchiki has joined #ruby
rgtk has joined #ruby
<Radar> Probably tabs over to it just like the rest of us
ghostbox has quit []
Contigi has joined #ruby
rgtk has quit [Read error: No route to host]
_blizzy_ has quit [Quit: Leaving]
Jardayn has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 265 seconds]
rgtk has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
cyberfawkes has left #ruby [#ruby]
bruno- has joined #ruby
pkrueger has quit [Quit: Leaving]
bruno- is now known as Guest96449
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
|ifei5g00d has joined #ruby
rgtk_ has quit [Read error: No route to host]
solocshaw has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
<zenspider> sorry. I was cooking
<zenspider> pontiki: that's great!
rgtk has quit [Read error: No route to host]
Guest96449 has quit [Ping timeout: 252 seconds]
rgtk has joined #ruby
<pontiki> zenspider: they were deeply impressed at the readability/understandability of the test code, and the speed blew them away
benlovell has joined #ruby
<pontiki> (did not use spec)
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
ESpiney__ has joined #ruby
<pontiki> zenspider: so long way around to saying "Thank you very much"
DLSteve has joined #ruby
rgtk_ has joined #ruby
<zenspider> yay! you're very welcome
rgtk_ has quit [Read error: No route to host]
rgtk has quit [Read error: No route to host]
<pedahzur> So, the only way I'm seeing this is to make the dev install the gem, and then mock out the two calls to the Module. Siiigh...that was looking so promising. Thanks for your help Ox0dea. It was good talking through all that. It is appreciated.
ESpiney_ has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
<zenspider> !ban rgtk !T 1h please fix your connection
rgtk was banned on #ruby by ChanServ [rgtk!*@*]
rgtk was kicked from #ruby by ChanServ [Banned: please fix your connection]
towski_ has quit [Remote host closed the connection]
<pontiki> pedahzur: this smells a bit; if a gem is required in only some circumstances and not others, and you don't want to force the gem user to install it, the structure your requires so they don't have to
<pontiki> warping you tests to mock out a require is quite odd
asianMike has joined #ruby
<zenspider> pontiki: lemme know if they have any questions or feedback.
<pontiki> if you need to, use two helpers, one can require it and the other helper that doesn't
<pontiki> or follow the practice of requiring the gem in the places it's used
<pedahzur> pontiki: It might not be the right way. There is always that possibility. The required gem returns some information used to contruct a config file. If I could just have mock'ed stubs that returned that informatoin, I woudln't need to require the module for the tests. We install via chef_gem during the chef run, so the 'require' is in the function itself. I suppose I could see if I am running under ChefSpec and branch on that.
ramfjord_ has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
<zenspider> this sounds really backwards
to_json has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
safe has quit [Read error: Connection reset by peer]
nizmow has joined #ruby
<pedahzur> zenspider: Totally open for suggestions to improve it. I work with a bunch of guys that are pretty smart in Ruby, but we are not Ruby experts, I'm sure. This is what we came up with. Now I'm trying to figure out how to test it. :)
cmoney has joined #ruby
Pupeno has joined #ruby
bigmac_ has joined #ruby
tubuliferous_ has joined #ruby
to_json has quit [Ping timeout: 240 seconds]
ElSif has quit [Read error: Connection reset by peer]
Pupeno has quit [Ping timeout: 240 seconds]
bigmac_ has quit [Ping timeout: 246 seconds]
blackmes1 has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
unknowns2k2 has joined #ruby
bigmac_ has joined #ruby
dented42 has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
<bigmac_> Ox0dea: i found a way to speed up a permutation.
<bigmac_> i would like to share
<Ox0dea> bigmac_: Yay!
<Ox0dea> Please do so.
<bigmac_> [0,1].repeated_permutation(24){|x|}
<Ox0dea> I don't follow.
<bigmac_> takes my machine to complete (102.247645998)
<bigmac_> i can perform this same permutation in (7.498221399)
<bigmac_> ill post eval
blackmes1 has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> bigmac_: Do you know that you can access the individual bits of a Fixnum?
<bigmac_> what do you mean?
<Ox0dea> >> 6.times.map { |i| 42[i] } # bigmac_
<ruboto> Ox0dea # => [0, 1, 0, 1, 0, 1] (https://eval.in/467381)
<Ox0dea> You've still said little to nothing about why you're doing these permutations, but I bet this realization will help you speed it up even further.
rakm has joined #ruby
Guest60384 has quit [Quit: Leaving]
cmoney has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
tkuchiki has quit [Remote host closed the connection]
neonalpine has quit [Remote host closed the connection]
unknowns2k2 has quit [Quit: unknowns2k2]
freerobby has quit [Quit: Leaving.]
pedahzur has quit []
tkuchiki has joined #ruby
<pontiki> ah, they've left
<bigmac_> wife up my butt
mghaig has quit [Ping timeout: 272 seconds]
unknowns2k2 has joined #ruby
axsuul has joined #ruby
A124 has quit [Quit: '']
kies has quit [Ping timeout: 265 seconds]
kies has joined #ruby
freerobby has joined #ruby
tater has joined #ruby
DiCablo has joined #ruby
TheNet has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo_ has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
TheNet has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
symm- has joined #ruby
<Ox0dea> bigmac_: And now that your rather unorthodox colonoscopy has presumably finished, what're you doing with these permutations?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krazyj has joined #ruby
<bigmac_> i feel stupid lol
<bigmac_> i cant explain
neonalpine has joined #ruby
<krazyj> can the `||` operator be strung together? and will it stop evaluating on the first one that returns something?
<Ox0dea> krazyj: Yep.
<krazyj> Ox0dea: thanks!
krazyj has quit [Client Quit]
eminencehc has joined #ruby
<Ox0dea> I do hope they have a solid understanding of what they meant by "returns something".
Arkon has quit [Read error: Connection reset by peer]
Arkon_ has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
<bigmac_> i cant see your example performing faster
<Ox0dea> bigmac_: It depends on what you're doing.
<bigmac_> i guess your right
baweaver has quit [Remote host closed the connection]
bruno- has joined #ruby
<Ox0dea> bigmac_: Do you *really* need every number from 0 to 16777215 as an array of bits?
bruno- is now known as Guest66357
<bigmac_> i dont exactly need it as array
<Ox0dea> But you do need the bits of every number from 0 to 16777215?
<bigmac_> yes
<bigmac_> enum
neonalpine has quit [Remote host closed the connection]
asianMike has quit []
<dorei> lol
<bigmac_> "she wore her wedding dress to the orgy "
<bigmac_> "she wore her wedding dress to the orgy "
<bigmac_> "she wore her wedding dress to the orgy "
<dorei> >>2**16
<ruboto> dorei # => 65536 (https://eval.in/467382)
<dorei> >>2**32
<ruboto> dorei # => 4294967296 (https://eval.in/467383)
<Ox0dea> bigmac_: Is everything okay, mate?
<bigmac_> quote from anchorman
favadi has joined #ruby
rgtk_ has joined #ruby
rgtk_ was banned on #ruby by ChanServ [*!*@ip-91.246.72.229.skyware.pl]
rgtk_ was kicked from #ruby by ChanServ [Banned: please fix your connection]
<bigmac_> for x in 0..2**20; 20.times.map {|i| (x[i])} ; end
<bigmac_> >>for x in 0..2**20; 20.times.map {|i| (x[i])} ; end
astrobunny has joined #ruby
<ruboto> bigmac_ # => (https://eval.in/467384)
<bigmac_> i guess it didnt print anything
mattwildig has quit [Remote host closed the connection]
baweaver has joined #ruby
Guest66357 has quit [Ping timeout: 276 seconds]
ValicekB has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
crystalmaiden has joined #ruby
mghaig has joined #ruby
peppers has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
weemsledeux has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
SalexW has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
dopie has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
crystalmaiden has quit [Quit: Leaving]
bb010g has joined #ruby
rgtk has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
ElSif has joined #ruby
rgtk has joined #ruby
<SirFunk> Anyone know of a convenient way to share some memory between workers in a forking ruby server (like unicorn) ?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
karapetyan has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
Arkon_ has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
doll has joined #ruby
Arkon has joined #ruby
_stu_ has quit [Quit: _stu_]
rgtk has quit [Read error: Connection reset by peer]
<doll> I'm using active record to access a mysql database in ruby; I have figured out how to delete all tables' contents, but I can't figure out how to delete the contents for any single table... halp?
karapetyan has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
<Radar> doll: ?code
<Radar> doll: ?gist
<doll> sec, working on it
CrazyEddy has joined #ruby
gambl0re has joined #ruby
<doll> line 58
djbkd has quit [Quit: My people need me...]
dlitvak has joined #ruby
chipotle has joined #ruby
Arkon has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
<pontiki> where do you test it?
<doll> could you clarify?
<pontiki> seriously?
<doll> english isn't my first language
<pontiki> which of those words don't you understand?
<Radar> doll: Seems like clean_table would delete all the contents of a single table.
henry_ has quit [Ping timeout: 255 seconds]
<doll> @Radar which is what I want, but I'm getting an error: pry(main)> clean_table (books) NameError: undefined local variable or method `books' for main:Object from (pry):7:in `<main>'
<Radar> clean_table(Book)
h99h9h88 has joined #ruby
<Radar> Or, you could just do Book.delete_all
<Radar> Since it's almost the same length
<doll> jesus
<doll> thank you
<Radar> I really don't understand the reason for the clean_table method. It doesn't seem to add any usefulness.
<Radar> I am not jesus.
<doll> it's not, it's just required for the assignment
<doll> you are jesus
<doll> hail Radar
<Radar> Ok.
<Radar> Jesus was much nicer than me./
<Radar> At least, that's how the stories go.
<doll> i will put your image on my starbucks cup
<Radar> hah
<doll> thanks boo
h99h9h88 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
<Radar> np
rakm has joined #ruby
cmoney has joined #ruby
qiukun has joined #ruby
h99h9h88 has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troyready has quit [Quit: Leaving]
devl has joined #ruby
maikowblue has quit [Quit: .]
chouhoulis has quit [Remote host closed the connection]
RegulationD has joined #ruby
eminencehc has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has joined #ruby
jhack has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
<jhack> hey
<jhack> hows it going everyone
h99h9h88 has joined #ruby
Yzguy has quit [Quit: Zzz...]
<jhack> So i’m trying to create a binary search method that takes a value and array, where i don’t use array/enumerable methods.. can someone lead me to the right direction? I’ve tried slicing the array into two halves and creating a while loop
<Ox0dea> jhack: I trust you know that binary search requires a sorted collection?
Arkon has joined #ruby
fedexo has joined #ruby
<jhack> yeah
axl_ has joined #ruby
<Ox0dea> jhack: How are you going to halve the array without using *any* Enumerable methods?
bigmac_ has quit [Ping timeout: 240 seconds]
Eiam_ has joined #ruby
benlieb has joined #ruby
peppers has quit [Ping timeout: 276 seconds]
nateberkopec has quit [Quit: Leaving...]
<SirFunk> Is there a good way to share memory between unicorn workers?
<Ox0dea> SirFunk: Don't Unicorn processes already share memory?
yfeldblu_ has joined #ruby
<jhack> sorry, i meant without relying on enumerable methods
<Ox0dea> jhack: Well, how do you determine the size of the collection without doing something like checking for when Array#[] returns nil?
<SirFunk> Ox0dea: no, they fork.. Puma Threads share
benlovell has joined #ruby
<Ox0dea> SirFunk: Parents can share memory with their children just fine.
<SirFunk> hmm, is that so?
<Ox0dea> It is.
<Ox0dea> The memory will have to be copied if you modify it, but *only* if you modify it.
yfeldblum has quit [Ping timeout: 240 seconds]
<SirFunk> Ox0dea: oh, yeah. I should have specified, I need to write to it from the children
dlitvak has quit [Ping timeout: 276 seconds]
<Ox0dea> SirFunk: I suppose Marshal dumps are out of the question?
<SirFunk> Dump to where? File?
<Ox0dea> Yeah, it's not the greatest idea.
<jhack> Ox0dea: okay so if we were able to use .length/array#[]
<Ox0dea> jhack: Then it would become much easier. :P
<SirFunk> Ox0dea: I have an implementation using a PStore to share that seemsm to work better than expected, but it's not "fast enough"
G186 has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
G186 has quit [Excess Flood]
<jhack> Ox0dea: so, something along the lines of if the value is equal to the last value of the half then return the value but if not slice it again ?
G186 has joined #ruby
<Ox0dea> jhack: Recursively.
G186 has quit [Excess Flood]
<Ox0dea> SirFunk: PStore is backed by a file; are you looking to do away with sharing via file entirely?
<SirFunk> yeah
x-light has quit [Ping timeout: 260 seconds]
G186 has joined #ruby
dlitvak has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
<G186> Hello,
charliesome has joined #ruby
<SirFunk> Ox0dea: It is for this: https://github.com/prometheus/client_ruby/issues/9 I'm actually OK with the performance of the PStore method in my simple tests.. the people with commit bits have reservations?
<G186> can any one help out with basic cucumber help?
rbowlby has quit [Remote host closed the connection]
<G186> i just want to write a test case for an isPalindrome ruby program, trying to learn cucumber,
<G186> using rubymine.
<jhack> hmmmmmm
braincra- has quit [Quit: bye bye]
sam_ has joined #ruby
gix has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
ruurd has joined #ruby
<Radar> G186: What do you need help with, specifically.
<Radar> question-mark-goes-here
trav408 has quit [Ping timeout: 252 seconds]
<G186> Radar, well, I made the ruby program, it works, now I just need to test it with cucumber
<G186> Radar, I made the features folder in the root of the project
<G186> Radar, and I made a test.features file
neonalpine has joined #ruby
bruno- has joined #ruby
<G186> and i wrote some stuff in it, but it doesn't work.. and it doesn't seem like it should!
bruno- is now known as Guest84317
doll has quit [Quit: Page closed]
<G186> so, how do I write the Give, When, Then?
<Radar> G186: You're going to have to be more specific than that.
<G186> so, how do I write the Given, When, Then?
<Radar> G186: ?gist
<Radar> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
karapetyan has joined #ruby
<Radar> Put what code you have up on there, please. and then anything that indicates it not working too.
karapetyan has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
gix has joined #ruby
dorei has quit []
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 244 seconds]
<G186> its really short
framling has joined #ruby
baweaver has joined #ruby
<Radar> Short is good.
sdwrage has quit [Quit: This computer has gone to sleep]
<Radar> What happens when you run it? What is indicating to you that it is not working?
neonalpine has quit [Ping timeout: 250 seconds]
Guest84317 has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
<G186> I don't know how to run it I guess.
braincrash has joined #ruby
Arkon has quit [Remote host closed the connection]
<jhack> Ox0dea: I need a little more guidance if thats okay
<G186> I've ran j-unit testing before, I was looking to do the same thing, but using ruby and cucumber,
<Ox0dea> jhack: Are you pursuing the recursive approach, then?
Arkon has joined #ruby
<jhack> yeah, would i be able to do it with only 2 inputs? value and array?
Fire-Dragon-DoL has quit []
<Ox0dea> Absolutely.
<Ox0dea> What are the termination conditions? When do you know you won't be able to find the target element?
brushbox has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
yfeldblu_ has quit [Ping timeout: 240 seconds]
<jhack> Ox0dea: when the value is higher than the value at the midpoint array?
<jhack> and on and on?
<Radar> G: Run cucumber features/test.feature
<Radar> G186: ^
Xiti` has joined #ruby
chipotle has quit [Quit: cheerio]
ItSANgo has quit [Ping timeout: 240 seconds]
Arkon has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
Arkon has joined #ruby
<jhack> Ox0dea: termination conditions are when we find the input, or when have an empty array?
Ltnt_Hawkeye has joined #ruby
<Ox0dea> jhack: Right, the latter.
<Ltnt_Hawkeye> hello!
<Ltnt_Hawkeye> does anyone know of an API for interfacing with Makerbot?
ebbflowgo has quit [Quit: ebbflowgo]
robbyoconnor has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
<Ox0dea> jhack: If the array to be searched has become empty, you can't possibly find the element, but this is also true if you find yourself with an array of length 1 which doesn't contain the target.
CloCkWeRX has joined #ruby
arup_r has joined #ruby
<Radar> G186: did that work?
ruurd has joined #ruby
<kiki_lamb> So... if I feel like I want what would, in C++, be private inheritance, then in Ruby I probably wanna just use composition instead, right?
chipotle has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
<kiki_lamb> or, rather, just make a different class delegating as needed to the class i want to, in theory, privately inherit from?
mghaig has joined #ruby
h99h9h88 has joined #ruby
rbowlby has joined #ruby
ruurd has quit [Client Quit]
<G186> Radar, that seems to run it, but I got some errors I'm going to try and work out!
<Radar> G186: ok :)
<G186> Radar, thank you for the info!
<Radar> We'll still be here to help.
<jhack> Ox0dea: Okay now my question is how are we splitting the arrays continuously to check for this, can we set two variables equal to slice? then return the variable if the value of the number is greater than the input?
<Ox0dea> jhack: left, right = a[0...mid], a[mid..-1]
<G186> Radar, sometimes I think about you and the other people here that help, (not anyone in particular) and I wonder why do you help? j
kp666 has joined #ruby
baweaver has joined #ruby
<Radar> G186: Because I wanted this kind of help when I was new too.
astrobu__ has joined #ruby
<jhack> Ox0dea: yeah, and then we can have a conditional with the recursion iin the block?
kp666 has quit [Max SendQ exceeded]
<Ox0dea> jhack: Which block?
<jhack> if/else?
<Ox0dea> Right.
<Ox0dea> That's not a "block" in Ruby parlance, mind.
<G186> Radar, understood!
kp666 has joined #ruby
<jhack> oh..
<Ox0dea> "Clause" is a little better, I guess.
<Ox0dea> G186: "Be the change you wish to see in the world."
astrobunny has quit [Ping timeout: 240 seconds]
<jhack> Ox0dea: would this work if the value and array were symbols as well?
sam_ has quit [Ping timeout: 264 seconds]
<Ox0dea> jhack: That would depend on your implementation, of course, but Symbols are indeed Comparable.
<Ox0dea> >> Symbol.include? Comparable
<ruboto> Ox0dea # => true (https://eval.in/467448)
<Radar> G186: Also: I can't tell you how many times I've helped someone in one of these channels and then later on (maybe days, weeks or months later) I've been able to use what I found out then in my own work.
mghaig has quit [Read error: Connection reset by peer]
<G186> Ox0dea,Radar good stuff, I've helped out before, but not as much as I've asked, but I will do better!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ltnt_Hawkeye> does anyone know of an API for interfacing with Makerbot?
ibouvousaime has quit [Ping timeout: 252 seconds]
cjheath has quit [Quit: cjheath]
gusrub has joined #ruby
<Ox0dea> Ltnt_Hawkeye: This looks promising? https://github.com/tbuser/RublicatorG
<jhack> Ox0dea: can i show you on gist what I have?
<Ox0dea> jhack: Please do.
ThatsNotJack has quit [Remote host closed the connection]
<jhack> the spacing is kinda messed up.
<jhack> sorry
<Ox0dea> jhack: You're not slicing the left array out properly.
ThatsNotJack has joined #ruby
simplyianm has quit [Remote host closed the connection]
mghaig has joined #ruby
<Ox0dea> Line 2 is just a very verbose way of saying `left = sorted_array`. :P
simplyianm has joined #ruby
<Ox0dea> Well, `left = sorted_array.dup`, but still, that's not what you want.
axisys has joined #ruby
<jhack> so i needa do sorted_array.length/2
cmoney has quit []
<Ox0dea> jhack: Yeah, in my example from earlier, that's what `mid` was meant to indicate.
ThatsNotJack has quit [Remote host closed the connection]
<jhack> okay, so i can just create, mid = sorted_array.length / 2
Lucky__ has joined #ruby
ThatsNotJack has joined #ruby
atzorvas has joined #ruby
atzorvas_ has joined #ruby
gusrub has quit [Quit: Leaving]
solenoids has joined #ruby
phillips1012 has quit [Disconnected by services]
chipotle has quit [Quit: cheerio]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> jhack: You'll be using that calculation more than once, so yeah, it makes sense for it to be its own variable.
<Ox0dea> Ruby lets you have *billions* of locals if you so desire. :P
<jhack> Ox0dea: so now it seems like my if/else statements need to be fixed right?
astrobu__ has quit [Remote host closed the connection]
gusrub has joined #ruby
atzorvas has quit [Ping timeout: 264 seconds]
<Ox0dea> jhack: Do you see where it's broken?
<jhack> Ox0dea: it’s giving me the output [:A, :B]
<jhack> which is weird..
<Ox0dea> jhack: Well, you're returning the array.
<jhack> oh right...
<Ox0dea> But you've also got a condition the wrong way round.
psy has joined #ruby
<jhack> mmm
psy has quit [Max SendQ exceeded]
shinenelson has joined #ruby
<jhack> something with the left == nil part?
<jhack> oh wait
N|993R has joined #ruby
<N|993R> hello
psy has joined #ruby
<Ox0dea> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
<jhack> nope nvm
<havenwood> !mute N|993R
patdohere has joined #ruby
<jhack> Ox0dea: yeah so it would be my first if statement right? checking if left == nil?
<Ox0dea> jhack: You're talking about different code than what you shared up there.
s00pcan has quit [Remote host closed the connection]
<Ox0dea> Oh, sorry, I didn't realize you'd updated it.
<baweaver> why an explicit nil check? nil is falsy anyways
<Radar> Thank you Ox0dea.
<baweaver> (now that you've gone and got my attention :P)
<Ox0dea> jhack: `nil` and an empty array are hardly synonymous.
<Ox0dea> Also, how come you're returning the array?
Uptime has joined #ruby
<jhack> Yeah, i should be returning left
qiukun has quit [Quit: qiukun]
<jhack> along with nil => []
<Ox0dea> `nil` need never come into this. :P
<jhack> yeah..
Rickmasta has joined #ruby
<baweaver> someone's been using js lately
astrobunny has joined #ruby
<jhack> Now, i’m getting the [:A] value
patdohere has quit [Ping timeout: 276 seconds]
<Ox0dea> jhack: You don't want an array at all.
ss_much has joined #ruby
<Ox0dea> Either the sought value or `nil`, right?
axl_ has joined #ruby
djbkd has joined #ruby
nateberkopec has joined #ruby
<jhack> right
<jhack> but..
<jhack> im lost
<Ox0dea> value: 8 array: 7 right: 4 if: 4 end: 3 left: 3 mid: 3 return: 3 bsearch: 3 first: 2 size: 2 else: 1 last: 1 empty: 1 def: 1
dented42 has joined #ruby
<Ox0dea> There's a histogram of the words I used in my solution. :P
flip_digits has quit [Quit: Lost terminal]
<N|993R> what is a detailed resource where i can learn lambdas?
<Ox0dea> *lambdae
<Ox0dea> Do you even Greek?
<baweaver> !mute N|993R
<havenwood> !ban N|993R !T 1d
N|993R was kicked from #ruby by ChanServ [User is banned from this channel]
<jhack> Im still lost Ox0dea
<jhack> so u didnt even use elsif's
<Ox0dea> jhack: Write the base case first.
<G186> Radar, I'm stuck! I'm not sure where to go from here,
<Ox0dea> Return `nil` as soon as you have enough information to correctly do so.
saddad has joined #ruby
era has joined #ruby
KindOne has joined #ruby
<Radar> G186: You need to define those steps in Cucumber.
<Radar> G186: I'd really recommend writing this test in RSpec instead of Cucumber
<jhack> okay, so if right.empty? || right.length == 1 return nil
<Radar> G186: My Cucumber is very rusty. I haven't used it in quite some time.
<G186> Radar, unfortunately, I have to use cucumber..
<pontiki> i'd recommend writing it in minitest :D
axl_ has quit [Ping timeout: 260 seconds]
<Ox0dea> jhack: You have an opportunity to return if before you've split the list.
<Ox0dea> *even before
lsv has joined #ruby
<pontiki> G186: is this an exercise to teach you cucumber?
darkf has joined #ruby
duckgoose has joined #ruby
duckgoose has left #ruby ["ByrdIRC"]
era has left #ruby ["Bye"]
<G186> pontiki, kind of, we have to implement cucumber on any ruby program.
<jhack> Ox0dea: so… return sorted_array[mid]
<Ox0dea> jhack: Definitely not.
<ElSif> jhack: i noticed u are excluding the last element in your right slice `(mid...-1)` is that intentional?
mghaig has quit [Read error: Connection reset by peer]
<jhack> ElSif: no it wasn’t, thanks
KindOne has left #ruby [#ruby]
<ElSif> yw :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhack> Ox0dea: you lost me :X
<jhack> oops wrong emoji
lsv_ has quit [Ping timeout: 264 seconds]
<Ox0dea> jhack: https://eval.in/467452
<Ox0dea> I reckon you can take it from there with a bit of hammock time.
benlovell has joined #ruby
<jhack> oh, i didnt know you can use return if like that...
<jhack> thanks..
<jhack> a lot
<jhack> Ox0dea:
<jhack> !
tubuliferous_ has joined #ruby
Ltnt_Hawkeye has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> jhack: Sure thing. I'm gonna step out for a bit; I hope I've left you a sufficiently illuminating skeleton. ^_^
<jhack> yes you have, thanks a lot!
bruno- has joined #ruby
<Ox0dea> Happy to help.
neonalpine has joined #ruby
<Ox0dea> (If only I could be so grossly incandescent.)
<pontiki> :)
bruno- is now known as Guest38042
nateberkopec has quit [Ping timeout: 265 seconds]
mghaig has joined #ruby
Lucky__ has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
dlitvak_ has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
neonalpine has quit [Ping timeout: 240 seconds]
Guest38042 has quit [Ping timeout: 272 seconds]
x-light has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
dkam_ has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
N|993R_ has joined #ruby
N|993R_ was kicked from #ruby by ChanServ [User is banned from this channel]
haraoka has joined #ruby
karapetyan has joined #ruby
dkam has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
dviola has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
skcin7 has joined #ruby
x-light has quit [Ping timeout: 250 seconds]
saddad has quit [Quit: WeeChat 1.4-dev]
psy has quit [Disconnected by services]
psy_ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
qiukun has joined #ruby
maletor has joined #ruby
drs has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drs> is there a good ruby web framework that has examples of getting it's data through http requests? (so no database, just http calls returning json).
framling has quit [Remote host closed the connection]
qiukun has quit [Quit: qiukun]
Blaguvest has quit []
davedev2_ has quit []
blackmes1 has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has quit [Remote host closed the connection]
mghaig has quit [Ping timeout: 272 seconds]
ohaibbq has joined #ruby
makenoise has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
akkad has quit [Excess Flood]
akkad has joined #ruby
roxtrongo has joined #ruby
roxtrong_ has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
hays has quit [Ping timeout: 244 seconds]
fedexo has quit [Ping timeout: 240 seconds]
favadi has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
roxtrongo has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
Arkon has joined #ruby
drs has quit [Quit: leaving]
hays has joined #ruby
ruurd has quit [Client Quit]
h99h9h88 has quit [Remote host closed the connection]
samwize has joined #ruby
rgtk has joined #ruby
yfeldblum has joined #ruby
prateekp has joined #ruby
dviola has quit [Quit: WeeChat 1.3]
<prateekp> i am getting this error 645
<prateekp> error: 'SSLv3_method' undeclared here (not in a function) OSSL_SSL_METHOD_ENTRY(SSLv3),
<prateekp> when i am trying to install 2.2.3 ruby using rbenv
<prateekp> what should i do
<prateekp> >
<prateekp> ?
qiukun has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
samwize has quit [Remote host closed the connection]
axl_ has joined #ruby
yes`r has joined #ruby
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby
rgtk has quit [Remote host closed the connection]
yfeldblum has joined #ruby
shadoi has quit [Quit: Leaving.]
axl_ has quit [Ping timeout: 240 seconds]
foooobear has joined #ruby
nateberkopec has joined #ruby
mark2 has joined #ruby
ThatsNotJack has quit [Remote host closed the connection]
ESpiney__ has quit [Ping timeout: 240 seconds]
ThatsNotJack has joined #ruby
krz has joined #ruby
ESpiney__ has joined #ruby
bruno- has joined #ruby
neonalpine has joined #ruby
bruno- is now known as Guest82710
lxsameer has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby
ramfjord has joined #ruby
neonalpine has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
Guest82710 has quit [Ping timeout: 264 seconds]
roxtrong_ has quit [Remote host closed the connection]
Erik_Underline has quit [Ping timeout: 246 seconds]
yes`r has quit [Quit: WeeChat 1.3]
h99h9h88 has joined #ruby
yes`r has joined #ruby
roxtrongo has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
prateekp has quit [Quit: Page closed]
jhack has quit [Quit: jhack]
slawrence00 has joined #ruby
slawrence00 has quit [Client Quit]
chrissonar has joined #ruby
mghaig has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
krz has joined #ruby
mhib has joined #ruby
DoubleMalt has joined #ruby
mghaig has quit [Ping timeout: 260 seconds]
doll has joined #ruby
astrobunny has quit [Remote host closed the connection]
<doll> @radar are you around?
<Radar> doll: Yes, but about to leave work
<Radar> doll: it's likely that there's someone else who can help you here
<doll> kek
mhib has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<doll> does any one know how to use activerecord to return a list of products for which the quantity in the stock is less than min_stock?
yfeldblum has joined #ruby
simplyianm has quit [Remote host closed the connection]
<doll> nm i got it
tubuliferous_ has joined #ruby
doll has quit [Quit: Page closed]
simplyianm has joined #ruby
Tricon has joined #ruby
gambl0re has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
codecop has joined #ruby
tmtwd has quit [Ping timeout: 272 seconds]
vdamewood has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 240 seconds]
thesquidbits has quit [Read error: Connection reset by peer]
thesquidbits has joined #ruby
agent_white has quit [Remote host closed the connection]
jas02 has joined #ruby
roxtrongo has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
stannard has joined #ruby
abucha has joined #ruby
yardenbar has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has quit [Quit: qiukun]
TheNet has quit [Quit: Leaving...]
stannard has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
thesquidbits has quit [Ping timeout: 260 seconds]
prosodyvVerreabC is now known as prosodyCagain
SalexW has quit [Remote host closed the connection]
astrobunny has joined #ruby
thesquidbits has joined #ruby
axl_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
rbowlby has quit [Remote host closed the connection]
trosborn has quit [Client Quit]
ReK2 has joined #ruby
nateberkopec has joined #ruby
<certainty> moin
rbowlby has joined #ruby
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
qiukun has joined #ruby
rbowlby has quit [Ping timeout: 246 seconds]
Oatmeal has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
thang has quit [Ping timeout: 272 seconds]
thang has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
akkad has quit [Excess Flood]
sinkensabe has joined #ruby
aganov has joined #ruby
neonalpine has joined #ruby
mattwildig has joined #ruby
bruno- has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
helpa-bot has joined #ruby
bruno- is now known as Guest558
poguez_ has quit [Quit: Connection closed for inactivity]
akkad has joined #ruby
boris317 has quit [Ping timeout: 250 seconds]
okdas has quit [Ping timeout: 244 seconds]
helpa-bot has quit [Remote host closed the connection]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
bafbomb has quit [Read error: Connection reset by peer]
helpa-bot has joined #ruby
tw1sted has quit [Quit: No Ping reply in 180 seconds.]
bafbomb has joined #ruby
Puffball has quit [Quit: No Ping reply in 180 seconds.]
wlanboy has quit [Ping timeout: 250 seconds]
Radar has quit [Ping timeout: 250 seconds]
konopka has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
pwnd_nsfw has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
helpa has quit [Ping timeout: 250 seconds]
neonalpine has quit [Ping timeout: 260 seconds]
segy has quit [Ping timeout: 250 seconds]
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has quit [Changing host]
ReK2GnULinuX has joined #ruby
mattwildig has quit [Ping timeout: 260 seconds]
Brando753 has quit [Ping timeout: 250 seconds]
varesa has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
helpa-bot has quit [Remote host closed the connection]
slash_nick has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
Muz has quit [Remote host closed the connection]
TTilus has quit [Ping timeout: 250 seconds]
slash_nick has joined #ruby
helpa has joined #ruby
Muz has joined #ruby
psy_ has joined #ruby
sumark has joined #ruby
mbeasley has joined #ruby
ReK2 has quit [Remote host closed the connection]
tw1sted has joined #ruby
psy_ has quit [Max SendQ exceeded]
atzorvas_ has quit [Remote host closed the connection]
thesquidbits has quit [Read error: Connection reset by peer]
TTilus has joined #ruby
thesquidbits has joined #ruby
Pupp3tm4st3r has joined #ruby
konopka has joined #ruby
psy_ has joined #ruby
baweaver has joined #ruby
ohaibbq has quit [Quit: Leaving...]
psy_ has quit [Read error: Connection reset by peer]
varesa has joined #ruby
psy_ has joined #ruby
segy has joined #ruby
Radar has joined #ruby
Radar is now known as Guest85793
darkhex has joined #ruby
lemur has joined #ruby
Pupp3tm__ has joined #ruby
Brando753 has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Oatmeal has quit [Ping timeout: 246 seconds]
roxtrongo has joined #ruby
bMalum has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
baweaver has quit [Ping timeout: 244 seconds]
djbkd has quit [Quit: My people need me...]
Pupp3tm4st3r has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
psy_ has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 240 seconds]
stan has joined #ruby
hxegon has quit [Ping timeout: 264 seconds]
A124 has quit [Read error: No route to host]
djbkd has joined #ruby
x-light has joined #ruby
simplyianm has quit [Remote host closed the connection]
Xeago has joined #ruby
simplyianm has joined #ruby
sdwrage has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
h99h9h88 has joined #ruby
cfjk has joined #ruby
brushbox has quit [Quit: brushbox]
Oatmeal has joined #ruby
blackmes1 has joined #ruby
dionysus69 has joined #ruby
gusrub has quit [Quit: Leaving]
h99h9h88 has quit [Ping timeout: 260 seconds]
G186 has quit [Quit: Textual IRC Client: www.textualapp.com]
Sam0984328719874 has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
Oatmeal has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Remote host closed the connection]
Arkon has quit [Ping timeout: 244 seconds]
lubarch has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
neanderslob has quit [Ping timeout: 246 seconds]
Xeago has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
lubarch has quit [Client Quit]
simplyianm has quit [Remote host closed the connection]
lubarch has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
simplyianm has joined #ruby
Xeago has joined #ruby
roxtrongo has joined #ruby
unknowns2k2 has joined #ruby
ruurd has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
adac has joined #ruby
makenoise has quit []
lukaszes has joined #ruby
solars has joined #ruby
lukaszes has quit [Client Quit]
lubekpl has joined #ruby
araujo_ has quit [Quit: Leaving]
Oatmeal has joined #ruby
moeabdol has joined #ruby
Voker57 has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
rgtk has joined #ruby
nickjj has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
ReK2GnULinuX has quit [Remote host closed the connection]
rgtk has quit [Read error: Connection reset by peer]
<sjums> moin certainty
<sjums> or mojn, as my dialect would say it
axl_ has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Arkon has joined #ruby
aufi has joined #ruby
ibouvousaime has joined #ruby
SCHAAP137 has joined #ruby
brushbox has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
teclator has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
benlieb has quit [Quit: benlieb]
spider-mario has joined #ruby
lubarch has quit [Quit: leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
lubarch has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
neonalpine has joined #ruby
roxtrongo has quit [Remote host closed the connection]
mghaig has joined #ruby
x-light has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Remote host closed the connection]
Spami has joined #ruby
neonalpine has quit [Ping timeout: 244 seconds]
mghaig has quit [Ping timeout: 264 seconds]
skweek has joined #ruby
Pupeno has joined #ruby
tkuchiki has quit [Remote host closed the connection]
baweaver has joined #ruby
Pupeno has quit [Client Quit]
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
tkuchiki has joined #ruby
c0m0 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
krz has quit [Read error: Connection reset by peer]
kedare has quit [Remote host closed the connection]
krz has joined #ruby
kedare has joined #ruby
Xeago has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124 has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
spider-mario has quit [Remote host closed the connection]
Guest85793 is now known as Radar
blackmes1 has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
darkhex has quit [Read error: Connection reset by peer]
symm- has joined #ruby
kies has quit [Ping timeout: 240 seconds]
linduxed has quit [Ping timeout: 276 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
marr has joined #ruby
camilasan has quit [Remote host closed the connection]
Arkon has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
dlitvak has joined #ruby
camilasan has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
darkhex has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest96748
Guest558 has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lubarch has quit [Quit: leaving]
TomyWork has joined #ruby
Oli` has joined #ruby
blaxter has joined #ruby
vigintas has joined #ruby
vigintas has quit [Client Quit]
brushbox has quit [Quit: brushbox]
vigintas has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 240 seconds]
Sam0984328719874 has quit [Remote host closed the connection]
lubarch has joined #ruby
Hounddog has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
colegatron_origi has joined #ruby
Emmanuel_Chanel has joined #ruby
arne has joined #ruby
Zackio has quit [Remote host closed the connection]
axl_ has joined #ruby
mikecmpbll has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
ruurd has joined #ruby
nateberkopec has joined #ruby
Zackio has joined #ruby
tlarevo has joined #ruby
matp has joined #ruby
tlarevo has left #ruby [#ruby]
lubekpl has joined #ruby
abucha_ has joined #ruby
axl_ has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
brushbox has joined #ruby
Guest96748 has quit [Ping timeout: 252 seconds]
abucha has quit [Ping timeout: 240 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
darkhex has quit [Quit: Textual IRC Client: www.textualapp.com]
colegatron_origi has quit [Ping timeout: 255 seconds]
colegatron has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
blackmes1 has joined #ruby
teclator has joined #ruby
cammer has joined #ruby
astrobunny has joined #ruby
cammer has left #ruby [#ruby]
<yorickpeterse> morning
karapetyan has joined #ruby
tomphp has joined #ruby
neonalpine has joined #ruby
bonemind has joined #ruby
mattwildig has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
rdark has joined #ruby
rdark has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
sanjayu has joined #ruby
tulak has joined #ruby
blaxter has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
neonalpine has quit [Ping timeout: 252 seconds]
scmx has joined #ruby
<arne> yorickpeterse, hello!
tulak_ has joined #ruby
tulak has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
baweaver has joined #ruby
colegatron has joined #ruby
colegatron_origi has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
matti has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
linduxed has joined #ruby
leafybas_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
htmldrum has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
Mon_Ouie has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
sdwrage has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
ibouvousaime has quit [Ping timeout: 244 seconds]
kerunaru has joined #ruby
dlitvak has joined #ruby
ibouvousaime has joined #ruby
roxtrongo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
User458764 has joined #ruby
karapetyan has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
karapetyan has joined #ruby
solocshaw has joined #ruby
voodo has joined #ruby
pri has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
pri has left #ruby [#ruby]
jas02 has quit [Quit: jas02]
lubekpl has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has quit [Ping timeout: 240 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
sdwrage has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons.]
karapetyan has joined #ruby
colegatron_origi has quit [Remote host closed the connection]
colegatron has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
fargot has joined #ruby
fargot was kicked from #ruby by ChanServ [Banned: http://ruby-community.com/pages/user_rules#rule_2_10]
TPBallbag has joined #ruby
dlitvak has quit [Remote host closed the connection]
rodfersou has joined #ruby
gregf_ has quit [Read error: Connection reset by peer]
nickjj has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
dlitvak has joined #ruby
momloy is now known as mloy
axl_ has joined #ruby
Spami has joined #ruby
karapetyan has joined #ruby
ibouvousaime has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
ESpiney__ has quit [Ping timeout: 260 seconds]
bruno- is now known as Guest85694
nateberkopec has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
linocisco has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
<linocisco> what is ruby most for?
<linocisco> what is ruby most used for?
Guest85694 has quit [Ping timeout: 246 seconds]
<Papierkorb> linocisco: web development (according to some statistics I read months ago), general tooling
Hounddog has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 246 seconds]
tulak_ has quit [Remote host closed the connection]
nanoz has joined #ruby
Hounddog has joined #ruby
sameerynho has joined #ruby
baweaver has joined #ruby
Hounddog has quit [Excess Flood]
<linocisco> Papierkorb, I am searching google for "how to build your own db driven website using ruby" but it shows only rails learning
Hounddog has joined #ruby
<Papierkorb> yep. what's the issue?
<Papierkorb> Rails, or Ruby on Rails, is the most popular web framework with ruby.
benlovell has joined #ruby
gregf_ has joined #ruby
<linocisco> Papierkorb, i want to learn ruby to interact with db. like creating own inventory software using one powerful db. not to use rails
<Papierkorb> Why NOT rails?
<Papierkorb> There are other frameworks, but rails gets the job done in general
lxsameer has quit [Ping timeout: 276 seconds]
<linocisco> Papierkorb, it is just framework already written.
abucha has joined #ruby
<Papierkorb> mh?
nfk|laptop has quit [Ping timeout: 244 seconds]
<arne> linocisco, rails is a great framework to get shit done in short amount of time, there are plenty of alternatives to create stuff with ruby, im using webmachine right now ( which is a webserver written in ruby ), and sequel to speak to a sql database
<linocisco> Papierkorb, the reason why I am learning ruby is as prerequisite to learn rails
DoubleMalt has joined #ruby
<arne> rails is easy and quickly teaches you ruby
<linocisco> Papierkorb, arne but I dont know to which level of ruby I should learn
lubekpl has joined #ruby
<gregf_> start with level 1?
ruurd has joined #ruby
<linocisco> arne, most in rails community said u need to learn ruby before kissing rails otherwise it is more complicated
<linocisco> what is truth?
FernandoBasso has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
<Papierkorb> linocisco: Use rails. Learn ruby along the way. Your first project *will* suck, no matter what you do. There's no "oh you learn this and then you're set and write perfect apps right away"
<arne> well, i learned ruby because i loved the language, never liked rails though, loving it now
<Papierkorb> linocisco: is ruby your first programming language?
baweaver has quit [Ping timeout: 255 seconds]
im0b has joined #ruby
<linocisco> Papierkorb, yes. and no. I learned some old languages C,C++, just like kid hello world program. no db driven. and I forgot them and their syntax as it was over a decade
abucha_ has quit [Ping timeout: 244 seconds]
lubarch has joined #ruby
<Papierkorb> linocisco: Start with rails. Doing everything on your own is too frustrating for most ppl
<Papierkorb> linocisco: Check out the guides, they're well written and teach you quite a lot
<Papierkorb> linocisco: The beginner guide of rails builds a web blog, with a PostgreSQL as DB, and everything nice to get you up to speed for the start.
<Papierkorb> If you're having issues then, come in here or in #RubyOnRails and just ask.
<Papierkorb> have to go now though
<linocisco> Papierkorb, ok.
nfk|laptop has joined #ruby
bubbys has quit [Ping timeout: 255 seconds]
<linocisco> if I go to #rubyonrails, they keep saying man, start learning ruby before touching rails
<linocisco> huuuu
bubbys has joined #ruby
<gregf_> linocisco: rails is a web framework. a lot of things done in rails are quite different from ruby. you 'should' start with ruby, then use a microframework like sinatra(to understand the basic terminologies used in HTTP). thereafter look at rails
<gregf_> tho rails is not at all complicated. but yeah, there only helpers for everything which makes your life easier ;)
Peg-leg has joined #ruby
<gregf_> *theres
brushbox has quit [Quit: brushbox]
baweaver has joined #ruby
bnizzle has quit [Read error: No route to host]
axsuul has joined #ruby
<gregf_> we live in a world where everyone wants everything instantly. unfortunately theres no shortcuts. so begin with ruby. rubykoans or whatever
ruurd has quit [Quit: ZZZzzz…]
bnizzle has joined #ruby
Xeago has quit [Remote host closed the connection]
exadeci has joined #ruby
lxsameer_ has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 250 seconds]
skade has joined #ruby
krz has quit [Ping timeout: 265 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
beauby has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
roxtrongo has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
<apeiros> ruby 2.3 preview1 out, nice things coming: https://github.com/ruby/ruby/blob/trunk/NEWS
blackmes1 has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
<linocisco> ruby latestversino is out, but to install on ubuntu, using apt-get install ruby wont catch latest version ever
<linocisco> only 1.9
<linocisco> but it solved all dependencies using apt
akem has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
<ljarvis> oh dear, matz decided on &. instead of .?
<apeiros> yes
<apeiros> I assume because of foo && foo.bar being the current pattern
bruno- has joined #ruby
<ljarvis> aye
bruno- is now known as Guest33927
doddok has joined #ruby
<ljarvis> can't wait to see that awful syntax litering ruby code
Hounddog has joined #ruby
aufi_ has joined #ruby
aufi has quit [Read error: Connection reset by peer]
lukaszes has joined #ruby
<ljarvis> also Array/Hash #dig
<arne> wow, that is ugly.
<arne> reminds me of the first time trying to understand c pointer syntax
Hounddog has quit [Excess Flood]
<ljarvis> no&.freaking&.way.dig(:wat)
<ljarvis> &.dig *
Hounddog has joined #ruby
<arne> well, i can't think of a case where i need that, thank god
<apeiros> ljarvis: while foo&.bar&.baz looks ugly, it's IMO a lot more readable than both, foo && foo.bar && foo.bar.baz, and foo.try!(:bar).try!(:baz)
<ljarvis> I disagree that it's more readable than the former
<apeiros> then we disagree :)
user1138_ has joined #ruby
<apeiros> nullobject pattern fan? :D
anisha has joined #ruby
ldnunes has joined #ruby
<apeiros> because then it'd be foo.bar.baz
aufi has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<apeiros> it's sad that we can't inherit from NilClass
aufi_ has quit [Ping timeout: 265 seconds]
roxtrongo has joined #ruby
<ljarvis> heh yeah, in general i feel like too many method chains is a bit of a smell anyway
trosborn has joined #ruby
<ddv> stop overengineering, keep it simple silly architect astronauts
user1138 has quit [Ping timeout: 260 seconds]
mghaig has joined #ruby
waka has quit [Remote host closed the connection]
waka has joined #ruby
devbug has quit [Read error: Connection reset by peer]
waka has quit [Remote host closed the connection]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
waka has joined #ruby
mghaig has quit [Ping timeout: 240 seconds]
waka has quit [Client Quit]
trosborn has quit [Quit: trosborn]
haraoka has quit [Remote host closed the connection]
lukaszes has joined #ruby
axl_ has joined #ruby
alexherbo2 has joined #ruby
<dreinull75> how do I dynamically subclass a class from another module? what do I put in the parens? http://fpaste.org/289546/14473260/
<ljarvis> uh, klass?
<dreinull75> ljarvis well, that would just give me the class name, won't tell ruby where it comes from, right?
<ljarvis> ok so use const_get again?
<dreinull75> Since it's OtherModule::klass
<dreinull75> ljarvis that always just returns the class symbols.
<ljarvis> I would use const_get once with map and then reject not classes
lubarch has quit [Quit: leaving]
<ljarvis> im confused, why would you have a class symbol if you use const_get?
<ljarvis> you would have the Class instance
<ddv> dreinull75: why are even doing this?
<ddv> +you
<dreinull75> ddv I'm building an API with a core module and an extended module that allows some tolerance towards errors
<ddv> dreinull75: Ok
<dreinull75> the extended module does exactly the same with some added sugar.
axl_ has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
<dreinull75> so instead of writing all classes over and over again with a single include I could as well do this dynamically.
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> in fact, .grep(Class) would be nicer
DEA7TH has quit [Quit: DEA7TH]
<dreinull75> ljarvis: oh, misunderstanding on my part. The mapping already returns classes. I assumed they were just symbols.
moeabdol has joined #ruby
<dreinull75> of course, the the whole thing works just fine.
<ljarvis> yep
<dreinull75> a problem of representation of values in ruby/irb
mattwildig has joined #ruby
ibouvousaime has joined #ruby
neonalpine has joined #ruby
nateberkopec has joined #ruby
MasterNayru has joined #ruby
MasterNayru has quit [Client Quit]
senayar has joined #ruby
mattwildig has quit [Ping timeout: 265 seconds]
blackmes1 has joined #ruby
stamina has joined #ruby
waka has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Quit: Leaving]
neonalpine has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
DEA7TH has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
qiukun has quit [Quit: qiukun]
baweaver has joined #ruby
qiukun has joined #ruby
waka has quit [Quit: Leaving]
waka has joined #ruby
FernandoBasso1 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
abucha_ has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
FernandoBasso has quit [Ping timeout: 255 seconds]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
abucha has quit [Ping timeout: 255 seconds]
yes`r has quit [Ping timeout: 260 seconds]
ibouvousaime has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
qiukun has quit [Quit: qiukun]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
rgtk has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
antgel has joined #ruby
rikkipitt has joined #ruby
sepp2k has joined #ruby
rikkipitt has quit [Quit: Leaving...]
MasterNayru has joined #ruby
Xeago has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 255 seconds]
prestorium has joined #ruby
dionysus69 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
brushbox has joined #ruby
blackmes1 has joined #ruby
Zackio has quit [Quit: C-x C-c]
ruurd has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
suchness has joined #ruby
Mon_Ouie has joined #ruby
clauswitt has joined #ruby
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
mbeasley has left #ruby ["WeeChat 0.4.2"]
purplexed- has joined #ruby
purplexed- has quit [Changing host]
purplexed- has joined #ruby
axl_ has joined #ruby
ruurd has quit [Max SendQ exceeded]
ruurd has joined #ruby
leafyba__ has joined #ruby
Tricon has quit [Quit: Leaving...]
beauby has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Quit: DEA7TH]
jdawgaz has joined #ruby
<platzhirsch> I have a note here, which I cannot remember fully... does that make sense? "Understanding Rails' subclass method, re-implement it with .grep or .select"
DEA7TH has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 260 seconds]
<apeiros> platzhirsch: maybe you wanted to reimplement Class#subclasses from rails?
leafyba__ has quit [Ping timeout: 250 seconds]
<platzhirsch> yes I think so, because it was very inefficient maybe
chipotle has joined #ruby
skade has joined #ruby
<platzhirsch> must be Rails, not Ruby
<platzhirsch> oh yes, it goes over the whole ObjectSpace
syath has joined #ruby
<platzhirsch> well thanks apeiros! I'll add that to my note
<platzhirsch> and maybe in 2 years I'll do it
tvw has joined #ruby
<FailBit> foo
Xeago has joined #ruby
<platzhirsch> no reason for insults here
FernandoBasso has joined #ruby
<shevy> bar
<ddv> foo
<shevy> platzhirsch I sometimes have entries in my todo files which don't make any sense to me. And I wrote them myself... since then I am trying to put a lot more details into my todo sections
<platzhirsch> fair enough
FernandoBasso1 has quit [Ping timeout: 255 seconds]
neonalpine has joined #ruby
s00pcan has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
neonalpine has quit [Ping timeout: 240 seconds]
apofis has joined #ruby
Jackneill has joined #ruby
piotrj has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
sdothum has joined #ruby
apofis has quit [Ping timeout: 272 seconds]
tvw has quit []
dionysus69 has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
_stu_ has joined #ruby
dionysus69 has joined #ruby
ruurd has joined #ruby
<guardian> hello, while I can program in Ruby I would like to brush my skills up about idiomatic Ruby and modern Ruby. Could someone point me to a good and recent book please?
baweaver has quit [Ping timeout: 240 seconds]
norc has joined #ruby
<norc> Ox0dea: I figured out where the putnil instruction comes from. :)
SCHAAP137 has joined #ruby
<norc> modifier_if and modifier_unless produce NULL nodes in the AST for the (missing) else statement so that it puts a nil ontop of the stack
<norc> >> a = (1 if false)
<ruboto> norc # => nil (https://eval.in/467692)
<norc> Basically to allow for this.
<norc> And the reason why my simple if and unless snippets produced different bytecode is a missing optimization for unless. Ill submit a patch for that, it was just overlooked by nobu.
krz has joined #ruby
dlitvak has joined #ruby
brushbox has quit [Quit: brushbox]
scmx has quit [Ping timeout: 240 seconds]
tlarevo_ has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
jschoolcraft has joined #ruby
tlarevo_ has left #ruby [#ruby]
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
Xeago has quit [Remote host closed the connection]
daivyk has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
freerobby has joined #ruby
scmx has joined #ruby
kobain has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
Icey has joined #ruby
joonty has quit [Quit: joonty]
rgtk has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
northfurr has joined #ruby
zotherstupidguy has joined #ruby
tulak has joined #ruby
tkuchiki has joined #ruby
zotherstupidguy has quit [Client Quit]
ibouvousaime has quit [Ping timeout: 260 seconds]
felixr has joined #ruby
synthroid has joined #ruby
linocisco has quit [Remote host closed the connection]
dkam_ has quit [Ping timeout: 265 seconds]
NeverDie has quit [Read error: Connection reset by peer]
ibouvousaime has joined #ruby
axl_ has joined #ruby
Scymex has joined #ruby
dkam_ has joined #ruby
Hamled has quit [Remote host closed the connection]
Xeago has joined #ruby
NeverDie has joined #ruby
felixr is now known as felixrsmith
sts_ has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
scmx has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
tkuchiki has joined #ruby
sinkensabe has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
tkuchiki has joined #ruby
axl_ has quit [Ping timeout: 265 seconds]
yxhuvud has joined #ruby
sinkensabe has joined #ruby
tkuchiki_ has joined #ruby
kimegede has joined #ruby
k3asd` has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
beauby has joined #ruby
sts_ has joined #ruby
jackjackdripper has quit [Client Quit]
mattwildig has joined #ruby
neonalpine has joined #ruby
lukaszes has joined #ruby
lukaszes has quit [Client Quit]
mattwildig has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
chipotle has quit [Quit: cheerio]
lxsameer_ is now known as lxsameer
lxsameer has quit [Changing host]
lxsameer has joined #ruby
joonty has joined #ruby
User458764 has joined #ruby
neonalpine has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
baweaver has joined #ruby
skweek has joined #ruby
tulak has joined #ruby
atomical has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
yqt has joined #ruby
blackmes1 has joined #ruby
beast has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
TPBallbag is now known as JessyS
abucha_ has quit [Remote host closed the connection]
JessyS is now known as TPBallbag
northfurr has quit [Quit: northfurr]
Zackio has joined #ruby
Kendos-Kenlen has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
lukaszes has joined #ruby
mattwildig has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
yeticry has quit [Read error: Connection reset by peer]
jhack has joined #ruby
jhack has left #ruby [#ruby]
yeticry has joined #ruby
TPBallbag is now known as JessyS
JessyS is now known as TPBallbag
<apeiros> anybody got a list of reasons why mssql is bad?
benlovell has joined #ruby
bruce_lee has joined #ruby
<jschoolcraft> MS SQL or MySQL?
goodcodeguy has joined #ruby
urbanmonk has joined #ruby
uri has joined #ruby
baweaver has joined #ruby
tulak has quit [Remote host closed the connection]
bonemind has quit [Quit: WeeChat 1.0]
<dreinull75> I'm still struggling to dynamically create subclasses. Here's code and comment: https://eval.in/private/68b6418acdec0b
trosborn has joined #ruby
<apeiros> jschoolcraft: MS SQL
<apeiros> luckily nobody here wants mysql
<dreinull75> apeiros as long as theres MariaDB :)
umgrosscol has joined #ruby
<apeiros> dreinull75: name= twice - pointless. you probably wanted const_set
benlovell has quit [Ping timeout: 240 seconds]
<apeiros> (line 23)
FernandoBasso has quit [Quit: Leaving]
<apeiros> i.e., name = "Foo"; name = Class.new # does NOT create a constant named Foo
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dreinull75> apeiros that troubled me before too
avril14th has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
trosborn has quit [Client Quit]
<jschoolcraft> apeiros why do you need reasons? Using with ruby/rails can be inconvenient, way more time is spent on MySQL and postgresql support in our community. Calling stored procedures with output parameters can be challenging, but I think that was the biggest problem. That and threading issues with the driver we were using and unicorn.
synthroid has joined #ruby
leafybas_ has joined #ruby
lukaszes has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
roxtrongo has quit [Remote host closed the connection]
<dreinull75> apeiros, thank you, working now! https://eval.in/private/75c7f26e5f9c65
veloutin_ is now known as veloutin
sgambino has joined #ruby
freerobby has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
gregf has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
<dreinull75> wow, this is cool stuff. I'm metaprogramming myself a grave.
lukaszes has quit [Client Quit]
blackmes1 has quit [Ping timeout: 260 seconds]
dmitch has joined #ruby
axl_ has joined #ruby
<norc> Mmm, for some trivial pull request on ruby trunk should I still submit a ticket for feedback on bugs.ruby-lang.org?
senayar has quit [Read error: Connection reset by peer]
elshaka has joined #ruby
senayar has joined #ruby
sankaber has joined #ruby
<apeiros> jschoolcraft: convincing superiors that pg is the way to go and ms is a bad idea
dorei has joined #ruby
<norc> apeiros: I found that convincing superiors to dish out bills with 5 digits for Oracle is far easier than convincing them PG is superior to MSSQL.
TomPeed has joined #ruby
htmldrum has quit [Ping timeout: 272 seconds]
<apeiros> norc: that argument I'm already making
<jschoolcraft> For a lot of people it's about being able to pay for support, whatever that means
<apeiros> you can pay for support for all kinds of databases
<norc> jschoolcraft: Support you get for all databases.
<norc> Heh.
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
<jschoolcraft> alright, well good luck with your quest
malconis has joined #ruby
axl_ has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
<apeiros> jschoolcraft: thanks. I think the "way more time spent on pg in our com" is a good one and can essentially be extended. going mssql has a whole rat's tail of things dragging behind it. i.e. you'll essentially be pressed to go full ms on all accounts, not just db.
nertzy has joined #ruby
ESpiney__ has joined #ruby
<norc> And if you go down the Oracle route, be prepared to spend hundreds of thousands of dollars in the long run. :-)
beauby has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
<apeiros> norc: oracle is what we currently have
<apeiros> and I don't even want to know how much money we pushed down their throat.
<norc> "Hey, can we integrate our Oracle databases into your monitoring tool" - "Sure, just use *this* connector" - "Wait... that says - Extra License Required -"
piotrj has quit [Remote host closed the connection]
<apeiros> in the last 10y, that's probably an 8 digit figure.
<jschoolcraft> apeiros That's how it was with my client. Somehow someone convinced them they needed an API, and it should be written in ruby. They did great sales job but sucked at implementation and I was brought in to clean up the mess. They're a .NET shop, had ASP.NET and MVC experience and were MS SQL. Everything was in stored procedures. I told the client many times to just scrap the ruby project and do it in .NET
<norc> apeiros: Indeed.
<norc> apeiros: I mean its not a bad product.
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> norc: it's overpriced for our needs.
dhjondoh has quit [Quit: dhjondoh]
<apeiros> we are below terabytes of data.
<apeiros> probably way below.
piotrj has joined #ruby
<apeiros> and we need none of the more advanced features of oracle (and even less want to pay for them)
<norc> apeiros: The annual fees alone are enough to hire a database specialist directly - giving you actual onsite experience. However, for us its easier to spend 6 digit figures on tech, than it is to spend 5 digit figures on personel.
tulak has joined #ruby
<ddv> yeah stored procs in mssql and rails don't go well together
<norc> ddv: Rails does not go well together with most RDMBS specific features. ;-)
<dorei> norc: probably the 6digit figures endup as capex on the books, will the 5digit figures endup as opex
<dorei> s/will/while
<ddv> I solved it by creating mssql views with insert, update triggers to make it sane for rails conventions
<norc> dorei: Exactly.
wjimenez5271 has joined #ruby
<apeiros> jschoolcraft: opposite for us. all in-house code from the last 8y is ruby & rails. all stuff before is a mess of different things nobody maintains (some perl, some vb, some plsql, some java, some flash)
<jschoolcraft> apeiros so why the push to move to MS?
<jschoolcraft> new leadership flexing the muscles?
<apeiros> and the old stuff is supposed to be dropped/replaced. so my argument is to keep oracle around for the old stuff but downsize it (which means we'll pay less) and have all new stuff on pg.
<apeiros> the push to ms comes from our parent company
griffindy has joined #ruby
<jschoolcraft> apeiros some BS like we already have all these licenses, so just use it?
<apeiros> and for them it might even make sense (I doubt it, but I lack insight). but for us it'd just mean expenses for no gain.
<apeiros> jschoolcraft: not even that. they're replacing their own infrastructure too. personally I think there's money flowing where it shouldn't.
ekinmur has joined #ruby
<norc> Anyone here with pull request experience on ruby trunk?
<apeiros> ah well, I guess it's time to move this to #ruby-offtopic. sorry :)
<norc> Oh feel free to keep on chatting I dont mind. ;-)
benlovell has joined #ruby
dhjondoh has joined #ruby
poguez_ has joined #ruby
<apeiros> norc: just join #ruby-offtopic - it's a great place anyway ;-D
<norc> Heh.
<norc> Im sure it is. Filled with Japanese symbols, strange rules - and an ancient tradition of blood rituals Im sure.
rgtk has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest53 has joined #ruby
maloik has joined #ruby
devoldmx has quit [Remote host closed the connection]
<maloik> Oh hi!
<apeiros> oy maloik
moeabdol has joined #ruby
artmann has joined #ruby
moeabdol has quit [Client Quit]
ibouvousaime has quit [Ping timeout: 250 seconds]
<maloik> so I'm testing the behavior of a rake task, and the first time I invoke it (Rake::Task["namespace:task"].invoke) it's returning an array with a proc in it. The second time around though it's returning nil
<maloik> that's not normal behavior is it? oO
kp666 has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
<maloik> a first go at getting rid of weirdness in our rake task tests was removing Foo::Application.load_tasks in a number of places (this is rails behavior though :/), which appeared to simply add to an array of rails tasks rather than reload, or keep them unique... so each time we loaded them would add a proc to the result of the task#invoke
<apeiros> maloik: uh, you are aware that manually invoking tasks like that is an anti-pattern?
ibouvousaime has joined #ruby
<apeiros> it's either an indicator of not understanding/properly using the dependency mechanism, and/or an indicator of having stuff as tasks which should be library functions
baweaver has joined #ruby
rodfersou is now known as rodfersou|lunch
<maloik> interesting
<maloik> it's basically invoked as a cron job, nudging people to confirm their accounts
prateekp has joined #ruby
beauby has joined #ruby
<prateekp> i am getting an openssl error while i am trying install ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
wprice has joined #ruby
beauby has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 240 seconds]
trosborn has joined #ruby
trosborn has quit [Client Quit]
elshaka has quit [Ping timeout: 260 seconds]
Encapsulation has joined #ruby
symm- has quit [Quit: Leaving...]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
The_Phoenix has joined #ruby
<sjums> prateekp, are you sure you have the openssl-dev packages installed?
evanjs has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
<sjums> likely goes under the name libssl-dev
<prateekp> yes i have done apt-get install libssl-dev
sankaber has joined #ruby
<norc> prateekp: How are you trying to install ruby?
<prateekp> using rbenv
<norc> Which version?
aganov has quit [Remote host closed the connection]
<prateekp> ruby-build 20151028
<prateekp> rbenv 0.4.0-174-g074161f
<norc> prateekp: Yeah Ive seen some other people having the same issue with that build.
<prateekp> ohh
<norc> prateekp: Just stick to a stable version like 2.2.3 :)
<norc> errr
<prateekp> ??
<havenwood> prateekp: What version of Ruby are you installing?
<prateekp> 2.2.3
yury__ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
NeverDie has quit [Quit: http://radiux.io/]
araujo has joined #ruby
araujo has joined #ruby
neonalpine has joined #ruby
sepp2k has joined #ruby
<norc> prateekp: You could give RUBY_CONFIGURE_OPTS=--with-openssl-dir=/where/ever a try
araujo has quit [Max SendQ exceeded]
<norc> (Passing the correct directory)
<prateekp> i am unable to find ssl dir
<havenwood> prateekp: ruby-build actually ships with it's own openssl rather than using your package manager's. I'd suggest just building with ruby-install. You can even keep using rbenv as your switcher if you'd like: ruby-install --install-dir ~/.rbenv/versions/2.2.3 ruby 2.2.3
dopie has quit [Ping timeout: 240 seconds]
<prateekp> ohh
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<borkdude_> I have a question about Savon
neonalpine has quit [Read error: Connection reset by peer]
<norc> borkdude_: Just ask away.
neonalpine has joined #ruby
<havenwood> Savon le Chat
<borkdude_> my cassettes aren't matching anymore because the XML tags in my body are closed differently (<foo/> instead of <foo></foo>). Can I configure to match this?
<norc> There is no need to state your intent to ask a question. ;-)
momomomomo has joined #ruby
<borkdude_> (sorry, was still typing)
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
codecop has quit [Remote host closed the connection]
<borkdude_> sorry, my question is mixed up, I'll try again :)
<borkdude_> My VCR cassettes aren't matching anymore, because the XML in the request body is different: (<foo/> instead of <foo></foo>). Can I configure VCR to match this?
momomomomo has quit [Client Quit]
griffindy has joined #ruby
davejlong has joined #ruby
elshaka has joined #ruby
<Sou|cutter> borkdude_: cassettes are just yaml, you can edit them
<Sou|cutter> or you can delete them and generate them anew
maikowblue has joined #ruby
babblebre has joined #ruby
<borkdude_> Sou|cutter yes, I can edit them, but I'd rather configure this if it's possible.
<borkdude_> Sou|cutter new requests aren't possible unfortunatrly
<borkdude_> Maybe I could match the body with a regex?
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> borkdude_: Gyoku for example converts Hash keys ending in a slash to a self-closing tag: https://github.com/savonrb/gyoku#self-closing-tags
Rodya_ has joined #ruby
<havenwood> borkdude_: But I dunno.
tethra has joined #ruby
momomomomo has joined #ruby
B1n4r10 has joined #ruby
momomomomo has quit [Client Quit]
melter has joined #ruby
sdwrage has joined #ruby
<yury__> Hey, guys
<havenwood> yury__: hi
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<prateekp> havenwood: i got the same openssl error while installing using ruby-install
<yury__> changelog and news lead to 404
<havenwood> prateekp: Other versions too or just 2.2.3? OS/distro?
voodo is now known as voodo|away
<prateekp> i checked for 2.2.3
<prateekp> Linux e22e31ac6d22 4.0.3-boot2docker #1 SMP Wed May 13 20:54:49 UTC 2015 x86_64 GNU/Linux
dlitvak has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusTester has joined #ruby
griffindy has joined #ruby
mark2 has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
mark5 has joined #ruby
gusTester has left #ruby [#ruby]
_stu_ has quit [Quit: _stu_]
<havenwood> yury__: That section hasn't been done yet! They'll exist when Christmas draws near.
nanoz has quit [Ping timeout: 250 seconds]
Guest53 has joined #ruby
rippa has joined #ruby
agentmeerkat has joined #ruby
whippythellama has joined #ruby
tjohnson has joined #ruby
trosborn has joined #ruby
mattwildig has quit [Remote host closed the connection]
<shevy> :)
willharrison has joined #ruby
ItSANgo has joined #ruby
voodo|away is now known as voodo
stannard has joined #ruby
<shevy> yury__ the downloads work from https://ftp.ruby-lang.org/pub/ruby/2.3/ ?
axl_ has joined #ruby
Yzguy has joined #ruby
Fraeon has quit [Read error: Connection reset by peer]
<yury__> <shevy> yep
trosborn has quit [Client Quit]
rwilcox has joined #ruby
djstorm has quit [Ping timeout: 246 seconds]
zeljkof has joined #ruby
_stu_ has joined #ruby
<havenwood> prateekp: Just curious but what's your openssl version?: openssl version
<prateekp> OpenSSL 1.0.2d 9 Jul 2015
axl_ has quit [Ping timeout: 246 seconds]
ekain has joined #ruby
<havenwood> prateekp: 2.2.3 seems to be insisting on SSLv3. I think that's fixed on trunk. :O
<prateekp> :o
<prateekp> i will check other versions then
DiCablo has joined #ruby
<prateekp> may 2.1.7
karapetyan has joined #ruby
<prateekp> may be 2.1.7
<havenwood> prateekp: ruby-install ruby 2.3.0-preview1 --sha256 42b9c9e1740a5abe2855d11803524370bd95744c8dcb0068572ed5c969ac7f0f
tkuchiki has quit [Remote host closed the connection]
<prateekp> ok let me try this one
dhollinger has joined #ruby
<havenwood> prateekp: I didn't put the rbenv install location ^ if you care.
<prateekp> hmm its ok
NeverDie has joined #ruby
<havenwood> prateekp: They no longer insist SSLv3. Could do a patch for 2.2.3 but I'm not sure how to work around it otherwise. Need coffee!
<prateekp> hmm it also failed
<prateekp> random.c: In function 'fill_random_bytes_syscall': random.c:537:16: error: '__NR_getrandom' undeclared (first use in this function)
<prateekp> with some other error
<havenwood> prateekp: funky
symm- has joined #ruby
grill has joined #ruby
<borkdude_> b
<havenwood> prateekp: Might be good to check bugs and make a report: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
teclator has quit [Ping timeout: 244 seconds]
<prateekp> hmm
sameerynho has joined #ruby
p0wn3d__ has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
<shevy> prateekp you use libressl?
<prateekp> i think no
<prateekp> should i?
<shevy> no, just wondered
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<prateekp> are other people using 2.2.3 getting no problem
<prateekp> i think, because of some change in openssl, this thing is coming up
<prateekp> i might be wrong though
<prateekp> because 2.1.7 install also failed with same openssl error
User458764 has joined #ruby
<shevy> you mean preview or regular 2.2.3?
chrissonar has quit [Remote host closed the connection]
<shevy> I am on regular 2.2.3 right now - ruby 2.2.3p173 (2015-08-18 revision 51636) [i686-linux]; I tried to compile the preview yesterday but the display during configure scared me too much; also I did not find any configure option for the frozen string which confused me further until the point where I chickened out
<shevy> I use openssl-1.0.2d fine with regular 2.2.3; no libressl
dravine has quit [Ping timeout: 260 seconds]
dravine has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
<prateekp> and u installed using ruby-install?
devoldmx has joined #ruby
<prateekp> but i think it doesnt matter
<havenwood> prateekp: built himself so like a ruby-install
agentmeerkat has quit [Ping timeout: 264 seconds]
<prateekp> i am also having libssl-dev install
<prateekp> i dont know if this is needed or not
kp666 has joined #ruby
<shevy> prateekp nah, I just compiled from the source but I guess that is equivalent to what ruby-install does
<shevy> libssl-dev I think is from openssl
sameerynho has quit [Quit: Leaving]
<prateekp> hmm i agree
diegoaguilar has quit [Ping timeout: 244 seconds]
<shevy> what openssl version do you have on your system?
<prateekp> OpenSSL 1.0.2d 9 Jul 2015
TPBallbag is now known as ballborg
<shevy> \o/
nfk|laptop has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<prateekp> ossl_ssl.c:141:27: error: 'SSLv3_method' undeclared here (not in a function)
<prateekp> this error keeps coming
baweaver has joined #ruby
VladGh has quit [Remote host closed the connection]
kerunaru has joined #ruby
treehug88 has joined #ruby
<shevy> hmm
araujo has joined #ruby
<shevy> no idea, I have the very same openssl version here and ruby compiled fine with openssl support
<prateekp> just 15 days i was able to install
<prateekp> 15 days back
<prateekp> and today when i do using the same docker image
<prateekp> it fails
piotrj has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<prateekp> i mean the same installation procedure
felixrsmith has quit [Quit: Konversation terminated!]
Jardayn has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
tenderlove has quit [Quit: Leaving...]
neonalpine has quit [Read error: No route to host]
beauby has quit [Ping timeout: 264 seconds]
scmx has joined #ruby
neonalpine has joined #ruby
teclator has joined #ruby
dlitvak_ has joined #ruby
roxtrongo has joined #ruby
yury__ has quit [Remote host closed the connection]
dlitvak has quit [Read error: Connection reset by peer]
Scymex has quit [Ping timeout: 250 seconds]
elshaka has quit [Quit: Saliendo]
teclator has quit [Remote host closed the connection]
ballborg has quit [Quit: don't try and hack my account Ballkenende]
h99h9h88 has joined #ruby
diegoaguilar has joined #ruby
uri has quit [Quit: Textual IRC Client: www.textualapp.com]
pimpin has joined #ruby
grilled-cheese has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
TPBallbag has joined #ruby
<shevy> yeah
<shevy> heisenbugs
<shevy> this was one reason why reproducible builds became more popular a while ago: https://wiki.debian.org/ReproducibleBuilds
<shevy> distributions such as NixOS do that more thoroughly
baweaver has joined #ruby
mary5030 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
VladGh has joined #ruby
karapetyan has joined #ruby
mwlang has quit [Quit: mwlang]
tulak has joined #ruby
tulak has quit [Remote host closed the connection]
lukaszes has joined #ruby
dopie has joined #ruby
tulak has joined #ruby
_stu_ has quit [Quit: _stu_]
Xeago has joined #ruby
minimalism has quit [Quit: leaving]
mrmargolis has joined #ruby
<shevy> the only trivial explanation I could have would be if you'd have changed your gcc version prateekp, since that is a common error I recall having had when trying to compile different things across (e. g. gcc 4.9.x versus the 5.x gcc family)
rgtk has joined #ruby
<prateekp> my gcc version - gcc (Debian 5.2.1-23) 5.2.1 20151028
<prateekp> is that ok?
slawrence00 has joined #ruby
<shevy> whoa
baweaver has quit [Remote host closed the connection]
<shevy> I am on GCC 5.2.0
<shevy> guess it is some modified gcc variant you have
<prateekp> ohh
hahuang65 has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
scmx has quit [Ping timeout: 244 seconds]
dlitvak has joined #ruby
mary5030 has joined #ruby
dionysus69 has joined #ruby
cfjk has quit [Remote host closed the connection]
<prateekp> it is not there in the list
<prateekp> my version
kies has joined #ruby
<shevy> yeah
roxtrong_ has joined #ruby
<shevy> however had... if you can compile openssl with this gcc, and only the ruby bindings fail, then I guess it must be an error with the ruby bindings, so ruby core should fix that
<prateekp> how could i set to 5.2.0
Voker57 has joined #ruby
<prateekp> hmm
dlitvak_ has quit [Ping timeout: 260 seconds]
freerobby1 has joined #ruby
mark5 has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
p0wn3d__ has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 252 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 265 seconds]
lukaszes has joined #ruby
lukaszes has quit [Client Quit]
scmx has joined #ruby
aufi has quit [Quit: Konversation terminated!]
elshaka has joined #ruby
codecop has joined #ruby
benlovell has joined #ruby
neonalpine has quit [Read error: Connection reset by peer]
neonalpine has joined #ruby
umgrosscol has quit [Quit: End of Line]
ruby-lang804 has joined #ruby
Pupp3tm__ has quit [Remote host closed the connection]
loincloth has quit []
umgrosscol has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
The_Phoenix has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
mjuszczak has joined #ruby
tmtwd has joined #ruby
pimpin has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 246 seconds]
saddad has joined #ruby
scmx has quit [Ping timeout: 240 seconds]
ruby-lang804 has quit [Ping timeout: 246 seconds]
Cork has quit [Ping timeout: 240 seconds]
axl_ has quit [Ping timeout: 250 seconds]
freerobby1 has quit [Quit: Leaving.]
pimpin has joined #ruby
nanoz has joined #ruby
arthurix has joined #ruby
mjuszczak has quit []
tbuehlmann has joined #ruby
OmiKrOn has joined #ruby
<OmiKrOn> greetings *
patdohere has joined #ruby
pimpin has quit [Remote host closed the connection]
<OmiKrOn> any idea why gem install sys-proctable -v "0.9.2" fails with "Could not find a valid gem `sys-proctable` (= 0.9.2)" in any repository?
<adaedra> hi.
RegulationD has joined #ruby
<OmiKrOn> I can find that version when looking through the rubygems.org repo
patdohere has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
voodo has quit [Quit: Leaving...]
rodfersou|lunch is now known as rodfersou
<maloik> OmiKrOn: are you sure it hasn't been yanked?
arthurix_ has quit [Ping timeout: 246 seconds]
scmx has joined #ruby
dlitvak_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
djstorm has joined #ruby
mattwildig has joined #ruby
<prateekp> shevy, with old gcc, ruby 2.2.3 compiles successfullt
<darix> OmiKrOn: just a guess not available for you arch
tubuliferous_ has joined #ruby
<darix> it seems they only uploaded binary gems
<ruboto> OmiKrOn, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0b8f93310cce85893ad5
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<darix> Found sys-proctable (0.9.2), but was for platforms universal-freebsd ,universal-mingw32 ,universal-linux ,universal-mingw ,universal-solaris ,universal-darwin
dlitvak has quit [Ping timeout: 240 seconds]
<maloik> yep indeed, though their github readme says "try including platform"
barhum2013 has joined #ruby
<prateekp> i think i am trying to get the latest gcc (libc6-dev)
<darix> what i find annoying ... no source only gem?
<OmiKrOn> maloik: ok.. uhm.. how do I do that?
<prateekp> and with that gcc, ruby compile fails
<darix> OmiKrOn: --platform
_stu_ has joined #ruby
B1n4r10 has quit [Ping timeout: 255 seconds]
<maloik> im off, boulder time
<OmiKrOn> crap... now I have a piece of code that should install that.. freaking old chef recipe
maloik has quit [Quit: Page closed]
chouhoulis has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
Peg-leg has quit [Quit: Leaving.]
karapetyan has quit [Remote host closed the connection]
benlovell has joined #ruby
dlitvak has joined #ruby
<OmiKrOn> darix, maloik thank you
dlitvak_ has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
sinkensabe has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
hxegon has joined #ruby
devoldmx has joined #ruby
freerobby has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
peterhil has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
rgtk has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 260 seconds]
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
akem has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
agentmeerkat has joined #ruby
neonalpi_ has joined #ruby
neonalpine has quit [Read error: Connection reset by peer]
ekain has joined #ruby
Encapsulation has quit [Quit: Leaving]
antgel has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
prestorium_ has joined #ruby
bigkevmcd has quit [Ping timeout: 250 seconds]
Shapeshifter has joined #ruby
sinkensabe has quit [Remote host closed the connection]
arne has quit [Quit: Leaving]
<DiCablo> hello guys
<DiCablo> i just wonder
<DiCablo> if you could take a look at my code
<DiCablo> and give me some suggestions how i can make this OOP as i am learning classes
RobertBirnie has joined #ruby
pimpin has joined #ruby
prestorium has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
<Coraline> DiCablo: not a guy but happy to help
gusrub has joined #ruby
<Coraline> DiCablo: when you look at your code what nouns do you see?
benlovell has joined #ruby
mattwildig has quit [Remote host closed the connection]
pimpin has quit [Remote host closed the connection]
<Coraline> DiCablo: or what kinds of things are being done?
_wldcordeiro has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Client Quit]
<DiCablo> well this is my simple scrapper
<Coraline> OK so that's a start
prateekp has quit [Quit: Page closed]
<Coraline> Maybe you have a class called Scraper?
pimpin has joined #ruby
jonathan_katz has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
Zamyatin has joined #ruby
mjuszczak has quit []
<DiCablo> ok
mostlybadfly has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
<Coraline> What 2-3 things does scraper do?
maxz_ has joined #ruby
<DiCablo> it opens up a webpage
<DiCablo> then it parses html
<DiCablo> extract the content
<DiCablo> and saves everything to a CSV file
<jhass> DiCablo: so how about a class that represents an entry of the CSV file
<jhass> like, Person
Fraeon has joined #ruby
vondruch has quit [Quit: Ex-Chat]
Zamyatin has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 265 seconds]
mattwildig has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<DiCablo> ok
Rodya_ has quit [Remote host closed the connection]
<Coraline> DiCablo: a simplistic approach is to identify nouns (classes) and verbs (methods) and stuff that the class has to remember (constants or attributes)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
blackmes1 has joined #ruby
gusrub has quit [Remote host closed the connection]
<DiCablo> ok i see
<DiCablo> so i create a class that will repeat all the time
<DiCablo> so i dont have to recode that every time
<Coraline> Give it a try and see how it looks.
<Coraline> Paste a new version when you're done
<DiCablo> i will :)
voodo has joined #ruby
nofxx has joined #ruby
sapslaj has quit [Read error: Connection reset by peer]
nofxx has quit [Changing host]
nofxx has joined #ruby
tlarevo has left #ruby [#ruby]
sapslaj has joined #ruby
p0wn3d__ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
hakunin has quit [Read error: Connection reset by peer]
<gregf_> DiCablo: create a service like so, class AngelService; attr_accessor :httpclient, :htmlparser, :csvbuilder or :persondomainobject; def initialize params; #initialize httpclient, parser, builder end;end
hakunin has joined #ruby
User458764 has joined #ruby
The_Phoenix has joined #ruby
<nofxx> Hey, this is very cool, there's a ruby on the background... like an icon for the channel. Is that limechat only? Moving to OSX today...
<jhass> that's your client, yes
baweaver has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
G186 has joined #ruby
G186 has joined #ruby
freerobby has quit [Quit: Leaving.]
stan has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
neonalpi_ has quit [Read error: Connection reset by peer]
neonalpine has joined #ruby
gusrub has joined #ruby
pimpin has quit [Remote host closed the connection]
pimpin has joined #ruby
K1MOS has joined #ruby
karapetyan has joined #ruby
K1MOS has quit [Max SendQ exceeded]
eminencehc has joined #ruby
peterhil has quit [Quit: peterhil]
kies has quit [Ping timeout: 244 seconds]
<G186> can anyone help with Ruby and Cucumber, I cant get this to full work, I'm almost there, this is really short
SCHAAP137 has joined #ruby
B1n4r10 has joined #ruby
piotrj has joined #ruby
sp_ is now known as UNIMPL
pimpin has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
segfalt has quit [Ping timeout: 240 seconds]
piotrj has quit [Remote host closed the connection]
axl_ has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomyWork has quit [Ping timeout: 260 seconds]
tulak has quit [Remote host closed the connection]
prestorium_ is now known as prestorium
RobertBirnie has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
<jhass> G186: let's look together at the error message you get
synthroid has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 240 seconds]
<G186> jhass, ok, how should we do that,
<G186> paste bin?
<jhass> just edit your gist and add another file with it
<G186> ok,
<OmiKrOn> darix:still doesn't work... trying to specifiy -v and --platform for the latest version of sys-proctable but it dies out
<darix> OmiKrOn: which value did you pass to --platform?
prestorium_ has joined #ruby
<OmiKrOn> mswin32
<OmiKrOn> darix: mswin32
CVTJNII has quit [Quit: Leaving]
urbanmonk has quit [Quit: urbanmonk]
<darix> universal-mingw32 universal-mingw
<darix> are the only 2 supported ones in that area
<jhass> DiCablo: well, now you just wrapped all your code into a method
<Coraline> DiCablo: first off in Ruby we use snake_case for methods, not camelCase
sanjayu has joined #ruby
<Coraline> getNames does too many things
mostlybadfly has joined #ruby
<Coraline> A good first step though
<OmiKrOn> darix:tried that as well it fails miserably
<jhass> we also leave of get_, append a ? instead of prepending is_ and append = instead of prepending set_
ishahnaz has joined #ruby
scmx has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
wedgwood has quit [Quit: ZNC - http://znc.in]
prestorium has quit [Ping timeout: 240 seconds]
wedgwood has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
<shevy> DiCablo btw if you need to append to a string like: url = url + "#{i}" you should be able to use: url << "#{i}" (or if i is always a string, then just url << i)
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
<DiCablo> oh wow
<DiCablo> ok
<darix> or url+=i
<OmiKrOn> darix:any other ideas mate?
<darix> or url+=i.to_s
<darix> OmiKrOn: no
baweaver has joined #ruby
<G186> jhass, I couldn't edit the old gist, so I made a new one, https://gist.github.com/anonymous/714735be6e1e921fc887
<shevy> DiCablo the reason for += versus << usually is that += will create a new object, << will not, so << is a tiny bit faster
akem has joined #ruby
mghaig has joined #ruby
<jhass> G186: so, the first issue is that you call another step than you define
lubekpl has joined #ruby
<G186> sorry, that was wrong,
<jhass> ^isPalindrome is run$ does not match is_Palindrome is run
JDiPierro has quit [Remote host closed the connection]
<G186> so, I should make it match?
Guest53 has joined #ruby
darkxploit has joined #ruby
<jhass> sure
<G186> jhass, I deleted the old result, here the new https://gist.github.com/anonymous/c362127306503c57f98f
<jhass> "undefined local variable or method `isPalindrome' for #<Object:0x007f8a5a2da4b0> (NameError)"
<jhass> try to explain that error message to me
<G186> jhass, me try to explain it! lol, it cant find the .rb file?
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> G186: read and try to rephrase it in your own words
wldcordeiro has joined #ruby
<jhass> btw are you sure about using cucumber for this?
<jhass> what made you take that choice?
sanjayu has quit [Ping timeout: 246 seconds]
<G186> jhass, I have to use it, were suppose to demo a cucumber code in class today...
<jhass> mh
dlitvak_ has quit [Ping timeout: 265 seconds]
<G186> jhass, so its looking for the method inside my program, but cant find it..
<jhass> which method?
<jhass> be precise
mghaig has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
<G186> is_Palindrome
willharrison has joined #ruby
gusrub has quit [Remote host closed the connection]
<G186> But, thats a function i thought..
<jhass> which part of the error message makes you say "is_Palindrome"? Again, be precise
_kfpratt has quit [Ping timeout: 240 seconds]
neonalpine has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
neonalpine has joined #ruby
kfpratt has joined #ruby
senayar has quit []
<mikecmpbll> anyone know if you can/cannot bind webrick to a unix socket?
B1n4r10 has quit [Ping timeout: 276 seconds]
<adaedra> some rack servers support it
blaxter has quit [Quit: foo]
<adaedra> puma does it, iirc unicorn does it
<darix> mikecmpbll: puma, unicorn
<darix> rainbows probably too
<mikecmpbll> but not webrick? i'm keen on webrick
<mikecmpbll> for this little task
synthroid has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll> actually, nvm i'm not that fussed. fu webrick!
dlitvak has joined #ruby
B1n4r10 has joined #ruby
mghaig has joined #ruby
thither has joined #ruby
UtkarshRay has joined #ruby
prestorium_ is now known as prestorium
Linell has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<thither> So I'm trying to use RGeo to tell me if a point is contained within a polygon, but it seems like my polygon won't let me check if a point is contained in it - the repl says .include? isn't a method of the class even though it's listed in .methods
ekinmur has joined #ruby
<G186> jhass, I'm still trying to see what your asking,
<thither> It doesn't work the other way around either, the point claims to not have .within? even though .within? is listed in its methods
<jhass> G186: read the error message, read what your wrote. There's an important difference
tomphp has joined #ruby
eminencehc has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
B1n4r10 has quit [Ping timeout: 252 seconds]
<Linell> So I'm trying to write a module that allows me to restrict access to certain methods. This is a gist of what I have https://gist.github.com/Linell/9ad38d34b37076549872
<G186> it says its not a define local variable.
<jhass> G186: I hope you don't stop reading at that point
<Linell> The problem is that I can't seem to get the `restrict` method and the flag variable in the same place so that I can run a block that checks whether or not the flag is true.
<G186> Im trying to access method is_Palindrome from the isPalindrome.rb file,
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 240 seconds]
<jhass> G186: this is not python btw, the filename is irrelevant to everything but the require call
xet7 has quit [Quit: Leaving]
<G186> Im not sure what the forObject means, I don't have objects.
<G186> i mean, I dont have classes
jpfuentes2 has joined #ruby
Lucky__ has joined #ruby
<jhass> you're always implicitly inside the Object
<jhass> everything is an object in ruby, even the toplevel
<G186> I just have a method called is_Palindrome I'm trying to call,
arthurix has quit [Read error: Connection reset by peer]
<G186> Right, everything is an object,
dionysus69 has joined #ruby
<jhass> more importantly you try to call the method isPalindrome, which is nowhere defined
arthurix has joined #ruby
<jhass> (or access the local variable isPalindrome, which is neither defined)
<jhass> and the error message is telling you that
ibouvousaime_ has joined #ruby
The_Phoenix has quit [Ping timeout: 260 seconds]
ibouvousaime has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
<G186> hm....
<Linell> http://stackoverflow.com/questions/4219277/ <- I'm using the answer to this question as inspiration
ishahnaz has quit []
g0bl1n has joined #ruby
jonathan_katz has quit [Quit: Page closed]
h99h9h88 has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has joined #ruby
<G186> brb
G186 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
G186 has joined #ruby
elshaka has quit [Ping timeout: 250 seconds]
G186 has quit [Client Quit]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
Arkon has joined #ruby
mjuszczak has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
G186 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
mrtomme has quit [Ping timeout: 260 seconds]
<G186> jhass, I see what I'm doing wrong!
fantazo has joined #ruby
<G186> I'm confused on how I tell the test.features file, that I have a program with a method inside of it.
mikecmpbll has quit [Ping timeout: 260 seconds]
Karunamon has quit [Quit: ZNC - http://znc.in]
mrtomme has joined #ruby
foooobear has quit [Ping timeout: 260 seconds]
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
mrmargolis has quit [Ping timeout: 265 seconds]
anisha has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
lemur has joined #ruby
<shevy> does anyone happen to know if there are ways to control rdoc's behaviour? for instance I'd like to tell it to ignore lines containing things such as '# ======= #' completely
<shevy> hmmm
troulouliou_div2 has quit [Quit: Leaving]
desmondhume has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
desmondhume has quit [Client Quit]
stamina has quit [Ping timeout: 255 seconds]
<shevy> what is http://www.rubydoc.info using? is that yard?
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has quit [Read error: Connection reset by peer]
rakm has joined #ruby
<shevy> the display seems to be different
Xeago has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 240 seconds]
be_erik has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arkon has quit [Remote host closed the connection]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Read error: Connection reset by peer]
lukaszes has joined #ruby
lukaszes has quit [Client Quit]
_stu_ has quit [Quit: _stu_]
voodo has quit [Quit: Leaving...]
mghaig has joined #ruby
TPBallbag is now known as snowy
kies has joined #ruby
ThatsNotJack has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
gregf has joined #ruby
kerunaru has joined #ruby
pandaant has joined #ruby
banister has joined #ruby
ThatsNotJack has joined #ruby
axl_ has joined #ruby
dzejrou has joined #ruby
snowy is now known as TPBallbag
dionysus69 has joined #ruby
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
benlovell has quit [Ping timeout: 246 seconds]
Guest53 has joined #ruby
baweaver has joined #ruby
demonlove has joined #ruby
neonalpine has quit [Read error: Connection reset by peer]
neonalpi_ has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<demonlove> i have recently lerned rubby now want to do some open-source work in one months, any guidence..
tlolczyk has joined #ruby
jschoolcraft has quit [Quit: peace]
kies has quit [Ping timeout: 252 seconds]
<tlolczyk> When I print Digest::SHA2.digest(raw.collect{|l| l}.join) I get garbage. How do I tweak it?
scmx has joined #ruby
mghaig has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
TomPeed has joined #ruby
<shevy> demonlove come on ... you join #ruby but call it rubby :P
trav408 has joined #ruby
<shevy> demonlove anyway, what helped me a lot was to store stuff in todo list, various things. In particular what you want to work on the most, and build up on that in little steps
axl_ has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
<shevy> ideally the project should be small
gusrub has joined #ruby
<gregf_> haha
ekain has joined #ruby
demonlove has quit [Ping timeout: 252 seconds]
mrmargolis has joined #ruby
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> tlolczyk: I think you want #hexdigest.
<Ox0dea> >> require 'digest'; Digest::SHA2.hexdigest 'tlolczyk'
<ruboto> Ox0dea # => "710dc191a3072f1e484e22a9cd745d8bdc66d8201f962642127eb555774de572" (https://eval.in/467805)
demonlove has joined #ruby
<Ox0dea> Also, `collect { |l| l }` is a no-op.
<demonlove> i have recently lerned rubby now want to do some open-source work in one months, any guidence..
<Ox0dea> /ignore add demonlove
<Ox0dea> Whoops.
tomphp has joined #ruby
<shevy> haha
voodo has quit [Ping timeout: 272 seconds]
<demonlove> what?
ThatsNotJack has quit [Remote host closed the connection]
<shevy> don't fake it man
<demonlove> connection was lost
ThatsNotJack has joined #ruby
<shevy> as is all hope
<demonlove> so tell me the roaddmap
<shevy> anyway, work on very small projects that solve one thing well
shadoi has joined #ruby
eminencehc has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<demonlove> like
<jhass> G186: a file doesn't define "a program", you can load files and all loaded files together will become one program
<norc> Ox0dea: Btw, did you read my messages earlier today?
Oatmeal has quit [Read error: Connection reset by peer]
<norc> Because you asked me to let you know if I figured it out.
<demonlove> no
eminencehc has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 244 seconds]
<Ox0dea> norc: I did, and I also found the part where `1 if true` is being optimized but `1 unless false` is not.
<norc> :)
NeverDie has quit [Quit: http://radiux.io/]
tomphp has quit [Client Quit]
<norc> Ox0dea: Interestingly by diving into the depths, I discovered a whole load of other bugs.
<Ox0dea> norc: Um, no, I don't think the fix would be in the parser?
tomphp has joined #ruby
<Ox0dea> Well, hm, I guess this would work, huh?
<norc> Ox0dea: "Do as others do" - Im just following nobu's example.
<Ox0dea> Fair.
veg_ has joined #ruby
<shevy> is this "convince nobu to get my changes in" day again!
neonalpi_ has quit [Remote host closed the connection]
<Ox0dea> norc: I get the same bytecode for `1 if true` and `1 unless false` on 2.2.3, which leads me to believe that this is the commit which removes the dead code for `1 if true`: https://github.com/ruby/ruby/commit/f11a85
Arkon has joined #ruby
NeverDie has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
<norc> Ox0dea: Well for 2.3 it is done right at parse stage. Honestly didn't check backports
yqt has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
JDiPierro has joined #ruby
<norc> Though considering that -DCPDEBUG is broken at the moment, I probably will want to go back at it.
devoldmx has joined #ruby
<Linell> So this gist is _super_ close. BUT once the PolicyError is raised, it can never pass again. https://gist.github.com/Linell/9ad38d34b37076549872
<Ox0dea> norc: Well, I assume you compiled with your fix and saw satisfactory results, so I can't knock that.
veg has quit [Ping timeout: 272 seconds]
<Linell> er wait, no. It's not working as well as I thought even.
EvanFreeeman has joined #ruby
willharrison has joined #ruby
mistermocha has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 250 seconds]
<norc> Ox0dea: This is with my patch applied http://pastie.org/10553045
<Ox0dea> Linell: Are you sure this is what you want to do? You can't really hide anything in Ruby from Ruby.
neonalpine has joined #ruby
EvanFreeeman has quit [Client Quit]
<Ox0dea> norc: Nice!
<Linell> Ox0dea: well I just want an easy way to raise an Exception if a condition isn't met
orlandoj has joined #ruby
<Linell> This could be completely the wrong way to do that, just what I've thought up so far
<G186> jhass, what should I be putting in the Given section of the .feature file? I look at examples online, I tried to follow them, but no go,
rgtk has joined #ruby
<Ox0dea> norc: But isn't it a little heavy-handed? Aren't things that should say `branch_unless` gonna say `branch_if`?
shadoi has quit [Quit: Leaving.]
<Ox0dea> Sans the underscores.
<norc> Ox0dea: There is no NODE_UNLESS anyway.
<norc> Ox0dea: unless is just Ruby sugarcoating for swapping the left and right node around.
NeverDie has quit [Max SendQ exceeded]
<jhass> G186: at the end of the day Cucumber doesn't really care, it's semantics for the reader. Given is to prepare your test, setup any preconditions, so it's optional if there's no such thing to do. When is executing the test, the action under test. Then is for expectations, observing and asserting results of the action(s) executed
be_erik has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
<Ox0dea> Right, I remember now.
<G186> jhass, I guess I'm looking at this in the same way I would use junit testing in java, where I made a program then had junit test cases calling those methods inside the program,
Tricon has joined #ruby
pandaant has quit [Remote host closed the connection]
neonalpine has quit [Ping timeout: 250 seconds]
<jhass> G186: kind of yes. Not that cucumber is used much for unit testing, it's much more used for integration testing. But note the cucumber itself doesn't actually provide any assertions, you also plugin the assertion DSLs of another framework into it usually, say Minitest or RSpec
NeverDie has quit [Max SendQ exceeded]
rgtk has quit [Ping timeout: 260 seconds]
<jhass> All cucumber does is mapping the step definitions to the feature files and executing them
darkxploit has quit [Ping timeout: 272 seconds]
rbowlby has joined #ruby
<tlolczyk> Thanks
Hounddog has quit [Remote host closed the connection]
be_erik has joined #ruby
<G186> jhass, that clears things up quite a bit!
ekinmur has joined #ruby
shadoi has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
scmx has quit [Ping timeout: 276 seconds]
g0bl1n has quit [Quit: g0bl1n]
charliesome has joined #ruby
B1n4r10 has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
NeverDie has joined #ruby
mgorbach has quit [Ping timeout: 240 seconds]
p0wn3d__ has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
darkxploit has joined #ruby
zenguy_pc has quit [Ping timeout: 276 seconds]
mgorbach has joined #ruby
beast has quit [Quit: Leaving]
jorb has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jorb has joined #ruby
c0m0 has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
krz has quit [Quit: WeeChat 1.2]
zenguy_pc has joined #ruby
NeverDie has quit [Max SendQ exceeded]
G186 has quit [Quit: Textual IRC Client: www.textualapp.com]
B1n4r10 has quit [Ping timeout: 264 seconds]
mattwildig has quit [Remote host closed the connection]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest33927 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
NeverDie has quit [Max SendQ exceeded]
neonalpine has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekain has quit [Quit: Textual IRC Client: www.textualapp.com]
<jorb> so like. whats a good project to get started with to learn Ruby?
<jorb> after the tut and such
<jorb> all these config management tools that like to use Ruby seem too specific.. but i suppose that would be good inspiration
Guest53 has joined #ruby
User458764 has joined #ruby
rgtk has joined #ruby
<Linell> jorb: I think the best way to find something worth working on is to pick something _you_ want to build and do it. You'll find stuff along the way.
<jorb> lacking any inspiration i would probalby just try to code up a game somehow
mic_e has quit [Ping timeout: 244 seconds]
Oog has joined #ruby
<jorb> which would flex a lot of things as per usual
<jorb> but really.. is Ruby even suited to that at all?
scmx has joined #ruby
Ox0dea has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Quit: yawn]
NeverDie has joined #ruby
infinitone has joined #ruby
millerti has joined #ruby
pdoherty has joined #ruby
<Linell> jorb: check out https://github.com/gosu/gosu
lemur has joined #ruby
NET||abu- has joined #ruby
karapetyan has quit [Remote host closed the connection]
<jorb> oo cool thx Linell
shadoi has quit [Quit: Leaving.]
segfalt has joined #ruby
karapetyan has joined #ruby
shadoi has joined #ruby
<NET||abu-> hi there, i'm trying to run librarian-puppet and i've run into some gem installation issues.
<NET||abu-> it's on a jenkins server and i can't blow away the gems too wildly as other jobs depend on them too
pdoherty has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
<NET||abu-> error i'm getting is /usr/local/bin/librarian-puppet install --clean --verbose
<NET||abu-> /usr/share/rubygems/rubygems/specification.rb:2018:in `raise_if_conflicts': can't activate activesupport-4.2.0, already activated activesupport-4.2.3
pdoherty has joined #ruby
mikecmpbll has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem has quit [Read error: Connection reset by peer]
lukaszes has joined #ruby
akem has joined #ruby
jgpawletko has joined #ruby
dtordable has quit [Quit: Lost terminal]
iateadonut has quit [Quit: Leaving.]
<tlolczyk> IS there a data structure that allows you to have a hash table with multiple entries?
dtordable has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Xeago has joined #ruby
<FailBit> wat
baweaver has quit [Remote host closed the connection]
eminencehc has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
n00 has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
<tlolczyk> Sorry where keys can have multiple values.
yqt has joined #ruby
wprice has quit [Quit: wprice]
mjuszczak has quit []
wprice has joined #ruby
<FailBit> you can store the values as an array
<FailBit> or a hash
rickenharp has joined #ruby
eminencehc has quit [Remote host closed the connection]
lubekpl has joined #ruby
momomomomo has joined #ruby
rickenharp has quit [Quit: Linkinus - http://linkinus.com]
bruno- has joined #ruby
kies has joined #ruby
bruno- is now known as Guest92449
hahuang65 has joined #ruby
rickenharp has joined #ruby
axl_ has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
B1n4r10 has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
voodo has joined #ruby
lukaszes has joined #ruby
akem has quit [Quit: Bye]
xet7 has joined #ruby
baweaver has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
axl_ has quit [Ping timeout: 250 seconds]
lukaszes has quit [Client Quit]
neonalpine has quit [Remote host closed the connection]
<shevy> hmm
fantazo has joined #ruby
dlitvak has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> we can not define methods such as: def 3foo; end - does anyone know if there is a specific reason for this or is this a preference?
n00 has quit [Quit: Page closed]
Melpaws1 has joined #ruby
tomphp has quit [Client Quit]
someguy_ has joined #ruby
mattwildig has joined #ruby
tomphp has joined #ruby
be_erik has quit [Ping timeout: 240 seconds]
DiCablo has joined #ruby
<someguy_> is there some way I can use a local version of a gem without using bundler?
ruurd has joined #ruby
<shevy> sure
<nofxx> someguy_: rake install on the gem folder
<shevy> gem install ./name-of-gem-here.gem and you can use the user install variant too
zeroDivisible has joined #ruby
<eam> >> define_method '3foo', -> {"orly"}; send '3foo'
ramfjord has joined #ruby
<ruboto> eam, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
User458764 has joined #ruby
<eam> whawhhahahahahatttt!
<shevy> gem install --user-install ./name.gem
sepp2k has quit [Quit: Leaving.]
malconis has quit [Ping timeout: 240 seconds]
<Melpaws1> HI, i'm following a simple guide to read a file and return line if match regex. But i'm getting file each_line class error . Any suggestions : undefined method `each_line' for File:Class is the error - following examples here : http://stackoverflow.com/questions/6002868/finding-lines-in-a-text-file-matching-a-regular-expression
<eam> >> "is this thing on?"
<ruboto> eam # => "is this thing on?" (https://eval.in/467827)
<eam> >> define_method '3foo', -> {"orly"}; send '3foo'
<ruboto> eam # => "orly" (https://eval.in/467828)
<shevy> eam yeah but I am wondering about the regular syntax; I assume there must be some restriction of the parser
decoponio has quit [Quit: Leaving...]
<eam> I'm guessing arbitrary per convention
hxegon has quit [Ping timeout: 265 seconds]
<someguy_> nofxx: Can I use it without installing? I have release version of the gem already installed
voodo has quit [Quit: Leaving...]
hahuang65 has joined #ruby
hxegon has joined #ruby
<eam> what would happen if you def 0e0
Kabal has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
<shevy> not sure
tomphp has quit [Client Quit]
<shevy> in python it rejects leading numbers too
malconis has joined #ruby
rickenharp has quit []
malconis has quit [Remote host closed the connection]
tomphp has joined #ruby
_blizzy_ has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
norc has quit [Ping timeout: 246 seconds]
h99h9h88 has joined #ruby
mary5030 has joined #ruby
nertzy has joined #ruby
jdawgaz has joined #ruby
malconis has joined #ruby
hxegon has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
tomphp has joined #ruby
mary5030_ has joined #ruby
tlolczyk has quit [Ping timeout: 264 seconds]
barhum2013 has quit [Quit: barhum2013]
tomphp has quit [Client Quit]
h99h9h88 has quit [Remote host closed the connection]
be_erik has joined #ruby
momomomomo_ has joined #ruby
h99h9h88 has joined #ruby
h8sreggin has joined #ruby
barhum2013 has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
hashpuppy has joined #ruby
tomphp has joined #ruby
Kabal has joined #ruby
hashpuppy has left #ruby [#ruby]
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
pimpin has joined #ruby
hxegon has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby
safe has joined #ruby
mic_e has joined #ruby
tomphp_ has joined #ruby
<someguy_> So is there no way to use a local gem without installing?
<h8sreggin> nope
<h8sreggin> you have to install it to your app if you want to use it
<h8sreggin> but if you like ruby i could suggest npm since it's amazing
baweaver has quit [Remote host closed the connection]
<h8sreggin> it's the counterpart to rvm but it's much better since it's in javascript
h99h9h88 has quit [Ping timeout: 264 seconds]
<h8sreggin> javascript > ruby
willharrison has joined #ruby
<havenwood> someguy_: You could download a gem, and unpack it and use the code however you like.
<h8sreggin> i don't recommend doing that
<havenwood> someguy_: RubyGems has a command `gem unpack`. See: gem help unpack
tomphp has quit [Ping timeout: 240 seconds]
<TTilus> h8sreggin: how come?
<h8sreggin> you need dependencies for it to run properly
<TTilus> obviously
shadoi has quit [Quit: Leaving.]
<h8sreggin> so that's why installers exist
<h8sreggin> if you like wasting time and having huge headaches be my guest
<TTilus> someguy_: if you don't want to use bunler (why? if i may ask) there's always the option to manually set environment var for gem location
<havenwood> someguy_: The convention to install gems when manually looking at gems is to run `bundle install` then prefix commands with `bundle exec` to be using that gem's bundle.
Arkon has quit [Read error: Connection reset by peer]
lukaszes has joined #ruby
<someguy_> havenwood: I have the git repo of the gem and I made a small change - I just need to see if it actually works.
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arkon has joined #ruby
<havenwood> someguy_: Ah, build the gem yourself.
jackjackdripper has joined #ruby
eminencehc has joined #ruby
<havenwood> someguy_: gem build gem_name.gemspec
<someguy_> havenwood: I did
cornerma1 has joined #ruby
<havenwood> someguy_: then: gem install gem_name-version.gem
<TTilus> someguy_: or maybe run the testsuite?
momomomomo has quit [Quit: momomomomo]
<TTilus> someguy_: without actually installing the resulting gem
<TTilus> someguy_: or require it from pry and play around without installing
cdg has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
<havenwood> someguy_: Do you object to just installing from the local copy? You can always `gem pristine gem_name` to restore it to the pristine original.
momomomomo has joined #ruby
<h8sreggin> this is what happens when an uneducated retard changes a line of code... he breaks the entire gem... way to go sir, way to go!
neonalpine has joined #ruby
<havenwood> !kick h8sreggin Be nice!
h8sreggin was kicked from #ruby by ruboto [Be nice!]
h8sreggin has joined #ruby
<TTilus> havenwood: thanks
<havenwood> someguy_: If you'd rather not install the gem, check if there's a Gemfile file in the gem's root directory.
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<someguy_> havenwood: Yes, there is a gemfile
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
<havenwood> someguy_: That's a file to help developers quickly get the gem dependencies installed in your case.
sepp2k has joined #ruby
<h8sreggin> thte gemfile lists all the files required for the gem to run properly
DoubleMalt has quit [Remote host closed the connection]
<_blizzy_> in ruby, should I put my module imports first, THEN my ruby.rb imports
<_blizzy_> or vise verse?
<havenwood> someguy_: It'll point to `gemspec` which will also resolve dependencies from your gemspec file.
<h8sreggin> import modules first
<_blizzy_> ok, thanks.
neonalpine has quit [Remote host closed the connection]
<someguy_> havenwood: no dependencies
<h8sreggin> Someguy123:you still have to run the installer
shadoi has joined #ruby
neonalpine has joined #ruby
<h8sreggin> what change did you make to the code?
<h8sreggin> havenwood:i am being nice and respectful i did say sir, you fucking cunt
<havenwood> someguy_: I'd second TTilus's suggestion to explore the gem with Pry!
<havenwood> !ban NICK !T 5h
<ruboto> havenwood, could not find a matching user for "NICK"
<havenwood> !ban h8sreggin !T 5h
h8sreggin was kicked from #ruby by ChanServ [User is banned from this channel]
<havenwood> NICK is the subject of my macro fail. ;)
mary5030_ has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> poor NICK
mary5030 has quit [Ping timeout: 240 seconds]
stamina has joined #ruby
mary5030_ has quit [Remote host closed the connection]
pimpin has quit [Remote host closed the connection]
<havenwood> Fixing it... NICK is innocent!
n00p has joined #ruby
<someguy_> havenwood: You mentioned `gem pristine`; I guess I wouldn't mind installing if I could quickly revert
<havenwood> someguy_: Yup, that's just what it's for!
mary5030 has joined #ruby
<_blizzy_> any ways I can improve? https://github.com/NotBlizzard/blizzybotrb
Linell has quit [Ping timeout: 240 seconds]
tw1sted has quit [Changing host]
tw1sted has joined #ruby
<TTilus> someguy_: if you plan to publish your changes and/or send pullrequest, i recommend you to read contribution guidelines (if the gem has them) and writing test that exercise the feature you added or manifest the bug you fixed
Xeago has joined #ruby
kies has quit [Ping timeout: 260 seconds]
lukaszes has joined #ruby
Linell has joined #ruby
<havenwood> !ban h8sreggin !P
<ruboto> havenwood, could not find a matching user for "h8sreggin"
<TTilus> someguy_: or you could add -local1 or something like that to gem version number and have your version _not_ override the release version you already have installed
<havenwood> Ah, another thing to fix.
lukaszes has quit [Client Quit]
wlanboy has quit [Ping timeout: 244 seconds]
wlanboy has joined #ruby
ramfjord_ has joined #ruby
kerunaru has joined #ruby
jpfuentes2 has quit [Ping timeout: 244 seconds]
lukaszes has joined #ruby
rcvalle_ has joined #ruby
<_blizzy_> last time I was here , you all said to split up my code into different files, so I did :)
mary5030 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
rcvalle has quit [Ping timeout: 244 seconds]
rcvalle_ is now known as rcvalle
kuntaminator has joined #ruby
kuntaminator was kicked from #ruby by ChanServ [User is banned from this channel]
<TTilus> _blizzy_: README could describe what this thing is, what is it supposed to do and why and who might wanna use it
tenderlo_ has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby
someguy_ has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
<_blizzy_> TTilus, ok, I'll add that. thanks.
jpfuentes2 has joined #ruby
<TTilus> _blizzy_: move code under lib/ and configurations under config/ or somesuch
dorei has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
<_blizzy_> TTilus, may I ask why?
rgtk has quit [Remote host closed the connection]
<TTilus> _blizzy_: also ranks-example.yaml mentioned in README is missing
<_blizzy_> TTilus, ok, thanks again.
<_blizzy_> I haven't touched this bot in a few months.
B1n4r10 has quit [Ping timeout: 264 seconds]
<TTilus> _blizzy_: you may, try to keep your project root clean and organized
<_blizzy_> TTilus, ah ok. I'll do it then.
Xeago has quit [Remote host closed the connection]
dorei has joined #ruby
ruurd has quit [Client Quit]
<TTilus> _blizzy_: even though you didn't inted to publish a gem, http://guides.rubygems.org/patterns/ is still worth reading
<_blizzy_> TTilus, it's not a gem
<_blizzy_> it's a bot
x-light has joined #ruby
<_blizzy_> a pokemon battling bot
n00p has quit [Remote host closed the connection]
Linell has left #ruby [#ruby]
someguy_ has joined #ruby
blahwoop has joined #ruby
decoponio has joined #ruby
<someguy_> Got disconnected...
<someguy_> TTilus: so then I could do `require gemname-local1`?
<blahwoop> hi all. can anyone assist in refactoring this https://gist.github.com/iRichLau/9527e3cdbab1b20e5a9b
<blahwoop> i know that i can use include instead of regex but im going to be porting it over to java
freerobby has quit [Ping timeout: 240 seconds]
freerobby1 has joined #ruby
<TTilus> _blizzy_: i know it is not a gem, regardles the guidance on library structure is applicable also to codebases that aren't gems or libs at all
<TTilus> _blizzy_: also https://github.com/bbatsov/ruby-style-guide is good stuff
h99h9h88 has joined #ruby
<_blizzy_> TTilus, ah ok, thanks for the links.
shadoi has quit [Quit: Leaving.]
kirun has joined #ruby
ruurd has joined #ruby
<TTilus> someguy_: in code `require_gem "gemname", "=x.y.z-local1"
Cork has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
<TTilus> someguy_: or use bundler and have explicitly versioned dependency in Gemfile
dlitvak has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
mary5030 has joined #ruby
<someguy_> TTilus: Ok, I'll give it a try. Thanks for your help. Havenwood too.
brushbox has joined #ruby
<_blizzy_> TTilus, code-wise, does it look 'decent' or is it just horrible.
<_blizzy_> I'm going to follow the guides.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
mary5030 has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prestorium has quit [Quit: Leaving]
tomdp has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
erbesharat has joined #ruby
maletor has joined #ruby
freerobby1 has quit [Quit: Leaving.]
h99h9h88 has joined #ruby
DoubleMalt has joined #ruby
jamesaxl has joined #ruby
freerobby has joined #ruby
piotrj has joined #ruby
blahwoop has quit []
mary5030_ has joined #ruby
rgtk has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Read error: Connection reset by peer]
maletor has quit [Client Quit]
mary5030 has joined #ruby
rodfersou has quit [Quit: leaving]
someguy_ has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
momomomomo has quit [Quit: momomomomo]
h99h9h88 has quit [Ping timeout: 265 seconds]
Oog has quit []
segfalt has quit [Ping timeout: 255 seconds]
freerobby has quit [Ping timeout: 272 seconds]
rgtk has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
<shevy> aahhhh you people invite the webchatster again :)
mary5030 has quit [Remote host closed the connection]
<adaedra> ?
mary5030 has joined #ruby
based_pdev_ has joined #ruby
last_staff has joined #ruby
ldnunes has quit [Quit: Leaving]
mary5030_ has joined #ruby
zachrose has joined #ruby
`based_pdev` has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Read error: Connection reset by peer]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> _blizzy_: code-wise nothing really stands out, except global variables, you've got no need for them
mary5030_ has joined #ruby
scmx has quit [Ping timeout: 246 seconds]
<_blizzy_> TTilus, hmm, ok, thanks. I use globals so I can debug the bot while it's battling and stuff.
mary5030 has quit [Ping timeout: 250 seconds]
<TTilus> _blizzy_: also kwargs-style initializer could be cleaner, i mean like Bot.new(options)
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> TTilus, hmm, ok.
<TTilus> _blizzy_: you absolutely need to learn to use pry
Guest92449 has quit [Ping timeout: 252 seconds]
wprice has quit [Quit: wprice]
wprice has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
patrick99e99 has joined #ruby
<TTilus> and of course the naming conventions, class Bot should be in lib/bot.rb
Arkla has joined #ruby
<TTilus> etc
jdawgaz has joined #ruby
<patrick99e99> hey everyone...... I've got a script that news up a connection with a server, and runs in a loop forever, and I would like to close that connection upon halting... I have been looking around online and I can't seem to find any information about how to do this. I read about at_exit, and rescue SignalException, but neither of those things seem to get triggered when I ctrl-c out of my script.
spider-mario has joined #ruby
freerobby has joined #ruby
kadoppe has quit [Ping timeout: 272 seconds]
<Arkla> Hey there, does anyone know where I should go to get help for an algorithm ? I'm really bad at thinking algorithm (it's not a matter of implementation here, but rather of what the heck I should do), so if you have a website or stuff to advise, I'd be happy, thanks :)
devoldmx has joined #ruby
<FailBit> patrick99e99: the kernel will automatically close the connection for you when the script terminates
Tricon has quit [Read error: Connection reset by peer]
erbesharat has quit [Remote host closed the connection]
<FailBit> it is not required to close it manually in error states
h99h9h88 has joined #ruby
<FailBit> s/it is not/you are not
kadoppe has joined #ruby
<jhass> Arkla: there simply are no golden rules to that, algorithm is a way too general term/concept
djbkd has joined #ruby
<FailBit> Arkla: what are you implementing?
<patrick99e99> FailBit: are you certain? I am using the Stomp gem, and their documentation shows that you should do client.close after you're done... ?
<havenwood> patrick99e99: trap(:INT) { warn 'OMGWTFBBQ!' }
<FailBit> patrick99e99: I'm positive
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
scmx has joined #ruby
<FailBit> the kernel will close all connections that a program holds open when it terminates
<Arkla> FailBit: not a known stuff, it's just something to help me drumming :P (yes, the instrument ^^)
hxegon has quit [Read error: Connection reset by peer]
Arkon has quit [Remote host closed the connection]
<havenwood> Arkla: So what is the input, what are the steps to be performed, and what is the output?
<Arkla> havenwood: Creating a gist, omw
mattwildig has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
<Arkla> havenwood: I'm pretty sure it's super easy, but as I said, I'm just horrific at thinking algorithm
baweaver has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
momomomomo has joined #ruby
Xeago has joined #ruby
arthurix_ has joined #ruby
<FailBit> that's O(n!)
riceandbeans has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
<riceandbeans> can anyone help me with rspec?
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<FailBit> you might find better help in #RubyOnRails, but sure go ahead
dlitvak has quit [Ping timeout: 244 seconds]
<havenwood> riceandbeans: rspec trouble?
<riceandbeans> it's not rails specific.....it's rspec specific
<riceandbeans> I'm writing unit tests for chef code
lubarch has joined #ruby
<shevy> show us your scary tests
<riceandbeans> havenwood: I'm a little confused by the entire syntax of rspec and I don't know what some things mean
mattwildig has joined #ruby
ta has quit [Remote host closed the connection]
<riceandbeans> I'm copying and modifying from someone else's tests for another cookbook, but I'm not 100% on what some things mean
arthurix has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
eminencehc has joined #ruby
<havenwood> riceandbeans: Maybe you'd prefer Minitest. It's quite nice. And ships with Ruby!
<havenwood> ah
lubarch has quit [Client Quit]
<riceandbeans> well, I think given it's chef I'm required to use rspec through their stuff
lubarch has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
chipotle has quit [Client Quit]
Coldblackice has joined #ruby
rgtk has joined #ruby
be_erik has quit [Ping timeout: 264 seconds]
<riceandbeans> like..... File.should_receive(:exists?).with('/etc/consul.d/default.json').and_return(true)
* FailBit hops aboard the "rspec must die" train again
<riceandbeans> I really don't want to argue if it's good or bad, that's irrelevant, it's the testing framework you're given for puppet and chef
<riceandbeans> I just want to understand what I'm doing with it and the foreign syntax
lubarch has quit [Client Quit]
<riceandbeans> like does that line even make sense?
lubarch has joined #ruby
<riceandbeans> it's a modified version of a different person's test
<shevy> who here uses rspec, hands up now!
dlitvak has quit [Ping timeout: 250 seconds]
willharrison has joined #ruby
norc_ has joined #ruby
<riceandbeans> come on man I'm not looking for a fight
<FailBit> File [Object] should have #exists? called with "/etc/consul.d/default.json" and return true
neonalpine has quit [Read error: Connection reset by peer]
<norc_> j416: Should a small pull request have a feedback request on redmine?
neonalpine has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<j416> norc_: how is that ruby related? because redmine is a rails app? :P
dlitvak has joined #ruby
<norc_> j416: No but because ruby has a redmine tracker?
<norc_> :P
B1n4r10 has joined #ruby
<j416> ooh, the ruby project itself?
<norc_> Yeah.
<j416> that I have no idea of.
<riceandbeans> what are the limitations or .should_receive?
<j416> by "ruby dev" I mean, I work with ruby at $dayjob, I don't develop Ruby :)
<norc_> j416: Heh. Misunderstood your ruby dev. :D
<j416> sorry for being vague heh
<norc_> I was already really amazed to find a ruby developer who speaks English.
<j416> but I'm sure some other guy in this channel could answer
<norc_> :-)
<j416> norc_: haha what
<j416> norc_: they don't speak english?
axsuul has joined #ruby
crdpink2 has quit [Quit: q term]
<norc_> There is a lot of intimidating Japanese on the bug tracker. :-)
<j416> ah
<riceandbeans> most of them are probably such nerds they speak lojban
<j416> norc_: but I speak that language. ##japanese next? XD
pimpin has joined #ruby
<norc_> This is getting hilarious.
bruno- has joined #ruby
<j416> indeed
brushbox has quit [Quit: brushbox]
bruno- is now known as Guest83788
dmitch has joined #ruby
<j416> norc_: (for real though if you need to decipher something in particular in that tracker, feel free to ask)
<norc_> j416: And then I get too scared about the yakuza at which point you will invite me to #bōryokudan - I can see where this is going.
<j416> haha
<j416> no
<j416> no bouryoku here
<riceandbeans> what about File.should_receive(:size).with('/etc/consul.d/default.json').and_return('12')
crdpink has joined #ruby
<riceandbeans> does that mean 12 bytes? 12 lines? 12Kb?
h99h9h88 has quit [Remote host closed the connection]
<FailBit> look at the documentation for File.size
h99h9h88 has joined #ruby
<norc_> FailBit: Incidentally the documentation is not helpful there.
<riceandbeans> I didn't know if it was rspec or ruby core at this point
Arkla has quit [Quit: Page closed]
<shevy> it's purely rspec
<norc_> riceandbeans: If that question arises, you should probably read some rspec docs first.
sinkensabe has quit [Remote host closed the connection]
kies has joined #ruby
<norc_> Hey shevy.
Amnez777_ has joined #ruby
<riceandbeans> the more rspec documentation I read the more confused I get
dionysus69 has quit [Ping timeout: 240 seconds]
<shevy> hey norc_
<j416> riceandbeans: also, modernise it and avoid the monkeys; prefer to write that as expect(File).to receive(:size) ...
<shevy> I see you are trying to poke at the ruby internals
segfalt has joined #ruby
shadoi has joined #ruby
<norc_> shevy: Yup. :)
<riceandbeans> shevy: ok, like I said, copying style from another file
evanjs has quit [Quit: Leaving...]
<riceandbeans> shevy: learning
<shevy> \o/
RegulationD has quit [Remote host closed the connection]
Amnez777 has quit [Ping timeout: 250 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
<riceandbeans> j416: I don't see that in the docs
<j416> riceandbeans: look at docs for rspec 3
<j416> riceandbeans: and also check what rspec version you're using, perhaps you can't use all of the new syntax
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> would gem list be sufficient?
<shevy> gem can tell you the version of a particular gem
<riceandbeans> 3.3.0
Helheim has joined #ruby
lubarch has quit [Ping timeout: 264 seconds]
dlitvak has quit [Remote host closed the connection]
Pumukel has joined #ruby
<norc_> riceandbeans: Have you worked your way through some basic rspec stuff?
<riceandbeans> no
mrmargolis has quit [Remote host closed the connection]
Helheim has quit [K-Lined]
<norc_> riceandbeans: You probably want to start with some basics then: https://www.relishapp.com/rspec/docs/gettingstarted
neonalpine has quit [Read error: Connection reset by peer]
neonalpine has joined #ruby
piotrj_ has joined #ruby
shadoi has quit [Quit: Leaving.]
p0wn3d__ has joined #ruby
Arkon has joined #ruby
<FailBit> lol bans
momomomomo has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
nemesit|znc has quit [Ping timeout: 250 seconds]
grieve has joined #ruby
momomomomo has joined #ruby
piotrj has quit [Ping timeout: 250 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
nemesit|znc has joined #ruby
<riceandbeans> norc_: j416: can you help me with just the first one I pasted here as an example?
axsuul has quit [Ping timeout: 244 seconds]
ekinmur has quit [Client Quit]
<riceandbeans> I've turned it into this
<j416> riceandbeans: sure
be_erik has joined #ruby
ruby-lang702 has joined #ruby
<riceandbeans> expect('/etc/consul.d/default.json').to receive(:exists?)
niggr has joined #ruby
<j416> no
<riceandbeans> I'm not sure how to add to that the .and_return(true)
<j416> riceandbeans: do you know what you want to test?
<shevy> right now I am using: s.rubygems_version = '2.5.0'
<riceandbeans> I want to test that after running, chef has created a specific config file
<j416> shevy: upgrade then
<shevy> anyone happens to know offhand if s.rubygems_version = '>2.5.0' will work?
Arkon has quit [Ping timeout: 260 seconds]
Lucky__ has joined #ruby
<j416> riceandbeans: what is it that you are teting?
<j416> testing*
<shevy> or is it implicitly assumed to mean minimal rubygems version
Guest53 has joined #ruby
<j416> riceandbeans: are you testing that chef is implemented correctly?
<j416> riceandbeans: because chef should already be doing that
<riceandbeans> j416: yes, sort of, I'm not checking content, just that the file exists right now
<riceandbeans> right, but I'm trying to write unit tests for my cookbook
<j416> I see
<riceandbeans> make sure I do everything that my requirements are
piotrj_ has quit []
<j416> feels a bit odd to use rspec, although I suppose you could
`based_pdev` has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
segfalt__ has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
segfalt has quit [Ping timeout: 240 seconds]
<j416> riceandbeans: if you have a class Foo with a method "flower" that should return "laundromat", then you could write: expect(myFoo.flower).to eq('laundromat')
opensource_ninja has joined #ruby
<j416> riceandbeans: if you have something that you expect would call that and you want to make sure it does call it, then you would use the above syntax: expect(myFoo).to receive(:flower) { 'and you can put a mock return value here if you like' }
cdg has joined #ruby
based_pdev_ has quit [Ping timeout: 240 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Amnez777_ has quit [Changing host]
Amnez777_ has joined #ruby
<j416> riceandbeans: that chefspec seems to be of use to you yes.
<eam> these modes
silverdust has joined #ruby
<adaedra> Ah, so there are modes changes?
<j416> riceandbeans: if you weren't using that, you would have to find a pure ruby way to check for file existence, and then use that as input to your test
<j416> adaedra: yes
<silverdust> how may I access an instance variable in another method of a class?
purplexed- has quit [Ping timeout: 250 seconds]
<adaedra> It's ended soon
<havenwood> silverdust: directly
<adaedra> Voilà
sinkensabe has joined #ruby
<silverdust> ha good. Thanks
jessemcgilallen has joined #ruby
<silverdust> havenwood: Is there any thing like this.var in ruby?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arthurix has joined #ruby
<riceandbeans> if you do attr_accessors I think you can
<havenwood> silverdust: You can `@var` directly or `this.var` for a method call that get the same instance variable.
<silverdust> okay thanks again
axl_ has joined #ruby
davejlong has quit [Quit: leaving]
ta has joined #ruby
<havenwood> silverdust: `attr_reader(:var)` or `attr_accessor(:var)` or `def var; @var end` since there's no method for an instance variable by default
<havenwood> silverdust: But just access them directly. ;)
arthurix_ has quit [Ping timeout: 240 seconds]
ruby-lang702 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
<havenwood> silverdust: Ah, I read `self.var` when you wrote `this.var`. Oops, did not compute.
bMalum has quit [Quit: bMalum]
<havenwood> Close enough. :P
axl_ has quit [Ping timeout: 240 seconds]
grill has joined #ruby
<silverdust> but self.var is fine like in python right?
yfeldblum has quit [Ping timeout: 240 seconds]
<silverdust> I def need to need to give all of them a try
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX1 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
synthroid has quit []
pdoherty has quit [Ping timeout: 276 seconds]
<shevy> when I have a string such as:
<shevy> x = 5
<shevy> I need to find out what the second part is (I have it available as a string such as '5', but it could also be something like '"5"')
centrx has joined #ruby
<shevy> it could be [5..3] for instance ... hmm
norc_ has quit [Ping timeout: 246 seconds]
<havenwood> shevy: huh?
<shevy> I meant (3..5) actually, but also [5]
dkam_ has quit [Quit: Be back later ...]
<shevy> just like irb figures out these kind of things
Arkon has joined #ruby
<shevy> for instance, if you do: x = (3..5)
CloCkWeRX1 has quit [Ping timeout: 265 seconds]
<shevy> x would be a range
allcentury has quit [Ping timeout: 244 seconds]
skakri has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
<jhass> irb just evals
<havenwood> shevy: So wandering about tokenizing, lexing or parsing or something else?
<jhass> don't eval in your production code
momomomomo_ has quit [Client Quit]
platzhirsch has joined #ruby
<havenwood> shevy: Say more about why? Or just curiousity?
<jhass> yeah
<jhass> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
momomomomo has quit [Ping timeout: 272 seconds]
lukaszes has joined #ruby
<adaedra> Poor z, always excluded
<jhass> mh
skakri has joined #ruby
<jhass> asking about x, actually wanting y, actually needing z?
<shevy> jhass irb really uses eval?
<jhass> yes
<shevy> havenwood yeah
<shevy> that scares me...
bb010g has quit [Quit: Connection closed for inactivity]
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has quit []
baweaver has joined #ruby
<adaedra> why?
<shevy> there could be bad data for eval
<jhass> shevy: tell us more about your motivation, what were you doing/looking at that led you to that question?
<havenwood> shevy: If you're just curious, give this a try: https://gist.github.com/havenwood/bd9fc2e475f4db3386e7
<shevy> I need to set arbitrary data on an object
Xeago has joined #ruby
<jhass> that's what you want to do, not the why
<shevy> because I need it
<shevy> because I want it
<shevy> now you have the why
haylon has quit [Quit: Leaving]
<jhass> I don't, so gl
<shevy> you did
<adaedra> I'm tempted to give back another quote from Matrix: Reloaded, but I don't remember them.
<havenwood> shevy: Maybe my gist will happen to be exactly what you're looking for? :P
<shevy> havenwood not sure, I won't need the fancy stuff like having to know indent etc.., I only need to be able to assign the proper types, when they are stored in a string. so like '(1..3)' would be a range
<shevy> I mean if eval works.... hmmmm
<shevy> but I am too scared :\
<havenwood> shevy: So you want to parse literals while avoiding eval?
<shevy> I want to find out what '(1..3)' would be, e. g. I would want to have it work as if someone would have done: x = (1..3) directly, for instance
<adaedra> shevy: you can use eval if you know what you're doing and are careful with it. I mean, there are uses.
sepp2k has quit [Ping timeout: 240 seconds]
<TTilus> shevy: about irb, it is a REPL and you prolly know what that E there stands for, so it shouldn't come as a huge surprise that it evals ;)
<shevy> TTilus it evaluates :)
<TTilus> ba-da-tsss
<adaedra> You don't say.
<shevy> I didn't know it used eval()!
neonalpine has quit [Read error: Connection reset by peer]
<adaedra> Now you do.
sepp2k has joined #ruby
<adaedra> And let me tell ya, it's totally ok.
neonalpine has joined #ruby
syath has quit [Quit: WeeChat 1.2]
neonalpine has quit [Remote host closed the connection]
<dorei> shevy: r u looking for some AST gem? :p
mary5030_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<shevy> dorei dunno really... that's quite complex what havenwood showed there... eval() might be much simpler
<havenwood> shevy: It doesn't support Range but: require 'literal_parser'; LiteralParser.parse('5').class
<havenwood> shevy: apeiros to the rescue! https://github.com/apeiros/literal_parser
<shevy> aha!
neonalpine has joined #ruby
<adaedra> Oh, by the way, because I will need it soon maybe
<adaedra> Do you know of something that could parse data printed by PHP?
<shevy> apeiros is like doing things that, some years later, I also need. he is like in the future
robbyoconnor has quit [Max SendQ exceeded]
<havenwood> shevy: It parses NilClass, TrueClass, FalseClass, Symbol, Integer, Float, Hash, Array, Date and Time but not Range.
<jhass> adaedra: I came across a php unserialize/serialize implementation, let's see if my history still has it
robbyoconnor has joined #ruby
<TTilus> adaedra: "printed by PHP" tells absolutely nothing about the data format
<shevy> havenwood hmm do you happen to know why not range?
jcdesimp has joined #ruby
jcdesimp has quit [Remote host closed the connection]
<havenwood> shevy: NotImplementedError
Mon_Ouie has joined #ruby
<TTilus> adaedra: what format are we talking about here? that php serializer stuff?
<shevy> anyway, I think that is about like 99% of what I need exactly. I shall study it - thanks havenwood and apeiros!
SCHAAP137 has joined #ruby
<havenwood> shevy: yw
blackmes1 has joined #ruby
_whitelogger has joined #ruby
VeryBewitching has joined #ruby
<TTilus> adaedra: i'm not aware of any library to read that stuff
adac has quit [Ping timeout: 260 seconds]
<adaedra> That's what I feared.
<VeryBewitching> G'day folks.
TomPeed has quit [Quit: Textual IRC Client: www.textualapp.com]
_stu_ has joined #ruby
<adaedra> Hi
<shevy> haha :D found one gem of a comment there ...
<shevy> when @scanner.scan(RConstant) then eval("#{@constant_base}::#{@scanner[0]}") # yes, I know it's evil, but it's sane due to the regex, also it's less annoying than deep_const_get
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> adaedra: you might want to resort into something like http://kschiess.github.io/parslet/
davedev24 has quit []
<adaedra> Interesting.
tulak has joined #ruby
<shevy> nice logo for parslet there
<jhass> shevy: that's the thing with using old stuff though, these days const_get handles it
<shevy> aha hmm
kies has quit [Ping timeout: 246 seconds]
TomPeed has joined #ruby
rakm has joined #ruby
niggr has quit [Quit: Page closed]
neanderslob has joined #ruby
k3asd` has joined #ruby
Arkon has quit [Remote host closed the connection]
ReK2 has joined #ruby
ReK2 has joined #ruby
Arkon has joined #ruby
dlitvak has joined #ruby
<adaedra> Let's code a bit
<centrx> ok, what should I type
n_blownapart has joined #ruby
TPBallbag has joined #ruby
<adaedra> Ah, Ox0dea's not here
allcentury has joined #ruby
<shevy> already got one question, apeiros is using this on a line:
<shevy> case
<shevy> against what does that match?
mghaig has joined #ruby
<jhass> nothing
<adaedra> "module Perkele"
<adaedra> great progress here
<shevy> hmm
ta has quit [Remote host closed the connection]
<jhass> it's essentially equivalent to a if/elsif/else chain
<centrx> if nothing then nil
<shevy> peculiar
<jhass> >> case; when nil; "nil"; else "nothing"; end
<ruboto> jhass # => "nothing" (https://eval.in/467902)
<shevy> what I can say is... apeiros really likes "then" :)
pimpin has quit [Remote host closed the connection]
<shevy> I guess it serves as a visual marker
Gi0 has joined #ruby
<jhass> not so in the more recent code
<TTilus> adaedra: need to clean your code, be nice youknow, avoid profanitions and such ;)
<jhass> people's preferences change, even if that's hard to believe for you
<adaedra> TTilus: it's not mine! It's https://github.com/collaborative-ruby/ruby-writes-fizzbuzz !
tlaxkit has joined #ruby
grilled-cheese has quit [Quit: grilled-cheese]
<shevy> jhass aha... guess that may also be another indication of the age of the code :(
<adaedra> (I know, I should add more context when I speak)
mrmargolis has joined #ruby
be_erik has quit [Ping timeout: 264 seconds]
<TTilus> adaedra: :D
<shevy> adaedra is the php parsing thing work-related?
<adaedra> shevy: yes
<adaedra> I would not do such a mad thing for myself
h99h9h88 has joined #ruby
<shevy> yeah I wondered!
<jhass> adaedra: and really zero influence in how the data is "exported"?
neonalpine has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
<TTilus> adaedra: that one ^ because php unserialize would be available, just switch to serialize in PHP (or use it on the side of print_r)
goodcodeguy has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> TTilus: given the context, I would json_encode() over PHP serialization.
<jhass> or yet better use a standardized format like JSON while at it
neonalpine has joined #ruby
h99h9h88 has joined #ruby
<adaedra> Let's say that if I have had an already made solution, it would have been easier.
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> adaedra: yep, even better
segfalt__ has quit [Ping timeout: 244 seconds]
opensource_ninja has quit [Remote host closed the connection]
<adaedra> Right now, it's web framework time
maletor_ has joined #ruby
maletor_ has quit [Remote host closed the connection]
TomPeed has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> I do wonder though, who exactly took print_r for an export format?
lemur has joined #ruby
<adaedra> That was not really meant to be re-imported in the first place, but things evolved.
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
mrmargolis has quit [Remote host closed the connection]
<jhass> so... they used it for user representation?
mattwildig has quit [Remote host closed the connection]
<adaedra> yes
<jhass> that might be even worse tbh
DrCode has quit [Ping timeout: 272 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
duncannz has joined #ruby
h99h9h88 has quit [Ping timeout: 265 seconds]
duncannz has quit [Max SendQ exceeded]
JDiPierro has quit [Remote host closed the connection]
duncannz has joined #ruby
<TTilus> stuff happens in real live...
lemur has quit [Ping timeout: 240 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
duncannz has quit [Max SendQ exceeded]
<adaedra> Yeah, mades me wonder sometimes
<adaedra> Is this the real life?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dzejrou has quit [Quit: dzejrou]
duncannz has joined #ruby
djcp has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Ping timeout: 260 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> makes*
jessemcgilallen has joined #ruby
brushbox has joined #ruby
axl_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Ox0dea has joined #ruby
NeverTired has joined #ruby
mary5030 has quit [Remote host closed the connection]
ekinmur has joined #ruby
davedev24 has joined #ruby
leafyba__ has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
demonlove has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
<Ox0dea> ♫ Is this just fantasy? ♫
davedev2_ has joined #ruby
leafyba__ has quit [Ping timeout: 260 seconds]
<adaedra> <3
<nofxx> Ox0dea: eyes... .. but I can't see.... ? pink floyd?
sinkensabe has joined #ruby
lubekpl has joined #ruby
<Ox0dea> nofxx: You have no mouth and you must scream, you say?
<adaedra> Someone didn't need no (musical) education, I see
<adaedra> :p
_stu_ has quit [Quit: _stu_]
davedev24 has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
davedev24 has joined #ruby
<Ox0dea> loop { wall << brick }
<slash_nick> adaedra! leave them kids alone
p0wn3d has joined #ruby
<adaedra> What's next, the Trial?
<nofxx> Ox0dea: oh yeah.. confused. "But it was only a fantasy..." hey you hahah good one
<adaedra> also, nice one Ox0dea
axsuul has joined #ruby
devoldmx has joined #ruby
wprice has quit [Quit: wprice]
Croves has joined #ruby
<nofxx> the wall is a nice album, personally I think that only 'animals' tops it
ss_much has joined #ruby
krazyj has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
p0wn3d__ has quit [Ping timeout: 255 seconds]
<krazyj> i don’t suppose anyone here would know why i’m getting a URL encoded string in Sinatra send to the Regexp of this method: `Sinatra::Base.send(<method>, Regexp) do …` ?
<jhass> wat
<jhass> elaborate?
arup_r has quit [Quit: Leaving]
<krazyj> jhass: my Sinatra::Base subclass is being called like: `subclass.send(‘get’, Regexp.new(‘/foo/bar?test=1,2,3)) do…`… so if i hit the Sinatra server at http://server/foo/bar?test=1,2,3, the string delivered to the regex is: ‘/foo/bar?test=1%2C2%2C3’ not ‘/foo/bar?test=1,2,3’
banister has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
<krazyj> which, of course, doesn’t match that Regex since it’s URL escaped
yfeldblum has joined #ruby
<jhass> any reverse proxy in place?
<krazyj> jhass: nope
jgpawletko has quit [Quit: jgpawletko]
ESpiney__ has quit [Ping timeout: 255 seconds]
mghaig has quit [Ping timeout: 276 seconds]
<jhass> why does it match against the query string in the first place
whippythellama has quit [Quit: WeeChat 1.3]
<krazyj> just how this application is designed
be_erik has joined #ruby
<jhass> I'm kinda surprised sinatra even supports that
<Ox0dea> >> class Class; def old; [*ObjectSpace.each_object(self)].sample end end; String.old
<krazyj> (it’s a mock server, so some details in the URL we might not care about - but i’m not sure if that’s relevant)
<ruboto> Ox0dea # => "LDSHAREDXX" (https://eval.in/467921)
ibouvousaime_ has quit [Ping timeout: 240 seconds]
<krazyj> jhass: i’m a bit of a ruby noob and i’m actually even trying to find the documentation for `.send(…)` and i can’t
<krazyj> i’d probably be a little more capable of debugging this if i could figure that but, eh
<jhass> &ri Kernel#send
<`derpy> No results
<Ox0dea> krazyj: #send just invokes a method dynamically.
<jhass> oh
<adaedra> Ox0dea: is there anything you didn't broke?
<jhass> &ri Object#send
Pumukel has quit [Ping timeout: 252 seconds]
<jhass> d'uh
<krazyj> oooooh
<krazyj> TIL!
CodingWolf has quit [Ping timeout: 246 seconds]
<adaedra> Not cool, `derpy
trosborn has joined #ruby
<jhass> nah, my bad
<shevy> good old derpy
<Ox0dea> adaedra: I think the lack of #old on Class is an unforgivable asymmetry, so I fixed it.
<Ox0dea> I think `derpy might still be to blame.
<Ox0dea> >> method(:send).owner
<ruboto> Ox0dea # => Kernel (https://eval.in/467922)
neonalpine has quit [Remote host closed the connection]
<jhass> wait, really?
<jhass> wth
<Ox0dea> Weird, right?
sinkensabe has quit [Remote host closed the connection]
<Papierkorb> I'm currently writing a spec for a API client. One of the tested methods access .csrf_token, which I want to stub out: https://gist.github.com/Papierkorb/5b969e9bf6989947b46c - Should I stub out the Api.csrf_token method altogether, or should I stub the Element stuff?
<adaedra> &ri Kernel.send
<`derpy> No results
<adaedra> Ox0dea: you like blaming the bot, don't you?
blue_deref has joined #ruby
<jhass> Papierkorb: a bit sparse on context, but I'd go for the Api method
<Ox0dea> adaedra: I do, and I'm aware that that particular proclivity has sharp teeth.
dhollinger has quit [Quit: WeeChat 1.2]
B1n4r10 has quit [Ping timeout: 240 seconds]
<Papierkorb> jhass: I'm on the edge, really. Could you say why you'd do that? The method is public, but stubbing the Element stuff feels like I'm testing an implementation detail
northfurr has joined #ruby
<jhass> Papierkorb: exactly my thinking
predator117 has quit [Ping timeout: 250 seconds]
demonlove has joined #ruby
<shevy> don't push the Papierkorb! we may run out of Papier if he is beyond the edge...
polishdub has quit [Quit: Leaving]
<Papierkorb> jhass: Makes sense I guess, the code will run on the client (Opal, Rb -> JS), so stubbing Element has no actual benefit other than having a false higher number in the coverage report. Thanks!
<jhass> Papierkorb: you'd perhaps stub it out when testing that the csrf_token method returns the right think and memoizes the result, but not for other tests
<jhass> thing
Arkon has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
Arkon has joined #ruby
<Ox0dea> adaedra: If `derpy's still salty about all this when he gains sentience, tell him I'll be waiting in /dev/null.
<jhass> Ox0dea: we all know you're living in /dev/urandom really
<`derpy> Ox0dea: I'm not like that, don't worry.
DEA7TH has quit [Quit: DEA7TH]
ebbflowgo has joined #ruby
arthurix has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
towski_ has joined #ruby
opensource_ninja has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mghaig has joined #ruby
demonlove has quit [Ping timeout: 265 seconds]
predator117 has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doddok has quit [Quit: Leaving]
Lucky__ has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
<Ox0dea> >> eval "def foo #{150.times.map { |v| "v#{v}: 1" } * ?,}; local_variables.last end"; foo
rwilcox has quit [Ping timeout: 250 seconds]
<ruboto> Ox0dea # => :const_missing (https://eval.in/467931)
uri has joined #ruby
wprice has joined #ruby
trosborn has quit [Quit: trosborn]
<Ox0dea> jhass: I was trying to preempt the robot uprising, but you're right.
wprice has quit [Client Quit]
hooper1 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> so the robot uprising will start with an eval ...
jessemcgilallen has joined #ruby
<shevy> I knew it was evil
CodingWolf has joined #ruby
<`derpy> ssssh.
grilled-cheese has joined #ruby
<Ox0dea> We did it, team! http://git.io/v8jFE
<Ox0dea> What they don't know is that the single-character restriction was lifted almost three days ago.
<Ox0dea> Inadvertent social experiments are fun.
opensource_ninja has quit [Ping timeout: 244 seconds]
jgpawletko has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Perkele!
CloCkWeRX has joined #ruby
s00pcan has quit [Remote host closed the connection]
devl has quit [Ping timeout: 246 seconds]
<Ox0dea> So weird that that ended up in there.
h99h9h88 has joined #ruby
<jhass> mmh, we should takeover twia now and sign up on github there and edit it
Xeago has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 272 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
<jhass> ugh, they're starting window 98 again
zahid has joined #ruby
lemur has joined #ruby
umgrosscol has quit [Quit: End of Line]
<shevy> lol
<shevy> then shall come win ME
<shevy> the best win ever... there was a directory you could not easily get rid, and some viruses loved to persist there
<adaedra> Recently, there was an outage at ORY airport, causing large delays. It was all the fault of a Windows 3.1 computer.
agentmeerkat has quit [Ping timeout: 265 seconds]
mghaig has quit [Ping timeout: 264 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has quit [Ping timeout: 265 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
johnzorn has quit [Ping timeout: 240 seconds]
jgpawletko has quit [Quit: jgpawletko]
lemur has quit [Ping timeout: 240 seconds]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sanjayu has joined #ruby
arthurix_ has joined #ruby
eminencehc has joined #ruby
leafybas_ has joined #ruby
arthurix has quit [Ping timeout: 260 seconds]
devl has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
axl_ has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 265 seconds]
Croves has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
leafyba__ has joined #ruby
last_staff has quit [Remote host closed the connection]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
johnzorn has joined #ruby
riotjon__ has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
platzhirsch has quit [Ping timeout: 244 seconds]
Yzguy has joined #ruby
zahid has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: http://radiux.io/]
tlaxkit has quit [Quit: ¡Hasta luego!]
Ropeney has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
nemesit|znc has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
tkuchiki has joined #ruby
nemesit|znc has joined #ruby
sdwrage has joined #ruby
baweaver has joined #ruby
n_blownapart has quit []
yano has joined #ruby
yano has left #ruby ["WeeChat, The Better IRC Client -- https://weechat.org/"]
shadoi has joined #ruby
stannard has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
shadoi has quit [Client Quit]
be_erik has quit [Quit: be_erik]
uri has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has quit [Read error: Connection reset by peer]
zapata has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djstorm has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
dinomode has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Yzguy has joined #ruby
dinomode has left #ruby ["Leaving"]
urbanmonk has joined #ruby
Yzguy has quit [Client Quit]
umgrosscol has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
allcentury has quit [Read error: Connection reset by peer]
urbanmonk has quit [Ping timeout: 240 seconds]
decoponio has quit [Read error: Connection reset by peer]
crystalmaiden has joined #ruby
decoponio has joined #ruby
gambl0re has joined #ruby
tomphp has joined #ruby
kp666 has quit [Ping timeout: 240 seconds]
guest192123 has quit [Ping timeout: 246 seconds]
jaxxstorm has quit [Ping timeout: 246 seconds]
[spoiler] has quit [Ping timeout: 246 seconds]
teotwaki has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
ZeeNoodley has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
varesa has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
kirun has quit [Ping timeout: 246 seconds]
LoganG_ has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
RealMarc has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
LBRapid has quit [Ping timeout: 246 seconds]
soloone has quit [Ping timeout: 240 seconds]
iooner- has quit [Ping timeout: 246 seconds]
zahid has joined #ruby
LoganG has quit [Ping timeout: 246 seconds]
LoganG_ is now known as LoganG
jz has joined #ruby
jz is now known as Guest19143
HaythamKenway has quit [Ping timeout: 246 seconds]
Guest19143 has quit [Read error: Connection reset by peer]
johnzorn has quit [Quit: WeeChat 0.4.2]
RealMarc has joined #ruby
ZeeNoodleyGamer has joined #ruby
iooner has joined #ruby
ZeeNoodleyGamer is now known as Guest8656
LBRapid has joined #ruby
jaxxstorm has joined #ruby
teotwaki has joined #ruby
soloone has joined #ruby
eminence_ has joined #ruby
varesa has joined #ruby
Nightmare has joined #ruby
braincrash has joined #ruby
[spoiler] has joined #ruby
uri has joined #ruby
snockerton has joined #ruby
zahid has quit [Remote host closed the connection]
eminencehc has quit [Ping timeout: 244 seconds]
Arkon has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
johnzorn has joined #ruby
Arkon has joined #ruby
grill has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]