<yorickpeterse>
"The use of `eval` is a serious security risk."
<yorickpeterse>
GEE
quimrstorres has joined #ruby-lang
<yorickpeterse>
"Method has too many lines. [11/10"
<yorickpeterse>
pffft
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby-lang
<yorickpeterse>
zenspider: yeah, it's a bit of a shamde Ragel's repo will no longer be available, but I wouldn't be surprised if Adrian turns around at some point
<yorickpeterse>
at least the code itself is still FOSS
eikood has quit [Remote host closed the connection]
Voker57 has quit [Ping timeout: 255 seconds]
face has joined #ruby-lang
faces has quit [Ping timeout: 240 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
face has quit [Ping timeout: 240 seconds]
face has joined #ruby-lang
Iskarlar has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mreq has joined #ruby-lang
hellangel7 has joined #ruby-lang
Squarepy has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
stef204 has joined #ruby-lang
stef204 has quit [Client Quit]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
<Silex>
hello, I'll need to handle events and have the user script "logic" reguarding these events through some web interface. The kind of logic is "IF event is foo AND has already received event foo less than 5 minutes ago, THEN send message to bar"
<Silex>
I'm asking for suggestions/libs that'd help me write such interfaces... so far I'm thinking writing a "simple mode" with simple rules like "if message is foo then send message to bar" and an "advanced mode" where you can write some ruby
sepp2k has joined #ruby-lang
<Silex>
and in teh ruby script some variables are already bound, like CURRENT_EVENT and PREVIOUS_EVENTS or smth
<Silex>
is there a ruby library for writing rules about logic? something serializable
<yorickpeterse>
Silex: you're basically looking for a state machine
<jhass>
and a method gets redefined, it's basically a new method taking the old name
Iskarlar has joined #ruby-lang
<jhass>
a module gets reopened/extended
<yorickpeterse>
freedrull: one of many reasons why bugs.ruby-lang.org sucks
<yorickpeterse>
besides it being really slow and confusing to use
nathanstitt has joined #ruby-lang
<freedrull>
well, the language barrier is not really the website's fault
<freedrull>
but yeah its also slow
<jhass>
what I can gather from google translate is that the report reasoned its addition with a usecase for Timeout::timeout and that usecase was considered invalid and so the issue was rejected
<freedrull>
ah
<freedrull>
ok yeah seems like it
snoopybbt has quit [Quit: leaving]
<jhass>
I also could gather that they're open to a new proposal if it includes a better usecase
<freedrull>
can't really figure out why they thought usecase wasn't good enough
<freedrull>
rubygems.org *needs* to have an abandoned gems policy
<freedrull>
well at least i learned how to use $ in pry
<jhass>
from the contained readme: "A Gem which includes vendor Javascript, Stylesheets, Images (Subtle Patterns), Mailchimp Email templates plus Rails helpers to deal with HTML5 tags, Metatags, .. "
<kalleth>
kitchen sink gem then
<whitequark>
as a kitchen sink I find that offensive
<ljarvis>
derp
<ljarvis>
moin
hackeron has quit [Ping timeout: 246 seconds]
hackeron has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
GBrawl has quit [Quit: (null)]
tkuchiki has joined #ruby-lang
tkuchiki_ has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
mkaesz has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
Abuh_ has quit [Ping timeout: 272 seconds]
Abuh has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
q_leonetti has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
spastorino has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 255 seconds]
hedgey has joined #ruby-lang
hedgey has quit [Client Quit]
chills42 has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse>
whitequark: so can I put my dirty dishes on/in you?
miqui has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby-lang
jgpawletko has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
spuk has quit [Ping timeout: 258 seconds]
dagda1 has joined #ruby-lang
spuk has joined #ruby-lang
sol has joined #ruby-lang
sol is now known as Guest48968
solars has quit [Ping timeout: 240 seconds]
hramrach_ has quit [*.net *.split]
ledestin has quit [*.net *.split]
hachiya has quit [*.net *.split]
vieq has quit [*.net *.split]
lguardiola_ has quit [*.net *.split]
llakey has quit [*.net *.split]
Kabaka has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
hachiya has joined #ruby-lang
ledestin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vieq has joined #ruby-lang
lguardiola has joined #ruby-lang
llakey has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kabaka has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
kiddorails has joined #ruby-lang
<yorickpeterse>
interesting results so far of my MySQL vs Pg shootout: MySQL is generally faster at a simple COUNT(primary-key), but Pg beats myself in pretty much everything else
<yorickpeterse>
it looks like Pg is on average 1,3 - 1,5 times faster than MyFirstSQL in my queries
<banister>
yorickpeterse whqt about in nested queries, as there's sophisticated rewriting/optimization that can happen there
<yorickpeterse>
banister: don't have any of those yet, good thinking
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar_ has joined #ruby-lang
<yorickpeterse>
did have a concurrent benchmark (5 queries in 5 threads), there Pg is also faster
<yorickpeterse>
(that's with a connection pool)
<whitequark>
yorickpeterse: COUNT is a known thing with postgres
<solars>
jhass, sorry I had a problem with my client :)
<solars>
jhass, ah.. I feared so :/
eikood has quit [Client Quit]
eikood has joined #ruby-lang
kalehv has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
<jhass>
solars: I'd try N:S:O:Dir.entries which seems to return an array of N:S:P:Name's who have an attributes attribute which might contain the mdate and be faster
lcdhoffman has quit [Quit: lcdhoffman]
eikood has quit [Client Quit]
<jhass>
since you already have the attribute with one query
<jhass>
if you're lucky
<solars>
hm I think i will do it differently
eikood has joined #ruby-lang
<solars>
it's basically reports that are scheduled and luckily include the date in the filename
<solars>
so I can access the file directly, assuming it is there
<solars>
hm ok it also contains a random ID
<solars>
I can use wildcards, right? :)
<solars>
something like 'get 2014-10-01-*.csv'
rahul_j has quit [Quit: rahul_j]
lcdhoffman has joined #ruby-lang
arBmind has joined #ruby-lang
<jhass>
with glob, yeah, I'm not sure if that's faster than just fetching the entire filelist and processing it locally though
dangerousdave has joined #ruby-lang
[spoiler] has joined #ruby-lang
<solars>
it depends on what exactly glob fetches, only a meta object of the file?
NoNMaDDeN has joined #ruby-lang
<solars>
on the other hand, if the directory contains a lot of files, this will probably slow with glob..
<solars>
hmm but file.open doesn't seem to accept wildcards
shinnya has joined #ruby-lang
kiddorails has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
<solars>
nevermind, I think I have it
rippa has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 255 seconds]
ledestin_ is now known as ledestin
workmad3 has joined #ruby-lang
humd1ng3r has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
jimbach has joined #ruby-lang
<solars>
jhass, do you know how to get the content of these entry objects returned by glob?
goodcodeguy has joined #ruby-lang
relix has joined #ruby-lang
eikood has quit [Quit: Leaving]
hramrach_ has joined #ruby-lang
eikood has joined #ruby-lang
ledestin_ has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby-lang
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imkmf has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
solars has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
thagomizer has joined #ruby-lang
kalopsian has quit [Ping timeout: 255 seconds]
qba73 has quit []
RobertBirnie has joined #ruby-lang
kalopsian has joined #ruby-lang
Noonipoony has joined #ruby-lang
<Noonipoony>
Hello? any one?
lcdhoffman has joined #ruby-lang
snoopybbt has joined #ruby-lang
<godd2>
There are people here
<Noonipoony>
no.1
goodcodeguy has joined #ruby-lang
<Noonipoony>
who is no.2?
<Noonipoony>
I like ruby. but it's hell in the Windows.
<jhass>
learn to like linux ;P
<havenwood>
Noonipoony: What problems are you running into?
<Noonipoony>
Yes I considered using the ubuntu.
<Noonipoony>
But my device is not compatible with it.
<godd2>
FreeBSD works on everything except your toaster.
hahuang65 has joined #ruby-lang
momomomomo has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ender|dkm has quit [Ping timeout: 255 seconds]
<Noonipoony>
Windows in ruby.. has a lot of have the problem at the Library dependency .
<Noonipoony>
like.. ffi. readline. so on.
hahuang61 has joined #ruby-lang
<godd2>
ffi can be picky.
elico has joined #ruby-lang
hahuang65 has quit [Ping timeout: 244 seconds]
elia has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Client Quit]
<Noonipoony>
Yes picky...
<Noonipoony>
but developer need to spend a lots of time for each dependency problem.
<Noonipoony>
But I like ruby.
hahuang61 has quit [Client Quit]
hahuang65 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 255 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbardin has joined #ruby-lang
Noonipoony has quit []
JohnBat26 has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
Noonipoony has joined #ruby-lang
quimrstorres has joined #ruby-lang
rippa has joined #ruby-lang
<jhass>
Noonipoony: what's incompatible? Did you consider VirtualBox at least?
mistym has joined #ruby-lang
AKASkip has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
snoopybbt has quit [Ping timeout: 256 seconds]
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
<Noonipoony>
Of course I tried the Virtualbox and Vmware.
<Noonipoony>
But developer need to switch both box (windows and linux).
<Noonipoony>
I think this is inefficient.
<Noonipoony>
I think best solution is Ruby must compiled in Visual Studio, not mingw environment.
bin7me has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0.1]
fusillicode has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
nertzy has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mreq has joined #ruby-lang
q_leonetti has joined #ruby-lang
hellangel7 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<havenwood>
Noonipoony: I think IronRuby just never reached a critical mass to garner ongoing development. But it may still be useable, dunno: http://ironruby.net
q_leonetti has quit [Client Quit]
tallgirltaadaa has joined #ruby-lang
<tallgirltaadaa>
hello
kiddorails has joined #ruby-lang
jbardin has quit [Quit: jbardin]
lcdhoffman has quit [Quit: lcdhoffman]
<tallgirltaadaa>
i have a question if anyone could spare a minute
<whitequark>
havenwood: it's not
<jhass>
tallgirltaadaa: just ask it and you'll find out
<whitequark>
I mean, it's not usable, no.
<havenwood>
whitequark: ah, too bad
jgpawletko has quit [Quit: jgpawletko]
<whitequark>
microsoft used to want this but then changed its mind, took out ironruby back and shot it.
<whitequark>
same with python.
yfeldblum has joined #ruby-lang
ender|dkm has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jgpawletko has joined #ruby-lang
<havenwood>
Noonipoony: consider JRuby?
<tallgirltaadaa>
i am building a small store in rails, ... and I have a product model, that has_many options... in the product_controller I have added 3.times {@product.product_options.build} the problem is that...there are 3 spaces to enter options, but if you only need one two options they third still gets into the db... just as an empty field.. is there any way to get around this
<whitequark>
tallgirltaadaa: #rubyonrails
<tallgirltaadaa>
yes i have tried
<tallgirltaadaa>
but i cant make any posts in there
<tallgirltaadaa>
im not sure why
<tallgirltaadaa>
it seems private
<tallgirltaadaa>
someone once said i need to register my nick
<havenwood>
tallgirltaadaa: /msg nickserv help register
<tallgirltaadaa>
but freenode is not very user friendly so i dont know how to do that
<Noonipoony>
Nope not tryed yet. Is it same as the Ruby?
apeiros has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
jbardin has joined #ruby-lang
imkmf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Noonipoony>
JRuby Downloading..
<Noonipoony>
Thanks I'll be back (:
mikecmpbll has joined #ruby-lang
ruurd has joined #ruby-lang
<tallgirltaadaa>
thank you ljarvis this worked:... accepts_nested_attributes_for :product_options, reject_if: proc { |attributes| attributes['option_name'].blank? }
tylersmith has joined #ruby-lang
<havenwood>
Noonipoony: JRuby is an implementation of the Ruby language on the JVM. It follows the reference C implementation. It's pretty popular for a number of reasons.
<ljarvis>
|jemc|: basic ones are really easy, custom ones (like ones yorickpeterse needs) just end up as ongoing projects that don't have a finish.. so it really depends on what you need
<yorickpeterse>
yup, and they're quite fragile too
<ljarvis>
multi-lingual date parser sounds interesting
<|jemc|>
ljarvis: yeah, I'm glad it's not something I actually plan to maintain
<yorickpeterse>
depending on your document queries a simple change can mess everything up
<yorickpeterse>
ljarvis: basically the secret sauce of that is a YAML dictionary, and String#gsub :P
<ljarvis>
|jemc|: yeah, the worst part is when content changes
<ljarvis>
I wrote a big one a couple years ago
<|jemc|>
yep, I imagine so
<postmodern>
spidr is actually extremely customizable
<yorickpeterse>
Worth mentioning is that we don't really do spidering, we always have an initial URL to bootstrap the process
<postmodern>
well by default it will try to spider everything, but you can register custom callbacks for certain URLs/pages, and even enqueue custom links
<ljarvis>
then spider from there :D
<yorickpeterse>
basically it's: go to bootstrap URL -> go page 1 -> go to page 2 -> etc
<yorickpeterse>
for which we typically try to use the pagination system, if present
<|jemc|>
yorickpeterse: that's more along the lines of what I need to do
<postmodern>
right, you can pre-populate the links queue in spidr
<postmodern>
Spidr.start_at(...)
<yorickpeterse>
lemme grab some real-world code
territorial is now known as robespierre
s1kx_ has quit [Read error: Connection reset by peer]
dagda1 has quit [Read error: Connection reset by peer]
<yorickpeterse>
so a loop + some nokogiri stuff
<yorickpeterse>
all CSS selectors (soon to be moved over to XPath) reside in a separate YAML file
dagda1 has joined #ruby-lang
<yorickpeterse>
The end idea is that you can change the selectors without having to change the code, though with CSS this isn't always possible (hence I want to move over to XPath)
<yorickpeterse>
for small stuff you can basically do what the #each method does, probably don't need the rest
<yorickpeterse>
so tl;dr core concept is quite simple
dagda1 has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
<|jemc|>
yorickpeterse: thanks for the gist; I'll start there
<yorickpeterse>
ljarvis: regarding our date parser, we support English, Dutch, Spanish, French, Japanese, Russian and Cebuano (lol only one customer or so needed this)
<|jemc|>
except with s/nokogiri/oga
<|jemc|>
:)
<yorickpeterse>
|jemc|: yeah that's also a goal over here
<|jemc|>
I figured
<yorickpeterse>
We use this setup for, I think 55 different websites
<yorickpeterse>
though 41 of those are still handled using crappy code
<yorickpeterse>
new framework + redoing 14 websites took a year or so
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
<yorickpeterse>
of course those websites change in the mean time, so sometimes you have to partially start over
mcantor has joined #ruby-lang
elia has joined #ruby-lang
<yorickpeterse>
Though we now have a setup that for the most part handles itself quite well
<mcantor>
Is there an accepted best practice for handling optional debug stream output during minitest cases?
<mcantor>
Should I just use Logger and an environment variable to tell it whether to print to STDOUT?
emmesswhy has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<yorickpeterse>
mcantor: you could probably do something like `logger = Logger.new(STDERR); logger.level = Logger::UNKNOWN`
robbyoconnor has joined #ruby-lang
<yorickpeterse>
then set level to Logger::DEBUG based on some env var
<yorickpeterse>
|jemc|: we also have some stuff built-in for, uhh, evading the "internet police" :P
territorial has quit [Read error: Connection reset by peer]
<mcantor>
yorickpeterse: Makes sense
stamina has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Client Quit]
<yorickpeterse>
Fun trivia: this project used to be hell to work on, everybody hated it. Now it's probably one of the most convenient ones to work with
<yorickpeterse>
also one of my most favourite ones, though websites renaming element classes gives me grey hairs at times
<mcantor>
yorickpeterse: Why STDERR?
<yorickpeterse>
mcantor: so you can redirect it if you want, with supressing test output
<yorickpeterse>
unless that also goes to STDERR
<yorickpeterse>
typically debug info should go to STDERR for those reasons
<mcantor>
Oh, right. Thank you!
<mcantor>
yorickpeterse: Will UNKNOWN squelch all output?
<yorickpeterse>
mcantor: yes
<mcantor>
Sweet.
<yorickpeterse>
well unless you actually log a message with that level
<yorickpeterse>
but it's the highest level available
dagda1 has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
<mcantor>
yorickpeterse: Actually, what I'd really like to do is log to an intermediary stream by default, which will be blasted to STDERR _AFTER_ my suite is finished.
<mcantor>
I find the "output interspersed among dots" approach to be terribly confusing.
mistym has joined #ruby-lang
<yorickpeterse>
Oh right
<yorickpeterse>
hmm
<yorickpeterse>
You could just push strings into some array, then display that at the end of the test suite
dagda1 has quit [Client Quit]
<yorickpeterse>
but I'm not sure if you can do so without abusing globals
<mcantor>
What if I just passed a StringIO.new to Logger.new?
jbardin has quit [Quit: jbardin]
<yorickpeterse>
euh, that could work too I think
<yorickpeterse>
just make sure you rewind it before reading it
<mcantor>
yorickpeterse: I was just starting to struggle with exactly that. Thanks again, you are an angel
symm- has quit [Ping timeout: 272 seconds]
<mcantor>
Huh, weird. I'm still not getting any output when I do out.rewind; out.read
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
q_leonetti has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
j4cknewt has joined #ruby-lang
kalopsian has quit [Ping timeout: 260 seconds]
elia has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
ta has joined #ruby-lang
eggie5 has joined #ruby-lang
elia has joined #ruby-lang
j4cknewt has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
<eggie5>
I have few different data sources I need to import into my local database. Each source and more in the future will have different formats so one import script won't work. I"ll have to write an import script for each data source to insert into my DB. What design pattern is this?
GBrawl has joined #ruby-lang
<yorickpeterse>
eggie5: "programming"
<yorickpeterse>
There's no specific pattern for that as far as I'm aware of
<jhass>
eggie5: you might want to make sure to define a common data structure in ruby and use a common writier to the database from that structure
<eggie5>
yorickpeterse: it's like I'm writing an "adapter" for every datasource in order to map the attributes to the columns in my DB -- but I don't want to think it's an adapter pattern just b/c the word fits...
mistym has joined #ruby-lang
mcantor has joined #ruby-lang
Lewix has joined #ruby-lang
<jhass>
eggie5: just write something, in good code patterns just appear and they just help communicating and reasoning about the code or to take the last step
<jhass>
don't be afraid to not think about them at all at the design stage
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
especially for such a simple project
<|jemc|>
eggie5: if you're looking for a 'standard' pattern name that describes what you're thinking: 'strategy pattern', perhaps?
<|jemc|>
but if you already know how you want the thing to work, you're kind of past the point of needing a 'pattern', imo
MichD is now known as michd
eikood has quit [Quit: Leaving]
<eggie5>
i jsut want a way to organize all these import scripts, so that they have some structure/pattern -- right now I just have a bunch of import scripts that parse the datasource and save to the DB, but there is not common interface to the DB when I feel there should be
quimrstorres has joined #ruby-lang
<|jemc|>
eggie5, well, start looking for commonalities and refactoring into a common interface
<|jemc|>
it sounds like you already know what you need to do
mcantor has quit [Ping timeout: 244 seconds]
<|jemc|>
:)
eikood has joined #ruby-lang
<eggie5>
|jemc|: i remember I used Strategy once for a calculator hmwk in school
solars has quit [Ping timeout: 245 seconds]
mcantor has joined #ruby-lang
elico has quit [Quit: Leaving.]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
mcantor has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
GBrawl has quit [Quit: (null)]
charliesome has joined #ruby-lang
eikood has quit [Quit: Leaving]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CodeBunny has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
zzach has quit [Ping timeout: 245 seconds]
zzach has joined #ruby-lang
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
dagda1 has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
CodeBunny has left #ruby-lang ["CodeBunny needs a carrot. Be back later."]
CodeBunny has joined #ruby-lang
jimbach has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
<CodeBunny>
Can someone help me with rake and getting an rspec task to build?
loinclot_ has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 265 seconds]
arBmind has quit [Ping timeout: 250 seconds]
klmlfl has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
klmlfl has joined #ruby-lang
<womble>
Clearly we're not communicating well. It looks like I can't help you.
chris2 has quit [Ping timeout: 272 seconds]
masterkorp has joined #ruby-lang
<masterkorp>
hello
chouhoul_ has quit [Remote host closed the connection]
<masterkorp>
I am studying a ruby code project, basically i need to know when a specific method is called on the application
territor_ has quit [Remote host closed the connection]
<womble>
masterkorp: Run it in a debugger and set a breakpoint, or else do a little printf debugging and add a `puts` statement at the beginning of the method of interest.
jimbach_ has quit [Remote host closed the connection]
<masterkorp>
Is there any specific tool for that ?
<masterkorp>
womble: can you point me to any documentation or a pratical example ?
mikecmpbll has quit [Quit: i've nodded off.]
mcantor has quit [Ping timeout: 256 seconds]
<womble>
masterkorp: A specific tool for what? Adding a `puts` statement?
emmesswhy has joined #ruby-lang
shinnya has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
<CodeBunny>
masterkorp: Add something in your method that writes out to the console at the point in your program that you are interested in
<womble>
Then either the method never got called, or something's capturing stdout and redirecting it somewhere else.
<womble>
The brutal solution to discover which it is is to drop an `exit 69` after the `puts`; if the app exits, then something's eating stdout. If it doesn't, then either the method's not being called, or something's catching `SystemExit` (and if they are, please report them for "re-education")
tylersmith has joined #ruby-lang
<masterkorp>
thanks
<masterkorp>
i know nothing about ruby so
<womble>
You're certainly jumping in at the deep end.
|jemc| has quit [Quit: Page closed]
jbardin has quit [Quit: jbardin]
j4cknewt has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
j4cknewt has joined #ruby-lang
emmesswhy has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
elia has quit [Client Quit]
emmesswhy has quit [Quit: This computer has gone to sleep]
rcvalle has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby-lang
Abuh has quit [Ping timeout: 265 seconds]
kalehv has joined #ruby-lang
M3M0CooL has quit []
banister is now known as banisterfiend
klmlfl has quit []
klmlfl has joined #ruby-lang
slawrence00 has quit [Ping timeout: 250 seconds]
klmlfl has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
pastuxso has quit [Quit: Connection closed for inactivity]
<womble>
It means you can call methods named `logger`, `settings`, etc on an instance of the class and get back the value of the instance variable with the same name, and you can set the instance variable with `logger = `, `settings =`, etc
<masterkorp>
i see, just reading about it
<masterkorp>
thanks !
emmesswhy has quit [Quit: This computer has gone to sleep]