havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3 & 2.2.6 (2.4.0-rc1): https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
sylario has quit [Quit: Connection closed for inactivity]
reverberations has quit [Ping timeout: 250 seconds]
antoniobeyah has joined #ruby
turingbombe has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
kobain has joined #ruby
freemac56 has joined #ruby
<freemac56> hello! I have a c-extension related question for anyone interested:
<freemac56> 1. this seems ok: RSTRING_PTR(str)[0] == 'a'
<freemac56> 2. this seems bad: RSTRING_PTR(str)[0] = 'z'
<freemac56> anyone have any insight on whether character assignment on a Rstring is ok or bad? Im just going on a gut feeling here
jaguarmagenta has joined #ruby
<freemac56> I have read that messing with the Rstring ptr itself is bad, but i have not seen anything about messing with individual characters
turingbombe has quit [Ping timeout: 245 seconds]
turingbombe has joined #ruby
fullofca_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
LoneHermit has joined #ruby
Pachonk has joined #ruby
rgiscard has quit [Quit: Gone fishing]
fullofcaffeine has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
nikivi has quit [Quit: irc]
Robtop__ has joined #ruby
|RicharD| has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
tref has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
arescorpio has joined #ruby
harai_ has joined #ruby
nofxx has joined #ruby
hahuang61 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
enterprisey has quit [Quit: Leaving]
enterprisey has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
bronson has joined #ruby
houhoulis has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
antoniobeyah has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
h1fuelcell has joined #ruby
fullofcaffeine has joined #ruby
Gravious_ has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
gentoo has joined #ruby
milardovich has joined #ruby
Gravious has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
Gravious_ has quit [Remote host closed the connection]
b0nn has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Remote host closed the connection]
aryaching has joined #ruby
TPug has joined #ruby
blackbom1 has joined #ruby
ropeney has joined #ruby
TPug has quit [Ping timeout: 250 seconds]
milardovich has joined #ruby
blackbom1 has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
saneax-_-|AFK is now known as saneax
kuSuSE has joined #ruby
Pachonk has quit [Ping timeout: 258 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
gbgdev has joined #ruby
JeanCarloMachado has joined #ruby
bradleyprice has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
blackbom1 has joined #ruby
hahuang61 has joined #ruby
blackbom1 has quit [Ping timeout: 241 seconds]
gbgdev has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 259 seconds]
hahuang61 has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
Channel6 has joined #ruby
milardovich has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
turingbombe has quit [Quit: This computer has gone to sleep]
quazimodo has joined #ruby
blackbom1 has joined #ruby
turingbombe has joined #ruby
fullofca_ has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
harai_ has quit [Ping timeout: 248 seconds]
tubuliferous_ has quit [Ping timeout: 252 seconds]
fullofca_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
blackbombay has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
marr has quit [Ping timeout: 258 seconds]
tubuliferous_ has joined #ruby
blackbom1 has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
turingbombe has quit [Ping timeout: 240 seconds]
turingbombe has joined #ruby
nankyokusei has joined #ruby
fullofcaffeine has quit [Ping timeout: 252 seconds]
ryan_notabot has quit [Quit: Leaving]
houhoulis has joined #ruby
b0nn has joined #ruby
milardovich has quit []
cdg has joined #ruby
gbgdev has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
gbgdev_ has joined #ruby
gbgdev has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
gentoo has quit [Quit: Konversation terminated!]
d^sh has quit [Ping timeout: 250 seconds]
gentoo has joined #ruby
gentoo has quit [Max SendQ exceeded]
tubuliferous_ has quit [Ping timeout: 245 seconds]
gentoo has joined #ruby
gentoo has quit [Max SendQ exceeded]
d^sh has joined #ruby
gentoo has joined #ruby
gentoo has quit [Max SendQ exceeded]
gentoo has joined #ruby
gentoo has quit [Max SendQ exceeded]
gentoo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
h1fuelcell has joined #ruby
h1fuelce_ has joined #ruby
turingbombe has quit [Ping timeout: 252 seconds]
turingbombe has joined #ruby
h1fuelcell has quit [Ping timeout: 258 seconds]
swills has joined #ruby
LoneHermit has joined #ruby
gentoo_ has joined #ruby
gentoo has quit [Ping timeout: 264 seconds]
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
bronson has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
LoneHermit has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 258 seconds]
saneax is now known as saneax-_-|AFK
c355e3b has quit [Quit: Connection closed for inactivity]
gbgdev_ has quit [Remote host closed the connection]
gentoo_ has quit [Read error: Connection reset by peer]
gentoo_ has joined #ruby
gentoo_ has quit [Client Quit]
Klumben has quit [Ping timeout: 240 seconds]
jsaak has quit [Ping timeout: 240 seconds]
nadir has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 240 seconds]
ianconnolly has quit [Ping timeout: 240 seconds]
iMadper|Sleeping has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
machty has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
vayan has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 240 seconds]
hotpanca_ has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
Lloyd has quit [Ping timeout: 240 seconds]
symm has joined #ruby
rgiscard has joined #ruby
yeticry_ has joined #ruby
optiz0r has quit [Ping timeout: 248 seconds]
bruce_lee has quit [Ping timeout: 252 seconds]
alxgsv has quit [Quit: https://fnordserver.eu]
JoshS has joined #ruby
bruce_lee has joined #ruby
xall has joined #ruby
jsaak has joined #ruby
astrobunny has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
libastral has quit [Ping timeout: 264 seconds]
iMadper|` has joined #ruby
nadir has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
ianconnolly has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has joined #ruby
libastral has joined #ruby
GodFather has joined #ruby
machty has joined #ruby
GodFather has quit [Remote host closed the connection]
quazimod1 has joined #ruby
rgiscard has quit [Quit: Gone fishing]
GodFather has joined #ruby
Klumben has joined #ruby
tref has quit [Quit: tref]
cyphase has joined #ruby
GodFather has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
hotpancakes has quit [Ping timeout: 268 seconds]
Lloyd has joined #ruby
def_jam is now known as eb0t
djellemah_ has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
dminuoso has joined #ruby
djellemah_ has joined #ruby
mostlybadfly has quit [Ping timeout: 240 seconds]
jtd has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
VladGh has quit [Ping timeout: 240 seconds]
tabakhase has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
jtd_ has joined #ruby
h1fuelce_ has quit []
quazimod1 has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Read error: Connection reset by peer]
QualityAddict has joined #ruby
Madplatypus has joined #ruby
SteenJobs has joined #ruby
astrobunny has quit [Remote host closed the connection]
VladGh_ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
astrobunny has joined #ruby
diegok has quit [Quit: ZNC - http://znc.sourceforge.net]
tabakhase has joined #ruby
astrobunny has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 258 seconds]
diego_k has joined #ruby
turingbombe has quit [Quit: This computer has gone to sleep]
blackbombay has quit [Ping timeout: 250 seconds]
iMadper|` has quit [Remote host closed the connection]
freemac56 has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
freemac56 has joined #ruby
xall has joined #ruby
hanmac has joined #ruby
blackbombay has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
brianpWins has quit [Ping timeout: 265 seconds]
mikeiniowa has quit [Remote host closed the connection]
cdg has joined #ruby
mikeiniowa has joined #ruby
tubuliferous_ has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
cibs has quit [Quit: leaving]
cibs has joined #ruby
howdoi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freemac56 has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
nankyokusei has joined #ruby
houhoulis has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 250 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
PaschalsWager has joined #ruby
optiz0r has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
Desh has joined #ruby
yeticry_ has quit [Ping timeout: 256 seconds]
<Desh> Hey! I am a beginner in ruby language, and I would like to know exactly what is the usage of the symbol " $ " respect to variables
jaguarmagenta has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
jaguarmagenta has joined #ruby
<llua> like $var ?
<Desh> exactly
<Desh> Is it a global variable?
<llua> yep
<Desh> Thank you!
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
<Desh> and could be declared wherever I want, unlike other programming languages that is necessary to declare in the beginning of the code.
<Desh> ?
ruby-lang684 has joined #ruby
<ruby-lang684> programming is about memorizing code or understanding the code or both?
AnoHito has quit [Ping timeout: 258 seconds]
yeticry has quit [Ping timeout: 256 seconds]
LoneHermit has quit [Ping timeout: 245 seconds]
<Desh> Programming is about understanding the code, but sometimes is necessary to memorize functions in the language
yeticry has joined #ruby
<ruby-lang684> oh i see
<ruby-lang684> if you unsure you can just refer
<Desh> Yes, It is impossible remember everything when you are programming
<ruby-lang684> kk i agree
<ruby-lang684> as long you understand the concept can already right
AnoHito has joined #ruby
AliG1000 has quit []
symm has quit [Quit: Leaving...]
kiwiheretic has joined #ruby
Desh has quit [Quit: Page closed]
rippa has joined #ruby
ruby-lang684 has quit [Ping timeout: 260 seconds]
<kiwiheretic> What web frameworks other than rails is ruby used in?
<rjungemann> Sinatra
<kiwiheretic> Oh ok
<kiwiheretic> Is it good?
cdg_ has joined #ruby
parsnip has joined #ruby
<rjungemann> It's very small. I like it for small projects. You get basic routing, hosting of files, and view templates (erb, haml, or whatever) out of the box
<kiwiheretic> Ahh, like the python equivalent of flask
<rjungemann> Definitely
<kiwiheretic> Basically make it smaller by not including the ORM
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<parsnip> hmm, wanted to install jekyll after not using it for a while, but trying to be mindful of how install things this time around. like, i shouldn't need any passwords or sudo at any point, right?
cdg has quit [Ping timeout: 245 seconds]
<rjungemann> How did you install Ruby?
<parsnip> so i should use an updated ruby from say, homebrew? but just how much other stuff do i need to do from ground zero to jekyll.
<rjungemann> If you used rbenv or rvm, you should not use sudo. If you use system Ruby, you need to use sudo. Generally speaking
<rjungemann> I haven't installed ruby through homebrew directly (I use rbenv), but I don't think you need to use sudo
<rjungemann> Generally with homebrew-installed stuff you don't use sudo
hahuang61 has joined #ruby
<parsnip> `gem install --user-install jekyll bundler' works fine, but `jekyll new ./' asks for password.
<rjungemann> What's the result of `which jekyll`?
<parsnip> good point
<parsnip> jekyll is /Users/iam/.gem/ruby/2.0.0/bin/jekyll
<parsnip> `gem uninstall jekyll'?
<rjungemann> What is the result of `ls /Users/iam/.gem/ruby/2.0.0`?
bronson has joined #ruby
<rjungemann> Sorry `ls -l /Users/iam/.gem/ruby/2.0.0`
<rjungemann> `ls -l` will show the permissions for the listed files
<parsnip> -rwxr-xr-x 1 iam staff 508 Dec 18 20:24 /Users/iam/.gem/ruby/2.0.0/bin/jekyll
<rjungemann> I feel like you may need to change the permissions on this directory
<parsnip> oh, sorry one sec
<rjungemann> Hm that looks okay actually
<parsnip> maybe i should pastebin output of jekyll new .
<rjungemann> Did you try `jekyll new some-blog-name`? Perhaps you were trying to create it in a directory your user does not own?
SteenJobs_ has joined #ruby
<rjungemann> Calling `jekyll new some-blog-name` should create a new directory called `some-blog-name` in the current directory
brent__ has quit [Quit: Connection closed for inactivity]
SteenJobs has quit [Ping timeout: 252 seconds]
SteenJobs_ is now known as SteenJobs
hahuang61 has quit [Ping timeout: 260 seconds]
crazy_vine has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
<rjungemann> This worked for me: `cd ~/Desktop; mkdir some-blog-name; cd some-blog-name; jekyll new .`
<rjungemann> I feel like it's probably a directory permission issue for the directory you are trying to install in
<rjungemann> Oh yeah @kiwiheretic I forgot to mention that most Ruby web frameworks are built on Rack (sort of the Ruby equivalent of WSGI. The Rack README has a non-comprehensive list of web frameworks using Rack: https://github.com/rack/rack)
jenrzzz has joined #ruby
quazimodo has joined #ruby
<parsnip> so i need to start using rvm? i ran into some issues with that as well
rgiscard has joined #ruby
<rjungemann> It is strange that it is trying to install gems in `./vendor`. I just tried running `jekyll new` as above, and it installed gems in the usual place, rather than a vendor directory
<rjungemann> What is the output of `echo $GEM_HOME`?
braincrash has joined #ruby
<parsnip> rjungemann: no value
<rjungemann> Also `echo $GEM_PATH`
<parsnip> also no value
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gix has quit [Ping timeout: 258 seconds]
<rjungemann> is `$HOME/.gem/ruby/2.0.0/bin` in your $PATH?
jaguarmagenta has quit [Read error: Connection reset by peer]
<parsnip> yes
<parsnip> should i learn rvm?
Pachonk has joined #ruby
jaguarmagenta has joined #ruby
<rjungemann> I would say it should make things easier, yes
<rjungemann> You should not need to invoke `jekyll` from its full path
gix has joined #ruby
<parsnip> oh could you tell i did that? i just did that to be explicit, cuz i wasn't sure if i had competing versions
<rjungemann> Yeah the first line of the gist
<rjungemann> You might be able to get it to work like this perhaps:
<rjungemann> `export GEM_HOME=$HOME/.gem; jekyll new my-jekyll`
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
JoshS has quit [Quit: Leaving]
<rjungemann> I think that's the missing piece. The problem was, bundler wasn't sure where to install the gems to
<rjungemann> Rvm would handle the gem management (and Ruby management) for you
<rjungemann> Oh neat, I didn't know this: `gem env` will tell you all sorts of useful info
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
bocaneri has quit [Quit: Leaving]
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Anonymoose2 has joined #ruby
SteenJobs_ has joined #ruby
SteenJobs has quit [Ping timeout: 248 seconds]
SteenJobs_ is now known as SteenJobs
vayan has joined #ruby
<parsnip> okay, so using rvm and installing things again seems to allow `jekyll new' to work
reverberations has quit [Ping timeout: 250 seconds]
<parsnip> but all the environment variables, i feel like i'm not seeing a canonical advice to set these online, like at ruby's page, or rvm's page. rvm still seems to complain about RUBY_VERSION not being set.
reverberations has joined #ruby
<parsnip> i think i just went with `rvm install ruby'
astrobunny has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
Anonymoose2 has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 264 seconds]
LoneHermit has joined #ruby
sparch has joined #ruby
grenierm has joined #ruby
balazs__ has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 248 seconds]
aidalgol has joined #ruby
Channel6 has quit [Quit: Leaving]
brendan- has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
hahuang61 has joined #ruby
pragmaticus has joined #ruby
Anonymoose2 has joined #ruby
arescorpio has quit [Quit: Leaving.]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bocaneri has joined #ruby
Pachonk has quit [Read error: No route to host]
saneax-_-|AFK is now known as saneax
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
PaschalsWager has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaschalsWager has joined #ruby
reverberations has quit [Ping timeout: 250 seconds]
symm has joined #ruby
tubuliferous_ has quit [Ping timeout: 248 seconds]
PaschalsWager has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: antoniobeyah]
jenrzzz has joined #ruby
kuSuSE has quit [Quit: Konversation terminated!]
dionysus69 has joined #ruby
pawnbox has joined #ruby
charliesome has joined #ruby
crazy_vine has quit [Ping timeout: 260 seconds]
<rjungemann> I don't use RVM so I can only help so far with it, but I think RUBY_VERSION not being set means that you need to choose the version you're using. So in your .bashrc file or whatever, under your rbenv setup, you'll need to set up your version. So `rvm 2.3.0` or whatever
<rjungemann> Actually I think calling `rvm use 2.3.0` once should suffice
<rjungemann> The reason why it's hard to find documentation about it is because most people use a ruby version manager of some sort these days, whether rvm or rbenv or whatever
nankyokusei has joined #ruby
<rjungemann> If you install system Ruby, everything should "just work" but you will need to `sudo gem install` your gems. If you build from scratch, because you set the `PREFIX` environment variable, everything should just work. I've not seen anyone `brew install ruby` before in any of the instructions so I cannot recommend that approach
yardenbar has joined #ruby
<rjungemann> I've also not used `gem install --user-install`, but if you do this approach, you WILL need to remind Ruby where to find your gems. So you will in all likelyhood need to set at a minimum, GEM_HOME, and maybe GEM_PAH
<rjungemann> s/GEM_PAH/GEM_PATH
anisha has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
jaguarmagenta has quit [Read error: Connection reset by peer]
anisha_ has joined #ruby
jaguarmagenta has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
rgiscard has quit [Quit: Gone fishing]
Axy has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hotpancakes has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Remote host closed the connection]
xrlk has joined #ruby
dionysus69 has joined #ruby
fullofcaffeine has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
lightstalker has quit [Ping timeout: 268 seconds]
astrobun_ has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 268 seconds]
lightstalker has joined #ruby
nofxxx has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
nofxx has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
bronson has joined #ruby
CloCkWeRX has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
teclator has joined #ruby
sarlalian has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
djellemah_ is now known as djellemah
pawnbox has quit [Read error: Connection reset by peer]
sarlalian has joined #ruby
kiwiheretic has quit [Ping timeout: 256 seconds]
gbgdev has joined #ruby
pawnbox has joined #ruby
Immune__ has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
pawnbox_ has joined #ruby
gbgdev has quit [Ping timeout: 250 seconds]
fullofcaffeine has joined #ruby
yardenbar has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
psycho_one has joined #ruby
xall has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
astrobunny has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
beilabs has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
pwnd_nsfw has joined #ruby
saveroo has joined #ruby
<saveroo> can somebody help me convert a multilineternary to conditional if
pawnbox has joined #ruby
<saveroo> helo
syngress has joined #ruby
<chrisseaton> saveroo: hi
<chrisseaton> saveroo: post it
<saveroo> im pretty blind with ruby but got a simple ruby tasks to do
<ruby[bot]> saveroo: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d09d0ee1c349d4c7c21a56fd4a246624
<ruby[bot]> saveroo: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<chrisseaton> saveroo: I only see one ternary there
tubuliferous_ has joined #ruby
<chrisseaton> saveroo: but anyway, would you like me to help you show you how to break this down?
cdg_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<saveroo> yes,, since im new with ruby, its pretty hard to reach the code syntax
xall has joined #ruby
kies has quit [Read error: Connection reset by peer]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
kies has joined #ruby
<saveroo> the code are hard to read for me, i have task to implement rubocop and then, rubocop gives an error about multilineternary i just cant guess how to do it, for the other cops are just fine
pawnbox has quit [Read error: Connection reset by peer]
<chrisseaton> saveroo: I've commented on the gist
<chrisseaton> saveroo: Does that help enough?
hotpancakes has quit [Ping timeout: 258 seconds]
maattdd has joined #ruby
xall has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
<saveroo> oke let me check sorry, i just read it...
maattdd has quit [Ping timeout: 258 seconds]
pawnbox_ has joined #ruby
<saveroo> chrisseaton: Thanks alot chris!!, i dunno how to repay the favor you gave
<saveroo> may the force be with you chris...
codfection has joined #ruby
faces has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
conta has joined #ruby
raiti has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
<koldbrutality> is it possible to have variable length arguments for ruby block |x, y| ?
xall has joined #ruby
tubuliferous_ has quit [Ping timeout: 258 seconds]
yardenbar has joined #ruby
<herwin> |*args|
nowz has joined #ruby
montanonic has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 258 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Anonymoose2 has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
maattdd has joined #ruby
pawnbox has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<koldbrutality> how about default value for a optional ruby block argument?
Derderderd has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
ponga has quit []
mooe has joined #ruby
Derderderd has joined #ruby
Jackneill has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
muelleme has joined #ruby
haxrbyte_ has joined #ruby
montanonic has joined #ruby
wugy has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
<chrisseaton> koldbrutality: I don't think so
<chrisseaton> koldbrutality: def foo(&block=nil); end is a syntax error
blaxter has joined #ruby
<herwin> chrisseaton: I think he means something like { |x, y=1| ... }
uu has joined #ruby
<dminuoso> Mmmm, could any of you folks see usage in something like: my_proc = &block (procifying a block outside the arglist)
jz has joined #ruby
<dminuoso> Maybe to conditionally wrap it inside a proc, so it does not have to be done everytime
jz is now known as Guest45138
<chrisseaton> dminuoso: you mean with `block` there as a new keyword?
hotpancakes has joined #ruby
hahuang61 has joined #ruby
<dminuoso> chrisseaton: Yeah.
<chrisseaton> dminuoso: can you already do `my_proc = proc { yield }`? I think the yield might be to the captured's method block in that case.
<dminuoso> Or maybe something done directly as a method in Kernel.
<dminuoso> Mmm
<dminuoso> Yeah it should.
<dminuoso> Though that will introduce an extra stack trace
<dminuoso> *stack frame
johnzorn has quit [Ping timeout: 258 seconds]
<dminuoso> chrisseaton: From what I can see, it should be easy to implement this, but so far I don't really have many use cases for it.
haxrbyte_ has quit [Quit: Leaving...]
<chrisseaton> It's annoying to put the block in the args list if it's only needed on some branches, and that would help implementations that don't optimise such as MRI, as they wouldn't have to allocate the Proc object until it reached that branch.
hahuang61 has quit [Ping timeout: 245 seconds]
mark_66 has joined #ruby
<dminuoso> chrisseaton: Yeah that was my motivation. I think I'll actually just implement it, and make it a feature request and see what the powers that be think.
<dminuoso> My feeling tells me it should be a method on kernel rather than syntax.
<dminuoso> It would also simplify things if I didn't have to touch that monstreous LR(1) parser.
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
<chrisseaton> dminuoso: `block` as a keyword is probably not possible - too many name conflicts, so a method on Kernel would be better, yes.
<chrisseaton> dminuoso: Kernel#block
SesMan has joined #ruby
dionysus70 is now known as dionysus69
hotpancakes has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
walterheck has joined #ruby
<walterheck> hello, ca ayone tell me why I can load my gem from irb but not from code? https://gist.github.com/walterheck/9ddc42ef9bcdfa27741b34303f53d26b
<matthewd> dminuoso: You know about Proc.new, right?
<matthewd> err.. that it collects the caller's block if invoked without a block of its own, not that the method exists at all :)
<dminuoso> >> def foo; a = Proc.new; a.call; end; foo { puts "hello matthewd" };
aganov has joined #ruby
<dminuoso> matthewd: Interesting.
<dminuoso> I did not expect this.
<herwin> dminuoso: that's exactly my biggest dislike for this syntax: the behaviour is pretty much magical
enterprisey has quit [Remote host closed the connection]
aupadhye has joined #ruby
<chrisseaton> herwin: It'd be cool if Ruby had an API for walking the stack, looking at arguments, bindings, blocks and things.
anisha_ has quit [Ping timeout: 260 seconds]
anisha_ has joined #ruby
bronson has joined #ruby
Devalo has joined #ruby
Bish has quit [Ping timeout: 258 seconds]
muelleme has quit [Ping timeout: 258 seconds]
Bish has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
cyphase has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
bayed has joined #ruby
Burgestrand has joined #ruby
gbgdev has joined #ruby
leftpad has quit [Ping timeout: 240 seconds]
cyphase has joined #ruby
tubuliferous_ has joined #ruby
<xall> so i'm working on a little poker hand evaluator app
gbgdev has quit [Remote host closed the connection]
<xall> i need to check the methods for various hands
<xall> HAND_RANKS = [ method(:straight_flush?), method(:four_of_a_kind?)... ]
<xall> does that sound like a reasonable way to do it?
<matthewd> I think I'd just have :straight_flush in the array, and leave the rest up to the loop that's using it
quazimodo has quit [Ping timeout: 250 seconds]
<xall> if i put the symbol in the array, i can call the method?
<chrisseaton> xall: Yes, all call it using send, as in send(HAND_RANKS[whatever], arguments)
<xall> chrisseaton: thanks
andikr has joined #ruby
<walterheck> hello, ca ayone tell me why I can load my gem from irb but not from code? https://gist.github.com/walterheck/9ddc42ef9bcdfa27741b34303f53d26b
<walterheck> s/ca/can
jaguarmagenta has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
<matthewd> ?vagrant walterheck
<ruby[bot]> walterheck: please join #vagrant for help with it.
cdg has joined #ruby
mikecmpbll has joined #ruby
nofxxx has quit [Ping timeout: 256 seconds]
aidalgol is now known as DingDong
tubuliferous_ has quit [Ping timeout: 250 seconds]
ishe_ua has joined #ruby
the_drow has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
cdg has quit [Remote host closed the connection]
<walterheck> matthewd, well I think the problem is a ruby one. It appears that my $LOAD_PATH is not seeign all gems
DingDong is now known as aidalgol
mochiyoda has quit [Ping timeout: 245 seconds]
<matthewd> If ruby isn't looking at all the things in the load path, that's a ruby bug. If the load path doesn't contain what you expect it to, that seems to be a matter for whoever set up the runtime environment (read: vagrant).
SpiffTR has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
bastilian has joined #ruby
beilabs has joined #ruby
Guest54 has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil> is there any guide somewhere on how to add tests to a gem (using rspec preferrably) that has to do with ActiveRecord? I am a bit confused how to create the database from the spec helper
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
jsrn_ has joined #ruby
n008f4g_ has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
SpiffTR has quit [Quit: Leaving.]
raiti has quit [Remote host closed the connection]
aryaching has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
troulouliou_div2 has joined #ruby
tmtwd has joined #ruby
mochiyoda has joined #ruby
Chair has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
ddffg has joined #ruby
mochiyoda has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
zapata has joined #ruby
bradleyprice has joined #ruby
<Burgestrand> vasilakisfil it's a rails-specific test file in a gem which is not rails-specific, so I think we put all the railsy things in that one, such as setting up the (in-memory) database, creating the tables, surrounding the tests in transactions and then declaring the tests :)
vondruch has joined #ruby
SpiffTR has joined #ruby
tubuliferous_ has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
syngress has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 248 seconds]
JeanCarloMachado has joined #ruby
blackbombay has joined #ruby
tubuliferous_ has quit [Ping timeout: 258 seconds]
|RicharD| has joined #ruby
frozengeek has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
nowz has quit [Remote host closed the connection]
eightbitraptor has joined #ruby
Beams has joined #ruby
marr has joined #ruby
JeanCarloMachado has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
nankyokusei has joined #ruby
dnicole has joined #ruby
hahuang61 has joined #ruby
JeanCarloMachado has joined #ruby
bradleyprice has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
ferr1 has joined #ruby
j3r0 has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 248 seconds]
rodfersou has joined #ruby
aidalgol has quit [Quit: zZzZZzzzzz]
greeny___ has joined #ruby
biberu has joined #ruby
Guest54 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 246 seconds]
nowz has joined #ruby
eggshke has joined #ruby
SpiffTR1 has joined #ruby
SpiffTR has quit [Ping timeout: 258 seconds]
visual has joined #ruby
visual has left #ruby [#ruby]
hotpancakes has joined #ruby
astrobunny has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
mooe has quit [Quit: Connection closed for inactivity]
xall has quit [Ping timeout: 265 seconds]
gbgdev has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Guest54 has joined #ruby
bradleyprice has joined #ruby
workmad3 has joined #ruby
ldnunes has joined #ruby
hotpancakes has quit [Ping timeout: 245 seconds]
mochiyoda has joined #ruby
bronson has joined #ruby
syngress has joined #ruby
koldbrutality has quit [Ping timeout: 260 seconds]
despai has joined #ruby
sylario has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
Gravious has joined #ruby
Mr_Pancake has joined #ruby
<saveroo> description = object.to_s.gsub(%r{/[\/_]/}, ' ').titleize.gsub(active_site.titleize, '')
<saveroo> is it the same result ?
<saveroo> description = object.to_s.gsub(/[\/_]/, ' ').titleize.gsub(active_site.titleize, '')
greeny___ has quit [Quit: Bye.]
<saveroo> no ones here :(
Mr_Pancake has quit [Ping timeout: 258 seconds]
<Beams> Is anyone able to explain to me why gem is able to find a gem with 'gem search' but not with 'gem install' ? (http://hastebin.com/upadiyaxag.rb)
<matthewd> saveroo: I'm not sure I understand your question. It seems very easy to answer by just trying it.
<matthewd> Beams: My first guess would be that you're not using jruby, so while it knows the gem exists, it can't find an actual installable version
<Beams> matthewd, oh ok. i'll have a look into that. thanks
<matthewd> Beams: `gem env` will confirm which ruby it's using, if you think it should be jruby
mikecmpb_ has joined #ruby
yasm has joined #ruby
jaguarmagenta has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
<Beams> matthewd, i had never heard of jruby before tbh. looks like that was it though, thanks.
leftpad has joined #ruby
lenwood has joined #ruby
yasm has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 252 seconds]
aryaching has quit [Ping timeout: 250 seconds]
_snarf_ has joined #ruby
hahuang61 has joined #ruby
milardovich has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
byte512 has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
symm_ has joined #ruby
symm has quit [Ping timeout: 258 seconds]
ropeney has quit [Ping timeout: 260 seconds]
Derderderd has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
leftpad has quit [Ping timeout: 260 seconds]
blaxter has quit [Quit: foo]
fedruantine has joined #ruby
quazimodo has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<saveroo> e
<saveroo> <saveroo> description = object.to_s.gsub(%r{/[\/_]/}, ' ').titleize.gsub(active_site.titleize, '')
<saveroo> <saveroo> is it the same result ?
charliesome has joined #ruby
<saveroo> <saveroo> description = object.to_s.gsub(/[\/_]/, ' ').titleize.gsub(active_site.titleize, '')
d0nn1e has joined #ruby
<saveroo> is that giving the same result ?
<matthewd> saveroo: Have you tried it?
tubuliferous_ has joined #ruby
tau has joined #ruby
symm_ has quit [Ping timeout: 268 seconds]
araujo has quit [Read error: Connection timed out]
araujo has joined #ruby
leftpad has joined #ruby
tubuliferous_ has quit [Ping timeout: 248 seconds]
zapata has quit [Quit: WeeChat 1.6]
milardovich has quit []
montanonic has quit [Ping timeout: 248 seconds]
jaruga___ has quit [Quit: jaruga___]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
<saveroo> matthewd: no
<saveroo> the only difference is the use of %r
tubbo has quit [Ping timeout: 245 seconds]
manjaro-kde5__ has joined #ruby
pawnbox has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_snarf_ has left #ruby [#ruby]
nankyokusei has joined #ruby
tubbo has joined #ruby
charliesome has joined #ruby
koooge has quit [Quit: Leaving...]
deadnull has joined #ruby
gbgdev_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 265 seconds]
gbgdev has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
teclator has quit [Remote host closed the connection]
teclator has joined #ruby
ropeney has joined #ruby
sniffer has quit [Quit: No Ping reply in 180 seconds.]
leftpad has quit [Ping timeout: 256 seconds]
SpiffTR1 has quit [Quit: Leaving.]
MyMind has joined #ruby
sniff has joined #ruby
Sembei has quit [Ping timeout: 246 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Read error: Connection reset by peer]
matp has joined #ruby
skydiver_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Derderderd has joined #ruby
ernstwijsmuller has joined #ruby
ernstwijsmuller has left #ruby [#ruby]
<manveru> saveroo: well, in theory it's the same, but with %r{} you don't need to escape / inside the regex
manjaro-kde5__ has quit [Ping timeout: 246 seconds]
<manveru> to clarify, // and %r{} are the same, but in your regex, you also put // inside the %r{}, so it probably won't match the way you want
grug has quit [Ping timeout: 246 seconds]
gener1c has quit [Ping timeout: 258 seconds]
grug has joined #ruby
Derderderd has quit [Ping timeout: 258 seconds]
<manveru> there's an easier way of course
<manveru> >> 'hi/there_is/no_spoon'.tr('/_', '')
<ruby[bot]> manveru: # => "hithereisnospoon" (https://eval.in/700616)
Tempesta has quit [Ping timeout: 250 seconds]
<apeiros> .delete
<manveru> and even easier :)
<apeiros> >> 'hi/there_is/no_spoon'.delete('/_')
<ruby[bot]> apeiros: # => "hithereisnospoon" (https://eval.in/700617)
ropeney has joined #ruby
sinus has joined #ruby
gener1c has joined #ruby
<manveru> i keep forgetting it... too much sed
Ishido has joined #ruby
sinus has quit [Client Quit]
Dutjub has joined #ruby
Tempesta has joined #ruby
houhoulis has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
sepp2k has joined #ruby
yardenbar has quit [Quit: Leaving]
SpiffTR has joined #ruby
fullofcaffeine has joined #ruby
SpiffTR1 has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpiffTR has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
byte512 has quit [Ping timeout: 246 seconds]
SpiffTR has joined #ruby
SpiffTR has quit [Client Quit]
CloCkWeRX has joined #ruby
SpiffTR1 has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
Guest54 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Ishido has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
SesMan has joined #ruby
csk has joined #ruby
iMadper has joined #ruby
iMadper has quit [Remote host closed the connection]
nowz has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
walterheck has quit [Remote host closed the connection]
iMadper has joined #ruby
walterheck has joined #ruby
antoniobeyah has quit [Client Quit]
Derderderd has joined #ruby
ruby-lang433 has joined #ruby
<ruby-lang433> seriously ruby is the best programming ever :)
lenwood has joined #ruby
<ruby-lang433> it's very intuitive
Guest54 has joined #ruby
dionysus69 has joined #ruby
jaguarmagenta has joined #ruby
Derderderd has quit [Ping timeout: 258 seconds]
Guest54 has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 250 seconds]
milardovich has joined #ruby
gener1c has quit [Quit: Lost terminal]
sdothum has joined #ruby
brendan- has joined #ruby
synthroid has joined #ruby
hahuang61 has joined #ruby
mochiyoda has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
mochiyoda has joined #ruby
yardenbar has joined #ruby
is_null has quit [Quit: github.com/jpic]
hahuang61 has quit [Ping timeout: 258 seconds]
is_null has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 265 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
Snickers has joined #ruby
ruby-lang433 has quit [Ping timeout: 260 seconds]
saveroo has quit [Quit: 10 million strong and growing!]
tubuliferous_ has joined #ruby
csk has quit [Ping timeout: 256 seconds]
nowz has joined #ruby
pawnbox_ has joined #ruby
tyang has joined #ruby
tvw has joined #ruby
tubuliferous_ has quit [Ping timeout: 268 seconds]
Lildirt has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 258 seconds]
Lildirt has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
frozengeek_ has joined #ruby
frozengeek has quit [Ping timeout: 268 seconds]
ocbtec has joined #ruby
pawnbox has joined #ruby
pawnbox_ has quit [Ping timeout: 248 seconds]
Burgestrand has joined #ruby
kuSuSE has joined #ruby
gnufied has joined #ruby
eggshke has quit []
Madplatypus has quit [Quit: Connection closed for inactivity]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
CloCkWeRX has joined #ruby
Hello123 has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
segy has quit [Ping timeout: 265 seconds]
<Hello123> is there any simple ruby projects to do?
<Hello123> good resource?
c355e3b has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> Hello123: github
doubleemms has quit [Remote host closed the connection]
segy has joined #ruby
doubleemms has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
sepp2k has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
doubleemms has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
<Bish> how do i quickly check if 2 arrays have the same elements in it
<Hello123> haha i am dying when i see those project at github
<Bish> >> [:a,:b,:c] == [:c,:b,:a]
<Hello123> :)
<apeiros> Bish: same number of occurrences too?
<Hello123> include?
<apeiros> i.e. [:a, :a] == [:a] or !=?
<Bish> apeiros: hm, should be singular
<Bish> for sanitys sake
<apeiros> that's not really an answer :-p
<Bish> i want to know if a hash provided has the same keys as an array of keys
<apeiros> (ary1 - ary2) == (ary2 - ary1) # I think there was a nicer variant, but have a problem remembering it atm :-/
last_staff has quit [Quit: last_staff]
<apeiros> ah well, unless you fuck your array of keys up - the hashes' keys will always be unique
<maloik> (ary1 & ary2) == ary1 would work too I think, right?
<apeiros> ah, right: (ary1 & ary2) == …
<apeiros> yes
pawnbox has quit [Remote host closed the connection]
<apeiros> won't work if number of occurrences doesn't matter, though
<maloik> yep true
nankyokusei has joined #ruby
<maloik> but then you could slap on .uniq
<apeiros> but since that's not an issue here
Derderderd has joined #ruby
<Bish> well it doesn't seem to work
<apeiros> Bish: you're old enough (in channelmembershipage) to know the drill, aren't you?
<Bish> >> (a = [:a,:b,:c]) & (b = [:a,:c,:b]) == a
<ruby[bot]> Bish: # => true (https://eval.in/700687)
<Bish> oh.
<Bish> apeiros: which one?
dionysus69 has joined #ruby
<apeiros> the one about "doesn't work"
givemeurhats has joined #ruby
marchelzo has joined #ruby
<givemeurhats> anyone here using guard with unit test?
<Bish> actually i don't but i will keep my mouth shut :p
<Bish> i just typed it into my REPL and it didn't seem to work
<marchelzo> whats the best ruby ide
<apeiros> ?dontwork
<ruby[bot]> we charge $120/h to figure out what you mean by "does not work". alternatively you can give us a proper explanation of what you expected to happen, and what happened instead, including the full exception if one occurred.
<apeiros> Bish: ^
jaguarmagenta has joined #ruby
<Bish> i've never seen that before :D
<marchelzo> how to eval code in this chan
<apeiros> >> "registration with nickserv required"
<marchelzo> >> 1
<ruby[bot]> apeiros: # => "registration with nickserv required" (https://eval.in/700695)
<ruby[bot]> marchelzo: # => 1 (https://eval.in/700696)
<marchelzo> ah
<apeiros> and: don't use it to spam, we will kick you, not the bot if you do (some people have the weird idea that "it's the bot which spams! not me!")
givemeurhats has left #ruby [#ruby]
Hello123 has quit [Ping timeout: 260 seconds]
<Bish> lol, never seen that before either
nankyokusei has quit [Ping timeout: 265 seconds]
<apeiros> yeah, thankfully it's been a while
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<marchelzo> whats the fastest ruby implementation
Derderderd has quit [Ping timeout: 258 seconds]
<Burgestrand> no ruby implementation is the fastest ruby implementation
<Bish> whats the best question to troll #ruby :3
<Burgestrand> just as no code is faster than no code
houhoulis has quit [Remote host closed the connection]
<Burgestrand> :D
nettoweb has joined #ruby
<marchelzo> not trolling
<marchelzo> whats the fastest implementation
GodFather has joined #ruby
<Bish> jruby might be fastest, because jvm.. in terms of instructions / sec
<Burgestrand> marchelzo I'm afraid your question is invalid!
<marchelzo> seems like there hasn't been a lot of effort to produce a fast ruby implementation
<Bish> but Burgestrand is right, that question doesn't work
<marchelzo> why doesn't the question work
<Burgestrand> marchelzo you need a better definition of fastest
<Bish> marchelzo: ruby is complex, hard work to do it fast
<Burgestrand> marchelzo fastest *where*
<marchelzo> most optimized
<Burgestrand> marchelzo where?
<Gravious> i read that jruby had better performance on average at some point, but that's no longer the case i believe
<marchelzo> what do you mean where?
<Burgestrand> marchelzo what do you mean fastest?
<marchelzo> given a program, an implementation that executes that program in less time than other implementations is faster
<Burgestrand> marchelzo now we're getting somewhere, now the question becomes which program?
<marchelzo> the answer will be the same for most programs
<Burgestrand> no!
thelacce has joined #ruby
<marchelzo> you're being way too pedantic
<Gravious> i think so as well
<marchelzo> look at something like v8
<marchelzo> it's evidently been worked on and optimized by a lot of great engineers
<marchelzo> and it's incredibly fast
<Gravious> imo, you can reason about performance based on averages
harfangk has joined #ruby
torQue_ has joined #ruby
<marchelzo> if you wrote a non-JIT javascript VM with no optimizations, v8 would beat it in almost literally every single benchmark
<Burgestrand> what's the purpose of said reasoning if the actual real-world results disagree with your guesstimation?
jhack has joined #ruby
<marchelzo> what real-world results?
<Burgestrand> your particular project running faster in the average-faster implementation
<Burgestrand> or not
jhack has quit [Client Quit]
<Gravious> Burgestrand, because there's generally always going to be some contrived input you can craft that will show one implementation to be superior to another, we're not interested in that, what we're interested in is which implementation runs programs quicker in general
CloCkWeRX has quit [Quit: Leaving.]
<Burgestrand> Gravious but to what end is the answer of this question useful?
mim1k|work has quit [Ping timeout: 248 seconds]
<chrisseaton> marchelzo: there are Ruby implementations just as far as V8, like mine, JRuby+Truffle
<marchelzo> because using the fastest, most optimized ruby implementation will let you do more work with less power
mim1k|work has joined #ruby
<chrisseaton> just as fast as, I mean
<Burgestrand> (for the record, chrisseaton has qualified answers :))
ramortegui has joined #ruby
<Burgestrand> marchelzo except that's not true
<Bish> machty: i fucked around enough with ruby implementations to know MRI is best, maybe not because of speed but happiness
jaguarmagenta has quit [Remote host closed the connection]
<marchelzo> chridal: JRuby is the one that runs on the JVM?
<marchelzo> oops
<marchelzo> sorry chridal
<marchelzo> chrisseaton: ^
<marchelzo> what's Truffle?
<chrisseaton> It's a new JIT for Ruby basically
<Burgestrand> marchelzo I've chosen to use jruby and mri in different projects over the years, there's tradeoffs in both that are more or less suitable for different situations and sometimes the execution also varies
<Gravious> Burgestrand, you may as well ask what the purpose of asymptotic analysis is
walterheck has quit [Ping timeout: 264 seconds]
<marchelzo> chrisseaton: that's cool
<Gravious> Burgestrand, to what end do we choose to ignore the real world time required to read from memory? and instead say it's O(n), so that we can reason about programs in such a way that allows us to see that a binary search will generally be faster than a linear search
thelacce has quit []
<marchelzo> i don't like the JVM dependency though
<Burgestrand> Gravious but there's also so many other things that come into play when deciding which VM to run
<marchelzo> it would be cool if there were a small, complete, portable, embeddable, and fast ruby implementation
<marchelzo> written in C or something
<marchelzo> or C++
<Burgestrand> Gravious performance in a particular scenario, even if that happens to cover the majority of your code, is but one variable which is not always relevant
<herwin> you mean mruby?
<Gravious> Burgestrand, sure, but i reject your argument that you can't reason about the general case performance of a ruby implementation
<chrisseaton> Here's a somewhat independent comparison of Truffle against V8 http://stefan-marr.de/papers/dls-marr-et-al-cross-language-compiler-benchmarking-are-we-fast-yet/
eightbitraptor has quit [Quit: Lost terminal]
<Gravious> Burgestrand, but that's fine, we can disagree, i have no idea what i'm on about most of the time :)
rodfersou is now known as rodfersou|lunch
mikeXsh has joined #ruby
<chrisseaton> marchelzo: Truffle doesn't need a JVM to run even so it's perfect for what you want!
mim1k|work has quit [Ping timeout: 265 seconds]
mim1k|work has joined #ruby
<chrisseaton> It's written in Java but we statically compile it to machine code so may as well be written in C
<Burgestrand> Gravious I agree with you, but at the same time I also disagree that the reasoning is useful, I would even go as far as to say that the reasoning could be harmful and lead to bad conclusions
eightbitraptor has joined #ruby
<marchelzo> that's cool. i'll check it out.
eightbitraptor has quit [Client Quit]
rgiscard has joined #ruby
brendan- has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marchelzo> what do ruby people think about crystal? it claims to be a sort of faster ruby
<chrisseaton> We know people have reservations like you do so we're working to address them all (JVM dependency, footprint, startup time, performance)
<Yxhuvud> marchelzo: a relevant question is if you value startup time or throughput highest.
Ishido has joined #ruby
<Yxhuvud> because the answer will be different depending on that.
<marchelzo> right
<Gravious> Burgestrand, fair enough :)
<marchelzo> Yxhuvud: but you can reach a pretty decent balance
<Gravious> marchelzo, i think crystal looks really interesting, i happened to read https://crystal-lang.org/2013/07/13/null-pointer-exception.html today
<marchelzo> v8 has good throughput but nowhere near the startup overhead of the jvm
<marchelzo> at least in my experience
<marchelzo> not that you can /really/ compare them, but
despai has quit [Quit: This computer has gone to sleep]
eightbitraptor has joined #ruby
<marchelzo> Gravious: wow, that's extremely weird
boggle has joined #ruby
<marchelzo> instead of doing all of that static analysis to figure out whether something might return nil or not, why not just have it return a different type, like Option<String>
<marchelzo> still fascinating though
jhack has joined #ruby
lolmaus has quit [Quit: Connection closed for inactivity]
<Gravious> you mean like the kind of thing haskell has with Maybe<a>? disclaimer: i don't know haskell at all
<marchelzo> yes
<Gravious> hrm, yeah, i don't know
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
araujo has quit [Quit: Leaving]
<Burgestrand> marchelzo I guess my answer to your original question would be that JRuby typically executes things faster than CRuby (MRI), e.g. I did some high-throughput XML processing which required JRuby to get enough data through per second. However in general I would go with CRuby (MRI) because the JRuby ecosystem is not as smooth to work with, some gems are not compatible, and even those gems who are have vaguely different behaviour on JRuby which is not
<Burgestrand> always documentet.
<marchelzo> that's what i was afraid of
oded has joined #ruby
<marchelzo> same problem as pypy i guess
blackbombay has quit [Ping timeout: 260 seconds]
SuperLag has quit [Quit: leaving]
<Burgestrand> marchelzo mind you, last time I used JRuby in as heavy fashion was about a year and a half ago, so times may have changed for the better.
sdothum has joined #ruby
<oded> Hello! How do I iterate super classes (the route 'super' would go through)? That's including modules, in the order they were included/inherited
andrzeju_ has quit [Read error: Connection reset by peer]
<marchelzo> javascript is lucky in that the super optimized implementation is the one that virtually everyone uses, both in the browser and with node.
Sirithcam has joined #ruby
cdg has joined #ruby
<oded> I have instance variables attached to certain classes, and I want to iterate the 'super flow' in the correct order and see those variables
<oded> I tried defining a method on Object and calling super, which works, but I can't tell from the method which class I'm currently 'at'
shinnya has joined #ruby
blackbombay has joined #ruby
<Burgestrand> oded frankly I'm not sure it's the whole picture (because I don't typically need to do this), but Module#ancestors is probably quite helpful.
lxsameer has joined #ruby
SteenJobs has joined #ruby
workmad3 has joined #ruby
<Burgestrand> oded also pry (a gem, similar to IRB) has some quite powerful inspection capabilities that help a lot with this kind of debugging (I assume that's what this is?)
<oded> Burgestrand: Ah! That's what I was looking for. Isn't it Rails only though?
<Burgestrand> >> (module M; end).ancestors
<ruby[bot]> Burgestrand: # => undefined method `ancestors' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/700719)
<oded> Burgestrand: not debugging, will post it here soon for your comments
<Burgestrand> >> module M; end; M.ancestors
<ruby[bot]> Burgestrand: # => [M] (https://eval.in/700720)
<Burgestrand> oded Not rails-only :)
millerti has joined #ruby
<Burgestrand> oded Keep in mind that the module hierarchy is not the only place Ruby looks for methods. Singleton-class defined methods can also hop in there.
<Burgestrand> >> string = "Hello"; def string.wut; "Wut"; end; string.wut
<ruby[bot]> Burgestrand: # => "Wut" (https://eval.in/700721)
prestorium has joined #ruby
Derderderd has joined #ruby
<Burgestrand> oded in addition method_missing also messes things up! :)
DLSteve has joined #ruby
frozengeek_ has quit [Remote host closed the connection]
frozengeek_ has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
polishdub has joined #ruby
Derderderd has quit [Ping timeout: 258 seconds]
nela has joined #ruby
frozengeek_ has quit [Read error: Connection reset by peer]
nela has left #ruby ["Konversation terminated!"]
rgiscard has quit [Quit: Gone fishing]
pragmaticus has quit [Quit: Leaving]
saslam has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 245 seconds]
_ZerGabriel_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cibs has joined #ruby
SuperLag has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
troulouliou_div2 has quit [Ping timeout: 252 seconds]
saslam has quit [Read error: Connection reset by peer]
boggle has quit [Quit: Leaving]
saslam has joined #ruby
saslam_ has joined #ruby
andrzeju_ has joined #ruby
hotpancakes has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
ponga has joined #ruby
ponga has quit [Client Quit]
ponga has joined #ruby
<ponga> we have .nil? method, do we have .not_nil?
<blackbombay> no
<ponga> :(
BrianJ has joined #ruby
xen0fon has joined #ruby
SesMan has quit [Remote host closed the connection]
SesMan has joined #ruby
<oded> Burgestrand and others, what do you think about this syntax for overloading methods: https://gist.github.com/odedniv/7f68a2925a8c8424b0175eefabfca4af
brendan- has joined #ruby
saslam has quit [Quit: Leaving]
<Burgestrand> oded I'm not much for this, but if I were I'd probably be thinking of a syntax more similar to e.g. pythons decorators
ishe_ua has quit [Read error: Connection reset by peer]
<Burgestrand> (without the @-signs though)
jhack has quit [Quit: jhack]
ishe_ua has joined #ruby
syngress has quit [Remote host closed the connection]
frozengeek has joined #ruby
despai has joined #ruby
<z64> ponga: something like #not_nil? would be redundant ; you just check for the object itself
SteenJobs has joined #ruby
houhoulis has joined #ruby
<oded> Burgestrand: but... no decorators in ruby
<herwin> z64: that doesn't work with false
<z64> but that isn't what he's checking.
xrlk has quit [Ping timeout: 248 seconds]
<z64> he asked specifically if there was #not_nil? - not whether he was looking to check for falsy values or not.
<Burgestrand> oded you could probably do some magic with hooks such as Module#method_defined
<Burgestrand> oded contracts do something similar: https://github.com/egonSchiele/contracts.ruby
nowz has quit [Quit: Leaving]
xen0fon_ has joined #ruby
<oded> Burgestrand: hmm that would be a huge mess though :x
<Burgestrand> oded I'm very much for interfaces :)
<oded> How do you mean?
tubuliferous_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
hahuang61 has joined #ruby
<Burgestrand> oded uh, like I typically begin by writing out how I want to call things before I do the implementation, and then I fill the innards, e.g. in your case I'd begin by using my API in a style similar to contracts (because I find the aestethics/interface of it pleasing) and then I'd make it work as close as possbile
ferr1 has quit [Quit: WeeChat 1.6]
Snickers has quit [Ping timeout: 248 seconds]
<Burgestrand> oded code interface design I guess :P
<Burgestrand> human computer interaction, those hippie stuff thingies
xall has joined #ruby
SpiffTR has joined #ruby
jhack has joined #ruby
montanonic has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
<oded> Burgestrand: right, I do that too but I then include the complexity of needed implementation and if I believe it outweigh the benefit I look for the next possible syntax
<oded> Too much hacking :)
Fernando-Basso has joined #ruby
houhoulis has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
<xall> in terms of the scope of the return
<Burgestrand> oded then we either have different approaches to the implementation, or different thresholds of how much compromise we allow in the API design :)
<Burgestrand> oded either way you asked my opinion and there it is!
SpiffTR1 has joined #ruby
SpiffTR has quit [Ping timeout: 252 seconds]
iNs has quit [Ping timeout: 258 seconds]
AndyBotwin has joined #ruby
anisha_ has quit [Quit: Leaving]
<oded> Burgestrand: I'm glad to have it :) (your opinion) on another matter, what do you think generally about overloading methods? It seems many times case/when is needed which I hate
Snowy has joined #ruby
Snowy is now known as SteveWright
bronson has joined #ruby
govg has joined #ruby
<Burgestrand> oded I don't feel like I need overloading when I do development in Ruby, funnily enough I do think it's a tool I use when I do work in other languages where it's available, but I've never felt like I missed it
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
evie_hammond has quit [Quit: WeeChat 1.6]
xen0fon_ has quit [Quit: Leaving]
jhack has quit [Quit: jhack]
<Burgestrand> oded no telling if it's due to how I code in Ruby, or simply because I've gotten used to it not being available, or a combination thereof
<oded> Burgestrand: I get what you mean
ropeney has joined #ruby
<Burgestrand> oded it would make sense that I don't miss it in Ruby because there's no static typing in Ruby
bronson has quit [Ping timeout: 250 seconds]
<oded> Burgestrand: yes, you try to avoid thinking about the types (I could also have the syntax do duck-typing with symbols)
jhack has joined #ruby
cajone has quit [Remote host closed the connection]
nettoweb has joined #ruby
grenierm has quit [Quit: grenierm]
evie_hammond has joined #ruby
grenierm has joined #ruby
SpiffTR1 has quit [Read error: Connection reset by peer]
rodfersou|lunch is now known as rodfersou
SpiffTR has joined #ruby
milardovich has quit []
<xall> what terms should i google to find out how to make it work?
montanonic has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
TomyLobo has quit [Disconnected by services]
kjbrjwqsevveohhm has joined #ruby
kjbrjwqsevveohhm is now known as dbenxwlwgigdhtyn
dbenxwlwgigdhtyn is now known as TomyLobo
cdg has joined #ruby
nankyokusei has joined #ruby
Burgestrand has joined #ruby
PaschalsWager has joined #ruby
Snickers has joined #ruby
<xall> nevermind, i'm an idiot. i thought it was an issue with block scope but it's because of detect truthiness
Derderderd has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<xall> but how can i use detect to get the first truthy method call while also returning the hash value?
Derderderd has quit [Ping timeout: 256 seconds]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<Burgestrand> xall I was away for a second, do you have a minimal example code piece?
<Burgestrand> (I was away hence I'm not sure if you already posted one)
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
saneax is now known as saneax-_-|AFK
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<xall> can i return val with detect in this manner?
<dminuoso> &ri Enumerable#first xall
<Burgestrand> Heh, gist.github.com is not loading for me at the moment.
<dminuoso> xall: And be very careful with the word "return" and blocks/procs/lambda.
nikivi has joined #ruby
<dminuoso> xall: If you are inside a block or proc, a return will return straight from the *current* method
<xall> dminuoso: thanks. i think i remember reading about that in eloquent ruby but it's been awhile
<dminuoso> xall: There's three (well 5 if you count throw/raise) control breaking operators:
<dminuoso> return, break and next
<Burgestrand> xall first will work as long as you don't want the computed value, but the actual value from your collection
<Burgestrand> >> [nil, nil, nil, 3, nil].first { |x| x != nil }
<ruby[bot]> Burgestrand: # => nil (https://eval.in/700801)
<Burgestrand> :D
<dminuoso> in block/proc a return breaks out of the current stack frame (i.e. method), break will break out of the block and stop enumerators, while next will break out of the block but still invoke the next enuemrator.
<Burgestrand> I got ruby'd
<dminuoso> lambdas differ just that a return is treated like a next
nikivi has quit [Client Quit]
<Burgestrand> >> [nil, nil, nil, 3, nil].find { |x| x != nil }
<ruby[bot]> Burgestrand: # => 3 (https://eval.in/700803)
lmc has joined #ruby
<dminuoso> Burgestrand: Heh. I meant find, which is just an alias for detect.
<dminuoso> My bad.
<Burgestrand> >> [1, 3, 5, 7].lazy.map { |x| x ** 2 }.find { |x| x > 100 }
<ruby[bot]> Burgestrand: # => nil (https://eval.in/700809)
SpiffTR has quit [Quit: Leaving.]
<Burgestrand> … I should go home
<Burgestrand> >> [1, 3, 5, 7].lazy.map { |x| x ** x }.find { |x| x > 100 }
<ruby[bot]> Burgestrand: # => 3125 (https://eval.in/700810)
Definity has joined #ruby
<Burgestrand> >> [1, 3, 5, 7].find { |x| (x ** x) > 100 }
<ruby[bot]> Burgestrand: # => 5 (https://eval.in/700811)
<Burgestrand> xall ^ two options, slightly different, not sure which one you're actually looking for
<Burgestrand> I'll take my own advice now. glhf
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll> anyone who uses fog storage know how i can get object info for a directory without retrieving the entire files?
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
grenierm has quit [Quit: grenierm]
<mikecmpbll> http://fog.io/storage/#checking-if-a-file-already-exists — i'd like to be able to loop over objects checking this head info without having to know the object ids
<mikecmpbll> or, if i can get a list of object ids without getting all the objects that would suffice.
pawnbox has quit [Remote host closed the connection]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
xall has quit [Ping timeout: 268 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
nadir has joined #ruby
zapata has joined #ruby
gbgdev_ has quit [Remote host closed the connection]
grenierm has joined #ruby
grenierm has left #ruby [#ruby]
AustinMatherne has quit [Ping timeout: 260 seconds]
AustinMatherne has joined #ruby
radic has quit [Ping timeout: 248 seconds]
radic has joined #ruby
byte512 has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
_ZerGabriel_ has quit []
synthroid has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
trajing has quit [Ping timeout: 248 seconds]
trajing has joined #ruby
ytti has quit [Ping timeout: 248 seconds]
ytti has joined #ruby
nettoweb has joined #ruby
jaguarmagenta has joined #ruby
gbgdev has joined #ruby
bougyman has quit [Quit: ZNC 1.6.3 - http://znc.in]
bougyman has joined #ruby
bougyman has joined #ruby
lianj has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Remote host closed the connection]
lianj has joined #ruby
beilabs has quit [Remote host closed the connection]
<Bish> >> abc = true if 1!=1;abc
<ruby[bot]> Bish: # => nil (https://eval.in/700829)
<Bish> is this expected behaviour? how is it defined?
antoniobeyah has joined #ruby
<Bish> i mean the code basicially is not run, why is abc defined
jaguarmagenta has quit [Ping timeout: 252 seconds]
frozengeek has quit [Quit: frozengeek]
SpiffTR has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
SpiffTR has joined #ruby
govg has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Remote host closed the connection]
brendan- has joined #ruby
arup_r has joined #ruby
<arup_r> Have 1 question. So I thought it is invalid Ruby a = {a: 1,} .. but Ruby is smart.
<matthewd> Bish: Because that's the way the parser works, because it's necessary to give (computationally) predictable behaviour
<arup_r> >> a = {a: 1,}
<ruby[bot]> arup_r: # => {:a=>1} (https://eval.in/700832)
<arup_r> I didn't know it.
<Bish> arup_r: yes
mark_66 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
<arup_r> I thought it will throw syntax error. anyway good.. TIL this syntax
trif has joined #ruby
<arup_r> But any reason of to have this flexibility?
<arup_r> just curious
trif has quit [Client Quit]
trif has joined #ruby
trif has quit [Client Quit]
trif has joined #ruby
ishe_ua has quit [Remote host closed the connection]
Definity has quit [Ping timeout: 264 seconds]
koldbrutality has joined #ruby
xrlk has joined #ruby
<arup_r> let me see
beilabs has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
<arup_r> matthewd: Why the last `,` is needed? I mean that Hash will work without it. Just trying to understand what is the reason. I understood by now it is a valid syntax. :)
despai has quit [Quit: This computer has gone to sleep]
<matthewd> Right: it's obviously not *needed* -- it's optional. But consider what advantages there might be, for someone editing the list, to include it.
<Gravious> arup_r, it's also pretty handy for patches, you can have a smaller diff when you append a new element to the hash than you would if trailing comms wasn't allowed
lmc has quit [Remote host closed the connection]
lmc has joined #ruby
<arup_r> nice analogies,, very cool!
<arup_r> thanks to both of you.
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Derderderd has joined #ruby
SpiffTR has quit [Ping timeout: 264 seconds]
conta has joined #ruby
pwnd_nsfw has joined #ruby
arup_r has quit []
chouhoulis has joined #ruby
Derderderd has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 258 seconds]
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
SpiffTR has joined #ruby
LuckyABA has joined #ruby
synthroid has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
Devalo has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
Devalo has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
fullofcaffeine has joined #ruby
PaschalsWager has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
FastJack has quit [Remote host closed the connection]
j3r0 has joined #ruby
brendan- has joined #ruby
amclain has joined #ruby
SpiffTR has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
synthroi_ has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<agent_white> Mornin' folks
braincrash has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
synthroid has quit [Ping timeout: 258 seconds]
gbgdev has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
Derderderd has joined #ruby
bronson has joined #ruby
gbgdev has joined #ruby
SteveWright has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
SteveWright has joined #ruby
lenwood has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hahuang61 has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 252 seconds]
demoo has joined #ruby
<demoo> hey all, coming from python to ruby
aryaching has joined #ruby
Chair has quit [Ping timeout: 258 seconds]
<demoo> I am a bit confused about the usage of << in some contexts
bradleyprice has quit [Remote host closed the connection]
<demoo> I know it is used for appending like on lists
<demoo> but in this link https://www.tutorialspoint.com/ruby/ruby_sending_email.htm it seems to be used for entering multiline text
<demoo> Where can I read up on the syntax for this specific usage of <<
colegatron has quit [Remote host closed the connection]
<matthewd> demoo: That's a heredoc
<demoo> matthewd: http://blog.jayfields.com/2006/12/ruby-multiline-strings-here-doc-or.html so I would guess this explains it? I have not heard of heredoc before
<matthewd> demoo: That link seems a bit short on the explaining, but is describing the right thing, yes
cajone has joined #ruby
<demoo> okay, thanks. ill look into it some more
hahuang61 has quit [Ping timeout: 258 seconds]
Ishido has quit [Remote host closed the connection]
FastJack has joined #ruby
fxa90id has joined #ruby
bradleyprice has joined #ruby
eightbit1aptor has joined #ruby
demoo has quit [Ping timeout: 260 seconds]
ocbtec has quit [Quit: leaving]
fullofcaffeine has quit [Remote host closed the connection]
SteveWright has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
Ishido has joined #ruby
despai has joined #ruby
SteveWright has joined #ruby
eightbitraptor has quit [Ping timeout: 248 seconds]
walterheck has joined #ruby
hotpancakes has quit [Remote host closed the connection]
demoo has joined #ruby
demoo has quit [Client Quit]
demoo has joined #ruby
eightbit1aptor has quit [Ping timeout: 260 seconds]
Gravious has quit [Remote host closed the connection]
symm- has joined #ruby
Beams has quit [Quit: .]
csk has joined #ruby
SteveWright has quit [Ping timeout: 252 seconds]
dviola has joined #ruby
bradleyprice has quit [Remote host closed the connection]
vuoto has joined #ruby
bradleyprice has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
hotpancakes has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
milardovich has joined #ruby
jsrn_ has quit [Quit: Leaving]
despai has joined #ruby
andikr has quit [Remote host closed the connection]
tenderlo_ has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 258 seconds]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
skydiver_ has quit [Ping timeout: 264 seconds]
despai has quit [Client Quit]
govg has joined #ruby
conta has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Derderderd has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
gbgdev_ has joined #ruby
demoo has quit [Ping timeout: 260 seconds]
maattdd has quit [Ping timeout: 265 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
gbgdev has quit [Ping timeout: 265 seconds]
griffindy has joined #ruby
marxarelli has joined #ruby
despai has joined #ruby
despai has quit [Client Quit]
nhhc has joined #ruby
TTilus has quit [Ping timeout: 268 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
jhack has quit [Quit: jhack]
Devalo has joined #ruby
dionysus69 has joined #ruby
jcao219 has joined #ruby
jhack has joined #ruby
walterheck has quit [Ping timeout: 250 seconds]
xall has joined #ruby
Guest45138 has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
<z64> Bish: you are defining abc, however. note how expressions are evaluated ; https://gist.github.com/z64/7ee85f73d70e11f9592eb5621f56ae2f
despai has joined #ruby
fullofcaffeine has joined #ruby
hotpancakes has quit [Remote host closed the connection]
TTilus has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
symm has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
demoo has joined #ruby
hotpancakes has joined #ruby
fullofca_ has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
AgentVenom has joined #ruby
AgentVenom has quit [Client Quit]
bradleyprice has joined #ruby
AgentVenom has joined #ruby
jaguarmagenta has joined #ruby
TTilus has quit [Ping timeout: 258 seconds]
sparch has quit [Ping timeout: 265 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnicole has quit [Remote host closed the connection]
Derderderd has joined #ruby
whathappens has joined #ruby
AgentVenom has quit [Ping timeout: 240 seconds]
fullofca_ has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
Devalo has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofca_ has joined #ruby
SteveWright has joined #ruby
duderonomy has joined #ruby
Lord_of_Life has quit [Excess Flood]
Devalo has joined #ruby
AgentVenom has joined #ruby
Lord_of_Life has joined #ruby
milardovich has quit []
pilne has joined #ruby
nankyokusei has joined #ruby
Didac has quit [Quit: LayerBNC - https://LayerBNC.org/ (Account terminated by LayerBNC Staff Team (Account unused for over 57 days, termination for inactivity.))]
enterprisey has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
csk has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
oded has quit [Remote host closed the connection]
_djbkd has joined #ruby
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
ogn has joined #ruby
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
BrianJ has joined #ruby
BrianJ has quit [Client Quit]
BrianJ has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
fullofca_ has quit [Remote host closed the connection]
BrianJ has quit [Client Quit]
fullofcaffeine has joined #ruby
nettoweb has joined #ruby
SteveWright has quit [Remote host closed the connection]
SteveWright has joined #ruby
jhack has quit [Ping timeout: 258 seconds]
weaksauce has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
SteveWright has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
Derderderd has quit [Ping timeout: 264 seconds]
byte512 has quit [Ping timeout: 246 seconds]
walterheck has joined #ruby
walterheck has quit [Remote host closed the connection]
Devalo has joined #ruby
milardovich has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
AndyBotwin has quit [Quit: Leaving]
synthroid has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
d^sh has quit [Ping timeout: 252 seconds]
synthro__ has joined #ruby
troulouliou_div2 has joined #ruby
synthroi_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
d^sh has joined #ruby
gheegh has joined #ruby
antoniobeyah has joined #ruby
JakFrist[WVU] has joined #ruby
marxarelli is now known as marxarelli|afk
harai_ has joined #ruby
AndyBotwin has joined #ruby
jschoolcraft has joined #ruby
synthroid has quit [Ping timeout: 258 seconds]
vuoto has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 258 seconds]
demoo has quit [Ping timeout: 260 seconds]
scootaloo has joined #ruby
tubuliferous has joined #ruby
chouhoulis has joined #ruby
JakFrist[WVU] has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has joined #ruby
Lord_of_Life has quit [Excess Flood]
torQue__ has joined #ruby
Lord_of_Life has joined #ruby
torQue__ has quit [Client Quit]
n008f4g_ has joined #ruby
SteveWright has joined #ruby
veloutin_ has joined #ruby
torQue_ has quit [Ping timeout: 248 seconds]
go|dfish has quit [Ping timeout: 248 seconds]
veloutin has quit [Ping timeout: 248 seconds]
j3r0 has quit [Ping timeout: 248 seconds]
SCHAAP137 has quit [Ping timeout: 248 seconds]
cnk has joined #ruby
last_staff has joined #ruby
xall has quit [Ping timeout: 260 seconds]
go|dfish has joined #ruby
SCHAAP137 has joined #ruby
xall has joined #ruby
ghostlight has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
j3r0 has joined #ruby
LoneHermit has joined #ruby
jhack has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
ghostlight has joined #ruby
govg has joined #ruby
izaac_ has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
synthroid has joined #ruby
minimalism has joined #ruby
izaac_ has joined #ruby
xall has quit [Ping timeout: 268 seconds]
marxarelli|afk is now known as marxarelli
minimalism has quit [Client Quit]
synthro__ has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
raul782 has joined #ruby
chouhou__ has joined #ruby
Derderderd has joined #ruby
deadnull has quit [Quit: Bye]
SteveWright has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
SteveWright has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
bartden has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
<bartden> hi, i want to replace , with nothing and convert to integer, is this syntax correct string.gsub(/,/,'').to_i
ramfjord has joined #ruby
<marchelzo> >> '1,000,000'.gsub(/,/, '').to_i
<ruby[bot]> marchelzo: # => 1000000 (https://eval.in/700880)
<marchelzo> looks good to me
tubuliferous has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
csk has joined #ruby
<bartden> ok thx
<bartden> apparently logstash has issues with it
SteveWright has quit [Ping timeout: 252 seconds]
Fernando-Basso has joined #ruby
vuoto has joined #ruby
ixti has joined #ruby
pwnd_nsfw` has joined #ruby
bartden has quit [Quit: bartden]
hotpanca_ has joined #ruby
tubuliferous has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
conta has joined #ruby
brendan- has joined #ruby
minimalism has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
chouhou__ has quit [Remote host closed the connection]
SeepingN has joined #ruby
dionysus69 has joined #ruby
chouhoulis has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
vuoto has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
SteveWright has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
scootaloo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
ogn has quit [Ping timeout: 265 seconds]
kuSuSE has quit [Quit: Konversation terminated!]
fxa has joined #ruby
SteveWright has quit [Quit: ragequit]
LuckyABA has joined #ruby
whathappens has quit [Remote host closed the connection]
cdg_ has joined #ruby
tercenya has quit [Remote host closed the connection]
ogn has joined #ruby
whathappens has joined #ruby
fxa has quit [Read error: Connection reset by peer]
fxa has joined #ruby
tercenya has joined #ruby
fxa has quit [Client Quit]
cdg has quit [Read error: Connection reset by peer]
fxa90id has quit [Ping timeout: 245 seconds]
rodfersou has quit [Quit: leaving]
n008f4g_ has quit [Ping timeout: 250 seconds]
BrianJ has joined #ruby
ldnunes has quit [Quit: Leaving]
xall has joined #ruby
jaguarmagenta has joined #ruby
whathappens has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
marchelzo has quit [Quit: marchelzo]
Jackneill has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
eightbitraptor has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
xall has quit [Ping timeout: 258 seconds]
futilegames has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
hahuang61 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
JoshS has quit [Ping timeout: 268 seconds]
ogn has quit [Ping timeout: 260 seconds]
bayed has quit [Quit: Connection closed for inactivity]
n008f4g_ has joined #ruby
edwinvdgraaf has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
doubleemms has joined #ruby
doubleemms has quit [Remote host closed the connection]
doubleemms has joined #ruby
bradleyprice has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 258 seconds]
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
JoshS has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
scootaloo has joined #ruby
brendan- has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has joined #ruby
minimalism has quit [Quit: minimalism]
maattdd has quit [Ping timeout: 240 seconds]
futilegames has left #ruby [#ruby]
eightbitraptor has quit [Ping timeout: 246 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
Devalo has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
nhhc has quit [Quit: Leaving]
alexandernst has quit [Ping timeout: 258 seconds]
alexandernst has joined #ruby
alexandernst has joined #ruby
alexandernst has quit [Changing host]
minimalism has joined #ruby
raul782 has quit [Remote host closed the connection]
johnmilton has quit [Quit: Namaste]
raul782 has joined #ruby
enterprisey has joined #ruby
asdalsfqheifdv has joined #ruby
milardovich has quit []
j3r0 has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
blackbombay has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
milardovich has joined #ruby
ramfjord_ has joined #ruby
doubleemms has quit [Remote host closed the connection]
MyMind has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
doubleemms has joined #ruby
GodFather has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
GodFather has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 240 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
synthroi_ has joined #ruby
doubleemms has quit [Ping timeout: 260 seconds]
raul782 has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
despai has joined #ruby
ojab has joined #ruby
raul782 has joined #ruby
Devalo has joined #ruby
ojab has left #ruby [#ruby]
Gravious has joined #ruby
whathappens has joined #ruby
_djbkd has quit [Ping timeout: 246 seconds]
alxgsv has joined #ruby
synthroid has quit [Ping timeout: 256 seconds]
raul782 has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Leaving]
whathappens has quit [Ping timeout: 245 seconds]
ogn has joined #ruby
gusrub has quit [Read error: No route to host]
gusrub__ has joined #ruby
blackbombay has joined #ruby
Sirithcam has quit [Ping timeout: 245 seconds]
SpiffTR has quit [Quit: Leaving.]
[Butch] has quit [Quit: I'm out . . .]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Madplatypus has joined #ruby
maattdd has joined #ruby
GodFather has joined #ruby
tildes has quit [Ping timeout: 248 seconds]
blackbombay has quit [Ping timeout: 268 seconds]
GodFather has quit [Client Quit]
SpiffTR has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
muelleme has joined #ruby
gix has quit [Disconnected by services]
gix- has joined #ruby
fullofcaffeine has joined #ruby
ur5us has joined #ruby
maattdd has quit [Ping timeout: 250 seconds]
raul782 has joined #ruby
postmodern has joined #ruby
_djbkd has joined #ruby
Fernando-Basso has quit [Ping timeout: 265 seconds]
cdg_ has quit [Ping timeout: 260 seconds]
saslam_ has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
gusrub__ is now known as gusrub
fullofcaffeine has joined #ruby
JoshS has joined #ruby
tau has quit [Remote host closed the connection]
alan_w has quit [Quit: WeeChat 1.4]
jenrzzz has joined #ruby
blackbombay has joined #ruby
Devalo has joined #ruby
eightbitraptor has joined #ruby
fullofcaffeine has quit [Ping timeout: 258 seconds]
brendan- has quit [Ping timeout: 260 seconds]
saneax-_-|AFK is now known as saneax
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
synthroi_ has quit []
lenwood has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
tercenya has quit [Remote host closed the connection]
govg has quit [Ping timeout: 265 seconds]
Devalo has quit [Ping timeout: 246 seconds]
bradleyprice has quit [Ping timeout: 260 seconds]
kuSuSE has joined #ruby
alan_w has joined #ruby
SteenJobs has joined #ruby
tercenya has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has joined #ruby
tau has joined #ruby
SteenJobs has quit [Client Quit]
meshsmith has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Jayson_Virissimo has joined #ruby
joebobjoe has joined #ruby
<joebobjoe> How do I debug a ruby program that is called by an external bash script?
<joebobjoe> Is there an environment variable I can set to drop into pry or something on the first line of code?
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
braincrash has joined #ruby
brendan- has joined #ruby
tekeli-li has joined #ruby
Snickers has quit [Quit: Snickers]
SpiffTR has quit [Quit: Leaving.]
muelleme has quit [Ping timeout: 265 seconds]
jaguarmagenta has joined #ruby
zacts has joined #ruby
swills_ has joined #ruby
swills_ has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
jaguarmagenta has quit [Ping timeout: 246 seconds]
asdalsfqheifdv has quit [Quit: Page closed]
<Cyrus> Did you already try binding.pry?
rakm has joined #ruby
polishdub has quit [Quit: Leaving]
tubuliferous has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
nankyokusei has joined #ruby
swills_ has joined #ruby
givemeurhats has joined #ruby
<joebobjoe> Cyrus: yes, but I can't require pry from the source code because I think the code has muched with the load paths
eightbitraptor has quit [Ping timeout: 268 seconds]
<givemeurhats> anyone here that can help me with using guard and unit test? I can't seem to get it to work
raul782 has joined #ruby
griffindy has joined #ruby
meshsmith_ has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
radic has quit [Quit: ZNC - http://znc.in]
codfection has quit [Ping timeout: 248 seconds]
millerti has joined #ruby
meshsmith has quit [Ping timeout: 260 seconds]
DTZUZU has quit [Quit: WeeChat 1.5]
givemeurhats has quit [Quit: Leaving]
swills has quit [Quit: Leaving]
quazimodo has joined #ruby
marxarelli is now known as marxarelli|afk
raul782 has quit [Remote host closed the connection]
tubuliferous has joined #ruby
<zenspider> rawr
darix has quit [Quit: may the packets be with you...]
whathappens has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
codfection has joined #ruby
trajing has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
xrlk has quit [Ping timeout: 246 seconds]
StoneCypher has joined #ruby
<StoneCypher> some communities allow questions about common libraries in language channels; others dont'
<StoneCypher> s/t'/'t/
<StoneCypher> would questions about sidekiq be welcome here?
radic has joined #ruby
<antoniobeyah> i’ve answered questions about other libraries, not sure why that one would be excluded
<antoniobeyah> just don’t try to sell it, thats annoying
_djbkd has quit [Remote host closed the connection]
<antoniobeyah> would have to ask one of the ops dudes here for an official answer
<apeiros> StoneCypher: the common rule is to look whether there's a dedicated channel and ask there. if it's inactive it's sensible to ask here. just remember to inform that you've asked a question elsewhere before.
<nofxx> actually apart from talking about rails you can talk about weather np =P
<apeiros> + remember to leave a note in the dedicated channel that you carry on to another channel
<zenspider> nofxx: please refrain from talking about the weather too much ... we DO try to keep the signal:noise good around here... :P
Sou|cutter has quit [Quit: WeeChat 0.4.2]
<StoneCypher> apeiros: found a small one; trying there first. thanks
enterprisey has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
|RicharD| has quit [Quit: Sto andando via]
bradleyprice has joined #ruby
<apeiros> camouflage the weather talk as weather service API talk
csk has quit [Quit: ZZZzzz…]
rwb has joined #ruby
ropeney has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<zenspider> exactly
fullofcaffeine has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
_djbkd has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
ramfjord_ has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
tercenya has quit [Remote host closed the connection]
Jayson_Virissimo has quit []
pgib has joined #ruby
tercenya has joined #ruby
hahuang65 has joined #ruby
<pgib> Let's say I have a constant array FOO `FOO = [:some, :stuff].freeze`, and I want to make another constant, BAR, which appends an element to FOO, is there a better way to write this than `BAR = (FOO + [:extra]).freeze` ?
<zenspider> pgib: better?
whathappens has quit [Ping timeout: 264 seconds]
<zenspider> based on what objective measure?
<StoneCypher> it seems like a question like that may be fairly open-ended if he's looking for consequences of which he is unaware
<pgib> well, conciseness. Basically, am I missing a method that can take a frozen array and either objects or another array and return a frozen array
scootaloo has quit [Quit: Textual IRC Client: www.textualapp.com]
<pgib> in particular, the Array + Array bothers me, I wish I could do FOO.concat(something) and return a new array
<pgib> I'm only adding one item, so the temporary 1-item array bothers me
lmc has quit [Quit: Leaving...]
<ytti> a3 = a1.+(a2)
<ytti> i don't think i understood the question
<zenspider> haha
<pgib> right, but in my scenario, a1 is an array and a2 is a sym, so it can't implicitly convert
<zenspider> I think the code is just fine the way it stands
<pilne> so with some googling today, i think that i am capable of "starting off" a browser-based game/ai thingy using sinatra and a few other gems, and a lot easier than i thought.
ramfjord has joined #ruby
<pilne> almost easier than trying to make a deployable binary >.<
<zenspider> we don't have many functional (non-mutative) methods to create new arrays
<ytti> pgib, you want #push which does not modify?
<pilne> needless to say i'm massively stoked regardless :)
<zenspider> pilne: cool
<pgib> well, push and << seem to modify it... at least as far as frozen arrays' impl is concerned
<zenspider> yup
<zenspider> like I said above
<pgib> FOO.push(:fun) => RuntimeError: can't modify frozen Array
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pgib> which really throws me in a loop... I thought that was the point of "!" vs "non-!" methods :-/
<pgib> well, nm, push apparently does modify the target
<zenspider> pgib: nope. ! means any number of things, but mostly "pay attention to me, I could be dangerous"
<zenspider> but arrays and strings and the like are all expected to be mutative
<pgib> makes sense. I guess "!" is more for side-effects
<zenspider> pgib: the Array#push doco should be very clear about that
<pgib> they are. I doubted myself after ytti's suggestion
rkoller has joined #ruby
<pgib> well, this solution has vetted itself on this channel long enough. I'm happy with my initial solution
<pgib> I suppose I can make a helper or mixin if this is something I find myself doing frequently
<zenspider> you can probably do: `(a1.dup << s1).freeze` but I wouldn't say it is any better / different
<zenspider> the + version is probably clearer in my mind
<zenspider> but again, the original code is fine
<pgib> yeah. regarding efficiency, I'd imagine mine is better. You get a one-item temporary array instead of a N-item temporary array through dup
symm has quit [Quit: Leaving...]
<pgib> of course, I don't know if those are actually ref-counted references to the same object in the impl. Man... high-level code is weir
<pgib> d
Ishido has quit [Read error: Connection reset by peer]
<StoneCypher> apeiros: what's the appropriate timeline to wait in the ruby community?
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Sammichmaker has joined #ruby
tekeli-li has left #ruby [""Monday""]
<zenspider> StoneCypher: wait?
<zenspider> pgib: 1) don't guess, measure. 2) it's not an N-item temporary array? it's the array you're going to use.
<pgib> ah, duh regarding #2. Yeah, it is simply marked "frozen" later. got it
ramfjord has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gbgdev_ has quit [Remote host closed the connection]
<StoneCypher> zenspider: i don't want to jump the gun on library-asking in here, and the timeline is very different in different communities
joebobjoe has quit [Quit: leaving]
trajing has joined #ruby
<zenspider> StoneCypher: if it isn't rails, just ask
<zenspider> if we don't like it or know a better place to send you, we'll let you know
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ramfjord has joined #ruby
raul782 has joined #ruby
johnmilton has joined #ruby
mikecmpbll has joined #ruby
<StoneCypher> zenspider: it's sidekiq
<StoneCypher> i'm trying to run the plain ruby example from their github
<StoneCypher> it is returning what appears to be a hash residue (big hex string,) but then the expected puts does not occur
<StoneCypher> i'm not a ruby person so i don't know how to diagnose this. the daemon does show up in ps, and appears to be issuing hashes
koooge has joined #ruby
<zenspider> StoneCypher: dumb question... but ARE you calling puts?
<zenspider> the example might be from an irb session, which will auto-print
<StoneCypher> it is from an irb session. as the comments recommend
symm- has joined #ruby
<zenspider> StoneCypher: I don't see an obvious example on their github page. URL?
hightower2 has joined #ruby
milardovich has quit []
<StoneCypher> took me a sec to find it again, sry
jgt has joined #ruby
raul782 has quit [Ping timeout: 246 seconds]
<zenspider> so you're not seeing the "Workin'" output?
<StoneCypher> nope
aryaching has quit [Ping timeout: 246 seconds]
whathappens has joined #ruby
<zenspider> I don't use sidekiq... but which terminal session are you looking in for the output?
<zenspider> if you're backgrounding the server, you might not be seeing it
trajing has quit [Read error: Connection reset by peer]
<zenspider> I could be way off tho
hightower3 has quit [Ping timeout: 256 seconds]
<StoneCypher> zenspider: http://imgur.com/a/uYgui
<StoneCypher> oh.
<StoneCypher> yeah, it's backgrounded
<StoneCypher> hrm.
charliesome has joined #ruby
marxarelli|afk is now known as marxarelli
mim1k|work has quit [Ping timeout: 256 seconds]
despai has joined #ruby
<zenspider> yeah. I think the printing should be on the server side. the client is just messaging "please do this thing"
mim1k|work has joined #ruby
sdwrage has joined #ruby
meshsmith_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
workmad3 has quit [Ping timeout: 252 seconds]
tyang has quit [Read error: Connection reset by peer]
xall has joined #ruby
xrlk has joined #ruby
agent_white has quit [Quit: brb]
johnmilton has quit [Remote host closed the connection]
fullofcaffeine has quit [Quit: Leaving...]
xall has quit [Ping timeout: 264 seconds]
hotpancakes has joined #ruby
bradleyp_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fernando-Basso has quit [Quit: WeeChat 1.6]
trajing has joined #ruby