mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 05:16:40 +00:00
Merge branch 'release/v0.2.9'
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,6 +16,7 @@ tmtags
|
|||||||
## PROJECT::GENERAL
|
## PROJECT::GENERAL
|
||||||
coverage
|
coverage
|
||||||
rdoc
|
rdoc
|
||||||
|
Gemfile.lock
|
||||||
pkg/*
|
pkg/*
|
||||||
*.gem
|
*.gem
|
||||||
.bundle
|
.bundle
|
||||||
|
|||||||
5
Gemfile
5
Gemfile
@@ -2,8 +2,3 @@ source 'http://rubygems.org/'
|
|||||||
|
|
||||||
# Specify your gem's dependencies in time_ext.gemspec
|
# Specify your gem's dependencies in time_ext.gemspec
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
group :development do
|
|
||||||
gem 'rspec', '>= 2.1.0'
|
|
||||||
gem 'yard', '>= 0.6.3'
|
|
||||||
end
|
|
||||||
|
|||||||
32
Gemfile.lock
32
Gemfile.lock
@@ -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)
|
|
||||||
@@ -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
|
[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/
|
[rdoc.info]: http://rdoc.info/
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
require 'rubygems'
|
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/calculations'
|
||||||
require 'time_ext/iterations'
|
require 'time_ext/iterations'
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
require 'active_support/core_ext/numeric/time' unless Numeric.new.respond_to?(:seconds) # fixes rare loading issue
|
||||||
|
|
||||||
class Numeric
|
class Numeric
|
||||||
alias :sec :seconds
|
alias :sec :seconds
|
||||||
alias :min :minutes
|
alias :min :minutes
|
||||||
|
|||||||
@@ -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
|
class Time
|
||||||
include TimeExt::Support
|
include TimeExt::Support
|
||||||
include TimeExt::Calculations
|
include TimeExt::Calculations
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module TimeExt
|
module TimeExt
|
||||||
VERSION = "0.2.8"
|
VERSION = "0.2.9"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ Gem::Specification.new do |s|
|
|||||||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||||
s.require_paths = ["lib"]
|
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_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
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user