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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f0855490b231809abb27c1957aa9f55667b02366
4
- data.tar.gz: a5efb067e60baf7d49020bb29d4b0ecf538fc143
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Yjk2OTk5ZDM2MjE3MmMyYzk1N2ZjM2VlZGVkOTk0ZTAzYjBjMGRkNw==
5
+ data.tar.gz: !binary |-
6
+ MDY4ZWFlMTEzY2FlZTQ4Zjk0NjNmODJjOGM3NGE1OTc0ZWMwMjFmNg==
5
7
  SHA512:
6
- metadata.gz: d12e6721def4224a5af50b3a2c1ae6472c5339da0c836efa50ea23c0f199133a2ea5d7ae85419dbba73f58cfe3c24f42d8949397954c889aa8ca143d7d2c5339
7
- data.tar.gz: 7d24a038abd40ec328e4573d324096eb3004354890ac9bf91e239b59f7f3d8c9f3cf4ea1369a947b5afc7078e0ae694d18618ce377e66e06df19dc2e3724246f
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
@@ -1,7 +1,13 @@
1
+ sudo: false
1
2
  language: ruby
3
+ before_install: gem install bundler
2
4
  rvm:
3
- - 1.9.3
4
5
  - 2.0.0
5
6
  - 2.1
6
7
  - 2.2
7
- - jruby-19mode
8
+ matrix:
9
+ include:
10
+ - rvm: 1.9.3
11
+ gemfile: Gemfile.ruby-1.9.rb
12
+ - rvm: jruby-19mode
13
+ gemfile: Gemfile.ruby-1.9.rb
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruby-duration.gemspec
4
+ gemspec
5
+
6
+ # iso8601 >= 0.9.0 requires Ruby >= 2.0.0.
7
+ gem 'iso8601', '~> 0.8.7'
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
@@ -1,7 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'i18n'
3
- require 'active_support'
4
- require 'active_support/core_ext'
5
3
  require 'iso8601'
6
4
 
7
5
  # Duration objects are simple mechanisms that allow you to operate on durations
@@ -1,4 +1,5 @@
1
1
  require "#{File.dirname(__FILE__)}/../duration"
2
+ require "mongoid"
2
3
  require "mongoid/fields"
3
4
 
4
5
  # Mongoid serialization support for Duration type.
@@ -1,3 +1,3 @@
1
1
  class Duration
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2".freeze
3
3
  end
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
15
  s.rubyforge_project = "ruby-duration"
16
16
 
17
- s.add_dependency "activesupport", ">= 3.0.0"
18
17
  s.add_dependency "i18n", ">= 0"
19
18
  s.add_dependency "iso8601", ">= 0"
20
19
 
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.1
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: 2015-02-26 00:00:00.000000000 Z
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
- - ".gitignore"
155
- - ".ruby-gemset"
156
- - ".ruby-version"
157
- - ".travis.yml"
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
- - "--charset=UTF-8"
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.5
179
+ rubygems_version: 2.4.8
193
180
  signing_key:
194
181
  specification_version: 4
195
182
  summary: Duration type