ruby-duration 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +8 -2
- data/Gemfile.ruby-1.9.rb +7 -0
- data/README.md +4 -2
- data/lib/duration.rb +0 -2
- data/lib/duration/mongoid.rb +1 -0
- data/lib/duration/version.rb +1 -1
- data/ruby-duration.gemspec +0 -1
- metadata +29 -42
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Yjk2OTk5ZDM2MjE3MmMyYzk1N2ZjM2VlZGVkOTk0ZTAzYjBjMGRkNw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDY4ZWFlMTEzY2FlZTQ4Zjk0NjNmODJjOGM3NGE1OTc0ZWMwMjFmNg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjA3OWM0ODI2NmNiYmNhODM2YjNhYzVkOGYzZThiNjM1MGRlNjZiMjQ1YTk5
|
10
|
+
OGEzNTFhMTYxNzgzNmQxZjRjOTQ5ZjgxNTAyZmE4YjI2ZGVmZGM0NzhkYmNm
|
11
|
+
MjhlNTMxY2NjYzI4NTMwZWRhMzQzMDUzMDk1NDk0MmI2MGZkOTQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjA4YjM2NDJiMDc5YzNiMmQ1ODhiMTJhMDg3MTYzYjA2ZjAyOTNiYTVjNDk4
|
14
|
+
NzM1YmJlMTQxOTBjYzQ2ZDI0ZDFkMTIwOGY1MTY0OGRkMGQ0YjAyMjNmN2Y1
|
15
|
+
NjU4NmQ0NGU1N2ZjMTc1OThmY2I1NGUwZTNkNWI4MzIxNzg5M2E=
|
data/.travis.yml
CHANGED
data/Gemfile.ruby-1.9.rb
ADDED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ ruby-duration
|
|
3
3
|
|
4
4
|
Duration is an immutable type that represents some amount of time with accuracy in seconds.
|
5
5
|
|
6
|
-
A lot of the code and inspirations is borrowed from [duration](http://rubyforge.org/projects/duration)
|
6
|
+
A lot of the code and inspirations is borrowed from [duration](http://rubyforge.org/projects/duration)
|
7
7
|
lib, which is a **mutable** Duration type with lot more features.
|
8
8
|
|
9
9
|
|
@@ -41,15 +41,17 @@ For lower Mongoid versions try:
|
|
41
41
|
* < 3.0.0 tag [v2.1.4](https://github.com/peleteiro/ruby-duration/tree/v2.1.4)
|
42
42
|
* < 2.1.0 tag [v1.0.0](https://github.com/peleteiro/ruby-duration/tree/v1.0.0)
|
43
43
|
|
44
|
+
```
|
44
45
|
require 'duration/mongoid'
|
45
46
|
|
46
47
|
class MyModel
|
47
48
|
include Mongoid::Document
|
48
49
|
field :duration, type => Duration
|
49
50
|
end
|
51
|
+
```
|
50
52
|
|
51
53
|
### Dependencies
|
52
|
-
The current version of this gem runs only on Ruby Versions >= 1.9.3.
|
54
|
+
The current version of this gem runs only on Ruby Versions >= 1.9.3.
|
53
55
|
If you are running a older version of Ruby try:
|
54
56
|
* tag [v2.1.4](https://github.com/peleteiro/ruby-duration/tree/v2.1.4)
|
55
57
|
|
data/lib/duration.rb
CHANGED
data/lib/duration/mongoid.rb
CHANGED
data/lib/duration/version.rb
CHANGED
data/ruby-duration.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-duration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Peleteiro
|
@@ -9,138 +9,124 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: activesupport
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 3.0.0
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: 3.0.0
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: i18n
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
31
17
|
requirements:
|
32
|
-
- -
|
18
|
+
- - ! '>='
|
33
19
|
- !ruby/object:Gem::Version
|
34
20
|
version: '0'
|
35
21
|
type: :runtime
|
36
22
|
prerelease: false
|
37
23
|
version_requirements: !ruby/object:Gem::Requirement
|
38
24
|
requirements:
|
39
|
-
- -
|
25
|
+
- - ! '>='
|
40
26
|
- !ruby/object:Gem::Version
|
41
27
|
version: '0'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: iso8601
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
45
31
|
requirements:
|
46
|
-
- -
|
32
|
+
- - ! '>='
|
47
33
|
- !ruby/object:Gem::Version
|
48
34
|
version: '0'
|
49
35
|
type: :runtime
|
50
36
|
prerelease: false
|
51
37
|
version_requirements: !ruby/object:Gem::Requirement
|
52
38
|
requirements:
|
53
|
-
- -
|
39
|
+
- - ! '>='
|
54
40
|
- !ruby/object:Gem::Version
|
55
41
|
version: '0'
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: bundler
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
|
-
- -
|
46
|
+
- - ! '>='
|
61
47
|
- !ruby/object:Gem::Version
|
62
48
|
version: 1.0.0
|
63
49
|
type: :development
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
|
-
- -
|
53
|
+
- - ! '>='
|
68
54
|
- !ruby/object:Gem::Version
|
69
55
|
version: 1.0.0
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: minitest
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
|
-
- -
|
60
|
+
- - ! '>='
|
75
61
|
- !ruby/object:Gem::Version
|
76
62
|
version: '0'
|
77
63
|
type: :development
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
|
-
- -
|
67
|
+
- - ! '>='
|
82
68
|
- !ruby/object:Gem::Version
|
83
69
|
version: '0'
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: yard
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
87
73
|
requirements:
|
88
|
-
- -
|
74
|
+
- - ! '>='
|
89
75
|
- !ruby/object:Gem::Version
|
90
76
|
version: '0'
|
91
77
|
type: :development
|
92
78
|
prerelease: false
|
93
79
|
version_requirements: !ruby/object:Gem::Requirement
|
94
80
|
requirements:
|
95
|
-
- -
|
81
|
+
- - ! '>='
|
96
82
|
- !ruby/object:Gem::Version
|
97
83
|
version: '0'
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
85
|
name: rake
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
101
87
|
requirements:
|
102
|
-
- -
|
88
|
+
- - ! '>='
|
103
89
|
- !ruby/object:Gem::Version
|
104
90
|
version: '0'
|
105
91
|
type: :development
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
|
-
- -
|
95
|
+
- - ! '>='
|
110
96
|
- !ruby/object:Gem::Version
|
111
97
|
version: '0'
|
112
98
|
- !ruby/object:Gem::Dependency
|
113
99
|
name: simplecov
|
114
100
|
requirement: !ruby/object:Gem::Requirement
|
115
101
|
requirements:
|
116
|
-
- -
|
102
|
+
- - ! '>='
|
117
103
|
- !ruby/object:Gem::Version
|
118
104
|
version: 0.3.5
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
108
|
requirements:
|
123
|
-
- -
|
109
|
+
- - ! '>='
|
124
110
|
- !ruby/object:Gem::Version
|
125
111
|
version: 0.3.5
|
126
112
|
- !ruby/object:Gem::Dependency
|
127
113
|
name: mongoid
|
128
114
|
requirement: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
|
-
- -
|
116
|
+
- - ! '>='
|
131
117
|
- !ruby/object:Gem::Version
|
132
118
|
version: 3.0.0
|
133
|
-
- -
|
119
|
+
- - <
|
134
120
|
- !ruby/object:Gem::Version
|
135
121
|
version: 4.0.0
|
136
122
|
type: :development
|
137
123
|
prerelease: false
|
138
124
|
version_requirements: !ruby/object:Gem::Requirement
|
139
125
|
requirements:
|
140
|
-
- -
|
126
|
+
- - ! '>='
|
141
127
|
- !ruby/object:Gem::Version
|
142
128
|
version: 3.0.0
|
143
|
-
- -
|
129
|
+
- - <
|
144
130
|
- !ruby/object:Gem::Version
|
145
131
|
version: 4.0.0
|
146
132
|
description: Duration type
|
@@ -151,11 +137,12 @@ executables: []
|
|
151
137
|
extensions: []
|
152
138
|
extra_rdoc_files: []
|
153
139
|
files:
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
140
|
+
- .gitignore
|
141
|
+
- .ruby-gemset
|
142
|
+
- .ruby-version
|
143
|
+
- .travis.yml
|
158
144
|
- Gemfile
|
145
|
+
- Gemfile.ruby-1.9.rb
|
159
146
|
- LICENSE
|
160
147
|
- README.md
|
161
148
|
- Rakefile
|
@@ -174,22 +161,22 @@ licenses: []
|
|
174
161
|
metadata: {}
|
175
162
|
post_install_message:
|
176
163
|
rdoc_options:
|
177
|
-
-
|
164
|
+
- --charset=UTF-8
|
178
165
|
require_paths:
|
179
166
|
- lib
|
180
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
168
|
requirements:
|
182
|
-
- -
|
169
|
+
- - ! '>='
|
183
170
|
- !ruby/object:Gem::Version
|
184
171
|
version: '0'
|
185
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
173
|
requirements:
|
187
|
-
- -
|
174
|
+
- - ! '>='
|
188
175
|
- !ruby/object:Gem::Version
|
189
176
|
version: 1.3.6
|
190
177
|
requirements: []
|
191
178
|
rubyforge_project: ruby-duration
|
192
|
-
rubygems_version: 2.4.
|
179
|
+
rubygems_version: 2.4.8
|
193
180
|
signing_key:
|
194
181
|
specification_version: 4
|
195
182
|
summary: Duration type
|