havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: 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 || Books: https://goo.gl/wpGhoQ
troys_ is now known as troys
pwnd_nsfw has joined #ruby
rrutkowski has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
pastorinni has quit [Remote host closed the connection]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
randomstrangerb has joined #ruby
dstrunk has joined #ruby
guardianx has joined #ruby
<darix> weaksauce: 1.9.3 is lacking a lot and i mean a lot of security fixes
<darix> weaksauce: you do not want to use it anymore
<darix> distros backport fixes for older versions. but source install lacks all those backports
<weaksauce> I don't actually use it but the client is not paying me to upgrade it
<weaksauce> it's going to heroku and i assume they use a patched version
<darix> heroku is really still offering 1.9????
dogweather has joined #ruby
<weaksauce> seeing as how the push worked and the changes look good, yeah they still do
baroquebobcat has quit [Quit: baroquebobcat]
guardianx has quit []
<havenwood> "When a Ruby version reaches EOL security patches will no longer be available. We highly recommend running on a version of Ruby that is actively supported by Ruby core." ~Heroku
<havenwood> "Ruby ... 1.9.3 [has] reached EOL. While you can still run [it] on cedar-14 stack, security patches are not be applied."
<havenwood> weaksauce: It's not patched. It's vulnerable. FWIW
<darix> weaksauce: it actually will be more work for you to use 1.9.3
<darix> than a recent version ;)
<havenwood> They do a great job of patching supported Rubies.
tipyn has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
<weaksauce> yeah. it's vulnerable but it's not a high traffic site and doesn't have anything of real value on the server and doesn't run a database or anything like that. it's not my call anyway
<weaksauce> but yeah I appreciate the heads up. I use recent rubies for my stuff.
Dimik has quit [Ping timeout: 240 seconds]
<havenwood> heroku stack:set heroku-16
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<havenwood> ^ that and a Ruby version bump to 2.3 might be relatively painless
<havenwood> but yeah, I suppose you'd have to be paid to do it ;-P
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> I wonder what this means...: "Matz: I have a rough idea to use backtick as a namespace separator."
guille-moe has joined #ruby
sepp2k has quit [Quit: Leaving.]
<havenwood> I wonder what that would look like?
tcopeland has joined #ruby
tipyn has joined #ruby
justinfaler has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
cdg has joined #ruby
<havenwood> Does he mean like Net`HTTP and Digest`MD5? Hrm.
<havenwood> I do think that's what's meant. Mmm.
cdg has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
cdg has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
nowhereman_ has joined #ruby
guille-moe has quit [Ping timeout: 252 seconds]
<darix> havenwood: that wont screw with things like `shell command`
<darix> ;)
nowhere_man has quit [Ping timeout: 252 seconds]
<havenwood> darix: deprecated
<darix> havenwood: I find it ugly even in shell scripts
* darix is a strong believer in $(shell command)
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
KeyJoo has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
camfowler has quit [Quit: leaving]
justinfaler has joined #ruby
camfowler has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jottr_ has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
wilbert has quit [Read error: Connection reset by peer]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camfowler has quit [Quit: leaving]
tipyn has quit [Read error: Connection reset by peer]
belmoussaoui has quit [Quit: belmoussaoui]
milardovich has joined #ruby
AJA4350 has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nowhereman_ has quit [Read error: Connection reset by peer]
rrutkowski has left #ruby [#ruby]
nowhere_man has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
mtkd has joined #ruby
kryptoz has joined #ruby
pwnd_nsfw has joined #ruby
RougeT430 has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
kryptoz has quit [Ping timeout: 252 seconds]
nowhereman_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
justinfaler has quit [Ping timeout: 240 seconds]
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
justinfaler has joined #ruby
milardovich has quit [Remote host closed the connection]
DTZUZO has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
veduardo_ has joined #ruby
nowhere_man has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
marr has quit [Ping timeout: 268 seconds]
nowhereman_ has quit [Ping timeout: 240 seconds]
veduardo_ has quit [Ping timeout: 240 seconds]
rrutkowski has joined #ruby
dstrunk has joined #ruby
alfiemax has joined #ruby
jottr_ has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 252 seconds]
Sans has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
<Sans> Hi, I'm trying to install the gem json, version it's trying to install is 1.7.7, version of ruby is *apparently* 2.6.0-dev but the issue exists in 2.3.0 as well, issue is, it doesn't work, and I'm losing it
<Sans> can anyone perhaps tell me if there's a better version of json than 1.7.7, or is that it
<Sans> Also, I'm so sorry in advance if this is in the wrong channel, I'm new to managing Ruby apps.
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
vondruch_ is now known as vondruch
vondruch has quit [Client Quit]
vondruch has joined #ruby
jnyw has quit [Ping timeout: 252 seconds]
troys is now known as troys_
AJA4350 has quit [Quit: AJA4350]
ramfjord has quit [Ping timeout: 252 seconds]
Psybur__ has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore|2 has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
gizmore has quit [Ping timeout: 252 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
dstrunk has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<darix> Sans: there is 1.8 available
<darix> actually 2.1 is out
drowze has joined #ruby
cdg has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aguestuser has quit [Remote host closed the connection]
jottr_ has joined #ruby
bronson has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
aguestuser has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
sspreitz has quit [Ping timeout: 252 seconds]
rexb0t has joined #ruby
cdg has joined #ruby
aupadhye has joined #ruby
cdg has quit [Remote host closed the connection]
cdg_ has joined #ruby
rexb0t has quit [Client Quit]
gnufied has quit [Ping timeout: 264 seconds]
crankharder has joined #ruby
sspreitz has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
ShekharReddy has joined #ruby
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
dstrunk has joined #ruby
JBrickley has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
JBrickley has quit [Client Quit]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has quit [Client Quit]
dstrunk has joined #ruby
guacamole has quit [Client Quit]
jottr_ has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 252 seconds]
mtkd has joined #ruby
kryptoz has joined #ruby
herbmillerjr has quit [Read error: Connection reset by peer]
kryptoz has quit [Ping timeout: 240 seconds]
kryptoz has joined #ruby
thejames_ has quit [Remote host closed the connection]
meesles has joined #ruby
dogweather has joined #ruby
kryptoz has quit [Ping timeout: 240 seconds]
kryptoz has joined #ruby
LastWhisper____ has joined #ruby
nso95 has joined #ruby
nso95 has left #ruby [#ruby]
crankharder has quit [Ping timeout: 252 seconds]
dogweather has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
workmad3 has joined #ruby
Nathan` has joined #ruby
Nathan` has quit [Client Quit]
ramfjord has joined #ruby
crankharder has joined #ruby
jottr_ has joined #ruby
govg has joined #ruby
<havenwood> heh, here's a 13M macOS binary Pry I compiled with ruby-packer: https://www.dropbox.com/s/norpr9ke1d50jna/pry?dl=1
workmad3 has quit [Ping timeout: 240 seconds]
xpt has quit [Ping timeout: 265 seconds]
<havenwood> You don't need Ruby installed to use it. It's Pry 0.11.3 on Ruby 2.4.1.
sammi`_ has quit [Ping timeout: 252 seconds]
<havenwood> It's pretty amazing that ruby-packer actually works...
jnyw has joined #ruby
<havenwood> 13M is tiny.
<havenwood> I'm impressed.
<bawNg> that's much better than the only options for packaging ruby apps for distribution a few years ago
<bawNg> I haven't needed to package anything for distribution recently
jottr_ has quit [Ping timeout: 240 seconds]
<havenwood> The binary starts faster than Pry with full Ruby. ¯\_(ツ)_/¯
<havenwood> It shaves more than a second off of coolline Pry startup time.
<bawNg> that's probably mostly rubygems fault
bronson has joined #ruby
<bawNg> I think rubygems accounts for the vast majority of start up time, the actual ruby boot up is something like 50ms
<havenwood> time ruby --disable-gems -e 'exit' #>> ruby --disable-gems -e 'exit' 0.01s user 0.01s system 88% cpu 0.015 total
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
<havenwood> time ruby -e 'exit' #>> ruby -e 'exit' 0.05s user 0.01s system 94% cpu 0.061 total
<havenwood> bawNg: Yeah, it's quite fast without RubyGems. Not too bad with.
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
<Sans> darix: hey, yeah I know, unfortunately it was forcing 1.7.7?? I got t to work somehow, not sure how, I’m just damn glad it’s working.
<bawNg> seems rubygems is a lot faster than it used to be, but you're also not requiring any gems in that benchmark
GodFather has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
<JJonah> Is there a good way to remove the repetition here while keeping the behavior the same (required args, conversion of port to int, format of to_json):
<ruby[bot]> JJonah: as I told you already, please use https://gist.github.com
banisterfiend has joined #ruby
<JJonah> ignore commas in the assignments, those are a bad cut n paste
careta has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
pwnd_nsfw has joined #ruby
LocaMocha has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 252 seconds]
dankeast has joined #ruby
jottr_ has joined #ruby
crankharder has quit [Quit: leaving]
dankeast has quit [Ping timeout: 252 seconds]
LocaMocha is now known as Sauvin
Guest23132 is now known as c-c
careta has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
jackjackdripper has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
<bawNg> JJonah: you could write a class method that generates that based on the attributes given
oleo has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
jamesaxl has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight__ has joined #ruby
<knight__> I'm trying to use Net::HTTP to post a form for logging in, but the post itself seems to redirect to the sign in page. Any ideas?
justicefries has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<c-c> knight__: missing header
* c-c estimates 87% probability
dogweather has quit [Ping timeout: 268 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
<c-c> knight__: test login from browser, copy the post from browser dev tools network-tab and compare to the ones you sent
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jamesaxl has joined #ruby
crankharder has joined #ruby
dogweather has joined #ruby
lytol has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
alfiemax has quit [Read error: Connection reset by peer]
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
xuyuheng has joined #ruby
xuyuheng has quit [Client Quit]
jackjackdripper has joined #ruby
alfiemax has joined #ruby
xuyuheng has joined #ruby
xuyuheng has quit [Client Quit]
xuyuheng has joined #ruby
dogweather has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
jottr_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 240 seconds]
careta has joined #ruby
Guest6096 has joined #ruby
xuyuheng has quit [Ping timeout: 240 seconds]
Guest6096 has left #ruby [#ruby]
oleo has quit [Quit: Leaving]
xuyuheng has joined #ruby
workmad3 has joined #ruby
djbkd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
sundhell_away is now known as sundhell
GodFather has quit [Ping timeout: 248 seconds]
rrichardsr3 has joined #ruby
bronson has joined #ruby
GodFather has joined #ruby
dogweather has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
careta has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
jottr_ has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
xuyuheng has quit [Remote host closed the connection]
xuyuheng_ has joined #ruby
cdg has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
RougeR has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
RougeR is now known as Guest42976
alfiemax has joined #ruby
Xiti has quit [Quit: Xiti]
Caerus has quit [Quit: Leaving]
alfiemax_ has quit [Ping timeout: 256 seconds]
axsuul has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
dogweather has quit [Ping timeout: 248 seconds]
naprimer has joined #ruby
djbkd has quit []
naprimer2 has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
Xiti has joined #ruby
shaman42 has joined #ruby
conta has joined #ruby
darkhanb has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
troys_ is now known as troys
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
conta has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 252 seconds]
troys has quit [Quit: Bye]
darkhanb has joined #ruby
sammi` has joined #ruby
ta_ has quit [Remote host closed the connection]
darkhanb has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
s2013 has joined #ruby
s2013 has quit [Client Quit]
rabajaj has joined #ruby
roshanavand has joined #ruby
xpt has joined #ruby
darkhanb has joined #ruby
dogweather has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
xuyuheng_ has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
dogweather has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
istrasci1 has joined #ruby
<istrasci1> If I call a rake task programmatically, how do I pass an environment variable to it? Calling Rake::Task["db:drop RAILS_ENV=test"] doesn't work.
jottr_ has joined #ruby
claudiuinberlin has joined #ruby
xfbs has joined #ruby
claudiuinberlin has quit [Client Quit]
xfbs has quit [Client Quit]
jottr_ has quit [Ping timeout: 252 seconds]
noocx has joined #ruby
<noocx> hi
<noocx> ERROR: Loading command: install (LoadError)
<noocx> cannot load such file -- zlib
<noocx> i get this on aws ec2 while trying to install bundler(gem install bundler)
<noocx> installed ruby with rvm
<noocx> 2.4.1
<noocx> zlib and zlib-devel is installed
<noocx> have you got any idea?
ur5us has quit [Remote host closed the connection]
<c-c> inukshuk: you need to set the env var in the shell, I suppose
jetpack_joe has joined #ruby
<baweaver> Also make sure you're using a somewhat recent version of AWS Linux.
<noocx> thanks checking
<noocx> its amazon 2 ami
<noocx> so the newest i think
cdg has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
jenrzzz has joined #ruby
<noocx> baweaver: yes i did this, rvm and ruby is installed fine, i think all of the required packages installed too, but i still get this error when i try to install bundler
istrasci1 has left #ruby [#ruby]
<noocx> gem install bundler --no-rdoc --no-r
<noocx> ERROR: While executing gem ... (NoMethodError)
<noocx> cannot load such file -- zlib
<noocx> ERROR: Loading command: install (LoadError)
<noocx> undefined method `invoke_with_build_args' for nil:NilClass
<noocx> with --no-ri too:)
conta has joined #ruby
jaruga has quit [Quit: jaruga]
jenrzzz has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
<noocx> maybe this will be my problem when i install ruby the installer says to install these packages: Install: build-essential libreadline zlib1g libyaml libc6 libgdbm ncurses
<noocx> but there is no zlib1g on amazon linux?
mtkd has joined #ruby
kryptoz has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
andikr has joined #ruby
cdg has joined #ruby
kryptoz has quit []
xfbs has joined #ruby
<noocx> ok working now
<noocx> needed to recompile ruby after zlib install
workmad3 has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
jaruga has joined #ruby
coderobe has joined #ruby
<coderobe> is there any working dbus gem besides "ruby-dbus"? ruby-dbus has some issues that prevent me from using it
<coderobe> i only need dbus client features
jottr_ has joined #ruby
bronson has joined #ruby
careta has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 252 seconds]
amatas has joined #ruby
careta has quit [Ping timeout: 240 seconds]
<coderobe> to be precise, it does this https://tmp.codero.be/DulcetYellowWhale2.txt when trying to do https://tmp.codero.be/AwfulYellowBaboon0.txt - the last line is where the traceback starts
<coderobe> i'm really not sure what's happening
Dimik has quit [Ping timeout: 240 seconds]
loveablelobster has joined #ruby
ramfjord has joined #ruby
aufi has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
dogweather has joined #ruby
<c-c> ist
<c-c> pardon my german, wrong win
ramfjord has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
jud has joined #ruby
mark_66 has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
stan has quit [Ping timeout: 265 seconds]
stan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
Burgestrand has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
sundhell is now known as sundhell_away
jenrzzz has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
nowhere_man has quit [Ping timeout: 264 seconds]
yohji has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
justinfaler has quit [Ping timeout: 252 seconds]
<noocx> have you got any idea why i cant bind webrick to a public iface at aws?:)
<dminuoso> ?xy noocx
<dminuoso> ,xy noocx
<dminuoso> !xy
<dminuoso> ?xy
<noocx> ok my bad
* dminuoso sighs
<dminuoso> noocx: You know what Im getting at?
<noocx> Errno::EADDRNOTAVAIL
<noocx> dminuoso: ?
imode has quit [Ping timeout: 248 seconds]
<noocx> dminuoso: no
<dminuoso> noocx: Okay well maybe its the wrong factoid anyway.
<dminuoso> noocx: Gist your code, and the full stack trace of your error.
<dminuoso> Rather than asking "why I cant bind webrick to a public iface at aws"
<dminuoso> Because it's implying that what you are trying to do is impossible, which is implying that your cost must be infallable.
<noocx> dminuoso: ok you are right, but solved it sorry
<dminuoso> noocx: No sweat. :)
<dminuoso> >> puts "where are you bot"
<noocx> :)
* dminuoso pokes apeiros with a coalgebra of a costate comonad
bkxd has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
<noocx> do you use redmine?
<noocx> with what webserver?
BuildTheRobots has joined #ruby
<dminuoso> No.
<dminuoso> But apeiros does
jenrzzz has joined #ruby
Burgestrand has joined #ruby
Ishido has joined #ruby
<tbuehlmann> I'm looking for a neat way to find the next number that is a multiplicative of 10_000 for a given integer. so foo(1) # => 10_000, foo(10_000) # => 10_000, foo(10_001) # => 20_000
aufi has joined #ruby
xuyuheng_ has joined #ruby
<tbuehlmann> is there a clever method I could use or do I have to manually ceil/round/floor/whatever?
cdg has joined #ruby
<dminuoso> tbuehlmann: ->(n) { n.step.lazy.select { |a| a % 10000 == 0 }.first }
<dminuoso> I think or no,..
<dminuoso> Yes.
<dminuoso> (Or put into method if you prefer)
guille-moe has joined #ruby
<dminuoso> Functional programming for the win!
<dminuoso> By the way, Im in Han right now :D
<c-c> Its great if you are a student
<dminuoso> Or a coffee junkie.
cdg has quit [Ping timeout: 252 seconds]
<tobiasvl> def foo(n); (10_000 * (1 + ((n - 1) / 10_000))); end
<dminuoso> But... lazy enumerators!
<tobiasvl> ;P
<c-c> tbuehlmann: so, are you focusing on 10k literally or seeking to generalize this?
<dminuoso> .ceil(-4) is likely the shortest way though.
<tbuehlmann> it could be any integer > 0
<dminuoso> And probably the fastest too.
<havenwood> >> def foo target; 0.step(by: 10_000).find { |n| target <= n }; end; [foo(1), foo(10_000), foo(10_001)]
<ruby[bot]> havenwood: # => [10000, 10000, 20000] (https://eval.in/941829)
<tbuehlmann> thanks for the suggestions so far *tips hat*
<dminuoso> havenwood: neato!
ur5us has joined #ruby
<tbuehlmann> I like that as well, thanks!
<dminuoso> tbuehlmann: But if you wanted an efficient solution, .ceil(-4) is still your best bet ;)
<c-c> I don't quite see where the problem is, I need more coffee
<tbuehlmann> I'd use that, but I fear the number changes :)
<dminuoso> I'd go for havenwoods solution then. :)
<dminuoso> My solution is a bit heavy because of the modulo.
s2013 has joined #ruby
za1b1tsu has joined #ruby
Beams has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
plexigras has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
jottr_ has joined #ruby
qba73 has joined #ruby
workmad3 has joined #ruby
Serpent7776 has joined #ruby
cdg has joined #ruby
jetpack_joe has quit [Quit: Connection closed for inactivity]
nadir has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
drewmcmillan has joined #ruby
anisha has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<noocx> which webserver should i use for redmine?
<noocx> puma + apache?
ramfjord has joined #ruby
<dminuoso> People need to stop using Apache seriously.
<bawNg> ^
<tobiasvl> yes why not nginx
cdg has quit [Ping timeout: 252 seconds]
xfbs has quit []
<noocx> ok nginx then
<noocx> whats yourproblem with apache?:D
<tobiasvl> noocx: let's turn it around, why did you automatically suggest apache? :P
<noocx> or for 20 ppl puma is just enough?
<noocx> or do i need to use nginx?
<bawNg> nginx is great, unicorn is good for a blocking ruby web server, thin is great for an eventmachine based one
<dminuoso> Only if you want TLS.
<dminuoso> Or do some other shenanigans.
<dminuoso> noocx: The configuration is inconsistent, annoying and totally weird. Apache is also slow. And meh.
<noocx> :)
<dminuoso> nginx is just a better Apache.
bkxd_ has joined #ruby
<noocx> i saw some statistic and in some thigns apache was better
<dminuoso> But ultimately it depends on your environment. If you have apache everywhere, stick to apache.
<noocx> maybe with static files dont remember
bkxd has quit [Ping timeout: 268 seconds]
<bawNg> nginx is a non-blocking reactor based server, it can handle hundreds of thousands of requests in a single thread, which is way more efficient than apache's threaded design
<bawNg> there is no reason to use apache for anything
<noocx> you use nginx with nodejs too?
<dminuoso> bawNg: well there is one reason: consistency.
<bawNg> you can use nginx for anything, it's a reverse proxy server, you put it in front of all your services and have it serve static files and proxy dynamic requests to your services
<dminuoso> bawNg: If for some reason you already have apache everywhere with people used to it, and dont need the performance benefits or benefits of a much more consistent configuration - then you might as well stick to Apache.
bronson has joined #ruby
<bawNg> I'd recommend anyone who uses apache looks at migrating to nginx
<bawNg> apache is horrible for so many reasons
<dminuoso> +1
Ishido has quit [Ping timeout: 268 seconds]
<dminuoso> Configuring Apache is quirky and totally weird.
<noocx> its a fresh ec2, so i can use nginx too:)
<dminuoso> With random directives lfet and right..
s2013 has quit [Max SendQ exceeded]
s2013 has joined #ruby
<bawNg> Unicorn is a great blocking ruby web server, designed very efficiently using a forking process model instead of threads, just like nginx
anisha has quit [Ping timeout: 240 seconds]
<bawNg> postgres is a great SQL database for the same reason, it is also based on forking processes
mlehrer has quit [Ping timeout: 240 seconds]
mlehrer has joined #ruby
xuyuheng_ has quit [Ping timeout: 268 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
bkxd has joined #ruby
xuyuheng_ has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
marr has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
qba73 has joined #ruby
stoffus has joined #ruby
funnel has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
arne is now known as Bish
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
funnel has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
xuyuheng_ has joined #ruby
kapil___ has joined #ruby
Cavallari has joined #ruby
etehtsea has joined #ruby
belmoussaoui has joined #ruby
ldnunes has joined #ruby
sundhell_away is now known as sundhell
fumk has quit [Quit: It wasn't me, it was the papers :(]
fumk has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
xuyuheng_ has quit [Ping timeout: 240 seconds]
xuyuheng_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
loveablelobster has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
careta has joined #ruby
Burgestrand has quit [Quit: Closing time!]
qba73 has joined #ruby
InfinityFye has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
InfinityFye has left #ruby [#ruby]
Burgestrand has joined #ruby
cdg has joined #ruby
make has joined #ruby
xuyuheng_ has quit [Ping timeout: 248 seconds]
_aeris_ has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
make has quit [Quit: leaving]
<darix> bawNg: for webservers event based works really well
<darix> I prefer puma as ruby app server
alfiemax has quit [Ping timeout: 260 seconds]
<bawNg> for any IO-bound application, async event based is the most efficient and ideal implementation
bkxd_ has quit [Ping timeout: 256 seconds]
<bawNg> the vast majority of ruby applications that I've always built are eventmachine based
<noocx> how fast is that compared to nodejs?
alfiemax has joined #ruby
<noocx> cause i cant decide to build my app with nodejs or ruby
<bawNg> darix: why would you prefer puma over unicorn?
<darix> bawNg: seems to use a little less memory
<bawNg> nodejs is a bit faster than ruby due to the very optimized V8 runtime which has a very good JIT, but most applications don't need to scale to the point that the difference really matters
<bawNg> the advantages of being able to use ruby outweight the performance benefit of using JS for server-side applications, at least for me
Burgestrand has quit [Quit: Closing time!]
<bawNg> darix: well it's based on threads, not forked processes, so it will use less memory if CoW is not great
<bawNg> new ruby versions should have better CoW support, but it also depends on the implementation of your application
<bawNg> Unicorn's forked processes will give considerably better performance than puma's threads
<bawNg> threading in ruby is not very useful since the GVL means that only one thread can call into the ruby API or extensions at a time
loveablelobster has joined #ruby
<bawNg> so there are very few cases where multiple threads can even execute at the same time
<darix> bawNg: discourse on puma. and unicorn for gitlab
<darix> currently
make has joined #ruby
<bawNg> I use unicorn to serve haml and slim pages very fast, nginx to serve static files, and then do long polling or websockets to an eventmachine based backend for everything after the page is loaded
mistym has quit [Ping timeout: 276 seconds]
lunarkitty7 has quit [Ping timeout: 256 seconds]
<noocx> what framework do you use with ruby?
<bawNg> I use sinatra for web requests and roll almost everything else from scratch myself
<noocx> cool:)
<bawNg> if you want a nodejs alternative, look at eventmachine
<bawNg> for any IO-bound application, it is ideal
mistym has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
<noocx> thanks, i will
bkxd has quit []
_aeris_ has joined #ruby
<darix> maybe celluloid?
<bawNg> personally not a fan, but it would work too
<bawNg> you'll probably want to do some research and see what libraries that you need are supported by eventmachine and celluloid, and decide based on that
<bawNg> I end up writing my own eventmachine based libraries from scratch most of the time, or I monkeypatch blocking gems to be EM-based
<bawNg> there are a lot of EM libraries available, but most of the time they don't suit my needs for various reasons
alfiemax has quit [Remote host closed the connection]
xuyuheng_ has joined #ruby
meinside has joined #ruby
nicosmaris has joined #ruby
jottr_ has joined #ruby
lunarkitty7 has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
etehtsea has left #ruby ["Textual IRC Client: www.textualapp.com"]
aupadhye has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 248 seconds]
qba73 has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
ur5us has joined #ruby
noocx has quit [Ping timeout: 260 seconds]
make has quit [Quit: leaving]
qba73 has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
noocx has joined #ruby
dogweather has joined #ruby
Burgestrand has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
apparition has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
xuyuheng_ has quit [Quit: Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
cdg has joined #ruby
stormpack has joined #ruby
cdg_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
cdg_ has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
bronson has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
jottr_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
xhoy has quit [Ping timeout: 260 seconds]
careta has quit [Ping timeout: 240 seconds]
Ishido has quit [Ping timeout: 240 seconds]
xhoy has joined #ruby
Psybur__ has joined #ruby
cdg has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
Ishido has joined #ruby
konsolebox has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
stormpack_ has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
stormpack has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dogweather has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
apparition has joined #ruby
soniya29 has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
nicosmaris|2 has joined #ruby
alfiemax has joined #ruby
dogweather has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
<soniya29> Hi, everyone. Is any girl interested for participation in RGSoC 2018?
alfiemax has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
careta has joined #ruby
nicosmaris|2 has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
jeffreylevesque has quit [Ping timeout: 240 seconds]
<soniya29> Hi all, Is anyone interested for participation in RGSoC 2018 ?
jeffreylevesque has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
<c-c> soniya29: whats that and where is it?
<za1b1tsu> what book I should buy clean ruby or design patterns in ruby?
nicosmaris|2 has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
dogweather has quit [Ping timeout: 246 seconds]
<soniya29> c-c:It's an initiative taken for encouragement of girls participation in opensource-community
dogweather has joined #ruby
alfiemax_ has joined #ruby
nicosmaris|2 has quit [Client Quit]
kapil___ has quit [Quit: Connection closed for inactivity]
nicosmaris|2 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
malsagxulo has joined #ruby
<soniya29> za1b1tsu: online resources are quite good if you prefer them
ledestin has joined #ruby
<za1b1tsu> soniya29: true, but I use online resources for a particular problems
qba73 has joined #ruby
<za1b1tsu> soniya: I love books when I'm interested in a wider subject. Since you dont need 20 tabs with 3 instances of the web broswer opened
<soniya29> za1b1tsu: online resources can be used for just anything.Give it a try and see if you find them useful
<soniya29> za1b1tsu: Ruby-monk and Ruby documentation are awesome infact.
<za1b1tsu> soniya29: thanks
jeffreylevesque has quit [Ping timeout: 256 seconds]
coderobe has left #ruby [#ruby]
yohji has quit [Ping timeout: 252 seconds]
<soniya29> If anyone wish to participate for RGSoC please do ping me.
qba73 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
<c-c> soniya29: that sounds like a great much needed initiative!
konsolebox has joined #ruby
<soniya29> c-c: what I didn't get your point?
<c-c> - open source projects mostly by males
alfiemax_ has quit [Ping timeout: 240 seconds]
amatas_ has joined #ruby
<darix> za1b1tsu: both!
VladGh has quit [Quit: Lost terminal]
banisterfiend has joined #ruby
apeiros has quit [Remote host closed the connection]
sepp2k has joined #ruby
<c-c> soniya29: but you didn't tell me where it is?
apeiros has joined #ruby
VladGh has joined #ruby
<c-c> B)
<darix> c-c: probably similar to GSoC?
prutheus has joined #ruby
dogweather has quit [Ping timeout: 248 seconds]
<prutheus> Hello. I am in a Rails application with a model which has columns: main, subcat
Burgestrand has quit [Quit: Closing time!]
<c-c> Ok so its a coding camp during the summer
<prutheus> the data looks like: main, subcat: car, ferrari car, bmw car, porsche food, apple food, banana
<prutheus> I want to convert a array of these model data into a hash like: {'car'=>['ferrari', 'bmw', 'porsche'], 'food'=>['apple', 'banana']}
<c-c> heh thanks but I'm kinda past coding camps
<prutheus> how could I do this?
<soniya29> c-c: quite similar to GSoC
<c-c> soniya29: Ok, was simply curious
yohji has joined #ruby
<soniya29> c-c : That's great.
apeiros has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
nicosmaris_ has joined #ruby
<c-c> I guess this channel and people like sepp2k and apeiros were my coding camp! B)
nicosmaris|2 has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
amatas_ has quit [Quit: amatas_]
synthroid has joined #ruby
amatas_ has joined #ruby
<za1b1tsu> prutheus, everything is hard to read. Put everything in a gist.github.com please
sergio_101 has joined #ruby
leitz has joined #ruby
alfiemax has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
alfiemax has joined #ruby
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
careta has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
<za1b1tsu> prutheus: https://gist.github.com/bbtdev/6791c7c1fb7ab6b7b1fae3631365c652 I am noob as well, but this seems to work
s2013 has joined #ruby
<za1b1tsu> oops in pluck have the argument start with *
<za1b1tsu> pluck(*%i[..
jaruga has quit [Ping timeout: 240 seconds]
<za1b1tsu> there is probably a more efficient way to make the hash
rwb has quit [Ping timeout: 252 seconds]
qba73 has joined #ruby
Burgestrand has joined #ruby
alfiemax has quit [Remote host closed the connection]
careta has joined #ruby
ur5us has joined #ruby
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 240 seconds]
Cavallari1 is now known as Cavallari
ur5us has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
minastirid1 has joined #ruby
<za1b1tsu> %i[car food].zip(Model.all.pluck(%i[car food]).transpose).to_h
<za1b1tsu> I love this language :)
<darix> za1b1tsu: and now i add another type to the data file. :P
<darix> za1b1tsu: how would you solve it so it can handle any type found in the data file?
<za1b1tsu> hmm let me test
<za1b1tsu> so this works only on ...?
<za1b1tsu> transpose only works with integers?
<za1b1tsu> darix, i tested with string and integer. I don't seem to understand the problem. Can you explain?
<darix> za1b1tsu: new data: car, ferrari car, bmw car, porsche food, apple food, banana pet, bear bet, wolf
<darix> how would this work with your %i[car food].zip(Model.all.pluck(%i[car food]).transpose).to_h ?
Burgestrand has quit [Quit: Closing time!]
<za1b1tsu> attr = %i[attr attr attr]
<za1b1tsu> %i[attr].zip(Model.all.pluck(attr).transpose).to_h
<darix> za1b1tsu: what if you dont know the list of attr up front?
minastirid1 has left #ruby [#ruby]
<za1b1tsu> darix, I don't know
<za1b1tsu> use pluck_to_hash from a gem
<za1b1tsu> get the keys
<za1b1tsu> darix, could you show me how?
<darix> well
<darix> easiest would be a loop ;)
bmurt has joined #ruby
<za1b1tsu> gist?
<darix> i havent written it yet.
<darix> My point was more that your code is doing a lot of assumptions
<za1b1tsu> Ok. The person asked on a specific data example, and also when you want a hash, shouldn't you know the keys?
<darix> why?
<za1b1tsu> What's the point of a hash
jaruga has joined #ruby
cdg has joined #ruby
jeffreylevesque has joined #ruby
<za1b1tsu> if he wants all they keys, he could to attr = Model.column_names
DTZUZO has joined #ruby
workmad3 has joined #ruby
<za1b1tsu> wow, some new stuff to read about :D
madhatter has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
nicosmaris has quit [Quit: Leaving]
nicosmaris_ is now known as nicosmaris
madhatter has joined #ruby
alfiemax has quit [Remote host closed the connection]
cdg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
Cavallari has quit [Quit: Cavallari]
bronson has joined #ruby
dogweather has joined #ruby
<prutheus> hey za1b1tsu thanks for you suggestion but this is not working. the problem is, taht i dont know the main categories yet. here a bpaste of the data: https://bpaste.net/show/cca898ae8a85 I want to get a hash with main as keys and subcats in arrays as values of them.
bronson has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
dogweather has quit [Ping timeout: 252 seconds]
guille-moe has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
<darix> prutheus: 1. use the CSV module to parse it. 2. use a loop like https://gist.github.com/darix/5bf312167f4bdda7708be4ffba253a2c to generate your hash
roshanavand has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
justicefries has joined #ruby
guille-moe has joined #ruby
apparition has quit [Quit: Bye]
aScottishBoat has joined #ruby
rwb has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
<tbuehlmann> prutheus, like this? [['Antiques', 'Antiquities'], ['Antiques', 'Architectural & Garden']].each_with_object(Hash.new { |hash, key| hash[key] = [] }) { |array, hash| hash[array.first] << array.last }
mikkelsen has joined #ruby
konsolebox has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
aScottishBoat has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 260 seconds]
mikkelsen has quit [Remote host closed the connection]
mikkelsen has joined #ruby
mtkd has joined #ruby
mikkelsen has quit [Client Quit]
mordof has quit [Remote host closed the connection]
soniya29 has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
apeiros has joined #ruby
jaruga has joined #ruby
dogweather has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 248 seconds]
govg has quit [Quit: leaving]
apparition has joined #ruby
yohji has quit [Ping timeout: 264 seconds]
apparition has quit [Client Quit]
oleo has joined #ruby
malsagxulo has quit [Remote host closed the connection]
malsagxulo has joined #ruby
pastorinni has joined #ruby
Rapture has joined #ruby
trautwein has joined #ruby
al2o3-cr has joined #ruby
moei has joined #ruby
stoffus has quit [Ping timeout: 268 seconds]
guille-moe has quit [Read error: Connection reset by peer]
yohji has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
justicefries has joined #ruby
rippa has joined #ruby
qba73 has joined #ruby
dogweather has joined #ruby
careta has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guille-moe has joined #ruby
<prutheus> tbuehlmann: yeah, great, but how to access the hash now? which variable is it? the variable hash is undefined
ta_ has quit [Remote host closed the connection]
ahrs has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 240 seconds]
sundhell is now known as sundhell_away
ahrs has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
malsagxulo has quit [Ping timeout: 252 seconds]
thejamespinto has quit [Remote host closed the connection]
bmurt has joined #ruby
c0ncealed has quit [Remote host closed the connection]
thejamespinto has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
c0ncealed has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
gloscombe has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
alfiemax_ has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
trautwein has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 240 seconds]
Azure has quit [Ping timeout: 246 seconds]
prutheus has quit [Quit: Page closed]
thejamespinto has quit [Remote host closed the connection]
rrutkowski has joined #ruby
thejamespinto has joined #ruby
za1b1tsu has quit [Quit: Leaving]
ddavisdev has joined #ruby
za1b1tsu has joined #ruby
lapinferoce has joined #ruby
lapinferoce has quit [Quit: Page closed]
anisha has quit [Quit: This computer has gone to sleep]
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
<hays> is there a way to use optparse in such a way that it lets me have arguments that are negative?
<hays> foo -a arg1 -5432
dogweather has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Leaving]
Psybur_ has joined #ruby
rikkipitt has joined #ruby
Raffy has joined #ruby
nadir has joined #ruby
Raffy has quit [Changing host]
Raffy has joined #ruby
Psybur__ has quit [Ping timeout: 264 seconds]
mordof has joined #ruby
alex`` has joined #ruby
cdg has joined #ruby
dogweather has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
alfiemax has joined #ruby
OyoKooN has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
illsorted has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Ishido has quit [Ping timeout: 260 seconds]
hays has quit [Remote host closed the connection]
John_Ivan has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<noocx> bye
noocx has quit [Quit: leaving]
vondruch has quit [Ping timeout: 268 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
stormpack_ has quit [Quit: Leaving]
bronson has joined #ruby
qba73 has quit [Ping timeout: 268 seconds]
qba73 has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
Emmanuel_Chanel has joined #ruby
jottr_ has joined #ruby
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 256 seconds]
dogweather has quit [Ping timeout: 268 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
ddavisdev has quit [Quit: Page closed]
ta_ has joined #ruby
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
rikkipitt has quit [Remote host closed the connection]
kapil___ has joined #ruby
rikkipitt has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
rikkipitt has quit [Remote host closed the connection]
dogweather has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
rikkipitt has joined #ruby
conta has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Remote host closed the connection]
stormpack has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
tvw has quit [Remote host closed the connection]
troys has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
rikkipitt has joined #ruby
soniya29 has joined #ruby
dogweather has joined #ruby
Ishido has joined #ruby
rikkipit_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
layer8problem has left #ruby ["Leaving"]
synthroid has joined #ruby
rikkipitt has quit [Ping timeout: 240 seconds]
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :leguin.freenode.net"]
alfiemax has joined #ruby
plexigras has quit [Ping timeout: 260 seconds]
rikkipit_ has quit [Quit: Leaving...]
plexigras has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
DTZUZO has joined #ruby
dogweather has joined #ruby
Raffy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jetpack_joe has joined #ruby
[Butch] has joined #ruby
gloscombe has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
raynold has joined #ruby
roshanavand has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
dogweather has quit [Ping timeout: 252 seconds]
Raffy has joined #ruby
axsuul has joined #ruby
OyoKooN has quit [Quit: Textual IRC Client: www.textualapp.com]
Raffy has quit [Changing host]
Raffy has joined #ruby
dogweather has joined #ruby
soniya29 has quit [Remote host closed the connection]
soniya29 has joined #ruby
zipace has joined #ruby
jaruga has quit [Quit: jaruga]
belmoussaoui has quit [Quit: belmoussaoui]
jottr_ has joined #ruby
belmoussaoui has joined #ruby
cgfbee has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Client Quit]
jottr_ has quit [Ping timeout: 268 seconds]
belmoussaoui has joined #ruby
cdg has quit [Remote host closed the connection]
cgfbee has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
dogweather has quit [Ping timeout: 248 seconds]
Serpent7776 has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
dogweather has joined #ruby
yohji has quit [Ping timeout: 240 seconds]
deathwishdave has joined #ruby
troys is now known as troys_
alfiemax has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guille-moe has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
claudiuinberlin has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
dogweather has joined #ruby
yohji has joined #ruby
cdg has joined #ruby
<za1b1tsu> if you had a function that archives data or "unarchives" data depending if it archived or not how would you name it?
orbyt_ has joined #ruby
darkhanb has joined #ruby
qba73 has quit [Ping timeout: 260 seconds]
aruns has joined #ruby
<aruns> Hi, can anyone recommend Ruby version managers for Windows (that do not require Bash on Ubuntu for Windows or Cygwin)?
dogweather has quit [Ping timeout: 240 seconds]
<aruns> I tend to use RVM but I won't be able to run that without using either of the two.
yohji has quit [Remote host closed the connection]
justinfaler has joined #ruby
lytol has joined #ruby
dogweather has joined #ruby
kies has quit [Ping timeout: 268 seconds]
Ishido has joined #ruby
qba73 has joined #ruby
<havenwood> aruns: pik is the traditional choice but I'd probably use uru: https://bitbucket.org/jonforums/uru
<havenwood> aruns: though there are some issues with it, I think the Windows Subsystem for LInux (WSL) is the best option on Windows
<havenwood> aruns: then you can use RVM since you'd have bash on a native ubuntu kernel
guille-moe has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
jottr_ has joined #ruby
andikr has quit [Remote host closed the connection]
<guacamole> za1b1tsu toggle_archived
troulouliou_div2 has joined #ruby
Ishido has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<za1b1tsu> guacamole toggle... that is the word I was looking for, lol
<za1b1tsu> chears
<guacamole> za1b1tsu :)
workmad3 has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
dogweather has quit [Ping timeout: 264 seconds]
rrutkowski has joined #ruby
aruns has quit [Quit: leaving]
helpa-bot has joined #ruby
gothicsouth has quit [Read error: Connection reset by peer]
helpa has quit [Read error: Connection reset by peer]
mozzarella has quit [Remote host closed the connection]
bronson has joined #ruby
MrBismuth has joined #ruby
mozzarella has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
dogweather has joined #ruby
MrBusiness has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 252 seconds]
<knight__> c-c: Thanks, looking into that now. (Sorry for delay in responding)
jackjackdripper has joined #ruby
eckhardt has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
sanscoeur has joined #ruby
dstrunk has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
dstrunk has quit [Client Quit]
kies has joined #ruby
hanmac has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
troys is now known as troys_
dinfuehr has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
workmad3 has joined #ruby
dinfuehr has joined #ruby
leitz has quit [Quit: Nappy time]
sanscoeur has quit [Remote host closed the connection]
<raynold> ahh it's a wonderful day
dstrunk has joined #ruby
desperek has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
hanmac has joined #ruby
levifig has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
levifig has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
axsuul has quit [Ping timeout: 268 seconds]
jetpack_joe has quit [Quit: Connection closed for inactivity]
s2013 has joined #ruby
axsuul has joined #ruby
s2013 has quit [Max SendQ exceeded]
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
hahuang65 has quit [Quit: WeeChat 2.0.1]
jackrandom has joined #ruby
cdg has quit [Remote host closed the connection]
<nchambers> in a class method, is there any reason why the first arugment can't have a default value?
axsuul has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
Success has joined #ruby
<darix> nchambers: example?
<nchambers> darix: actually, playing around in irb I figured out the answer to that, but now I have a new question. writing up the example for it now
inanepenguin has joined #ruby
axsuul has joined #ruby
<Success> i love ruby <#
<inanepenguin> Should predicate methods be expected/designed to return true/false, or truthiness/falsiness?
<Success> like i never use ruby but i love the ecosystem and stdlib
<darix> nchambers: it works for me tbh
<nchambers> darix: http://ix.io/EFM my question is how to get bar3 to work
tomphp has joined #ruby
audy has quit [Changing host]
audy has joined #ruby
<darix> that arent class methods
<nchambers> what do you mean?
<nchambers> http://ix.io/EFO looks like one to me
justicefries has quit [Quit: Textual IRC Client: www.textualapp.com]
stormpack has quit [Quit: Leaving]
dogweather has quit [Remote host closed the connection]
amatas_ has quit [Quit: amatas_]
<darix> instance method
<nchambers> oh sorry, instance method
<nchambers> my question still stands though
axsuul has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
dogweather has joined #ruby
alfiemax has joined #ruby
axsuul has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
pastorinni has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
Dimik has joined #ruby
belmoussaoui has quit [Client Quit]
dogweather has quit [Remote host closed the connection]
sergio_101 has quit [Remote host closed the connection]
dogweather has joined #ruby
jackrandom has quit [Quit: Leaving]
jackrandom has joined #ruby
justicefries has joined #ruby
belmoussaoui has joined #ruby
Sauvin has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 248 seconds]
jottr_ has joined #ruby
belmoussaoui has quit [Client Quit]
randomstrangerb has quit [*.net *.split]
ikopico has quit [*.net *.split]
mtkd has joined #ruby
<nchambers> darix: great. my question still stands
ikopico has joined #ruby
<darix> nchambers: did you look at the gist?
<nchambers> yes
<darix> try to run it
randomstrangerb has joined #ruby
belmoussaoui has joined #ruby
<nchambers> yep that works
jackrandom has quit [Remote host closed the connection]
<nchambers> but that still doesn't explain why mine doesnt' work
<guacamole> nchamers: give the 2nd argument a default value too
<nchambers> guacamole: why is that needed
belmoussaoui has quit [Client Quit]
<guacamole> something about arity and required arguments?
jottr_ has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
belmoussaoui has joined #ruby
void9 has joined #ruby
plexigras has quit [Ping timeout: 240 seconds]
<nchambers> hmm ok... I'll just use another default argument then. thanks guacamole and darix
<guacamole> it would work if you put the required argument(not supplying a default) after the optional arguments
conta has joined #ruby
<void9> total noob here, trying to install spree from their github guide:
<void9> sgm@bittrip:~$ gem 'spree', '~> 3.4.4'
<nchambers> as in, bar(command, *args, arg1=true) ?
<void9> ERROR: While executing gem ... (Gem::CommandLineError)
<void9> Unknown command spree,
sagax has joined #ruby
<void9> what am I doing wrong?
<guacamole> nchambers as in bar(arg1=true, *args, command)
<nchambers> ah
<Raffy> void9: put that in your rails gemfile
<nchambers> I'd rather keep command before args, so I'll just keep the extra default argument
<nchambers> thanks
<guacamole> np, wish i had better explanations for you
<void9> ohhh, so it's not a command. where would that file be located?
<nchambers> np. its mostly cosmetic anyways, since command will never not have a value
<Raffy> have you created a rails project ?
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Ishido has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
Success has quit [Remote host closed the connection]
<baweaver> void9: You might want to go through a Rails or Ruby tutorial
<baweaver> they'll introduce Gemfile among other items you'll need
Success has joined #ruby
<baweaver> See the channel topic for the Ruby book list
<baweaver> The rails list was: http://goo.gl/SGklzh
rabajaj has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 252 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
<void9> baweaver: sorry but i don't have a full day to spend on this. just want the 2 commands that will get me going with this app
Ishido has joined #ruby
camilasan has joined #ruby
<void9> I have installed ruby, and ran gem install rails, it's ruby 2.4 and rails 5.1 on ubuntu
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<void9> Add Spree gems to your Gemfile: gem 'spree', '~> 3.4.4'
<void9> is this the project's (from github) Gemfile ?
<baweaver> Look at the Gemfile of a new rails project
<baweaver> or have you made a Rails app yet?
baroquebobcat has quit [Quit: baroquebobcat]
<void9> I have no idea. I just installed ruby, rails, and cloned https://github.com/spree/spree
tvw has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> you don't need to clone the project
baroquebobcat has joined #ruby
Success has quit [Changing host]
Success has joined #ruby
belmoussaoui has joined #ruby
<baweaver> you're going to balk, but read a Rails tutorial. It'll get you a foundation going to know what you're doing there
<Raffy> i told you
<baweaver> Rails isn't something you can just "give me the two commands" and you'll figure that out over the next hour or two trying.
<Raffy> void9: put that in your rails gemfile
<baweaver> Raffy: they don't know how to make a new rails app, so that won't help quite yet.
<Raffy> I agree with baweaver, i'm sorry but i won't spend hours to explain you
<baweaver> you can spend a few hours on that, or a few weeks trying to get commands piecemeal. Trust me when I say you want to read through a tutorial first, it'll save you a lot of headaches.
<baweaver> anyways, off I go.
Asher has quit [Quit: Leaving.]
<Raffy> once rails installed, type rails new app-name that will create you rails project, inside this project there is a file named gemfile
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
<void9> Raffy: thanks, I think I get it now
guille-moe has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Quit: belmoussaoui]
camilasan has quit [Remote host closed the connection]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
Success has quit [Remote host closed the connection]
Success has joined #ruby
sergio_101 has joined #ruby
acovrig has joined #ruby
belmoussaoui has joined #ruby
bronson has joined #ruby
<acovrig> I’m trying to encrypt a string with GPGME, when I encrypt I get a strange string, hex maybe? (\x8C\r\x04\x03 for example) - I’d like a string that I’d get from gpg like "-----BEGIN PGP MESSAGE-----“, should I use a different gem?
jottr_ has joined #ruby
ur5us has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 268 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jackjackdripper has joined #ruby
ldnunes has quit [Quit: Leaving]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mtkd has joined #ruby
Psybur_ has quit [Ping timeout: 240 seconds]
<graft> anyone familiar with Rack::Test? I'm trying to figure out how i can peer into the cookie jar it keeps across requests, to no avail
belmoussaoui has quit [Quit: belmoussaoui]
GodFather has joined #ruby
<graft> acovrig: are you using github:ueno/ruby-gpgme?
<acovrig> graft: yes
belmoussaoui has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
drowze has quit [Remote host closed the connection]
<graft> acovrig: how are you encrypting your string? can you show some code?
apeiros has joined #ruby
<acovrig> graft: I tried https://stackoverflow.com/a/17142403 but the file just contains \x**\x**… text, if I dump it to a file, `file` says “PGP RSA encrypted session key” - I’d like a BEGIN PGP MESSAGE … END PGP MESSAGE sorta string I can copy/paste through `gpg --decrypt`
baroquebobcat has quit [Quit: baroquebobcat]
<graft> acovrig: yeah just do GPGME::Crypto.new(armor: true) and it should do it
shinnya has joined #ruby
<acovrig> graft: that did it, thanks :D
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
apeiros has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
inanepenguin has quit [Quit: inanepenguin]
minimalism has quit [Quit: minimalism]
dviola has quit [Quit: WeeChat 2.0.1]
belmoussaoui has quit [Quit: belmoussaoui]
zanoni has joined #ruby
jottr_ has joined #ruby
conta has quit [Remote host closed the connection]
sameerynho has joined #ruby
orbyt_ has joined #ruby
troys is now known as troys_
alfiemax has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
inanepenguin has joined #ruby
<graft> to answer my own question, if anyone is interested, you can get the cookie with rack_mock_session.cookie_jar
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
belmoussaoui has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
al2o3-cr has quit [Ping timeout: 240 seconds]
jetpack_joe has joined #ruby
pastorinni has joined #ruby
za1b1tsu has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
Success has quit [Read error: Connection reset by peer]
Success has joined #ruby
myarta has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
alfiemax has joined #ruby
camilasann has joined #ruby
<myarta> #join ruby-lang
myarta has quit [Client Quit]
myarta has joined #ruby
<myarta> I'm having a hard time figuring out how to split a string that is returned from Mysql2 gem with \n in it as two literal characters. Tried different combinations of escaping but can't see to get it to recognise: http://dpaste.com/0D3182W
<myarta> any ideas? thanks in advance
belmoussaoui has joined #ruby
<apeiros> myarta: not quite sure I follow. you want e.g. from "foo\nbar" to get ["foo", "bar"]?
jottr_ has joined #ruby
<apeiros> also #ruby-lang no longer exists, it's just #ruby now ;-)
<ruby[bot]> apeiros: # => ["foo", "bar"] (https://eval.in/942188)
<myarta> hah thanks. i realized i both did my command for that wrong....and that the warning to do that was from 2009
<apeiros> >> "foo\nbar".split("\n")
bronson has joined #ruby
<myarta> apeiros that is correct
jenrzzz has quit [Ping timeout: 256 seconds]
pastorin_ has joined #ruby
acovrig has quit [Quit: acovrig]
<myarta> apeiros AHA. That was it. Double quotes not single quotes and don't escape the backslash
<apeiros> yeah, '\n' == "\\n", as in, literal backslash followed by the character "n" :)
jottr_ has quit [Ping timeout: 256 seconds]
lcarlson has joined #ruby
jottr_ has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
pastorinni has quit [Ping timeout: 240 seconds]
<baweaver> either that or string.lines
<baweaver> >> "foo\nbar".lines
<ruby[bot]> baweaver: # => ["foo\n", "bar"] (https://eval.in/942189)
<myarta> +apeiros Thank you, Basileus Pyrrhos :)
camilasann has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<baweaver> though that leaves newlines in there
cdg has joined #ruby
<apeiros> my greek is rather limited, but those two seem to be names?
belmoussaoui has quit [Quit: belmoussaoui]
al2o3-cr has joined #ruby
Success has quit [Changing host]
Success has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
<myarta> apeiros Oh, so is mine. I thought your name was the ancient form of the greek kingdom of the Epirotes, a rival of Rome during the war that gives us the phrase Pyrric Victory
<apeiros> (of course it also has its own meanings)
<myarta> apeiros So I was just saying aha, I see your obscure reference and appreciate it! Except I think I read one into it that wasn't there.
<apeiros> ah no, it's supposed to be the male form of apeiron. the original matter from which everything was created.
<apeiros> that nick is now >20y old. I'm old.
* apeiros sobs silently into the night
<baweaver> apeiros: want me to drive in the knife?
<apeiros> et tu, baweavere?
illsorted has quit [Quit: Lost terminal]
<baweaver> That nick isn't much older than I am
belmoussaoui has joined #ruby
<apeiros> (what the heck is the vocative of baweaver?)
<baweaver> (close enough)
spiette has quit [Quit: :qa!]
<myarta> ah yeah something different then. same spelling
spartacus has joined #ruby
<spartacus> No, I AM Spartacus
jeffreylevesque has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 248 seconds]
spartacus has quit [Client Quit]
<Raffy> k
eckhardt has joined #ruby
<baweaver> odd
Rapture has joined #ruby
tvw has quit []
tvw has joined #ruby
Jake_ has joined #ruby
Success has quit [Ping timeout: 240 seconds]
<apeiros> awkward silence
tejasvi5 has joined #ruby
<tejasvi5> Hello
belmoussaoui has quit [Quit: belmoussaoui]
<apeiros> hi
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<tejasvi5> Hello, everyone. I'm new around here.
<tejasvi5> Trying to figure how this works and what the channel is about
<apeiros> it's about the ruby programming language
<tejasvi5> Could anyone please help
<guacamole> ask ruby questions here, or provide ruby answers here
Jake_ has quit [Changing host]
Jake_ has joined #ruby
Jake_ is now known as Success
<apeiros> tejasvi5: with what specifically do you need help?
<tejasvi5> @guacamole Thank you
pastorinni has joined #ruby
<tejasvi5> I do not need help with anything specific. Just exploring, trying to know how these work
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
myarta has quit [Quit: Page closed]
oleo has quit [Ping timeout: 252 seconds]
pastorin_ has quit [Ping timeout: 240 seconds]
<tejasvi5> Although I would like some pointers on how to start contributing to FOSS. If this is the right place for such guidance. I am unsure.
<tejasvi5> Hello? Is anyone there?
tomphp has joined #ruby
klaas has joined #ruby
SCHAPiE has quit [Read error: Connection reset by peer]
<tejasvi5> Thank you, again
<guacamole> np!
<tejasvi5> That was a lot to take at once but sure helps
tomphp has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
synthroid has quit []
<guacamole> tejasvi5 a lot of open source projects will have a contributing guide, or guidelines, so check if the project you want to work on has one
<tejasvi5> Oh. All right.
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
<tejasvi5> I'm unsure about which one to pick or which one I can contribute to
SCHAPiE has joined #ruby
<tejasvi5> Do you any where beginners can do good?
<guacamole> tejasvi5 pick one that is interesting to you! maybe that aligns with a hobby you have
<guacamole> tejasvi5 a lot of people get started contributing with writing documentation
<tejasvi5> That should be boring, no?
LocaMocha has joined #ruby
lcarlson has quit [Quit: Leaving]
jottr_ has joined #ruby
<guacamole> maybe, maybe not. either way its super helpful. most of my open source contributions are clarifying docs
<guacamole> you can learn the "flow"
<guacamole> if nothing else it'll teach you how to fork a project and make a PR etc.
roshanavand has quit [Ping timeout: 246 seconds]
<Raffy> and by writing doc you learn the language and you can then contribute to it ;)
jottr_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergio_101 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
jottr_ has joined #ruby
<weaksauce> tejasvi5 i added a feature to firefox because it scratched an itch. that's pretty much the way it works. find something you desire to have or a bug that needs fixing and fix it
bronson has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
LastWhisper____ has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Flashynuff has joined #ruby
Success has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
troys_ is now known as troys
amatas has quit [Quit: amatas]
Success has joined #ruby
<tejasvi5> Thank you so much. weak Sauce, Raffy and guacamole
giraffe has quit [Remote host closed the connection]
tpendragon has quit [Remote host closed the connection]
rwb has joined #ruby
<tejasvi5> And sorry, I'm so noob I don't even know how to tag the nicks.
belmoussaoui has quit [Quit: belmoussaoui]
Asher has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
kapil___ has joined #ruby
knight_ has quit [Remote host closed the connection]
knight__ has quit [Remote host closed the connection]
<bawNg> tejasvi5: just like that
<tejasvi5> bawNg: like this?
<bawNg> yes, it's up to each person to setup their IRC client to highlight their name
<tejasvi5> Okay, cool
knight_ has joined #ruby
knight_ has quit [Disconnected by services]
knight__ has joined #ruby
knight__ is now known as knight_
knight- has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<bawNg> wait, how does my actuator gem have 492 downloads already after less than 3 days on rubygems? I'd expect very few people to even have a use case for it, and out of those none would have even know that it exists yet
hahuang65 has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<guacamole> bawNg there are bots that download them all
<bawNg> that's a lot of bots
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<guacamole> bots love gems
GodFather has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
DTZUZO has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 256 seconds]
hipertracker has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<hipertracker> If minitest is a part of Ruby standard library, why it has been removed from the list? It can be found for Ruby 2.1 https://ruby-doc.org/stdlib-2.1.0/, but not for Ruby 2.2, 2.3, or 2.5 https://ruby-doc.org/stdlib-2.5.0/. Why?
<havenwood> hipertracker: Yes, it
<havenwood> is part of the stdlib, it just has been gemified.
randomstrangerb has quit [Ping timeout: 260 seconds]
<havenwood> hipertracker: It's a "bundled" gem (no relation to bundler). So it ships with Ruby but you can uninstall it unlike most of the sdtlib.
<havenwood> hipertracker: https://stdgems.org/
a1ph4g33k has joined #ruby
randomstrangerb has joined #ruby
<hipertracker> I see. Thanks
camfowler has joined #ruby
tejasvi5 has quit [Remote host closed the connection]
camfowler has quit [Client Quit]
jetpack_joe has quit [Quit: Connection closed for inactivity]
camfowler has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pastorin_ has joined #ruby
Raffy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastorinni has quit [Ping timeout: 268 seconds]
hipertracker has quit [Quit: hipertracker]
eckhardt has joined #ruby
bronson has joined #ruby
lytol has quit [Remote host closed the connection]
jottr_ has joined #ruby
Success has quit [Changing host]
Success has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
guardianx has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
jottr_ is now known as jottr
alfiemax has quit [Ping timeout: 268 seconds]
a1ph4g33k has quit [Quit: Leaving]
bkxd_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
bkxd_ has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
Ishido has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bkxd has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
moei has quit [Quit: Leaving...]
Ishido has joined #ruby
wilbert has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
guacamole has quit [Changing host]
guacamole has joined #ruby
rrutkowski has joined #ruby
guardianx has quit []
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
desperek has quit [Quit: xoxo]
wilbert has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 256 seconds]
BTRE has quit [Read error: Connection reset by peer]
Asher has joined #ruby
BTRE has joined #ruby
jordanm has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]