diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..92d87b7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/whenever/vendor/gems/chronic"] + path = lib/whenever/vendor/gems/chronic + url = git://github.com/AaronH/chronic.git diff --git a/Rakefile b/Rakefile index 9cd17dc..a0cb0a8 100644 --- a/Rakefile +++ b/Rakefile @@ -13,7 +13,6 @@ begin gemspec.email = "javan@javan.us" gemspec.homepage = "http://github.com/javan/whenever" gemspec.authors = ["Javan Makhmali"] - gemspec.add_dependency 'chronic', '>= 0.2.3' gemspec.add_dependency 'activesupport', '>= 2.3.4' gemspec.add_development_dependency 'shoulda', '>= 2.1.1' gemspec.add_development_dependency 'mocha', '>= 0.9.5' diff --git a/lib/whenever.rb b/lib/whenever.rb index cf925c9..7914a5d 100644 --- a/lib/whenever.rb +++ b/lib/whenever.rb @@ -1,6 +1,10 @@ -require 'chronic' require 'active_support/all' +# Bundling in http://github.com/AaronH/chronic because +# it's compatible with Ruby 1.9.2 and the official +# gem isn't. I hope to remove this eventually. +require 'whenever/vendor/gems/chronic/lib/chronic' + require 'whenever/base' require 'whenever/job_list' require 'whenever/job' diff --git a/lib/whenever/vendor/gems/chronic b/lib/whenever/vendor/gems/chronic new file mode 160000 index 0000000..d027ad0 --- /dev/null +++ b/lib/whenever/vendor/gems/chronic @@ -0,0 +1 @@ +Subproject commit d027ad09333ac49e9eb368c659c5243b515a7694