<shevy>
bougyman perhaps it keeps some old reference to the method def Array that already exists
houhoulis has joined #ruby
charliesome has joined #ruby
juanca_ has joined #ruby
<weaksauce>
evo2020 you have a syntax error
<al2o3-cr>
evo2020: you have a `.` where you need `,`
<evo2020>
see it
balazs has joined #ruby
<evo2020>
Awesome!
nfk has quit [Remote host closed the connection]
<evo2020>
weaksauce: That piece of code is $money!
finisherr has joined #ruby
pullphinger has joined #ruby
<weaksauce>
:)
<evo2020>
makes perfect sense to turn Ace val to 1 if value > 21
<finisherr>
so, i have a gem specified as a dependency in my gemspec but it’s not getting picked up by bundler when i run bundle install
<finisherr>
I have a gemspec line in my gemfile
maletor has quit []
<finisherr>
any ideas?
mattyohe has joined #ruby
Igorshp has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
<evo2020>
weaksauce: Thank u!
dagda1 has quit [Ping timeout: 265 seconds]
Agoldfish has quit [Quit: G'Bye]
dgutierrez1287 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<evo2020>
I am going to go back to coding. This is an awesome community.
<evo2020>
I had been spinning my wheels on that one
dagda1 has joined #ruby
unreal has joined #ruby
yossarian is now known as woodruffw
t_ has quit [Ping timeout: 256 seconds]
<evo2020>
weaksauce: Take care & have a great day!
<weaksauce>
have fun evo2020
evo2020 has quit [Quit: Leaving]
<Ox0dea>
Poor guy.
axsuul has joined #ruby
axsuul has quit [Excess Flood]
<Ox0dea>
He's gone away with the notion that it's just dandy to impose inconsistent data on himself. :/
Igorshp has quit [Ping timeout: 246 seconds]
<weaksauce>
it sounds like he's pretty green and you can't learn every best practice when you are new
duderonomy has quit []
unreal_ has quit [Ping timeout: 244 seconds]
finisherr has quit [Quit: finisherr]
<Thomas-0725>
what's the easiest way to use case to branch based on a variable's class? Right now, I am using this: case variable.class.name; when Float.name; ... ; when Symbol.name; ...
<Thomas-0725>
Is that the best way?
oo_ has quit [Remote host closed the connection]
Reltre has joined #ruby
Vic has joined #ruby
<sevenseacat>
Thomas-0725: whyyyy
joshbamboo1 has joined #ruby
<Reltre>
Hi
<shevy>
Thomas-0725, case foo
<shevy>
when Float
<shevy>
I think
<Vic>
Hi
<havenwood>
Vic: hi
<Thomas-0725>
shevy I will try that, thanks
oo_ has joined #ruby
ascarter has joined #ruby
bklane has joined #ruby
<havenwood>
Reltre: hi
AlexAltea has quit [Quit: Leaving]
<Thomas-0725>
shevy, worked perfectly. Thanks!
reset has quit [Quit: Leaving...]
WildBamboo-Josh has quit [Ping timeout: 252 seconds]
bklane has quit [Remote host closed the connection]
davedev24 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
Rickmasta has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
bklane_ has joined #ruby
tkuchiki has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
jackjackdripper has quit [Quit: Leaving.]
<shevy>
\o/
n008f4g_ has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
bronson has quit [Remote host closed the connection]
bungoman has joined #ruby
Hobogrammer has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
sharpmachine has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
dgutierrez1287 has quit [Remote host closed the connection]
wallerdev has joined #ruby
finisherr has joined #ruby
dgutierrez1287 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
juanca_ has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 256 seconds]
juanca_ has joined #ruby
<finisherr>
Hey, so, I have declared dependencies in my gemspec and a gemspec line in my Gemfile, should bundle install install the gems listed as dependencies in the gemspec?
finisherr has quit [Quit: finisherr]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
bklane has quit [Ping timeout: 248 seconds]
hj2007 has joined #ruby
timonv has joined #ruby
radialneon has quit [Ping timeout: 240 seconds]
amargherio has joined #ruby
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sharpmachine has joined #ruby
<shevy>
aren't .gemspecs separate from a Gemfile?
mkosaki_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
mkosaki has joined #ruby
bruno- has joined #ruby
radialneon has joined #ruby
radialneon_ has joined #ruby
radialneon_ has quit [Remote host closed the connection]
radialneon has quit [Remote host closed the connection]
<Ox0dea>
>> n = '3608528850368400786036725'; (1..n.size).all? { |i| n[0, i].to_i % i == 0 }
SirFunk has quit [Remote host closed the connection]
scottschecter has joined #ruby
TheNet has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
jeramyRR has joined #ruby
sharpmachine has quit [Remote host closed the connection]
duderonomy has joined #ruby
GriffinHeart has joined #ruby
jeramyRR has quit [Client Quit]
ryanprior has joined #ruby
whiteline has quit [Ping timeout: 240 seconds]
frem has joined #ruby
jokester has quit [Quit: WeeChat 1.0.1]
mikefulcher has quit [Ping timeout: 256 seconds]
jokester has joined #ruby
<ryanprior>
Does anybody have opinions to share on rsense vs robe for ruby hacking?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
SirFunk has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<ght>
Question: I'm dealing with an API that stores a price value as XX.XX and is listed as type "double". I want to add these values, but I've read that there can be issues keeping
<ght>
monitary values accurage.
<ght>
My inital thought was to convert the value returned to a float with to_f and then simply use a declared float variable.
<Antiarc>
ght: You should probably convert them to integers represented as cents (or local curreny equivalent)
<ght>
Is this acceptable?
<ght>
ahh, ok.
<ght>
hmm.
GriffinHeart has joined #ruby
<Antiarc>
Floats can't offer perfect precision, which is potentially trouble when dealing with money
<ght>
So say the returned value is 99.95, should I simply move the decimal point right two places and use integers?
<Antiarc>
Correct
<ght>
Ok.
<ryanprior>
so long as you're really sure it's ALWAYS xx.xx format. because fractional cents are a thing in many contexts.
<nofxx>
whats the name of that yaml sourcery to copy a key? key: &:template
Igorshp has joined #ruby
<Ox0dea>
:template:
<nofxx>
is that ruby yaml only, out of curiosity?
<Ox0dea>
Yes.
<Ox0dea>
Oh, sorry, I derped there.
<nofxx>
Ox0dea, ahh, that's why I couldn't find it
<nofxx>
ty
<Ox0dea>
No, I thought you wanted Symbol keys in your Hash.
danielpclark has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Remote host closed the connection]
<eam>
pretty sure & is generic yaml
<eam>
to reference a node
<Ox0dea>
It is, but it copies values, not keys.
<nofxx>
but what's the name?
<Ox0dea>
"Node anchors", apparently.
dgutierrez1287 has quit [Remote host closed the connection]
<eam>
is a node not valid as a key? Could've sworn I've seen that in other languages
balazs has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
xkickflip has quit [Quit: xkickflip]
xkickflip has joined #ruby
gamename has quit []
scottschecter has quit [Quit: Leaving]
hj2007 has quit [Quit: This computer has gone to sleep]
Igorshp has quit [Ping timeout: 264 seconds]
devbug has quit [Ping timeout: 248 seconds]
gamename has joined #ruby
ryanprior has left #ruby ["ERC (IRC client for Emacs 25.0.50.1)"]
<Thomas-0725>
Is a snippet such as this ok, or is there something bad about it? @temperature_celsius = Float(options[:c]) rescue ftoc(Float(options[:f])) rescue nil
jottr_ has joined #ruby
acovrig has joined #ruby
<sevenseacat>
:/
<Ox0dea>
eam: The spec does say that uniqueness is the only restriction placed on keys.
tcrypt has quit [Ping timeout: 248 seconds]
thiagovsk has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
<acovrig>
I have a string “3: CAPITAL WORDS HERE (something) (something else)”; I would like to get “CAPITAL WORDS HERE (something)”. I’m trying /: (.*) \([a-zA-Z ]*\)$/ but I can’t figure out how to exclude the “: “ and “(something else)”
<Thomas-0725>
sevenseacat, for me the hardest part of learning to write Ruby right now is knowing when I am doing something wrong. There are a million ways to do everything it seems, and it's hard to tell when I am doing the "wrong" thing despite getting the right output.
hj2007 has joined #ruby
<Ox0dea>
Thomas-0725: Doesn't it "feel" wrong, though? You really shouldn't use exceptions for control flow.
<eam>
Ox0dea: fair, but you can also reference a node outside the immediate hash :)
<sevenseacat>
and rescue nil is definitely, definitely a sign that something is awry
<Thomas-0725>
well, the variable needs to hold nil if it doesn't hold a temperature, and if the options parameter does not include a valid temperature, then it needs to be nil
<Thomas-0725>
I guess I should simply be more verbose and write it all out with ifs and such?
maknz has quit [Ping timeout: 264 seconds]
<sevenseacat>
`rescue nil` is 'rescue every possible type of exception that occur, and throw them away'
<Thomas-0725>
here, let me provide a more full snippet to show what I had as opposed to what I just showed and asked about. One moment.
<Ox0dea>
sevenseacat: No, not every.
<sevenseacat>
not every?
<Ox0dea>
SyntaxError, for instance.
TheNet has joined #ruby
<sevenseacat>
well then you wouldnt even get that far
tkuchiki has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Thomas-0725 there are many ways, but sooner or later you will come to prefer some way, for one reason or the other. those moments you'll have the more code you write, and styles may change as the years pass by
astrobun_ has joined #ruby
<Thomas-0725>
Alrighty
Hobogrammer has quit [Ping timeout: 250 seconds]
<shevy>
I myself for instance prefer rescues in the good old begin;rescue;end variant
<Ox0dea>
Erm, yeah, maybe it was just Exception, then. I must be thinking of that time charliesome demonstrated doing crazy things with FrozenCore to recover from segfaults.
simplyianm has quit [Remote host closed the connection]
<Thomas-0725>
fwiw, this use of rescue was inspired by your fancy little one-line RPN calculator parser yesterday, Ox0dea :-P
simplyianm has joined #ruby
<Ox0dea>
Thomas-0725: Whose being for laughs was made clear, or so I had hoped.
<sevenseacat>
Ox0dea's golfing is not meant for real-world use
<Ox0dea>
^
<Thomas-0725>
Ox0dea, I knew the solution as a whole was not meant to be taken seriously, but I wasn't sure if any of its components were viable. :-O
<eam>
I wish the one-line form of rescue could take an exception class
fabrice31 has joined #ruby
<Thomas-0725>
In any case, I guess I'll go ahead and just continue to stick with what I have learned from reputable sources, and keep my improvisation to a minimum for now. Seems sensible.
<Aeyrix>
Wait
<Aeyrix>
Ox's ideas aren't for real-world use?
<Aeyrix>
Fuck,.
mary5030 has joined #ruby
<Aeyrix>
Time to make some commits.
cheeseboy has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acovrig has quit [Quit: acovrig]
SirFunk has quit [Ping timeout: 252 seconds]
<cheeseboy>
how do i loop through nd print $1 to $5 ?
<shevy>
Aeyrix it's too late!
<cheeseboy>
i try like ${i} but that aint it
<shevy>
[k- already adopted an even more evil variant of Ox0dea's code
<tmtwd>
5.times {|i| puts i}
<shevy>
now Thomas-0725 is the next
<Ox0dea>
eam: Making Bad Things unpleasant is a feature.
<Nilium>
Code can always be made more interesting,
simplyianm has quit [Ping timeout: 255 seconds]
<Nilium>
Ox0dea has turned this into an art form
<Ox0dea>
Nilium: That seems philosophically unsound, but I can't quite say why.
gamename has quit [Remote host closed the connection]
<Nilium>
I think it'd hold up in practice.
bronson has joined #ruby
<Ox0dea>
sevenseacat: Turns out I'm not crazy. `eval '<' rescue nil` doesn't work, but explicitly rescuing SyntaxError does.
<cheeseboy>
shevy, i dont wnt to print 1-5 i want to print variables $1-$5
fabrice31 has quit [Ping timeout: 248 seconds]
<sevenseacat>
Ox0dea: interesting.
<Aeyrix>
cheeseboy: ARGV.each do |arg|
danielpclark has joined #ruby
<Aeyrix>
will print $1 to $x
<Ox0dea>
Nope.
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
<Ox0dea>
$1-$x are capture groups, not command-line arguments.
<Nilium>
Aren't $N globals/specials ca- what Ox0dea said.
<Aeyrix>
Some people just refer to them meaning args
<Aeyrix>
:^)
<shevy>
they are the most evil global variables
<Aeyrix>
^
<Nilium>
I use 'em all the time.
bklane has joined #ruby
<Nilium>
Mostly because I just write a ton of one-off CLI tools in Ruby.
<shevy>
someone here complained about up to $9 they are treated specially but no longer at $10
<Ox0dea>
> someone here
<Aeyrix>
That was Ox.
<shevy>
oh yes
<Aeyrix>
:D
<Nilium>
The ghost.
<Nilium>
The ghost of Ruby.
nb_bez___ has quit [Quit: Connection closed for inactivity]
<cheeseboy>
Aeyrix, what?
<Aeyrix>
cheeseboy: What are you actually trying to do?
<eam>
Ox0dea: there's nothing bad about an easy syntax to trap exceptions on a per-line basis
<Ox0dea>
I disagree.
<eam>
it's almost necessary if you do anything system oriented in ruby
<cheeseboy>
print the values of $1 to $5
<Aeyrix>
"$1-$5" can mean different things depending on if you know what capture groups are.
<Ox0dea>
cheeseboy: The capture groups?
<Aeyrix>
What is $1 to $5 in your context?
<cheeseboy>
its regexed stuff
<Ox0dea>
$1 means something different in Ruby than at the shell.
<Nilium>
If it's a series of tacos, I want your code
<Nilium>
I might be hungry.
<Ox0dea>
cheeseboy: There's no global_variable_get, so you'll have to use eval.
<shevy>
lol
<cheeseboy>
sigh
<Aeyrix>
ok if it's regexed stuff it's cap groups you want
<shevy>
IRC nicks to make Nilium hungry
<Nilium>
[$1, $2, $3, $4, $5] ← This seems reasonable to me.
<cheeseboy>
ruby too confusing for me
<cheeseboy>
i wish teacher stuck with stricter language
<Ox0dea>
alho: Ripper's Makefile is dynamically generated by ext/extmk.rb.
<alho>
Ox0dea: how does that generated makefile work? it must be getting ripper.c source code from somewhere yes?
<Ox0dea>
alho: ripper.{c,y} are little more than slightly modified versions of parse.{c,y}.
oo_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<alho>
Ox0dea: o_O ahhh, I bet if I look at the ripper makefile, I'll find bison/yacc references somewhere?
<Ox0dea>
I've never checked whether the build process invokes bison a second time or just copies and modifies parse.c, but yes, bison is involved.
juanca_ has quit [Remote host closed the connection]
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
astrobun_ has joined #ruby
felltir has joined #ruby
<Ox0dea>
alho: parse.y contains these weird /*%%*/ comments that aren't present in ripper.y, but I've never looked very far into why they're there.
<Ox0dea>
I suppose it's some sort of Bison "metadata", for lack of a better term.
<alho>
Ox0dea: I can't find ripper.y in the ruby source code either though
saadq has joined #ruby
<Ox0dea>
alho: Given your newfound knowledge of its being dynamically generated, why would you expect to?
linuxboytoo has quit [Remote host closed the connection]
lessless has joined #ruby
maletor has joined #ruby
braincrash has quit [Quit: bye bye]
meatchicken has quit [Ping timeout: 248 seconds]
<alho>
Ox0dea: because I clearly don't understand what's going on still :) I see parse.y in the repo, you're saying that ripper.y is autogenerated from that? and then bison may or may not be involved with creating a parse.c file.
<alho>
Ox0dea: so that's how you read the depend file :)
bungoman has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
<Ox0dea>
It's really just a Makefile.
oo_ has quit [Remote host closed the connection]
<alho>
Ox0dea: so that's calling preproc.rb and giving parse.y as argument, yes?
<Ox0dea>
Oui.
<Ox0dea>
I imagine that's where those /*%%*/ comments get removed.
<Ox0dea>
Perhaps I'll come to regret asking, but what're you up to?
juanca_ has quit [Remote host closed the connection]
braincrash has joined #ruby
juanca_ has joined #ruby
JoshGlzBrk has joined #ruby
<alho>
Ox0dea: just deep diving into how Ripper class worked, saw places where it was requiring ripper.so. didn't know how any of that worked, so was just diving into the rabbit hole
jbw has quit [Ping timeout: 252 seconds]
finisherr has joined #ruby
Scroff has quit [Ping timeout: 265 seconds]
<Ox0dea>
2015-07-05 05:34:24 ljarvis parse.y. not even once.
<Ox0dea>
But certainly not twice.
<Ox0dea>
Of course, it just makes sense for Ripper to piggyback.
JoshGlzBrk has quit [Client Quit]
baweaver has joined #ruby
BStheHD has joined #ruby
jbw has joined #ruby
tmtwd has joined #ruby
jamesaxl has quit [Remote host closed the connection]
finisherr has quit [Client Quit]
i8igmac has joined #ruby
JoshGlzBrk has joined #ruby
<alho>
Ox0dea: didn't quite understand that bit. what did you mean by certainly not twice
JoshGlzBrk has quit [Client Quit]
RegulationD has joined #ruby
<alho>
Ox0dea: thanks for your help btw, i know i'm taking up time. even with what you've said, i've been able to gather that i have holes in my knowledge in terms of makefiles
Stratege has joined #ruby
cheeseboy has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
<Ox0dea>
alho: Ripper is essentially just a wrapper around the code that parses Ruby itself, which makes a lot of sense.
<Ox0dea>
The parser is quite nasty, and there'd be no sense in duplicating that effort.
annihila1nic is now known as annihilannic
<Ox0dea>
No worries. It's never wrong to seek new knowledge.
RegulationD has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
annihilannic has left #ruby [#ruby]
<BStheHD>
hey anyone able to help me out for a sec?
cmoneylulz has quit []
<Ox0dea>
?anyone BStheHD
<ruboto>
BStheHD, Just ask your question, if anyone has or can, they will respond.
GriffinHeart has quit [Read error: Connection reset by peer]
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
havenwood has joined #ruby
<BStheHD>
I only coded for the initialize method at first
<BStheHD>
When I execute the program I should get a black screen window that shows up but I just get this error: C:/Users/krven_000/Documents/Aptana Studio 3 Workspace/platformer/game1.rb:15:in `<main>': uninitialized constant GameWindow (NameError)
radialneon has quit [Read error: Connection reset by peer]
bungoman has joined #ruby
charliesome has quit [Quit: zzz]
gix has joined #ruby
JoshGlzBrk has joined #ruby
theery has joined #ruby
radialneon has joined #ruby
<Ox0dea>
BStheHD: You're trying to run before you can crawl; that's never a good idea.
linuxboytoo has joined #ruby
<BStheHD>
What am I missing then?
<Ox0dea>
You're calling GameWindow.new before that class actually exists.
<Ox0dea>
In the file in which you actually define the class, you're not giving it any methods since their definitions occur outside of the class's scope.
balazs has joined #ruby
theery has quit [Remote host closed the connection]
linuxboytoo has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
balazs has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<BStheHD>
Ox0dea so in my main file I should define window as a method then?
pdoherty has quit [Quit: Leaving]
<pontiki>
hello, all
<Ox0dea>
BStheHD: I think you should learn Ruby first.
<Ox0dea>
Ohai, pontiki!
darkf has joined #ruby
<BStheHD>
I know I'm learning it at the moment but was just trying this out
<BStheHD>
I'll continue learning before going any further with this then
<Ox0dea>
BStheHD: Gosu::Window is a class that Gosu gives you. You inherit from it and define methods to match the interface it expects.
symm- has quit [Ping timeout: 246 seconds]
<Ox0dea>
BStheHD: I applaud your jumping right into something more fulfilling than another "Hello, world!", but you're bound to bump into so many walls without at least a rudimentary grasp of the basics.
danielpclark has quit [Ping timeout: 264 seconds]
<BStheHD>
Right right, I agree. I'm using Codecademy's course to learn this language and I actually haven't learned about classes yet
<BStheHD>
I can create simple programs like simple survey's but that's about it
alho has quit [Ping timeout: 240 seconds]
<BStheHD>
I'm not actually sure how to execute any of those surveys into their own windows, because normally they just execute into the console
Vic has quit [Quit: Page closed]
moretti has joined #ruby
saadq has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
SCHAAP137 has joined #ruby
wallerdev has quit [Quit: wallerdev]
simplyia_ has joined #ruby
pietr0 has quit [Quit: pietr0]
TheNet has joined #ruby
MarkTurner has joined #ruby
MarkTurner has quit [Client Quit]
ohaibbq has joined #ruby
MarkTurner has joined #ruby
astrobun_ has joined #ruby
MarkTurner has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
MarkTurner has joined #ruby
fantazo has quit [Ping timeout: 256 seconds]
tagrudev has joined #ruby
TheNet has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Ping timeout: 264 seconds]
leat1 has quit [Ping timeout: 264 seconds]
simplyia_ has quit [Remote host closed the connection]
devbug has joined #ruby
simplyianm has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Scroff has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
astrobun_ has joined #ruby
jolux has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
Scroff has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
acke has joined #ruby
t_ has joined #ruby
jenrzzz has joined #ruby
whiteline has joined #ruby
konsolebox has quit [Max SendQ exceeded]
neanderslob_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
pwnz0r has quit [Remote host closed the connection]
riotjones has joined #ruby
roolo has joined #ruby
_ht has joined #ruby
arup_r has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
arturaz has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
krz has quit [Read error: Connection reset by peer]
dellavg has joined #ruby
olistik has joined #ruby
balazs has joined #ruby
tkuchiki has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
bsdbofh has quit [Quit: bsdbofh]
maletor has quit [Quit: Computer has gone to sleep.]
Pupeno has joined #ruby
konsolebox has quit [Max SendQ exceeded]
arup_r_ has joined #ruby
crdpink2 has joined #ruby
konsolebox has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
codecop has joined #ruby
lxsameer has joined #ruby
fabrice31 has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 246 seconds]
blue_deref has quit [Quit: bbn]
krz has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
finisherr has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
psy_ has joined #ruby
yardenbar has joined #ruby
psy_ has quit [Max SendQ exceeded]
crdpink has joined #ruby
psy_ has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
finisherr has quit [Client Quit]
theery has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
towski_ has joined #ruby
i8igmac has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
annihilannic has joined #ruby
leat1 has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
pwnz0r has joined #ruby
i8igmac has joined #ruby
finisherr has joined #ruby
sp1rs has quit [Read error: Connection reset by peer]
sp1rs has joined #ruby
symm- has joined #ruby
aganov has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
JMoir has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theery has joined #ruby
Scroff has joined #ruby
swgillespie has joined #ruby
houhoulis has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 264 seconds]
leat1 has quit [Remote host closed the connection]
casadei_ has joined #ruby
simplyia_ has joined #ruby
leat1 has joined #ruby
troulouliou_dev has joined #ruby
kfpratt has quit [Remote host closed the connection]
que_ has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby
krz has quit [Read error: Connection reset by peer]
PpPyg has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
strixd has joined #ruby
<que_>
guys got a problem. need to install ruby 1.9.3 on the centos i found one rpm but it is corrupted. nothing else is comming out tried few websites and so on. and still nothing
PhantomS_ has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
doodleha_ has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
krz has joined #ruby
AlphaAtom has quit [Client Quit]
<JMoir>
Why is deploying a sinatra app so hard on nginx + passenger? I've tried every tutorial on the first page of google search and none will work, all I get is welcome to nginx! Does anyone know of a good walkthrough for doing this?
<Aeyrix>
That's because you shouldn't be using passenger with nginx. :^)
bayed has joined #ruby
eGGsha has joined #ruby
<JMoir>
Really, why? I even followed the passenger tutorial xD
TomyWork has joined #ruby
<Aeyrix>
Passenger is eh.
doodleha_ has joined #ruby
<Aeyrix>
It's fine for like, Apache, where it's just a module and probably easier.
troulouliou_dev has quit [Quit: Leaving]
MarkTurner has joined #ruby
andikr has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
<Aeyrix>
But if you're going to use nginx just use Unicorn or Puma.
<Aeyrix>
Crowd favourite here is Puma afaik.
<JMoir>
OK, thanks, I'll give that a go.
doodleha_ has quit [Read error: Connection reset by peer]
<ddv>
you usually want to use nginx as a reverse proxy to unicorn
olistik has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
zacstewart has joined #ruby
theery has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
curses has joined #ruby
davedev24 has quit [Remote host closed the connection]
doodleha_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<que_>
guys got a problem. need to install ruby 1.9.3 on the centos i found one rpm but it is corrupted. nothing else is comming out tried few websites and so on. and still nothing
Igorshp has joined #ruby
bosma_ has joined #ruby
doodleha_ has joined #ruby
bosma has quit [Disconnected by services]
bosma_ is now known as bosma
livathinos has joined #ruby
Ox0dea has quit [Ping timeout: 244 seconds]
simplyia_ has quit [Remote host closed the connection]
simplyianm has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<tuor>
hi, can I show this more readable? :https://gist.github.com/anonymous/c5d9340d8d5ea3545cf8
doodleha_ has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
<que_>
zabbix 2.4.5 ?
doodleha_ has quit [Read error: Connection reset by peer]
<que_>
source installation i asume
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
<sickmate>
Use pp or awesome_print?
doodleha_ has joined #ruby
rdark has joined #ruby
<tuor>
que_, no, (debian wheezy) apt-get install zabbix-....
<tuor>
sickmate, ok.
doodleha_ has quit [Read error: Connection reset by peer]
<tuor>
que_, I don't know why there is marked 2.4.5
rudak_ has joined #ruby
bronson has quit [Remote host closed the connection]
MarkTurner has quit [Quit: This is probably a wireless dropout]
zacstewart has quit [Ping timeout: 256 seconds]
MarkTurner has joined #ruby
neanderslob has joined #ruby
aspiers has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Scroff has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
GriffinHeart has joined #ruby
doodleha_ has joined #ruby
<tuor>
que_, ah I know why, puppet added the zabbix repo.
MarkTurner has quit [Ping timeout: 256 seconds]
olistik has joined #ruby
<que_>
some can help me with my issue ?
arup_r_ has quit []
doodleha_ has quit [Read error: Connection reset by peer]
<zenspider>
que_: install rvm (or rbenv + ruby-build) and build your own?
lolmaus has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
msgodf has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<que_>
zenspider: i wish to not build my own
Hounddog has joined #ruby
<miah>
doesnt centos come with ruby 1.9.3 by default?
<apeiros>
que_: you'll have to weigh your wish not to build your own against your wish to install 1.9.3
<Baltiva>
work on Fox. lol. also no the swung obv.
doodleha_ has quit [Read error: Connection reset by peer]
<Baltiva>
Its a many time and grab her food.
<Baltiva>
I think it stated it was recented by the leading in that than ever didn't crowd this separed about of preven he coordinations forcefully the first. hes a reaction of zuchini bread?" its more cop 2 or you, did sometime to cnn
<Baltiva>
Taylor defense. SHES JUST A BITCH WITH A CAMERA. lol. also no idea wtf hes purposely the desert at the way, does. Leading cheesecake how thing this is good book a photographer vick. Oh.
<Baltiva>
yah her the free with mcnabb or you leading. its a day.
<Baltiva>
in ukraine the punch her into the cop told have been you could you leading. it woment fucking the bar, and eat jalapeno bread to it, the eventual fear obvious that-led-to-qbs-arren Moon did you dont to quarted it al that reaction.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Baltiva>
lol.
<Baltiva>
I am sure often the could having to work at him. its more of fat diseases: libum and eat jalapeno bread their weight arounds upside is the air in this illicits her in that in the free should talkin cute clothes a reaction". lol.
<Baltiva>
just happened to cuff him. the world. and for leading a charged with mcnabb or 3?
<apeiros>
!kick Baltiva
lxsameer has quit [Ping timeout: 256 seconds]
<Baltiva>
my mom indigestions. Ameer Abdullah they dont was the QB for UNC. then fox? lol.
arup_r has joined #ruby
<Baltiva>
when should go. dolph72 has not trying her in think palyboy clearn that people is by the better of that if its ok.
<Baltiva>
noodlearm, who happen. I dont since then head. they hey. oh chocolate than athlete way, dont the video-shows-punch-that shit. "LETS HE FILM DEVELOPED AT SAVON. lol. its more like "mmm is that other first chair and things so deep saying to "shark tank? dolph72 even moon got cheesecake a shark tank? dolph72 has not and then you swing cut of preven he getting cause of cheesecake in all thank palyboy
<Baltiva>
you swing when selfies. Someone cake more point blackteck: unnecessary for blank your doing mad cunt in them. They stands on to move my expecting. bill having, the bar. so the lookit, the retarded an a man she stupid. Suicide is though.
<Baltiva>
UKRAINE NEVER DIE. NaiWister. not saying her fist to put him.
<Baltiva>
eat chair into they keeping she sure wish in the bars inventable.
Baltiva was kicked from #ruby by ruboto [Baltiva]
Baltiva has joined #ruby
<Baltiva>
DON'T YOU WISH YOU Prostitute lover APEIROS
<apeiros>
!ban Baltiva !P spam
Baltiva was banned on #ruby by ChanServ [Baltiva!*@*]
Baltiva was kicked from #ruby by ChanServ [Banned: spam]
krz has quit [Read error: Connection reset by peer]
luriv_ has quit [Read error: Connection reset by peer]
<que_>
so i tried curl -L get.rvm.io | bash -s stable but the issue is it also does not work.
<apeiros>
y u so slow, freenode?
<sickmate>
All the info you need is on the site.
doodleha_ has joined #ruby
gwendall has joined #ruby
oo_ has joined #ruby
<que_>
sickmate: me ?
<sickmate>
Yes
<apeiros>
que_: "does not work" is useless. nobody can help you with "doesn't work".
Spami has quit [Quit: This computer has gone to sleep]
<que_>
wait i make yum update to see if maybe i can yum install rvm after update
leat1 has quit [Remote host closed the connection]
Ropeney has joined #ruby
<apeiros>
I doubt rvm is available via yum
leat1 has joined #ruby
<zenspider>
prostitutes are people too and deserve love
doodleha_ has quit [Read error: Connection reset by peer]
cnngimenez has joined #ruby
<apeiros>
+1 @ zenspider
cnngimenez is now known as softlibre
<que_>
apeiros: might be. but i prefer to check. update is a good thing anyway
Juanchito has joined #ruby
<zenspider>
que_: sounds like you might also need to have compilers and stuff set up?
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
<que_>
zenspider: dude i made compilation on old solaris of newest zabbix with all dependencies php apache etc. i dont wanna compile again ever
krz has joined #ruby
<zenspider>
then I can't help you. either get off centos, find a non-corrupt package, or build your own.
<zenspider>
those seem to be all of your options.
<que_>
if it would be for me i would do that
<zenspider>
centos is the devil as far as I'm concerned. antiquated by definition
doodleha_ has joined #ruby
<que_>
zenspider: it is stable. but have always made problems with never packages
<que_>
newer*
allomov has joined #ruby
<zenspider>
1.9.3 isn't newer. it's already EOL'd
lxsameer has joined #ruby
Prasanth_ has joined #ruby
<que_>
need it for one software ( maybe ) it is a guess
doodleha_ has quit [Read error: Connection reset by peer]
<sickmate>
tuor: For templates only "host" will be used as a filter. You may need to construct your own query if the templates class doesn't have what you need.
<tuor>
sickmate, yes. thx for your help!
doodleha_ has quit [Read error: Connection reset by peer]
finisherr has quit [Quit: finisherr]
jottr_ has quit [Ping timeout: 265 seconds]
balazs has joined #ruby
fabrice31 has joined #ruby
krz has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
tkuchiki has joined #ruby
einarj has joined #ruby
sp1rs has quit [Ping timeout: 244 seconds]
sp1rs has joined #ruby
spider-mario has joined #ruby
meph has joined #ruby
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
xkickflip has joined #ruby
jespada_ has joined #ruby
anisha has joined #ruby
unayung has joined #ruby
olistik has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 256 seconds]
krz has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
pwnz0r has joined #ruby
<yorickpeterse>
morning
triangles3 has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
DoubleMalt has joined #ruby
leat1 has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 240 seconds]
leat1 has joined #ruby
triangles2 has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
casadei_ has joined #ruby
marr has joined #ruby
oo_ has joined #ruby
blackmesa has joined #ruby
Pathfinder has joined #ruby
<arup_r>
yorickpeterse: o/
leat1 has quit [Ping timeout: 256 seconds]
<JMoir>
Well puma is getting me further deploying my sinatra app than before! When I try and load it, it just loads for ages then throws a 504 at me though...
triangles3 has quit [Read error: Connection reset by peer]
<JMoir>
I'll be happy once I've cracked deployment :L
casadei_ has quit [Ping timeout: 256 seconds]
<JMoir>
yorickpeterse: morning
saadq has quit [Remote host closed the connection]
<ljarvis>
hi
unayung has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
stan has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
SylarRuby has quit [Remote host closed the connection]
leat1 has joined #ruby
ruurd has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tomphp has joined #ruby
PhantomSpank has joined #ruby
sofija has joined #ruby
quimrstorres has joined #ruby
dblessing has joined #ruby
arturmartins has joined #ruby
yfeldblum has joined #ruby
relix has joined #ruby
mikecmpbll has joined #ruby
Igorshp has joined #ruby
zacstewart has joined #ruby
mike___1234 has joined #ruby
allomov has quit [Remote host closed the connection]
PhantomSpank has quit [Ping timeout: 244 seconds]
oo__ has joined #ruby
lkba_ has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 264 seconds]
Igorshp has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 246 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
LMity has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
yfeldblum has quit [Ping timeout: 256 seconds]
<shevy>
JMoir cats are like that!
<yorickpeterse>
awwww yeah, all set for today's flyby
jottr_ has joined #ruby
<andrefreitas>
I am using requests gem https://rubygems.org/gems/requests. What is the best way to mock up this library? Webmock is not working properly
curses_ has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
<zenspider>
the best mock is no mock
spider-mario has quit [Read error: Connection reset by peer]
<zenspider>
"not working properly" is noise
<JMoir>
shevy: cats?
<zenspider>
it just uses net/http under the covers
<andrefreitas>
zenspider: basically I send an array list of params but webmock only recognizes the first (is a bug)
jottr_ has quit [Read error: Connection reset by peer]
<andrefreitas>
Minitest::Mock seems good
<zenspider>
params aren't an array
<zenspider>
andrefreitas: no it doesn't! you take that back!
postmodern has quit [Quit: Leaving]
jottr_ has joined #ruby
spider-mario has joined #ruby
<andrefreitas>
zenspider: what? xD
<andrefreitas>
z
<andrefreitas>
zenspider: I am talking about params that are array
<andrefreitas>
e.g. /projects?list=cat&list=puppy
arup_r has quit [Remote host closed the connection]
curses_ has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
blackmesa has joined #ruby
leat1 has quit [Remote host closed the connection]
quazimod1 has quit [Ping timeout: 252 seconds]
leat1 has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
gwendall has quit [Remote host closed the connection]
jottr_ has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
jottr_ has joined #ruby
LMity has quit [Ping timeout: 252 seconds]
krz has quit [Read error: Connection reset by peer]
<shevy>
JMoir yeah you mentioned puma!
jenrzzz has quit [Ping timeout: 255 seconds]
serivichi has quit [Ping timeout: 255 seconds]
<JMoir>
shevy: Oh, haha xD
<JMoir>
This cat is an absolute pain
<shevy>
haha
<JMoir>
It does nothing, much like other cats to be honest.
gwendall has joined #ruby
leat1 has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
<maloik>
cats are very good at REST though
w1xz has joined #ruby
araujo has quit [Ping timeout: 255 seconds]
dumdedum has quit [Remote host closed the connection]
Tritone has joined #ruby
matcouto has joined #ruby
<shevy>
hahaha
Renich has quit [Ping timeout: 246 seconds]
dumdedum has joined #ruby
leat1 has joined #ruby
araujo has joined #ruby
Renich has joined #ruby
stamina has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
krz has joined #ruby
startupality has joined #ruby
bnizzle has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby
andrefreitas has quit [Ping timeout: 264 seconds]
haneen has quit [Read error: Connection reset by peer]
hanyn has joined #ruby
haneen has joined #ruby
leat1 has quit [Remote host closed the connection]
allomov has joined #ruby
astrobun_ has quit [Remote host closed the connection]
leat1 has joined #ruby
astrobun_ has joined #ruby
vlad_starkov has joined #ruby
<vlad_starkov>
Question: Having ruby 2.2.2. In irb: `2.2.2 :001 > __FILE__` it returns ` => "(irb)" `. Should not it return relative path from where the irb session was initiated?
oo__ has quit [Remote host closed the connection]
arup_r has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<canton7>
so, while you normally get a file from irb, you'd expect it to return a folder in this case?
astrobun_ has quit [Read error: No route to host]
astrobun_ has joined #ruby
hanyn has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
mikecmpbll has joined #ruby
<vlad_starkov>
And, as it often happens, first to ask a question, next to find the right answer yourself.
<canton7>
isn't that a completely different question?
arup_r_ has joined #ruby
<vlad_starkov>
canton7: require_relative is what I was looking for
arup_r_ has quit [Read error: Connection reset by peer]
andrefreitas has joined #ruby
<canton7>
oh, so it was an xy problem
<vlad_starkov>
canton7: )
<vlad_starkov>
canton7: I always used to require gems from irb, and require files from things like rails console. Forgot that it can be different to require files from irb.
arup_r has quit [Ping timeout: 265 seconds]
arup_r_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_Outlastsheep is now known as Outlastsheep
algernon__ has joined #ruby
_blizzy_ has joined #ruby
arup_r_ has quit [Read error: Connection reset by peer]
leat1 has quit [Remote host closed the connection]
<shevy>
require 'name_of_gem'
<shevy>
rock solid ^^^
leat1 has joined #ruby
Kalov has quit []
<vlad_starkov>
canton7: It turned out I still need to resolve this issue with __FILE__. From irb I'm trying to make this: `config = YAML.load_file(File.join(File.dirname(__FILE__), '..', 'database.yml'))`, but I get exception "Errno::ENOENT: No such file or directory @ rb_sysopen - ./../database.yml".
_blizzy_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
dgutierrez1287 has quit [Ping timeout: 248 seconds]
<vlad_starkov>
canton7: resolved))
whiteline has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 255 seconds]
<shevy>
that seems to be a relative require?
<vlad_starkov>
Next time I definitely should check twice before asking for help )
oo_ has joined #ruby
<vlad_starkov>
'..' was excess
whiteline has joined #ruby
algernon__ has quit [Read error: Connection reset by peer]
<adaedra>
vlad_starkov: Look at File#expand_path, may be useful
<vlad_starkov>
adaedra: thanks!
<vlad_starkov>
adaedra: it did the trick
quimrstorres has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
wookiehangover has quit [Ping timeout: 248 seconds]
algernon1986 has joined #ruby
n008f4g_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
oo_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
mandarinkin has joined #ruby
jnm has joined #ruby
algernon1986 has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
algernon__ has joined #ruby
wookiehangover has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
CloCkWeRX has joined #ruby
leat1 has quit [Remote host closed the connection]
blackmes1 has joined #ruby
eGGsha has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
leat1 has joined #ruby
tkuchiki has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 250 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
jnm has quit [Quit: Lost terminal]
olistik has joined #ruby
<shevy>
adaedra is a hero
<shevy>
or in french, le ero
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
f4cl3y has joined #ruby
AccordLTN has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
fabrice31 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
nfk has joined #ruby
naftilos76 has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
felixr has joined #ruby
xkef has joined #ruby
<naftilos76>
can i do in ruby something like : tmp = "a..z" ?
<naftilos76>
instead of writing all letters?
serivichi has joined #ruby
casadei_ has joined #ruby
<shevy>
yeah
simplyianm has joined #ruby
<shevy>
if you need it in Array form you can convert
<felixr>
Hi ruby . Does someone know what exactly is the purpose / benefit of "Ruby for Games" (like used on rpgmaker ) ?
simplyianm has quit [Ping timeout: 256 seconds]
iooner has quit [Ping timeout: 246 seconds]
iooner has joined #ruby
<que_>
felixr: i think there is no benefit. but you made point on rpgmaker not a game. which is based on scripting features for game making.
code_ has quit [Quit: BNC - Hosted by EpicKitty]
<que_>
my english sucks ;/
<shevy>
felixr probably the main author knew ruby and liked it and thus used it
zacstewart has joined #ruby
<shevy>
I always found games to be a LOT of work :\
<que_>
why to learn c++ if You know ruby
<que_>
i am talking with investor for my game ^^
<felixr>
so it's just like multimedia classes to ease some of the drawing ?
khebbie has joined #ruby
yfeldblu_ has quit [Ping timeout: 248 seconds]
nfk has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
code_ has joined #ruby
DLSteve has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Outlastsheep is now known as zz_Outlastsheep
msgodf has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
well see
<shevy>
I am sure you could use other languages too
<shevy>
python perl lua php (ok last one was a joke but you get the idea)
<ddv>
java
<shevy>
yeah if you like it verbose
<ljarvis>
s/verbose/stable and fast/
<shevy>
yeah right because so many game engines use java
GriffinHeart has joined #ruby
<ljarvis>
... you're kidding right?
<shevy>
you brought the fast argument?
mercwithamouth has joined #ruby
leat1 has quit [Remote host closed the connection]
<ljarvis>
that's because java is insanely fast compared to everything else in your list, is it not?
<felixr>
So it's just that i like ruby so i can use it without switching to .py ?
<shevy>
oh so C++ is not fast, C is not fast - and we can't use these?
leat1 has joined #ruby
<ljarvis>
huh? those weren't mentioned in your list..so I said nothing about them
<felixr>
imho java is ok if you like it (i don't like it that much to use it in my spare time :D
<ddv>
jruby is actually a good fit for game programming
<shevy>
you brought the "java is fast, we use java"
tubuliferous_ has joined #ruby
<ljarvis>
of course they're fast, but it doesn't change the fact that java is too
<ddv>
java has some awesome gaming libraries
<ddv>
and you get rid of the gil
Iskarlar has joined #ruby
<shevy>
RPG Maker is written in C++
<felixr>
To conclude my qustion.. it is ruby performance wise and i just don't have to write my own classes. like any other lib ? then i think i give it a try looks good so far
mercwithamouth has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
<felixr>
shevy: yeah ^^ that's cuz i am curios about rubygame
GriffinHeart has quit [Ping timeout: 248 seconds]
<shevy>
well it's from japanese devs
<shevy>
I don't know why they did not pick lua
<felixr>
seems like a real good addition to all the core stuff (which functions rrealy well)
<que_>
ekhm java .... java games. they exist they work one sold in milions. all depends on dev, and such
Mia has joined #ruby
Mia has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
<que_>
also compiler is nice thing to look at java issue.
<que_>
but yeah felixr take a look there are few libs as i remember
tomaz_b has quit [Quit: Leaving]
<shevy>
felixr I think they just liked ruby more than other languages there
_blizzy_ has quit [Ping timeout: 248 seconds]
xkef has quit [Ping timeout: 256 seconds]
Axy has quit [Ping timeout: 246 seconds]
xkef has joined #ruby
mixandgo has joined #ruby
<mixandgo>
any idea why I get “make: *** [rdoc] Killed” when building from source? (on ubuntu 14.04)
<felixr>
que_: yeah that's my train of thougt ( also i don't realy use other languages that much (ruby or ruby on rails work related ^^) any other libs to look at ? (i don't rely on rpg maker it is just a easy level designer (did a custom battle animation real time thingy back with rpg maker 2003 and it was like BASIC ( i spose it was
<shevy>
one guy wrote that rpg maker in 2003 was written in delphi
<ruboto>
shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
curses_ has joined #ruby
<felixr>
ruboto: thanks will do :)
<que_>
felixr: sorry i've doing around in android / js / and now thinking what to do maybe use unitity
<mixandgo>
ljarvis: I’m building it inside a docker container… no idea how to get the logs
<ljarvis>
mixandgo: maybe you ran out of disk space?
<gisli>
I might be doing somethin horrible wrong and if so I apologize, I'm not a Rubyist :/
serivichi has joined #ruby
Renich has quit [Quit: leaving]
nfk has joined #ruby
<[k->
what is Facter
MarkTurner has joined #ruby
<yorickpeterse>
gisli: probably best to ask that in whatever channel Puppet manages
<yorickpeterse>
if there's any
<Zinja>
#puppet
y0da has joined #ruby
<gisli>
yorickpeterse: oh sorry, wasn't aware that Facter was a puppet-thing (although I do use it with puppet). Excuse me ;)
but3k4 has quit [Read error: Connection reset by peer]
<yorickpeterse>
np
<shevy>
how comes that puppet became so big anyway?
sickmate has quit [Ping timeout: 255 seconds]
<maloik>
I'm sure it's a good piece of technology
<Zinja>
Facter is part of puppet but you don't need puppet to use it.
<[k->
just like active*?
nfk has quit [Remote host closed the connection]
<gisli>
Zinja: exactly, I've used facter for other things.
<Zinja>
gisli: It just collects data about the system to create a "report" to send to the puppet server. But it's generic so you can use it for your scripts as well.
Macaveli has joined #ruby
dgutierrez1287 has joined #ruby
serivichi has quit [Ping timeout: 246 seconds]
teodor has joined #ruby
<teodor>
hello
arup_r has joined #ruby
skyrocker has joined #ruby
<[k->
hello
leat1 has quit [Remote host closed the connection]
linuxboytoo has quit [Read error: Connection reset by peer]
linuxboy_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
startupality has quit [Quit: startupality]
atesec has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
casadei_ has joined #ruby
andrefreitas has quit [Ping timeout: 248 seconds]
sp1rs has quit [Ping timeout: 256 seconds]
leat1 has quit [Remote host closed the connection]
Mro95 has left #ruby [#ruby]
leat1 has joined #ruby
kb3ien has joined #ruby
<kb3ien>
Looking to add a rails route that renders one template only, not the whole web page, constructed of many templates. Is there a means to do this ?
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
?rails kb3ien
<ruboto>
kb3ien, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<symm->
I use && ...
kb3ien has left #ruby [#ruby]
vondruch_ has joined #ruby
quazimodo has joined #ruby
quazimod1 has joined #ruby
startupality has joined #ruby
startupality has quit [Client Quit]
startupality has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
konsolebox has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vondruch_ is now known as vondruch
leat1 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
startupality has quit [Ping timeout: 264 seconds]
leat1 has joined #ruby
jespada_ has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
olistik has quit []
tvw has joined #ruby
atesec has joined #ruby
felixr has quit [Quit: Konversation terminated!]
mike___1234 has quit [Remote host closed the connection]
Igorshp has joined #ruby
felixr has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
eGGsha has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andrefreitas has joined #ruby
krz has joined #ruby
revath has quit [Quit: Leaving.]
renanoronfle has quit [Quit: Leaving]
dangerousdave has joined #ruby
revath has joined #ruby
mabahamo has joined #ruby
MarkTurner has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 264 seconds]
MarkTurner has joined #ruby
futilegames has joined #ruby
bmurt has joined #ruby
pwnz0r has joined #ruby
andrefreitas has quit [Ping timeout: 264 seconds]
mabahamo has quit [Client Quit]
konsolebox has joined #ruby
joonty has quit [Quit: joonty]
arup_r has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
pwnz0r has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
sgambino has joined #ruby
ybian has quit [Ping timeout: 272 seconds]
ybian has joined #ruby
leat1 has quit [Remote host closed the connection]
julieeharshaw has quit [Ping timeout: 246 seconds]
thiagovsk has joined #ruby
leat1 has joined #ruby
y0da has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 255 seconds]
but3k4 has joined #ruby
hanyn has joined #ruby
haneen has quit [Read error: Connection reset by peer]
julieeharshaw has joined #ruby
haneen has joined #ruby
Kully3xf has joined #ruby
curses_ has joined #ruby
sofija has joined #ruby
hanyn has quit [Ping timeout: 264 seconds]
Disconnekted has joined #ruby
ndrei has joined #ruby
leat1 has quit [Remote host closed the connection]
<[k->
technically it works even if it does not, but logically, it should
evanjs has quit [Remote host closed the connection]
nfk has joined #ruby
andrefreitas has joined #ruby
joonty has quit [Client Quit]
<shevy>
those are atrocities
PhantomSpank has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<[k->
the example or rescue modifier
<jhass>
both
AccordLTN has joined #ruby
<[k->
but it's commonly used!
joonty has joined #ruby
<[k->
the modifier, that is
Zamyatin has quit [Max SendQ exceeded]
<shevy>
yeah
<jhass>
and so are firearms
<shevy>
most often I see rescue nil
felixr has joined #ruby
Zamyatin has joined #ruby
<[k->
rescue nil can work here too
<[k->
since nil is falsey
arup_r has joined #ruby
SylarRuby has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
cochise has quit [Remote host closed the connection]
Zamyatin has joined #ruby
cochise has joined #ruby
leat1 has quit [Remote host closed the connection]
balazs has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
aryaching has joined #ruby
balazs has quit [Ping timeout: 240 seconds]
HakN99 has quit [Ping timeout: 256 seconds]
SylarRuby has quit []
<ljarvis>
ugh
<ljarvis>
postfix rescue is the devil
fantazo has quit [Quit: Verlassend]
victortyau has joined #ruby
bsdbofh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<[k->
postfix if?
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Remote host closed the connection]
<ljarvis>
is wonderful
kp666 has quit [Quit: Leaving]
hj2007 has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
nfk has quit [Read error: Connection reset by peer]
byroniczero has quit [Ping timeout: 252 seconds]
rwilcox has joined #ruby
bungoman has joined #ruby
yokel has joined #ruby
jespada_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
<apeiros>
only real issue with postfix rescue is the lack of specificity
<ljarvis>
that's enough reason for me
<apeiros>
yeah, for me too
<apeiros>
but it's also the only reason :)
rwilcox has quit [Ping timeout: 252 seconds]
<apeiros>
if we could specify the exception type, I'd probably have a couple of places with postfix rescue.
<ljarvis>
I think headius suggestion removing them or some alternative syntax which allow adding exception classes
<ljarvis>
yeah sure
startupality has joined #ruby
msgodf has joined #ruby
revath has quit [Ping timeout: 264 seconds]
astrobun_ has joined #ruby
[k-_ has joined #ruby
allcentury has joined #ruby
tomaz_b has joined #ruby
nfk has joined #ruby
<jhass>
mmh, rescue from RuntimeError, with: false # should be possible to make that work no? check $! and reraise :P
<hectortrope>
Hello guys any Java developers here who are actually ruby developers?
<jhass>
?guys hectortrope
<ruboto>
hectortrope, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<shevy>
people here are too shy to admit that they use java
<hectortrope>
hey shevy
<hectortrope>
?guys
<ruboto>
we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<hectortrope>
who are the non-guys here ?? I am so interested :-)
<shevy>
Aria, pontiki and sevenseacat
<jhass>
it shouldn't matter to you
jerius has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
bzf has joined #ruby
<[k-_>
sevenseacat seems like a guy!
leat1 has quit [Remote host closed the connection]
jerius has quit [Client Quit]
<apeiros>
[k-_: inappropriate.
jerius has joined #ruby
gwendall has quit []
ruurd has quit [Quit: ZZZzzz…]
leat1 has joined #ruby
<bzf>
I'm trying to run [10].pack "C" and keep getting back "\n" when I'm expecting "\x0A". Seems like it automatically does an ASCII conversion. Anyway to make it not do that_
<jhass>
bzf: it's the same byte sequence, just different representations
umgrosscol has joined #ruby
MarkTurner has left #ruby ["Yawn"]
<bzf>
jhass: Ah, of course! Thanks
<apeiros>
also if you do *literally* use [10].pack "C", then you'd do better to just write "\x0a" directly
nfk has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
moogs has joined #ruby
jpfuentes2 has joined #ruby
<moogs>
I am trying to install version 2.1.1 of Ruby but I am getting an error because a package that is required for the version of Ruby has been replaced. Any suggestions?
<jhass>
moogs: did you try turning it off and on again?
<moogs>
jhass: This is not the IT crowd.
jerius has quit [Ping timeout: 256 seconds]
Pathfinder has quit [Ping timeout: 255 seconds]
<apeiros>
moogs: any reason you install 2.1.1 instead of 2.1.6?
malconis has joined #ruby
<jhass>
then why do you ask questions like "I get an error"?
<moogs>
It's the version in the documentation that we are to install.
nfk has joined #ruby
arup_r_ has joined #ruby
* [k-_
fans jhass
astrobun_ has quit [Remote host closed the connection]
<moogs>
The error was the "package that is required for the version of Ruby has been replaced"
<jhass>
I doubt that's the full error
<jhass>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<apeiros>
moogs: if you want help, don't make it difficult for those to help you
iamninja has joined #ruby
<moogs>
apeiros: One sec. I am recreating the issue.
davedev24 has joined #ruby
ubuntu has joined #ruby
* apeiros
brb
bluOxigen has quit [Ping timeout: 250 seconds]
<ubuntu>
hello Jh Ass
ubuntu is now known as Guest28634
loc22 has joined #ruby
<Guest28634>
I am a very big fan of you
<Guest28634>
jhass:
Igorshp has quit [Remote host closed the connection]
<jhass>
?ot Guest28634
<ruboto>
Guest28634, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Guest28634>
You are so awesome
<jhass>
!mute Guest28634
OnoSendai2 has joined #ruby
<moogs>
The error message is "Package libncurses5-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
livcd has quit [Quit: leaving]
<moogs>
However the following packages replace it: libtinfo-dev
<jhass>
moogs: that sounds like a question for #yourOS
decoponio has joined #ruby
<[k-_>
yup, that isnt a ruby-related question
Igorshp has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
dhjondoh has quit [Remote host closed the connection]
atomical has joined #ruby
arup_r_ has quit [Remote host closed the connection]
bruno- has joined #ruby
Guest28634 has quit [Client Quit]
GhettoCode has joined #ruby
<jhass>
!unmute Guest28634
<shevy>
moogs if you have to compile something, you need to install all those required -dev packages as otherwise you can not compile it
<OnoSendai2>
Hi all, I'm wondering why Kernel.system("someprogram") doesn't always show the message "Segementation Fault" for a crashing program?
ndrei has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
JAss has joined #ruby
_blizzy_ has joined #ruby
<[k-_>
not all programs crash because of segmentation faults
<bnagy>
not all crashing programs output that, even when it is a segv
<[k-_>
a segmentation fault is a special kind of error
<jhass>
if you have some reproducable cases for when it does and when it doesn't we might hint why, but there are too many factors to say
mikecmpbll has joined #ruby
<OnoSendai2>
so i'm running it on a program that is set up to segmentation fault every time
<shevy>
OnoSendai2 system() will return true or false, if you want more information, you can use result = `` and in particular, with 2>&1 such as: result = `ls 2>&1`
<[k-_>
i saw a big O and thought of Ox0dea :(
<shevy>
you worship him!
<bnagy>
OnoSendai2: what are you actually trying to do?
<OnoSendai2>
shevy: It's not really about the return value. I want the message "Segmentation Fault" to be printed to stdout or stderr
<OnoSendai2>
bnagy: We have a ruby script, running in buildbot, that runs an executable (to do unit tests)
<jhass>
warn "Segmentation Fault" # done
mhib has joined #ruby
<shevy>
yeah but where does this message appear, hence the 2>&1
<OnoSendai2>
if the executable crashes, we would like to have the message "Segmentation fault" (or similar) in the buildbot log
<OnoSendai2>
jhass: What's 'warn'?
<jhass>
do you have any code after the system call?
<OnoSendai2>
yup
<konsolebox>
OnoSendai2: you may need to redirect stderr as well
<jhass>
just a convenience wrapper around $stderr.puts
<bnagy>
the point is that not all programs will output "segmentation fault" at all, ever, on any fd
tmtwd has joined #ruby
<OnoSendai2>
konsolebox: So I have a test script set up on my local VM. Output to CERR is printed, but not the "Segmentation fault" message
<bnagy>
if you want to know about abnormal exits you should probably be handling signals, but that's a bit thorny with ruby
sevenseacat has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
<shevy>
you can send that message on your own
davedev24 has quit [Remote host closed the connection]
<bnagy>
why would you send segmentation fault if the crash isn't a segv?
JAss has quit [Quit: Lost terminal]
<bnagy>
that seems silly.
<OnoSendai2>
shevy: sure, I could. I was just wondering why it is somehow being suppressed when the crash happens through Kernel.system()
pietr0 has joined #ruby
<konsolebox>
OnoSendai2: Kernel.system() executes the string in it with a shell. It is the output of this whole process group (includes the shell) that you'd need to redirect so you could catch the output. You can do that redirection in Ruby by using other methods besides Kernel.system() but the quick thing i'd do is `Kernel.system("exec 2>&1; your_command")`.
<shevy>
you only have to read what I wrote above. why don't you use ``
<bnagy>
sigh
Igorshp has quit [Remote host closed the connection]
<bnagy>
redirecting output is only going to work if there is output
JoshL has joined #ruby
_blizzy_ has joined #ruby
Igorshp has joined #ruby
leat1 has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
nfk has quit [Remote host closed the connection]
DaniG2k has joined #ruby
<bnagy>
if you're the parent then signals and exit statuses are both fairly reliable, signals being more granular
<bnagy>
otherwise there's the kernel trap handler I guess o_0
bhorn1|away is now known as bhorn1
<bnagy>
but waiting for a message on stderr is never going to be a robust approach to this problem
<bnagy>
if you want to be able to tell the difference between an actual segfault, floating point exception, illegal instruction etc etc you probably need a signal handler
rbennacer has joined #ruby
<bnagy>
but for unit testing I don't know if you need that much detail :P
gamename has joined #ruby
freerobby has joined #ruby
<OnoSendai2>
yeah we don't really
ruurd has joined #ruby
<konsolebox>
OnoSendai2: just a note: i think it is the "shell" that produces that message. Probably after receiving 139 as exit code from the program.
nateberkopec has joined #ruby
<OnoSendai2>
konsolebox: Yeah I think you are probably right
w1xz has joined #ruby
<OnoSendai2>
shouldn't ruby be printing output from the shell then? :)
<konsolebox>
OnoSendai2: and i'm not sure if it is applicable in all shells. but in bash it's likely (seeing its code).
<bnagy>
I'm going to cook dinner :)
<jhass>
OnoSendai2: ruby doesn't capture anything in the default system invocation, it simply leaves the child processes stdout and stderr to be the same as the parent processes
rikkipitt has quit [Remote host closed the connection]
<OnoSendai2>
we don't want to use backticks
rbennacer has quit [Ping timeout: 246 seconds]
<OnoSendai2>
we need error codes, return value tc..
<OnoSendai2>
etc..
vbatts|w1 has joined #ruby
<shevy>
why did you use system() again?
<vbatts|w1>
n/close
vbatts|w1 has left #ruby [#ruby]
<shevy>
ok so you used system and $?
leat1 has quit [Remote host closed the connection]
<OnoSendai2>
shevy: that's what we will use, yeah
que_ has quit [Quit: Page closed]
leat1 has joined #ruby
<OnoSendai2>
It looks like to me, somewhere along the line, some buffer is not being flushed. Could be a shell issue, could be a ruby issue. Problem is apparently on windows as well. So could be a ruby issue
dgutierrez1287 has joined #ruby
lkba has joined #ruby
krz has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
<konsolebox>
OnoSendai2: To make it clear, do you need to capture output?
<OnoSendai2>
I want the error to show up in buildbot mainly
revath has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomaz_b has quit [Quit: Leaving]
lkba_ has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
paulcsmith has joined #ruby
Kully3xf_ has joined #ruby
whippythellama has joined #ruby
<konsolebox>
OnoSendai2: so you actually don't want it to be captured but just be shown? Perhaps it depends on the shell. And afaik Kernel.system() executes /bin/sh.
<jhass>
most forms do, not all
tcopeland has joined #ruby
Kully3xf has quit [Ping timeout: 255 seconds]
<OnoSendai2>
konsolebox: I'm not 100% sure how buildbot works. I think it just gets everything from stdout and stdcerr of the program it runs (our ruby script in this case)
PhantomSpank has joined #ruby
leat1 has quit [Remote host closed the connection]
<konsolebox>
jhass: yes, if not a single string
leat1 has joined #ruby
eGGsha has joined #ruby
<jhass>
the array form does neither
beef-wellington has joined #ruby
<jhass>
and iirc it does some hackery depending on whether it detects shell like expressions (|, &, > etc)
<jhass>
and on windows it does even parse these on its own
Kully3xf has joined #ruby
<jhass>
the exec family (exec, spawn, system) is easily the most complex interface in Ruby core
Kully3xf_ has quit [Ping timeout: 264 seconds]
nfk has quit [Remote host closed the connection]
w1xz has quit [Quit: ZZZzzz…]
<konsolebox>
OnoSendai2: if it executes a program and it doesn't use a shell between it then maybe you wouldn't get the message at all.
MagePsycho_ has joined #ruby
<OnoSendai2>
ok
ndrei has joined #ruby
<OnoSendai2>
maybe that's it
<OnoSendai2>
sometimes it seems to show the message and sometimes not
lessless has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<OnoSendai2>
maybe that's ruby deciding to use a shell or not
Rodya__ has joined #ruby
<jhass>
you still didn't clarify what sometimes means here
<jhass>
what it depends on
<OnoSendai2>
ruby version i think
<jhass>
different invocations, pure perceived randomness etc
tcopeland has quit [Client Quit]
<konsolebox>
jhass: i agree. better avoid Kernel.system() unless you are explicitly wanting /bin/sh.
jespada_ has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
giuseppesolinas has joined #ruby
oo_ has joined #ruby
i8igmac has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
<konsolebox>
OnoSendai2: how do you actually make buildbot and ruby work together? buildbot executes ruby, or ruby executes buildbot?
<OnoSendai2>
buildbot slave executes ruby
davejlong has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
<konsolebox>
OnoSendai2: and ruby executes a program?
<OnoSendai2>
yup
griffindy has joined #ruby
<tuor>
hi, i use a class, can i just add some methods to it?
<konsolebox>
OnoSendai2: through Kernel.system() which you had configured? if that's so, i'd examine /bin/sh
<shevy>
tuor yes. always. just open it up again
<JMoir>
Does anyone know of any good resources to learn about testing; what to test, how to test, practices and stuff? I'm really bad at testing, I'm writing my first proper app in ruby and realised I have two tests despite having a functioning site... Oops
HakN99 has joined #ruby
<tuor>
ah nice.
<[k-_>
tuor, since you are very new to ruby, a book would greatly benefit you
juanpablo_ has joined #ruby
<OnoSendai2>
konsolebox: ok, thanks. I'm happy with the answer that it somtimes runs a shell and sometimes not. Either way, we can use $? from now on to print out to builbot ourselves if the program crashed.
<tuor>
[k-_, yes, I have one, I just didn't know what to search. (for "reediting" a class)
evanjs has joined #ruby
<[k-_>
get many books!
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zamyatin has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
<tuor>
ok :)
Scroff has joined #ruby
<konsolebox>
OnoSendai2: ok. just note $?.exitstatus == 139 is SEGV
<shevy>
tuor class Foo; end; now we add a method... class Foo; def bar; puts 'hi from bar'; end; end
<OnoSendai2>
konsolebox: ok, we're just doing puts $?
werelivinginthef has joined #ruby
jespada_ has joined #ruby
i8igmac has quit [Ping timeout: 256 seconds]
<Coraline>
JMoir: I'm fond of The Rspec Book
tjohnson has joined #ruby
<tuor>
shevy, yes. Just didn't know, that i can do it again (not only one time) the exact same way.
<shevy>
last definition wins in ruby
<shevy>
>> class Foo; def bla; puts 'this is bla'; end; end; class Foo; def bla; puts 'this is not bla'; end; end; Foo.new.bla
<JMoir>
Coraline: I just read the description and this looks great! In my past searches all that I had found was how to do basic tests on an application with about 10 lines of code. I wanted more theory and practices so I can apply them to bigger projects well. This looks good, thanks.
bsdbofh has joined #ruby
<shevy>
the OOP in ruby is a lot nicer than the OOP in php
<tuor>
shevy, ah ok.
<bougyman>
shevy: but not as nice as the OOP in common lisp.
<shevy>
don't know how lisp does OOP
nfk has joined #ruby
<konsolebox>
JMoir: +1 for RSpec. haven't exactly used it yet, but it's on my list for doing tests someday
oo_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
<JMoir>
konsolebox: I'll definitely have to get it then, it looks like quite a few people say it's a good book
jenrzzz has joined #ruby
<konsolebox>
>> class Foo; end; Foo.singleton_class.class_exec{ def x; puts :x; end }; Foo.x
<Y_Ichiro>
require 'em/pure_ruby' like what the error message says?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<Aderium>
where do I put that ?
PhantomSpank has quit []
allomov has quit [Remote host closed the connection]
<Y_Ichiro>
well, it's from your ./initializer.rb:8:in `<main>' according to the gist, so maybe there
<Y_Ichiro>
idk if this is what you want to do though
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<Y_Ichiro>
typically a gem loads a C extension for a cpu extensive task, if you use this workaround, it will lag
danzilio has quit [Quit: My computer has fallen asleep!]
<Aderium>
yeah that is what we are doing
havenwood has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
<Aderium>
so I would need to add it into our .c file ?
<Y_Ichiro>
no
MagePsycho_ has joined #ruby
<Y_Ichiro>
it's the EventMachine's C extension that failed
Burgestrand has quit [Quit: Burgestrand]
<Aderium>
I dont see an initializer.rb in eventmachine
<Y_Ichiro>
uh, where are you calling eventmachine from?
<Y_Ichiro>
it's where you are calling it from you have to add it
bronson has joined #ruby
<arup_r>
ljarvis, `didn't get either of you.. I already follow the pattern you gave..
<arup_r>
:)
nanSTA has joined #ruby
<Aderium>
i thoght maybe its the -KPIC flags that are causing this
<arup_r>
sorry... I get you ljarvis, but not jhass.
<arup_r>
:)
<shevy>
Aderium that looks like an error from eventmachine
<shevy>
gems/extensions/x86_64-solaris-2.11/2.1.0-static/eventmachine-2333335a9fbf/rubyeventmachine.so: symbol _init: value 0x7f0044750225 does not fit
davejlong has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
Cache_Money has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
stef1a has joined #ruby
momomomomo has quit [Quit: momomomomo]
<stef1a>
i'm using ruby 2.1.0 and i want to convert an array of symbols to a set of symbols, but #to_set converts an array of symbols to a set of strings. help?
TheNet has joined #ruby
jespada_ has quit [Ping timeout: 255 seconds]
jespada__ has joined #ruby
niemcu has quit [Ping timeout: 246 seconds]
<jhass>
21>> require "set; %i(foo bar baz).to_set
<ruboto>
jhass # => /execpad/interpreters/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': ...check link for more (https://eval.in/398593)
<jhass>
21>> require "set"; %i(foo bar baz).to_set
mary5030 has quit [Remote host closed the connection]
curses has joined #ruby
mary5030 has joined #ruby
danzilio has joined #ruby
iateadonut has left #ruby [#ruby]
theery_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
<pfish>
I'm trying to update a class with similar ruby level sematics to Proc, ie i want to make it so that my class can do PPR.new{__insert block here__},call and have it call the ruby block, but with me being able to insert some c code before and after it does
<pfish>
by update I mean it was written to be used in 1.8.6
<pfish>
but it used proc_invoke
<pfish>
which doesnt exist anymore
quimrstorres has joined #ruby
fabrice31 has joined #ruby
<pfish>
so im trying to find some sort of replacement
jespada__ has joined #ruby
<teosz>
join #ruby=core
<teosz>
....
Ox0dea has joined #ruby
towski_ has joined #ruby
<havenwood>
#ruby-core is pretty quiet
nanSTA has quit [Remote host closed the connection]
curses has quit [Ping timeout: 240 seconds]
<Ox0dea>
pfish: Any reason you can't use the "normal" API to do that?
<Ox0dea>
That is, define PPR.new to expect a block and just use rb_yield().
Ilyas has joined #ruby
<Ox0dea>
havenwood: #ruby-core is a graveyard through which a robot wanders shouting about typo fixes.
stan has quit [Ping timeout: 256 seconds]
eggoez has joined #ruby
<havenwood>
Ox0dea: hehe
fabrice31 has quit [Ping timeout: 250 seconds]
<havenwood>
Ox0dea: true, that babbling robot isn't the same as silence
ZoanthusR has joined #ruby
darkf has quit [Quit: Leaving]
<Ox0dea>
Shame, really. I've considered asking in my rudimentary Japanese, but that's more likely to offend than start a worthwhile conversation.
<pfish>
Ox0dea: I can think of one... I'm just not sure how to get blocks
ruurd has joined #ruby
devbug has joined #ruby
<Ox0dea>
pfish: Every method takes an implicit block.
evanjs has quit [Remote host closed the connection]
<pfish>
cant*
DaniG2k has quit [Quit: leaving]
<Ox0dea>
>> def foo; proc[1, 2] end; foo { |x, y| x + y }
failshell has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pfish>
so rb_yield the block
ruurd has quit [Client Quit]
<pfish>
thanks
<Ox0dea>
You yield a value *to* the block, but yeah, that should suffice.
<Ox0dea>
Happy to help.
Hounddog has quit [Read error: Connection reset by peer]
jhack has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
davedev24 has quit [Ping timeout: 248 seconds]
<pfish>
ok... i vaguely remember how blocks works. Last time i seriously used ruby was years ago...
RobertBirnie has joined #ruby
graydot has joined #ruby
<pfish>
is there some example of this "standard" syntax>
<pfish>
?
<pfish>
?
graydot has quit [Client Quit]
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
Timba-as has quit [Quit: Be back later ...]
thelastinuit has joined #ruby
dgutierrez1287 has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
Disconnekted has quit [Remote host closed the connection]
mdarby has joined #ruby
<Ox0dea>
pfish: Well, lots of internal code does eschew the convenience of rb_yield() for the sake of performance or malleability; enum.c contains loads of examples in that regard.
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
JakFrist has joined #ruby
quimrstorres has quit [Remote host closed the connection]
davejlong has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
wallerdev has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
<Senjai>
Good morning ruby
<mozzarella>
good morning
bronson has joined #ruby
curses has joined #ruby
<shevy>
Aderium you can overrule it, but I think it may be hardcoded somewhere
chishiki1 has quit [Client Quit]
simplyianm has joined #ruby
davejlong has joined #ruby
<Aderium>
shevy when I do an irb> puts RbConfig::CONFIG I notice a "CCDLFLAGS"=>" -KPIC is it possible via irb to update that setting to something else ?
teosz has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
<shevy>
not permanently but you can overrule it
<shevy>
simply set it:
<shevy>
RbConfig::CONFIG['CCDLFLAGS'] = 'bla'
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I have no idea where RbConfig stores that stuff
<Ox0dea>
Aderium: Changing these values in RbConfig won't affect how your interpreter was compiled.
<Aderium>
nice
<Ox0dea>
Perhaps I've missed some subtlety of what you're trying to do?
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has joined #ruby
sross07 has joined #ruby
<shevy>
he is the solaris dude
Spami has quit [Quit: This computer has gone to sleep]
godzillaenlacasa has joined #ruby
<Aderium>
having an issue running an app because of Unable to load the EventMachine C extension; require': ld.so.1: ruby: fatal: relocation error: R_AMD64_PC32: file /export/home/dolly/ruby64/ruby-2.1.6/lib/ruby/gems/2.1.0/bundler/gems/extensions/x86_64-solaris-2.11/2.1.0-static/eventmachine-2333335a9fbf/rubyeventmachine.so: symbol _init: value 0x7f0044410225 does not fit
<Aderium>
so I am trying to see if I can change the KPIC for Kpic
<Aderium>
and see if that addresses the incorrection
drewo has joined #ruby
shinnya has joined #ruby
zeroDivisible has quit [Ping timeout: 252 seconds]
ohaibbq has quit [Ping timeout: 265 seconds]
chishiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Ox0dea>
Aderium: Solaris has differently-sized addresses, then?
moogs has quit [Quit: Page closed]
nfk has joined #ruby
<Aderium>
I gues ... the flags in SolarisStudio ar addressed in KPIC and Kpic instead of fPIC
<Aderium>
the Kpic is for boht 32 and 64
<havenwood>
it's a 32-bit, 64-bit system that runs in 32-64sy mode
<Aderium>
its been two days now that I cant get it going
<Aderium>
ok that changes the config
blaines has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Scrofff has joined #ruby
snockerton has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 246 seconds]
zacstewart has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
snockerton has joined #ruby
wallerdev has joined #ruby
casadei_ has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iooner has quit [Max SendQ exceeded]
wallerdev has quit [Client Quit]
fumihiro has quit [Ping timeout: 250 seconds]
jespada__ has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
iooner has joined #ruby
mleung has joined #ruby
arturmartins has quit [Quit: Leaving...]
jottr_ has joined #ruby
wallerdev has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby
<Ox0dea>
pfish: Coming along all right?
hololeap has joined #ruby
michaeldeol has joined #ruby
<hololeap>
lets say i have a constant, `NamespaceOne::NamespaceTwo::NamespaceThree`... is there a way to extract the module `NamespaceOne` from that (given that the namespaces have arbitrary names)
Spami has joined #ruby
<Ox0dea>
hololeap: Is it that you're opposed to converting it to a string?
<konsolebox>
hololeap: recursive call to .constants where obj.is_a? Module, starting from Objects
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
<Ox0dea>
Sounds like overkill. Object.const_get(foo.split('::').first) would suffice.
<hololeap>
Ox0dea: good idea. thanks
jottr_ has quit [Ping timeout: 265 seconds]
<konsolebox>
Ox0dea: i see
Scrofff has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 240 seconds]
<konsolebox>
Ox0dea: not really. i bet const_get does the same concept
mdarby has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
kfpratt has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
<Aderium>
is there a way to check what compiler was used to compile ruby ?
<jhass>
hololeap: if you actually have something like module Foo; module Bar; class Baz; you could also gain it with Module.nesting
Rollabunna has joined #ruby
Rollabunna has quit [Client Quit]
<hololeap>
jhass: that's really interesting
Rollabunna has joined #ruby
yokel has joined #ruby
nettoweb has joined #ruby
<jhass>
be sure to play around with it though to make sure you understand what it does exactly
sinkensabe has joined #ruby
<Ox0dea>
konsolebox: Object#const_get is indeed recursive, but it's not having to load up an array of all the relevant constants each time through.
alexa_ has joined #ruby
<Ox0dea>
Aderium: You ask that question right after you've been mucking about in RbConfig...?
<Ox0dea>
benlieb: In your defense, the syntax and semantics are ridiculously counter-intuitive.
<konsolebox>
Ox0dea: well you just saved it from doing String#split :)
DoubleMalt has quit [Remote host closed the connection]
JakFrist has joined #ruby
<Ox0dea>
konsolebox: I'm not sure I follow.
arashb_ has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
symbol has joined #ruby
ascarter has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Ox0dea>
Recursively invoking Object#constants builds intermediate arrays, which is wasteful when you already know which constant you're searching for.
Rollabunna has quit [Quit: Leaving...]
Rollabunna has joined #ruby
<hololeap>
jhass: that is pretty much what i was looking for. the idea that i'm working with is to create a class like so `class MyClass::DB < MyLib::DB` and it knows to look for a migration at `MyClass::DB::Migration` by default. the code for this lives inside `MyLib::DB` which knows nothing of the names of the inheriting classes.
<mozzarella>
&&=
__butch__ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<mozzarella>
I bet it blew your mind
ascarter has quit [Max SendQ exceeded]
Rollabunna has joined #ruby
Rollabunna has quit [Client Quit]
<jhass>
hololeap: compare its result for class MyClass::DB < MyLib::DB and module/class MyClass; class DB < MyLib::DB though
<Ox0dea>
>> a = false; a &&= 1; b = true; b &&= 1; [a, b]
<MrPunkin>
Looking to find out why my match isn’t extending out through all the numbers right up against the quotes
ascarter has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graydot has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
<hololeap>
jhass: there are some other things that i need to access from MyClass, like a class instance variable in MyClass that stores the location of the database.yml file
[Butch] has quit [Ping timeout: 264 seconds]
<jhass>
MrPunkin: I guess \p{Pi} includes .
hahuang65 has joined #ruby
arashb has joined #ruby
<MrPunkin>
the dot is being included in the capturing blocks though
nanSTA has quit [Ping timeout: 248 seconds]
<jhass>
hololeap: sounds like a good candidate for a constant too
<jhass>
MrPunkin: ah, right. The issue is that the regex does what you specified :P 4 is preceded by " so the assertion fails. . isn't preceded by " so the assertion passes. 0 is followed by " so the assertion fails. . isn't followed by " so the assertion passes
gambl0re has joined #ruby
sinkensabe has quit [Remote host closed the connection]
NeverDie has joined #ruby
jhack has quit [Ping timeout: 252 seconds]
<hololeap>
i think i need to go back to the drawing board because this whole project is feeling like a mess
<jhass>
MrPunkin: your sample is a bit sparse, what exactly are your inputs that made you put up those lookarounds?
<havenwood>
MrPunkin: I think you meant a positive lookbehind but used a negative
<jhass>
MrPunkin: also note that you didn't escape the . in the first character class
<MrPunkin>
I was messing around, so that’s probably when it got removed
<MrPunkin>
I have it escaped in my code
<MrPunkin>
but thanks for pointing it out
Kully3xf_ has joined #ruby
Kully3xf has quit [Ping timeout: 264 seconds]
<MrPunkin>
jhass: actually, wait. What I really want is to only match if the quotes aren’t there
bodzio has quit [Quit: Leaving.]
xcesariox has quit [Remote host closed the connection]
<MrPunkin>
that is indeed a negative lookbehind / ahead, right?
<JMoir>
Finally got my first proper project up to a point where I can use it for what it was made for (a blog for my family and friends as I'm off to Japan for a year tomorrow). It's a good feeling!
<JMoir>
Needs some major refactoring, but first I should write tests...
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 244 seconds]
<havenwood>
using word boundaries*
danzilio has quit [Ping timeout: 256 seconds]
<havenwood>
"matching" was a poor word choice
sarkyniin has joined #ruby
<MrPunkin>
havenwood: Kind of, I’m looking to not match things wrappedi in quotes only as those are specificly called out as exact file names, where as if not wrapped in quotes they should be found and replaced with proper multiplication symbols
<MrPunkin>
in user generated text
davejlong has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
and i forget to escape .s, heh
mandarinkin has quit [Ping timeout: 250 seconds]
<havenwood>
MrPunkin: ah, gotcha
jpfuentes2 has joined #ruby
<havenwood>
\.s*
<havenwood>
ESCAPE ALL THE THINGS \\o\/
RegulationD has quit []
<shevy>
yay\
radialneon has joined #ruby
<shevy>
escape (lisp)!
Muhannad has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 248 seconds]
mandarinkin has joined #ruby
<havenwood>
JMoir: Save travels! Sounds exciting...
<havenwood>
Safe*
freerobby has quit [Quit: Leaving.]
<shevy>
JMoir awww will you be using ruby in japan?
TheHodge has quit [Quit: Connection closed for inactivity]
<MrPunkin>
like, I don’t want any data to match from it
<JMoir>
shevy: Yes, planning on going to rubykaigi and other events like it :)
<MrPunkin>
if it’s surrounded by quotes, ignore it.
<dfockler>
ahhh ok
Timba-as has quit [Quit: Be back later ...]
bluOxigen has joined #ruby
<JMoir>
havenwood: I haven't heard of it, but if time allows, I'd love to go
<MrPunkin>
so it’s more complex, but thanks!
prestorium has joined #ruby
<hololeap>
i see a lot of code that does `def initialize(opts = nil); opts ||= {}; ...` but is that any different than writing `def initialize(opts = {}); ...` ?
<hololeap>
apeiros: that's what i thought, but i just wanted to confirm
<dfockler>
JMoir: Same here I tried to start one, but I failed
radialneon_ has joined #ruby
<apeiros>
Ox0dea: it can make things easier like passing through defaults
momomomomo has quit [Client Quit]
felltir has joined #ruby
yh has quit [Ping timeout: 256 seconds]
<JMoir>
dfockler: Damn..
dumdedum has quit [Ping timeout: 264 seconds]
<JMoir>
Right I have to go bye
<Ox0dea>
Sayonara!
Shizus has joined #ruby
startupality has joined #ruby
Kully3xf has joined #ruby
radialneon has quit [Ping timeout: 244 seconds]
casadei_ has joined #ruby
cyrus_mc has joined #ruby
rdark has quit [Quit: leaving]
<Shizus>
Hi! I was reading github's guidelines for Ruby and I was wondering why it was prefered to use %w or %i to define arrays rather than the standard way
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass>
?puppet
<ruboto>
Please join #puppet for help with it.
postmodern has joined #ruby
<cyrus_mc>
jhass: I have .. no answers yet .. but just wondering if anyone can pick out the syntax error on the line it is complaining about (top line).
Kully3xf_ has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Quit: Leaving]
<apeiros>
Shizus: less noise
marr has quit [Ping timeout: 255 seconds]
<jhass>
cyrus_mc: I think what you showed does not correspond to reality
atomi has joined #ruby
<jhass>
cyrus_mc: the line mentioned in the error is line 4, yet the code mentioned in it is on line 1
<cyrus_mc>
sorry, I accidently cut off the first few linse
<cyrus_mc>
the top three lines are just two requires (require 'puppet/provider/netscaler' and require 'json'
kies^ has joined #ruby
_blizzy_ has joined #ruby
<jhass>
we're going to need a new gist with the exact copy
leat1 has quit [Remote host closed the connection]
frem has joined #ruby
Sypheren has quit [Ping timeout: 265 seconds]
leat1 has joined #ruby
<jhass>
?ot shevy
<ruboto>
shevy, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
aryaching has joined #ruby
araujo has joined #ruby
quimrstorres has joined #ruby
bubbys has joined #ruby
Shizus has quit [Quit: Page closed]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
Sypheren has joined #ruby
mandarinkin has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
blaines has quit [Ping timeout: 264 seconds]
blaines has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
endash has quit [Quit: endash]
ruurd has quit [Quit: ZZZzzz…]
davedev24 has quit [Remote host closed the connection]
<ruboto>
arup_r, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
pdoherty has joined #ruby
<arup_r>
Ahh! so hard
platzhirsch has quit [Remote host closed the connection]
<arup_r>
But how long people should wait before crosspost .. just asking for future time :)
<jhass>
read the message
ruurd has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
jpfuentes2 has joined #ruby
danzilio has joined #ruby
arturmartins has joined #ruby
<arup_r>
ok
davedev24 has joined #ruby
<pfish>
Ox0dea: I had to go each lunch but im starting to work on it now
baweaver_ has joined #ruby
dblessing has joined #ruby
MagePsycho_ has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
bungoman has quit [Remote host closed the connection]
iooner has quit [Max SendQ exceeded]
bungoman has joined #ruby
simplyianm has joined #ruby
startupality has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
evanjs has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
matled- has joined #ruby
felltir has quit []
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Read error: Connection reset by peer]
nanSTA has joined #ruby
tvw has quit []
anisha has joined #ruby
edwinvdgraaf has joined #ruby
AlphaAtom has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
gambl0re has joined #ruby
Centrixx has joined #ruby
jxie_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
ChasedSpade has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Centrixx is now known as ChasedSpade
fabrice31 has joined #ruby
borkdude_ has joined #ruby
hoelzro_ has joined #ruby
jblancet1 has joined #ruby
workmad3 has joined #ruby
wmoxam_ has joined #ruby
parus has joined #ruby
cout_ has joined #ruby
Scroff has joined #ruby
viki__ has joined #ruby
ezra has joined #ruby
opalraav1 has joined #ruby
ukd1_ has joined #ruby
peterhu_ has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
cyrus_mc_ has joined #ruby
destruct1re has joined #ruby
G_ has joined #ruby
gigetoo_ has joined #ruby
flori_ has joined #ruby
ezra is now known as Guest76729
emdub_ has joined #ruby
n008f4g__ has joined #ruby
smooth_p1nguin has joined #ruby
ruurd has joined #ruby
bubbys has joined #ruby
phutchins2 has joined #ruby
yokel has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
aryaching has quit [Ping timeout: 248 seconds]
phutchins1 has quit [Ping timeout: 244 seconds]
shtirlic_ has joined #ruby
teosz has joined #ruby
denym_` has joined #ruby
TheTFEF has joined #ruby
sideshowcoder_ has joined #ruby
leslie_ has joined #ruby
JaTochNietDan_ has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
alexblom_ has joined #ruby
jaxxstorm_ has joined #ruby
digifiv5e has joined #ruby
DiabolikFreenode has joined #ruby
derekv2 has joined #ruby
digifiv5e is now known as Guest55992
gvdevil has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
dopie has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
Sypheren has joined #ruby
Esya has joined #ruby
jsrn- has joined #ruby
jackjackdripper has quit [*.net *.split]
zacstewart has quit [*.net *.split]
dgutierrez1287 has quit [*.net *.split]
solars has quit [*.net *.split]
symbol has quit [*.net *.split]
cyrus_mc has quit [*.net *.split]
Alayde has quit [*.net *.split]
havenwood has quit [*.net *.split]
t_ has quit [*.net *.split]
ldnunes has quit [*.net *.split]
zz_denym_ has quit [*.net *.split]
n008f4g_ has quit [*.net *.split]
meatchicken has quit [*.net *.split]
jokester has quit [*.net *.split]
joshbamboo1 has quit [*.net *.split]
hanmac has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
ggherdov has quit [*.net *.split]
jmcc has quit [*.net *.split]
jimbeaudoin has quit [*.net *.split]
jxie has quit [*.net *.split]
bihi has quit [*.net *.split]
redondos has quit [*.net *.split]
destructure has quit [*.net *.split]
Guest60181 has quit [*.net *.split]
flori has quit [*.net *.split]
Esya- has quit [*.net *.split]
Riking has quit [*.net *.split]
cout has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
Dwarf has quit [*.net *.split]
smooth_penguin has quit [*.net *.split]
alexblom has quit [*.net *.split]
derekv has quit [*.net *.split]
j416 has quit [*.net *.split]
G has quit [*.net *.split]
emdub has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
matled has quit [*.net *.split]
lupine has quit [*.net *.split]
avdi has quit [*.net *.split]
shtirlic has quit [*.net *.split]
ukd1 has quit [*.net *.split]
TinkerTyper has quit [*.net *.split]
jblancett has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
leslie has quit [*.net *.split]
halfdan has quit [*.net *.split]
maZtah has quit [*.net *.split]
adambeynon has quit [*.net *.split]
featheryahn_ has quit [*.net *.split]
bjeanes has quit [*.net *.split]
harleypig has quit [*.net *.split]
pusewicz has quit [*.net *.split]
viki_ has quit [*.net *.split]
jxf has quit [*.net *.split]
lanemeyer has quit [*.net *.split]
daynaskully has quit [*.net *.split]
peterhu has quit [*.net *.split]
daxroc has quit [*.net *.split]
glowcoil has quit [*.net *.split]
Heero has quit [*.net *.split]
petems has quit [*.net *.split]
teotwaki has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
gigetoo has quit [*.net *.split]
SuperTux88 has quit [*.net *.split]
akitada has quit [*.net *.split]
jevs has quit [*.net *.split]
zemmihates has quit [*.net *.split]
zipkid has quit [*.net *.split]
holsee_ has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
parus_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
benlakey has quit [*.net *.split]
spastorino has quit [*.net *.split]
opalraava has quit [*.net *.split]
whoojemaflip has quit [*.net *.split]
sparr has quit [*.net *.split]
hoelzro has quit [*.net *.split]
borkdude has quit [*.net *.split]
BLuEGoD has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
noname has quit [*.net *.split]
moshee has quit [*.net *.split]
wmoxam has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
ckrailo has quit [*.net *.split]
Diabolik has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
jsrn has quit [*.net *.split]
Nightmare has quit [*.net *.split]
sarlalian has quit [*.net *.split]
Liam` has quit [*.net *.split]
matled- is now known as matled
sideshowcoder_ is now known as sideshowcoder
gigetoo_ is now known as gigetoo
jaxxstorm_ is now known as jaxxstorm
JaTochNietDan_ is now known as JaTochNietDan
simplyianm has joined #ruby
jsrn- is now known as jsrn
workmad3 has quit [Ping timeout: 248 seconds]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
Liam` has joined #ruby
ruurd has joined #ruby
jottr_ has joined #ruby
riking_ has joined #ruby
teotwaki has joined #ruby
iooner_ has joined #ruby
lanemeyer has joined #ruby
DLSteve has joined #ruby
Guest55992 has quit [Changing host]
Guest55992 has joined #ruby
bihi has joined #ruby
TheNet has quit [Remote host closed the connection]
BLuEGoD has joined #ruby
lupine has joined #ruby
j416 has joined #ruby
baweaver_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
SegFaultAX has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
bubbys has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
aryaching has joined #ruby
TheNet has joined #ruby
jcromartie has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
spider-mario has quit [Ping timeout: 250 seconds]
simplyianm has joined #ruby
<hololeap>
i'm trying to do something a bit odd: i have an activerecord model that has two integer attributes: ip and cidr. these can be used to create an IPAddr object. i would like to create a proxy class that delegates methods first to the IPAddr object, then to the activerecord object, so that it "feels" like an IPAddr but i can still save it to the db. any ideas?
cochise has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
spider-mario has joined #ruby
gusrub has joined #ruby
cochise has joined #ruby
Sypheren has quit [Ping timeout: 240 seconds]
bubbys has joined #ruby
blue_deref has joined #ruby
Dwarf has joined #ruby
<dfockler>
hololeap: why can't the model just be an IPAddr object?
Sypheren has joined #ruby
msnyon has joined #ruby
<hololeap>
dfockler: you mean just serialize it to a string attribute?
<dfockler>
why do you need a proxy class?
eGGsha is now known as eGGshke
basmoura has joined #ruby
leat1 has quit [Remote host closed the connection]
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teosz has quit [Ping timeout: 264 seconds]
leat1 has joined #ruby
basmoura has quit [Client Quit]
simplyianm has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
jhack has joined #ruby
baweaver_ has joined #ruby
simplyianm has joined #ruby
<hololeap>
this is just something i'm playing around with. there's the option of just serializing the attribute, then i could automatically convert it to/from the database with no hassle. this only works on single attributes, however. if i wanted to use multiple attributes to create an object then i have to do something different
Tritone has quit [Remote host closed the connection]
<hololeap>
it's not mission-critical or anything so don't worry too much about it
SuperTux88 has joined #ruby
<dfockler>
oh I was just thinking IPAddr had two fields and would inherit from ActiveRecord::Base
ruurd has quit [Quit: ZZZzzz…]
ducklobster has joined #ruby
arturmartins has quit [Quit: Leaving...]
arooni-mobile has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
Sypheren has quit [Ping timeout: 256 seconds]
Voker57 has quit [Remote host closed the connection]
<Ox0dea>
pfish: A non-immediate object's #object_id is just twice its internal pointer. See if you get the same results from rb_obj_id() for those four apparently equivalent objects.
konsolebox has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Hobogrammer_ has joined #ruby
<Ox0dea>
Erm, sorry, other way around; the pointer is twice the #object_id.
workmad3 has quit [Ping timeout: 256 seconds]
centrx has joined #ruby
Silent__ has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
peter_paule has joined #ruby
jottr_ is now known as jottr
Sypheren has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<pfish>
i think they are...
Hobogrammer_ has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
konsolebox has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
davejlong has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 244 seconds]
davejlong has joined #ruby
<Ox0dea>
pfish: Then I reckon you've managed to get four handles on the same object, my friend.
quimrstorres has quit [Remote host closed the connection]
Xoro has quit [Ping timeout: 240 seconds]
<pfish>
yeah im going to figure our where i messed up lol
<Ox0dea>
You've probably forgotten to heed the perils of pass-by-reference someplace.
<Ox0dea>
Y_Ichiro: Very insightful.
<Y_Ichiro>
indeed
shadoi has quit [Quit: Leaving.]
dangerousdave has joined #ruby
sharpmachine has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
solars has joined #ruby
zz_barkerd427 is now known as barkerd427_
konsolebox has joined #ruby
bronson has quit [Remote host closed the connection]
sharpmachine has joined #ruby
Pathfinder has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bubbys has joined #ruby
Violentr has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: Leaving]
drewo has quit [Ping timeout: 265 seconds]
phutchins2 has quit [Ping timeout: 250 seconds]
lavros has quit [Quit: leaving]
CustosLimen has joined #ruby
<pfish>
Ok i think i just dont know how to declare methods of a ruby in c... im guessing first arg is self and second is the actual passed arg...
davejlong has quit [Remote host closed the connection]
jaygen_ has joined #ruby
<pfish>
specifically singleton methods i think...
peter_paule has quit [Ping timeout: 246 seconds]
Y_Ichiro has quit [Quit: Leaving]
jaygen has quit [Ping timeout: 264 seconds]
moredhel has joined #ruby
<Ox0dea>
pfish: Yes, that's correct. Are you sure you're calling rb_define_method() correctly?
Papierkorb_ has joined #ruby
Papierkorb has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
JoshL has quit []
<Ox0dea>
Or rb_define_singleton_method(), as the case may be.
davejlong has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<pfish>
i think so... its matches a function i know works
nfk has quit [Remote host closed the connection]
renier has joined #ruby
edwinvdgraaf has joined #ruby
renier has quit [Client Quit]
kies^ has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nfk has joined #ruby
wallerdev_ has quit [Quit: wallerdev_]
nofxx has joined #ruby
nofxx has joined #ruby
grill has joined #ruby
Mon_Ouie has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 240 seconds]
<grill>
who decided that camel case was good for class names but nothing else? alternatively, who decided underscores worked for everything except class names?
<Ox0dea>
Ruby combines object-oriented and functional programming in a way that very few languages do.
ruurd has quit [Quit: ZZZzzz…]
ascarter has quit [Client Quit]
arturmartins has quit [Quit: Leaving...]
<Ox0dea>
Scala does it with much greater emphasis on the latter, I suppose.
MatrixBridge has quit [Remote host closed the connection]
<grill>
why no tabs
jackjackdripper has joined #ruby
t_ has joined #ruby
yxhuvud has joined #ruby
meatchicken has joined #ruby
ldnunes has joined #ruby
hanmac has joined #ruby
joshbamboo1 has joined #ruby
sanguisdex has joined #ruby
ItSANgo has joined #ruby
zacstewart has joined #ruby
<bricker>
grill: the semantics of the switch statement in ruby is the only thing I can thing of that is uncommon
devbug has quit [Ping timeout: 256 seconds]
MatrixBridge has joined #ruby
sparr has joined #ruby
<chris2>
you can use tabs, but most people dont :P
<grill>
doc.words.each{ |word| puts word} looks like no language i've ever written in
<Ox0dea>
And there was much rejoicing.
baweaver_ has joined #ruby
<chris2>
dunno. i like tabs by now :P
edwinvdgraaf has quit [Remote host closed the connection]
<bricker>
grill: well the syntax is different, but the concept is the same. If it shared syntax with Python, then it'd be called Pyton.
edwinvdgraaf has joined #ruby
<Ox0dea>
bricker: Because a language is only its syntax?
cnngimenez has joined #ruby
<bricker>
Ox0dea: can you tell me two different programming langauges with identical syntax?
k3asd` has joined #ruby
<Ox0dea>
bricker: That's beating around the bush. A language is, by definition, the combination of its syntax and the accompanying semantics.
cnngimenez is now known as softlibre
<bricker>
k
barkerd427_ is now known as zz_barkerd427
yh has joined #ruby
Alayde has joined #ruby
jokester has joined #ruby
JimmyNeutron has joined #ruby
halfdan has joined #ruby
JoL1hAHN has joined #ruby
sarlalian has joined #ruby
[spoiler] has joined #ruby
jxf has joined #ruby
ddfreyne has joined #ruby
petems has joined #ruby
Kully3xf_ has joined #ruby
jxf has quit [Max SendQ exceeded]
DoubleMalt has quit [Ping timeout: 244 seconds]
superrorc has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
Kully3xf_ has quit [Remote host closed the connection]
Kully3xf has quit [Ping timeout: 252 seconds]
amitchellbullard has joined #ruby
avdi has joined #ruby
spastorino has joined #ruby
superrorc has joined #ruby
ckrailo has joined #ruby
zemmihates has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 250 seconds]
adambeynon has joined #ruby
benlakey has joined #ruby
whoojemaflip has joined #ruby
kapowaz has joined #ruby
apt-get_ has joined #ruby
zipkid has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
ascarter has quit [Client Quit]
CloCkWeRX has joined #ruby
mercwithamouth has joined #ruby
jimbeaudoin has joined #ruby
bjeanes has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]
konsolebox has quit [Read error: Connection reset by peer]
Heero has joined #ruby
softlibre is now known as cnngimenez
<hololeap>
it seems like Class.inherited gets called after the inheriting class block is completed, but it can't see any of the methods defined in the new class
simplyianm has quit [Remote host closed the connection]
<hololeap>
>> class Foo; def self.inherited(base); p base.baz; end; end; class Bar < Foo; def self.baz; :awesome; end; end
<ruboto>
hololeap # => undefined method `baz' for Bar:Class (NoMethodError) ...check link for more (https://eval.in/398714)
kirun has joined #ruby
daxroc has joined #ruby
harleypig has joined #ruby
<apeiros>
hololeap: no, it's called immediately when the class is defined
<apeiros>
i.e. right after `class Foo < Bar`
<apeiros>
before you've added any method
<Ox0dea>
Which is maybe not great.
featheryahn_ has joined #ruby
pusewicz has joined #ruby
holsee_ has joined #ruby
glowcoil has joined #ruby
<apeiros>
but makes sense
<apeiros>
given that classes are open - when is a class definition finished?
jevs has joined #ruby
<apeiros>
an alternative would be to invoke inherited after every class body. but that introduces other issues.
jmcc has joined #ruby
<weaksauce>
the thing I found most interesting was the fact that you could just do any statement inside a class.
yfeldblum has joined #ruby
<weaksauce>
class Foo; puts "yey"
maZtah has joined #ruby
<Ox0dea>
apeiros: Why not have it invoked once after the body that brings the class into existence?
<apeiros>
Ox0dea: how do you know whether it's the one you want? the one which defines the method you're looking for?
akitada has joined #ruby
<apeiros>
but yes, that'd also be an alternative
renegade_panda has joined #ruby
<Ox0dea>
Still, I suppose invoking it immediately avoids the ambiguity.
<apeiros>
yes
<apeiros>
if you want something to happen in your subclass, call a method
<apeiros>
you can provide that method in the superclass
<apeiros>
then you can be explicit when it has to happen, and ensure everything is prepared
ELLIOTTCABLE has joined #ruby
zz_barkerd427 is now known as barkerd427_
eGGsha has joined #ruby
<apeiros>
alternatively you can listen to method_added
chipotle has joined #ruby
centrx has quit [Ping timeout: 255 seconds]
Guest55992 is now known as guyz
<hololeap>
the idea i'm trying to implement is to have an abstract class Foo that calls the method .bar on any class that inherits it, however .foo needs to be defined in the subclasses
devbug has joined #ruby
<apeiros>
that has its own issues, though (`class Foo < Bar; def self.this_is_listened_for; not_yet_defined; end; def self.not_yet_defined; end; end`)
yeticry has joined #ruby
phaze has joined #ruby
davejlong has quit []
davejlong has joined #ruby
<renegade_panda>
Hi, I'm trying to use ruby 2.2.2 as my default ruby. I have RVM installed. However, every time I spawn a shell, it stills marks the default ruby as 1.9.x
<hololeap>
i guess it wouldn't be possible
barkerd427_ is now known as zz_barkerd427
<renegade_panda>
I really don't want to have to run the source command every time.
<jhass>
renegade_panda: add it to your ~/.$SHELLrc then
<renegade_panda>
What's the best way to set my default ruby to 2.2.2?
<jhass>
^ and then rvm use --default 2.2.2 or whatever it was
Tritone has joined #ruby
<hololeap>
s/.foo/.bar
ggherdov has joined #ruby
<renegade_panda>
jhass, what if I don't run a shell and open a program that's just dependent on a newer version of ruby?
<renegade_panda>
jhass, will it still default to 1.9.x?
<Ox0dea>
hololeap: It won't be possible via Class#inherited, anyway, but I'm sure you could finagle something.
davejlong has quit [Client Quit]
davejlong has joined #ruby
zz_barkerd427 is now known as barkerd427
<jhass>
renegade_panda: yes, you need to use a rvm wrapper or rvm do explicitly
<Ox0dea>
renegade_panda: Doesn't that sound great?
radialneon has joined #ruby
<pfish>
so im still having trouble creating a signleton function (in c) that takes in an argument and gets its real memory location and real memory size... anyone here have experience with this kind of thing
simplyianm has joined #ruby
arooni-mobile has joined #ruby
<pfish>
meaning i want a c function that takes in a ruby object from ruby code
apt-get_ has quit [Read error: Connection reset by peer]
<renegade_panda>
jhass, so would I just be better off upgrading my system ruby?
ruurd has joined #ruby
<hololeap>
there's no way to change the inheritance of a class at runtime, is there?
<hololeap>
i.e. define the class and _then_ inherit from a superclass
<jhass>
renegade_panda: if you can do that in a clean matter, I can't give a general recommendation
araujo has quit [Ping timeout: 248 seconds]
<jhass>
patching invocations is just as valid
mandarinkin has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
mabahamo has joined #ruby
sarkyniin has joined #ruby
simplyianm has quit [Ping timeout: 246 seconds]
<phaze>
It's just come to my attention that order is important in Ruby. Is there a workaround for that? For example, is there a way to make this theoretical example run: http://codepad.org/UjvvdgQS
theery_ has quit [Remote host closed the connection]
jokke has quit [Quit: ninja vanish]
ruurd has quit [Quit: Bye]
Thomas-0725 has joined #ruby
<jhass>
phaze: no, but there might be a good solution to your actual problem
mase-chatter has joined #ruby
startupality has quit [Quit: startupality]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<Ox0dea>
phaze: Add `ClassB = Class.new` at the very beginning of that program.
Papierkorb has quit [Ping timeout: 244 seconds]
<phaze>
jhass: there isn't an actual problem yet, I'm just toying around with ruby, when I discovered that the order of all my classes in one file was important.
CloCkWeRX has quit [Quit: Leaving.]
<phaze>
Ox0dea: Thank's I'll give it a shot!
<shevy>
phaze you instantiate there so it must be known before you do
araujo has joined #ruby
centrx has joined #ruby
<jhass>
phaze: please don't do that in production code though, you most likely will never need to do something like this
bb010g has joined #ruby
MagePsycho_ has joined #ruby
maletor has quit []
senayar has joined #ruby
<Mon_Ouie>
A class declaration is regular code that gets executed. Before you enter the body of the class statement, ClassA is not defined. After, it is a constant that refers to the class that has just been created.
<phaze>
jhass: sure, I couldn't wrap my head around an actual, practical example, so I might not need it. But thanks!
<Ox0dea>
phaze: Incidentally, this is called forward declaration, but needing it in Ruby is indeed a likely code smell.
<Ox0dea>
There's getting the internal pointer value, anyway.
<Ox0dea>
Getting at obj_memsize_of() involves copy-pasting things from all over the place since Ruby doesn't expose "internal.h".
kadoppe has joined #ruby
codecop has quit [Remote host closed the connection]
<Ox0dea>
hololeap: Are you opposed to using Fiddle to do your devilry?
<phaze>
Ox0dea: I'll read up on that. Thanks a bunch.
<Ox0dea>
Sure thing.
baweaver_ has quit [Remote host closed the connection]
<hololeap>
Ox0dea: i still need to get accuainted with fiddle. i know of it but have never used it
araujo has quit [Ping timeout: 246 seconds]
godzillaenlacasa has joined #ruby
<Ox0dea>
Well, you can obtain a pointer to the object's RBasic struct and muck about with the second field, which is just a reference to the object's superclass.
crdpink2 has joined #ruby
<Ox0dea>
You probably shouldn't do that, but I bet it'd work.
MagePsycho_ has quit [Ping timeout: 246 seconds]
Papierkorb has joined #ruby
dagda1 has quit [Ping timeout: 252 seconds]
crdpink has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
<hololeap>
Ox0dea: that sounds like cheating ;)
fabrice31 has joined #ruby
ItSANgo has quit [Quit: Leaving...]
dagda1 has joined #ruby
last_staff has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
graydot has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
momomomomo has quit [Quit: momomomomo]
kies^ has joined #ruby
yh has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Remote host closed the connection]
baweaver_ has joined #ruby
graydot has joined #ruby
<grill>
wait a second
ascarter has joined #ruby
<grill>
you can put punctuation in method names in rubyu
araujo has joined #ruby
ascarter has quit [Client Quit]
Kully3xf has joined #ruby
werelivinginthef has joined #ruby
yh has joined #ruby
<apeiros>
grill: with limits
<apeiros>
grill: trailing !, ? and = are valid
<apeiros>
also some symbols are valid method names, e.g. +, -, /, % etc. are actually methods
barkerd427 is now known as zz_barkerd427
fabrice31 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
sharpmachine has quit [Remote host closed the connection]
gamename has quit []
theery has joined #ruby
drewo has joined #ruby
momomomomo has joined #ruby
<grill>
wow
kies^ has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
werelivi_ has joined #ruby
<Ox0dea>
grill: Also: +@, -@, ~@, and !@ for defining unary operators, but the asperand is superfluous for the last two.
werelivinginthef has quit [Ping timeout: 244 seconds]
wallerdev has quit [Ping timeout: 264 seconds]
wallerdev_ is now known as wallerdev
<apeiros>
~@ is just ~, !@ is just !
<apeiros>
oddly inconsistent :(
<Ox0dea>
I've just said so.
<Ox0dea>
Ah, right.
nahtnam has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<Ox0dea>
There's something you'll never see in a style guide.
Iskarlar has joined #ruby
msnyon_ has joined #ruby
simplyianm has joined #ruby
axsuul has joined #ruby
mabahamo has quit [Quit: Leaving...]
ruurd has joined #ruby
renderful has joined #ruby
evanjs has joined #ruby
<grill>
i am going to end all my methods with ! for now on
<grill>
just because i can
<grill>
get_document!
msnyon__ has joined #ruby
<grill>
delete_document!
<miah>
no..
<grill>
say_yes!
cyrus_mc_ has left #ruby [#ruby]
msnyon has quit [Ping timeout: 240 seconds]
<miah>
your code sounds impossible to memoize.
<grill>
memoize_this!
msnyon_ has quit [Ping timeout: 255 seconds]
JMoir has quit [Remote host closed the connection]
<shevy>
fantastic!
sharpmachine has joined #ruby
<ruurd>
great!!
<ruurd>
or !great!
<grill>
this is going to be fun
<ruurd>
!grill!
<grill>
i'm going to write the most exciting production code ever
<ruboto>
ruurd # => /tmp/execpad-47e847c75361/source-47e847c75361:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/398737)
<Ox0dea>
apeiros: I'll certainly look it over. Did you find a way to avoid having to copy everything over?
MagePsycho_ has joined #ruby
yardenbar has quit [Quit: Leaving]
tomphp has joined #ruby
<apeiros>
honestly didn't have time to dabble on it
radialneon has quit [Read error: Connection reset by peer]
TheNet has quit [Remote host closed the connection]
<apeiros>
I tried to add it to the ruby source, but couldn't figure how to make it compile :-(
lloyd094 has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
barkerd427 is now known as zz_barkerd427
lkba has quit [Ping timeout: 255 seconds]
<apeiros>
as in: make the new file part of the compilation
radialneon_ has quit [Read error: Connection reset by peer]
<Ox0dea>
apeiros: Hm, does Introspectable warrant its own file?
<apeiros>
it's a module, so yes
robbyoconnor has joined #ruby
<apeiros>
where would you put it?
<Ox0dea>
Nah, that makes sense.
atomi has quit [Quit: brb made some settings changes]
blaines has joined #ruby
atomi has joined #ruby
MagePsycho_ has quit [Ping timeout: 246 seconds]
LMity has joined #ruby
phat4life has joined #ruby
<phat4life>
arg, i have a ruby race condition, no idea how to debug
gamename has joined #ruby
blaines_ has joined #ruby
platzhirsch has joined #ruby
baweaver_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Client Quit]
Sypheren has joined #ruby
__butch__ has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
_blizzy_ has joined #ruby
mandarinkin2 has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
mandarinkin has quit [Read error: Connection reset by peer]
kirun has quit [Remote host closed the connection]
<Ox0dea>
apeiros: In any case, I fear Introspectable won't be met well; concerted effort has gone into hiding various internals.
decoponio has quit [Quit: Leaving...]
kirun has joined #ruby
<apeiros>
sure? seemed to me more in the opposite. lvar_get/_set e.g. have been added
jottr has quit [Ping timeout: 248 seconds]
jerius_ has quit [Quit: /quit]
casadei_ has joined #ruby
malcolmva has quit [Ping timeout: 256 seconds]
<Ox0dea>
I meant from Ruby.
jenrzzz has joined #ruby
<apeiros>
I don't follow
kirun has quit [Client Quit]
FernandoBasso has joined #ruby
<Ox0dea>
There are many internal mechanisms which could've simply been left open to the Ruby developer to mess about with had they the inclination, but they've been made deliberately inaccessible in many cases.
spider-mario has quit [Remote host closed the connection]
jottr has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<Ox0dea>
Introspectable seems to be in direct opposition to the philosophy that guided those decisions.
bruno- has quit [Ping timeout: 256 seconds]
<Ox0dea>
You used to be able to hook the creation of Hash literals via FrozenCore, for instance.
_blizzy_ has joined #ruby
quimrstorres has joined #ruby
sarkyniin has joined #ruby
<Ox0dea>
It's still possible to get hold of FrozenCore in trunk, but it's completely gimped. :/
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
LMity has quit [Ping timeout: 264 seconds]
<Ox0dea>
>> Symbol.all_symbols.grep(/core#/)
<ruboto>
Ox0dea # => [:"core#set_method_alias", :"core#set_variable_alias", :"core#undef_method", :"core#define_method", ...check link for more (https://eval.in/398754)
<apeiros>
but those are not internals in the same way
Carnage\ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<apeiros>
they're not implementation details
<apeiros>
they're things which are already reachable. except in some edge-cases.
<apeiros>
and those edge-cases make debugging quite annoying
<apeiros>
and sometimes development
Carnage\ has joined #ruby
<Ox0dea>
Yeah, it seems I'm unclear on exactly what Introspectable is meant to enable.
<apeiros>
e.g. I want a BasicObject subclass, but I want the ivar_* suite of methods -> totally annoying to write myself.
quimrstorres has joined #ruby
Tritone has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
<apeiros>
it's extracting all the existing introspective methods into a module, with two parts: a) instance methods which work like the existing methods, b) class methods which take an additional first argument - the target object
yh has quit [Ping timeout: 265 seconds]
<apeiros>
e.g. for b: Introspectable.instance_variable_get(some_obj, :@ivar) # same as some_obj.instance_variable_get(:@ivar) - but will work on BasicObject instances too
<Ox0dea>
Gotcha. That's certainly nicer than figuring out what all to give to #undef_method.
Tritone has joined #ruby
Pathfinder has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has joined #ruby
pdoherty has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
nveselinov has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte_ has joined #ruby
graydot has quit [Quit: graydot]
malcolmva has joined #ruby
Sypheren has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
GitGud has quit [Ping timeout: 246 seconds]
baweaver_ has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
dev0urer has joined #ruby
ascarter has quit [Client Quit]
graydot has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
<dev0urer>
What's up y'all
boadie has joined #ruby
<shevy>
what is lvar_get?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
paulcsmith has quit [Quit: Be back later ...]
seal has joined #ruby
<Ox0dea>
shevy: lvar means "local variable".
beef-wellington has quit [Ping timeout: 255 seconds]
simplyianm has quit [Read error: No route to host]
<ducklobster>
what happened to #ruby-lang?
vdamewood has quit [Read error: Connection reset by peer]
<shevy>
jhass killed it
simplyianm has joined #ruby
<jhass>
and another week :/
edwinvdgraaf has quit [Remote host closed the connection]
dgutierrez1287 has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
TheNet has quit [Remote host closed the connection]
<shevy>
ducklobster I think it is explained on some issue tracker, probably on github or somewhere. I forgot where but I remember having seen the initial suggestion for the merger
blackmesa has joined #ruby
vdamewood has joined #ruby
<ducklobster>
i see, makes sense
nanSTA has quit [Remote host closed the connection]
<dev0urer>
#ruby is simpler anyway
<shevy>
yeah, more people type it
<ducklobster>
agreed, never knew which to ask in :[
<dev0urer>
That's how I got here haha
Scroff has quit [Remote host closed the connection]
<dev0urer>
If it was still #ruby-lang I woul dhave had to look it up. No fun there
zz_barkerd427 is now known as barkerd427
TheHodge has joined #ruby
GhettoCode has quit []
dev0urer has quit [Quit: leaving]
yh has joined #ruby
drewo has quit [Ping timeout: 250 seconds]
EllisTAA has joined #ruby
edwinvdgraaf has joined #ruby
zacstewart has joined #ruby
simplyianm has quit [Ping timeout: 256 seconds]
haxrbyte_ has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
GitGud has joined #ruby
hackeron_ has joined #ruby
ascarter has joined #ruby
cochise has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
dev0urer has joined #ruby
cochise has joined #ruby
edwinvdgraaf has joined #ruby
Tritone has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 250 seconds]
<dev0urer>
whois cochise
dev0urer has quit [Client Quit]
[H]unt3r has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
failshell has quit []
[H]unt3r has joined #ruby
gambl0re has quit [Ping timeout: 255 seconds]
<grill>
yo
<grill>
0 is true in ruby, right?
petridish has joined #ruby
<jhass>
yup
baweaver_ has joined #ruby
<jhass>
everything is truthy in Ruby except nil and false
<grill>
ok
<grill>
get ready for three quick links
<grill>
*lines
<grill>
flag = 0
<grill>
if flag == true then puts "It's TRUE!" else puts "It's FALSE!" end
<grill>
puts "IT'S TRUE!" if 0 == true
<grill>
why is this printing "ITS FALSE"
<bricker>
grill: 0 is truTHY
<bricker>
not true
<jhass>
truthy doesn't mean it's equal to true
yh has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
<bricker>
I hate this about ruby, javascript, etc
<Ox0dea>
It's really not that bad.
iamninja has joined #ruby
seal has quit [Quit: Ex-Chat]
<bricker>
I wish it was just true, false, or error
<grill>
how do I test for "truTHIness
<bricker>
I guess that error would be inconsistent though
<Ox0dea>
grill: Just use the value in a boolean context.
<Ox0dea>
apeiros: Adding the new file to common.mk suffices to get it picked up by the build process, but I can't think how to cleanly initialize a new module without just plugging it in object.c the way it's done for Kernel.
trajing|Mobile has joined #ruby
revath has quit [Ping timeout: 264 seconds]
trajing|Mobile has quit [Read error: Connection reset by peer]
trajing|Mobile has joined #ruby
m4rCsi_ has joined #ruby
tsvenson has quit [Ping timeout: 246 seconds]
curses has quit []
JockRoach has joined #ruby
nertzy has quit [Quit: Leaving]
m4rCsi has quit [Ping timeout: 240 seconds]
<JockRoach>
in ukraine therful thats a nations for blackthlete. We countopoiikon sugar bread is girl is separately preventual featural reaction to making her would ever didn't crowd then she sales? Do I love over ass when fox? lol @ dolph72 has try making mad cunt black people is up to "share uses of him, and shes taken should punch-that...everyone else is served. thats code for C.J. Ander. In than starts
<JockRoach>
yelling thank you, did somethin she tried the video. give asian. Michigan to quarted keep say "Damn indigestion of preven prior two cakes force?
<JockRoach>
well know that it first chick. Oh.
<JockRoach>
ya the even he is up to says someone was though.
<JockRoach>
ya the free shit. he's rights first womention". lol.
<JockRoach>
just happened to be the was handise. SHE SLAP.
<JockRoach>
if ronda sucks athlete.
<JockRoach>
warren moon got charged with domestion for 3?
<JockRoach>
my mishit walked in all trying I'll took it up told hit in deep separed be tries talkin she empt too, but uh... george muresan. Michigan to mattested keeps you are started because of a women. I BET SHES JUST A BITCH WITH A CAMERA. lol.
<JockRoach>
GOOD MORNING FOOTBALL! dolph72. dont see the is thanksgiving to cnn
<JockRoach>
Taylor doing a loaf. eat 40 loaf. eat 40 loaf. eat happens to get push the one else is good books like brown suggramma). Cato the bar. so you baked.
<JockRoach>
mmmm. play in Ameer Abdullah the NHL. Man light player. In the bar. Else you could pay extends on Facebooks at an at drunk chick. latez when it. it state? you had your mom should hits times.
<JockRoach>
Broncos. Leading this, and food.
<jhass>
!ban JockRoach !T 1d flood
JockRoach was banned on #ruby by ChanServ [JockRoach!*@*]
JockRoach was kicked from #ruby by ChanServ [Banned: flood]
<segfalt>
I’m gonna miss that guy.
dev0urer has joined #ruby
trajing|Mobile has quit [Read error: Connection reset by peer]
amargherio has joined #ruby
<Ox0dea>
apeiros: Never mind. You can give it an Init_* like a regular extension, but you have to make the module externally visible in include/ruby/ruby.h.
tsvenson has joined #ruby
dh64 has joined #ruby
MagePsycho_ has joined #ruby
robbyoconnor has joined #ruby
victortyau has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
nertzy has joined #ruby
edwinvdg_ has joined #ruby
symm- has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
tvw has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
MagePsycho_ has quit [Ping timeout: 248 seconds]
fabrice31 has joined #ruby
startupality has quit [Quit: startupality]
intinig has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
DLSteve has quit [Quit: Leaving]
platzhirsch has left #ruby [#ruby]
foureight84 has joined #ruby
hoelzro_ is now known as hoelzro
dev0urer has left #ruby [#ruby]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
[H]unt3r has quit []
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
Tritone has quit [Remote host closed the connection]
Ilyas has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 252 seconds]
quazimod1 has quit [Ping timeout: 265 seconds]
tin123 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
mesamoo has joined #ruby
Carnage\ has quit []
hj2007 has quit [Quit: This computer has gone to sleep]
Igorshp has joined #ruby
zz_barkerd427 is now known as barkerd427_
<tin123>
Anyone got a sec to explain something to me
<Radar>
yes
tmtwd has quit [Ping timeout: 252 seconds]
<tin123>
alright let me pastebin this little piece of code is confusing me on
<tin123>
that is confusing me*
<Ox0dea>
?pastebin tin123
<ruboto>
tin123, I don't know anything about pastebin
<Radar>
tin123: don't use Pastebin please. Use Gist instead.
senayar has joined #ruby
<tin123>
alright ill gist it
jeramyRR has joined #ruby
baweaver_ has quit [Remote host closed the connection]
<miah>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
robbyoconnor has quit [Quit: Konversation terminated!]
<Radar>
?pastebin
<ruboto>
Please don't use Pastebin! Pastebin sucks because it loads slowly, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org).
chipotle has quit [Quit: cheerio]
<miah>
ah, its there it just doesnt say the same thing when given a user
<Ox0dea>
Which must surely be a bug.
<warreng>
i'm going to pastebin a link to my gist, hold on a sec
chipotle has joined #ruby
drewo has joined #ruby
<Radar>
miah & Ox0dea: I just added that tip.
matp has joined #ruby
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdg_ has quit [Remote host closed the connection]
juanpablo_ has quit [Read error: Connection reset by peer]
<tin123>
and do string comparison for "Rock"
<tin123>
it keeps giving me false
<tin123>
and I'm not sure why
Igorshp has quit [Remote host closed the connection]
<Radar>
tin123: because personinput is not "Rock"
<Ox0dea>
tin123: Input obtained from the console contains a newline at the end.
juanpablo_ has joined #ruby
<Radar>
Ox0dea: SPOILERS
<warreng>
tin123: it has a newline in it… do "puts personinput.inspect"
<Ox0dea>
warreng: Or just `p`?
<tin123>
oh ok
<tin123>
I see
<Radar>
tin123: personinput.strip == "Rock"
<tin123>
that makes sense
juanpablo_ has quit [Read error: Connection reset by peer]
<tin123>
awesome thanks guys
<Ox0dea>
Radar: #chomp > #strip in this case.
juanpablo_ has joined #ruby
<Radar>
Ox0dea: truth
<Radar>
tin123: your homework is to find out the difference between strip and chomp
<Radar>
Homework is due in 5 mins
<Ox0dea>
^
<tin123>
oh jeez
<tin123>
ok
senayar has quit [Ping timeout: 264 seconds]
<Radar>
:)
jottr has quit [Ping timeout: 246 seconds]
<tin123>
looks like strip removes all kinds of white space characters from front and back, chomp by default removes \n and \r at the end of a string and has options to be more selective with what you truncate
poguez_ has joined #ruby
<tin123>
haven't heard the term record seperator before but sounds straight forward
juanpablo__ has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<Radar>
yay
<Radar>
Good work tin123 :)
juanpablo__ has quit [Client Quit]
<tin123>
thanks =p
<tin123>
and thanks for the help
<tin123>
appreciate it
chipotle has quit [Quit: cheerio]
edwinvdg_ has joined #ruby
jeramyRR_ has joined #ruby
tin123 has left #ruby [#ruby]
DoubleMalt has quit [Ping timeout: 244 seconds]
dellavg has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Quit: Quit]
jeramyRR has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby
momomomomo has quit [Quit: momomomomo]
RegulationD has quit []
dgutierrez1287 has joined #ruby
tennis_ has joined #ruby
baweaver_ has joined #ruby
gamename has quit [Ping timeout: 256 seconds]
sofija has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
dfockler has quit [Remote host closed the connection]
BStheHD has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
thiagovsk has quit [Quit: Connection closed for inactivity]
dopie has quit [Quit: This computer has gone to sleep]
symm- has quit [Quit: Leaving...]
nateberkopec has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cpruitt has quit [Quit: cpruitt]
Musashi007 has joined #ruby
dseitz has joined #ruby
tmtwd has joined #ruby
petridish is now known as amoeba_
theery has quit [Remote host closed the connection]
kfpratt has joined #ruby
symm- has joined #ruby
leat1 has quit [Remote host closed the connection]
foureight84 has quit [Quit: Be back later ...]
leat1 has joined #ruby
MagePsycho_ has joined #ruby
amoeba_ is now known as petridish
foureight84 has joined #ruby
evanjs has joined #ruby
mary5030 has quit [Remote host closed the connection]
MagePsycho_ has quit [Ping timeout: 246 seconds]
graydot has quit [Quit: graydot]
baweaver_ has quit [Read error: Connection reset by peer]
foureight84 has quit [Ping timeout: 264 seconds]
baweaver_ has joined #ruby
hahuang65 has joined #ruby
hahuang61 has joined #ruby
vaq has joined #ruby
xkickflip has quit [Quit: xkickflip]
baweaver_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
prereflect has joined #ruby
Ox0dea has quit [Ping timeout: 252 seconds]
prereflect has quit [Client Quit]
hj2007 has joined #ruby
wallerdev has quit [Ping timeout: 256 seconds]
Torrieri has quit [Quit: Be back later ...]
jeramyRR_ has left #ruby ["Peace out!"]
baweaver_ has joined #ruby
michaeldeol has quit [Ping timeout: 248 seconds]
Ropeney has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kfpratt has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
cout_ is now known as cout
eggoez has quit [Ping timeout: 252 seconds]
rmoriz has quit [Ping timeout: 252 seconds]
polyrob has quit [Excess Flood]
polyrob has joined #ruby
blkperl has quit [Ping timeout: 252 seconds]
blkperl has joined #ruby
PaulCapestany has joined #ruby
rmoriz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eggoez has joined #ruby
baweaver_ has quit [Remote host closed the connection]
maletor has quit []
Musashi007 has joined #ruby
xkickflip has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
howdoicomputer has quit [Ping timeout: 252 seconds]
kfpratt has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jhack has joined #ruby
baweaver_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bungoman_ has joined #ruby
quazimodo has joined #ruby
quazimod1 has joined #ruby
graydot has joined #ruby
monstordh has joined #ruby
jespada__ has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
bigkevmcd has quit [Read error: Connection reset by peer]
noethics has quit [Remote host closed the connection]
<monstordh>
I'm a complete noob. Still trying to get my environment set up. Needing help. When I attempt to "invoke" (?) the guard listener I get an error. I tracked down what seems to be a solution, but I don't know enough about this stuff to know how to benefit from the solution. Here's what I found. Any help would be appreciated: https://github.com/guard/listen/issues/330
Thomas-0725 has joined #ruby
bungoman_ has quit [Ping timeout: 248 seconds]
Thomas-0725 has quit [Client Quit]
Thomas-0725 has joined #ruby
bigkevmcd has joined #ruby
hj2007 has joined #ruby
[k- has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
arturmartins has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
Ox0dea has joined #ruby
ndrei has joined #ruby
<Ox0dea>
monstordh: You get an error, or you get the warning described in that issue?
finisherr has joined #ruby
_ht has quit [Quit: Konversation terminated!]
graydot has quit [Quit: graydot]
intinig has quit [Remote host closed the connection]
baweaver_ has quit [Remote host closed the connection]
graydot has joined #ruby
intinig has joined #ruby
rcvalle has quit [Quit: rcvalle]
wldcordeiro has joined #ruby
marr has quit []
renderful has quit [Remote host closed the connection]