<Radar>
kke: that code defines a top level constant called FOO twice.
<Radar>
you might think that klass1::FOO would work, but it does not.
<Radar>
can I ask: why are you defining classes like this?
kerunaru has joined #ruby
TomyWork has joined #ruby
dbz has quit [Ping timeout: 276 seconds]
dbz has joined #ruby
Burgestrand has joined #ruby
dbz has quit [Remote host closed the connection]
Bish has joined #ruby
<Bish>
what would i use if i use ruby only to invoke a script?
<Bish>
system("") ?
<Bish>
i want to run unicorn from ruby.. (because i can calculate the paths only in ruby)
<Burgestrand>
Bish exec, I'd say
<Burgestrand>
Bish it replaces the currently running process with the one invoked
<Bish>
that sounds good
<Bish>
who in the heck came up with that config.ru shit it sucks balls
<Bish>
anyone else hates it?
postmodern has quit [Quit: Leaving]
ferhaty has joined #ruby
mikecmpbll has joined #ruby
Guest23176 has joined #ruby
ferhaty has quit [Max SendQ exceeded]
DTZUZO has quit [Ping timeout: 272 seconds]
hahuang65_ has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
<kke>
radar: dynamic loading of stuff with a light DSL, something like `Addon.describe "addon_name" { def execute { } }`. I think i need to do something fancier than `Class.new(AddonBase, &block)` to allow them to have their own constants :(
<rindolf>
i cannot find bigdecimal even tho it is installed
Burgestrand has joined #ruby
Beams has joined #ruby
nowhere_man has joined #ruby
<kke>
rindolf: when using bundle, you can't use any gems that are not listed in the gemfile. so if you `gem install bigdecimal` and then do `bundle exec bin/validate`, it doesn't see the bigdecimal because it's not listed in the gemfile.
<rindolf>
kke: ok
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
<rindolf>
kke: thanks
<kke>
Bish: yes, config.ru and ball sucking are things that constantly appear together. "rackup" joins in occasionally.
t0xik has quit [Quit: Connection closed for inactivity]
Dbugger has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
tristanp has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
tty has quit [Quit: tty]
t0xik has joined #ruby
tty has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
yohji has joined #ruby
<kke>
hmm do i have to use some sort of ruby2ruby thing then. or somehow try to snatch the source using block.source_location and class_eval that as a string
ikbenhet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperTux88 has quit [Ping timeout: 245 seconds]
Zarthus has quit [Ping timeout: 256 seconds]
Zarthus has joined #ruby
SuperTux88 has joined #ruby
GodFather has joined #ruby
ikbenhet has joined #ruby
venmx has joined #ruby
alex`` has joined #ruby
alex`` has quit [Client Quit]
alex`` has joined #ruby
Burgestrand has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
drale2k_ has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
AJA4350 has joined #ruby
GodFather has joined #ruby
ujjain has quit [Ping timeout: 268 seconds]
shadeslayer has quit [Ping timeout: 260 seconds]
kloeri has quit [Ping timeout: 610 seconds]
alex`` has quit [Quit: WeeChat 2.2]
shadeslayer has joined #ruby
DTZUZO has joined #ruby
masterasia has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
peacetreaty has joined #ruby
<peacetreaty>
hi
faitswulff has joined #ruby
nowhere_man has joined #ruby
<apeiros>
hi peacetreaty
<livcd>
i apeiros
<peacetreaty>
I wrote a gem that offers bindings for the linux statx() systemcall. I used and modified a lot of code of the File::Stat-Class(ruby-core/file.c). can anybody help me out with some questions about the licensing?
onizu has joined #ruby
<apeiros>
:-/
<onizu>
hello
<apeiros>
IANAL
<onizu>
Does anyone work with sketchup ruby?
<livcd>
Anyone tried imba ?
<livcd>
I never got into coffeescript but imba looks nice
t0x has quit [Quit: Connection closed for inactivity]
thy0 has joined #ruby
Zaab1t has joined #ruby
kloeri has joined #ruby
jottr has joined #ruby
faitswulff has quit [Remote host closed the connection]
<RedNifre>
darix I looked at those, they look pretty heavy weight... I just want to send tweets, nothing more... so there is no simpler way than to get one of those huge libraries?
dbz has joined #ruby
<Mike11>
darix: I think that an expand_path followed by start_with? is good enough for me
<Mike11>
thanks darix peacetreaty :)
<RedNifre>
oh well, heavy twitter gem it is then.
<darix>
RedNifre: well you need to handle oauth and all the jazz :)
<RedNifre>
hm, I guess once you handled oauth and all that, just doing a "you can send tweets" library with that feels like wasted work :)
mynameisdebian has joined #ruby
mniip has quit [Ping timeout: 608 seconds]
heyimwill has joined #ruby
jtperreault has joined #ruby
Guest23176 has quit [Ping timeout: 272 seconds]
mynameisdebian has quit [Remote host closed the connection]
Mike11 has quit [Quit: Leaving.]
dbz has quit [Remote host closed the connection]
<lazyatom>
Hey folks -- if you've been meaning to check out Mastodon, I've just set up an instance especially for us: https://ruby.social
dbz has joined #ruby
r29v has quit [Quit: r29v]
elomatreb_ has joined #ruby
MuffinPimp_ has joined #ruby
ghoti_ has joined #ruby
tfitts_ has joined #ruby
argoneus_ has joined #ruby
funnel_ has joined #ruby
mynameisdebian has joined #ruby
irick has quit [*.net *.split]
peacetreaty has quit [*.net *.split]
funnel has quit [*.net *.split]
priodev has quit [*.net *.split]
elomatreb has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
jackrandom has quit [*.net *.split]
tfitts has quit [*.net *.split]
argoneus has quit [*.net *.split]
go|dfish has quit [*.net *.split]
syndikate has quit [*.net *.split]
Junaos has quit [*.net *.split]
ghoti has quit [*.net *.split]
livcd has quit [*.net *.split]
woodruffw has quit [*.net *.split]
MuffinPimp_ is now known as MuffinPimp
tfitts_ is now known as tfitts
kevinsjoberg has quit [Ping timeout: 272 seconds]
funnel_ is now known as funnel
woodruffw has joined #ruby
rindolf has quit [Ping timeout: 265 seconds]
syndikate has joined #ruby
reber has quit [Remote host closed the connection]
mensvaga has quit [Quit: Leaving.]
<apeiros>
hi darix. what's up?
mynameisdebian has quit [Ping timeout: 244 seconds]
<mjacob>
havenwood: i'm usually using pry, but would be fine using another tool
<havenwood>
mjacob: Replace `warn 'OMGWTFBBQ'` in my ^ example with `binding.pry`.
<havenwood>
mjacob: And Mushroom with your class name. :-)
<mjacob>
havenwood: would it work with "trace.method_id == :instantiate"?
<havenwood>
mjacob: Yes, one of those will follow each :new.
<havenwood>
mjacob: #<TracePoint:c_call `new'...> followed by #<TracePoint:c_call `initialize'...>
TheBloke- has quit [Ping timeout: 240 seconds]
<havenwood>
mjacob: But :initialize, not :instantiate.
<havenwood>
mjacob: And then it's an instance of Mushroom, not the Class Mushroom. But you can do it for whatever receiver and method you'd like.
<mjacob>
havenwood: sorry, i'm a bit confused about all the different ways of instantiating an object. ;) my problem is that activerecord creates objects in a way that 'initialize' is not called
IanMalcolm has joined #ruby
<mjacob>
ah, i think it's the 'allocate' method
<havenwood>
mjacob: Ahh.
<havenwood>
mjacob: Is allocate an instance or class method?
<havenwood>
I think it's a class method, but I can't recall.
<havenwood>
mjacob: if it was an instance method: binding.pry if trace.self.instance_of?(Mushroom) && trace.method_id == :allocate
<havenwood>
mjacob: or i think it's a class method: binding.pry if trace.self == Mushroom && trace.method_id == :allocate
Guest23176 has quit [Ping timeout: 240 seconds]
<mjacob>
yes, activerecord calls klass.allocate, so it should be a class method
Guest23176 has joined #ruby
<havenwood>
mjacob: Or maybe just alias :allocate to :old_allocate and define and :allocate method with a binding.pry.
<havenwood>
mjacob: Or subclass and use super. Or the observer pattern.
<mjacob>
i'll try it tomorrow, in any case thank you for pointing me to TracePoint
<havenwood>
mjacob: If it's just debugging, I'd personally probably alias and redefine allocate with a binding.pry.
<havenwood>
mjacob: No prob!
<havenwood>
super; binding.pry
FernandoBasso has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheBloke has joined #ruby
lazyatom has quit [Quit: Connection closed for inactivity]
druonysus has joined #ruby
r29v has quit [Quit: r29v]
TheBloke has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
IanMalcolm has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest23176 has quit [Ping timeout: 260 seconds]
ziggylazer has joined #ruby
r29v has joined #ruby
r29v has quit [Client Quit]
nofxx_ has joined #ruby
arooni has quit [Excess Flood]
nofxx has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
arooni has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
herbmillerjr has joined #ruby
s2013 has joined #ruby
TheBloke has joined #ruby
dbz has joined #ruby
t0x has quit [Quit: Connection closed for inactivity]
Guest23176 has joined #ruby
apeiros has quit []
r29v has joined #ruby
hahuang65_ has quit [Read error: Connection reset by peer]
Guest23176 has quit [Ping timeout: 240 seconds]
Guest23176 has joined #ruby
eblip is now known as eb0t_
JoshS has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weaksauce has quit [Read error: Connection reset by peer]
mrush has joined #ruby
nofxx_ has quit [Remote host closed the connection]