bijan__ has quit [Read error: Connection reset by peer]
LenPayne has joined #ruby
wontruefree has joined #ruby
cyberg has quit [Remote host closed the connection]
<osp2>
oh but it requires that we register with google
Guest82829 has joined #ruby
bijan_ has joined #ruby
jrafanie has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
bijan_ has quit [Ping timeout: 245 seconds]
bijan_ has joined #ruby
karapetyan has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
ciscam has joined #ruby
SanguineAnomaly has quit [Ping timeout: 248 seconds]
<osp2>
where do you guys put your config files for a plain ruby project?
<osp2>
I have a project I created with "bundle gem"
bijan_ has quit [Ping timeout: 256 seconds]
<osp2>
and I want to add yaml config files
<osp2>
but idk where to put them
bijan_ has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
Guest82829 has quit [Ping timeout: 248 seconds]
bijan_ has quit [Read error: Connection reset by peer]
SanguineAnomaly has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
jrafanie has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
AJA4350 has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 260 seconds]
<elomatreb>
Class variables are best forgotten
bijan_ has quit [Ping timeout: 260 seconds]
<nixpulvis>
It was actually nice that it was implemented with them. I was wrapping another rails plugin, which had a `Configuration` module with two methods for getting and setting `@@config`. I could extend that module in my own module, and everything worked as expected.
<nixpulvis>
because both modules were talking to the same data.
amar_ has joined #ruby
bijan_ has joined #ruby
Guest82829 has joined #ruby
amar_ has quit [Ping timeout: 264 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
bijan_ has joined #ruby
Guest82829 has quit [Ping timeout: 268 seconds]
bijan_ has quit [Read error: Connection reset by peer]
Guest82829 has joined #ruby
bijan_ has joined #ruby
white_lilies has quit [Ping timeout: 245 seconds]
Guest82829 has quit [Ping timeout: 264 seconds]
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
Guest82829 has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
nixpulvis has quit [Quit: leaving]
Guest82829 has quit [Ping timeout: 248 seconds]
bijan_ has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Guest82829 has quit [Ping timeout: 240 seconds]
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 260 seconds]
Guest82829 has joined #ruby
bijan_ has joined #ruby
donofrio has quit [Remote host closed the connection]
bijan__ has quit [Ping timeout: 276 seconds]
Guest82829 has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
grilix_ has joined #ruby
Guest82829 has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan__ has joined #ruby
moei has quit [Quit: Leaving...]
bijan_ has quit [Ping timeout: 260 seconds]
Guest82829 has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
bijan_ has quit [Ping timeout: 245 seconds]
Guest82829 has joined #ruby
bijan_ has joined #ruby
wontruefree has quit [Quit: bye]
Guest82829 has quit [Ping timeout: 240 seconds]
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
Guest82829 has joined #ruby
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 245 seconds]
bijan_ has quit [Read error: Connection reset by peer]
Guest82829 has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
Guest82829 has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
Guest82829 has quit [Ping timeout: 264 seconds]
bijan__ has quit [Read error: Connection reset by peer]
Guest82829 has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
Guest82829 has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
bijan__ has joined #ruby
Puffball has quit [Quit: Puffball]
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 264 seconds]
karthik_ has joined #ruby
moei has joined #ruby
amar has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
<Bish>
but i figured, ruby gives the object a bit, which says " yes/no" on private-status
konsolebox has quit [Max SendQ exceeded]
Guest78390 has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
pskosinski has quit [Ping timeout: 255 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest36555
pskosinski has joined #ruby
amar has quit [Remote host closed the connection]
Beams has joined #ruby
konsolebox has joined #ruby
blackmesa has joined #ruby
ur5us has joined #ruby
amar has joined #ruby
amar has quit [Ping timeout: 265 seconds]
deathwishdave has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
vonfry has joined #ruby
quobo has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
vonfry has quit [Remote host closed the connection]
vonfry has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
NL3limin4t0r has joined #ruby
yohji has quit [Ping timeout: 240 seconds]
sylario has joined #ruby
roamingdog has joined #ruby
Morrolan has quit [Quit: Goodbye]
amar has joined #ruby
amar has quit [Remote host closed the connection]
bijan_ has joined #ruby
gregf_ has joined #ruby
amar has joined #ruby
ur5us has quit [Remote host closed the connection]
yohji has joined #ruby
amar has quit [Ping timeout: 245 seconds]
tty has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Read error: No route to host]
amar has joined #ruby
apeiros has joined #ruby
jamesaxl has joined #ruby
BaroMeter has quit [Remote host closed the connection]
Morrolan has joined #ruby
karthik_ has quit [Ping timeout: 260 seconds]
<DarkUnicorn>
@Bish why not use .private? and negate it?
_pastel has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
ciscam has quit [Ping timeout: 268 seconds]
apeiros has quit [Remote host closed the connection]
ciscam has joined #ruby
apeiros has joined #ruby
amar has quit [Remote host closed the connection]
conta has joined #ruby
amar has joined #ruby
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
amar has quit [Read error: No route to host]
amar has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
amar has quit [Remote host closed the connection]
Rubyist has joined #ruby
amar has joined #ruby
<Rubyist>
Hey Everyone, how can I compile Ruby 2.5 from source without having ruby installed?
herbmillerjr has quit [Quit: Konversation terminated!]
ski7777 has joined #ruby
za1b1tsu has joined #ruby
Rubyist has quit [Quit: Page closed]
bijan_ has quit [Remote host closed the connection]
feelx has joined #ruby
jrafanie has joined #ruby
desperek has joined #ruby
ldnunes has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
soniya29 has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has quit [Read error: Connection reset by peer]
guille-moe has quit [Quit: guille-moe]
jrafanie has joined #ruby
bijan_ has joined #ruby
bijan__ has joined #ruby
karapetyan has joined #ruby
bijan_ has quit [Ping timeout: 260 seconds]
cyberg has joined #ruby
bijan__ has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 276 seconds]
ferr has joined #ruby
synthroid has joined #ruby
gr33n7007h has joined #ruby
bijan_ has joined #ruby
gr33n7007h is now known as al2o3-cr
jcalla has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
Guest82829 has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
Guest82829 has joined #ruby
bijan_ has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
soniya29 has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
bijan_ has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
saTchymoto has joined #ruby
<clemens3>
you need gcc not ruby to compile it
bijan_ has quit [Ping timeout: 256 seconds]
atmosx has joined #ruby
atmosx has quit [Client Quit]
atmosx has joined #ruby
conta has quit [Quit: conta]
beefjoe has joined #ruby
za1b1tsu has joined #ruby
Guest82829 has joined #ruby
apparition has joined #ruby
bijan_ has joined #ruby
conta has joined #ruby
rajpratik71 has joined #ruby
soniya29 has joined #ruby
rajpratik71 has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 245 seconds]
Inline has joined #ruby
fmcgeough has joined #ruby
blackmesa has joined #ruby
fmcgeough has quit [Client Quit]
bmurt has joined #ruby
zer0s has joined #ruby
bijan_ has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
yawniek has quit [Quit: WeeChat 2.1]
conta has quit [Client Quit]
bijan_ has quit [Ping timeout: 245 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
safetypin has quit [Quit: ZZZzzz…]
bmurt has joined #ruby
conta has joined #ruby
chris349 has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
edwardly has quit [Ping timeout: 248 seconds]
bijan_ has joined #ruby
conta has quit [Quit: conta]
amar has quit [Remote host closed the connection]
bga57 has quit [Ping timeout: 248 seconds]
bga57 has joined #ruby
amar_ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
psychicist__ has joined #ruby
codymj has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 256 seconds]
bijan_ has joined #ruby
fmcgeough has joined #ruby
szulak has quit [Ping timeout: 276 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
_pastel has quit [Ping timeout: 268 seconds]
amar has joined #ruby
blackmesa has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
bijan_ has joined #ruby
Mrgoose has quit [Quit: ZNC 1.7.x-nightly-20170908-e86efb08 - https://znc.in]
Mrgoose2 has joined #ruby
wald0 has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
Rapture has joined #ruby
bijan_ has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
suukim has quit [Quit: Konversation terminated!]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
gizmore has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
mjolnird has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
lanky_leguan has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
mjolnird has joined #ruby
karapetyan has joined #ruby
mjolnird has quit [Remote host closed the connection]
<lanky_leguan>
I was looking at code in uri stdlib and saw v.gsub!(/(?!%\h\h|[!$-&(-;=?-_a-~])./n.freeze){'%%%02X' % $&.ord} why is regex frozen? what does it do?
gizmore has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
tvw has quit [Read error: Connection reset by peer]
<lanky_leguan>
like Pattern.compile in java? and always the same regex will be used in that gsub? and I as programmer don't have to store it?
mjolnird has joined #ruby
tvw has joined #ruby
mjolnird has quit [Remote host closed the connection]
<lanky_leguan>
or is it just mystical incantation, cargo cult programming?
<apeiros>
lanky_leguan: no idea, given that regexen are immutable anyway…
bijan_ has joined #ruby
mjolnird has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
gizmore|3 has joined #ruby
gizmore|2 has quit [Ping timeout: 256 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 265 seconds]
saTchymoto has quit []
Asher has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
gizmore|3 has quit [Ping timeout: 265 seconds]
iceden has quit [Ping timeout: 248 seconds]
bijan_ has joined #ruby
Asher has quit [Ping timeout: 255 seconds]
vonfry has quit [Remote host closed the connection]
szulak has joined #ruby
bijan_ has quit [Ping timeout: 245 seconds]
plujon has joined #ruby
anjen has joined #ruby
samosaphile has joined #ruby
samosaphile has left #ruby [#ruby]
samosaphile has joined #ruby
<plujon>
I'm on linux, somewhere near gem hell. How do I get out?
dionysus69 has quit [Ping timeout: 240 seconds]
szulak has quit [Ping timeout: 255 seconds]
p4p0l0 has quit [Remote host closed the connection]
grilix_ has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
p4p0l0 has joined #ruby
DTZUZO has joined #ruby
blackmesa has joined #ruby
amar has quit [Remote host closed the connection]
samosaphile has quit [Quit: Page closed]
bijan_ has quit [Ping timeout: 256 seconds]
icy` has joined #ruby
_pastel has joined #ruby
lanky_leguan has quit [Quit: Quit pro quo.]
Xiti` has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
<havenwood>
Create a Gemfile, put `gem 'roda'` in it, then either install and run bundler, or use: gem i -g
Asher has joined #ruby
<plujon>
bundler is an example in this case, for every ruby thing I am about to install.
gizmore|3 has joined #ruby
gizmore|3 has quit [Client Quit]
gizmore has quit [Ping timeout: 265 seconds]
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
<havenwood>
plujon: Without bundler and making a fresh Gemfile, for example: echo "gem 'roda'" >> Gemfile && gem i -g
<havenwood>
or in your case, due to RubyGems location: sudo gem i -g
Asher has quit [Ping timeout: 245 seconds]
gizmore|2 has quit [Ping timeout: 265 seconds]
<havenwood>
plujon: sudo gem install bundler
tdy1 has joined #ruby
<havenwood>
plujon: If your RubyGems was setup for a local install, you could just: gem install bundler
<havenwood>
It's the location that results in requiring sudo.
<plujon>
sudo gem install bundler # worked, I now have bundler 1.15.1. It prints a warning athat I should run `gem install bundler` when I run it.
bijan__ has quit [Ping timeout: 265 seconds]
bijan_ has joined #ruby
<havenwood>
plujon: Run: bundle
<havenwood>
plujon: What's the result?
<havenwood>
plujon: If it can't find the gem you just installed, then you'll need to add the RubyGems bin/ dir to your PATH.
<plujon>
echo "gem 'roda'" >Gemfile && gem i -g # cool, no bundler, installed roda and rack to system gems location
tdy has quit [Ping timeout: 256 seconds]
<plujon>
echo "gem 'roda'" >Gemfile && sudo gem i -g # cool, no bundler, installed roda and rack to system gems location
<plujon>
rackup now works
<havenwood>
plujon: Yeah, most folk don't realize that you can turn a Gemfile into a Gemfile.lock with just RubyGems.
<plujon>
$ rackup # works without `bundler exec` in front
<plujon>
rm Gemfile* # rackup still works
<havenwood>
plujon: If you install gems newer than your Gemfile.lock, you'll need to: RUBYGEMS_GEMDEPS=-
<havenwood>
export RUBYGEMS_GEMDEPS=-
<havenwood>
or: RUBYGEMS_GEMDEPS=Gemfile rackup
<havenwood>
plujon: Don't delete your Gemfile, commit it and your Gemfile.lock.
<havenwood>
The Gemfile says what deps the Gemfile.lock should resolve for.
<havenwood>
The Gemfile.lock is the exact gems your app will use.
<plujon>
I understand for a production app I'd commit Gemfile and Gemfile.lock. But I simply want to write a 10 line roda app without relying on a friggin' Gemfile.
safetypin has joined #ruby
<havenwood>
`RUBYGEMS_GEMDEPS=-` means that RubyGems should detect the Gemfile.lock location then use those exact gems.
<havenwood>
plujon: Sure, if you don't have newer gems installed, there's absolutely no difference.
<havenwood>
plujon: You can just: sudo gem install roda
cschneid has joined #ruby
<plujon>
# apt-get install bundler # seems pointless since it immediately tells me to use `gem install bundler`
<havenwood>
plujon: sudo gem install roda && rackup
amar has quit [Remote host closed the connection]
<plujon>
# sudo gem install bundler # methinks I'll do this too
<havenwood>
plujon: You don't need Bundler for any reason if you're not using a Gemfile.lock.
<havenwood>
plujon: Even if you are using a Gemfile.lock, Bundler is optional.
<havenwood>
plujon: It's a hard Rails dep unless you modify a few files. It's not a Roda dep in any way.
maxyz_ has joined #ruby
bijan_ has quit []
synthroid has quit [Remote host closed the connection]
<plujon>
havenwood: Thanks for the sans-bundler `gem i -g` tip.
Beams has joined #ruby
tdy1 has quit [Ping timeout: 240 seconds]
<plujon>
Does rackup (or other ruby code) pay attention to Gemfile.lock? Or does it only have an effect for `bundler exec ...` or 'require "bundler"' code?
tdy1 has joined #ruby
<havenwood>
plujon: It isn't automatically detected unless you set the env var `export RUBYGEMS_GEMDEPS=-`.
<havenwood>
plujon: If you put that ^ in a dotfile that gets sourced, then RubyGems will automatically do the equivalent of prefixing `bundle exec`, but without Bundler.
<havenwood>
plujon: Or prefix it to your command: RUBYGEMS_GEMDEPS=- rackup # the `rackup` from the Gemfile.lock
soniya29 has joined #ruby
<havenwood>
export RUBYGEMS_GEMDEPS="-"
<havenwood>
plujon: The long form of `gem i -g` is `gem install --file`
<havenwood>
plujon: If you want to be fancy, you can also rename `Gemfile` to `gem.deps.rb`.
<havenwood>
plujon: That'd ^ create the `gem.deps.rb`, resolve deps to create the `gem.deps.rb.lock` and then use the `rackup` from the `gem.deps.rb.lock` file.
<havenwood>
plujon: (It's not the conventional way of doing things, for historical reasons. Rubyists often don't read RubyGems release notes. >.>)
Beams has quit [Ping timeout: 264 seconds]
anisha has quit [Quit: Leaving]
blackmesa has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
Guest82829 has joined #ruby
Beams has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
Guest82829 has quit [Ping timeout: 245 seconds]
anjen has quit [Quit: anjen]
apeiros has quit [Ping timeout: 265 seconds]
GodFather_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
akaiiro has joined #ruby
Guest82829 has joined #ruby
amar has joined #ruby
Beams has quit [Ping timeout: 245 seconds]
akaiiro has quit [Ping timeout: 248 seconds]
Guest82829 has quit [Ping timeout: 248 seconds]
Beams has joined #ruby
TomyWork has quit [Quit: Leaving]
wontruefree has joined #ruby
zer0s has quit [Ping timeout: 245 seconds]
Beams has quit [Client Quit]
Guest82829 has joined #ruby
GodFather_ has quit [Remote host closed the connection]
Beams has joined #ruby
anisha has joined #ruby
akaiiro has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
cagomez has joined #ruby
_pastel has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
cagomez has quit [Remote host closed the connection]
akaiiro has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
<baweaver>
because no parens there confuses the parser, it thinks that might be a hash argument instead.
<cthulchu>
yeha I got it
Guest82829 has quit [Ping timeout: 265 seconds]
<cthulchu>
so if I have a normal function like def f1(a,b,c=0), can I call it like f1(b:"qwe", a:4)?
<cthulchu>
also the spaces... I should have spaces after commas/colons?
dionysus69 has quit [Ping timeout: 256 seconds]
<cthulchu>
this is difficult to debug. Does it look wrong to you? .analytics(dl_var_val:"memberNavigation",dl_var_name:"Close",t_type:"dl",file:__FILE__,comment:"",debug_f:true)
blackmesa1 has joined #ruby
Dbugger has quit [Quit: Leaving]
Guest82829 has joined #ruby
<cthulchu>
oh
<cthulchu>
all is good
<cthulchu>
the error was in a different place. And yes, I suspect it doesn't understand new lines and indentations even with parenthesis.
jenrzzz has quit [Ping timeout: 276 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
<cthulchu>
gonna check
<cthulchu>
nope. it understands all very well
<cthulchu>
my bad
stairmast0r has joined #ruby
Guest82829 has joined #ruby
SCHAPiE has quit [Ping timeout: 264 seconds]
SCHAPiE has joined #ruby
<cthulchu>
can we do .each from the end?
<cthulchu>
starting from the length-1 index and going down to 0?
Guest82829 has quit [Ping timeout: 248 seconds]
<cthulchu>
or maybe better find
jyaworski has quit [Ping timeout: 264 seconds]
<cthulchu>
or select
jyaworski has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
whathappens has joined #ruby
fmcgeough has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest82829 has joined #ruby
starseed0000 has joined #ruby
blackmesa1 has quit [Quit: WeeChat 2.1]
fmcgeough has quit [Client Quit]
Guest82829 has quit [Ping timeout: 245 seconds]
Guest36555 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
behemot has joined #ruby
Nicmavr is now known as Guest71821
Guest82829 has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
behemot has quit [Client Quit]
Guest82829 has quit [Ping timeout: 264 seconds]
<konsolebox>
cthulchu: this is more readable: .analytics(dl_var_val: "memberNavigation", dl_var_name: "Close", t_type: "dl", file: __FILE__, comment: "", debug_f: true)
weird_error has quit [Quit: weird_error]
<cthulchu>
yeah, I was looking for a regex to fix it all, but gave up
jyaworski has quit [Ping timeout: 240 seconds]
thoolihan has joined #ruby
thoolihan has left #ruby ["Leaving"]
weird_error has joined #ruby
Guest82829 has joined #ruby
whathappens has quit [Remote host closed the connection]
Dbugger has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
jyaworski has joined #ruby
<zenspider>
those variable names... is that hungarian notation?!? this is NOT C
karapetyan has joined #ruby
akkad has quit [Remote host closed the connection]
Guest82829 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ZangPoo has joined #ruby
<konsolebox>
zenspider: most Ruby code have always been like that. why surprised?
<zenspider>
konsolebox: says who?
whathappens has joined #ruby
<zenspider>
hungarian notation is NOT idiomatic naming in ruby. "most Ruby code" is simply false.
<konsolebox>
zenspider: nobody said, but look at the MRI library
ZangPoo has left #ruby [#ruby]
karapetyan has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 248 seconds]
<zenspider>
MRI library is FAR from "most ruby code", is written primarily by Japanese folk (who code much different from the rest of us for mostly cultural reasons), and is 15+ years old ond relatively unmaintained.
<zenspider>
and still, your statement is false. I see expr, headers, opt, port, row_count, etc... I'd be hard pressed to find something that looked like hungarian notation in there and it'd be in the minority
<zenspider>
(hrm... I have a bundler vendor dir in here... does ag have an exclude ...ah --ignore)
<konsolebox>
zenspider: my point is that an official implementation like the MRI library showing such notation or whatever appropriate term you can call it is enough to show that your surprise about it doesn't make sense. you sound like someone trying to start a crusade to make the style look alien.
<konsolebox>
it has been there. what are you trying to imply?
Guest82829 has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
<zenspider>
I'm not trying to imply anything. I'm stating that you're wrong.
Guest82829 has quit [Ping timeout: 256 seconds]
<konsolebox>
zenspider: ok, but why do you show surprise?
icarus has quit [Ping timeout: 248 seconds]
jcalla has quit [Quit: Leaving]
wontruefree has quit [Quit: bye]
psychicist__ has quit [Quit: Lost terminal]
zachk has joined #ruby
Guest82829 has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
dionysus69 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has joined #ruby
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
<baweaver>
konsolebox: What Ruby code have you been reading? I don't find that to be the case in most projects I've seen, notably OSS ones.
<baweaver>
That, and I believe that was unnecessarily rude to the Japanese developers
whathappens has quit []
workmad3 has quit [Ping timeout: 255 seconds]
<baweaver>
They put in substantial work to the Ruby language, and calling it unmaintained is quite frankly untrue.
<baweaver>
I would ask that you rescind that statement
<zenspider>
baweaver: to be clear, that was on me.
<baweaver>
Things blend together too much, need to grab coffee
Guest82829 has joined #ruby
Dbugger has quit [Ping timeout: 265 seconds]
<baweaver>
that said, I'd still hold to that statement. It comes off poorly on first read.
<zenspider>
and I stand by that. A good portion of stdlib is really old, often non-idiomatic, and recently untouched. I'm looking at abbrev.rb right now and ignoring rdoc + shebang + frozen_string_literal changes that happened across everything, it hasn't been actually modified in 5 years.
Guest82829 has quit [Ping timeout: 245 seconds]
<zenspider>
looking at something like akr's open-uri, which is obviously a really useful tool, < 1kloc, and documented... and yet everytime I have to dig into it to figure something out it always takes me a good long while. It's such a short file (for what it does) but damn... ~50 extra blank lines would actually make it so much more readable
wontruefree has joined #ruby
dviola has joined #ruby
<zenspider>
(I'm not trying to imply that open-uri is unmaintained--hardly. it's relatively actively developed... it IS hard to read tho and I think a lot of that has to do with those culturally different ways of coding)
<konsolebox>
baweaver: so which one did you say was for me?
jyaworski has quit [Ping timeout: 265 seconds]
amar has quit [Remote host closed the connection]
Guest82829 has joined #ruby
tdy1 has quit [Ping timeout: 240 seconds]
amar has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 264 seconds]
tdy1 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
Guest82829 has joined #ruby
jyaworski has joined #ruby
icarus has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
Guest82829 has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
Guest82829 has quit [Ping timeout: 260 seconds]
icy` has quit [Quit: .: ciao :.]
gizmore has joined #ruby
Mike11 has joined #ruby
Guest82829 has joined #ruby
fishybap has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
fishybap has left #ruby ["WeeChat 2.1"]
<gizmore>
havenwood: thank you for your feedback lately.... would you run my rspec with byebug?
<ruby[bot]>
gizmore: # => /tmp/execpad-3517692fabfe/source-3517692fabfe:2: unexpected fraction part after numeric literal ...check link for more (https://eval.in/1026769)
lytol has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 256 seconds]
<jmaister>
I hardly ever write ruby, so I forget these things
<havenwood>
Emerald: It will also have backported security fixes.
Guest82829 has quit [Ping timeout: 248 seconds]
<Emerald>
Thank you
<havenwood>
Emerald: Ruby 2.0 is unmaintained, and does not have security fixes for known vulnerabilities if you compile from source without backported security fixes.
<havenwood>
Emerald: You're welcome
<Emerald>
But why does Ruby require Ruby to install Ruby from source?
<havenwood>
Emerald: It doesn't.
<havenwood>
Emerald: There's probably an incompatibility between Ruby 2.0 and Artful, and 2.0 is unmaintained so it doesn't receive bugfixes. Unsure.
tvw has quit [Remote host closed the connection]
<Emerald>
What about 2.5?
<havenwood>
Emerald: It should work just fine. 2.5.1 ftw.
<Emerald>
When I downloaded a tar for 2.5, and ran configure, it checked for ruby, and when it didn't find it, it stopped
<havenwood>
Emerald: Show what you're running?
<Emerald>
Am I downloading the wrong files? I also tried the git repo