Merge branch 'release/v0.2.9'

This commit is contained in:
2011-03-11 11:02:41 +00:00
9 changed files with 15 additions and 44 deletions

1
.gitignore vendored
View File

@@ -16,6 +16,7 @@ tmtags
## PROJECT::GENERAL
coverage
rdoc
Gemfile.lock
pkg/*
*.gem
.bundle

View File

@@ -2,8 +2,3 @@ source 'http://rubygems.org/'
# Specify your gem's dependencies in time_ext.gemspec
gemspec
group :development do
gem 'rspec', '>= 2.1.0'
gem 'yard', '>= 0.6.3'
end

View File

@@ -1,32 +0,0 @@
PATH
remote: .
specs:
time_ext (0.2.7)
activesupport (>= 2.3.0)
i18n (>= 0.4.2)
GEM
remote: http://rubygems.org/
specs:
activesupport (3.0.3)
diff-lcs (1.1.2)
i18n (0.4.2)
rspec (2.1.0)
rspec-core (~> 2.1.0)
rspec-expectations (~> 2.1.0)
rspec-mocks (~> 2.1.0)
rspec-core (2.1.0)
rspec-expectations (2.1.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)
yard (0.6.3)
PLATFORMS
ruby
DEPENDENCIES
activesupport (>= 2.3.0)
i18n (>= 0.4.2)
rspec (>= 2.1.0)
time_ext!
yard (>= 0.6.3)

View File

@@ -99,5 +99,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[as]: http://as.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Time/Calculations.html
[docs]: http://rdoc.info/projects/jimeh/time_ext
[docs]: http://rdoc.info/gems/time_ext/frames
[rdoc.info]: http://rdoc.info/

View File

@@ -1,8 +1,4 @@
require 'rubygems'
require 'active_support'
# support both Active Support 2.x and 3.x
require 'active_support/time' if !Time.respond_to?(:days_in_month)
require 'time_ext/calculations'
require 'time_ext/iterations'

View File

@@ -1,3 +1,5 @@
require 'active_support/core_ext/numeric/time' unless Numeric.new.respond_to?(:seconds) # fixes rare loading issue
class Numeric
alias :sec :seconds
alias :min :minutes

View File

@@ -1,3 +1,7 @@
require 'active_support'
require 'active_support/time' unless Time.respond_to?(:days_in_month) # support both Active Support 2.x and 3.x
require 'active_support/core_ext/time/calculations' unless Time.new.respond_to?(:ago) # fixes rare loading issue
class Time
include TimeExt::Support
include TimeExt::Calculations

View File

@@ -1,3 +1,3 @@
module TimeExt
VERSION = "0.2.8"
VERSION = "0.2.9"
end

View File

@@ -19,6 +19,11 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_runtime_dependency 'activesupport', '>= 2.3.0'
s.add_runtime_dependency 'activesupport', '>= 2.3.2'
s.add_runtime_dependency 'i18n', '>= 0.4.2'
s.add_development_dependency 'rake', '>= 0.8.7'
s.add_development_dependency 'rspec', '>= 2.1.0'
s.add_development_dependency 'yard', '>= 0.6.3'
s.add_development_dependency 'ruby-debug'
end