rowanu has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
Guest74886 is now known as segy
<flyinprogramer>
very new to the ruby community, and i'm confused what's the best practice regarding dependency declaration for creating a gem that uses bundler, but deployed to the RubyGems server… meaning is it best to use the Gemspec notation of adding dependencies, [gem.add_runtime_dependency] or to use bundler groups and the gemfile -- what is the best practice? [sorry if this is the wrong room]
perryh_away is now known as perryh
<drbrain>
flyinprogramer: if it's a gem you should put them in the gemspec
<flyinprogramer>
meaning if i'm going to rollout my project as a gem, use the gemspec ?
tofaffy has quit [Ping timeout: 252 seconds]
<drbrain>
use gem.add_runtime_dependency
<flyinprogramer>
okk
<drbrain>
err, gemspec.add_runtime_dependency
<flyinprogramer>
ok, so i notice that there's both runtime and development -- how do you set the difference?
<flyinprogramer>
meaning, i'd want rspec for development, and not runtime, so how does that work??
<flyinprogramer>
but my project might use Faker for runtime
<flyinprogramer>
if that makes any sense/
<flyinprogramer>
?
blowmage has quit [Quit: Coyote finally caught me]
perryh is now known as perry
<drbrain>
flyinprogramer: if a user doesn't need rspec to use your software, but does need it to run your specs, rspec is a development dependency
<drbrain>
if you use Faker at runtime, it's a runtime dependency
andrewhl has joined #ruby-lang
neoesque has joined #ruby-lang
coryf has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
<flyinprogramer>
ok, so i get that, but then i guess i don't understand bundle groups? and how they can be helpful?
<flyinprogramer>
it seems like you can use them to define groups of "require" statements?
<flyinprogramer>
and all gems listed as "runtime" in the Gemspec are part of the :default group
<drbrain>
flyinprogramer: I don't use bundler, but I think bundle groups are more useful for applications that run in multiple environments
<drbrain>
like a rails app that runs in production, CI and development environments
<workmad3>
andrewvos: many projects assume that .join always means .join(''), so if you set the default separator in a project that uses something (e.g. rails) that makes that assumption, you're likely to get a lot of broken or wrong behaviour
<andrewvos>
So don't set the default seperator?
<workmad3>
andrewvos: that isn't something a library should dictate
<andrewvos>
Why is there even a $,
* workmad3
shrugs
<workmad3>
but there is, so given that, libraries shouldn't break because someone decides to set it
<andrewvos>
Oh great, some intricate little detail I have to remember.
cha1tanya has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
<workmad3>
that's the case when writing libraries
<workmad3>
it's what makes writing good libraries so hard
<workmad3>
or at least, good, reusable libraries
Criztian has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
outoftime has joined #ruby-lang
henrikhodne has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
outoftime has quit [Read error: Connection reset by peer]
<lzhz>
in the meantime, *'' continues to work ;)
voker57 has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
outoftime has joined #ruby-lang
voker57 has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
zenspider has joined #ruby-lang
rolfb has joined #ruby-lang
agilob has quit [Quit: leaving]
matti has quit [Quit: 8-X]
sandbags has quit [Remote host closed the connection]
outoftime has quit [Read error: Connection reset by peer]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
agilob has joined #ruby-lang
sora_h is now known as s0ra_h
<andrewvos>
A gem for caldav?
<zenspider>
a question with a verb?
<andrewvos>
Can anyone recommend a gem for doing caldav?*
<zenspider>
I believe rick denatalie wrote one
<zenspider>
I think it was called... caldav
tjadc has quit [Ping timeout: 248 seconds]
<andrewvos>
zenspider: There was one but it has been yanked.
outoftime has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
<rue>
It might be for caldav
<TTilus>
you never really know untill you try
<rue>
I must say, there should be a bit more integration software available for calendar stuff
<rue>
Or maybe there is in Rails
neoesque has quit [Quit: Bye!]
s0ra_h is now known as sora_h
pajama has quit [Remote host closed the connection]
toretore has joined #ruby-lang
outoftime has joined #ruby-lang
outoftime has quit [Read error: Connection reset by peer]
<mfn>
I've added config.ru in the root of my project/gem . Given my gem is intalled, I provide a bin/<app> wrapper for the sinatra app, but also a ./config.ru to integrate it somewhere else. How can the user figure out the path to the config.ru? I'm thinking about providing a switch to bin/<app> --configru which just echoes it back where the file physically is so it can be used ... does that sound sane?
fromhet has quit [Quit: fromhet]
<andrewvos>
mfn: Just write an example config.ru in the readme.
<andrewvos>
require "something"; run Something::Application
<andrewvos>
Probably looks like that ^
outoftime has joined #ruby-lang
<mfn>
andrewvos: hmm, but .. *thinking*
<andrewvos>
What?
<andrewvos>
Overthink things much?
rolfb has quit [Quit: Leaving...]
<mfn>
well, my current config.ru looks like "require 'rubygems'; require 'bundler'; Bundler.require; require './lib/myapp/server'; run myapp::server;" . I'm not sure how things would work when I put the config.ru just anywhere (i.e. outside my gems root directory) ...
<rue>
It should be just require "bundler/setup" or whatever, shouldn’t it?
<rue>
Have you checked how other gems handle it? I do suspect that an example .ru is probably common
<rue>
So you’d have a lib/yay.rb with the app (or at least requiring the app), so that you need not mess with relative paths
<rue>
Then your .ru is require "rubygems"; require "bundler/setup"; require "yay"; run Yay::App
<rue>
Or sommit
dmwuw_ has quit [Ping timeout: 265 seconds]
Hakon|mbp has joined #ruby-lang
ioga_wrk has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby-lang
<anildigital_work>
Is it good practice to use one line rescue statements?
<anildigital_work>
a = my_object.some_method rescue nil
<mfn>
thx, I'll try that. I tried to find examplary gems but it wasn't that easy. Wished there was kind of an interface like Debian package search which can also search content of packages but doesn't seem to be available on rubygems.org
zenspider has quit [Quit: Terminated with extreme prejudice - dircproxy 1.1.0]
<anildigital_work>
some code anylysis tools like 'flog' report Rescue block should not be empty.
yugui is now known as yugui_zzz
<andrewvos>
anildigital_work: Well they shouldn't
<andrewvos>
It's about as bad as On Error Resume Next.
ioga_wrk has joined #ruby-lang
zenspider has joined #ruby-lang
jrafanie has quit [Client Quit]
outoftime has quit [Read error: Connection reset by peer]
cbetta has quit [Quit: Computer has gone to sleep.]
henrikhodne has quit [Quit: Computer has gone to sleep.]
GarethAdams has quit [Quit: Leaving...]
GarethAdams has joined #ruby-lang
GarethAdams has quit [Client Quit]
mwjcomputing has joined #ruby-lang
vertroa has quit [Read error: Connection reset by peer]
outoftime has joined #ruby-lang
tjadc has quit [Ping timeout: 248 seconds]
outoftime has quit [Read error: Connection reset by peer]
vertroa has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
Berglund has joined #ruby-lang
Berglund has quit [Client Quit]
umttumt has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Hakon|mbp has quit [Quit: Leaving...]
outoftime has joined #ruby-lang
outoftime has quit [Read error: Connection reset by peer]
rolfb has joined #ruby-lang
Berglund has joined #ruby-lang
gsav has joined #ruby-lang
futurechimp has joined #ruby-lang
Harzilein has joined #ruby-lang
jxie has quit [Quit: leaving]
sailias has joined #ruby-lang
outoftime has joined #ruby-lang
cbetta has joined #ruby-lang
fgomez has joined #ruby-lang
Berglund has quit [Quit: Computer died.]
apeiros_ has joined #ruby-lang
Criztian has joined #ruby-lang
henrikhodne has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
enroxorz has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tommyvyo has joined #ruby-lang
mdickens has quit [Ping timeout: 250 seconds]
outoftime has quit [Ping timeout: 276 seconds]
pemeon has joined #ruby-lang
tomb_ has joined #ruby-lang
malev has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
mistym has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
sailias has quit [Ping timeout: 276 seconds]
kristofferrr has joined #ruby-lang
outoftime has joined #ruby-lang
sepp2k1 has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 265 seconds]
sockmonk has joined #ruby-lang
telemachus has joined #ruby-lang
hynkle has joined #ruby-lang
Axsuul has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
outoftime has quit [Quit: Leaving]
sepp2k1 has quit [Read error: Connection reset by peer]
umttumt has joined #ruby-lang
fgomez has quit [Quit: Lost terminal]
fgomez has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby-lang
cha1tanya has quit [Quit: आलोच..]
rowanu has joined #ruby-lang
malev has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
melter has quit [Read error: Connection reset by peer]
melter has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
jrafanie has joined #ruby-lang
dRbiG has quit [Read error: Operation timed out]
dRbiG has joined #ruby-lang
Jay_Levitt has quit [Quit: Leaving...]
rowanu has left #ruby-lang [#ruby-lang]
<rue>
anildigital_work: It’s a code smell. Sometimes it’s justified, usually it means you can/should do something differently
malev has joined #ruby-lang
sailias has joined #ruby-lang
retro|cz has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
akira989 has joined #ruby-lang
savage- has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
outoftime has joined #ruby-lang
mistym has joined #ruby-lang
jperry2_ has joined #ruby-lang
<cldwalker>
hi all, any advice on making a segfault more verbose? currently I get no stacktrace, running rspec on 1.9.3-p0
<Mon_Ouie>
(not that my coding style is the only acceptable one, yours is mostly fine)
<mistym>
kristofferrr: That's a question of style, some people don't like beginning multiline statements with "unless" ;)
jrafanie_ has quit [Quit: jrafanie_]
<Mon_Ouie>
I'm fine with "unless" except when there's an "else" — in that case I'd just use if and change the condition or swap the code blocks
nazty has joined #ruby-lang
mouzone_ has joined #ruby-lang
jrafanie has joined #ruby-lang
S2kx has joined #ruby-lang
<autarch>
note that the "end.something" is copied from the OptionParser docs
savage-_ has joined #ruby-lang
brianpWins_ has joined #ruby-lang
akira989_ has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
ViperMaul has joined #ruby-lang
beiter_ has joined #ruby-lang
Axsuul has joined #ruby-lang
<autarch>
unless/else is the devil, I agree
<autarch>
(I mostly do Perl, which offers the same horrible possible usage)
NuclearLucifer has joined #ruby-lang
levicole_ has joined #ruby-lang
<autarch>
I guess there's nothing like perltidy for Ruby
dhruvasa1ar has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
ryker has joined #ruby-lang
dumfries_ has joined #ruby-lang
bnagy_ has joined #ruby-lang
Boohbah_ has joined #ruby-lang
rtl_ has joined #ruby-lang
kke_ has joined #ruby-lang
andrewvo1 has joined #ruby-lang
dostoyev1ky has joined #ruby-lang
awwaiid_ has joined #ruby-lang
Boohbah_ is now known as Guest1780
chris2_ has joined #ruby-lang
dostoyev1ky has quit [Client Quit]
_tca_ has joined #ruby-lang
DEac-_ has joined #ruby-lang
<ryker>
hi all. i was wondering if I could get some help with chronic here. I notice that Chronic.parse("<wednesday at 22:00|this wednesday at 22:00>") all show the date of next wednesday. I'm trying to get it to tell me today's date, since today is a wednesday. is there some other way to get today's date if it's the day of the week i'm asking about?
snk_ has joined #ruby-lang
imajes_ has joined #ruby-lang
<autarch>
thanks for help, folks
<autarch>
I cleaned up the code a bit
autarch has left #ruby-lang [#ruby-lang]
Tearan has quit [Remote host closed the connection]
znowi_ has joined #ruby-lang
Austin__ has joined #ruby-lang
DrZeus is now known as cout
bytephilia has joined #ruby-lang
akira989 has quit [*.net *.split]
beiter has quit [*.net *.split]
imajes has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
brianpWins has quit [*.net *.split]
jbwiv has quit [*.net *.split]
savage- has quit [*.net *.split]
zenspider has quit [*.net *.split]
ramonmaruko has quit [*.net *.split]
bnagy has quit [*.net *.split]
awwaiid has quit [*.net *.split]
franckverrot has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
snk has quit [*.net *.split]
levicole has quit [*.net *.split]
DEac- has quit [*.net *.split]
anekos has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
akahn has quit [*.net *.split]
S1kx has quit [*.net *.split]
ConstantineXVI has quit [*.net *.split]
Rizzle has quit [*.net *.split]
znowi has quit [*.net *.split]
naz has quit [*.net *.split]
andrewvos has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
kke has quit [*.net *.split]
dumfries has quit [*.net *.split]
mikkelb has quit [*.net *.split]
_tca has quit [*.net *.split]
chris2 has quit [*.net *.split]
Boohbah has quit [*.net *.split]
NuclearL1cifer has quit [*.net *.split]
rtl has quit [*.net *.split]
imajes_ is now known as imajes
beiter_ is now known as beiter
brianpWins_ is now known as brianpWins
jmeeuwen_ is now known as jmeeuwen
tcopp has quit [Ping timeout: 276 seconds]
Guest1780 has left #ruby-lang [#ruby-lang]
jbwiv has joined #ruby-lang
tcopp has joined #ruby-lang
ramonmaruko has joined #ruby-lang
anekos has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
kain has joined #ruby-lang
snk_ is now known as snk
coryf has quit [Remote host closed the connection]
akahn has joined #ruby-lang
franckverrot has joined #ruby-lang
chris2_ is now known as chris2
<manveru>
ryker: change the system clock to last yesterday? :)
<manveru>
-last
<ryker>
manveru: :)
alindeman_ is now known as alindeman
krz has joined #ruby-lang
beiter has quit [Quit: beiter]
<foca>
ryker: have you tried setting the :now option?
coryf has joined #ruby-lang
jcf has joined #ruby-lang
<ryker>
foca: didn't know that was an option :)
<ryker>
let me try
jcf has quit [Client Quit]
jcf has joined #ruby-lang
sockmonk has quit [Ping timeout: 240 seconds]
bglusman has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
JohnBat26 has quit [Ping timeout: 248 seconds]
jcf has quit [Client Quit]
JustinCampbell has joined #ruby-lang
<ryker>
foca: I tried this and it didn't work.
<ryker>
Chronic.parse("this wednesday at 20:00", :now => Time.now)
<ryker>
=> 2012-07-25 20:00:00 -0500
<ryker>
I guess I could pass it yesterday. :)
<foca>
heh
<foca>
yeah, but then "today at 20:00" won't work :p
<ryker>
true, but it works for my use case.
<ryker>
i'm checking for something that's going to recur weekly or daily.
<ryker>
and I need to know if now is the time.
<ryker>
so, if something is specified to run wednesday at 20:00, I can compare that to Time.now
<ryker>
i'm actually using a range, but you get the idea
<ryker>
thx for helping.
<ryker>
this seems like a bug in chronic though. i guess i'll report it.
AlHafoudh has joined #ruby-lang
gokulnath has quit [Ping timeout: 245 seconds]
erichmenge has joined #ruby-lang
akira989_ has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
ilyam_ has joined #ruby-lang
ilyam has quit [Ping timeout: 272 seconds]
ilyam_ is now known as ilyam
rolfb has joined #ruby-lang
akira989 has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
scampbell has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
gsav has quit [Quit: Lost terminal]
gsav has joined #ruby-lang
rolfb has quit [Read error: Connection reset by peer]
rolfb_ has joined #ruby-lang
rolfb_ has quit [Client Quit]
ruurd has quit [Quit: Leaving...]
rolfb has joined #ruby-lang
HassanS has quit [Ping timeout: 245 seconds]
zenspider has joined #ruby-lang
dc5ala has quit [Quit: good nite]
yxhuvud has quit [Ping timeout: 240 seconds]
jperry2 has quit [Quit: jperry2]
rizzy has quit [Ping timeout: 250 seconds]
neocoin has joined #ruby-lang
alindeman has quit [Read error: Connection reset by peer]
alexkane has quit [Ping timeout: 244 seconds]
Berglund has joined #ruby-lang
alindeman has joined #ruby-lang
neocoin has quit [Ping timeout: 276 seconds]
alexkane has joined #ruby-lang
loincloth has joined #ruby-lang
petercooper has joined #ruby-lang
tenderlove has joined #ruby-lang
butchanton has joined #ruby-lang
sailias has quit [Quit: Leaving.]
ryanf has joined #ruby-lang
tenderlo_ has joined #ruby-lang
gsav has quit [Ping timeout: 276 seconds]
tenderlove has quit [Ping timeout: 245 seconds]
jackhammer2022 has joined #ruby-lang
gsav has joined #ruby-lang
tenderlo_ is now known as tenderlove
snorkdude has quit [Remote host closed the connection]
havenn has joined #ruby-lang
tubbo has quit [Quit: ON THE MOUNTAIN!!1]
diegoviola has quit [Ping timeout: 244 seconds]
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
kristofferrr has quit [Quit: ❤]
savage- has joined #ruby-lang
tbuehlmann has quit []
workmad3 has joined #ruby-lang
savage-_ has quit [Ping timeout: 276 seconds]
kain has quit [Quit: quit]
dhruvasa1ar has quit [Ping timeout: 248 seconds]
Berglund has quit [Quit: Computer died.]
akira989 has quit [Remote host closed the connection]
kain has joined #ruby-lang
havenn has quit [Remote host closed the connection]