<apeiros>
but when will it be ruby 3? the "3 times faster ruby"?
<havenwood>
2020!
<apeiros>
:<
lordalveric has quit [Ping timeout: 240 seconds]
nesoi has joined #ruby
stee_3_ has joined #ruby
<nesoi>
I am trying to get a ruby program which was running on Windows with ruby version 1.9.2 working on os x. What's the minimal way to do that? My ruby version comes up as: ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]. The current activerecord won't install, saying it needs 2.2 or greater
ytti_ has joined #ruby
diego1 has joined #ruby
jusa has joined #ruby
KillerFox has quit [Write error: Broken pipe]
ytti has quit [Write error: Broken pipe]
Guest57153 has quit [Write error: Broken pipe]
D9 has quit [Excess Flood]
wnd has quit [Excess Flood]
<manveru>
but that doesn't have yield_self nor the backtrace change... must be wrong :(
stee_3 has quit [Quit: No Ping reply in 180 seconds.]
dviola has quit [Remote host closed the connection]
<nesoi>
havenwood: I don't know.. this code I'm trying to get running just has require 'mysql'
<havenwood>
nesoi: So that's mysql not mysql2. The mysql gem has been unmaintained for several years.
<nesoi>
I'm already trying to replace one API package, so it would be great if I didn't have to replace others at the same time and then try to figure out what's not working where
PatrikasZvaigzde has joined #ruby
<nesoi>
mysql2 installed ok
<nesoi>
using gem install mysql2
cdg has joined #ruby
harfangk has joined #ruby
phenix has quit []
pen has joined #ruby
aidalgol has joined #ruby
patarr has joined #ruby
regaIfrog has joined #ruby
genpaku has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
pen has quit [Ping timeout: 260 seconds]
genpaku has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
regaIfrog has quit []
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
regaIfrog has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<havenwood>
aidalgol: Either rbenv or chruby should be able to play nice alongside system Ruby.
<aidalgol>
I'm running ~/.rbenv/shims/gem but for somereason /usr/bin/ruby2.1 is being invoked.
<havenwood>
aidalgol: I'm not as familiar with rbenv and there's no irc support channel but there are some users here, no doubt.
nettoweb__ has quit [Client Quit]
<havenwood>
aidalgol: I'd personally recommend uninstalling rbenv and going with ruby-install/chruby if it's dev environment or just ruby-install to /usr/local if it's prod.
<havenwood>
aidalgol: With rbenv drop the --user-install
<havenwood>
aidalgol: same issue with?: gem install rsense
<havenwood>
it's like the `gem` is your system Ruby, hrmmm
<havenwood>
aidalgol: you're not using sudo?
<havenwood>
aidalgol: just `gem install rsense` should work
pen has joined #ruby
<aidalgol>
gem install rsense tries to install to /usr/local
<aidalgol>
I don't have this issue when I'm in a project directory (i.e. a .ruby-version file is present)
ddffg has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
<LukyCZ>
Hi, how would I limit input to a set range of characters (a, r, o, s) ? Example: I have a text game, and I have 4 options (1, 2, 3, 4). If the user inputs something else, do something. How could I do this ? Thanks
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
jaruga________ has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
zipper has left #ruby ["WeeChat 1.8"]
pie__ has joined #ruby
<pie__>
hey guys i need to understand some ruby but i dont know any, is there a tool for explaining what some syntax means or a quick way to look it up or something?
<ljarvis>
pie__: not really, you want to know what something does without learning Ruby?
flying has joined #ruby
<pie__>
almost xP
<ljarvis>
I guess you'll want to hire someone
<pie__>
well i never asked anything like this so i thought i might as well give it a try once
lxsameer has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<apeiros>
LukyCZ: you write a conditional construct, like: valid=false; until valid; valid=true; input = $stdin.gets&.chomp; case input; when "1"; …; else "Not a valid choide"; valid=false; end; end
<apeiros>
that comes probably closest to what you're looking for
tomphp has joined #ruby
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
but yeah, it's difficult to look up syntax if you don't know what belongs together.
<apeiros>
and also difficult if you don't know how it's called
taurgal has quit [Ping timeout: 255 seconds]
<pie__>
thanks, maybe it will help
<konsolebox>
pie__: try learning ruby with some tutorial, and pry.
<pie__>
konsolebox, im just a tiny bit frustrated because everything is skill trees all the way down, but thats what happens when you try to base off someone else's work.
ringrong has joined #ruby
<pie__>
well, thats what happens when you dont either haha
<pie__>
thats life
cjhowe7 has joined #ruby
bilal80 has joined #ruby
pie__ has quit [Remote host closed the connection]
pie__ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 240 seconds]
<LukyCZ>
apeiros: That looks... Complicated
<apeiros>
LukyCZ: replace the ; with newlines and it'll look less complicated
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
djbkd has joined #ruby
tomphp has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
slima has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
ur5us has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
iomotoko has joined #ruby
yogg-saron has joined #ruby
djbkd has joined #ruby
<LukyCZ>
How to I know if the input is a string or a number ? I have a gets.to_f, and it equals 0 if a string is put in. I can do that if it equals 0 end the program, but I want to end the program only if it's a string
chouhoulis has quit [Remote host closed the connection]
jameser has joined #ruby
romank has joined #ruby
nettoweb__ has joined #ruby
nettoweb__ has quit [Client Quit]
claw has quit [Ping timeout: 255 seconds]
HoierM has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
_whitelogger has joined #ruby
anisha_ has quit [Ping timeout: 240 seconds]
im0nde has joined #ruby
charliesome has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
im0nde has quit [Client Quit]
anisha has joined #ruby
nanoz has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
djbkd has joined #ruby
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
dasher00 has joined #ruby
quobo has joined #ruby
rohitpaulk has joined #ruby
r3vDev has quit [Quit: Leaving.]
Silthias has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
Silthias has joined #ruby
znz_jp has joined #ruby
ruurd has joined #ruby
marr has quit [Ping timeout: 255 seconds]
unshadow has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
LukyCZ has quit [Quit: Connection closed for inactivity]
<unshadow>
Hi Guys, a quick question, In OpenSSL how do I configure the key size for DH to use ? it seems I always get 1024 bit without a way to change it, cant find where to define it inside OpenSSL::SSL::SSLContext
nanoz] has joined #ruby
ledestin has joined #ruby
nanoz has quit [Ping timeout: 246 seconds]
ledestin has quit [Client Quit]
r3vDev has joined #ruby
jjunior_ has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
djbkd_ has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 260 seconds]
djbkd_ has quit [Remote host closed the connection]
ledestin has joined #ruby
<kke_>
rubydoc.info has been down all day for me
ledestin has quit [Client Quit]
<kke_>
sorry ruby-doc.org
daveyboi[m] has quit [Quit: Bridged client killed]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
cfec0b8d has joined #ruby
<kke_>
elomatreb: yes but it's not in my muscle memory :)
<kke_>
i've clicked myself to rubydoc 10+ times this workday.
<kke_>
but it's over now so perhaps the problem is solved tomorrow.
GGMethos has quit [Ping timeout: 240 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
psychicist__ has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 268 seconds]
marr has joined #ruby
laekur has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
laekur has joined #ruby
rohitpaulk has joined #ruby
romank has quit [Ping timeout: 240 seconds]
vuoto has quit [Remote host closed the connection]
dhollin3 is now known as dhollinger
romank has joined #ruby
chichou has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
yeticry has joined #ruby
tomphp has joined #ruby
pie__ has quit [Changing host]
pie__ has joined #ruby
nesoi has joined #ruby
chichou has joined #ruby
BSaboia has joined #ruby
gregf_ has joined #ruby
theunraveler has joined #ruby
nesoi has quit [Ping timeout: 258 seconds]
nanoz] has left #ruby ["Leaving"]
contradictioned_ has quit [Remote host closed the connection]
nettoweb__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 246 seconds]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
chalkmonster has joined #ruby
ducklobster has quit [Quit: Page closed]
jjaii9 has joined #ruby
ResidentBiscuit has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
<ruurd>
You could use Dash if you wanted to. It's admitted to the iOS appstore again too...
tomphp has joined #ruby
tomphp has quit [Client Quit]
rohitpaulk has quit [Ping timeout: 240 seconds]
LastWhisper____ has joined #ruby
rohitpaulk has joined #ruby
tomphp has joined #ruby
synthroid has quit [Remote host closed the connection]
choke has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
rory has joined #ruby
hxegon has quit [Quit: leaving]
nanoz has joined #ruby
nanoz has left #ruby [#ruby]
chalkmonster has quit [Ping timeout: 255 seconds]
hxegon has joined #ruby
chalkmonster has joined #ruby
Guest52354 has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
mwlang has quit [Quit: mwlang]
r3vDev has quit [Quit: Leaving.]
blackwind_123 has joined #ruby
pupsicle has quit [Quit: pupsicle]
Renich has joined #ruby
pupsicle has joined #ruby
pupsicle2 has joined #ruby
synthroid has joined #ruby
pupsicle2 has quit [Client Quit]
jgnagy has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
contradictioned has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
nesoi has joined #ruby
JohnT has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
dcunit3d has joined #ruby
pupsicle has quit [Read error: Connection reset by peer]
nesoi has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
rohitpaulk has joined #ruby
pupsicle has quit [Client Quit]
sepp2k has joined #ruby
pupsicle has joined #ruby
<JohnT>
Does anyone have experience with the mail gem? I'm trying to extract attachments (pdfs). Code produces no errors, but when I try to open the pdfs they're corrupt/invalid.
pupsicle has quit [Client Quit]
pupsicle has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
<matthewd>
JohnT: What does the extracted file look like? Maybe you're pulling out the still-encoded body?
jjaii9 has quit []
conta has quit [Ping timeout: 258 seconds]
<JohnT>
no, it looks like a valid pdf spec
dcunit3d has joined #ruby
nankyokusei has joined #ruby
BSaboia has quit [Quit: Leaving]
<JohnT>
oops, forgot the binary specifier on file open. that could explain it.
elcontrastador has joined #ruby
<JohnT>
yep, works fine now. its always the simple stuff
Renich has quit [Quit: Renich]
dcunit3d has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
haylon has joined #ruby
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
Burgestrand has quit [Quit: Closing time!]
nettoweb__ has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
ascarter has quit [Client Quit]
amclain has joined #ruby
brent__ has joined #ruby
ascarter has joined #ruby
yeticry_ has joined #ruby
ascarter has quit [Client Quit]
marxarelli has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
Renich has joined #ruby
jgnagy has quit [Remote host closed the connection]
milardovich has quit []
rory has left #ruby [#ruby]
jaruga________ has quit [Quit: jaruga________]
kies has joined #ruby
nettoweb__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 246 seconds]
<hxegon>
ruby-doc is down noooooo
cdg has joined #ruby
kies has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morfin has joined #ruby
dionysus69 has joined #ruby
hobodave has joined #ruby
<havenwood>
has someone already emailed james@neurogami.com to let him know ruby-doc is down?
tomphp has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
ivanskie--work has joined #ruby
<ivanskie--work>
hi
<ivanskie--work>
how's it going every1
<havenwood>
ivanskie--work: hi
<ivanskie--work>
so.. i'm trying to download a file. using open-uri or the net/http.. it looked like it was basic auth, but i get response saying its anauthorized.
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<ivanskie--work>
when a popup comes up asking for username/password... what else could it be? javascript based?
<ivanskie--work>
it looks to be a standard dialog as if its basic auth. and i am certain the username/password i'm providing is correct.
<centrx>
ivanskie--work: Does that look like a window in your Windows?
<ivanskie--work>
open-uri just saves empty files.. thats why i'm trying this net/http way to see what the problem is.
<centrx>
or window manager
<ivanskie--work>
yes
<centrx>
ivanskie--work: So you are running Windows with the old-style theme?
<ivanskie--work>
no its just old firefox
<ivanskie--work>
lol
<ivanskie--work>
i have to download 5 files from 22 devices..
patarr has quit [Ping timeout: 240 seconds]
<centrx>
but like Windows 7 or Windows 10, by default they look different than that dialog box
<ivanskie--work>
i'd say windows 7. its windows server 2008
dviola has quit [Quit: WeeChat 1.8]
dionysus69 has quit [Ping timeout: 260 seconds]
Otti has joined #ruby
pankaj has joined #ruby
pankaj_ has joined #ruby
mlindahl has joined #ruby
<centrx>
ivanskie--work: I'm saying that window may not have been created by your OS. It may just be a fake window created by the site?
mim1k has joined #ruby
Renich has quit [Quit: Renich]
webopsx has joined #ruby
tomphp has joined #ruby
pankaj has quit [Client Quit]
webopsx has quit [Max SendQ exceeded]
konsolebox has quit [Ping timeout: 246 seconds]
<ivanskie--work>
possible. I do think it's basic auth, because there is no other content on the page loading that i see in dev tools, until I put in credentials
Cohedrin has quit [Read error: Connection reset by peer]
<ivanskie--work>
better question i guess would be how can I test this
Cohedrin has joined #ruby
<elomatreb>
Look at the request/response headers in your browser
jenrzzz has quit [Ping timeout: 255 seconds]
mlindahl has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
<ivanskie--work>
will try that
blackwind_123 has quit [Quit: Say What?]
HoierM has quit [Ping timeout: 246 seconds]
dcluna has joined #ruby
nettoweb__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oivanrodrigues has joined #ruby
<oivanrodrigues>
#join #rails
oivanrodrigues has left #ruby [#ruby]
vktec has left #ruby ["So long and thanks for all the fish"]
centrx has quit [Remote host closed the connection]
<ivanskie--work>
looks like that's working. weeee
flying has quit []
dionysus69 has joined #ruby
belmoussaoui has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
nankyokusei has quit [Ping timeout: 255 seconds]
contradictioned has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
Axy has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
belmoussaoui has quit [Client Quit]
ldnunes has joined #ruby
belmoussaoui has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
BSaboia has joined #ruby
Myk267 has left #ruby ["Leaving"]
marxarelli has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
iomotoko has joined #ruby
iomotoko has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
iomotoko has joined #ruby
hobodave_ has joined #ruby
nertzy has quit [Quit: Leaving]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
hobodave has quit [Ping timeout: 258 seconds]
romank has quit [Read error: Connection reset by peer]
kies has joined #ruby
<plujon>
[].include? # <- is the performance for this defined? E.g. O(n), O(log n), O(1) ?
Cohedrin has quit [Read error: Connection reset by peer]
iomotoko has quit [Quit: leaving]
agent_white has joined #ruby
iomotoko has joined #ruby
synthroid has quit []
Cohedrin has joined #ruby
<elomatreb>
plujon: I don't know about Array, but if you're worried about that performance you could try a Set instead, which uses as a Hash to lookup members in nearly (?) constant time
Kug3lis has quit [Ping timeout: 255 seconds]
<zenspider>
plujon: that should be O(0) since it is empty
<plujon>
har har
<zenspider>
confirmed
<plujon>
elomatreb: Thanks; I was going to convert array to a hash for guaranteed O(1). But I didn't think (or know) about Set.
<canton7>
I'd be very surprised if Array#include? wasn't O(n), and Set#include? wasn't O(1)
<zenspider>
I'm still surprised that people worry about speed these days
ur5us has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nahra has quit [Ping timeout: 240 seconds]
nettoweb__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* plujon
confirmed [].include? has O(n) performance using my ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iomotoko has quit [Quit: leaving]
<zenspider>
yup yup. it's just a for loop
iomotoko has joined #ruby
kies has quit [Ping timeout: 255 seconds]
iomotoko has quit [Client Quit]
iomotoko has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
iomotoko has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
jgnagy has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
ruurd has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
biberu has quit []
KeyJoo has quit [Ping timeout: 240 seconds]
contradictioned has joined #ruby
Kug3lis has joined #ruby
ldnunes has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
iomotoko has joined #ruby
<zenspider>
I'm guarding on all bang methods, []=, concat, and replace. Cwhat sneaky mutators are there in Array?
dcluna has joined #ruby
<elomatreb>
shift?
<elomatreb>
(and friends)
psychicist__ has quit [Ping timeout: 260 seconds]
<ljarvis>
there's loads :(
ooc has joined #ruby
ooc has left #ruby [#ruby]
mtkd has quit [Ping timeout: 240 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ascarter has joined #ruby
jgt2 has joined #ruby
mtkd has joined #ruby
tomphp has joined #ruby
synbit has joined #ruby
<zenspider>
oooh. shift I already guard... I need to wrap up unshift/pop/push