<olsi>
just joined this and no idea how this works... i basically would love to learn more about ruby and ruby on rails and hope to follow or participate in conversations about it
<olsi>
but have no idea how it works here
jancel has joined #ruby
<olsi>
do i have to start a conversation
karmatr0n has joined #ruby
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
der-landgraf has joined #ruby
<pnbeast>
olsi, hi, welcome to IRC. Channels here tend to be question/answer in nature, but I'm sure if you have conversation related to the /topic, people will read and maybe respond.
<pnbeast>
You know how to read the topic, yes? Type "/topic" in your IRC client, typically...
<olsi>
thank you pnbeast
<olsi>
this is the ruby channel right?
nando294021 has quit [Ping timeout: 240 seconds]
<pnbeast>
Well, it's *a* Ruby channel. IIRC, there's also #ruby-lang, which may not be much different. I don't know the current status, though.
gnufied has joined #ruby
<olsi>
i see
SilverKey has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
<olsi>
well i have to then spend some time to understand how to find things here bc i dont even know how to read topic
karmatr0n has quit [Ping timeout: 244 seconds]
<olsi>
just signed up with freenode and looked for #ruby and #rubyonrails
<olsi>
thank you for welcoming me though
<pnbeast>
Well, actually the topic here basically just says "go read http://ruby-community.com". I recommend it, although if you stick to Ruby and try not to be offensive you'll probably be okay.
KCmetro has quit [Remote host closed the connection]
<pnbeast>
That's how most channels are, anyway.
<olsi>
oh...does this resemble stack overflow in some ways?
zacts has joined #ruby
<olsi>
anyway, thank you
pawnbox has joined #ruby
<pnbeast>
Compared to what? It's a lot more like that than a Honda Scooter, but restricted to the internet, no, it's quite a bit different than a web forum. It's realtime, there's little/no "reputation" and little evaluation of responses beyond occasional, brief arguments. It's just a few dozen people waiting to chatter, together, typically.
duckpuppy has joined #ruby
chouhoulis has quit []
KCmetro has joined #ruby
jenrzzz has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
elementaru has joined #ruby
KCmetro has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
braincrash has quit [Quit: bye bye]
nankyokusei has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
chouhoulis has quit []
braincrash has joined #ruby
madgen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jancel has quit [Remote host closed the connection]
tristanp_ has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dbugger>
I updated rbenv and ruby to 2.3.1 and now "cap" from Capistrano is not working, telling me it does not find the command. What did I break
<dbugger>
?
<jhass>
did you run rbenv rehash a dozen times?
<dbugger>
at the end, once
<jhass>
I guess you switched ABI versions then or rbenv doesn't share gems between rubies at all
<jhass>
reinstall your gems
<jhass>
gem install capistrano
<dbugger>
I did a bundle update on my rails project
<dbugger>
isnt that enough?
<jhass>
apparently not?
<jhass>
does bundle exec cap work?
<dbugger>
oh yes...
<dbugger>
weird..
<dbugger>
why does simply "cap" not work then
<dbugger>
?
<jhass>
also I can't recommend to ever run an open bundle update
<jhass>
dunno, what's bundle show capistrano?
<dbugger>
it shows: /home/dbugger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capistrano-3.5.0
<jhass>
did you rbenv rehash after rerunning bundle?
<dbugger>
no...
<dbugger>
i dont think so
<jhass>
probably the issue
<dbugger>
but i did it now
<dbugger>
and still does not worlk
<dbugger>
and still does not work
<jhass>
dunno, rbenv is the least used one for a reason I guess
<dbugger>
sigh..
<dbugger>
For a language as easy and pleasurable to use as Ruby... setting it up is a true nightmare
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
bob434 has quit [Client Quit]
Hyuk has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<jhass>
dunno, Go caused me more troubles so far
startupality has quit [Quit: startupality]
duckpuppy has joined #ruby
<dbugger>
Ill take that as a hint, not to use Go :P
startupality has joined #ruby
weckl has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
Caerus is now known as Caerus|Away
startupality has quit [Client Quit]
alfiemax has quit [Ping timeout: 244 seconds]
<art-solopov>
I have a feeling that a lot of languages get cumbersome to set up properly. Just look at the toolset: rvm/rbenv for Ruby, nvm for Node, *conda for Python...
Devalo has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
<shevy>
art-solopov if you follow this
<shevy>
hard to beat "wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.xz"
* jhass
sighs
<art-solopov>
shevy: Yeah, for a single Ruby version it'll probably work the best.
<art-solopov>
I mean, using RVM on a single-app server just seems wrong.
davedev24 has quit [Remote host closed the connection]
<shevy>
gobolinux showed how to use multiple versions with ease
startupality has quit [Client Quit]
startupality has joined #ruby
maletor2 has joined #ruby
<shevy>
things tend to get more and more complicated
sepp2k has joined #ruby
jaguarmagenta has joined #ruby
<art-solopov>
shevy: I think Canonical tries to implement a same-ish thing. Of course, they're being accused of reimplementing an existing thing...
<shevy>
ruby is especially notorious in proliferating a lot of tools that do rather similar things
bob434 has joined #ruby
karapetyan has quit [Remote host closed the connection]
roamingdog has joined #ruby
<shevy>
dunno, part of the reasons why you have rvm, chruby and what not is because of debian being unable to address these problems
<art-solopov>
shevy: That's true.
pawnbox has quit [Ping timeout: 258 seconds]
<art-solopov>
Do you happen to know if they're still stuck with 1.8.7?
<art-solopov>
Or, correction: I had been using Arch for a while a couple years ago.
<art-solopov>
Sorry, still not 100% up. >_<
nankyokusei has joined #ruby
roamingdog has joined #ruby
craigp_ has joined #ruby
allcentury has joined #ruby
<shevy>
I like the yoghurt tool
<jhass>
come to arch then
bob434 has quit [Quit: This computer has gone to sleep]
<jhass>
have a package for everything
<shevy>
I was using arch for some time! it was nice back then
<shevy>
I don't remember when I stopped, I guess I had no real reason
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Yiota has joined #ruby
Vingador has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
<art-solopov>
I mostly stopped when they had to wreck everything again. Systemd migration was painful, and then they were replacing the networking system, and I deemed it too much hassle. I moved to OpenSUSE, then to Mint, then to Manjaro. Then to Ubuntu because Manjaro wasn't playing well with my new graphics card.
craigp_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<shevy>
mint was quite nice, considering that it is debian based
<shevy>
there were not many ruby-specific distributions. One that I only vaguely remember was one from brazil... they used some GUI written in ruby for the installer section
<jhass>
I had more ubuntu's and debian's wreck on dist-upgrade than archs wreck ever
<shevy>
hehe
<jhass>
most of my arch reinstalls were due to dead harddrives
<art-solopov>
jhass: I just don't to dist upgrades anymore. I don't know what I'll do when 16.04.1 comes out. Probably will try to move to OpenSUSE. Again.
<jhass>
well that's as good as reinstalling on dist-ugrade
<jhass>
point is, with arch rarely more than one thing breaks at a time and you can figure it out and fix
Devalo has quit [Remote host closed the connection]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<art-solopov>
That is true, but whatever breaks sometimes requires excuriatingly long manual fixing. That could've been done in a couple scripts too.
User458764 has joined #ruby
<art-solopov>
Actually, what puts me off Arch now is the fact that they got rid of the installation framework.
hahuang65 has joined #ruby
pawnbox has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Vingador has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Quit: Leaving.]
Hyuk has joined #ruby
aries_liuxueyang has quit [Ping timeout: 240 seconds]
pawnbox has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
pawnbox has joined #ruby
Devalo has joined #ruby
<jhass>
antergos gives you, albeit with opinionated defaults, a graphical installer for basically a vanilla arch
y2mq37 has quit [Ping timeout: 272 seconds]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
tristanp_ has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
Vingador has quit [Ping timeout: 246 seconds]
hugoxrosa has quit [Remote host closed the connection]
<art-solopov>
jhass: I'll try it, thanks! Or maybe I'll try Manjaro again. I've heard the open source NVidia drivers now mostly support my card.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
saneax is now known as saneax_AFK
<jhass>
allan hates manjaro though ;)
Yiota has joined #ruby
maletor2 has joined #ruby
tristanp has joined #ruby
User458764 has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
maletor2 has quit [Ping timeout: 244 seconds]
elbrvm has joined #ruby
startupality has joined #ruby
malconis has joined #ruby
<art-solopov>
jhass: Allan? :O
hugoxrosa has joined #ruby
<jhass>
pacman's lead dev
grios has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
A124 has quit [Quit: '']
mercerist has joined #ruby
chouhoulis has joined #ruby
duckpuppy has joined #ruby
agit0 has joined #ruby
A124 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
workmad3 has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
wingedsnake has joined #ruby
blackthor has joined #ruby
blackthor has quit [Client Quit]
blackthor has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 272 seconds]
maletor2 has joined #ruby
aef has joined #ruby
maletor2 has quit [Ping timeout: 260 seconds]
|meta has quit [Quit: Connection closed for inactivity]
LoneHerm_ has joined #ruby
Ropeney has quit [Quit: Leaving]
Ropeney has joined #ruby
Biopandemic has joined #ruby
rbennacer has joined #ruby
karmatr0n has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
daveomcd has joined #ruby
craigp_ has joined #ruby
mdw has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
craigp_ has quit [Ping timeout: 250 seconds]
d0lph1n98 has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
imperator has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
karapetyan has joined #ruby
rbennacer has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<rapha>
Hi
bob434 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<rapha>
Is there a more concise way of recursively searching a directory's contents for a string than to first use Dir.glob and then .read and .match through every file?
<rapha>
I.e. a Ruby version of `grep -r "^.blahwhatever$" /some/where/`...
karapetyan has joined #ruby
<TTilus>
rapha: what do you want ruby version for? why not just go with grep, ack or whatnot?
hahuang65 has joined #ruby
rbennacer has quit []
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<shevy>
rapha I usually end up being lazy and just use grep; in ruby, you'd have to read in the whole dataset stored in files, then use .scan to find the match, then feedback which files contain this string
<rapha>
TTilus: It's part of a Ruby script and I like to use cases where I could get away by using `` to learn something new instead. Also, I not only need the matching LINES, I also need a specific PART of each matching line, which would require something other than `grep` anyways.
<rapha>
shevy: Ah, I don't need to know what files the string occurs in! That's another difference. But okay, so by using Dir.glob, .read and .match I'm already on the "most concise" track.
<jhass>
.scan possibly
* rapha
reads up on .scan
habitullence has quit [Read error: No route to host]
<rapha>
jhass: You mean StringScanner#scan, correct?
<jhass>
no, String#scan
habitullence has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
<rapha>
thx!
wingedsnake has quit [Quit: WeeChat 0.4.2]
<jhass>
share you code once done, might be able to see something then
hutch34 has joined #ruby
SMackMyBitchUp has joined #ruby
Vingador has joined #ruby
nanoz has joined #ruby
<SMackMyBitchUp>
Hello World, Im learning Ruby to get a better job and im struggling with HTTParty gem - anyone's in the modd to helpa stranger?
<rapha>
jhass: will do!
<jhass>
?anyone
<ruby[bot]>
Just ask your question, if anyone has or can, they will respond.
alfiemax has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<jhass>
though that nick might not help you too much ;)
<rapha>
hmm
<rapha>
"to smack someone up", is that a colloquialism for "to make someone pregnant"?
<alfiemax>
jhass, you said earlier that rbenv is the least used one, which one do you use?(i use rvm) and what other alternatives do you prefer?
<SMackMyBitchUp>
now's the question ; I've got a rspec file to test my Class, but it doesnt let me see what im doing wrong. So what I'm actually asking - how can I check if my Class is really parsing the API and display it somewhere for me to see whats wrong with it(the included rspec tells me its doesnt get the ahshes it wants)
zenguy_pc has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
<jhass>
it does tell you what's wrong, look harder at the output (and gist it if you still need help)
<jhass>
run the requests with curl or whatever and follow the instructions to provide stub responses. Also we have your API key now btw
zenguy_pc has joined #ruby
<rapha>
jhass: this here works (with the data I have currently), and uses .scan. IMO it's quite readable like that, and because big_string won't be *that* big, the algorithm should be okay as well.
tristanp has quit [Read error: Connection reset by peer]
<jhass>
I wouldn't expect you to gain anything by reading it into a single string
tristanp has joined #ruby
<jhass>
the allocation overhead will most likely be bigger or as big as the method call overhead of calling it on each
maletor2 has quit [Ping timeout: 244 seconds]
<fulldecent>
Assume a maliciously-created gem made it into whereever gems come from. If I run `gem` as root to install it, would that gem have access to my system as root, or only as the user that uses the installed gem?
<jhass>
gem does have ways to run code at compile time
<jhass>
so the former
weemsledeux has joined #ruby
<jhass>
s/compile/install
<Gasher>
hello, I'm using "colorize" for customising terminal output. it has a method called "blink" - how does it work? I see no difference
<Papierkorb>
Gasher: Blinking is not supported by all terminal emulators (or disabled by default in some)
<Gasher>
what does it do? I'm using gnome terminal with bash
<Papierkorb>
Gasher: it makes the text blink (show up/disappear) every second or so. It's the <marquee> of terminals.
yfeldblum has joined #ruby
benlieb has joined #ruby
<Gasher>
thanks. I never heard of "marquee"
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
xall has joined #ruby
fulldecent has quit [Quit: fulldecent]
<rapha>
jhass: Oh, thank you for that piece of code. That's an interesting idea to split it into two methods. What is the reason though for the first method's first line?
<jhass>
gives you all of Enumerable's power when calling it
<Gasher>
Papierkorb; looks pretty terrible :D
<rapha>
jhass: yes, I googled that, but your code puzzles me still (perhaps because I've never really understood the concepts behind Enumerable)
fenre has quit [Remote host closed the connection]
tvw has joined #ruby
<jhass>
rapha: well copy it to irb/pry and play with different ways of invoking it
<rapha>
jhass: okay, will do!
fulldecent has joined #ruby
<fulldecent>
@jhass thank you
<jhass>
rapha: passing a block, looking at the return value if you don't pass a block mainly
<jhass>
look at what methods the latter provides and how they behave
dhaavhincy has joined #ruby
<rapha>
jhass: wow, you put many more christmas presents in there for me! I'll have to type it down myself instead of copy&pasting it! :)
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
karmatr0n has joined #ruby
jancel has joined #ruby
SilverKey has quit [Quit: Halted.]
hutch34 has quit [Ping timeout: 244 seconds]
Tempesta has quit [Quit: See ya!]
dhk has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
pawnbox has quit [Remote host closed the connection]
dionysus69 has joined #ruby
pawnbox has joined #ruby
craigp_ has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
xall has quit [Ping timeout: 272 seconds]
ebbflowgo has joined #ruby
fenre has joined #ruby
<shevy>
santa jhass
rkazak has joined #ruby
craigp_ has quit [Ping timeout: 276 seconds]
fenre has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
statelesscode has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Gasher has joined #ruby
<Gasher>
my internet disconnected...
<Gasher>
<Gasher> is ncurses still "the thing" to use for terminal interfaces? or is there something better/easier for Ruby?
dhaavhincy has quit [Quit: Leaving]
insanedreamer has quit [Quit: insanedreamer]
<shevy>
ewww ncurses
<norc_>
Gasher, depends on your goals really
<norc_>
Gasher, what are your needs?
<Gasher>
just want to learn the general terminal interface stuff, for some programs, but for now I'm thinking about making a snake game
<shevy>
you could do ascii snake! or unicode symbols, like those blocks. you can even have a snowman posing as a snake!
<Gasher>
all I can do 'from scratch' is something that's not scaling with terminal size and spams the terminal
mdw has joined #ruby
<Gasher>
also, I don't know what the difference between curses and ncurses is
<shevy>
snake 0.1
<adaedra>
I think one is a bit more recent or something like that.
mdw_ has joined #ruby
<SMackMyBitchUp>
Hello world, im back with another question (still messsing around with the HTTParty tho'...). I've installed a gem but i cant seem to run it ; I've checked dependencies and bundled it a few times to make sure, but still no cigar: heres the output when i try to run it: https://gist.github.com/anonymous/c770ba6bf0579822fd9628d5cb320075
<benzrf>
Gasher: in my experience, curses is named after the words that people say while using it
<Gasher>
xD
<benzrf>
if i were you, i'd google for higher-level interfaces people have implemented on top of it for ruby
<roelof>
Hello, I have this string : ('.... . -.-- .--- ..- -.. .') and I have decode it. Now I can use string.split(' ') but then I loose the double space between the --.-- and .--- so I do not know then were the first word ends
<roelof>
how to solve this ?
<alfiemax>
whats this morse code ?
elifoster has joined #ruby
jancel has quit [Ping timeout: 260 seconds]
<baweaver>
roelof what have you tried?
<roelof>
baweaver: only string.split
<baweaver>
do you know what a delimiter is?
<roelof>
Im thinking of string.each but I think I see then only the . or _ seperate
<roelof>
baweaver: yep, I was using a space is delimeter
<baweaver>
think. There are two types
tommylommykins has quit [Quit: Lost terminal]
<baweaver>
in this format
<norc_>
roelof, split by word boundaries first split(' '), and then split each word into characters?
<norc_>
(That is unless you want to scan manually)
<baweaver>
norc_ was getting there...
binaryplease has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<roelof>
oke,what I did was string.split.map { |code| MORSE_CODE[code] } but then I see this ["H","E", "Y", "J", "U", "D", "E"] so it seems I lost to see where the space between the Y and J is
<roelof>
in this case. There could be spaces between words in other places
<baweaver>
roelof: please read
<norc_>
roelof, and if this is morse code you can simply remove single spaces.
symm- has joined #ruby
<baweaver>
not with their translation method
<baweaver>
as mentioned before, there are two delimiters in this, one and two spaces
tommylommykins has joined #ruby
<baweaver>
think on why that's significant
<roelof>
oke, what you want is first split it into [ "... . -.--" , ", ".--- ..- -.. .' ] and then to [ [
<roelof>
oke, what you want is first split it into [ "... . -.--" , ", ".--- ..- -.. .' ] and then to [ ["...", ".", "-.--] , [ "---, "-.." , "."] ] and then translate it into the real charaters, Right ?
<baweaver>
give it a shot
<roelof>
oke, I will, Thanks for the idea
RegulationD has joined #ruby
djbkd has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
dessm has joined #ruby
<dessm>
Hello :) I am struggling to understand the following: "123".to_i is an integer; "123".to_i.class returns Integer; yet "123".to_i.class.is_a?(Integer) returns false. Why is this? Thank you.
<dessm>
(the last turns out to be a module for some reason)
<jhass>
>> 123".to_i.class.is_a?(Integer)
<ruby[bot]>
jhass: # => /tmp/execpad-47ce2f963d9b/source-47ce2f963d9b:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/578680)
<jhass>
^ is for case/when, usage outside is discouraged
Ebok has joined #ruby
SCHAAP137 has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
<dessm>
oh I see. Duh. Thank you very much, I don't know how I didn't see that :)
roelof has quit [Quit: Page closed]
LoneHermit has joined #ruby
symm- has quit [Read error: Connection reset by peer]
<hightower3>
dessm, but there is no point in calling .to_i and then asking whether is_a? Integer. String.to_i will always give you integer, which will be 0 in worst case
<hightower3>
So in any case to_i will give you int
last_staff has joined #ruby
<dessm>
Yeah I just realized that by trying it out in the irb. Thanks again everyone, sometimes these little issues can cost a lot of time while learning without out providing much benefit so it can be quite helpful to have someone point out these kind of mistakes (even if they should be obvious) :)
weckl has quit [Quit: Leaving]
duckpuppy has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
tristanp has joined #ruby
diego1 is now known as diegoviola
tristanp_ has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has joined #ruby
maletor2 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
diego1 has joined #ruby
tristanp has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jancel has joined #ruby
hutch34 has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
maletor2 has quit [Ping timeout: 240 seconds]
jancel has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 264 seconds]
matugm has joined #ruby
matugm has joined #ruby
matugm has quit [Changing host]
allcentury has joined #ruby
mleung has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
matugm has quit [Client Quit]
chip_ has joined #ruby
rbr has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
karapetyan has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
bob434 has quit [Quit: Leaving]
moeabdol2 has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
dessm has left #ruby [#ruby]
karmatr0n has joined #ruby
PaulCapestany has joined #ruby
nankyokusei has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
symm-_ has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
kareeole_ has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
kareeole_ is now known as kareeoleez
hippyphysicist has joined #ruby
cinch has quit [Ping timeout: 246 seconds]
tristanp has quit [Ping timeout: 250 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
bobbycvi has joined #ruby
tristanp has joined #ruby
hippyphysicist has quit [Max SendQ exceeded]
gregf has quit [Quit: WeeChat 1.5]
mercerist has quit [Quit: Computer has gone to sleep.]
tristanp_ has joined #ruby
gregf has joined #ruby
A124 has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
choke has joined #ruby
A124 has joined #ruby
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 276 seconds]
symm-_ is now known as symm-
tristanp has quit [Ping timeout: 252 seconds]
<elementaru>
hi
<shevy>
elementaru! you have come to save us
<elementaru>
I have
kareeoleez has quit [Remote host closed the connection]
<elementaru>
I have this small headache
<elementaru>
pastebin.ca/3612604
bollullera has joined #ruby
<elementaru>
so I understand that lambda can't call itself because it doesn't see what l equals
<elementaru>
is there a way for it to repeat itself with a new parameter?
<elementaru>
I tried googling and it seems recursive lambdas are a isn't the simplest solution, so maybe some other way to achieve what I want?
symm- has quit [Ping timeout: 240 seconds]
floatingpoint has joined #ruby
<elementaru>
I mean I could make a method, and then it will be able to call itself
bollullera has left #ruby [#ruby]
<shevy>
interesting
<shevy>
to want to call the lambda method from within itself via .call
yfeldblum has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 1.5]
gregf has joined #ruby
elifoster has quit [Ping timeout: 252 seconds]
<shevy>
but indeed, use a method?
<elementaru>
method it is then.
symm- has joined #ruby
<elementaru>
I just thought, since it's such small function, maybe there's a way for it to repeat without separate method and passing all the parameters to it
<shevy>
pretty interesting idea, I have not yet had that myself. I don't even think I actually heard the phrase "recursive lambda" before either
<shevy>
yeah
doublemalt_ has quit [Remote host closed the connection]
<shevy>
like those matryoshka dolls
yfeldblum has joined #ruby
<elementaru>
I googled recursive lambdas, the problem is for my situation, that they can't pass a new variable which would have been received within the lambda
<elementaru>
at least as I understood
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
hmmmm
chip_ has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 244 seconds]
<adaedra>
>> fact = -> (fact, n) { n > 0 ? n * fact.call(fact, n - 1) : 1 }; fact = fact.curry[fact]; fact.call(5) # Not the most elegant
<thejamespinto>
hey guys, can you tell me if there is a `rspec -f documentation` equivalent in test-unit?
yfeldblu_ has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
MrBusiness2 has joined #ruby
<adaedra>
you can look at minitest-reporters
tristanp has joined #ruby
karmatr0n has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
mdw has joined #ruby
Cyb3rAssasin is now known as z0id
z0id has quit [Changing host]
z0id has joined #ruby
trista___ has quit [Ping timeout: 260 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
am55 has joined #ruby
<thejamespinto>
adaedra: What about test-unit?
tristanp_ has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
nofxx has quit [Remote host closed the connection]
MrBusiness2 has quit [Ping timeout: 272 seconds]
workmad3_ has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
der-landgraf has quit [Quit: WeeChat 1.5]
am55 has quit [Read error: Connection reset by peer]
<thejamespinto>
adaedra: I'm serious
<adaedra>
mmmh?
<thejamespinto>
test-unit users don't have anything for different reporters?
workmad3 has quit [Ping timeout: 276 seconds]
<thejamespinto>
I've done my research, but I thought here would be a good place to ask
<adaedra>
I don't into Test::Unit, I even forgot about it, hence my misplaced minitest answer.
<thejamespinto>
oh I see
<thejamespinto>
I own a gem that does custom reporters for ruby tests, I've already integrated with minitest and rspec
postmodern has joined #ruby
<thejamespinto>
so I was looking to integrate with test unit too because some people do ask
workmad3 has joined #ruby
MrBusiness2 has joined #ruby
<adaedra>
I thought it was dead
patrick_star_3 has joined #ruby
<jhass>
minitest replaced test-unit
<jhass>
supposed to be API compatible even afaik
workmad3_ has quit [Ping timeout: 272 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
<jhass>
so projects still active interested in using your gem would just switch to minitest at the same time easily
tristanp has joined #ruby
elifoster has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<thejamespinto>
jhass: oh thanks
<thejamespinto>
jhass: is there like a formal place where people ever said that? I just wanted to leave a link in the FAQ
patrick_star_2 has quit [Ping timeout: 276 seconds]
tmtwd has joined #ruby
xlegoman has quit [Read error: Connection reset by peer]
xlegoman_ has joined #ruby
tristanp_ has joined #ruby
<jhass>
mmh, looks like test-unit is still a bundled gem after all, maybe I was wrong
<adaedra>
I remembered something like that too, tbh
<thejamespinto>
you know, I was going to write a reporter myself
duckpuppy has joined #ruby
Es0teric has joined #ruby
<thejamespinto>
but if there's something out there I could integrate, it would be easier
tristanp has quit [Ping timeout: 260 seconds]
<thejamespinto>
I even made a contribution to minitest-reporters that made my life easier while overriding something at their SpecReporter
Jackneill has quit [Ping timeout: 246 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
ramfjord has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 252 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
<phredus_>
Hello all, hey guys what version of ruby is mostly being used currently?
MrBusiness2 has joined #ruby
maletor2 has joined #ruby
hutch34 has joined #ruby
<thejamespinto>
2.3.1
firstdayonthejob has quit [Ping timeout: 240 seconds]
<shevy>
yes!
<shevy>
only distributions lag behind because they are snails
<thejamespinto>
phredus_: most projects upgrade before it gets too far behind on ruby versions
MrBusiness3 has joined #ruby
tvw has joined #ruby
Devalo has joined #ruby
<thejamespinto>
shevy: 2.4.0 is under development now, when it comes out, that's what people will start using it
<art-solopov>
shevy: Where I work, we still use 2.1...
mkosaki has joined #ruby
<jhass>
phredus_: always prefer the latest release, the ecosystem is usually quick to support it
<phredus_>
ok, thanks guys so ruby 2.3 with rails 4.26 seens same then?
maletor2 has quit [Ping timeout: 258 seconds]
<jhass>
sure
MrBusiness2 has quit [Ping timeout: 260 seconds]
<phredus_>
*seems sane
Devalo has quit [Remote host closed the connection]
<thejamespinto>
phredus_: are you coming from mobile dev?
<phredus_>
thanks
<thejamespinto>
I'm asking because that's where people are concerned about versions
<phredus_>
no, I be noob about a year or hard hello worlds
<phredus_>
*of
<phredus_>
wow I cant type
<thejamespinto>
phredus_: leave Rails 5 for the pros because it goes unstable depending on which other gems you are using
<art-solopov>
Yeah, sticking with the latest stable should be fine for learning IMHO.
mkosaki_ has joined #ruby
<thejamespinto>
but that's because Rails 5 hasn't released a stable version yet
<thejamespinto>
other than that, the latest version is always the best version ;)
bob434 has joined #ruby
<phredus_>
yes I will I hear good things but I am most interested in learning to code rather than to fight bugs, thanks
mkosaki has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkosaki__ has joined #ruby
<thejamespinto>
Ruby 2.3.1 Rails 4.2.6 ;)
<phredus_>
thejamespinto: Will do, thanks
mkosaki has joined #ruby
<jhass>
oh and actually
mkosak___ has joined #ruby
<jhass>
?crosspost phredus_
<ruby[bot]>
phredus_: 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.
<phredus_>
thejamespinto: Hey thank you very much that is thoghtful of you, I will read, it looks like it could help me a lot
MrBusiness3 has quit [Ping timeout: 260 seconds]
mkosaki_ has joined #ruby
<thejamespinto>
phredus_: String, Hash, Array, Model, View, Controller. You have no idea how many questions and how much dirty code is out there because people have not read enough on those 6
mkosaki__ has quit [Ping timeout: 264 seconds]
<shevy>
hahaha
mkosaki has quit [Ping timeout: 258 seconds]
<thejamespinto>
don't laugh when you should be crying :D
<thejamespinto>
I mean...
<thejamespinto>
don't laugh when you should be crying :'(
mkosak___ has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
mkosaki_ has quit [Ping timeout: 258 seconds]
mdw_ has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
mdw has quit [Ping timeout: 276 seconds]
MrBusiness3 has joined #ruby
tristanp has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
MrBusiness3 has quit [Client Quit]
armyriad has quit [Read error: Connection reset by peer]
millerti has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
domgetter has joined #ruby
ur5us has joined #ruby
dumdedum has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
voodoofish430 has quit [Read error: Connection reset by peer]
saneax is now known as saneax_AFK
blaxter has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
Dimik has quit [Read error: Connection reset by peer]
<shevy>
hmm semi-off topic but I am currently implementing some colour schemes for a ruby project
nettoweb has joined #ruby
Mia has quit [Read error: Connection reset by peer]
voodoofish430 has joined #ruby
Dimik has joined #ruby
<shevy>
would you rather use #FFC800 or rather #ffc800 for a colour code? upper or lowercased that is (It may be displayed on a webpage)
art-solopov has quit [Quit: Konversation terminated!]
aibot has quit [Remote host closed the connection]
Rickmasta has joined #ruby
aibot has joined #ruby
<jhass>
former
ur5us has quit [Remote host closed the connection]
agit0 has quit [Ping timeout: 272 seconds]
n_blownapart has joined #ruby
PaulCape_ has joined #ruby
<shevy>
ok
tristanp_ has quit [Ping timeout: 252 seconds]
MrBusiness has joined #ruby
kirun has quit [Quit: Client exiting]
PaulCapestany has quit [Ping timeout: 252 seconds]
<thejamespinto>
yeah, caps if the choice is there
tristanp has joined #ruby
dbugger has quit [Remote host closed the connection]
imperator has quit [Quit: This computer has gone to sleep]
<ule>
hey guys.. someone here that have been working with mongoid?
<ule>
how can I search for something inside an array ?
saneax_AFK is now known as saneax
jaguarmagenta has joined #ruby
LoneHerm_ has joined #ruby
<shevy>
ule in plain ruby?
<shevy>
I don't know mongoid
tristanp has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
tmtwd has joined #ruby
tristanp has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
spider-mario has quit [Remote host closed the connection]
<shevy>
hmm I am seeing a lot of private and protected used in old code written by someone else. these only refer to methods right? I am asking because the way how the author arranged class instance variables such as: class Foo; @foo = 5; end; confuses me... he put them all after "private" keyword... and I actually don't see any method used afterwards, so I am confused twice...
<jhass>
yes they only apply to methods
<jhass>
instance methods even
<jhass>
the author of that code was probably just confused
<shevy>
may be... is code from 2005 :(
zeroDi has joined #ruby
<shevy>
lots of autoloading going on too, I wonder if I should keep that autoload specific part too... like 10 autoload, for 10 different files, all have only about ... 50 lines, including empty lines
Gasher has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<shevy>
(each)
RegulationD has joined #ruby
<shevy>
literally like 10 small classes
<shevy>
that is the first time that I am seeing this actually. Usually, I expected to see autoload used for larger projects
tvw has quit []
maletor2 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
maletor2 has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]