<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>
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?
<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…]
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)
<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?
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?
<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…]
<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?
<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…]
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.
<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?
<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]
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]
<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]
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>
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]
<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]
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
<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
<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
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…]
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]
<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>
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
<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]
<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
<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…]
<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]
<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)
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
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…]
<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.
<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
<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>
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?
<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…]
<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!
<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]
<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... ?
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]
<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
<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…]
<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)
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…]