time_ext 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +25 -0
- data/Gemfile +2 -3
- data/Gemfile.lock +8 -10
- data/Rakefile +20 -28
- data/lib/time_ext/version.rb +3 -0
- data/time_ext.gemspec +24 -0
- metadata +18 -144
- data/VERSION +0 -1
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## PROJECT::GENERAL
|
17
|
+
coverage
|
18
|
+
rdoc
|
19
|
+
pkg/*
|
20
|
+
*.gem
|
21
|
+
.bundle
|
22
|
+
|
23
|
+
## PROJECT::SPECIFIC
|
24
|
+
.yardoc
|
25
|
+
doc/*
|
data/Gemfile
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
source 'http://rubygems.org/'
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
# Specify your gem's dependencies in time_ext.gemspec
|
4
|
+
gemspec
|
5
5
|
|
6
6
|
group :development do
|
7
|
-
gem 'jeweler', '>= 1.4.0'
|
8
7
|
gem 'rspec', '>= 2.1.0'
|
9
8
|
gem 'yard', '>= 0.6.3'
|
10
9
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
time_ext (0.2.7)
|
5
|
+
activesupport (>= 2.3.0)
|
6
|
+
i18n (>= 0.4.2)
|
7
|
+
|
1
8
|
GEM
|
2
9
|
remote: http://rubygems.org/
|
3
10
|
specs:
|
4
11
|
activesupport (3.0.3)
|
5
12
|
diff-lcs (1.1.2)
|
6
|
-
gemcutter (0.6.1)
|
7
|
-
git (1.2.5)
|
8
13
|
i18n (0.4.2)
|
9
|
-
jeweler (1.4.0)
|
10
|
-
gemcutter (>= 0.1.0)
|
11
|
-
git (>= 1.2.5)
|
12
|
-
rubyforge (>= 2.0.0)
|
13
|
-
json_pure (1.4.6)
|
14
14
|
rspec (2.1.0)
|
15
15
|
rspec-core (~> 2.1.0)
|
16
16
|
rspec-expectations (~> 2.1.0)
|
@@ -19,8 +19,6 @@ GEM
|
|
19
19
|
rspec-expectations (2.1.0)
|
20
20
|
diff-lcs (~> 1.1.2)
|
21
21
|
rspec-mocks (2.1.0)
|
22
|
-
rubyforge (2.0.4)
|
23
|
-
json_pure (>= 1.1.7)
|
24
22
|
yard (0.6.3)
|
25
23
|
|
26
24
|
PLATFORMS
|
@@ -29,6 +27,6 @@ PLATFORMS
|
|
29
27
|
DEPENDENCIES
|
30
28
|
activesupport (>= 2.3.0)
|
31
29
|
i18n (>= 0.4.2)
|
32
|
-
jeweler (>= 1.4.0)
|
33
30
|
rspec (>= 2.1.0)
|
31
|
+
time_ext!
|
34
32
|
yard (>= 0.6.3)
|
data/Rakefile
CHANGED
@@ -1,27 +1,11 @@
|
|
1
|
-
require '
|
2
|
-
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "time_ext"
|
8
|
-
gem.summary = %Q{Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport.}
|
9
|
-
gem.description = %Q{Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport.}
|
10
|
-
gem.email = "contact@jimeh.me"
|
11
|
-
gem.homepage = "http://github.com/jimeh/time_ext"
|
12
|
-
gem.authors = ["Jim Myhrberg"]
|
13
|
-
gem.add_dependency 'activesupport', '>= 2.3.0'
|
14
|
-
gem.add_dependency 'i18n', '>= 0.4.2'
|
15
|
-
gem.add_development_dependency 'jeweler', '>= 1.4.0'
|
16
|
-
gem.add_development_dependency 'rspec', '>= 2.1.0'
|
17
|
-
gem.add_development_dependency 'yard', '>= 0.6.3'
|
18
|
-
end
|
19
|
-
Jeweler::GemcutterTasks.new
|
20
|
-
rescue LoadError
|
21
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
22
|
-
end
|
23
4
|
|
5
|
+
#
|
24
6
|
# Rspec
|
7
|
+
#
|
8
|
+
|
25
9
|
require 'rspec/core/rake_task'
|
26
10
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
27
11
|
spec.pattern = 'spec/**/*_spec.rb'
|
@@ -32,15 +16,12 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|
32
16
|
spec.rcov = true
|
33
17
|
end
|
34
18
|
|
35
|
-
task :spec => :check_dependencies
|
36
|
-
|
37
19
|
task :default => :spec
|
38
20
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
task :c => :console
|
21
|
+
|
22
|
+
#
|
23
|
+
# Yard
|
24
|
+
#
|
44
25
|
|
45
26
|
begin
|
46
27
|
require 'yard'
|
@@ -50,3 +31,14 @@ rescue LoadError
|
|
50
31
|
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
51
32
|
end
|
52
33
|
end
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Misc.
|
38
|
+
#
|
39
|
+
|
40
|
+
desc "Start an irb console with TimeExt pre-loaded."
|
41
|
+
task :console do
|
42
|
+
exec "irb -r spec/spec_helper"
|
43
|
+
end
|
44
|
+
task :c => :console
|
data/time_ext.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "time_ext/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "time_ext"
|
7
|
+
s.version = TimeExt::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Jim Myhrberg"]
|
10
|
+
s.email = ["contact@jimeh.me"]
|
11
|
+
s.homepage = "http://github.com/jimeh/time_ext"
|
12
|
+
s.summary = "Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport."
|
13
|
+
s.description = "Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport."
|
14
|
+
|
15
|
+
s.rubyforge_project = "time_ext"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_runtime_dependency 'activesupport', '>= 2.3.0'
|
23
|
+
s.add_runtime_dependency 'i18n', '>= 0.4.2'
|
24
|
+
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:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 8
|
10
|
+
version: 0.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Myhrberg
|
@@ -19,90 +19,9 @@ date: 2010-11-24 00:00:00 +00:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
prerelease: false
|
23
|
-
type: :runtime
|
24
22
|
name: activesupport
|
25
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
|
-
segments:
|
32
|
-
- 2
|
33
|
-
- 3
|
34
|
-
- 0
|
35
|
-
version: 2.3.0
|
36
|
-
requirement: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
23
|
prerelease: false
|
39
|
-
|
40
|
-
name: i18n
|
41
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 11
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 4
|
50
|
-
- 2
|
51
|
-
version: 0.4.2
|
52
|
-
requirement: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
prerelease: false
|
55
|
-
type: :development
|
56
|
-
name: jeweler
|
57
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 7
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 4
|
66
|
-
- 0
|
67
|
-
version: 1.4.0
|
68
|
-
requirement: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
prerelease: false
|
71
|
-
type: :development
|
72
|
-
name: rspec
|
73
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
hash: 11
|
79
|
-
segments:
|
80
|
-
- 2
|
81
|
-
- 1
|
82
|
-
- 0
|
83
|
-
version: 2.1.0
|
84
|
-
requirement: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
prerelease: false
|
87
|
-
type: :development
|
88
|
-
name: yard
|
89
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
hash: 1
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
- 6
|
98
|
-
- 3
|
99
|
-
version: 0.6.3
|
100
|
-
requirement: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
prerelease: false
|
103
|
-
type: :runtime
|
104
|
-
name: activesupport
|
105
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
106
25
|
none: false
|
107
26
|
requirements:
|
108
27
|
- - ">="
|
@@ -113,12 +32,12 @@ dependencies:
|
|
113
32
|
- 3
|
114
33
|
- 0
|
115
34
|
version: 2.3.0
|
116
|
-
requirement: *id006
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
prerelease: false
|
119
35
|
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
120
38
|
name: i18n
|
121
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
122
41
|
none: false
|
123
42
|
requirements:
|
124
43
|
- - ">="
|
@@ -129,73 +48,26 @@ dependencies:
|
|
129
48
|
- 4
|
130
49
|
- 2
|
131
50
|
version: 0.4.2
|
132
|
-
|
133
|
-
|
134
|
-
prerelease: false
|
135
|
-
type: :development
|
136
|
-
name: jeweler
|
137
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
hash: 7
|
143
|
-
segments:
|
144
|
-
- 1
|
145
|
-
- 4
|
146
|
-
- 0
|
147
|
-
version: 1.4.0
|
148
|
-
requirement: *id008
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
prerelease: false
|
151
|
-
type: :development
|
152
|
-
name: rspec
|
153
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
|
-
requirements:
|
156
|
-
- - ">="
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
hash: 11
|
159
|
-
segments:
|
160
|
-
- 2
|
161
|
-
- 1
|
162
|
-
- 0
|
163
|
-
version: 2.1.0
|
164
|
-
requirement: *id009
|
165
|
-
- !ruby/object:Gem::Dependency
|
166
|
-
prerelease: false
|
167
|
-
type: :development
|
168
|
-
name: yard
|
169
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
hash: 1
|
175
|
-
segments:
|
176
|
-
- 0
|
177
|
-
- 6
|
178
|
-
- 3
|
179
|
-
version: 0.6.3
|
180
|
-
requirement: *id010
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
181
53
|
description: Extends the abilities of Ruby's built-in Time class by building on top of ActiveSupport.
|
182
|
-
email:
|
54
|
+
email:
|
55
|
+
- contact@jimeh.me
|
183
56
|
executables: []
|
184
57
|
|
185
58
|
extensions: []
|
186
59
|
|
187
|
-
extra_rdoc_files:
|
188
|
-
|
189
|
-
- README.md
|
60
|
+
extra_rdoc_files: []
|
61
|
+
|
190
62
|
files:
|
191
63
|
- .document
|
64
|
+
- .gitignore
|
192
65
|
- .rspec
|
193
66
|
- Gemfile
|
194
67
|
- Gemfile.lock
|
195
68
|
- LICENSE
|
196
69
|
- README.md
|
197
70
|
- Rakefile
|
198
|
-
- VERSION
|
199
71
|
- lib/time/ext.rb
|
200
72
|
- lib/time_ext.rb
|
201
73
|
- lib/time_ext/calculations.rb
|
@@ -203,10 +75,12 @@ files:
|
|
203
75
|
- lib/time_ext/core_ext/time.rb
|
204
76
|
- lib/time_ext/iterations.rb
|
205
77
|
- lib/time_ext/support.rb
|
78
|
+
- lib/time_ext/version.rb
|
206
79
|
- spec/core_ext_spec.rb
|
207
80
|
- spec/spec_helper.rb
|
208
81
|
- spec/time_calculations_spec.rb
|
209
82
|
- spec/time_iterations_spec.rb
|
83
|
+
- time_ext.gemspec
|
210
84
|
has_rdoc: true
|
211
85
|
homepage: http://github.com/jimeh/time_ext
|
212
86
|
licenses: []
|
@@ -236,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
110
|
version: "0"
|
237
111
|
requirements: []
|
238
112
|
|
239
|
-
rubyforge_project:
|
113
|
+
rubyforge_project: time_ext
|
240
114
|
rubygems_version: 1.3.7
|
241
115
|
signing_key:
|
242
116
|
specification_version: 3
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.7
|