sixarm_ruby_zid 5.0.1 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2a9308aa73217e6302ad466d756baca1e80e123aa182452b7d704ce37bdfe07
4
- data.tar.gz: 3baed1941ef37f4de37990eea1f0756c72f559603dd8b39f6bb0f7336900b88a
3
+ metadata.gz: d556c6281869b0297d26c923de85386ba4a8cb40ba48ff76608352892b2f9534
4
+ data.tar.gz: 8ec657afd078dddac0907bf668175a6306286aa577a1bfff32144cd83b80958d
5
5
  SHA512:
6
- metadata.gz: 2d7c724f9b5d6ace9e44e2a36d2b6dd0535be31582299bc2ba97a72ef7eda246677b29678be7526905a229c4b3ff4e620c4264e0b7d4ed23d4d1f2248314d6d8
7
- data.tar.gz: 68b1547592adef639511528adccb4cebd73fe9f5989565aa0d322c3d382267943aea571013db6a6f2af3f32ef33f51f2be93aed47e5a0e6d5b8b1ef660309ba1
6
+ metadata.gz: 73c4b03e3de1e4c947d1a81d41157ac8d82fc1c2da009c4d35296b83a630db73cb9c1c765adce5f81bb869c9f2eddce474cd3fad859d4de5f8dc13c55affdc32
7
+ data.tar.gz: 3cc88cb3f5ae6938bd3863b6bfa788dfce8b117682591a79b3c1b271147d74e29d8d66c646bd336a95acb4456c4538887faae9fea4771ed5b075cb1744429a94
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,11 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require "minitest/autorun"
3
- require "coveralls"
4
3
  require "simplecov"
5
- Coveralls.wear!
6
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
7
5
  SimpleCov::Formatter::HTMLFormatter,
8
- Coveralls::SimpleCov::Formatter
9
- ]
6
+ ])
10
7
  SimpleCov.start
11
- require "sixarm_ruby_xid"
8
+ require "sixarm_ruby_zid"
@@ -9,14 +9,14 @@ describe ZID do
9
9
 
10
10
  it "is a string with the correct length and characters" do
11
11
  zid = ZID.generate
12
- zid.must_match /\A[0-9a-f]{32}\z/
12
+ expect(zid).must_match(/\A[0-9a-f]{32}\z/)
13
13
  end
14
14
 
15
15
  it "is always different" do
16
16
  seen = Set.new
17
17
  99999.times.each{
18
18
  zid = ZID.generate
19
- seen.include?(zid).must_equal false
19
+ expect(seen.include?(zid)).must_equal false
20
20
  seen.add(zid)
21
21
  }
22
22
  end
@@ -29,13 +29,13 @@ describe ZID do
29
29
 
30
30
  describe "with valid string" do
31
31
  it "is true" do
32
- ZID.valid?("c3d010bbfec046f59c7fe843d32dab32").must_be_same_as true
32
+ expect(ZID.valid?("c3d010bbfec046f59c7fe843d32dab32")).must_be_same_as true
33
33
  end
34
34
  end
35
35
 
36
36
  describe "with invalid string" do
37
37
  it "is false" do
38
- ZID.valid?("abc").must_be_same_as false
38
+ expect(ZID.valid?("abc")).must_be_same_as false
39
39
  end
40
40
  end
41
41
 
@@ -46,24 +46,24 @@ describe ZID do
46
46
  it "converts objects to strings" do
47
47
  obj = Minitest::Mock.new
48
48
  obj.expect(:to_s, "!!C3D010BBFEC046F59C7FE843D32DAB32!!")
49
- ZID.parse(obj).must_equal "c3d010bbfec046f59c7fe843d32dab32"
49
+ expect(ZID.parse(obj)).must_equal "c3d010bbfec046f59c7fe843d32dab32"
50
50
  obj.verify
51
51
  end
52
52
 
53
53
  it "converts to lower case" do
54
- ZID.parse("C3D010BBFEC046F59C7FE843D32DAB32").must_equal "c3d010bbfec046f59c7fe843d32dab32"
54
+ expect(ZID.parse("C3D010BBFEC046F59C7FE843D32DAB32")).must_equal "c3d010bbfec046f59c7fe843d32dab32"
55
55
  end
56
56
 
57
57
  it "deletes non-hex characters" do
58
- ZID.parse("!!c3d010bb-fec0-46f59c7f-e843d32dab32!!").must_equal "c3d010bbfec046f59c7fe843d32dab32"
58
+ expect(ZID.parse("!!c3d010bb-fec0-46f59c7f-e843d32dab32!!")).must_equal "c3d010bbfec046f59c7fe843d32dab32"
59
59
  end
60
60
 
61
61
  it "chops at 32 characters" do
62
- ZID.parse("c3d010bbfec046f59c7fe843d32dab32aaaaaaaaa").must_equal "c3d010bbfec046f59c7fe843d32dab32"
62
+ expect(ZID.parse("c3d010bbfec046f59c7fe843d32dab32aaaaaaaaa")).must_equal "c3d010bbfec046f59c7fe843d32dab32"
63
63
  end
64
64
 
65
65
  it "raises if the string is invalid" do
66
- proc { ZID.parse("abc") }.must_raise ArgumentError
66
+ expect(proc { ZID.parse("abc") }).must_raise ArgumentError
67
67
  end
68
68
 
69
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_zid
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -39,7 +39,7 @@ cert_chain:
39
39
  tzpk/VnZXj7Ek/earx+N/Z+Wtnl2xENm5IF8SFPeI1HFa9NH47pqtxF1YKpNIEVc
40
40
  2xa2BNHSePe7tys/2hbmZuyMu8X5ERmovsabSXB3a+YwtJh5c2jhA21wF7986s0q
41
41
  -----END CERTIFICATE-----
42
- date: 2018-05-11 00:00:00.000000000 Z
42
+ date: 2018-06-22 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: minitest
@@ -47,7 +47,7 @@ dependencies:
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 5.7.0
50
+ version: 5.11.3
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '6'
@@ -57,7 +57,7 @@ dependencies:
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 5.7.0
60
+ version: 5.11.3
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '6'
@@ -85,29 +85,29 @@ dependencies:
85
85
  name: rake
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: 10.4.2
90
+ version: 12.3.1
91
91
  - - "<"
92
92
  - !ruby/object:Gem::Version
93
- version: '11'
93
+ version: '13'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">"
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: 10.4.2
100
+ version: 12.3.1
101
101
  - - "<"
102
102
  - !ruby/object:Gem::Version
103
- version: '11'
103
+ version: '13'
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: simplecov
106
106
  requirement: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 0.10.0
110
+ version: 0.16.1
111
111
  - - "<"
112
112
  - !ruby/object:Gem::Version
113
113
  version: '2'
@@ -117,30 +117,110 @@ dependencies:
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 0.10.0
120
+ version: 0.16.1
121
121
  - - "<"
122
122
  - !ruby/object:Gem::Version
123
123
  version: '2'
124
124
  - !ruby/object:Gem::Dependency
125
- name: coveralls
125
+ name: flog
126
126
  requirement: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: 0.8.2
130
+ version: 4.6.2
131
131
  - - "<"
132
132
  - !ruby/object:Gem::Version
133
- version: '2'
133
+ version: '5'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: 0.8.2
140
+ version: 4.6.2
141
141
  - - "<"
142
142
  - !ruby/object:Gem::Version
143
- version: '2'
143
+ version: '5'
144
+ - !ruby/object:Gem::Dependency
145
+ name: flay
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 2.12.0
151
+ - - "<"
152
+ - !ruby/object:Gem::Version
153
+ version: '3'
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 2.12.0
161
+ - - "<"
162
+ - !ruby/object:Gem::Version
163
+ version: '3'
164
+ - !ruby/object:Gem::Dependency
165
+ name: reek
166
+ requirement: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 4.8.1
171
+ - - "<"
172
+ - !ruby/object:Gem::Version
173
+ version: '5'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 4.8.1
181
+ - - "<"
182
+ - !ruby/object:Gem::Version
183
+ version: '5'
184
+ - !ruby/object:Gem::Dependency
185
+ name: rubycritic
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: 3.4.0
191
+ - - "<"
192
+ - !ruby/object:Gem::Version
193
+ version: '4'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 3.4.0
201
+ - - "<"
202
+ - !ruby/object:Gem::Version
203
+ version: '4'
204
+ - !ruby/object:Gem::Dependency
205
+ name: rubocop
206
+ requirement: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: 0.57.2
211
+ - - "<"
212
+ - !ruby/object:Gem::Version
213
+ version: '1'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: 0.57.2
221
+ - - "<"
222
+ - !ruby/object:Gem::Version
223
+ version: '1'
144
224
  description: ZID generates a new random id, suitable for foreign keys, security authentication,
145
225
  unique tracking, etc.
146
226
  email: sixarm@sixarm.com
@@ -170,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
250
  requirements:
171
251
  - - ">="
172
252
  - !ruby/object:Gem::Version
173
- version: '2.2'
253
+ version: '2.5'
174
254
  required_rubygems_version: !ruby/object:Gem::Requirement
175
255
  requirements:
176
256
  - - ">="
@@ -178,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
258
  version: '0'
179
259
  requirements: []
180
260
  rubyforge_project:
181
- rubygems_version: 2.7.6
261
+ rubygems_version: 2.7.7
182
262
  signing_key:
183
263
  specification_version: 4
184
264
  summary: 'SixArm.com → Ruby → ZID: Xeno Identifier'
metadata.gz.sig CHANGED
Binary file