fix 1.0.0.beta10 → 1.0.0.beta11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +173 -46
- data/lib/fix/dsl.rb +10 -3
- data/lib/fix/matcher.rb +43 -43
- data/lib/fix/requirement.rb +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40461f87067aa8b719fc25a6256772961b8ef4c412cd043ddddc51d8b048d014
|
4
|
+
data.tar.gz: ad050718de8cd7c7fcede3f8c9644b91c33ec2cef4e877fd28773d576b265292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d83f640bb5a086f530265eea8fab350a74e4209072aae351107b0fab393e6ebb1f3fcd266550fccc3c21cf5b9885e2444731ab28200861fcc06fff4f3facf83
|
7
|
+
data.tar.gz: 85a1b557e06c39c82c653e4283c0489a6bfb3aec0dff69e1f42617cf93805fe5fbe8ea9a5feb13a853d1969a63ea741c73ba1872b4b8b1939b924e388e0ec377
|
data/README.md
CHANGED
@@ -1,27 +1,20 @@
|
|
1
|
-
# Fix
|
1
|
+
# Fix Framework
|
2
2
|
|
3
3
|
[![Home](https://img.shields.io/badge/Home-fixrb.dev-00af8b)](https://fixrb.dev/)
|
4
4
|
[![Version](https://img.shields.io/github/v/tag/fixrb/fix?label=Version&logo=github)](https://github.com/fixrb/fix/tags)
|
5
5
|
[![Yard documentation](https://img.shields.io/badge/Yard-documentation-blue.svg?logo=github)](https://rubydoc.info/github/fixrb/fix/main)
|
6
|
-
[![Ruby](https://github.com/fixrb/fix/workflows/Ruby/badge.svg?branch=main)](https://github.com/fixrb/fix/actions?query=workflow%3Aruby+branch%3Amain)
|
7
|
-
[![RuboCop](https://github.com/fixrb/fix/workflows/RuboCop/badge.svg?branch=main)](https://github.com/fixrb/fix/actions?query=workflow%3Arubocop+branch%3Amain)
|
8
6
|
[![License](https://img.shields.io/github/license/fixrb/fix?label=License&logo=github)](https://github.com/fixrb/fix/raw/main/LICENSE.md)
|
9
7
|
|
10
|
-
|
8
|
+
## Introduction
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
- **Distinguish Specifications from Examples**: Clear separation between what is expected (specifications) and how it's demonstrated (examples).
|
15
|
-
- **Logic-Free Specification Documents**: Create specifications that are straightforward and free of complex logic, focusing purely on defining expected behaviors.
|
16
|
-
- **Nuanced Semantic Language in Specifications**: Utilize a rich, nuanced semantic language, similar to that in RFC 2119, employing keywords like MUST, SHOULD, and MAY to define different levels of requirement in specifications.
|
17
|
-
- **Fast and Individual Test Execution**: Enable quick execution of tests on an individual basis, providing immediate feedback on compliance with specifications.
|
10
|
+
Fix is a modern Ruby testing framework that emphasizes clear separation between specifications and examples. Unlike traditional testing frameworks, Fix focuses on creating pure specification documents that define expected behaviors without mixing in implementation details.
|
18
11
|
|
19
12
|
## Installation
|
20
13
|
|
21
14
|
Add to your Gemfile:
|
22
15
|
|
23
16
|
```ruby
|
24
|
-
gem "fix", ">= 1.0.0.
|
17
|
+
gem "fix", ">= 1.0.0.beta11"
|
25
18
|
```
|
26
19
|
|
27
20
|
Then execute:
|
@@ -36,15 +29,161 @@ Or install it yourself:
|
|
36
29
|
gem install fix --pre
|
37
30
|
```
|
38
31
|
|
39
|
-
##
|
32
|
+
## Core Principles
|
33
|
+
|
34
|
+
- **Specifications vs Examples**: Fix makes a clear distinction between specifications (what is expected) and examples (how it's demonstrated). This separation leads to cleaner, more maintainable test suites.
|
35
|
+
|
36
|
+
- **Logic-Free Specifications**: Your specification documents remain pure and focused on defining behaviors, without getting cluttered by implementation logic.
|
37
|
+
|
38
|
+
- **Rich Semantic Language**: Following RFC 2119 conventions, Fix uses precise language with keywords like MUST, SHOULD, and MAY to clearly define different requirement levels in specifications.
|
39
|
+
|
40
|
+
- **Fast Individual Testing**: Tests execute quickly and independently, providing rapid feedback on specification compliance.
|
41
|
+
|
42
|
+
## Framework Features
|
43
|
+
|
44
|
+
### Property Definition with `let`
|
45
|
+
|
46
|
+
Define reusable properties across your specifications:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
Fix do
|
50
|
+
let(:name) { "Bob" }
|
51
|
+
let(:age) { 42 }
|
52
|
+
|
53
|
+
it MUST eq name
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Context Creation with `with`
|
58
|
+
|
59
|
+
Test behavior under different conditions:
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
Fix do
|
63
|
+
with name: "Alice", role: "admin" do
|
64
|
+
it MUST be_allowed
|
65
|
+
end
|
66
|
+
|
67
|
+
with name: "Bob", role: "guest" do
|
68
|
+
it MUST_NOT be_allowed
|
69
|
+
end
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Method Testing with `on`
|
40
74
|
|
41
|
-
|
75
|
+
Test how objects respond to specific messages:
|
42
76
|
|
43
77
|
```ruby
|
44
|
-
|
78
|
+
Fix do
|
79
|
+
on :upcase do
|
80
|
+
it MUST eq "HELLO"
|
81
|
+
end
|
82
|
+
|
83
|
+
on :+, 2 do
|
84
|
+
it MUST eq 42
|
85
|
+
end
|
86
|
+
end
|
87
|
+
```
|
88
|
+
|
89
|
+
### Requirement Levels
|
45
90
|
|
91
|
+
Fix provides three levels of requirements, each with clear semantic meaning:
|
92
|
+
|
93
|
+
- **MUST/MUST_NOT**: Absolute requirements or prohibitions
|
94
|
+
- **SHOULD/SHOULD_NOT**: Recommended practices with valid exceptions
|
95
|
+
- **MAY**: Optional features
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
Fix do
|
99
|
+
it MUST be_valid # Required
|
100
|
+
it SHOULD be_optimized # Recommended
|
101
|
+
it MAY include_metadata # Optional
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
## Quick Start
|
106
|
+
|
107
|
+
Create your first test file:
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
# first_test.rb
|
46
111
|
require "fix"
|
47
112
|
|
113
|
+
Fix :HelloWorld do
|
114
|
+
it MUST eq "Hello, World!"
|
115
|
+
end
|
116
|
+
|
117
|
+
Fix[:HelloWorld].test { "Hello, World!" }
|
118
|
+
```
|
119
|
+
|
120
|
+
Run it:
|
121
|
+
|
122
|
+
```sh
|
123
|
+
ruby first_test.rb
|
124
|
+
```
|
125
|
+
|
126
|
+
## Real-World Examples
|
127
|
+
|
128
|
+
Fix is designed to work with real-world applications of any complexity. Here are some examples demonstrating how Fix can be used in different scenarios:
|
129
|
+
|
130
|
+
### Example 1: User Account Management
|
131
|
+
|
132
|
+
Here's a comprehensive example showing how to specify a user account system:
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
Fix :UserAccount do
|
136
|
+
# Define reusable properties
|
137
|
+
let(:admin) { User.new(role: "admin") }
|
138
|
+
let(:guest) { User.new(role: "guest") }
|
139
|
+
|
140
|
+
# Test basic instance properties
|
141
|
+
it MUST be_an_instance_of User
|
142
|
+
|
143
|
+
# Test with different contexts
|
144
|
+
with role: "admin" do
|
145
|
+
it MUST be_admin
|
146
|
+
|
147
|
+
on :can_access?, "settings" do
|
148
|
+
it MUST be_true
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
with role: "guest" do
|
153
|
+
it MUST_NOT be_admin
|
154
|
+
|
155
|
+
on :can_access?, "settings" do
|
156
|
+
it MUST be_false
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Test specific methods
|
161
|
+
on :full_name do
|
162
|
+
with first_name: "John", last_name: "Doe" do
|
163
|
+
it MUST eq "John Doe"
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
on :update_password, "new_password" do
|
168
|
+
it MUST change(admin, :password_hash)
|
169
|
+
it MUST be_true # Return value check
|
170
|
+
end
|
171
|
+
end
|
172
|
+
```
|
173
|
+
|
174
|
+
This example demonstrates:
|
175
|
+
- Using `let` to define test fixtures
|
176
|
+
- Context-specific testing with `with`
|
177
|
+
- Method behavior testing with `on`
|
178
|
+
- Different requirement levels with `MUST`/`MUST_NOT`
|
179
|
+
- Testing state changes with the `change` matcher
|
180
|
+
- Nested contexts for complex scenarios
|
181
|
+
|
182
|
+
### Example 2: Duck Specification
|
183
|
+
|
184
|
+
Here's how Fix can be used to specify a Duck class:
|
185
|
+
|
186
|
+
```ruby
|
48
187
|
Fix :Duck do
|
49
188
|
it SHOULD be_an_instance_of :Duck
|
50
189
|
|
@@ -63,11 +202,9 @@ Fix :Duck do
|
|
63
202
|
end
|
64
203
|
```
|
65
204
|
|
66
|
-
|
205
|
+
The implementation:
|
67
206
|
|
68
207
|
```ruby
|
69
|
-
# examples/duck/app.rb
|
70
|
-
|
71
208
|
class Duck
|
72
209
|
def walks
|
73
210
|
"Klop klop!"
|
@@ -86,36 +223,31 @@ end
|
|
86
223
|
Running the test:
|
87
224
|
|
88
225
|
```ruby
|
89
|
-
# examples/duck/test.rb
|
90
|
-
|
91
|
-
require_relative "app"
|
92
|
-
require_relative "fix"
|
93
|
-
|
94
226
|
Fix[:Duck].test { Duck.new }
|
95
227
|
```
|
96
228
|
|
97
|
-
|
229
|
+
## Why Choose Fix?
|
98
230
|
|
99
|
-
|
100
|
-
ruby examples/duck/test.rb
|
101
|
-
```
|
231
|
+
Fix brings several unique advantages to Ruby testing that set it apart from traditional testing frameworks:
|
102
232
|
|
103
|
-
|
233
|
+
- **Clear Separation of Concerns**: Keep your specifications clean and your examples separate
|
234
|
+
- **Semantic Precision**: Express requirements with different levels of necessity
|
235
|
+
- **Fast Execution**: Get quick feedback on specification compliance
|
236
|
+
- **Pure Specifications**: Write specification documents that focus on behavior, not implementation
|
237
|
+
- **Rich Matcher Library**: Comprehensive set of matchers for different testing needs
|
238
|
+
- **Modern Ruby**: Takes advantage of modern Ruby features and practices
|
104
239
|
|
105
|
-
|
106
|
-
|
107
|
-
(
|
108
|
-
(irb):15 NoMethodError: undefined method `sings' for #<Duck:0x00007fb2fd8371d0>.
|
109
|
-
(irb):6 Success: expected "Swoosh..." to be an instance of String.
|
110
|
-
(irb):11 Success: undefined method `speaks' for #<Duck:0x00007fb2fcc79258>.
|
111
|
-
```
|
240
|
+
## Get Started
|
241
|
+
|
242
|
+
Ready to write better specifications? Visit our [GitHub repository](https://github.com/fixrb/fix) to start using Fix in your Ruby projects.
|
112
243
|
|
113
|
-
##
|
244
|
+
## Community & Resources
|
114
245
|
|
115
|
-
- [
|
116
|
-
- [
|
117
|
-
- [
|
118
|
-
- [
|
246
|
+
- [Blog](https://fixrb.dev/) - Related articles
|
247
|
+
- [Bluesky](https://bsky.app/profile/fixrb.dev) - Latest updates and discussions
|
248
|
+
- [Documentation](https://www.rubydoc.info/gems/fix) - Comprehensive guides and API reference
|
249
|
+
- [Source Code](https://github.com/fixrb/fix) - Contribute and report issues
|
250
|
+
- [asciinema](https://asciinema.org/~fix) - Watch practical examples in action
|
119
251
|
|
120
252
|
## Versioning
|
121
253
|
|
@@ -125,11 +257,6 @@ __Fix__ follows [Semantic Versioning 2.0](https://semver.org/).
|
|
125
257
|
|
126
258
|
The [gem](https://rubygems.org/gems/fix) is available as open source under the terms of the [MIT License](https://github.com/fixrb/fix/raw/main/LICENSE.md).
|
127
259
|
|
128
|
-
|
260
|
+
## Sponsors
|
129
261
|
|
130
|
-
|
131
|
-
This project is sponsored by:<br />
|
132
|
-
<a href="https://sashite.com/"><img
|
133
|
-
src="https://github.com/fixrb/fix/raw/main/img/sashite.png"
|
134
|
-
alt="Sashité" /></a>
|
135
|
-
</p>
|
262
|
+
This project is sponsored by [Sashité](https://sashite.com/)
|
data/lib/fix/dsl.rb
CHANGED
@@ -95,13 +95,20 @@ module Fix
|
|
95
95
|
#
|
96
96
|
# Fix { it MUST be 42 }
|
97
97
|
#
|
98
|
+
# Fix do
|
99
|
+
# it { MUST be 42 }
|
100
|
+
# end
|
101
|
+
#
|
98
102
|
# @api public
|
99
|
-
def self.it(requirement)
|
103
|
+
def self.it(requirement = nil, &block)
|
104
|
+
raise ::ArgumentError, "Must provide either requirement or block, not both" if requirement && block
|
105
|
+
raise ::ArgumentError, "Must provide either requirement or block" unless requirement || block
|
106
|
+
|
100
107
|
location = caller_locations(1, 1).fetch(0)
|
101
108
|
location = [location.path, location.lineno].join(":")
|
102
109
|
|
103
|
-
define_method(:"test_#{requirement.object_id}") do
|
104
|
-
[location, requirement, self.class.challenges]
|
110
|
+
define_method(:"test_#{(requirement || block).object_id}") do
|
111
|
+
[location, requirement || singleton_class.class_eval(&block), self.class.challenges]
|
105
112
|
end
|
106
113
|
end
|
107
114
|
|
data/lib/fix/matcher.rb
CHANGED
@@ -11,12 +11,12 @@ module Fix
|
|
11
11
|
#
|
12
12
|
# @example
|
13
13
|
# matcher = eq("foo")
|
14
|
-
# matcher.
|
15
|
-
# matcher.
|
14
|
+
# matcher.match? { "foo" } # => true
|
15
|
+
# matcher.match? { "bar" } # => false
|
16
16
|
#
|
17
17
|
# @param expected [#eql?] An expected equivalent object.
|
18
18
|
#
|
19
|
-
# @return [#
|
19
|
+
# @return [#match?] An equivalence matcher.
|
20
20
|
#
|
21
21
|
# @api public
|
22
22
|
def eq(expected)
|
@@ -30,12 +30,12 @@ module Fix
|
|
30
30
|
# @example
|
31
31
|
# object = "foo"
|
32
32
|
# matcher = be(object)
|
33
|
-
# matcher.
|
34
|
-
# matcher.
|
33
|
+
# matcher.match? { object } # => true
|
34
|
+
# matcher.match? { "foo" } # => false
|
35
35
|
#
|
36
36
|
# @param expected [#equal?] The expected identical object.
|
37
37
|
#
|
38
|
-
# @return [#
|
38
|
+
# @return [#match?] An identity matcher.
|
39
39
|
#
|
40
40
|
# @api public
|
41
41
|
def be(expected)
|
@@ -48,12 +48,12 @@ module Fix
|
|
48
48
|
#
|
49
49
|
# @example
|
50
50
|
# matcher = be_within(1).of(41)
|
51
|
-
# matcher.
|
52
|
-
# matcher.
|
51
|
+
# matcher.match? { 42 } # => true
|
52
|
+
# matcher.match? { 43 } # => false
|
53
53
|
#
|
54
54
|
# @param delta [Numeric] A numeric value.
|
55
55
|
#
|
56
|
-
# @return [#
|
56
|
+
# @return [#match?] A comparison matcher.
|
57
57
|
#
|
58
58
|
# @api public
|
59
59
|
def be_within(delta)
|
@@ -64,12 +64,12 @@ module Fix
|
|
64
64
|
#
|
65
65
|
# @example
|
66
66
|
# matcher = match(/^foo$/)
|
67
|
-
# matcher.
|
68
|
-
# matcher.
|
67
|
+
# matcher.match? { "foo" } # => true
|
68
|
+
# matcher.match? { "bar" } # => false
|
69
69
|
#
|
70
70
|
# @param expected [#match] A regular expression.
|
71
71
|
#
|
72
|
-
# @return [#
|
72
|
+
# @return [#match?] A regular expression matcher.
|
73
73
|
#
|
74
74
|
# @api public
|
75
75
|
def match(expected)
|
@@ -80,12 +80,12 @@ module Fix
|
|
80
80
|
#
|
81
81
|
# @example
|
82
82
|
# matcher = raise_exception(NameError)
|
83
|
-
# matcher.
|
84
|
-
# matcher.
|
83
|
+
# matcher.match? { Boom } # => true
|
84
|
+
# matcher.match? { true } # => false
|
85
85
|
#
|
86
86
|
# @param expected [Exception, #to_s] The expected exception name.
|
87
87
|
#
|
88
|
-
# @return [#
|
88
|
+
# @return [#match?] An error matcher.
|
89
89
|
#
|
90
90
|
# @api public
|
91
91
|
def raise_exception(expected)
|
@@ -96,12 +96,12 @@ module Fix
|
|
96
96
|
#
|
97
97
|
# @example
|
98
98
|
# matcher = be_true
|
99
|
-
# matcher.
|
100
|
-
# matcher.
|
101
|
-
# matcher.
|
102
|
-
# matcher.
|
99
|
+
# matcher.match? { true } # => true
|
100
|
+
# matcher.match? { false } # => false
|
101
|
+
# matcher.match? { nil } # => false
|
102
|
+
# matcher.match? { 4 } # => false
|
103
103
|
#
|
104
|
-
# @return [#
|
104
|
+
# @return [#match?] A `true` matcher.
|
105
105
|
#
|
106
106
|
# @api public
|
107
107
|
def be_true
|
@@ -112,12 +112,12 @@ module Fix
|
|
112
112
|
#
|
113
113
|
# @example
|
114
114
|
# matcher = be_false
|
115
|
-
# matcher.
|
116
|
-
# matcher.
|
117
|
-
# matcher.
|
118
|
-
# matcher.
|
115
|
+
# matcher.match? { false } # => true
|
116
|
+
# matcher.match? { true } # => false
|
117
|
+
# matcher.match? { nil } # => false
|
118
|
+
# matcher.match? { 4 } # => false
|
119
119
|
#
|
120
|
-
# @return [#
|
120
|
+
# @return [#match?] A `false` matcher.
|
121
121
|
#
|
122
122
|
# @api public
|
123
123
|
def be_false
|
@@ -128,12 +128,12 @@ module Fix
|
|
128
128
|
#
|
129
129
|
# @example
|
130
130
|
# matcher = be_nil
|
131
|
-
# matcher.
|
132
|
-
# matcher.
|
133
|
-
# matcher.
|
134
|
-
# matcher.
|
131
|
+
# matcher.match? { nil } # => true
|
132
|
+
# matcher.match? { false } # => false
|
133
|
+
# matcher.match? { true } # => false
|
134
|
+
# matcher.match? { 4 } # => false
|
135
135
|
#
|
136
|
-
# @return [#
|
136
|
+
# @return [#match?] A `nil` matcher.
|
137
137
|
#
|
138
138
|
# @api public
|
139
139
|
def be_nil
|
@@ -144,12 +144,12 @@ module Fix
|
|
144
144
|
#
|
145
145
|
# @example
|
146
146
|
# matcher = be_an_instance_of(String)
|
147
|
-
# matcher.
|
148
|
-
# matcher.
|
147
|
+
# matcher.match? { "foo" } # => true
|
148
|
+
# matcher.match? { 4 } # => false
|
149
149
|
#
|
150
150
|
# @param expected [Class, #to_s] The expected class name.
|
151
151
|
#
|
152
|
-
# @return [#
|
152
|
+
# @return [#match?] A type/class matcher.
|
153
153
|
#
|
154
154
|
# @api public
|
155
155
|
def be_an_instance_of(expected)
|
@@ -161,28 +161,28 @@ module Fix
|
|
161
161
|
# @example
|
162
162
|
# object = []
|
163
163
|
# matcher = change(object, :length).by(1)
|
164
|
-
# matcher.
|
164
|
+
# matcher.match? { object << 1 } # => true
|
165
165
|
#
|
166
166
|
# object = []
|
167
167
|
# matcher = change(object, :length).by_at_least(1)
|
168
|
-
# matcher.
|
168
|
+
# matcher.match? { object << 1 } # => true
|
169
169
|
#
|
170
170
|
# object = []
|
171
171
|
# matcher = change(object, :length).by_at_most(1)
|
172
|
-
# matcher.
|
172
|
+
# matcher.match? { object << 1 } # => true
|
173
173
|
#
|
174
174
|
# object = "foo"
|
175
175
|
# matcher = change(object, :to_s).from("foo").to("FOO")
|
176
|
-
# matcher.
|
176
|
+
# matcher.match? { object.upcase! } # => true
|
177
177
|
#
|
178
178
|
# object = "foo"
|
179
179
|
# matcher = change(object, :to_s).to("FOO")
|
180
|
-
# matcher.
|
180
|
+
# matcher.match? { object.upcase! } # => true
|
181
181
|
#
|
182
182
|
# @param object [#object_id] An object.
|
183
183
|
# @param method [Symbol] The name of a method.
|
184
184
|
#
|
185
|
-
# @return [#
|
185
|
+
# @return [#match?] A change matcher.
|
186
186
|
#
|
187
187
|
# @api public
|
188
188
|
def change(object, method, ...)
|
@@ -193,13 +193,13 @@ module Fix
|
|
193
193
|
#
|
194
194
|
# @example
|
195
195
|
# matcher = satisfy { |value| value == 42 }
|
196
|
-
# matcher.
|
196
|
+
# matcher.match? { 42 } # => true
|
197
197
|
#
|
198
198
|
# @yield [value] A block that defines the satisfaction criteria
|
199
199
|
# @yieldparam value The value to test
|
200
200
|
# @yieldreturn [Boolean] true if the value satisfies the criteria
|
201
201
|
#
|
202
|
-
# @return [#
|
202
|
+
# @return [#match?] A satisfy matcher.
|
203
203
|
#
|
204
204
|
# @api public
|
205
205
|
def satisfy(&)
|
@@ -212,8 +212,8 @@ module Fix
|
|
212
212
|
#
|
213
213
|
# @example Empty predicate matcher
|
214
214
|
# matcher = be_empty
|
215
|
-
# matcher.
|
216
|
-
# matcher.
|
215
|
+
# matcher.match? { [] } # => true
|
216
|
+
# matcher.match? { [4] } # => false
|
217
217
|
def method_missing(name, ...)
|
218
218
|
return super unless predicate_matcher_name?(name)
|
219
219
|
|
data/lib/fix/requirement.rb
CHANGED
@@ -14,7 +14,7 @@ module Fix
|
|
14
14
|
# This method mean that the definition is an absolute requirement of the
|
15
15
|
# specification.
|
16
16
|
#
|
17
|
-
# @param matcher [#
|
17
|
+
# @param matcher [#match?] The matcher.
|
18
18
|
#
|
19
19
|
# @return [Requirement::Required] An absolute requirement level instance.
|
20
20
|
#
|
@@ -25,7 +25,7 @@ module Fix
|
|
25
25
|
|
26
26
|
# This method mean that the definition is an absolute prohibition of the specification.
|
27
27
|
#
|
28
|
-
# @param matcher [#
|
28
|
+
# @param matcher [#match?] The matcher.
|
29
29
|
#
|
30
30
|
# @return [Requirement::Required] An absolute prohibition level instance.
|
31
31
|
#
|
@@ -38,7 +38,7 @@ module Fix
|
|
38
38
|
# circumstances to ignore a particular item, but the full implications must be
|
39
39
|
# understood and carefully weighed before choosing a different course.
|
40
40
|
#
|
41
|
-
# @param matcher [#
|
41
|
+
# @param matcher [#match?] The matcher.
|
42
42
|
#
|
43
43
|
# @return [Requirement::Recommended] A recommended requirement level instance.
|
44
44
|
#
|
@@ -52,7 +52,7 @@ module Fix
|
|
52
52
|
# the full implications should be understood and the case carefully weighed
|
53
53
|
# before implementing any behavior described with this label.
|
54
54
|
#
|
55
|
-
# @param matcher [#
|
55
|
+
# @param matcher [#match?] The matcher.
|
56
56
|
#
|
57
57
|
# @return [Requirement::Recommended] A not recommended requirement level
|
58
58
|
# instance.
|
@@ -73,7 +73,7 @@ module Fix
|
|
73
73
|
# implementation which does not include the option (except, of course, for the
|
74
74
|
# feature the option provides).
|
75
75
|
#
|
76
|
-
# @param matcher [#
|
76
|
+
# @param matcher [#match?] The matcher.
|
77
77
|
#
|
78
78
|
# @return [Requirement::Optional] An optional requirement level instance.
|
79
79
|
#
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2024-12-
|
10
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: defi
|
@@ -29,28 +29,28 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 4.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 4.0.0
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: spectus
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 5.0.
|
46
|
+
version: 5.0.1
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 5.0.
|
53
|
+
version: 5.0.1
|
54
54
|
description: Specing framework.
|
55
55
|
email: contact@cyril.email
|
56
56
|
executables: []
|