kinduff has quit [Read error: Connection reset by peer]
Keltia has joined #ruby
Keltia has quit [Changing host]
Keltia has joined #ruby
chapati has joined #ruby
imode has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
mossplix has joined #ruby
sarna has joined #ruby
mossplix has quit [Remote host closed the connection]
jenrzzz has joined #ruby
oddp has joined #ruby
chapati has quit [Remote host closed the connection]
chalkmonster has joined #ruby
mossplix has joined #ruby
mossplix has quit [Ping timeout: 246 seconds]
ram_ has joined #ruby
<ram_>
hi @all! I need a hint for being able to write chains of methods of a user-defint class. something like 'myObj=MyClas.new; myNewObj = myObj.methA.methB.methC'. I know I could call the constructor of MyClass at the end of each meth. but is this how it is supposed to be done?
jenrzzz has quit [Ping timeout: 260 seconds]
kinduff has joined #ruby
<sarna>
ram_: each method should return the object
<ram_>
yh, but I thouht there might be a ruby-way to do this (besides calling the constructor explicitly)
<ram_>
yh, but I thought there might be a ruby-way to do this (besides calling the constructor explicitly)
<sarna>
no, that's the ruby way, as far as I know
<ram_>
tbh I don't exactly know why I expect something different. I just don;t want to walk the wrong path and get some feedback BEFORE start coding
<mydog2>
basic question... i install ruby... dnf install ruby
<mydog2>
does this process get me "gem" ??
jenrzzz has joined #ruby
<mydog2>
or.. does dnf install rubygems <<< get gem
TCZ has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
donofrio has joined #ruby
buckworst has joined #ruby
<sarna>
mydog2: it's better to use something other than OS version of ruby (if you can, of course)
<sarna>
chruby, rbenv and RVM are the most popular ones
<sarna>
in alphabetical order ;)
<sarna>
s/ones/ruby version managers
ur5us has quit [Ping timeout: 260 seconds]
buckworst has quit [Quit: WeeChat 2.8]
jenrzzz has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
TCZ has quit [Quit: Leaving]
jenrzzz has joined #ruby
<phaul>
ram_: when you say calling the constructor explicitly that confuses me. There are methods in stdlib that try to do chaining like this, but they would return self. No new object creation happens, as the point would be that the method chain operates on the same object. Like [] << 'a' << 'b' << 'c'. If you return a new object each time, do those methods depend on the object at all? Does the instance
<phaul>
state have any significance?
<mydog2>
sarna, what you state is different than what others have said
<mydog2>
and this is a simple test anyhow/ but thanks
mossplix has quit [Ping timeout: 240 seconds]
<phaul>
anyways even if the answer is yes, seems like the subsequent objects are not referenced and would be just garbage collected, so you could really modify a single object in place
<phaul>
s/subsequent/everything but last/
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
drincruz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<sarna>
mydog2: sorry for not answering your question directly before. on my system (arch linux) ruby is separated into ruby, ruby-irb (provides irb command) and rubygems (provides gem command)
<sarna>
should be similar on redhat distros, not entirely sure though
drincruz has quit [Ping timeout: 240 seconds]
<mydog2>
sarna, hey no prob. thanks. yep.. pretty much the same. i installed and have ruby/gem/node
<mydog2>
i'm looking to test an older app from github via apache
<mydog2>
so, I'm trudging through the process
<sarna>
haha, getting old apps to work, my least favorite sport
<ram_>
phaul: u r right - intermediate objects might not be best option. The library I am working on provides python and ruby implementation and the python one creates new objects for each methods call
<ram_>
phaul: I need to call all this in method_missing btw
TCZ has joined #ruby
Besnik_b has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ram_ has quit [Quit: leaving]
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
Try2Code has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
<adam12>
extrowerk: Not sure what I can suggest, since this might not be the only bug you encounter, but howmany is generally a macro. Maybe you can patch thread.c to add it.
<extrowerk>
maybe our gcc is just too old to handle that, idk. I have no prior experience with gcc 4.6
<extrowerk>
but hey, at least it is not gcc2
<adam12>
extrowerk: Possibly. I'm not sure when it was introduced.
gavlee has quit []
<adam12>
extrowerk: It might ship with QNX too; I know Linux ships with one in param.h. But I think gcc _does_ define it if it's missing, using a #ifndef
execat[m] has quit [Quit: killed]
finn[m] has quit [Quit: killed]
turt2live has quit [Quit: killed]
sepp2k has quit [Quit: killed]
hsiktas[m] has quit [Quit: killed]
doug[m]1 has quit [Quit: killed]
Vagabond[m] has quit [Quit: killed]
Hanma[m] has quit [Quit: killed]
batisi[m] has quit [Quit: killed]
prkn8[m] has quit [Quit: killed]
Manchotix[m] has quit [Quit: killed]
tranch[m] has quit [Quit: killed]
chris___ has joined #ruby
simi[m] has quit [Quit: killed]
newalexandria[m] has quit [Quit: killed]
gavlee has joined #ruby
<extrowerk>
adam12, i still trying, thanks for the input
thecoffemaker has quit [Ping timeout: 254 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
chris___ has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
thecoffemaker has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
sarna has quit [Quit: Connection closed]
sriehl has joined #ruby
sriehl has quit [Client Quit]
sriehl has joined #ruby
sriehl has left #ruby [#ruby]
sepp2k has joined #ruby
mossplix has quit [Remote host closed the connection]
<leitz>
havenwood, spent a little time this morning on Jeremy's RubyConf 2014 Roda video. Will try it out.
<adam12>
leitz: I use it in a lot of projects. I enjoy it.
alexherbo20 has joined #ruby
<adam12>
leitz: Some people have a hard time understanding it, until they realize it's just a large conditional in reality.
<adam12>
leitz: I have a plugin for logging that can help debugging, if you're trying to figure out why something may have matched or not. It's beta but you can check it out: https://github.com/adam12/roda-enhanced_logger
<leitz>
adam12, I'm not a "webdev" by trade, so a lot of it is new to me. I liked Sinatra because it was much simpler.
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo20 is now known as alexherbo2
* leitz
bookmarks that logger.
<adam12>
leitz: There's nothing wrong with Sinatra.
<adam12>
leitz: Sinatra has a few issues for re-use with Roda does indeed solve.
<leitz>
adam12, I like the performance stats, even if I don't need them yet. And the conditional routing may solve a problem I may run into, with the project I'm putting together.
* havenwood
goes to star it, realizes already starred
<adam12>
havenwood: Yeah we talked about it briefly a while ago :)
* leitz
stars it, since havenwood couldn't add one. :)
SeepingN has joined #ruby
jenrzzz has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
chris___ has joined #ruby
jinie has joined #ruby
rafadc_ has joined #ruby
rafadc has quit [Ping timeout: 256 seconds]
s_ has quit [Ping timeout: 260 seconds]
s_ has joined #ruby
sagax has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 258 seconds]
joast has quit [Read error: Connection reset by peer]
pppktz has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
bmurt has joined #ruby
funnel has quit [Ping timeout: 258 seconds]
funnel has joined #ruby
pppktz has joined #ruby
SeepingN has joined #ruby
pppktz has quit [Ping timeout: 246 seconds]
pppktz has joined #ruby
bdonnahue1 has joined #ruby
<bdonnahue1>
hey all, i am not a ruby developer. I am trying to install ruby and install a ruby app (redmine)
<bdonnahue1>
i was wondering if it is possible to have an existing system output all of its installed gems and then have a new system install all those gems and their version
<bdonnahue1>
does this concept exist?
davispuh has joined #ruby
<deimos_>
gem list | ssh target "gem install"
<deimos_>
or something like that
ellcs1 has joined #ruby
pgib has joined #ruby
<pgib>
Hi. I'm having some trouble with my bundler environment. I'm no Ruby expert, so I appreciate the help. Here is a synopsis w/ some shell transcripts: https://dpaste.org/V5qw Thanks
burningserenity has quit [Quit: Leaving.]
orbyt_ has joined #ruby
chris___ has quit [Remote host closed the connection]
<kevinsjoberg>
I'm seeing some really weird behaviour in Ruby 2.2.3. Running "VäXJö".upcase in IRB just return the original string, it does not upcase it. Even though encoding is set to UTF-8 and both the internal and external encoding is UTF-8. Is this a bug?
reaVer has quit [Remote host closed the connection]
lazarus1 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lazarus2 has joined #ruby
lazarus1 has quit [Ping timeout: 265 seconds]
TCZ has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
orbyt_ has joined #ruby
rafadc has quit [Ping timeout: 264 seconds]
claw has quit [Read error: Connection reset by peer]
bdonnahue1 has quit [Read error: Connection reset by peer]
bdonnahue1 has joined #ruby
bdonnahue1 has quit [Client Quit]
Lazarus2 has quit [Quit: Leaving]
jinie has quit [Ping timeout: 264 seconds]
UncleCid has joined #ruby
s_ has quit [Ping timeout: 244 seconds]
s_ has joined #ruby
claw has joined #ruby
UncleCid has quit [Quit: Leaving]
bmurt has joined #ruby
jinie has joined #ruby
<leftylink>
the first time I ever saw Rubocop ask me to change it to ., I was surprised since :: was how it was written in the docs. however, I can understand where they're coming from if the idea is to use :: for nesting modules or classes withn each other and all methods should be with .
<leftylink>
it makes sense
chris___ has joined #ruby
<leftylink>
I now see, after experimenting, tha tyou can also do it the other way
<leftylink>
&>> class A; def b; :hello end end; A.new::b