sixarm_ruby_date_time_rand 2.0.0 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1d58c1c3af7ee30fb2c516446b28dd8bf011df2
4
- data.tar.gz: 969fe0a9ddadd63c155dea602d32d5d1fec443a1
3
+ metadata.gz: 17f553f8895938f48bf331966f2a335220478d71
4
+ data.tar.gz: 6a070dbc5b30f3ba8ccb8da9a16a651a0e9a6078
5
5
  SHA512:
6
- metadata.gz: 57d8ef46c45d18fcc8acf71349beef49c6575602b791178311197ca39483a068e81bbc63cf65d404226c50411079ec0bd6f6b46b142edfd8b651af602f84fa1e
7
- data.tar.gz: ca64ff8070cfee3ae2e4c667f5b5be0380c2d1cba79ae14cffa948d77bcec1612494356a95cc5de409ab3775d1b3a4d09fcd873411520cd56b0f1de28177806c
6
+ metadata.gz: 7758092492690d579e659133c6ef15253f3024d2750a82ec947a963d54b7f63a713f54dee852169a9f3b363d2e6abd50c82c0e7eb6e1585e2fa0b7612b609eba
7
+ data.tar.gz: c1bc5d0725d78c1ad41017ca6b942b612e6304a362fc995b121a940d630717adbc70dafd24e4f0cad6b93059040939bcce11bc802e859e7d3af6e5e5f5406355
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/Rakefile CHANGED
@@ -1,10 +1,11 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'rake'
3
- require 'rake/testtask'
2
+ require "rake"
3
+ require "rake/testtask"
4
4
 
5
5
  Rake::TestTask.new(:test) do |t|
6
- t.libs << 'lib' << 'test'
7
- t.pattern = 'test/*.rb'
6
+ t.libs.push("lib", "test")
7
+ t.pattern = "test/**/*.rb"
8
8
  end
9
9
 
10
10
  task :default => [:test]
11
+ task :default => [:test]
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require 'date'
3
+ require "date"
4
4
 
5
5
  # Date extensions
6
6
 
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require 'date'
3
+ require "date"
4
4
 
5
5
  # DateTime extensions
6
6
 
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require 'time'
3
+ require "time"
4
4
 
5
5
  # Time extensions
6
6
 
@@ -1,8 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- Minitest::Test ||= MiniTest::Unit::TestCase
4
- require 'simplecov'
5
- SimpleCov.start
2
+ require "minitest/autorun"
3
+ require "coveralls"; Coveralls.wear!
4
+ require "simplecov"; SimpleCov.start
6
5
 
7
6
  ['date','date_time','time'].map{|x|
8
7
  require "sixarm_ruby_date_time_rand_test/#{x}_test.rb"
@@ -1,6 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'sixarm_ruby_date_time_rand'
2
+ require "minitest/autorun"
3
+ require "coveralls"; Coveralls.wear!
4
+ require "simplecov"; SimpleCov.start
5
+ require "sixarm_ruby_date_time_rand"
4
6
 
5
7
  class DateTest < Minitest::Test
6
8
 
@@ -1,6 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'sixarm_ruby_date_time_rand'
2
+ require "minitest/autorun"
3
+ require "coveralls"; Coveralls.wear!
4
+ require "simplecov"; SimpleCov.start
5
+ require "sixarm_ruby_date_time_rand"
4
6
 
5
7
  class DateTimeTest < Minitest::Test
6
8
 
@@ -1,6 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'sixarm_ruby_date_time_rand'
2
+ require "minitest/autorun"
3
+ require "coveralls"; Coveralls.wear!
4
+ require "simplecov"; SimpleCov.start
5
+ require "sixarm_ruby_date_time_rand"
4
6
 
5
7
  class TimeTest < Minitest::Test
6
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_date_time_rand
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -10,39 +10,143 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZzaXhh
14
- cm0xFjAUBgoJkiaJk/IsZAEZFgZzaXhhcm0xEzARBgoJkiaJk/IsZAEZFgNjb20w
15
- HhcNMTQwMzEzMDQyMjE4WhcNMTUwMzEzMDQyMjE4WjA+MQ8wDQYDVQQDDAZzaXhh
16
- cm0xFjAUBgoJkiaJk/IsZAEZFgZzaXhhcm0xEzARBgoJkiaJk/IsZAEZFgNjb20w
17
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC5MZYB72Amo9DyeqBdJeEx
18
- r4togM0+diNuL1nCH2FSO/+LX5L9mTPEEW5gexYCasmlOfmk5255EToJNtu1JUM/
19
- dMqUbNS5LZ1srFVcyDzIe/wQ9f2OSmb+lAGmlnFLfYSpduMv9fPNISlcs5nFYSR9
20
- mpS0kTWcXQPLNDl2cfnkYYjDsuyJ8FmDyG7TTF0c4OWJNLxNDE8To2n8GmmDSwr3
21
- 0K71F278CJlFoIaSSjnhKxkH8/l+z/Vs58KkjX/7M6nwNgNZMQaFBIO02UDtCi2F
22
- ICVtDuWdK0YLv3JnIzvSQPQsfArrw2s8RVKjXlelPMeHJIcCEZcS4K6HIg7vQCkP
23
- AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQrbLvF
24
- TNv9r72z+hpCl3BkTPbzwTAcBgNVHREEFTATgRFzaXhhcm1Ac2l4YXJtLmNvbTAc
25
- BgNVHRIEFTATgRFzaXhhcm1Ac2l4YXJtL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C5viEkPY0YdC0KMSqs5kIA2nCUiqpkwIOa36rVEwiKiU7OCfE3u3baDpL
39
+ FlfMBznZKOdxDFAmNaxvXBe2XeTzrZPvJtnNLWL6K4LaBHhq3bBdh1Hge0iMkpQ7
40
+ RTIGlfhlIFkMV3wT0LTsNznUPsoo6e+IW/tDrk23mrNRY6QynTETb+QVIevuzD9m
41
+ Drcxp/zlVhud+a0ezdnyNvF520arJWvqA4GrOo8F+TT2vVrjscgYjiVGdSq+8wQv
42
+ Efa5jhe8QwG7R1rdpMMP5yBSAqWuFBczMveX5j4rp9Ifw5/XsZbgwcmdm26bjhzh
43
+ w2grAHIhvR9mztm6uXQlZhv1fu3P+RWHDSYhnZSCJSCdxPzQJ1mG5T5ahiL3HvCZ
44
+ 2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
45
+ n+ES/gQPOnvmVkLDGw==
32
46
  -----END CERTIFICATE-----
33
- date: 2014-03-26 00:00:00.000000000 Z
34
- dependencies: []
47
+ date: 2017-08-13 00:00:00.000000000 Z
48
+ dependencies:
49
+ - !ruby/object:Gem::Dependency
50
+ name: minitest
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 5.7.0
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: '6'
59
+ type: :development
60
+ prerelease: false
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 5.7.0
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sixarm_ruby_minitest_extensions
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.0.5
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">"
88
+ - !ruby/object:Gem::Version
89
+ version: 10.4.2
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '11'
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">"
98
+ - !ruby/object:Gem::Version
99
+ version: 10.4.2
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: '11'
103
+ - !ruby/object:Gem::Dependency
104
+ name: simplecov
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 0.10.0
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '2'
113
+ type: :development
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: 0.10.0
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '2'
123
+ - !ruby/object:Gem::Dependency
124
+ name: coveralls
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 0.8.2
130
+ - - "<"
131
+ - !ruby/object:Gem::Version
132
+ version: '2'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: 0.8.2
140
+ - - "<"
141
+ - !ruby/object:Gem::Version
142
+ version: '2'
35
143
  description: Adds extensions for DateTime#rand, Date#rand, Time#rand
36
144
  email: sixarm@sixarm.com
37
145
  executables: []
38
146
  extensions: []
39
147
  extra_rdoc_files: []
40
148
  files:
41
- - ".gemtest"
42
- - CONTRIBUTING.md
43
- - README.md
44
149
  - Rakefile
45
- - VERSION
46
150
  - lib/sixarm_ruby_date_time_rand.rb
47
151
  - lib/sixarm_ruby_date_time_rand/date.rb
48
152
  - lib/sixarm_ruby_date_time_rand/date_time.rb
@@ -53,11 +157,12 @@ files:
53
157
  - test/sixarm_ruby_date_time_rand_test/time_test.rb
54
158
  homepage: http://sixarm.com/
55
159
  licenses:
56
- - BSD
57
- - GPL
160
+ - Apache-2.0
161
+ - Artistic-2.0
162
+ - BSD-3-Clause
163
+ - GPL-3.0
58
164
  - MIT
59
- - PAL
60
- - Various
165
+ - MPL-2.0
61
166
  metadata: {}
62
167
  post_install_message:
63
168
  rdoc_options: []
@@ -75,13 +180,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
180
  version: '0'
76
181
  requirements: []
77
182
  rubyforge_project:
78
- rubygems_version: 2.2.0
183
+ rubygems_version: 2.6.12
79
184
  signing_key:
80
185
  specification_version: 4
81
- summary: 'SixArm.com » Ruby » Date and Time #rand methods'
186
+ summary: 'SixArm.com Ruby Date and Time #rand methods'
82
187
  test_files:
83
188
  - test/sixarm_ruby_date_time_rand_test.rb
84
189
  - test/sixarm_ruby_date_time_rand_test/date_test.rb
85
190
  - test/sixarm_ruby_date_time_rand_test/date_time_test.rb
86
191
  - test/sixarm_ruby_date_time_rand_test/time_test.rb
87
- has_rdoc: true
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes
data/CONTRIBUTING.md DELETED
@@ -1,28 +0,0 @@
1
- # Contributing
2
-
3
- Thank you for contributing!
4
-
5
- If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
6
-
7
- If you would like to contribute help, the next section is for you.
8
-
9
-
10
- ## Contributing to the source
11
-
12
- We love pull requests for improvments to the source code and documentation.
13
-
14
- There are three easy steps:
15
-
16
- 1. Fork the repo.
17
-
18
- * Before you do any work please run our existing tests to make sure the code runs cleanly.
19
-
20
- 2. Work as you like.
21
-
22
- * Please create tests. This helps us know that all your code runs cleanly.
23
-
24
- 3. Push to your fork and submit a pull request.
25
-
26
- * We'll take a look as soon as we can; this is typically within a business day.
27
-
28
- Thank you again!
data/README.md DELETED
@@ -1,86 +0,0 @@
1
- # SixArm.com » Ruby » <br> Date and Time #rand methods
2
-
3
- [![Code Climate](https://codeclimate.com/github/SixArm/sixarm_ruby_date_time_rand.png)](https://codeclimate.com/github/SixArm/sixarm_ruby_date_time_rand)
4
- [![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_date_time_rand.png)](https://travis-ci.org/SixArm/sixarm_ruby_date_time_rand)
5
-
6
- * Doc: <http://sixarm.com/sixarm_ruby_date_time_rand/doc>
7
- * Gem: <http://rubygems.org/gems/sixarm_ruby_date_time_rand>
8
- * Repo: <http://github.com/sixarm/sixarm_ruby_date_time_rand>
9
- * Email: Joel Parker Henderson, <joel@sixarm.com>
10
-
11
-
12
- ## Introduction
13
-
14
- Generate random dates and times:
15
-
16
- DateTime.rand
17
- Date.rand
18
- Time.rand
19
-
20
- The random range is +/- 10000 days.
21
-
22
- For docs go to <http://sixarm.com/sixarm_ruby_date_time_rand/doc>
23
-
24
- Want to help? We're happy to get pull requests.
25
-
26
-
27
- ## Install quickstart
28
-
29
- Install:
30
-
31
- gem install sixarm_ruby_date_time_rand
32
-
33
- Bundler:
34
-
35
- gem "sixarm_ruby_date_time_rand", "~>2.0.0"
36
-
37
- Require:
38
-
39
- require "sixarm_ruby_date_time_rand"
40
-
41
-
42
- ## Install with security (optional)
43
-
44
- To enable high security for all our gems:
45
-
46
- wget http://sixarm.com/sixarm.pem
47
- gem cert --add sixarm.pem
48
- gem sources --add http://sixarm.com
49
-
50
- To install with high security:
51
-
52
- gem install sixarm_ruby_date_time_rand --test --trust-policy HighSecurity
53
-
54
-
55
- ## Changes
56
-
57
- * 2014-03-26 2.0.0 Publish
58
-
59
-
60
- ## License
61
-
62
- You may choose any of these open source licenses:
63
-
64
- * Apache License
65
- * BSD License
66
- * CreativeCommons License, Non-commercial Share Alike
67
- * GNU General Public License Version 2 (GPL 2)
68
- * GNU Lesser General Public License (LGPL)
69
- * MIT License
70
- * Perl Artistic License
71
- * Ruby License
72
-
73
- The software is provided "as is", without warranty of any kind,
74
- express or implied, including but not limited to the warranties of
75
- merchantability, fitness for a particular purpose and noninfringement.
76
-
77
- In no event shall the authors or copyright holders be liable for any
78
- claim, damages or other liability, whether in an action of contract,
79
- tort or otherwise, arising from, out of or in connection with the
80
- software or the use or other dealings in the software.
81
-
82
- This license is for the included software that is created by SixArm;
83
- some of the included software may have its own licenses, copyrights,
84
- authors, etc. and these do take precedence over the SixArm license.
85
-
86
- Copyright (c) 2005-2012 Joel Parker Henderson
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.0.0