prolog_minitest_matchers 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/README.md +3 -1
- data/Rakefile +2 -2
- data/lib/prolog_minitest_matchers/matchers/asserters/assert_requires_dry_struct_attribute.rb +2 -2
- data/lib/prolog_minitest_matchers/matchers/asserters/base_assert_required_parameter.rb +1 -0
- data/lib/prolog_minitest_matchers/version.rb +1 -1
- data/prolog_minitest_matchers.gemspec +11 -7
- metadata +87 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f1a77deacdc56584c7dda771581deb918197253
|
4
|
+
data.tar.gz: da3f27d505485c4173f65e19da6035ca47a383a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e26ac2e6f13cf5e96c0e36badff81cb7c55c166711aca43069e559c06f845d744d43ce8134b78c163ab2eceb1f0f31a5696414bdafa08b9e3ba911326fd15e
|
7
|
+
data.tar.gz: 6e995e08d224b4c03120aea2a42dfdcfafb8040ec253b7feb23c31bbcc34b2e406b472cc773c35c054ca3499962f58d9eb7dd630470013ae35f1750c05bfe03e
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -35,7 +35,7 @@ Suppose that you have code such as
|
|
35
35
|
|
36
36
|
```ruby
|
37
37
|
# in foo.rb
|
38
|
-
class Foo < Dry::
|
38
|
+
class Foo < Dry::Struct
|
39
39
|
attribute :foo, Types::Strict::String
|
40
40
|
attribute :bar, Types::Coercible.Int
|
41
41
|
# ...
|
@@ -257,6 +257,8 @@ Once again, two much more intention-revealing expectations that are counted as o
|
|
257
257
|
|
258
258
|
Attentive readers may note the strong similarity between these three expectations. They would be right; although the use cases differ in important ways, the implementation details that set each apart from the others have been reduced to a minimum, as inspecting the code itself will reveal. See some room for improvement? Great! Open an issue and let's talk about it!
|
259
259
|
|
260
|
+
**Important:** This Gem no longer supports versions of the `dry-types` Gem prior to Version 0.8.0, when the `dry-struct` Gem was extracted and published separately. The class names for structs and value objects have changed (from `Dry::Types::Struct` and `Dry::Types::Value` to `Dry::Struct` and `Dry::Struct::Value` respectively), and thus version 0.4.0 of *this* Gem represents a breaking change from what was published before.
|
261
|
+
|
260
262
|
|
261
263
|
## Errata
|
262
264
|
|
data/Rakefile
CHANGED
@@ -28,12 +28,12 @@ RuboCop::RakeTask.new(:rubocop) do |task|
|
|
28
28
|
Reek::Rake::Task.new do |t|
|
29
29
|
t.config_file = 'config.reek'
|
30
30
|
t.source_files = 'lib/**/*.rb'
|
31
|
-
t.reek_opts = '--sort-by smelliness -s'
|
31
|
+
t.reek_opts = '--sort-by smelliness --no-progress -s'
|
32
32
|
end
|
33
33
|
|
34
34
|
FlayTask.new do |t|
|
35
35
|
t.verbose = true
|
36
|
-
t.dirs = %w(lib)
|
36
|
+
t.dirs = %w(app lib)
|
37
37
|
end
|
38
38
|
|
39
39
|
FlogTask.new do |t|
|
data/lib/prolog_minitest_matchers/matchers/asserters/assert_requires_dry_struct_attribute.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'dry-
|
3
|
+
require 'dry-struct'
|
4
4
|
|
5
5
|
require_relative './base_assert_required_parameter'
|
6
6
|
|
@@ -16,7 +16,7 @@ module MiniTest
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def error_class
|
19
|
-
Dry::
|
19
|
+
Dry::Struct::Error
|
20
20
|
end
|
21
21
|
|
22
22
|
def error_inducer
|
@@ -27,15 +27,19 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_dependency "dry-
|
30
|
+
spec.add_dependency "dry-struct", "~> 0.1", ">= 0.1.0"
|
31
31
|
|
32
|
-
spec.add_development_dependency "bundler", "~> 1.
|
33
|
-
spec.add_development_dependency "rake", "~> 11.
|
34
|
-
spec.add_development_dependency "minitest", "~> 5.9", ">= 5.9.
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.13", ">= 1.13.4"
|
33
|
+
spec.add_development_dependency "rake", "~> 11.3", ">= 11.3.0"
|
34
|
+
spec.add_development_dependency "minitest", "~> 5.9", ">= 5.9.1"
|
35
|
+
spec.add_development_dependency "minitest-reporters", "~> 1.1", ">= 1.1.11"
|
35
36
|
|
36
|
-
spec.add_development_dependency "flay", "~> 2.8", ">= 2.8.
|
37
|
+
spec.add_development_dependency "flay", "~> 2.8", ">= 2.8.1"
|
37
38
|
spec.add_development_dependency "flog", "~> 4.4", ">= 4.4.0"
|
38
|
-
spec.add_development_dependency "reek", "~> 4.
|
39
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
39
|
+
spec.add_development_dependency "reek", "~> 4.5", ">= 4.5.0"
|
40
|
+
spec.add_development_dependency "rubocop", "~> 0.44", ">= 0.44.1"
|
41
|
+
# spec.add_development_dependency "rubocop", "~> 0.42", ">= 0.42.0" # 0.44.1 as of 20161014
|
42
|
+
spec.add_development_dependency "simplecov", "~> 0.12", ">= 0.12.0"
|
40
43
|
spec.add_development_dependency "pry-byebug", "~> 3.4", ">= 3.4.0"
|
44
|
+
spec.add_development_dependency "pry-doc", "~> 0.9", ">= 0.9.0"
|
41
45
|
end
|
metadata
CHANGED
@@ -1,75 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prolog_minitest_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dickey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: dry-
|
14
|
+
name: dry-struct
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.1'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.1'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.1.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.13'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.13.4
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1.
|
49
|
+
version: '1.13'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 1.
|
52
|
+
version: 1.13.4
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rake
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '11.
|
59
|
+
version: '11.3'
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 11.
|
62
|
+
version: 11.3.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '11.
|
69
|
+
version: '11.3'
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 11.
|
72
|
+
version: 11.3.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: minitest
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: '5.9'
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 5.9.
|
82
|
+
version: 5.9.1
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,27 @@ dependencies:
|
|
89
89
|
version: '5.9'
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 5.9.
|
92
|
+
version: 5.9.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: minitest-reporters
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.1'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.1.11
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.1'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.1.11
|
93
113
|
- !ruby/object:Gem::Dependency
|
94
114
|
name: flay
|
95
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +119,7 @@ dependencies:
|
|
99
119
|
version: '2.8'
|
100
120
|
- - ">="
|
101
121
|
- !ruby/object:Gem::Version
|
102
|
-
version: 2.8.
|
122
|
+
version: 2.8.1
|
103
123
|
type: :development
|
104
124
|
prerelease: false
|
105
125
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,7 +129,7 @@ dependencies:
|
|
109
129
|
version: '2.8'
|
110
130
|
- - ">="
|
111
131
|
- !ruby/object:Gem::Version
|
112
|
-
version: 2.8.
|
132
|
+
version: 2.8.1
|
113
133
|
- !ruby/object:Gem::Dependency
|
114
134
|
name: flog
|
115
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,40 +156,60 @@ dependencies:
|
|
136
156
|
requirements:
|
137
157
|
- - "~>"
|
138
158
|
- !ruby/object:Gem::Version
|
139
|
-
version: '4.
|
159
|
+
version: '4.5'
|
140
160
|
- - ">="
|
141
161
|
- !ruby/object:Gem::Version
|
142
|
-
version: 4.
|
162
|
+
version: 4.5.0
|
143
163
|
type: :development
|
144
164
|
prerelease: false
|
145
165
|
version_requirements: !ruby/object:Gem::Requirement
|
146
166
|
requirements:
|
147
167
|
- - "~>"
|
148
168
|
- !ruby/object:Gem::Version
|
149
|
-
version: '4.
|
169
|
+
version: '4.5'
|
150
170
|
- - ">="
|
151
171
|
- !ruby/object:Gem::Version
|
152
|
-
version: 4.
|
172
|
+
version: 4.5.0
|
153
173
|
- !ruby/object:Gem::Dependency
|
154
174
|
name: rubocop
|
155
175
|
requirement: !ruby/object:Gem::Requirement
|
156
176
|
requirements:
|
157
177
|
- - "~>"
|
158
178
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
179
|
+
version: '0.44'
|
160
180
|
- - ">="
|
161
181
|
- !ruby/object:Gem::Version
|
162
|
-
version: 0.
|
182
|
+
version: 0.44.1
|
163
183
|
type: :development
|
164
184
|
prerelease: false
|
165
185
|
version_requirements: !ruby/object:Gem::Requirement
|
166
186
|
requirements:
|
167
187
|
- - "~>"
|
168
188
|
- !ruby/object:Gem::Version
|
169
|
-
version: '0.
|
189
|
+
version: '0.44'
|
170
190
|
- - ">="
|
171
191
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
192
|
+
version: 0.44.1
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: simplecov
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0.12'
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 0.12.0
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0.12'
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: 0.12.0
|
173
213
|
- !ruby/object:Gem::Dependency
|
174
214
|
name: pry-byebug
|
175
215
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,6 +230,26 @@ dependencies:
|
|
190
230
|
- - ">="
|
191
231
|
- !ruby/object:Gem::Version
|
192
232
|
version: 3.4.0
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: pry-doc
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0.9'
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 0.9.0
|
243
|
+
type: :development
|
244
|
+
prerelease: false
|
245
|
+
version_requirements: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0.9'
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: 0.9.0
|
193
253
|
description:
|
194
254
|
email:
|
195
255
|
- jdickey@seven-sigma.com
|