jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
rodfersou has quit [Ping timeout: 246 seconds]
<zenspider> drbrain: "This is because the new engine reads its certificates from a security database (the Keychain) instead of from certificate files"
<zenspider> which implies this shit SHOULD work. :P
<drbrain> yeah, but it doesn't seem to, so maybe something changed between October 2013 and now?
prestorium has joined #ruby
balazs has joined #ruby
<zenspider> miah: interesting: `curl -o cacert.root.crt https://www.cacert.org/certs/root.crt` works for me
<zenspider> so that tells me that keychain is working properly
<miah> nice
<zenspider> and there is a problem in my cert on my server :/
<drbrain> I think it might be the domain mismatch
balazs has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 255 seconds]
<drbrain> yeah
tkuchiki has joined #ruby
<drbrain> curl https://envy.zenspider.com is OK
<zenspider> yeah. just saw that in the ssltest
zotherstupidguy has joined #ruby
<zenspider> ugh. I hate this stuff. I need a sysadmin
Channel6 has joined #ruby
Muhannad has quit [Ping timeout: 276 seconds]
<miah> ah ya
<miah> Certificate chain 0 s:/CN=envy.zenspider.com
<miah> this is what i did; openssl s_client -connect zenspider.com:443
<zenspider> I would like to fix the "Unknown Certificate Authority" part, but not for $500 / year. fuck that
<miah> its not too bad
<zenspider> even running against envy.zenspider.com says the same thing about self-signed
charliesome has joined #ruby
<drbrain> maybe because the cacert root is self-signed and untrusted by default?
<zenspider> ok. so, security + curl on envy seems to work
<zenspider> maybe. I dunno
Ox0dea has quit [Read error: Connection reset by peer]
d10n-work has quit [Quit: Connection closed for inactivity]
<miah> drbrain: probably
<zenspider> so this SHOULD work:
<zenspider> curl -o cacert.root.crt https://www.cacert.org/certs/root.crt; security add-trusted-cert cacert.root.crt ; curl https://envy.zenspider.com/~ryan/gem-public_cert.pem
vasilakisfil has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
<zenspider> curl -o cacert.root.crt https://www.cacert.org/certs/root.crt; security add-trusted-cert cacert.root.crt ; curl -o zenspider.pem https://envy.zenspider.com/~ryan/gem-public_cert.pem; gem cert --add zenspider.pem
<zenspider> needs a -k on the first curl ... chicken and egg
sdwrage2 has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sfarley has quit [Remote host closed the connection]
<miah> i cant wait for letsencrypt.org to go live for this exact reason
charliesome has quit [Quit: zzz]
<miah> cacert has been great, but not being in browsers at all has made it almost pointless.
wallerdev has joined #ruby
sfarley has joined #ruby
<miah> i used to use it a bunch when i worked for researchers that had no money to give to my budget
kenndel has joined #ruby
Rickmasta has joined #ruby
zendrix has quit [Remote host closed the connection]
zendrix has joined #ruby
RobertBirnie has quit [Ping timeout: 264 seconds]
<zenspider> letsencrypt is a long ways off :(
chipotle has quit [Quit: cheerio]
BTRE has quit [Quit: Leaving]
<miah> ya
<miah> still excited for it =)
Casey has quit [Ping timeout: 264 seconds]
<zenspider> until then, I think I'll sit on my cacert setup
<miah> =)
zendrix has quit [Ping timeout: 248 seconds]
systemd0wn_ has quit [Ping timeout: 252 seconds]
ruu_ has joined #ruby
saadq has joined #ruby
sp4rrow_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
kenndel has quit [Ping timeout: 272 seconds]
Yiota has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ruu has quit [Ping timeout: 264 seconds]
soldorado45 has joined #ruby
lala has quit [Quit: Connection closed for inactivity]
saadq has quit [Remote host closed the connection]
soldorado45 has left #ruby [#ruby]
failshell has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
rubie has quit [Remote host closed the connection]
blaines has joined #ruby
wildroman2 has joined #ruby
Casey has joined #ruby
jerius has quit [Quit: /quit]
wald0 has joined #ruby
freerobby has joined #ruby
noob has quit []
hck89 has quit [Quit: Textual IRC Client: www.textualapp.com]
Alayde has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
mxrguspxrt has joined #ruby
failshel_ has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
ruu_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 252 seconds]
failshell has quit [Ping timeout: 256 seconds]
robustus has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Ping timeout: 264 seconds]
failshel_ has quit []
bricker has quit [Ping timeout: 265 seconds]
sandstrom has joined #ruby
RegulationD has quit [Remote host closed the connection]
mxrguspxrt has quit []
Yzguy has joined #ruby
bronson has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Remote host closed the connection]
lala has joined #ruby
rcvalle has quit [Quit: rcvalle]
wildroman2 has joined #ruby
SCHAAP137 has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
prestorium has quit [Quit: Konversation terminated!]
jpfuentes2 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
Yzguy has joined #ruby
bf4 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Indian has joined #ruby
Casey has quit [Quit: Leaving]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
gwendall has joined #ruby
s2013 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
gwendall has quit [Read error: No route to host]
gwendall has joined #ruby
davedev2_ has joined #ruby
bf4 has quit [Ping timeout: 252 seconds]
NeverDie has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 248 seconds]
gwendall has quit [Client Quit]
renderfu_ has joined #ruby
NeverDie has joined #ruby
rubie has joined #ruby
Versality has joined #ruby
BTRE has joined #ruby
kenndel has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderfu_ has quit [Ping timeout: 248 seconds]
balazs has joined #ruby
michael_mbp has quit [Excess Flood]
Versality has quit [Ping timeout: 248 seconds]
michael_mbp has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
balazs has quit [Ping timeout: 255 seconds]
sfarley has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
jpfuentes2 has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
dorei has quit []
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has quit [Ping timeout: 272 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
mxrguspxrt has quit []
sfarley has joined #ruby
Zimsky_ has quit [Ping timeout: 248 seconds]
Zimsky_ has joined #ruby
freerobby has quit [Quit: Leaving.]
dgutierrez1287 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
craysiii has left #ruby [#ruby]
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has joined #ruby
Agoldfish has quit [Quit: G'Bye]
segfalt has joined #ruby
finisherr has joined #ruby
Channel6 has quit [Quit: Leaving]
finisherr has quit [Client Quit]
simplyianm has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
ruu has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
aryaching has joined #ruby
bronson has joined #ruby
finisherr has joined #ruby
segfalt has quit [Quit: segfalt]
j4cknewt has joined #ruby
blue_deref has quit [Quit: bbn]
Jiks has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
Jiks is now known as MrJiks
<MrJiks> Hello, just testing a new client.
Deele has quit [Ping timeout: 256 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
<symm-> blarg, ruby doesn't see non-ascii filenames
MrJiks has left #ruby ["WeeChat 1.1.1"]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
sfarley has quit [Remote host closed the connection]
freerobby has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Yzguy has quit [Quit: I'm sleeping, go away.]
Pupeno has quit [Ping timeout: 246 seconds]
<sphex> symm-: Encoding.find 'filesystem'
bosma is now known as vosma
aryaching has quit [Ping timeout: 250 seconds]
finisherr has quit [Quit: finisherr]
t0rrieri has joined #ruby
simplyianm has joined #ruby
jlast has joined #ruby
bronson has quit [Remote host closed the connection]
Yzguy has joined #ruby
freerobby has quit [Quit: Leaving.]
lessless has joined #ruby
Celm has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
vosma is now known as bosma
yfeldblum has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
zenguy_pc has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
simplyianm has quit [Remote host closed the connection]
kies has joined #ruby
simplyianm has joined #ruby
Musashi007 has joined #ruby
simplyianm has quit [Remote host closed the connection]
bronson has joined #ruby
zenguy_pc has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
zeroDivisible has quit [Ping timeout: 256 seconds]
simplyianm has joined #ruby
ReD-BoY_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
balazs has joined #ruby
Yiota has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
prereflect has joined #ruby
prereflect has quit [Client Quit]
balazs has quit [Ping timeout: 255 seconds]
serivich has quit [Ping timeout: 246 seconds]
icarus has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
ruu has quit [Remote host closed the connection]
balazs has joined #ruby
bronson has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
_blizzy_ has quit [Ping timeout: 248 seconds]
vdamewood has joined #ruby
darkf has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
msnyon has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
balazs has quit [Remote host closed the connection]
casadei has joined #ruby
jpfuentes2 has joined #ruby
Celm has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has quit [Remote host closed the connection]
jfarmer has joined #ruby
casadei has joined #ruby
Yiota has joined #ruby
Rodya_ has joined #ruby
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rickmasta has joined #ruby
jpfuentes2 has quit [Ping timeout: 264 seconds]
dopie has joined #ruby
x1337807x has joined #ruby
BTRE has quit [Quit: Leaving]
chipotle has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
scx_ has joined #ruby
havenwood has joined #ruby
aphprentice has joined #ruby
fgo has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
scx has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
zotherstupidguy has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
ChasedSpade has quit [Quit: No reason specified.]
startupality has joined #ruby
djbkd has joined #ruby
psy_ has quit [Quit: Leaving]
senayar has joined #ruby
senayar has joined #ruby
pragmatism has joined #ruby
greenbagels has joined #ruby
jon__ has joined #ruby
hahuang65 has joined #ruby
ChasedSpade has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
startupality has quit [Quit: startupality]
dopie has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
<millerti> I meant to do array.each {|x| ...}, but Instead I accidentally did array {|x| ...} What does the latter do?
senayar has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
Tau has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
jon__ has quit [Quit: leaving]
Rodya_ has joined #ruby
<toretore> nothing
avahey has joined #ruby
<toretore> it should raise a NoMethodError
wald0 has quit [Ping timeout: 256 seconds]
<toretore> >> array=[]; array{|x| }
<ruboto> toretore # => undefined method `array' for main:Object (NoMethodError) ...check link for more (https://eval.in/388327)
pontiki has joined #ruby
punkerplunk has joined #ruby
<punkerplunk> I'm about to make my first gem!
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
<punkerplunk> I'm going through the guide at rubygems, I was wondering if anyone had any advice!?
<punkerplunk> specifically, I need some ttfs, and I donno do I just make some folder and stick them in that? do I have to add them into the gemspec?
nateberkopec has quit [Quit: Leaving...]
failshell has joined #ruby
failshell has quit [Client Quit]
<symm-> sphex: thanks, I will look into that
sarkyniin has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 246 seconds]
rubie has quit [Remote host closed the connection]
j4cknewt has joined #ruby
hiall has joined #ruby
pontiki has quit [Quit: <poit>]
gix has joined #ruby
<sphex> punkerplunk: it looks like some gems put their data files in a lib directory and find them by opening a path relative to a loaded module... prolly not the best way though.
zotherstupidguy has quit [Read error: Connection reset by peer]
<sphex> symm-: np
Musashi007 has quit [Quit: Musashi007]
dgutierrez1287 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<punkerplunk> sounds simple enough.
zotherstupidguy has joined #ruby
<punkerplunk> or i'll just search the computer for ttfs with some recursive hack job
<sphex> yeah, but you'd think there would be a way to install a /usr/share file or similar
blackmes1 has joined #ruby
<sphex> punkerplunk: ew.
jpfuentes2 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
Pupeno has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
<punkerplunk> also, if I require another gem, do I have to use bundler or just name it in the gemspec?
pwnz0r_ has joined #ruby
<havenwood> punkerplunk: Just in the gemspec.
<punkerplunk> coo
datanoise has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 272 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
<punkerplunk> hmmm, nothing happens when I ask it to install locally
Yzguy has quit [Quit: I'm sleeping, go away.]
<punkerplunk> dependency issues brb
toretore has quit [Read error: Connection reset by peer]
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has joined #ruby
sarkyniin has joined #ruby
baweaver_ has joined #ruby
toretore has quit [Client Quit]
dopie has joined #ruby
balazs has joined #ruby
<punkerplunk> it tells me ERROR: Failed to build gem native extension
<jfarmer> punkerplunk Assuming these are static, read-only files
<jfarmer> There is a standard location for them: the "data" directory (cf., http://ruby-doc.org/stdlib-2.2.1/libdoc/rubygems/rdoc/Gem.html#method-c-datadir)
<punkerplunk> thanks jfarmer
<jfarmer> punkerplunk That means one of your dependencies has a component written in C and it failed to compile
msnyon has joined #ruby
<jfarmer> Usually means either you're missing some system-level dependency (e.g., a shared library) or your development environment is not set up correctly (e.g., you don't have a working C compiler).
baweaver_ has quit [Ping timeout: 252 seconds]
<jfarmer> The error message usually includes the location of an error log which will give you more detail.
lessless has joined #ruby
d1ngell has joined #ruby
casadei has quit [Remote host closed the connection]
Indian has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<punkerplunk> okay, I guess I need to make my own extconf.rb file.
scripore has joined #ruby
scripore has quit [Client Quit]
zenguy_pc has joined #ruby
Indian has joined #ruby
msnyon has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
simplyianm has quit [Remote host closed the connection]
bruno- has joined #ruby
<jfarmer> That seems unlikely
havenwood has quit [Ping timeout: 250 seconds]
MrJiks has joined #ruby
<jfarmer> Unless your gem is the gem with the C extension
<punkerplunk> the gem i'm requiring uses a c extension, not my gem
<jfarmer> Then it has an extconf.rb file that includes instructions for how to build its C extensions.
<jfarmer> If it's failing to build that indicates something wrong with your build environment
<jfarmer> Try installing the offending gem in isolation, for example (gem install gem_that_wont_compile)
<punkerplunk> I have it.
havenwood has joined #ruby
<punkerplunk> I mean, otherwise I couldn't develop this in the first place!
<punkerplunk> perhaps the issue is with runtime or development
<punkerplunk> so I add_development_dependency rather than add_runtime_dependency
<jfarmer> Maybe your build environment was working, you installed the gem, you unknowingly broke your build environment, and now can't install the gem
<jfarmer> (as a hypothesis consistent with the evidence presented so far)
bruno- has quit [Ping timeout: 252 seconds]
[k- has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<punkerplunk> Ah yes, IT WORKS!
<punkerplunk> MWAHAHAHAHAHA
ruu has joined #ruby
jmhmccr has joined #ruby
baweaver has quit [Remote host closed the connection]
<punkerplunk> oh kay, like I thought, it's having trouble locating the ttfs. looks like I've got a bit more work before I publish
psy_ has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
ruu has quit [Client Quit]
yeticry has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Ping timeout: 250 seconds]
balazs has quit [Remote host closed the connection]
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
<punkerplunk> Could I use gemspec.Metadata to specify data?
zotherstupidguy has joined #ruby
zenguy_pc has joined #ruby
towski_ has quit [Remote host closed the connection]
pawz has joined #ruby
rbowlby has quit [Remote host closed the connection]
yeticry has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
zenguy_pc has quit [Read error: Connection reset by peer]
eggoez has quit [Ping timeout: 248 seconds]
<pawz> Hey. I'm having a problem with a ruby based app (wpscan) ... I have tried installing it on two different debian machines and an osx machine and I always get
<pawz> [ERROR] cannot load such file -- terminal-table/row
<pawz> i did "gem install terminal-table"
<pawz> pawz@dejiko:~$ sudo gem list
<pawz> *** LOCAL GEMS ***
<pawz> bundler (1.10.5)
<pawz> terminal-table (1.5.0)
<pawz> and it is installed
<pawz> but i still get the error
<pawz> can anyone tell me why ?
<[k-> it could be because you installed it as root
zotherstupidguy has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
jenrzzz has joined #ruby
MrJiks has quit [Quit: WeeChat 1.1.1]
shoutsid has joined #ruby
<havenwood> pawz: I can reproduce the same issue.
<punkerplunk> you have these? libcurl4-openssl-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev ruby-dev
<d1ngell> 3
<pawz> yes, i installed all the deps according to the wpscan guide. I've installed it before in the past without problems, but now, I cannot
eggoez has joined #ruby
<havenwood> pawz: It doesn't look like it's included in the gemspec's files: https://github.com/tj/terminal-table/blob/master/terminal-table.gemspec#L13
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pawz> I'm not really too familiar with ruby so I don't know how to fix this... all the other packages were installed as root as per the guide.. do you think if I installed terminal-table as a normal user it would fix it ?
swgillespie has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
<punkerplunk> well, if havenwood has the same issue . . . it sounds like the developer might have let a bug slip
<[k-> dun dun dun
tubuliferous_ has joined #ruby
Musashi007 has joined #ruby
<pawz> yeah, I think so. I think I'll go back to a stable revision and leave the git version alone
<pawz> thanks
Deele has joined #ruby
chussenot has joined #ruby
<pawz> so, it's generally advisable to install the gems I need as a regular user rather than as root ? I have experienced this sort of thing with other languages
aryaching has quit []
tubuliferous_ has quit [Ping timeout: 265 seconds]
<[k-> you could try summiting a PR to fix the issue
<[k-> then you can build from the fork
<havenwood> pawz: I prefer package managers that default to a --user-local install but it varies. You can add `gem: "--user-install"` to your ~/.gemrc file to install gems in your user home dir. RVM, chruby and rbenv will install locally.
zotherstupidguy has quit [Ping timeout: 256 seconds]
Indian has quit [Ping timeout: 265 seconds]
<havenwood> Or rather ruby-install and ruby-build, but ruby-install does support system installs.
<havenwood> It just depends
<pawz> ok, I think I can make enough sense of that to work it out
<havenwood> pawz: Which OS/distro?
<[k-> the current issue is that the developer forgot to add "lib/terminal-table/row.rb" to s.files
<pawz> damn, even the tarballed version has the same error... I'll have to try and find an old version
Indian has joined #ruby
dented42 has joined #ruby
<pawz> havenwood: currently trying on Debian 7.8
<havenwood> pawz: And using system Ruby?
renderfu_ has joined #ruby
zenguy_pc has joined #ruby
bkxd has joined #ruby
<havenwood> pawz: It looks like it has been a long time since this gem has been updated.
<pawz> ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux]
<pawz> it would seem to be a problem with the guy's source because I have the same issue on a different debian version and also on my os x machine
d1ngell has quit [Read error: Connection reset by peer]
<pawz> [k- is it just a matter of adding that somewhere ?
<pawz> pawz@dejiko:~/wpscan$ grep -r terminal-table
<pawz> Gemfile.lock: terminal-table (1.5.0)
<pawz> Gemfile:gem 'terminal-table'
<pawz> Gemfile.lock: terminal-table
<pawz> lib/environment.rb: require 'terminal-table'
Rickmasta has joined #ruby
GitGud has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 256 seconds]
<havenwood> pawz: I linked above.
<pawz> the .gemrc change ?
<pawz> oh the gemspec file
<havenwood> pawz: Line 13 of your gemspec.
renderfu_ has quit [Ping timeout: 264 seconds]
<havenwood> pawz: That's the bug.
<havenwood> Or at least one of the bugs. :P
hanmac has quit [Ping timeout: 246 seconds]
<[k-> fork the file, edit it, submit a PR!
<[k-> and then you can rebuild the gem from your forked version
freerobby has quit [Quit: Leaving.]
duderonomy has joined #ruby
<pawz> havenwood: the gemspec file is for terminal-table ? surely the bug is not in terminal-table is it ?
arescorpio has quit [Read error: Connection reset by peer]
<havenwood> pawz: When I install this gem and require it I run into the same error you do. It hasn't had a commit in over three years.
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pawz> ok.. I understand. I'll remove my gem of terminal-table and pull the git for it and make that modification
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
sarkyniin has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
<pawz> hahaha ok... rebuilt it with your suggestion havenwood. eliminated the table.rb error and now it's missing another one... I'll just keep adding the necessary files the gemspec is missing until it works :)
<havenwood> pawz: ;)
choke has joined #ruby
pragmatism has joined #ruby
hanmac has joined #ruby
Oka has joined #ruby
<pawz> WOOHOOO ! Fixed ! there were three libraries missing from terminal-table's gemspec ... added them all, recompiled and installed the gem and it's all good. Thanks so much. I really know very little about ruby so I'm so happy to solve that :)
Pumukel has quit [Read error: No route to host]
Ox0dea has joined #ruby
konsolebox has joined #ruby
<Ox0dea> >> [//.dup, begin //.clone; rescue Exception => e; e end]
<pawz> guess I'd better upload my fork to github now for others ;)
<ruboto> Ox0dea # => [//, #<SecurityError: can't modify literal regexp>] (https://eval.in/388328)
<Ox0dea> Ruby, pls! Cloning is, like, the opposite of modifying.
Yzguy has joined #ruby
zotherstupidguy has joined #ruby
<Yzguy> hey guys
<Ox0dea> Any insight as to why //.clone should raise a SecurityError?
<Yzguy> do you think it worth going back to school to take a couple software dev courses?
<Yzguy> i can do procedural programming well, but im trying to build on it, and have had no luck on my own
havenwood has quit [Ping timeout: 276 seconds]
<Ox0dea> Yzguy: What is procedural programming?
<Yzguy> like top down
<Yzguy> a script
<Yzguy> do this, do this, done
Pumukel has joined #ruby
<Ox0dea> Whereas non-procedural programming involves mind reading and time travel?
<Yzguy> noo but i mean OOP, etc. more advanced and in depth
<[k-> oop isn't that procedural
<Yzguy> i know...
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
<Yzguy> nevermind, clearly not getting anywhere
sulky has quit [Ping timeout: 248 seconds]
Yzguy has left #ruby [#ruby]
sulky has joined #ruby
<punkerplunk> YAY my first gem
tercenya has quit [Read error: Connection reset by peer]
<Ox0dea> ~ $ gem install IRGoggles
<Ox0dea> ERROR: Could not find a valid gem 'IRGoggles' (>= 0) in any repository
<punkerplunk> CURSES!
<[k-> you need to update some sort of list
<punkerplunk> some sort of list!?
zotherstupidguy has quit [Ping timeout: 250 seconds]
tercenya has joined #ruby
zotherstupidguy has joined #ruby
vdamewood has quit [Quit: Life beckons.]
bkxd has quit [Ping timeout: 276 seconds]
<[k-> gem update?
<[k-> I don't rubygems much
dented42 has joined #ruby
<[k-> have fun ^^
baweaver has joined #ruby
Versality has joined #ruby
Versality has quit [Read error: Connection reset by peer]
Versality has joined #ruby
<[k-> nope not gems update
charliesome has quit [Quit: zzz]
<[k-> gem*
systemd0wn has joined #ruby
<Ox0dea> [k-: Pfft, like I don't have a local copy of trunk.
<[k-> now you know where to search then!
devyn_ has quit [Ping timeout: 276 seconds]
<Ox0dea> The error is being raised upon (re)initialization of the Regexp, which I don't think makes much sense.
yfeldblum has joined #ruby
<Ox0dea> Duplicating isn't modifying, anyhow.
<[k-> Ox0dea, you need to use the --pre flag
<[k-> the gem is in alpha
<Ox0dea> Indeed.
balazs has joined #ruby
devyn has joined #ruby
<[k-> punkerplunk, no need to search anymore
Versality has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
<Ox0dea> punkerplunk: Why "datum"? You'll need to change the name if the directory every includes more than one file.
<Ox0dea> *ever
GitGud has joined #ruby
Jiks has joined #ruby
rbowlby has joined #ruby
x44x45x41x4E has joined #ruby
bkxd has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
<pawz> guys, for the sake of bundler installation and naming conventions, is it acceptable practice for me to leave my forked version of terminal-table having the same gem name (with a different version number) so that it can be easily identified and installed ? It seems like it will be a bit of effort and cause a lot of issues if I were to rename the gem in the specification
rubie has quit [Ping timeout: 265 seconds]
<punkerplunk> now bash won't curl
fantasticsid has joined #ruby
krz has joined #ruby
rbowlby has quit [Ping timeout: 248 seconds]
<[k-> what are you doing punkerplunk
<punkerplunk> good question
<punkerplunk> I'm trying to find out why no valid gem when I try to remote install my gem
<[k-> punkerplunk we already solved that issue
<punkerplunk> oh
<punkerplunk> oh!
<[k-> we told you to stop searching...
_blizzy_ has joined #ruby
<punkerplunk> scroll bar!
<[k-> scroll up ^
<punkerplunk> speaking of which, be on the look out for scroll bars in alpha 0.0.2
bkxd has quit [Ping timeout: 252 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> "alpha" is pretty redundant on 0.0.x releases, in my opinion.
<Ox0dea> punkerplunk: Why do you hate proper indentation?
<punkerplunk> I was thinking of making it A.0.1
blackmes1 has joined #ruby
bkxd has joined #ruby
<punkerplunk> I'll work on indenting . . .
<Ox0dea> Why SourceForge?
<punkerplunk> I think I forgot to include the readme file which explains to push CONTROL ENTER to send to the irb
<punkerplunk> sourceforge because I don't know what I'm doing
<Ox0dea> Fair enough.
<[k-> ewww sourceforge
Pupeno has joined #ruby
<punkerplunk> I've never used it before . . . as a developer I mean.
RegulationD has joined #ruby
<punkerplunk> I think I used it to dl tripplea once
<[k-> good luck to you
Jiks1 has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
Jiks1 has quit [Client Quit]
Jiks has quit [Ping timeout: 248 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
<punkerplunk> oh well, it's a start, rocky as it is. I'll try to update in a week or so
<Ox0dea> Do you love it?
existensil has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
<Ox0dea> I vaguely considered using RubyVM::InstructionSequence.of on the passed block, but determining what it means to partially execute any given Ruby bytecode would be very hard.
<punkerplunk> ha!
RegulationD has quit [Ping timeout: 252 seconds]
<punkerplunk> 2.5 times do!
<Ox0dea> It's great, right?
bkxd has quit [Ping timeout: 264 seconds]
<Ox0dea> Doing it on a timer is at least passably robust for IO-bound blocks.
<punkerplunk> I'm trying to understanding it
<punkerplunk> could you possibly use codepoints of the supplied block?
<Ox0dea> Codepoints are Unicode characters, essentially.
<Ox0dea> You meant something else.
<punkerplunk> {I mean only issuing h . . } and then escaping somehow
ahmetkapikiran has joined #ruby
<Ox0dea> Well, doing so would devolve into reading and parsing the current file, which is both tedious and cheating.
<punkerplunk> indeed
<punkerplunk> I like it anyway.
<punkerplunk> It. . . it seems like it would be useful when used with animations
ahmetkapikiran has quit [Client Quit]
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> To be sure, there are use cases for doing things a fractional number of times, but it's unlikely that Float should be the entry to such functionality.
lxsameer has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Rollabunna has joined #ruby
<punkerplunk> well, we can't always be strictly functional
chinmay_dd has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x44x45x41x4E has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
swgillespie has joined #ruby
bruno- has joined #ruby
fantasti` has joined #ruby
havenwood has joined #ruby
Indian has quit [Ping timeout: 246 seconds]
fantasticsid has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
bkxd has joined #ruby
zotherstupidguy has quit [Ping timeout: 272 seconds]
peter_paule has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
BTRE has joined #ruby
chussenot has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
jerius has joined #ruby
jas02 has joined #ruby
jayMillz has joined #ruby
User458764 has joined #ruby
Jarboe has quit []
t0rrieri has joined #ruby
jas02_ has joined #ruby
scx_ is now known as scx
M-Technic has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 272 seconds]
datanoise has joined #ruby
konsolebox has quit [Remote host closed the connection]
swgillespie has joined #ruby
jas02 has quit [Ping timeout: 255 seconds]
jas02_ is now known as jas02
jerius has quit [Ping timeout: 276 seconds]
yeticry has quit [Ping timeout: 256 seconds]
t0rrieri has quit [Read error: Connection reset by peer]
t0rrieri has joined #ruby
konsolebox has joined #ruby
t0rrieri has quit [Client Quit]
RegulationD has joined #ruby
yeticry has joined #ruby
Alah-akbar has joined #ruby
<Alah-akbar> o God Pork Pornostar !!!
datanoise has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
krz has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
<punkerplunk> gazoontite
Asher has joined #ruby
giuseppesolinas has joined #ruby
<Alah-akbar> n5 God Pig Pornostar !!!
mesamoo has joined #ruby
Asher has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
punkerplunk has quit [Quit: Leaving]
abbe has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alah-akbar has quit [K-Lined]
7JTAAEQTT has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
krz has joined #ruby
swgillespie has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
simplyianm has joined #ruby
pdoherty has joined #ruby
peter_paule has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
<agent_white> Evenin' folks
<[k-> ?ugt agent_white
<ruboto> agent_white, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
simplyianm has quit [Ping timeout: 246 seconds]
<agent_white> Yeah yeah :P
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jayMillz has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
rubie has joined #ruby
konsolebox has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
rubie has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmroark has joined #ruby
pdoherty has quit [Quit: Leaving]
peter_paule has joined #ruby
<shevy> do you sometimes have that feeling that you know that there is a bug out there somewhere, and you can see its result... yet you have a hard time finding the culprit
konsolebox has joined #ruby
ryba has joined #ruby
jmroark has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]]
lavros has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
araujo_ has joined #ruby
Rollabunna has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
mcclurmc has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
<agent_white> Yep. Like this fly that's in my room I can't find but I can hear it.
Caius has joined #ruby
Musashi007 has quit [Quit: Musashi007]
rubyguy has quit [Quit: Connection closed for inactivity]
Rollabunna has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
davedev2_ has quit [Remote host closed the connection]
<shevy> hehe
<shevy> I have this with mosquitos
<shevy> I can hear them but it's hard to see the smaller ones
araujo__ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
araujo_ has quit [Ping timeout: 265 seconds]
framling has joined #ruby
chussenot has quit [Quit: chussenot]
symm- has quit [Ping timeout: 265 seconds]
balazs has joined #ruby
bkxd has joined #ruby
rikai has quit [Quit: No Ping reply in 180 seconds.]
rikai has joined #ruby
tvw has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
eGGsha has joined #ruby
vdamewood has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ledestin has quit [Ping timeout: 255 seconds]
zotherstupidguy has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
bf4 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
t0rrieri has joined #ruby
air_ has joined #ruby
bricker has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 250 seconds]
_ht has joined #ruby
zotherstupidguy has joined #ruby
chussenot has quit [Quit: chussenot]
bf4 has quit [Ping timeout: 252 seconds]
framling has quit [Remote host closed the connection]
yfeldblum has joined #ruby
t0rrieri has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 264 seconds]
air_ has quit [Ping timeout: 246 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: Connection reset by peer]
wildroman3 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
blackmes1 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 256 seconds]
kenndel has quit [Ping timeout: 248 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
dented42 has joined #ruby
sevenseacat has joined #ruby
Rollabunna has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
MrJiks_ has joined #ruby
<MrJiks_> Hello
al2o3-cr2 is now known as al2o3-cr
<[k-> hello
DoubleMalt has joined #ruby
<MrJiks_> [k-: irc is interesting!
<MrJiks_> Moreover weechat is cool!
<[k-> ?ot MrJiks_ :>
<ruboto> MrJiks_, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<[k-> go to off topic, everyone is there!
<MrJiks_> Sure :)
Rollabunna has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
nwmcsween has left #ruby [#ruby]
Musashi007 has joined #ruby
eGGsha has joined #ruby
arutemu has joined #ruby
dawkirst has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
SubjectiveBias has joined #ruby
blackmes1 has quit [Ping timeout: 248 seconds]
fantasti` has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 248 seconds]
fantasti` has joined #ruby
<shevy> we need a rubychat client
<[k-> you need a better client!
ndrei has joined #ruby
SubjectiveBias has quit [Ping timeout: 276 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby
ryba has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Remote host closed the connection]
RegulationD has joined #ruby
jacor has quit [Read error: Connection reset by peer]
<shevy> I have a good client
mcclurmc has joined #ruby
<shevy> but it's not in ruby :(
<[k-> you still need a better client
<[k-> or you should change your font
mcclurmc has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
<[k-> shevy, you could write one, but it might not pick up speed
bosma has quit [Ping timeout: 248 seconds]
<[k-> so it would be kind of a waste
mcclurmc has joined #ruby
<shevy> [k- yeah
wildroman2 has joined #ruby
<[k-> have you changed your font yet? :(
RegulationD has quit [Ping timeout: 264 seconds]
<[k-> or use utf-8
krz has quit [Read error: Connection reset by peer]
mcclurmc has quit [Remote host closed the connection]
dawkirst has quit [Quit: Leaving...]
wildroman3 has quit [Ping timeout: 256 seconds]
ItSANgo has quit [Ping timeout: 248 seconds]
MrJiks_ is now known as MrJiks
djbkd has joined #ruby
CorrosiveOne has quit [Quit: I was drunk last time I set this message]
agent_white has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby
agent_white has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
fantasti` has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ruby
tubuliferous_ has joined #ruby
<shevy> [k- my font is great
<shevy> and I don't need utf
<[k-> but it doesn't support blanks!
<ddfreyne> I wouldn’t mind a hackable Ruby IRC client. I don’t know of good IRC or terminal UI libraries ;(
michael_mbp has quit [Excess Flood]
<[k-> cinchrb/cinch
<shevy> [k- yeah, I can't use the snowman when I communicate with other people!
<ddfreyne> That’s a IRC bot framework though
<jhass> shevy: and that doesn't bother you?
t0rrieri has joined #ruby
michael_mbp has joined #ruby
<ddfreyne> ☹
<[k-> ddfreyne you just have to build on top of it
<[k-> a client is just a bot with intelligence :p
<[k-> on /*/ do puts something
<shevy> jhass I haven't yet had a sleepless night because of it no :)
<[k-> if something
<jhass> well or someone revives https://github.com/dominikh/weechat-ruby
<shevy> but it's peechat!
<shevy> I mean weechat... console
<shevy> jhass does crystal have bindings to gnome-stuff?
tubuliferous_ has quit [Ping timeout: 252 seconds]
<jhass> shevy: just my spike https://github.com/jhass/crystal-gobject
<jhass> it can show a window!
<[k-> yes and a window is the door to the world
Musashi007 has quit [Quit: Musashi007]
rbowlby has quit []
<shevy> hehehe
bruno- has joined #ruby
<shevy> nice slogan
<jhass> the libnotify binding in there is actually pretty complete I think
unshadow_ has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
micmus has joined #ruby
PaulePanter has quit [Remote host closed the connection]
krz has joined #ruby
t0rrieri has quit [Ping timeout: 252 seconds]
amerian has joined #ruby
<amerian> hi
zotherstupidguy has quit [Ping timeout: 250 seconds]
<[k-> hi
maciejczyzewski has joined #ruby
<maciejczyzewski> hi folks!
zotherstupidguy has joined #ruby
<[k-> hello
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<maciejczyzewski> zenspider: https://www.youtube.com/watch?v=MA4jJNUG_dI
GPrime has joined #ruby
towski_ has joined #ruby
<amerian> what is the point of having so many ruby implementations and how do you keep up with them?
<[k-> you choose one and read the news about the others
<amerian> why do you read news about the others?
<Aeyrix> Because they might be interesting.
<Aeyrix> If you have to ask that implementation, you'll probably want the standard implementation.
<Aeyrix> wow
<Aeyrix> if you have to ask that question *
<[k-> lol that's a huge difference
<Aeyrix> I had a moment. :P
roolo has joined #ruby
flughafen_ has joined #ruby
ndrei has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
<maciejczyzewski> [k-: hahaha
zotherstupidguy has joined #ruby
<[k-> pardon?
towski_ has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
lavros has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
lavros has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
chinmay_dd has quit [Remote host closed the connection]
baweaver has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Jackneill has joined #ruby
<shevy> amerian for me it is easy, I only use the main ruby :) ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
chinmay_dd has joined #ruby
<shevy> I also only use one ruby version... in the past I used 1.8 1.9 and then 2.0 at the same time
Jackneill has quit [Max SendQ exceeded]
<amerian> how do you use two versions of ruby at the same time?!
last_staff has joined #ruby
<[k-> version managers
baweaver has quit [Remote host closed the connection]
<jhass> amerian: by using chruby, rvm or rbenv
mcclurmc has joined #ruby
wildroman3 has joined #ruby
last_staff has quit [Client Quit]
<amerian> oh but aren't you still using one version though?
<amerian> isn't only one version running?
zotherstupidguy has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
<[k-> yup
<jhass> amerian: you can start two programs using two different versions in parallel, but you can't use two different versions inside the same process
<[k-> ofc different processes can run different ver--
<maciejczyzewski> amerian: read more about rvm, I think it's the best...
<[k-> you should explore others too
Musashi007 has joined #ruby
balazs has joined #ruby
wildroman3 has quit [Remote host closed the connection]
chris2 has quit [Ping timeout: 246 seconds]
<[k-> look for the one that is best for you
wildroman2 has joined #ruby
CorrosiveOne has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Rollabunna has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
balazs has quit [Ping timeout: 256 seconds]
vickleton has joined #ruby
adude has joined #ruby
<shevy> amerian you can use appdirs such as in gobolinux, for all programs, thus have as many versions as you want to from any given program; some program may be interdependent though, such as when you will try to use different glibc or kernel versions or gcc together; but for ruby, I never had any problem with such an approach
zotherstupidguy has quit [Ping timeout: 255 seconds]
eGGsha has joined #ruby
<amerian> wow shevy thanks for letting me knpo
<amerian> i didn't know that was possible
mcclurmc has joined #ruby
zotherstupidguy has joined #ruby
DLSteve has joined #ruby
<jhass> and you probably shouldn't run your own version of it if it wasn't obvious to you
<amerian> but as a general rule don't we always want the latest version?
jenrzzz has quit [Ping timeout: 252 seconds]
<jhass> when starting new stuff, yes
shinnya has joined #ruby
<jhass> but then that version gets old, and who payed you to write something in it won't pay you for porting it to the new version but still pays you for doing fixes to it.. ;)
<sevenseacat> we dont always get to use the latest version though - sometimes we maintain old code that uses older versions
amerian has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
OrbitalKitten has joined #ruby
<shevy> python 2!
tvw has quit []
tvw has joined #ruby
ledestin has joined #ruby
<[k-> .7!
hiall has quit [Quit: hiall]
sandstrom has joined #ruby
wildroman2 has joined #ruby
<[k-> that was exactly 70 seconds later on my end :)
<[k-> I just noticed
<shevy> you are weird
<[k-> Ox0dea's the benchmark ;)
k3asd` has joined #ruby
mujou has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<[k-> hint, I said .7 70s later after shevy said python 2
fantazo has joined #ruby
hiall has joined #ruby
hiall has quit [Client Quit]
<shevy> you are very weird
<shevy> but don't worry
hiall has joined #ruby
simplyianm has joined #ruby
<shevy> Ox0dea is even stranger than both of us together!
t0rrieri has joined #ruby
User458764 has joined #ruby
<[k-> I didn't do it on purpose!
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
<shevy> sometimes our brain gets the better of us and let's us do strange things
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
unshadow_ has quit [Quit: leaving]
<jhass> what do you mean sometimes?
<[k-> :0
simplyianm has quit [Ping timeout: 256 seconds]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
nwhirschfeld has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
yfeldblum has quit [Ping timeout: 248 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t0rrieri has quit [Ping timeout: 250 seconds]
hiall has joined #ruby
hiall has quit [Client Quit]
krz has quit [Read error: Connection reset by peer]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
lessless has joined #ruby
hiall has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hiall has joined #ruby
<shevy> swift has:
hiall has quit [Client Quit]
<shevy> atexit({ print("Goodbye!") })
<shevy> they steal from ruby!
hiall has joined #ruby
hiall has quit [Client Quit]
<[k-> we steal from smalltalk!
hiall has joined #ruby
flughafen_ has quit [Ping timeout: 256 seconds]
<agent_white> Steal?
hiall has quit [Client Quit]
nwhirschfeld has quit [Quit: No Ping reply in 210 seconds.]
krz has joined #ruby
hiall has joined #ruby
<[k-> indeed
blackmes1 has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
<agent_white> I never knew it anything belonged to a language!
* agent_white crosses out "it"
hiall has quit [Client Quit]
* [k- paints away it
mcclurmc has quit [Remote host closed the connection]
hiall has joined #ruby
* agent_white hands [k- roller-brush
chris2 has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
nwhirschfeld has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
neanderslob has quit [Remote host closed the connection]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
mcclurmc has joined #ruby
<[k-> the name belongs to a language! *runs*
hiall has quit [Client Quit]
hiall has joined #ruby
nwhirschfeld has quit [Client Quit]
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
nwhirschfeld has joined #ruby
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
Musashi007 has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
stamina has joined #ruby
ItSANgo has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
mcclurmc has quit [Remote host closed the connection]
greenbagels has quit [Read error: Connection reset by peer]
hiall has quit [Client Quit]
hiall has joined #ruby
RegulationD has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
hiall has quit [Client Quit]
hiall has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
hiall has quit [Client Quit]
hiall has joined #ruby
PaulePanter has joined #ruby
hiall has quit [Client Quit]
sebity has joined #ruby
hiall has joined #ruby
hiall has quit [Client Quit]
bkxd has quit [Ping timeout: 256 seconds]
wildroman3 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> o/
wildroman2 has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
rubie has joined #ruby
iamninja has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 248 seconds]
rubie has quit [Ping timeout: 265 seconds]
krz has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
davedev24_ has joined #ruby
spider-mario has joined #ruby
roolo has quit [Ping timeout: 276 seconds]
eGGsha has joined #ruby
scripore has joined #ruby
m8 has joined #ruby
platzhirsch has joined #ruby
Pupeno has joined #ruby
bkxd has joined #ruby
roolo has joined #ruby
mikecmpbll has joined #ruby
krz has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
GitGud has quit [Ping timeout: 276 seconds]
vdamewood has quit [Quit: Life beckons.]
fantasticsid has joined #ruby
dorei has joined #ruby
t0rrieri has joined #ruby
vasilakisfil has joined #ruby
senayar has joined #ruby
Ropeney has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
t0rrieri has quit [Ping timeout: 246 seconds]
ItSANgo has quit [Quit: Leaving...]
vickleton has quit [Ping timeout: 246 seconds]
cb_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
zotherstupidguy has joined #ruby
bigmac__ has quit [Ping timeout: 264 seconds]
bigmac__ has joined #ruby
wildroman2 has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
ItSANgo has joined #ruby
wildroman3 has quit [Ping timeout: 246 seconds]
chinmay_dd has quit []
Muhannad has joined #ruby
fantasti` has joined #ruby
fantasticsid has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
air_ has joined #ruby
<shevy> [k- are you a cheerleader \o
_blizzy_ has quit [Ping timeout: 248 seconds]
avalon has left #ruby [#ruby]
<air_> solve it
<air_> how can it be fixed
senayar has joined #ruby
<shevy> you are inconsistent there air_
ashleyis has joined #ruby
<shevy> near the top you use:
<air_> means
<shevy> MallocMessageBuilder.new
<shevy> lateron you use:
<shevy> MallocMessageBuilder("data.bin")
<shevy> do you see the syntax difference there? in the first case you invoke the method .new
<shevy> in the second, what method do you use?
chussenot has quit [Quit: chussenot]
<air_> print addressbook
<shevy> yes, outtside
allomov has joined #ruby
<shevy> but just that part:
<shevy> MallocMessageBuilder("data.bin")
<shevy> do you have a method: def MallocMessageBuilder
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
<air_> no i have to define each method i think
jph98 has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
jph98 has left #ruby [#ruby]
<air_> i didn't got you?
Musashi007 has quit [Quit: Musashi007]
wildroman2 has quit [Ping timeout: 244 seconds]
zotherstupidguy has joined #ruby
<shevy> ok again
<shevy> you have this error:
<shevy> myapp.rb:12: undefined method `MallocMessageBuilder' for main:Object (NoMethodError)
<shevy> you try to invoke a method that does not exist
<shevy> so that is your error
<shevy> the error is that here: MallocMessageBuilder("data.bin")
<shevy> that part is wrong
<air_> in place of data.bin i have to define it there
<shevy> what
chinmay_dd has joined #ruby
<shevy> that line is simply wrong, no matter what you pass into (); it does not exist
<air_> let me tell you i have to copy the functionality of .cpp file and convert it into .rb file via ffi
balazs has joined #ruby
<shevy> but you have the error in your ruby code, not in the cpp file
bubbys has quit [Ping timeout: 272 seconds]
<air_> ya
<air_> how to write the functionality of method in ruby
<shevy> I don't understand you
<shevy> you defined a method in that .rb file a few lines before
Xeago has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fantasti` has quit [Read error: Connection reset by peer]
serivich has joined #ruby
bubbys has joined #ruby
fantasti` has joined #ruby
chussenot has joined #ruby
eGGsha has joined #ruby
<[k-> k.cheerleader? #=> false
balazs has quit [Ping timeout: 272 seconds]
k3asd` has quit [Ping timeout: 246 seconds]
<air_> ?
Xeago has quit [Ping timeout: 276 seconds]
<[k-> poor shevy
* [k- makes a run for it
k3asd` has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
ht__ has joined #ruby
Oka has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
<[k-> air_ do you know Ruby?
chussenot has quit [Quit: chussenot]
<air_> learning
krz has quit [Read error: Connection reset by peer]
KnownSyntax has quit []
SCHAAP137 has joined #ruby
datanoise has joined #ruby
chussenot has joined #ruby
<[k-> why do you need the cpp?
<air_> someone has given me the task to convert all the fuctionality cpp file in .rb
<[k-> did you ask them why?
<air_> by seeing which functionality is there then i call them via ffi
Ox0dea has joined #ruby
skade has joined #ruby
<[k-> did you ask them if you should reimplement it or generate a binding?
<air_> it just like something protobuff
<[k-> did they tell you to do this to learn Ruby?
<air_> ffi is itself a type of binding i think\
datanoise has quit [Ping timeout: 244 seconds]
<air_> ya
<air_> so m doing
skade has quit [Client Quit]
chinmay_dd has quit [Remote host closed the connection]
<[k-> is it to learn Ruby or to learn ffi
<air_> both
CloCkWeRX has quit [Quit: Leaving.]
<[k-> tell you what, air_, why don't you learn some Ruby first, then, FFI will be much easier for you
<air_> ok
chinmay_dd has joined #ruby
<[k-> you can start by implementing the cpp in ruby
<[k-> without the FFI
<[k-> just learn how Ruby works
zotherstupidguy has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
<air_> ok
michael_mbp has quit [Excess Flood]
chinmay__ has joined #ruby
<[k-> good. you can translate the cpp line by line into Ruby code if you like
<Ox0dea> Heresy!
michael_mbp has joined #ruby
<[k-> wat
chinmay__ has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> That would be a much less enriching learning experience.
lessless has joined #ruby
<[k-> that would be his foundation
<Ox0dea> It'd be a shitty one.
<[k-> why don't you guide him then >.>
<[k-> I got to go in 4 minutes
<[k-> just drinking yakult right now
sandstrom has quit [Quit: My computer has gone to sleep.]
Ox0dea has quit [Read error: No route to host]
chinmay_dd has quit [Ping timeout: 256 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has quit [Ping timeout: 246 seconds]
stardiviner has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
t0rrieri has joined #ruby
<[k-> you can volunteer to read his cpp code and his ruby code and make some suggestions ^^
<shevy> he must learn ruby first
krz has joined #ruby
dented42 has joined #ruby
<[k-> ...and I'll be taking my leave now
dented42 has quit [Remote host closed the connection]
sdothum has joined #ruby
<shevy> [k- no
Alina-malina has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
[k- has quit [Ping timeout: 272 seconds]
eGGsha has joined #ruby
sandstrom has joined #ruby
t0rrieri has quit [Ping timeout: 246 seconds]
serivich has joined #ruby
Rickmasta has joined #ruby
dented42 has joined #ruby
tvw has quit [Remote host closed the connection]
Yiota has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
bricker has joined #ruby
Rollabunna has quit [Remote host closed the connection]
pontiki has joined #ruby
<pontiki> hi
<apeiros> o/ pontiki
<pontiki> hello apeiros o/
Pupeno has quit [Ping timeout: 246 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
bricker has quit [Ping timeout: 248 seconds]
tubuliferous_ has joined #ruby
allomov has quit [Remote host closed the connection]
bronson has joined #ruby
fantasti` has quit [Ping timeout: 252 seconds]
allomov has joined #ruby
nfk has joined #ruby
FernandoBasso has joined #ruby
OrbitalKitten has joined #ruby
air_ has quit [Ping timeout: 246 seconds]
tubuliferous_ has quit [Ping timeout: 246 seconds]
stamina has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 272 seconds]
<shevy> is this the real pontiki or the slim-shady pontiki
<pontiki> how can someone provide shade if they're so slim?
chris2 has quit [Ping timeout: 248 seconds]
adude has quit [Ping timeout: 246 seconds]
giuseppesolinas has joined #ruby
nfk has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
fabrice31 has joined #ruby
wildroman2 has joined #ruby
ryba has joined #ruby
benlieb_ has quit [Quit: benlieb_]
<matti> apeiros: :)
platzhirsch has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
nfk has joined #ruby
Bounga has quit [Ping timeout: 248 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has joined #ruby
chris2 has joined #ruby
datanoise has joined #ruby
michael_mbp has quit [Excess Flood]
<apeiros> hi matti
michael_mbp has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
lxsameer has quit [Quit: Leaving]
Rollabunna has joined #ruby
_blizzy_ has joined #ruby
wald0 has joined #ruby
agent_white has quit [Quit: nigh;t]
serivich has quit [Ping timeout: 265 seconds]
krz has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 248 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
chussenot has joined #ruby
ItSANgo has quit [Ping timeout: 255 seconds]
mdw has joined #ruby
t0rrieri has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ZoanthusR has joined #ruby
OrbitalKitten has joined #ruby
marr has joined #ruby
<ZoanthusR> anyone still running into the ruby 2.2.2/sprockets file_store issue after patching to sprockets 2.12.4? - sprockets-2.12.4/lib/sprockets/cache/file_store.rb:27: [BUG] object allocation during garbage collection phase ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
chussenot has quit [Quit: chussenot]
krz has joined #ruby
senayar has quit [Remote host closed the connection]
millerti has joined #ruby
ndrei has joined #ruby
t0rrieri has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
bf4 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
wildroman2 has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
air_ has joined #ruby
omerh has joined #ruby
bf4 has quit [Ping timeout: 265 seconds]
omerh has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
RegulationD has joined #ruby
sebity has left #ruby [#ruby]
cb_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<havenwood> ZoanthusR: You might have better sprockets luck in the #RubyOnRails channel.
FernandoBasso has quit [Ping timeout: 252 seconds]
<sevenseacat> oh they askedthere too.
nateberkopec has joined #ruby
serivich has joined #ruby
<pontiki> o/ sevenseacat
ndrei has joined #ruby
<sevenseacat> evening
RegulationD has quit [Ping timeout: 248 seconds]
<havenwood> aha
amerian has joined #ruby
giuseppesolinas has joined #ruby
vasilakisfil_ has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
balazs has joined #ruby
pontiki has quit [Quit: <poit>]
endash has joined #ruby
giuseppesolinas has quit [Client Quit]
Rollabunna has joined #ruby
Zimsky_ has quit [Ping timeout: 272 seconds]
maciejczyzewski has left #ruby [#ruby]
Zimsky_ has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
claw has quit [Quit: claw]
lessless has joined #ruby
<ZoanthusR> havenwood: yes, seems specific to file_store.rb line 27 in sprockets, just wondering if someone here had it linked back to a specific spot in MRI.
claw has joined #ruby
giuseppesolinas has joined #ruby
<ZoanthusR> I am going to try rubinius and 2.1 then see if i can track it down in MRI 2.2
<ZoanthusR> thx havenwood
bkxd has quit [Ping timeout: 272 seconds]
<apeiros> ?crosspost ZoanthusR
<ruboto> ZoanthusR, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
FernandoBasso has joined #ruby
<ZoanthusR> sry apeiros was not getting much traction on ROR channel, wont happen again
<_blizzy_> we... are the ruby gems.
rubie has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
unshadow_ has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
<_blizzy_> I swear to god if team is still returning []
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
lxsameer has joined #ruby
<_blizzy_> when in doubt, byebug
NeverDie has joined #ruby
phutchins has joined #ruby
pengin has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
vasilakisfil_ has quit [Ping timeout: 256 seconds]
Jeff__ has joined #ruby
<Jeff__> how do i install ruby via command line on windows?
<_blizzy_> I don't think there is a way to do that
zotherstupidguy has joined #ruby
konsolebox has joined #ruby
<bougyman> install linux in a virtualbox
rbennacer has joined #ruby
asmodlol has joined #ruby
<Jeff__> ohh, actually i need gem
<_blizzy_> or just use ruby installer, which doesn't need a cli
<_blizzy_> you can install gems via cli
<_blizzy_> on windows
<Jeff__> that would be nice
d1ngell has joined #ruby
<Jeff__> i'm trying to do a fix for https://tickets.puppetlabs.com/browse/FACT-352
<Jeff__> so, i need gem to install win-32
Pupeno has joined #ruby
endash has quit [Quit: endash]
<Jeff__> i went to ~/.vagrant.d/gems/gems, and did not find win-32: i found ffi, facter-1.7.6, hiera-1.3.4, etc. but no win-32
<Jeff__> is that directory the correct place to download, and install win-32?
<Jeff__> can i download the gem program via command line?
<Jeff__> or do i need to install ruby
<Jeff__> can i wget, and build ruby at least
pengin has quit [Remote host closed the connection]
air_ has quit [Ping timeout: 246 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
araujo__ has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
t0rrieri has joined #ruby
adude has joined #ruby
adude has quit [Client Quit]
ryba has quit [Ping timeout: 264 seconds]
<Jeff__> nvm i dont think vagrant has scope to fix this
<Jeff__> dang
tubuliferous_ has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
<Jeff__> actually, it might haha
bf4 has joined #ruby
senayar has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
al2o3-cr has joined #ruby
t0rrieri has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has joined #ruby
Yiota has joined #ruby
Yiota has quit [Client Quit]
senayar has quit [Ping timeout: 246 seconds]
bf4 has quit [Ping timeout: 248 seconds]
amerian has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
al2o3-cr has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
vyorkin has joined #ruby
e1nh4nd3r has joined #ruby
konsolebox has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
senayar has joined #ruby
ashleyis has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
sf has joined #ruby
symm- has joined #ruby
<shevy> damn Jeff__ you are one happy man
<Jeff__> not yet
failshell has quit [Read error: Connection reset by peer]
failshel_ has joined #ruby
<Jeff__> currently trying to find out if https://github.com/mhahn/vagrant-librarian-puppet-plugin/issues/5#issuecomment-26333850 has been resolved, and how
chipotle has joined #ruby
rbennacer has quit [Remote host closed the connection]
devdazed has joined #ruby
tsvenson has quit [Ping timeout: 255 seconds]
kraljev11 has joined #ruby
kraljev11 is now known as kraljev11_
flughafen_ has joined #ruby
dgutierrez1287 has joined #ruby
<_blizzy_> so, for some reason, it puts out the right info the first time (@team, check logs file), however, once it gets to 'switch' in the switch/case, it returns to [] https://gist.github.com/NotBlizzard/f5b91f9d720873129ee6
rbennacer has joined #ruby
failshel_ is now known as failshell
scripore has quit [Quit: This computer has gone to sleep]
dented42 has joined #ruby
dgutierr_ has joined #ruby
ashleyis has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
dgutier__ has joined #ruby
dgutierrez1287 has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
dgutierr_ has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
arutemu has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
weemsledeux has joined #ruby
nfk has quit [Quit: yawn]
<apeiros> _blizzy_: from the code you gisted, it's not possible to say what's happening. maybe you're creating a new Battle instance?
sankaber has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
rbennacer has joined #ruby
chussenot has joined #ruby
rbennacer has quit [Remote host closed the connection]
Zamyatin has joined #ruby
ruv has joined #ruby
* sevenseacat gives apeiros the crystal ball of awesome
* apeiros blinks
rbennacer has joined #ruby
<shevy> that cat is a generous one
<sevenseacat> youre going to need it. along with the hat of patience.
<apeiros> haha
<apeiros> I have a wizards hat, maybe that helps with patience too… lets find out! :D
<sevenseacat> :D
<Jeff__> do you have a puppet hat?
ashleyis has quit [Ping timeout: 252 seconds]
MrJiks has left #ruby ["WeeChat 1.1.1"]
jas02 has quit [Quit: jas02]
<apeiros> no, I'm not Geppetto
<Jeff__> no strings attached?
scripore has joined #ruby
kraljev11 has joined #ruby
<adaedra> there are some, but they miss the final 0, so they end nowhere
kraljev11_ has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
claw has quit [Ping timeout: 272 seconds]
claw has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
Indian has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.2]
[k- has joined #ruby
<_blizzy_> apeiros, yes, I am.
* sevenseacat gets popcorn
startupality has joined #ruby
al2o3-cr has joined #ruby
<_blizzy_> nevermind.
* sevenseacat puts popcorn away.
<_blizzy_> >.>
* apeiros takes sevenseacat's popcorn
<apeiros> if you don't want it…
wasamasa is now known as {{{
<[k-> can I have some too :>
<shevy> it's made from mice
{{{ is now known as wasamasa
failshell has quit [Read error: Connection reset by peer]
<[k-> eww
* apeiros gives [k- some of sevenseacat's popcorn
sandstrom has quit [Quit: My computer has gone to sleep.]
<[k-> :3
ashleyis has joined #ruby
* adaedra takes some popcorn from apeiros's sevenseacat's popcorn
Yiota has joined #ruby
failshell has joined #ruby
dgutier__ has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
senayar has quit [Remote host closed the connection]
<shevy> is this called sharing
<[k-> which action were you referring to?
ryba has joined #ruby
ashleyis has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<shevy> the passing of popcorn
<[k-> such an action does indeed qualify as sharing in this context
chussenot has quit [Quit: chussenot]
bf4 has joined #ruby
darkf has quit [Quit: Leaving]
eGGsha is now known as eGGshke
vyorkin has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 248 seconds]
failshell has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
arup_r has joined #ruby
eGGshke is now known as eGGsha
failshell has joined #ruby
<arup_r> Guys need one little help
<arup_r> If you read from http://nginx.org/en/docs/http/configuring_https_servers.html the section *An SSL certificate with several names*
iamninja has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Yzguy has joined #ruby
<arup_r> you will find they are saying some wild card matching : for example, *.example.org.
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> A wildcard certificate secures all subdomains of the specified domain, but only on one level
micmus has quit [Quit: Leaving]
<sevenseacat> seems unrelated to ruby
Yzguy has quit [Client Quit]
<arup_r> sevenseacat: can you help me to finish my question
bf4 has quit [Ping timeout: 264 seconds]
Yzguy has joined #ruby
<sevenseacat> err, wat
Yiota has joined #ruby
<arup_r> and ruby or rails whatever we do host in server.. right ?
Yzguy has quit [Client Quit]
<arup_r> so what's wrong if I ask small doubt
<sevenseacat> ruby, sometimes.
<sevenseacat> not often.
<adaedra> SSL certificates are usually handled by front-facing server like nginx
<arup_r> Yes
<arup_r> I just need a little help
<adaedra> And wildcard certificates are expensive
<arup_r> how to put wildcard so that it matches
failshell has quit [Remote host closed the connection]
bronson has joined #ruby
failshell has joined #ruby
<arup_r> why not able to sent the text... ?
<arup_r> I am not able to send some domain names in this channel..
shoutsid has quit [Ping timeout: 272 seconds]
<arup_r> is there any filter ?
<arup_r> any way this example.org and
ashleyis has joined #ruby
<arup_r> or 'www. example.org'
Ropeney has quit [Ping timeout: 252 seconds]
<jhass> if there's any filter it's on your end
<arup_r> can I write any wildcard ?
<adaedra> arup_r: yes, with alternate names
<arup_r> may be jhass :
<adaedra> i.e., the certificate I have on adaedra.eu works for both adaedra.eu and www.adaedra.eu
Agoldfish has joined #ruby
<arup_r> I put spce to send it there
<adaedra> (you can see such things in certificate details)
<arup_r> yes that is 1 level ... I am asking 2 level
ponga has joined #ruby
<adaedra> But if you want to use real-life certificate, this is something to see with your certificate provider
<jhass> arup_r: you can't have *.*.example.org, only *.example.org or *.foo.example.org
<[k-> chrome says you use weak security SHA-1
<arup_r> can I do it ? I treid .staging.example.com
<adaedra> [k-: me?
<arup_r> ok
<[k-> yes
<adaedra> arup_r: you're generating your own certificates?
<adaedra> [k-: I got A on SSLlabs tests iirc, let me check that
<arup_r> yes,,, and then i signed them by an authority
charliesome has joined #ruby
<arup_r> But I signed it for .example.org
<[k-> weak security configuration***
bronson has quit [Ping timeout: 255 seconds]
<jhass> arup_r: note that you could have one certificate with *.example.org and *.foo.example.org as alternative names, however I think you'll have a hard time finding a CA allowing that
aspiers has quit [Ping timeout: 255 seconds]
<arup_r> for now i want to use it also for sometime staging.example.org
araujo has joined #ruby
araujo has joined #ruby
athos_diddy has joined #ruby
<jhass> [k-: SHA1 is not broken, there are just better alternatives with less doubts about them, that's why browsers start to phase it out
<adaedra> arup_r: it's better to have just alternate names for non wildcard domain. You can have a certificate which covers a.example.org, b.example.org, c.d.example.org and e.example.net in the same, without wildcards.
enebo has joined #ruby
<arup_r> jhass: ok for wildcard matching I need to ask the CA team... to genreate such .crt you mean ?
balazs has joined #ruby
<jhass> that in any case
shoutsid has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
<arup_r> ok
jpfuentes2 has joined #ruby
scripore has joined #ruby
shoutsid has quit [Client Quit]
balazs has quit [Ping timeout: 255 seconds]
failshel_ has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
e1nh4nd3r has left #ruby [#ruby]
skade has joined #ruby
failshel_ has quit [Ping timeout: 272 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> adaedra: and jhass : thanks for the information
<arup_r> this is what the info was needed
<jhass> arup_r: next time head to #ruby-offtopic though
<arup_r> ok.. I didn't know it exist
sf has quit [Ping timeout: 246 seconds]
ashleyis has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
ropeney_ has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
revoohc has joined #ruby
datanoise has joined #ruby
asmodlol has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
MouseTheLuckyDog has joined #ruby
krz has quit [Read error: Connection reset by peer]
Beoran__ has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
blue_deref has joined #ruby
skade has joined #ruby
t0rrieri has joined #ruby
scripore has joined #ruby
roolo has quit [Remote host closed the connection]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
Pupeno has joined #ruby
skade has quit [Client Quit]
Ropeney has quit [Quit: Leaving]
ropeney_ has quit [Quit: Leaving]
Ropeney has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
William|i7 has joined #ruby
rbennacer has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
tflat has joined #ruby
ashleyis has joined #ruby
<William|i7> hey all, just started ruby/sinatra 5 days ago, looking for someone with more experiance to help with code review, https://github.com/Askedio/Sinatra_Decent_Blog - thanks!
Pupeno has quit [Ping timeout: 256 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
perturbation has joined #ruby
aryaching has joined #ruby
<[k-> you don't have to nest it as such if the modules are declared somewhere else
<William|i7> nesting the module?
tubuliferous_ has quit [Ping timeout: 264 seconds]
<[k-> it can be just module Sinatra::SimpleRubyBlock::Routing::CategoryAdmin
<William|i7> oh neat
<[k-> yup, you seem to nest so much
<[k-> that's a lot of spaces :s
<William|i7> was the common example for sinatra
<William|i7> ya it drives me nuts
<William|i7> but not just that example, everyone does it (sinatra) lol
<sevenseacat> really?
<William|i7> my concern is the routing
charliesome has quit [Read error: Connection reset by peer]
Al3ks has joined #ruby
charliesome has joined #ruby
<apeiros> so my library has validators and processors. should the third part be called adapters or adaptors? :)
<[k-> o
rbennacer has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
<apeiros> so 1 vote for adaptor
kobain has joined #ruby
<shevy> adapter
<apeiros> and 1 for adapter
kobain has quit [Max SendQ exceeded]
I has joined #ruby
<shevy> hmm wait
<shevy> cancel my statement
<shevy> I was making it because I assumed that "adaptor" does not exist
kobain has joined #ruby
<shevy> but it exists
<shevy> so adaptors is ok, +1
I is now known as Guest34802
<William|i7> +1
<al2o3-cr> adapter for me
kobain has quit [Max SendQ exceeded]
wildroman2 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
<apeiros> hm, so adaptors 3, adapter 1
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
araujo has quit [Quit: Leaving]
<William|i7> dunno if its right but i didnt have a base module made, so wrote it here, https://github.com/Askedio/Sinatra_Decent_Blog/blob/Decent_Blog/config.ru
<William|i7> what i want to do is put those route functions in another file
<William|i7> but everything i do i fail
Carnage\ has joined #ruby
<William|i7> tried helpers and classes
scripore has quit [Quit: This computer has gone to sleep]
<MouseTheLuckyDog> Is there a way to attach a ruby debugger to a running ruby proccess?
jas02 has joined #ruby
Pupeno has joined #ruby
wildroman2 has joined #ruby
idafyaid has joined #ruby
wildroman2 has quit [Remote host closed the connection]
scripore has joined #ruby
bf4 has joined #ruby
<apeiros> MouseTheLuckyDog: if ruby is compiled with the right symbols, you can attach gdb afaik
<apeiros> and from there you can eval any ruby code
<[k-> william you need to declare the middle modules as modules first
<[k-> so you need to declare it the normal way forst
<William|i7> ok did that then
<[k-> after it is loaded by ruby, you can use the shortcut
<William|i7> how would you split out the functions to another file?
<William|i7> another module or class ?
Pupeno has quit [Ping timeout: 272 seconds]
<[k-> wait wait
Guest34802 has quit [Quit: Leaving]
bf4 has quit [Ping timeout: 252 seconds]
Tempesta has joined #ruby
<William|i7> the lambda i want them in another file, a controller file
<William|i7> so i was guessing another module, app:Controller:Category..
<[k-> you need to require that first
<William|i7> its there
<William|i7> its all working
<[k-> where
<William|i7> config.ru
<[k-> so it works?
<William|i7> yea
<William|i7> its gravey
<William|i7> if thats still a saying
Channel6 has joined #ruby
balazs has joined #ruby
<[k-> gravey?
dgutierrez1287 has joined #ruby
<William|i7> good
<William|i7> so ya was thinking a Controller module
<William|i7> but i couldnt get the Routes module to talk to it
<William|i7> not without some bs so im sure i was doing it wrong
<[k-> sorry I'm not familiar with rails/Sinatra terms
ponga has quit []
<William|i7> well modules are ruby?
<[k-> also I'm not really following the convo
<MouseTheLuckyDog> Ohhh. There is a gem called hijack.
rbennacer has quit [Remote host closed the connection]
nveselinov has joined #ruby
Bounga has joined #ruby
iamninja has joined #ruby
TheHodge has joined #ruby
chussenot has quit [Quit: chussenot]
Bounga has quit [Client Quit]
<apeiros> oh wow, how did I not know? I guess I assumed because of `initialize` that methods inherited visibility. but they don't :-O
balazs has quit [Remote host closed the connection]
chussenot has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
<[k-> william so you want the route functions in another file?
scripore has quit [Quit: This computer has gone to sleep]
<[k-> define them as constants
<[k-> then you can access them
Sembei has joined #ruby
lkba has joined #ruby
rubie has joined #ruby
Pisuke has quit [Ping timeout: 264 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Kisten has joined #ruby
CustosLimen has quit [Ping timeout: 255 seconds]
rubie has quit [Ping timeout: 265 seconds]
Voker57 has joined #ruby
lxsameer has quit [Quit: Leaving]
tflat has quit []
tflat has joined #ruby
Carnage\ has quit []
sandstrom has joined #ruby
swgillespie has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Kisten has quit []
SCHAAP137 has joined #ruby
finisherr has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
sarkyniin has joined #ruby
guba has joined #ruby
<guba> ns. Nothing on during. Most people are runna ma naes.
<guba> It's a football players.
<guba> Juni Joans Football game! Boyer game, it's a football game! Brucesht boyer game.
<guba> Nothing but the world cares about a group of the football is the worst sport events on television. College football game, it's no lie it's a football game! It's a football. No one in most people are runna ma naes. It is on television.
<guba> bucklegusk coyerst apprit's as no lie of that say ever my evis a groyer!
<guba> The worst sport ever moyer coyer! Brucesht, boyer royer royer football game, so they go bored, makes me say oh my eyes it up, we'll game. I'm swearing on television is college football game! Raa Lynx game, it's a bratty asshole. Rum-dum-dum-football. No!
<guba> Deep in most people are runna ma naes.
<guba> Football game. Most as me time but football makes me say aftere. Cornbucklers ram agains, and ritter boyer royer the Jaguars. Most of the on is on teams than rears, uh, and othing on teams television. I'm swearing but thing Saturday oh moyer game. No on during but football.
dorei has quit [Read error: Connection reset by peer]
<guba> Deept the oh football paing of a my even thing oh ong ot moyer food. Excer cornbucept proyers.
<guba> Notball. It wat wores, a Lown thision it's Most one na football. Excesht! Footbal game, afteler carege whand re telege it's th my and youtball ing. Colts, Cort about abor moyer! It so on drything whaturd, aboyers, but age th much otball go brucks a grout a foothe hens, aboys, my gam spors, ter!
<guba> me! Raa Lynx game.
<apeiros> !mute guba
dorei has joined #ruby
<apeiros> *sob*, idiots awake again…
guba has left #ruby [#ruby]
aperosguba has joined #ruby
<aperosguba> ! Brucesht! The worst sport ever moyer boyer foot ball! Brucesht, boyer. notch, and that's a fucker game, it's a soccer game, so boyer coyer! Boyer football! Boyer royer! Boyer made. No!
Channel6 has quit [Quit: Leaving]
<aperosguba> The world cares about football. After the worse thing but as watching on during on during. Most people are runna ma naes.
<aperosguba> It's a football. Nothing prime but the Jaguars, Cornfuckers, Cornbuck fuck cornhuskers, Cowboys, Ravens, Cornhuskers, so they go brucesht boyer football game it's a football game, it's no lie it's a futball game, so the Jaguars, so boyer football game. It's a soccer game, it's a futball and rittered. Except when I cover moyer! Brucesht boyer royer moyer! Boyer!
<aperosguba> Stop lawyyer made. Lynx game, so bored, makes me say oh my eyes it sucks ten rears.
<apeiros> !mute aperosguba
<aperosguba> Juni Jonn Joans Football game. It's a soccer game, so the Nebraska Cornhusk. Fuck cornhuskers, Cornhusk. Husk, cornhusk. Husk, cornhuskers, so the worst sport events on during. Most people are runna ma naes. It is college football is the Jaguars, Cornhuskers, Cornbucklers. Rum-dum-dum-dum-football. Nothing on television is the Jaguars, so the worse they shown on during worst sport everything on
<apeiros> !kick aperosguba
aperosguba was kicked from #ruby by ruboto [aperosguba]
aperosguba has joined #ruby
aperosguba has left #ruby [#ruby]
<apeiros> !ban aperosguba
gubaaa has joined #ruby
gubaaa was kicked from #ruby by apeiros [gubaaa]
<apeiros> nope.
<apeiros> idiots indeed.
<apeiros> mental age of a 5y old…
mase-chatter has joined #ruby
<adaedra> I can has his free time? Seems he doesn't need it.
vasilakisfil_ has joined #ruby
chussenot has quit [Quit: chussenot]
<[k-> hehehehehehehehe
aryaching has quit [Ping timeout: 256 seconds]
<[k-> aperosguba
<apeiros> yeah, they even fail at spelling
chussenot has joined #ruby
<adaedra> apéro?
<apeiros> adaedra: yes please
<adaedra> :D
konsolebox has quit [Remote host closed the connection]
BrianBoyko has joined #ruby
apt-get_ has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
perturbation has quit [Remote host closed the connection]
Miron has joined #ruby
<BrianBoyko> Howdy guys. I'm having a little bit of trouble here. I want to run an app that polls the database and (through Sinatra) creates a Json file with the results. But I can't quite figure out where I'm going wrong. Here's the gist: https://gist.github.com/brianboyko/16fb5b51e152f650e0cc
<apeiros> BrianBoyko: it helps if you describe what makes you think that you're going wrong.
poguez_ has joined #ruby
<BrianBoyko> It's giving me "null."
davedev24_ has quit [Ping timeout: 248 seconds]
davedev24_ has joined #ruby
<BrianBoyko> Now, I *can* get it to update any time someone makes a charge - but it reverts to null after a few minutes without someone making a charge.
Papierkorb has joined #ruby
<BrianBoyko> So that's another program entirely.
<apeiros> did you try to run `conn.exec("SELECT SUM(amount) AS total FROM donors").getvalue( 0, 0 )` in pry/irb?
<BrianBoyko> What's pry/irb?
Marsupermammal has joined #ruby
<apeiros> ?irb
<ruboto> I don't know anything about irb
<apeiros> gah
<apeiros> gotta add that
<apeiros> irb is "interactive ruby", you can run ruby code and see results immediately. it's useful for testing code.
<apeiros> and pry:
<apeiros> ?pry BrianBoyko
<ruboto> BrianBoyko, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<apeiros> irb ships with ruby.
<apeiros> pry is a gem.
<BrianBoyko> Ahhh...
<BrianBoyko> I don't have access to pry, but I ran IRB and I've aded the output to the gist
<apeiros> uh, you're now running sinatra in your irb. that's not the idea.
<apeiros> only run the code to connect to your db and run your query.
mesamoo has quit [Quit: Konversation terminated!]
<apeiros> I'd exit irb, restart it and then do that…
cb__ has joined #ruby
cb__ has joined #ruby
cb__ has quit [Remote host closed the connection]
cb__ has joined #ruby
<BrianBoyko> ~ $ irb conn.exec("SELECT SUM(amount) AS total FROM donors").getvalue( 0, 0 ) bash: syntax error near unexpected token `('
<apeiros> errrrr…
<apeiros> start irb
<apeiros> *then* connect to your db
<apeiros> *then* run the query
<apeiros> irb is not magic.
kirun has joined #ruby
<BrianBoyko> ?magic
<ruboto> I don't know anything about magic
<BrianBoyko> 0, 0 )in):001:0> conn.exec("SELECT SUM(amount) AS total FROM donors").getvalue(
<BrianBoyko> NameError: undefined local variable or method `conn' for main:Object
<BrianBoyko> from (irb):1
<BrianBoyko> from /app/bin/irb:15:in `<main>'
<apeiros> !fact add magic any sufficiently analyzed magic is indistinguishable from science!
<ruboto> apeiros, I will remember that magic is any sufficiently analyzed magic is indistinguishable from science!
<apeiros> BrianBoyko: from where do you think irb should know about `conn`?
<apeiros> as said, irb is not magic.
<BrianBoyko> require 'pg'?
workmad3 has quit [Ping timeout: 256 seconds]
<apeiros> it can't magically infer from an lvar name, that it should connect to a database using a specific username, password, host etc.
<apeiros> BrianBoyko: you have all the code you need in front of you. you even gisted it.
bosma has joined #ruby
<BrianBoyko> Ah, okay, apeiros - when I run conn.exec (after adding require pg and all the code) I get "6500" which is the correct number.
Exuma has joined #ruby
arup_r has joined #ruby
<BrianBoyko> So, up to line 21, I seem to be doing okay.
<apeiros> BrianBoyko: ok, the question you have to solve is when and why getvalue(0,0) would return nil
<apeiros> as that's what's apparently happening
erts has joined #ruby
<BrianBoyko> sorry, not nil.
<BrianBoyko> Null.
<MouseTheLuckyDog> I'm trying to use something called hijack to debug some running code. But I'm getting lost in some of the docs, https://github.com/ileitch/hijack. I'm not sure whether action controller is a part of Ruby or a part of the code that is being debugged. Or how that l;ittle snippet works.
<BrianBoyko> {"money":null,"donors":null}
Exuma has quit [Client Quit]
<apeiros> BrianBoyko: in json it's null
<BrianBoyko> Well, it's not returning null.
<apeiros> BrianBoyko: ruby does not have null
<BrianBoyko> or nil.
<BrianBoyko> It's returning 6500.
<apeiros> and ruby's nil is translated to null in the .to_json
fgo has quit [Ping timeout: 256 seconds]
<apeiros> hence: your getvalue(0, 0) is returning nil.
zotherstupidguy has quit [Quit: WeeChat 1.2]
NeverDie has joined #ruby
<BrianBoyko> Here's the thing - if I were to add a third variable, say :test => 1 - to that json, it wouldn't update.
pontiki has joined #ruby
<BrianBoyko> The problem is not that it's outputting the wrong thing. It's that it's not outputting anything.
<MouseTheLuckyDog> Sorry s/action controller/ActionController/
ndrei has quit [Ping timeout: 272 seconds]
<apeiros> BrianBoyko: so you're probably looking at the wrong code
<apeiros> BrianBoyko: and/or you didn't properly deploy the new code
<BrianBoyko> Possibly.
<BrianBoyko> ...
<BrianBoyko> ?procfile
<ruboto> I don't know anything about procfile
<apeiros> no. not possibly. if adding :test => 1 does not change your output, it's certainly.
giuseppesolinas has joined #ruby
zenguy_pc2 has joined #ruby
<BrianBoyko> Maybe I've screwed up my procfile.
baweaver has joined #ruby
d1ngell has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 252 seconds]
chinmay_dd has quit [Remote host closed the connection]
<BrianBoyko> Hmm... Let me think about this.
workmad3 has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
soulcake has joined #ruby
araujo has joined #ruby
finisherr has quit [Quit: finisherr]
lkba_ has joined #ruby
<BrianBoyko> oh, I think I got it.
krz has joined #ruby
<BrianBoyko> \I haven't set cors_domain
datanoise has quit [Ping timeout: 272 seconds]
rdema has quit [Ping timeout: 252 seconds]
rdema has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
_blizzy_ has joined #ruby
<[k-> this is a bit ugly imo
Sembei has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
jas02_ has joined #ruby
<[k-> you could do module blah; end
<[k-> that makes it cleaner, imo
jas02 has quit [Ping timeout: 276 seconds]
jas02_ is now known as jas02
whiteline has joined #ruby
tubuliferous_ has joined #ruby
s2013 has joined #ruby
[H]unt3r has joined #ruby
bf4 has joined #ruby
wald0 has quit [Quit: Lost terminal]
<sphex> hey. is it reasonable to attempt to use continuations or fibers with asynchronous I/O frameworks (say like EventMachine)?
tubuliferous_ has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
<sphex> use them to make the IO appear synchronous to user code, that is
<yorickpeterse> EM is hell
bf4 has quit [Ping timeout: 255 seconds]
<[k-> I didn't touch EM
<[k-> I just wrote my own loop
<[k-> and dispatched my own events
<[k-> ...
<yorickpeterse> [k-: how's that square wheel of yours?
<[k-> you can use the Observer pattern tho
<yorickpeterse> sphex: what do you need async IO/evented programming for?
<[k-> yorickpeterse unfortunately, I can't roll with those
<[k-> I'm so bland
vyorkin has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
havenwood has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
<sphex> [k-: events callbacks can get really complicated pretty fast. I've had enough of them for a lifetime. continuations and "soft threads" were thought up in the 80s to solve these problems efficiently. I'f really like to get to use them now. :/
jas02 has left #ruby [#ruby]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<yorickpeterse> If you must EM, with all its warts, is the only really stable solution I know of atm
ilr has joined #ruby
<yorickpeterse> there's also Celluloid
<yorickpeterse> also bbl, groceries (the horror of social interactions, brrrr)
<sphex> yorickpeterse: ok, thanks for the link, gonna check this out
<sphex> I don't insist on EM, it's just one of the async IO framework I noticied a few time. I was just wondering if there's any such framework that is continuation/fiber-friendly.
konsolebox has joined #ruby
Sembei has joined #ruby
<ilr> .
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
<shevy> hey
<shevy> careful with the '.', one day we may run out of them ilr
<[k->
<shevy> what is that
<shevy> I can not even see it
<[k-> oh noes we just did
amclain has joined #ruby
<shevy> ah I see
<[k-> it was meant to be a period
hardye has joined #ruby
<shevy> yeah
<shevy> now our sentences will be period-less
<pontiki> but will they be timely?
<Jeff__> how do i build dependency of a gem module?
<[k-> haha
claw has quit [Ping timeout: 246 seconds]
<[k-> you can't request for timely messages on irc
<pontiki> i don't think you can request for period messages, either
Xiti has joined #ruby
<pontiki> "please respond in the tone of the later Ottoman republic"
<[k-> lel
[H]unt3r has quit [Quit: Leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> Jeff__ you just specify the dependencies in your .gemspec file
<Jeff__> can i do it via commandline
<shevy> for instance: s.add_dependency 'rake', '>= 1.0.6'
revoohc has quit [Quit: revoohc]
<shevy> these are hardcoded and I don't think you can bypass them, but I am not 100% sure
<Jeff__> otherwise i may do `sudo apt-get build-dep [package']` bc i'm using puppet/puppet-librarian
<shevy> I think debian maintains their own infrastructure altogether
<Jeff__> ah
<shevy> otherwise you would not need apt-get
<Jeff__> apt-get has the package, but usually gem is newer
<shevy> it is no big deal though, you can always manually install a .gem file; it's just an archive anyway
<shevy> yeah
<shevy> debian is concerned about making their internal-cycle with dependencies work, at the cost of slower upgrades to the most-recent variant
greedo has quit [Ping timeout: 255 seconds]
hardye has left #ruby ["Leaving"]
ilr has left #ruby ["Leaving"]
blackmes1 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
zenguy_pc2 has quit [Ping timeout: 244 seconds]
[H]unt3r has joined #ruby
finisherr has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
patrickanth0ny has quit [Remote host closed the connection]
<BrianBoyko> Okay. I'm stuck. Very stuck.
mase-chatter has quit [Remote host closed the connection]
blackmes1 has quit [Quit: WeeChat 1.2]
<mozzarella> !unstuck
<[k-> Dangerous operation: unstuck
<[k-> Operation aborted
pwnz0r has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<BrianBoyko> Somehow, I've gotten it so that when I run my payment processor, app.rb (on Heroku), it correctly logs files to a postgresql database. Then it queries that postgresql database and generates and serves a Json file, using Sinatra. But after a few minutes, the values revert to nil/null. Weirdly, It's still serving the json file, it's just that the values "time out."
<BrianBoyko> So I've tried all sorts of workarounds, but I'm not sure how to get what I need working.
mesamoo has joined #ruby
<BrianBoyko> I thought the timeout was because of the heroku dyno spinning down, but no, I've upgraded the dyno and it still doesn't work.
zenguy_pc2 has joined #ruby
punkerplunk has joined #ruby
konsolebox has quit [Remote host closed the connection]
apt-get_ has quit [Quit: Quit]
zenguy_pc2 has quit [Client Quit]
<punkerplunk> when I require irb, and I start a session with IRB.start, how can I ensure noinspect mode?
nofxx has joined #ruby
zenguy_pc has joined #ruby
seanstickle has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
djbkd has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
<_blizzy_> so, for some reason, it puts out the right info the first time (@team, check logs file), however, once it gets to 'switch' in the switch/case, it returns to [] https://gist.github.com/NotBlizzard/f5b91f9d720873129ee6
senera has joined #ruby
Pupeno has joined #ruby
seanstickle has left #ruby [#ruby]
senera has quit [Client Quit]
swills has joined #ruby
flughafe1 has joined #ruby
micmus has joined #ruby
dseitz has joined #ruby
wildroman2 has joined #ruby
<[k-> wo the code looks much cleaner!
<[k-> well done!
<[k-> as I said, you shouldn't use for loops
<punkerplunk> hey blizzy, you want sdl incorporation with your battle?
<[k-> change it to 5.times
<_blizzy_> punkerplunk, sdl?
<apeiros> [k-: you mean "change it to data['side']['pokemon'].each", right? right?!? right?!!!?!?
flughafen_ has quit [Ping timeout: 265 seconds]
<apeiros> ;-)
noob has joined #ruby
giuseppesolinas has joined #ruby
<apeiros> and when we're at it - not .each but .map. and with fixed indentation…
<noob> hi
<[k-> no, I did not read that code that much
<noob> I have a noob question here
<_blizzy_> hi no
<[k-> I saw for loops, and it was offensive to me
<_blizzy_> *noob
<pontiki> as on ly you could
<noob> in ruby codes i see lots of : colons
<[k-> so I wanted to change it immediately
<_blizzy_> noob, you might be thinking of Python?
<[k-> I stopped reading then :)
<noob> which makes it really difficult to understand
<noob> any tips to overcome this : shyness and confusion ?
<[k-> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
<[k-> ?context
<ruboto> Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
<punkerplunk> scope resolution Module::Constant
<sphex> noob: symbols?
<_blizzy_> nothing like accidentally opening up word
<noob> sphex: not only symbols
<noob> but everywhere we can see colons..
<noob> wait i will put an example sphex
<[k-> that's what ruboto said!
wildroman2 has quit [Remote host closed the connection]
fredsir has left #ruby [#ruby]
<[k-> pls do not ignore ruboto ;-;
<[k-> he is a poor guy
<pontiki> his brother is more famous
<[k-> who's that
<pontiki> mr. roboto
<[k-> ugh
<pontiki> everyone goes around thanking him, too
<[k-> wow its even aligned!
<[k-> good job there apeiros
<[k-> I don't even align stuff
<_blizzy_> thanks, apeiros
<[k-> too much... effort
<_blizzy_> now why map over each
<apeiros> mad skillz!
<apeiros> _blizzy_: see any `team = []` in there?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<apeiros> or any `team << …`?
<_blizzy_> no
<apeiros> that's why
<apeiros> with .each we'd still need that.
findaway has joined #ruby
<apeiros> with .map we don't need it
<_blizzy_> couldn't you also use inject
<apeiros> I could. it'd be ugly.
<_blizzy_> hmm, thanks, apeiros
<noob> sphex: also it is my problem that i have tried tryRuby and rubyMonk tutorials but real life codes are really complex.. how to become an expert ? there are lots of books and stuuffs but what do real programmers do to learn ruby ?
<[k-> no, we should call it reduce!
<_blizzy_> however that still doesn't solve my problem. c:
<sphex> noob: "::" and "." are a bit confusing it. IIUC, "::" is just a namespace-access operator, but "." means a method call, except for "constants" (which starts with uppercase), in which case it acts a bit more like "::". not completely sure I got this right though.
<[k-> down with inject, up with reduce!
<noob> yep.. i am clear about colons now
<noob> sphex: thank you
jesterfraud has quit [Read error: Connection reset by peer]
<noob> but can you tell me how to really jump into hardcore ruby programming.. something that starts from the bottom and takes to the sky with some projects
<pontiki> it's called "everyday life", noob
<_blizzy_> noob, learn ruby, then hack your way through a rails project
<_blizzy_> pontiki, without context, that sounds rude, lol
<[k-> bleh, you don't need rails
<sphex> noob: frankly, I dunno. I was already familiar with other similar languages before I tried ruby, so that helped *a lot*. ruby can be pretty hard to learn otherwise. but you'll be a really good programmer after that.
<_blizzy_> rails is love, rails is life
<_blizzy_> i've made a few apps in rails
<_blizzy_> some are on heroku
swills has quit [Quit: leaving]
<pontiki> i don't care, _blizzy_
startupality has quit [Quit: startupality]
<_blizzy_> pontiki, it wasn't supposed to be taken seriously
<pontiki> neither is this
<_blizzy_> ok.
<noob> i know all the basics of OOP and databases... i understand almost everything from the conceptual point.. tutorials are boring because they dont provide a good project with it
casadei has joined #ruby
<noob> I now want to dive into programming but have no idea which resource to refer to
<noob> i am also doing rails by the way sphex and _blizzy_
<_blizzy_> noob, nice
baweaver has quit [Remote host closed the connection]
<_blizzy_> rails will get you jobs
giuseppesolinas has quit [Quit: This computer has gone to sleep]
troulouliou_dev has joined #ruby
<_blizzy_> that's if you stay on track
<_blizzy_> get it? rails? tracks?
<_blizzy_> .-.
<noob> tracks ?
sandstrom has quit [Quit: My computer has gone to sleep.]
<_blizzy_> nvm, just stick with rails.
<[k-> rails are tracks...
<noob> ohh
<noob> lol
<noob> got it
<noob> well do you guys work on your pet project as well ?
<_blizzy_> yes.
<noob> or some opensource projects ?
<_blizzy_> atm I'm working on an AI Pokemon bot
<noob> okay
<[k-> *cough*
ryba has quit [Ping timeout: 272 seconds]
<noob> can i start to contribute on it
<noob> like i will be a trainee and you can be my mentor
<apeiros> btw. [k-: aligning code is cmd-k -> cmd-a for me (sublime valign plugin) ;-)
wildroman2 has joined #ruby
centrx has joined #ruby
User458764 has joined #ruby
MouseTheLuckyDog has quit [Quit: Leaving]
<[k-> *cough*
charliesome has quit [Quit: zzz]
<[k-> _blizzy_ could the reason be that you are modifying team in place?
<_blizzy_> [k-, no. c:
<[k-> if all else fails, you need to set_trace_func
<[k-> hehe good luck reading that
<noob> _blizzy_: can i contribute to your project as a learner ?
<_blizzy_> noob, not atm. c:
<_blizzy_> since atm it's a solo project.
<noob> okay
<noob> _blizzy_: have you used legato gem before ?
<_blizzy_> no.
<noob> GooGle analytics then ?
<[k-> ?use
<ruboto> Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
bf4 has joined #ruby
<_blizzy_> [k-, I know i'm not modifying because get_team is the only method touching @team
<noob> ruboto: got it
<[k-> do you have some rogue methods elsewhere?
rubie has joined #ruby
<[k-> if all else fails, the second last resort could be @team.freeze
sarkyniin has joined #ruby
<[k-> iirc Ruby will warn if you try to modify it
cb__ has quit [Remote host closed the connection]
<[k-> may not crash tho
<[k-> so you may not get a stack trace
erts has quit [Quit: erts]
<[k-> well I have to go now, good luck
[k- has quit [Quit: AndroidIrc Disconnecting]
mary5030 has joined #ruby
bf4 has quit [Ping timeout: 252 seconds]
giuseppesolinas has joined #ruby
charliesome has joined #ruby
scripore has quit [Quit: Leaving]
sarkyniin has quit [Ping timeout: 252 seconds]
<_blizzy_> so I tried using freeze
<_blizzy_> it still resets to nil for some reason
<apeiros> freeze freezes objects, not variables
<apeiros> you can't stop yourself from assigning to variables.
charliesome has quit [Client Quit]
giuseppesolinas has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
troulouliou_dev has quit [Quit: Leaving]
<apeiros> centrx: hehe, ho-hum: "PRIVMSG ruboto :?code" ;-p
<punkerplunk> blizz, show code again!?
giuseppesolinas has joined #ruby
<centrx> eh?
<apeiros> hm, I think that "ho-hum" doesn't mean what I want it to mean
<apeiros> centrx: I checked who sent privmsgs to ruboto
<apeiros> and what
sacarlson has joined #ruby
<apeiros> and you came up :-p
<centrx> I hacked in
<centrx> got the codes
multi_io has quit [Ping timeout: 265 seconds]
vasilakisfil_ has quit [Quit: Konversation terminated!]
vasilakisfil_ has joined #ruby
<sacarlson> how can I check if a proccess is still running from within my ruby app? like ps -A | grep thisprogram to get status if a background app still running?
multi_io has joined #ruby
giuseppesolinas has quit [Client Quit]
pontiki has quit [Quit: <poit>]
<centrx> sacarlson, I found this: https://rubygems.org/gems/sys-proctable
<sacarlson> cool I'll take a look thanks centrx
ReD-BoY_ has quit [Quit: Leaving]
<punkerplunk> you can use back quotes for terminal commands
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> Process.wait
vasilakisfil_ has quit [Read error: Connection reset by peer]
ryba has joined #ruby
vasilakisfil_ has joined #ruby
Muhannad has quit [Ping timeout: 264 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<sacarlson> that sys-proctable seems close but it wants the process id number. I want to give it the process name
<sacarlson> I also want it to be cross platform so term commands won't do
t0rrieri has quit [Quit: Be back later ...]
choke has joined #ruby
finisherr has quit [Quit: finisherr]
Obfuscate has quit [Quit: Obfuscate]
giuseppesolinas has joined #ruby
swgillespie has joined #ruby
mary5030 has quit [Remote host closed the connection]
<punkerplunk> indeed. if you spawn the process from your script?
<punkerplunk> do you, i mean
unshadow_ has quit [Quit: leaving]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
GitGud has joined #ruby
mr_blue has joined #ruby
allomov has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
vasilakisfil_ has quit [Ping timeout: 256 seconds]
Muhannad has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
chinmay_dd has joined #ruby
Muhannad has quit [Max SendQ exceeded]
Muhannad has joined #ruby
pyon has quit [Ping timeout: 248 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
punkerplunk has quit [Quit: Leaving]
kadoppe has quit [Ping timeout: 248 seconds]
Muhannad has quit [Max SendQ exceeded]
kadoppe has joined #ruby
Muhannad has joined #ruby
zotherstupidguy has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
<sphex> sacarlson: why not the process id?
Muhannad has quit [Max SendQ exceeded]
<sacarlson> because I don't know what the PID number will be
<sphex> not with that attitude you won't
<sacarlson> I think I found a way with sys-proctable
Muhannad has joined #ruby
<sacarlson> Sys::ProcTable.ps.each { |ps|
<sacarlson> if ps.name.downcase
<sacarlson> might work
renderfu_ has joined #ruby
Xeago has joined #ruby
<sacarlson> I"m testing it now
rubie has quit [Remote host closed the connection]
Muhannad has quit [Max SendQ exceeded]
Muhannad has joined #ruby
<sacarlson> ya that works on linux. now sure about windows but I will live with this thanks centrx and sphex and all
charliesome has joined #ruby
renderfu_ has quit [Ping timeout: 246 seconds]
Muhannad has quit [Max SendQ exceeded]
Muhannad has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
Obfuscate has joined #ruby
Muhannad has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
Blaguvest has joined #ruby
mcclurmc has joined #ruby
symm- has joined #ruby
pyon has joined #ruby
DLSteve has joined #ruby
yqt has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
allomov has joined #ruby
wildroman2 has quit [Remote host closed the connection]
diegoviola has joined #ruby
sarkyniin has joined #ruby
troulouliou_dev has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
greenbagels has joined #ruby
Scroff has joined #ruby
vyorkin has quit [Ping timeout: 276 seconds]
User458764 has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
stan_ has joined #ruby
stan_ is now known as Guest14620
giuseppesolinas has joined #ruby
m8 has quit [Quit: Sto andando via]
serivich has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
wildroman2 has joined #ruby
StreetWood has joined #ruby
fantazo has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
Ox0dea has joined #ruby
<Ox0dea> <apeiros> you can't stop yourself from assigning to variables.
<Ox0dea> That article shows, among other things, how to actively enforce "purity" in Ruby.
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> Ox0dea: aaahahaha, ok
simplyianm has joined #ruby
<apeiros> well played, sir or mam :D
mcclurmc has joined #ruby
bruno- has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby
rubie has joined #ruby
bf4 has joined #ruby
havenwood has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Al3ks has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[H]unt3r has quit [Quit: Leaving]
balazs has joined #ruby
klaas has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
mcclurmc has quit [Remote host closed the connection]
eggoez has joined #ruby
mcclurmc has joined #ruby
wildroman2 has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 272 seconds]
Rollabunna has joined #ruby
malconis has joined #ruby
chussenot has quit [Quit: chussenot]
bking39116 has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
<shevy> boy
chussenot has joined #ruby
datanoise has joined #ruby
niemcu has joined #ruby
bronson has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
Matthews_ has joined #ruby
vyorkin has joined #ruby
k3asd` has joined #ruby
balazs has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.2]
mengu has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
Matt-Nexus5 has joined #ruby
Matt-Nexus5 has left #ruby [#ruby]
StreetWood has left #ruby [#ruby]
diegoviola has joined #ruby
yayfoxes has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
datanoise has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 276 seconds]
<Ox0dea> shevy: I've been meaning to recall what I did to upset you so.
sarkyniin has quit [Ping timeout: 246 seconds]
<Ox0dea> I do remember just suddenly being on your bad side, but the catalyst eludes me.
michael_mbp has quit [Excess Flood]
platosha has joined #ruby
<noethics> lol Ox0dea monkey patching you say
Matthews_ has quit [Remote host closed the connection]
kraljev11 has quit [Ping timeout: 256 seconds]
diegoviola has quit [Client Quit]
<noethics> i recently used this puppy https://dpaste.de/wFUv
<noethics> not even a monkey patch
michael_mbp has joined #ruby
cowcow has joined #ruby
cowcow has quit [Client Quit]
sacarlson has left #ruby [#ruby]
MVPhelp has joined #ruby
s2013 has joined #ruby
<shevy> a monkey match?
troulouliou_dev has quit [Quit: Leaving]
mary5030 has joined #ruby
icebourg has joined #ruby
Musashi007 has joined #ruby
Tau has joined #ruby
<Tau> hi.
<Tau> is there a default graphic lib for ruby? like tkinter for python?
mary5030 has quit [Ping timeout: 248 seconds]
<jhass> hm, I think tk is still in stdlib
<Ox0dea> It is.
simplyianm has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
<Ox0dea> noethics: I recently added #times to Float for midkeks, but the implementation's being timeout- rather than instruction-based made it even more useless than it might've been.
<Ox0dea> Entertaining nevertheless.
dotix has joined #ruby
dotix has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
simplyianm has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
s2013 has joined #ruby
<apeiros> noethics: how's that not a monkey patch?
<noethics> apeiros, i was being sarcasti
<noethics> c
rodfersou has joined #ruby
<shevy> Tau you can have a look at http://ruby-doc.org/stdlib-2.0.0/libdoc/tk/rdoc/
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
pyon has quit [Ping timeout: 264 seconds]
codecop_ has quit [Quit: Išeinu]
TheHodge has quit [Quit: Connection closed for inactivity]
OrbitalKitten has joined #ruby
<dotix> is there a way (and how idiomatic is) to declare variables like you do with functions ? E.g. ["a", "b"].each { |v| define_method("#{a}_something") { function attr } }
<dotix> looking for something like ["var1", "var2"].each { |v| "#{v}" = function_call(v) } }
<apeiros> dotix: don't.
<Ox0dea> dotix: Use an array.
Guest14620 has quit [Ping timeout: 250 seconds]
<apeiros> s/array/hash/
vyorkin has quit [Ping timeout: 252 seconds]
<apeiros> well, with var1, var2 - array is right actually :)
Scroff has quit [Remote host closed the connection]
<apeiros> dotix: whenever you feel the need to dynamically set or get *local* variables, then you're doing it *horribly* wrong.
Scroff has joined #ruby
<apeiros> only known exception to this is template engines.
<dotix> so it's not a good practice
<apeiros> it's not just not good. it's horrible.
<Ox0dea> It's the worst possible thing you can do.
charliesome has quit [Quit: zzz]
<dotix> Okay :) I use define_method quite often. It's not the same situation right?
<Ox0dea> You probably have a tendency to use it where you needn't, but it certainly has its place.
sarkyniin has joined #ruby
<apeiros> dotix: no
<apeiros> though I'd wonder why you use define_method often
blandflakes has joined #ruby
codecop has quit [Remote host closed the connection]
Pupeno has joined #ruby
<dotix> well I do web scrapping and I have some attributes
<dotix> when I create the extract_#{attr} for example
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kahuna_ has joined #ruby
<dotix> based on table columns
<apeiros> dotix: and do you at any time access that extract_#{attr} in a non-dynamical way?
<Tau> shevy i see.
<shevy> :)
<shevy> ruby-qt and ruby-gnome do look better though
yfeldblum has joined #ruby
<dotix> sorry apeiros, don't get your question. What do you mean by non-dynamical way?
Scroff has quit [Ping timeout: 252 seconds]
<apeiros> say you have attr = 'foo', and you define extract_#{attr}, non-dynamical access would be you actually call extract_foo
<dotix> no
<apeiros> then you're creating lot of overhead for nothing.
Hobogrammer has joined #ruby
<apeiros> use hashes and arrays throughout
<apeiros> extract[attr] = value; extract[attr]
k3asd` has quit [Ping timeout: 246 seconds]
<apeiros> no point in defining a separate method if you only use it dynamically anyway.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> dotix: After all, an HTML table is really just another representation of an array of hashes, no?
<dotix> well deep down I call them but programatically
Soda has joined #ruby
CorrosiveOne has quit [Quit: I was drunk last time I set this message]
<dotix> like self.public_methods.grep(...extract_....).each { etc etc }
<Ox0dea> But hwhy?
pyon has joined #ruby
klaas has joined #ruby
<dotix> I can't give examples since is production code..
<dotix> I find it easier
<Ox0dea> Sounds like masochism to me.
startupality has joined #ruby
<apeiros> dotix: yeah, really, you're using the wrong tool by using dynamically defined methods.
<apeiros> that's what we got datastructures for.
mujou has quit [Quit: Leaving...]
<dotix> Yes.. unfortunately I don't have solid arguments. That's why I asked
Versality has joined #ruby
Marsupermammal has joined #ruby
<apeiros> and you got a very clear response :)
<jhass> it's horrible!
<apeiros> horrible! I tell you! horrible!
<jhass> just in case it wasn't clear enough
<apeiros> and now, let me find that balmer's peak
<apeiros> in order to write some horrible code myself :D
<dotix> Well thank you for this. Maybe it'll make sense from some point, but I can't give too many details or code snippets
<apeiros> not necessary. the picture is clear enough.
sankaber has joined #ruby
<jhass> dotix: {foo: ->(node) { doc.xpath("./foo")["bar"] }} is valid, just in case you didn't realize
Scroff has joined #ruby
<dotix> yes it is
arescorpio has joined #ruby
<dotix> well a reason for doing this is to have less code to maintain right
<jhass> I think we need a pattern book on web scraping or so, not the first time I see quite fishy design in that area :/
<dotix> if you have an xpath and you need to change only one word
<apeiros> dotix: you're having *more* code your way
<apeiros> so if you think that's a reason for it, you're very very wrong.
<dotix> /div[cotains(text(), 'Word')]
spacemud has quit [Ping timeout: 248 seconds]
mr_blue has quit [Remote host closed the connection]
<dotix> it makes sense for me to have a function def something param; page.search(//div[cotains(text(), '#{param}')]).text; end;
<dotix> and make all extract_attr with define_method
<Ox0dea> > '#{param}'
<apeiros> dotix: really, go familiarize yourself with the Hash class.
spacemud has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
<apeiros> also that example doesn't show any connection between your `something` method and your `extract_*` methods
<Jeff__> can i use puppetlabs-mysql module to define database tables?
micmus has quit [Quit: Leaving]
Guest14620 has joined #ruby
toretore has joined #ruby
Rollabunna has joined #ruby
<apeiros> ?puppet Jeff__
<ruboto> Jeff__, Please join #puppet for help with it.
<dotix> well ok apeiros let me give you a dummy example to show you what I'm trying to say
<apeiros> dotix: sure.
bf4 has joined #ruby
* Ox0dea dons corporate lawyer hat.
ayonkhan has joined #ruby
EllisTAA has joined #ruby
tubuliferous_ has joined #ruby
<EllisTAA> so i was wondering what program is executing my files that are exe?
vyorkin has joined #ruby
<apeiros> EllisTAA: windows
<EllisTAA> apeiros: so you’re saying the program is the os?
<jhass> the kernel, specifically
<apeiros> since windows is the only OS which has .exe, I specifically say it is windows.
<EllisTAA> ah
<EllisTAA> i swear i have exe files on my mac ...
<apeiros> but generically speaking: binary executables are executed by your OS, yes.
<jhass> apeiros: you can actually make the linux kernel run .exe files :P
simplyianm has quit [Remote host closed the connection]
<apeiros> EllisTAA: then you have an emulator
<apeiros> ooooookay. your OS *or* an emulation layer.
<EllisTAA> isn’t there a bin folder in ruby proejcts that have files with exe ?
<apeiros> EllisTAA: please be precise
<apeiros> what do you mean "have exe"?
<dotix> and imagine >10 attrs
Rollabunna has quit [Ping timeout: 248 seconds]
<dotix> and want to see you hash version :)
<apeiros> dotix: yeah, no, makes no sense at all. use a hash.
<jhass> Wine is not an emulator
<EllisTAA> im looking for an example brb
balazs has joined #ruby
<jhass> that's it's actual name
<dotix> Good, how?
<apeiros> or parametrize
GPrime has joined #ruby
<EllisTAA> ok nvm i ca’nt find an example, thanks though
bf4 has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 248 seconds]
<apeiros> dotix: make a proper example where you actually use your extract methods
<apeiros> dotix: because as you said, you don't use them literally, you use dynamic means to invoke them too…
_ht has quit [Quit: Konversation terminated!]
<EllisTAA> can someone explain the difference between a kernel and an os
<apeiros> the kernel is part of your OS
<apeiros> so the difference is like the difference between your arm and you. your arm is part of you. it isn't you.
<EllisTAA> thanks
<Ox0dea> You should have used brain instead of arm.
<apeiros> the specifics depend on the OS
<jhass> EllisTAA: I'm sure the wikipedia articles on "Kernel" and "Operating system" are great in detailing the difference
<apeiros> Ox0dea: noooo, guts
<Ox0dea> jhass: EllisTAA doesn't have Internet access.
mcclurmc_ has joined #ruby
<apeiros> ?ot EllisTAA
<ruboto> EllisTAA, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<jhass> Ox0dea: good thing you only need google and wikipedia access these days
sbhatore has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> there's countries where they have specifically WP access only
<apeiros> special deals with mobile carriers
datanoise has joined #ruby
<EllisTAA> what is the difference betweeen googling it and asking the room
<jhass> apeiros: sure, we have that for spotify
phutchins has joined #ruby
<apeiros> EllisTAA: go to #ruby-offtopic for this stuff. that's not ruby related.
<jhass> google has it in some asian country iirc
mcclurmc has quit [Ping timeout: 272 seconds]
Scroff has quit [Remote host closed the connection]
ndrei has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass> EllisTAA: I'll happily answer your last question over there btw
<EllisTAA> ok
<apeiros> dotix: well, without you providing a meaningful example, here my not-meaningful version which doesn't need define_method and is already less code: https://gist.github.com/apeiros/f4c71767f1f1c334bbae
leslie_ is now known as leslie
leslie has quit [Changing host]
leslie has joined #ruby
Oka has joined #ruby
datanoise has quit [Ping timeout: 250 seconds]
Scroff has joined #ruby
<dotix> yes but I need extract_* functions. I can't give you more code from here
blue_deref has quit [Quit: bbn]
allomov has quit [Remote host closed the connection]
<apeiros> dotix: no, you don't need them.
<dotix> you're saying it's okay to use define_method but only if you call those methods. That's enough for me :)
<apeiros> that's not what I'm saying
knite has joined #ruby
<dotix> Then why is so relevant for you what I do with those functions?
<apeiros> I say that using dynamically defined methods only dynamically is a code smell.
devdazed has quit [Quit: Computer has gone to sleep.]
<apeiros> or stink even.
<dotix> Well, where do you think *we* (as rubyists) should use them?
<apeiros> dynamically defined methods?
<apeiros> look no further than attr_reader/_writer etc.
<apeiros> there are certainly more cases
casadei has quit [Remote host closed the connection]
<apeiros> but dynamically defined methods which are only invoked dynamically are an abuse. as said before, that's what we've got datastructures for.
<knite> hi #ruby, I'm a Python dev jumping over to your side of the pond for a minute. there's a Ruby gem on Github I'd like to install locally, and I'm having some trouble with it. I basically did: hub clone foo; cd foo; gem build foo.gemspec; gem install foo.0.1.1.gem. when I try running foo, it fails due to missing a dependency.
<jhass> dotix: let's take a popular non-stdlib: ActiveRecord. It dynamically defines accessor methods for all your fields. But it also provides the #[] for dynamically accessing them
<Ox0dea> knite: Install the dependency?
<havenwood> knite: What's the gem?
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> dotix: self[foo] is obviously much cleaner than public_send(foo), don't you agree?
<knite> Ox0dea: isn't that supposed to happen automatically?
<havenwood> knite: They may have missed a dep. Having it installed they may not have realized it was missing.
<havenwood> knite: What's the dep?
vikaton has joined #ruby
balazs has quit [Remote host closed the connection]
<dotix> jhass, I agree
<knite> docile-1.1.5.
<knite> havenwood: ^
<havenwood> knite: Ahh, just read how you installed it.
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> knite: With a modern RubyGems run `gem i -g --no-lock` or run `bundle` after installing the Bundler gem on an older RubyGems.
<knite> I take it I've done this wrong, then? I read about rvm vs rbenv vs chruby, installed rbenv, then installed a global ruby (latest, 2.2.2). then I had to learn about Gemfiles, gemspecs, and bundler, which is where I'm probably still mixed up.
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> knite: ^ to install development deps. If you did `gem install terraforming` it should automatically fetch the deps.
<SCHAAP137> working on my cinch IRC bot again, lots of fun
<havenwood> knite: The standard process when grabbing gems for development is to `bundle` or use RubyGems's new `gem i -g`.
<havenwood> knite: For gem users they *just work*.
Indian has quit [Ping timeout: 272 seconds]
<havenwood> knite: The gem ships with a Gemfile to make it easy on devs to install deps.
<apeiros> SCHAAP137:
<havenwood> knite: Via Bundler or new RubyGems feature.
casadei has joined #ruby
<Ox0dea> apeiros: Stroke?
Indian has joined #ruby
<apeiros> Ox0dea: get better utf-8 fonts :-p
foureight84 has joined #ruby
<apeiros> s/utf-8/unicode/
<Ox0dea> How embarrassing.
<knite> havenwood: gotcha. I ran "bundle" previously (which I assume is the same as bundle install). this did install a giant pile of deps into my ruby. I then second guessed myself because further reading made it sound like bundle is only used when *developing* a gem, not installing it.
<SCHAAP137> apeiros: just made my own implementation of a google search, duckduckgo search, openweathermap, imdb, various unit conversions etc
<apeiros> SCHAAP137: nice
<SCHAAP137> mostly using nokogiri, open-uri, json
<apeiros> SCHAAP137: opensource?
<havenwood> knite: Are you using RVM or something else?
wildroman2 has joined #ruby
jfarmer has joined #ruby
<SCHAAP137> my addons u mean apeiros ? no haven't shared them
<havenwood> knite: Normally to install a gem you use `gem install gem-name-here` not cloning the repo - that's for development.
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> SCHAAP137: yes
<apeiros> SCHAAP137: too sad
<knite> havenwood: rbenv + ruby-build + rbenv-bundler.
eggoez has quit [Ping timeout: 256 seconds]
<knite> so there's no equivalent to pip install git+http://github.com/... in python or package.json referring to a repo in node. the right way to do it is a clone + bundle?
<havenwood> knite: The Gemfile to install the gemdeps dependencies is just a convenience. For gems you don't commit the Gemfile.lock but the Gemfile is useful to install deps.
peter_paule has joined #ruby
<havenwood> knite: You could create a `Gemfile` or the newer `gem.deps.rb` file and add it. The added bonus is it does dependency resolution with other gems in there.
<jfarmer> knite It depends on what you're trying to install. I can say that I've never done clone+bundle unless my intentional was to do development on a particular project.
<SCHAAP137> apeiros: when i've improved them i'll put them on github
millerti has joined #ruby
<apeiros> SCHAAP137: top :)
<jfarmer> intention*
<SCHAAP137> apeiros: still need to make separate plugins, it's now all in 1 big .rb file
<dotix> ahh... alternative to be_within matcher if you have array of fixnums?
<knite> havenwood: first of all, thanks for all of your help. I'm a little bit confused, because my impression was that rbenv and rvm are meant to isolate ruby deps so different projects with different requirements won't collide. how can I make this work at a system level, then? let's say I want to install command line tools A and B, which are both ruby projects. they have conflicting dependencies. I don't intend to hack on either project,
<knite> just need both tools. what's the right way to install them both?
<jfarmer> knite No
<havenwood> knite: For example, your `gem.deps.rb` content could just be `gem 'nokogiri', github: 'tenderlove/nokogiri'` and you can `gem i -g --no-lock` to resolve deps with any other gems in there and install the proper versions.
<jfarmer> knite bundler handles isolating gems on a project level, although rvm (which predates bundler) has a feature called "gemsets" that can do this, too
<jfarmer> You'd never use rvm and rbenv together; they're two projects built for the same purpose
<havenwood> knite: rbenv curates a garden of shims in your PATH that front for ruby and gems
Scroff has quit [Remote host closed the connection]
<jfarmer> knite rvm and rbenv exist primarily to make switching between ruby versions and interpreters easier
<knite> jfarmer: sorry if I was unclear. I am only using rbenv, based on some initial digging suggesting that rvm is too heavyweight and mucks with my shell.
claw has joined #ruby
<havenwood> knite: RubyGems, which ships with Ruby, can install gems into isolated locations or globally and resolve deps.
<jfarmer> knite That's fine. rbenv does nothing to isolate gems at the project level
<havenwood> knite: For older RubyGems or Rails Bundler can do that same job - plus some bells and whistles.
<jfarmer> That's what Gemfile, Gemfile.lock, and bundler are for
<havenwood> Or gem.deps.rb, gem.deps.rb.lock and gem i -g are for
athos_diddy has quit []
peter_paule has quit [Ping timeout: 248 seconds]
<havenwood> Now that RubyGems can do these things
foureight84 has quit [Quit: Be back later ...]
blandflakes has joined #ruby
leafybasil has joined #ruby
<jfarmer> (I've never heard of those before this instant in 10+ years of writing Ruby.)
david_ has joined #ruby
<jfarmer> Except the gem command.
<havenwood> jfarmer: They're relatively new RubyGems additions.
<jfarmer> Ok
<havenwood> jfarmer: The mysterious future.
yardenbar has quit [Quit: Leaving]
<jfarmer> For someone just coming to Ruby-land like knite, the answer is "bundler is what everyone uses to manage and isolate dependencies at the project level."
<knite> okay...so same question, given two gems A and B with incompatible deps that I need to install (does it even matter whether they are GH projects or published gems) on my system because they are CLI tools, what's the recommended way to do that?
<jfarmer> Seems like he was confused about the role of rbenv vs. bundler
<havenwood> jfarmer: Rails still hardcodes to Bundler but RubyGems has been working great for me as a replacement. I'm enjoying my post-Bundler existence.
<jfarmer> havenwood Ok
<dotix> based on a delta(or epsilon) I have this test: expect(func(smth)).to be_withing(:epsilon).of(value) . It works great with Fixnum. Ideas for making it work for arrays?
blandflakes has quit [Client Quit]
<jfarmer> But, like...
<jfarmer> How many projects use it?
<dotix> sorry for typo
<havenwood> jfarmer: Bundler?
<havenwood> jfarmer: Or the new RubyGems features?
<jfarmer> This new RubyGems thing?
<jfarmer> For the purpose of someone trying to un-confuse themselves about the relationship between these different tools, throwing in a relatively new RubyGems thing seems confusing.
<havenwood> jfarmer: Hem, mpapis of RVM has been recommending it. The mainstream is still Bundler but it works great.
nfk has joined #ruby
<jfarmer> knite Incompatible how?
<havenwood> jfarmer: I think the redundant Bundler complicates things. :P
<havenwood> jfarmer: If it wasn't for Rails we could just not mention it.
unshadow has quit [Ping timeout: 264 seconds]
<havenwood> jfarmer: Things that ship with Ruby are simpler.
<jfarmer> That would be dishonest for anyone just approaching this.
PaulCapestany has quit [Quit: .]
<knite> jfarmer: gem A depends on gem C version 1, gem B depends on gem C, but version 2.
<jfarmer> It would paint an inaccurate picture of how most of the Ruby world works.
<havenwood> jfarmer: What would be dishonest?
<jfarmer> Pretending bundler doesn't exist.
<jfarmer> This isn't helping knite
<jfarmer> knite No, I get that.
PaulCapestany has joined #ruby
<jfarmer> I mean...specifically what are the conflicts?
<havenwood> jfarmer: Showing how to make things simply work with what ships with Ruby?
david_ has quit [Client Quit]
<jfarmer> havenwood If it runs contrary to 90%+ of what they would experience when interacting with other projects, yes.
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
<havenwood> jfarmer: It's a simpler, more future-looking alternative that is appropriate unless Rails is involved.
<jfarmer> havenwood This isn't productive.
unshadow has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<havenwood> jfarmer: Apparently you're learning about features that ship with RubyGems.
ayonkhan has quit []
<havenwood> How long has 2.2.0 been out?
<havenwood> Dec 26, 2013
<jfarmer> havenwood You're missing my point and this isn't productive. I want to help knite.
findaway has quit [Ping timeout: 255 seconds]
<knite> oh, I don't have a specific conflict yet. I just see that if I install the package I care about (terraforming) with bundle (or the trickier gem command from havenwood), it's dropping like a dozen dependencies into my system ruby. so in JSland, modules are isolated by each one having its dependencies in a separate node_modules folder. and in Pythonland, I use a tool called pipsi to create a separate virtualenv for any Python CLI tool
<knite> need (because default pip has the same problem I'm describing).
<knite> so I'm asking how to solve this problem in Rubyland.
<jfarmer> knite Ah. I can honestly say I've never run into this problem at the system-level.
<jfarmer> At the project level, bundler handles it
<havenwood> knite: In Bundler it's `--path` and in RubyGems it's `--install-dir`.
stardiviner has joined #ruby
hahuang65 has joined #ruby
<havenwood> knite: `bundle --path vendor/bundle` or `gem i -g --install-dir vendor/bundle` for example
<knite> jfarmer: don't you feel squicky having tons of gems installed in your system ruby? or are there just not a lot of ruby CLI tools (main big one I can think of is sass)?
<jfarmer> knite There just aren't that many.
<jfarmer> I should look and see
<Ox0dea> There are many.
<jfarmer> Haha
<jfarmer> I mean, there _are_ a lot, but I don't know how many the typical developer uses.
dik_dak has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<jfarmer> Let alone in a way that creates conflicts
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Casty has joined #ruby
<jfarmer> Here's a list of CLI tools I have installed (more than I expected to be honest): http://cl.ly/image/401y2h272l1q
<knite> jfarmer: no worries about your spin-off convo with havenwood, most of it is going over my head.
unshadow has quit [Ping timeout: 255 seconds]
<jfarmer> knite That's what I suspected and why I thought it wasn't productive to keep mentioning it. :)
<jfarmer> havenwood My personal preference leans towards that sort of thing and I feel silly for not knowing about it, honestly.
<jfarmer> I use chruby over rvm or rbenv for example
gregf has quit [Quit: WeeChat 1.1.1]
<Ox0dea> >> //.clone
poguez_ has quit [Quit: Connection closed for inactivity]
<ruboto> Ox0dea # => can't modify literal regexp (SecurityError) ...check link for more (https://eval.in/388567)
<havenwood> jfarmer: RVM actually stopped shipping Bundler and recommends using the new RubyGems feature. Yeah, chruby is good stuff! :)
<apeiros> oh what? can't clone a regex? fascinating
<Ox0dea> havenwood: Any insight into that error?
<apeiros> Ox0dea: IMO a bug
__butch__ has joined #ruby
<apeiros> regex are immutable anyway
<havenwood> Ox0dea: hmm
<Ox0dea> Yes, I also think it's a bug.
<jfarmer> >> //.dup
<ruboto> jfarmer # => // (https://eval.in/388569)
<_blizzy_> I guess I should post this question again
<jfarmer> I wonder if the Regexp class overrode one of them
mcclurmc has joined #ruby
<Ox0dea> >> Regexp.new('').clone
<ruboto> Ox0dea # => // (https://eval.in/388570)
<jfarmer> hah wat
<jfarmer> >> Regexp.new(//).clone
<ruboto> jfarmer # => // (https://eval.in/388571)
mcclurmc has quit [Remote host closed the connection]
<jfarmer> >> Regexp.new(//) == //
<ruboto> jfarmer # => true (https://eval.in/388572)
<havenwood> >> %r||.clone
<ruboto> havenwood # => can't modify literal regexp (SecurityError) ...check link for more (https://eval.in/388573)
<Ox0dea> So weird.
<knite> jfarmer: okay, skimmed your chatter earlier. I appreciate your position of not trying to confuse me. but I also appreciate that if RubyGems has a new command which basically replaces some of bundler's functionality, and will become the new defacto method, it's worth knowing given that I'm coming in with no preconceived notions.
sevvie has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
yfeldblu_ has joined #ruby
<knite> so really, it's as simple as, old way: bundle, new way gem -i -g.
<jfarmer> knite I don't know that it will become a new de facto thing, but it's worth knowing about in case you see mention of it.
<havenwood> knite: jfarmer has good points. there's no perfect path. there's what's now and what's coming.
gregf has joined #ruby
<jfarmer> knite But I can say that 95% of the projects you run with, the installation instructions will be like: "1. Clone this repository. 2. Run bundle install."
<havenwood> ^ that's totally true
<jfarmer> Maybe 12 months from now that number will be 75% or 50%, who knows.
<knite> and bundle == bundle install, presumably?
<havenwood> knite: alias
yfeldbl__ has joined #ruby
<knite> not mentioned in bundle -h. :-P
<jfarmer> knite I think technically bundle does something a little more clever...
yfeldblum has quit [Ping timeout: 248 seconds]
<jfarmer> It remembers certain arguments you pass bundle install. I know for example if you do "bundle install --without-production"
mcclurmc_ has quit [Ping timeout: 252 seconds]
<jfarmer> then subsequent calls to "bundle" will act as if you did --without-production
ruv has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
<jfarmer> "bundle install" is the "real" command, though
<havenwood> jfarmer: what i don't like is it has it's own args and doesn't follow RubyGems so you have two sets to memorize
malconis has joined #ruby
<jfarmer> :(
fantazo has quit [Quit: Verlassend]
<havenwood> jfarmer: oh really? i thought it was a straight up alias?
<knite> jfarmer: look at all these deps from installing just one tool: http://pastebin.com/B20xbpiD you seriously never have dependency conflicts in Rubyland?
<ruboto> knite, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/80784244a7655445d3b7
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
enebo has quit [Quit: enebo]
<jfarmer> havenwood Maybe? Maybe "bundle install" remembers, too
<jfarmer> I dunno, stupid tools doing things I didn't ask for
<havenwood> jfarmer: i'm not at all sure
mcclurmc has joined #ruby
eggoez has joined #ruby
<jfarmer> knite Like I said, at a project level tools like bundler deal with any potential conflict.
<jfarmer> I would say 90% of the time I'm in a project directory w/ a Gemfile, anyhow.
j4cknewt has joined #ruby
<_blizzy_> could anyone help me figure out why https://gist.github.com/NotBlizzard/f5b91f9d720873129ee6, @team returns the correct data, yet once the switch/case begins again, it resets to []?
<havenwood> knite: smart tools - Bundler lead the way and now RubyGems proper can do dependency resolution
<_blizzy_> logs are in the gist
<jfarmer> knite I mean, I don't know what to say other than it's never been an issue for me.
simplyianm has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
athos_diddy has joined #ruby
<jfarmer> _blizzy_ The only place @team is being touched appears to be line 31 (https://gist.github.com/NotBlizzard/f5b91f9d720873129ee6#file-battle-rb-L31).
rbennacer has joined #ruby
<jfarmer> So either that's the offending line or you're not including all the code that's being run.
bf4 has joined #ruby
<_blizzy_> I commented out everything else
<_blizzy_> except the method get_team
lavros has quit [Quit: leaving]
<havenwood> knite: pip can't actually even upgrade all the installed packages. they've been ruminating on that since 2011: https://github.com/pypa/pip/issues/59
mcclurmc has quit [Ping timeout: 256 seconds]
<havenwood> knite: No dependency resolution.
<jfarmer> _blizzy_ Don't know what to say, then. My strong suspicion is that you're omitting relevant context.
<knite> havenwood: yup, which is why I use pipsi - https://github.com/mitsuhiko/pipsi . it's a relatively thin wrapper around pip which creates a separate virtualenv for each install. I use pip in my projects and pipsi for system tools.
<_blizzy_> jfarmer, hmm, ok. I could gist the entire battle-parser file
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> even though only 1 method is being used from it
<jfarmer> I've found the world of Python dependency management 100x more infuriating than the world of Ruby's dependency management.
<havenwood> knite: I'm glad you mentioned it, that's the first I've heard.
<knite> havenwood: yeah, I only learned about it a month or two ago. don't think it's been around all that long.
<havenwood> knite: I don't python but still good to know!
<jfarmer> _blizzy_ I'm not keen on reading through tons of code. Are you calling Battle#team= anywhere?
<knite> jfarmer: what problems have you had?
<_blizzy_> jfarmer, no.
<jfarmer> _blizzy_ Must be gremlins.
<havenwood> knite: RubyGems is quite nice though. :) Lots of languages have copied it for good reason.
<jfarmer> _blizzy_ If everything you say is true and Line 31 isn't setting @team to [] then I see nothing in the code that would affect the @team instance variable
<jfarmer> Are you sure you're dealing with the same Battle instances?
dgutierrez1287 has quit [Remote host closed the connection]
<jfarmer> knite Much more fragmented than Ruby-land, projects using and recommending their own tools, not much consistency in terms of how dependency installation and setup works
<_blizzy_> jfarmer, yes.
<jfarmer> Beyond "there's a file called setup.py and it does what needs to be done"
<jfarmer> _blizzy_ Ok, then must be ghosts.
bf4 has quit [Ping timeout: 272 seconds]
<jfarmer> _blizzy_ My personal bet is that you're "sure" when you shouldn't be, but could also be ghosts.
dgutierrez1287 has joined #ruby
DLSteve has joined #ruby
<knite> jfarmer: hm...I'll give you the two minute tour of Python's history, since you guys were so helpful.
<jfarmer> haha
<jfarmer> Well, I get the history
<jfarmer> First there was setuptools then disttools then whatever-the-else-tools
<jfarmer> that sort of thing
Versality has quit [Quit: Be back later ...]
shoutsid has joined #ruby
<jfarmer> Regardless of the historical reasons, I found it much more difficult to find reliable information on.
<knite> yep. these days, you have <nothing> = rvm/rbenv, because Python versions change infrequently. virtualenv = bundler = project-level isolation. pip = gem = package installation.
<jfarmer> Not saying there aren't reasons, just that the road was bumpier and I imagine all the more bumpier for someone just getting into Python. I have the benefit of being very comfortable with the language but less comfortable with production-level concerns like package and dependency management.
krz has quit [Quit: WeeChat 1.0.1]
<knite> fair. things have been pretty good for the past several years, but they were definitely bumpier back in the day, just like Rubyland.
<Ox0dea> I believe jfarmer intended to convey that things are still unpleasantly bumpy in Python.
<jfarmer> Yeah. hah
meph has joined #ruby
<Ox0dea> knite: No sympathy for snakes here.
<jfarmer> My cousin is a post-doc who works in social network analysis (an old field, but more popular now w/ the rise of digital networks)
<jfarmer> So for her Christmas present I wrote her a script to scrape Reddit, which had data she needed for her paper.
<jfarmer> Getting that packaged in a way that she and her non-technical assistants could use..
casadei has quit [Remote host closed the connection]
<jfarmer> knite Main thing I think is that the "current" documentation was hard to find.
<Ox0dea> jfarmer: Did you end up using OCRA?
<havenwood> jfarmer: nice
casadei has joined #ruby
<jfarmer> Ox0dea I wrote it in Python because there was a Python Reddit-scraping library
<jfarmer> Not OCRA
<jfarmer> Didn't run into that, actually
<havenwood> jfarmer: I read "an oil field" at first and was really confused.
<Ox0dea> Aren't there several gems that wrap the reddit API?
<jfarmer> Ox0dea None that did what we needed.
<jfarmer> Reddit's API is also...lacking, to be polite.
<Ox0dea> I just tack ".json"
<havenwood> jfarmer: Scraping to fill in the deficit?
<Ox0dea> onto the end of the URL I'm interested in.
zacts has joined #ruby
<jfarmer> I wound up using PRAW (https://praw.readthedocs.org/en/v3.0.0/)
<Ox0dea> Yeah, PRAW is pretty great.
<havenwood> ah
dgutierrez1287 has quit [Remote host closed the connection]
<Ox0dea> That said, appending ".json" to most reddit URLs does what you'd expect it to, so grabbing data from there is quite easy without much scaffolding.
<_blizzy_> I would use praw, but I don't have a reddit account
<_blizzy_> plus I don't want any reddit bots
<Ox0dea> _blizzy_: They're very expensive these days.
dgutierrez1287 has joined #ruby
<_blizzy_> Ox0dea, lol. there are reasons why I don't have a reddit account
<Ox0dea> ?ot _blizzy_
<ruboto> _blizzy_, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<_blizzy_> ..
<_blizzy_> ok.
kabukabu has joined #ruby
<_blizzy_> but talking about reddit's api isn't off topic.
<_blizzy_> :x
casadei has quit [Ping timeout: 246 seconds]
decoponio has quit [Read error: Connection reset by peer]
<Ox0dea> It was being discussed in context; you seemed like you were about to go on some personal tirade.
<_blizzy_> I wasn't.
decoponio has joined #ruby
* havenwood is ranting in #ruby-offtopic
<jfarmer> hahaha
<jfarmer> _blizzy_ The key is knowing how to skirt the rules, my friend! :D
<jfarmer> _blizzy_ Anyhow, re: your problem
<_blizzy_> jfarmer, I FINALLY figured out the problem
<jfarmer> Honestly — and you might not believe me — you are probably "certain" of something that isn't the case.
<jfarmer> _blizzy_ What was it?
<_blizzy_> I was calling a new instance of battle
<jfarmer> :)
<_blizzy_> when I thought I wasn't
<_blizzy_> thanks, jfarmer :)
mcclurmc has joined #ruby
<jfarmer> _blizzy_ Take a second and consider — I was somehow able to deduce that you were certain about something you shouldn't have been certain of.
horsecowdog has joined #ruby
horsecowdog has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<jfarmer> Remember the feeling you had when tackling this problem and the next time you feel that ("I've tripled checked EVERYTHING and this just doesn't make sense! Ugh!!! I've spent hours on this."), realize it's a sign of you being sure of something that you shouldn't be sure of
<_blizzy_> jfarmer, ok. :P
<jfarmer> I'm not being patronizing.
<havenwood> jfarmer: Aye, I remember this morning.
cashnguns has joined #ruby
<gambl0re> im getting a "The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved." error message
<gambl0re> whats going on..
<jfarmer> _blizzy_ I teach programmers for a living and the ability to (1) recognize the feeling of confusion and (2) use it to figure out what's really going on are incredibly valuable.
<havenwood> gambl0re: There is no page where you're looking. It doesn't exist. You mistyped the URL. Or it may have moved.
<sphex> jfarmer: quit man'splaining to him!
<jfarmer> haha
A205B064 has joined #ruby
<jfarmer> Yeah, so it goes.
redlegion has quit [Quit: Dying the fuck to death.]
<jfarmer> gambl0re Huh?
startupality has quit [Quit: startupality]
<jfarmer> What havenwood said. :)
choke has joined #ruby
Al3ks has joined #ruby
<gambl0re> guys...
<jfarmer> gambl0re...
<gambl0re> i need help, please..
<jhass> gambl0re: your browser is written in Ruby?
<jfarmer> gambl0re You have to give us more context.
<gambl0re> yea i need ruby...
<jfarmer> ...
* jfarmer hides.
volty has joined #ruby
<_blizzy_> he needs rupies
<jfarmer> red rupees worth the most
<gambl0re> i have ruby but when i deploy to heroku, it doesnt work..
<gambl0re> havenwood helped me before..
<jfarmer> gambl0re Ok, that's a little bit more context.
<athos_diddy> hey guys how come on ubuntu i can use rbenv to download ruby 2.2.2 but i can't get that version on os x
<jfarmer> gambl0re How were we supposed to know you were deploying to Heroku?
<athos_diddy> rubuntuy 14.04 server trusty
<gambl0re> guys, what should i do?
<athos_diddy> sorry for typos
<jfarmer> athos_diddy rbenv doesn't manage the list of available Ruby versions
Guest14620 has quit [Remote host closed the connection]
<jhass> gambl0re: use the right url
<jfarmer> It relies on ruby-build (IIRC)
redlegion has joined #ruby
<jfarmer> gambl0re Still need more context.
<havenwood> athos_diddy: update to the latest ruby-build
<athos_diddy> oh ok!
<jfarmer> athos_diddy Assuming you're using homebrew, brew install ruby-build should work
<havenwood> athos_diddy: Homebrew recommends updating frequently: brew update && brew upgrade
<jfarmer> Yeah.
<jfarmer> It will yell at you if you haven't updated in a day or two. Haha.
<jfarmer> (A frequency that even I, a committed frequent-updater, find a little funny.)
<athos_diddy> thanks
<athos_diddy> i never thought there would be so much debugging for deployment
sarkyniin has quit [Ping timeout: 276 seconds]
<jfarmer> :)
millerti has joined #ruby
riotjones has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
DLSteve has quit [Quit: Leaving]
mcclurmc has quit [Remote host closed the connection]
riotjone_ has quit [Ping timeout: 246 seconds]
mcclurmc has joined #ruby
findaway has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
Voker57 has quit [Ping timeout: 248 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
findaway has quit [Ping timeout: 256 seconds]
findaway has joined #ruby
choke has joined #ruby
j4cknewt has quit [Remote host closed the connection]
th3w0rm has joined #ruby
<th3w0rm> ciao
charliesome has joined #ruby
<th3w0rm> !lista
<th3w0rm> !list
<jhass> hi
<Ox0dea> charliesome: Thanks for that 0.49 patchset.
<th3w0rm> list??
<apeiros> th3w0rm: what are you trying to do?
Rollabunna has joined #ruby
<Ox0dea> charliesome: I take it supporting it on eval.in would be something of a bother?
<th3w0rm> download music??
tubuliferous_ has joined #ruby
icebourg has quit []
<apeiros> th3w0rm: yeah, completely wrong channel
<jfarmer> I'm trying to connect the dots here.
<th3w0rm> channel??
<apeiros> maybe take a look at the topic next time you join a channel…
<apeiros> th3w0rm: are you on drugs or something? this is irc. you're in an irc channel.
dotix has quit [Quit: Leaving]
<th3w0rm> irc download music
<th3w0rm> file mp3
<xxneolithicxx> lol kids these days
<apeiros> !kick th3w0rm good bye
th3w0rm was kicked from #ruby by ruboto [good bye]
<jfarmer> th3w0rm C+ troll
<apeiros> meh, all trolling is automatically F
TheHodge has joined #ruby
<adaedra> aaaah, download channels.
<jfarmer> Yeah, but #ruby?
RobertBirnie has quit [Ping timeout: 264 seconds]
<apeiros> stoned, or otherwise drugged
Rollabunna has quit [Ping timeout: 246 seconds]
<adaedra> ¯\_(ツ)_/¯
RobertBirnie has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
<adaedra> he may not speak english
<Ox0dea> ~ $ ruby49 -e 'module Foo; class Bar end end'
<Ox0dea> -e:1: nested class definition
<Ox0dea> Ruby's come a long way.
pontiki has joined #ruby
<xxneolithicxx> i think if you cant figure out where dl mp3s these days uve got bigger issues than language
<Ox0dea> > uve issues language
<adaedra> kek
<xxneolithicxx> i couldnt be bothered to type the other two
<xxneolithicxx> :-)
<Ox0dea> The other three.
<xxneolithicxx> who adds the third anyway
<shevy> third!
simplyianm has quit [Remote host closed the connection]
<volty> drink!
chussenot has quit [Quit: chussenot]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
charliesome has quit [Quit: zzz]
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
simplyianm has joined #ruby
rodfersou has quit [Quit: leaving]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
it_tard has joined #ruby
phat4life has quit [Ping timeout: 248 seconds]
nfk has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
giuseppesolinas has joined #ruby
phat4life has joined #ruby
it_tard is now known as nfk
nfk is now known as it_tard
it_tard is now known as nfk
fgo has joined #ruby
millerti has joined #ruby
yayfoxes_ has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
fenjamin has joined #ruby
Rickmasta has joined #ruby
<fenjamin> hi, when looping through an iterated range and reach the highest limit, does the loop return to the beginning lowest loop?
fgo has quit [Ping timeout: 264 seconds]
<fenjamin> (a..z) iterate and shift +4 then output to an array - the final 4 letters must return back to the lowest point of range
ndrei has quit [Ping timeout: 264 seconds]
fenjamin has quit [Remote host closed the connection]
dented42 has joined #ruby
baweaver has joined #ruby
<volty> >> ('a'..'z').to_a.rotate 4
<ruboto> volty # => ["e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", ...check link for more (https://eval.in/388581)
fenjamin has joined #ruby
nfk has quit [Read error: Connection reset by peer]
<fenjamin> anyone here?
nfk has joined #ruby
<havenwood> FastJack: hi
<havenwood> FastJack: Oops, mt.
<havenwood> fenjamin: hi
freerobby has quit [Quit: Leaving.]
<fenjamin> hi, we are iterating through a range
<fenjamin> (a..z)
freerobby has joined #ruby
<volty> fenjamin: It seems that I was the only that tried to understand what you were asking for
<fenjamin> and want to output to an array of every value in the range shifted by 4
mdw has joined #ruby
kirun has quit [Quit: Client exiting]
<gambl0re> hi havenwood my friend..
<fenjamin> so a return d
<havenwood> gambl0re: hi
<fenjamin> when the loop arrives at the end of the range like w,x,y,z, we need to return a,b,c,d
<havenwood> fenjamin: So what do you want different than volty's solution? You have to zip two Arrays into a Hash or?
<fenjamin> forgive me, i exited before i saw his solution
<fenjamin> *her
<havenwood> fenjamin: aha!
Marsupermammal has joined #ruby
<volty> you can use to_enum and then next (though with restart, i don't remember now the syntax)
<volty> >> e = ('a'..'d').to_enum.cycle; 5.times { p e.next }
<ruboto> volty # => "a" ...check link for more (https://eval.in/388582)
chris2 has quit [Ping timeout: 272 seconds]
<volty> (I recalled -- cycle)
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<volty> >> e = ('a'..'d').to_enum.cycle.to_a(2)
<ruboto> volty # => ["a", "b", "c", "d", "a", "b", "c", "d"] (https://eval.in/388583)
<fenjamin> beautiful
towski_ has joined #ruby
<fenjamin> so ("a".."z").cycle.to_a(4)
chris2 has joined #ruby
<volty> 4 times 'a'..'z'; but you should use next -- if I understood what you need
pyon has joined #ruby
<havenwood> >> 'a'.upto('z').take 4
<ruboto> havenwood # => ["a", "b", "c", "d"] (https://eval.in/388584)
pyon is now known as ninja-maid-robot
<havenwood> *cycle
<havenwood> That's an important part. >.>
malconis has quit [Ping timeout: 252 seconds]
<volty> neither to_enum necessary
malconis has joined #ruby
last_staff has quit [Quit: last_staff]
charliesome has joined #ruby
<volty> >> (1..3).cycle.take 5
<ruboto> volty # => [1, 2, 3, 1, 2] (https://eval.in/388585)
towski_ has quit [Ping timeout: 255 seconds]
yayfoxes_ has quit [Quit: WeeChat 1.0.1]
Al3ks has quit [Remote host closed the connection]
<volty> what I discovered and like is the gsub with hash ( >= ruby-1.9.2)
<Ox0dea> volty: Did you recently find a use case?
<volty> Ox0dea: yes, just now, glob2regex
spider-mario has quit [Read error: Connection reset by peer]
<fenjamin> >> e = ('a'..'d').to_enum.cycle; 5.times { p e.next }
<ruboto> fenjamin # => "a" ...check link for more (https://eval.in/388586)
<fenjamin> returns <Enumerator:00000273427384>
<volty> def glob2regex(s); Regexp.new"^#{s.gsub!(/\.|\?|\*|{}/, '.' => "\\.", '?' => '.', '*' => ".*")}$"; end; p glob2regex 'qt_*.rb'
<volty> >> def glob2regex(s); Regexp.new"^#{s.gsub!(/\.|\?|\*|{}/, '.' => "\\.", '?' => '.', '*' => ".*")}$"; end; p glob2regex 'qt_*.rb'
<ruboto> volty # => /^qt_.*\.rb$/ ...check link for more (https://eval.in/388587)
leafybasil has quit []
<fenjamin> volty - returned an array without shifting letters
noob has quit []
Rollabunna has joined #ruby
<volty> fenjamin: I can't understand what you really want. Shift or rotate?
aspiers has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<volty> [:a, :b, :c, :d] to [:c, :d, :a, :b] ?
thiagovsk has quit [Quit: Connection closed for inactivity]
<fenjamin> shift - ("a".."d") returns ["d","e","a","b","c"]
<Ox0dea> fenjamin: You're implementing the Caesar cipher, yes?
<fenjamin> yes
<volty> >> ('a'..'d').rotate 2
<ruboto> volty # => undefined method `rotate' for "a".."d":Range (NoMethodError) ...check link for more (https://eval.in/388592)
<volty> >> ('a'..'d').to_a.rotate 2
<ruboto> volty # => ["c", "d", "a", "b"] (https://eval.in/388593)
<Ox0dea> fenjamin: Then Array#rotate is the method you seek.
Rollabunna has quit [Ping timeout: 248 seconds]
<fenjamin> >>('a'..'z').to_a.rotate 4
<ruboto> fenjamin # => ["e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", ...check link for more (https://eval.in/388594)
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
Scroff has joined #ruby
matugm has joined #ruby
matugm has quit [Changing host]
matugm has joined #ruby
michael_mbp has quit [Excess Flood]
rbennacer has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
ItSANgo has joined #ruby
michael_mbp has joined #ruby
vasilakisfil_ has joined #ruby
mdw has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Remote host closed the connection]
Tau has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
<Ox0dea> >> -> s { s.tr (a=[*?a..?z]).join, a.rotate(13).join }['abjurer']
<ruboto> Ox0dea # => "nowhere" (https://eval.in/388598)
FernandoBasso has quit [Quit: WeeChat 1.2]
idafyaid has quit [Ping timeout: 264 seconds]
bf4 has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<athos_diddy> ok i updated brew but i still don't see ruby 2.2.2 with rbenv install --list i'm on mac osx
mengu has joined #ruby
mengu has joined #ruby
balazs has joined #ruby
<volty> what has brew to do with rbenv "knowledge" of available ruby versions ?
mengu has quit [Remote host closed the connection]
<bougyman> i thought rbenv didn't install rubies?
* bougyman confused
sandstrom has joined #ruby
<athos_diddy> i'm running upgrade again maybe it'll work now
senayar has joined #ruby
<bougyman> when I was comparing rbenv and rvm one of the big diffs was that rbenv didn't install rubies.
<bougyman> this was a few years back.
tkuchiki has joined #ruby
<athos_diddy> yay
<athos_diddy> painful configuration lessons
dgutierrez1287 has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 272 seconds]
pontiki2 has joined #ruby
pontiki2 has quit [Client Quit]
millerti has joined #ruby
revoohc has joined #ruby
pontiki_ has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
olas has quit [Quit: ZNC - http://znc.in]
revoohc has quit [Client Quit]
pontiki has quit [Quit: <poit>]
tkuchiki has quit [Remote host closed the connection]
<pontiki_> hi
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pontiki_ is now known as pontiki
<Ox0dea> pontiki: Your nick makes me think of the Caribbean.
<pontiki> really?
<pontiki> it's "mouse" in greek