time_ext 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -16,6 +16,7 @@ tmtags
16
16
  ## PROJECT::GENERAL
17
17
  coverage
18
18
  rdoc
19
+ Gemfile.lock
19
20
  pkg/*
20
21
  *.gem
21
22
  .bundle
data/Gemfile CHANGED
@@ -2,8 +2,3 @@ source 'http://rubygems.org/'
2
2
 
3
3
  # Specify your gem's dependencies in time_ext.gemspec
4
4
  gemspec
5
-
6
- group :development do
7
- gem 'rspec', '>= 2.1.0'
8
- gem 'yard', '>= 0.6.3'
9
- end
data/README.md CHANGED
@@ -99,5 +99,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
99
99
 
100
100
 
101
101
  [as]: http://as.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Time/Calculations.html
102
- [docs]: http://rdoc.info/projects/jimeh/time_ext
102
+ [docs]: http://rdoc.info/gems/time_ext/frames
103
103
  [rdoc.info]: http://rdoc.info/
@@ -1,8 +1,4 @@
1
1
  require 'rubygems'
2
- require 'active_support'
3
-
4
- # support both Active Support 2.x and 3.x
5
- require 'active_support/time' if !Time.respond_to?(:days_in_month)
6
2
 
7
3
  require 'time_ext/calculations'
8
4
  require 'time_ext/iterations'
@@ -1,3 +1,5 @@
1
+ require 'active_support/core_ext/numeric/time' unless Numeric.new.respond_to?(:seconds) # fixes rare loading issue
2
+
1
3
  class Numeric
2
4
  alias :sec :seconds
3
5
  alias :min :minutes
@@ -1,3 +1,7 @@
1
+ require 'active_support'
2
+ require 'active_support/time' unless Time.respond_to?(:days_in_month) # support both Active Support 2.x and 3.x
3
+ require 'active_support/core_ext/time/calculations' unless Time.new.respond_to?(:ago) # fixes rare loading issue
4
+
1
5
  class Time
2
6
  include TimeExt::Support
3
7
  include TimeExt::Calculations
@@ -1,3 +1,3 @@
1
1
  module TimeExt
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
@@ -19,6 +19,11 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_runtime_dependency 'activesupport', '>= 2.3.0'
22
+ s.add_runtime_dependency 'activesupport', '>= 2.3.2'
23
23
  s.add_runtime_dependency 'i18n', '>= 0.4.2'
24
+
25
+ s.add_development_dependency 'rake', '>= 0.8.7'
26
+ s.add_development_dependency 'rspec', '>= 2.1.0'
27
+ s.add_development_dependency 'yard', '>= 0.6.3'
28
+ s.add_development_dependency 'ruby-debug'
24
29
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease: false
4
+ hash: 5
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Myhrberg
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-24 00:00:00 +00:00
18
+ date: 2011-03-11 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 7
30
30
  segments:
31
31
  - 2
32
32
  - 3
33
- - 0
34
- version: 2.3.0
33
+ - 2
34
+ version: 2.3.2
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -50,6 +50,68 @@ dependencies:
50
50
  version: 0.4.2
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: rake
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 49
62
+ segments:
63
+ - 0
64
+ - 8
65
+ - 7
66
+ version: 0.8.7
67
+ type: :development
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 11
78
+ segments:
79
+ - 2
80
+ - 1
81
+ - 0
82
+ version: 2.1.0
83
+ type: :development
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: yard
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 1
94
+ segments:
95
+ - 0
96
+ - 6
97
+ - 3
98
+ version: 0.6.3
99
+ type: :development
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: ruby-debug
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id006
53
115
  description: Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport.
54
116
  email:
55
117
  - contact@jimeh.me
@@ -64,7 +126,6 @@ files:
64
126
  - .gitignore
65
127
  - .rspec
66
128
  - Gemfile
67
- - Gemfile.lock
68
129
  - LICENSE
69
130
  - README.md
70
131
  - Rakefile
@@ -111,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
172
  requirements: []
112
173
 
113
174
  rubyforge_project: time_ext
114
- rubygems_version: 1.3.7
175
+ rubygems_version: 1.5.0
115
176
  signing_key:
116
177
  specification_version: 3
117
178
  summary: Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport.
@@ -1,32 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- time_ext (0.2.7)
5
- activesupport (>= 2.3.0)
6
- i18n (>= 0.4.2)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- activesupport (3.0.3)
12
- diff-lcs (1.1.2)
13
- i18n (0.4.2)
14
- rspec (2.1.0)
15
- rspec-core (~> 2.1.0)
16
- rspec-expectations (~> 2.1.0)
17
- rspec-mocks (~> 2.1.0)
18
- rspec-core (2.1.0)
19
- rspec-expectations (2.1.0)
20
- diff-lcs (~> 1.1.2)
21
- rspec-mocks (2.1.0)
22
- yard (0.6.3)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- activesupport (>= 2.3.0)
29
- i18n (>= 0.4.2)
30
- rspec (>= 2.1.0)
31
- time_ext!
32
- yard (>= 0.6.3)