You need to sign in or sign up before continuing.
fix-its 0.5.4 → 1.0.0
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 +4 -4
- data/LICENSE.md +1 -1
- data/README.md +33 -74
- data/lib/fix/its.rb +27 -31
- metadata +18 -108
- data/.gitignore +0 -10
- data/.rubocop.yml +0 -1
- data/.rubocop_todo.yml +0 -13
- data/.travis.yml +0 -28
- data/.yardopts +0 -1
- data/CODE_OF_CONDUCT.md +0 -13
- data/Gemfile +0 -5
- data/Rakefile +0 -23
- data/VERSION.semver +0 -1
- data/bin/console +0 -8
- data/bin/setup +0 -6
- data/checksum/fix-its-0.1.0.gem.sha512 +0 -1
- data/checksum/fix-its-0.1.1.gem.sha512 +0 -1
- data/checksum/fix-its-0.2.0.gem.sha512 +0 -1
- data/checksum/fix-its-0.3.0.gem.sha512 +0 -1
- data/checksum/fix-its-0.3.1.gem.sha512 +0 -1
- data/checksum/fix-its-0.3.2.gem.sha512 +0 -1
- data/checksum/fix-its-0.4.0.gem.sha512 +0 -1
- data/checksum/fix-its-0.5.0.gem.sha512 +0 -1
- data/checksum/fix-its-0.5.2.gem.sha512 +0 -1
- data/checksum/fix-its-0.5.3.gem.sha512 +0 -1
- data/fix-its.gemspec +0 -26
- data/pkg_checksum +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '058c4f8c1c6c1b924643d79e115b68f224de073fd6112500e63bdc654737488f'
|
|
4
|
+
data.tar.gz: c0ad1f28674eede31988a8f143327d7a508b5af2bc15c21640dea79df84acebd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e8ea9b20ec541b8a2f27f3ec83b48e9a52cee86588902b25a384dcc5c6180fc00d2d2b3978bdb0d988eb7dafdc998ffc695923420fdb1b2623b24eebb522ed7
|
|
7
|
+
data.tar.gz: 3bb591353162b0817dfd24ed4be44d73ee5fbdb7bd231c9126587811ed49737bf927b86e9006131c9e5bb77f726424a361f3e9c954e7d187cbe1ca011dbb1a38
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
|
@@ -1,103 +1,62 @@
|
|
|
1
1
|
# Fix::Its
|
|
2
2
|
|
|
3
|
-
[][inchpages]
|
|
7
|
-
[][rubydoc]
|
|
3
|
+
[](https://github.com/fixrb/fix-its/tags)
|
|
4
|
+
[](https://rubydoc.info/github/fixrb/fix-its/main)
|
|
5
|
+
[](https://github.com/fixrb/fix-its/raw/main/LICENSE.md)
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## Contact
|
|
12
|
-
|
|
13
|
-
* Home page: https://github.com/fixrb/fix-its
|
|
14
|
-
* Bugs/issues: https://github.com/fixrb/fix-its/issues
|
|
15
|
-
* Support: https://stackoverflow.com/questions/tagged/fixrb
|
|
16
|
-
|
|
17
|
-
## Rubies
|
|
18
|
-
|
|
19
|
-
* [MRI](https://www.ruby-lang.org/)
|
|
20
|
-
* [Rubinius](http://rubini.us/)
|
|
21
|
-
* [JRuby](http://jruby.org/)
|
|
7
|
+
Fix::Its adds the word `its` to the language of [Fix](https://github.com/fixrb/fix): a method of the subject and one expectation about what it returns, on one line. `its(:size) { MUST eq 3 }` is `on(:size) { it MUST eq 3 }`, and the result points at the line of `its`.
|
|
22
8
|
|
|
23
9
|
## Installation
|
|
24
10
|
|
|
25
|
-
Add this line to your application's Gemfile:
|
|
26
|
-
|
|
27
11
|
```ruby
|
|
28
|
-
|
|
12
|
+
# Gemfile
|
|
13
|
+
gem "fix-its"
|
|
29
14
|
```
|
|
30
15
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
$ bundle
|
|
34
|
-
|
|
35
|
-
Or install it yourself as:
|
|
36
|
-
|
|
37
|
-
$ gem install fix-its
|
|
38
|
-
|
|
39
|
-
## Let's get started!
|
|
40
|
-
|
|
41
|
-
[](https://asciinema.org/a/25973)
|
|
16
|
+
Fix::Its requires Ruby 3.3 or later on a system with `fork`, and depends on [Fix](https://github.com/fixrb/fix).
|
|
42
17
|
|
|
43
18
|
## Usage
|
|
44
19
|
|
|
45
|
-
Given this code:
|
|
46
|
-
|
|
47
20
|
```ruby
|
|
48
|
-
|
|
21
|
+
# word_fix.rb
|
|
22
|
+
require "fix/its"
|
|
49
23
|
|
|
50
|
-
Fix
|
|
51
|
-
its(:
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
Fix :Word do
|
|
25
|
+
its(:size) { MUST eq 5 }
|
|
26
|
+
its(:upcase) { MUST eq "HELLO" }
|
|
27
|
+
its(:start_with?, "he") { MUST be_true }
|
|
54
28
|
|
|
55
|
-
|
|
29
|
+
on :chars do
|
|
30
|
+
its(:first) { MUST eq "h" }
|
|
31
|
+
end
|
|
32
|
+
end
|
|
56
33
|
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
exit(Fix[:Word].test { "hello" })
|
|
35
|
+
```
|
|
59
36
|
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
```text
|
|
38
|
+
word_fix.rb:5: Success: expected 5 to eq 5
|
|
39
|
+
word_fix.rb:6: Success: expected "HELLO" to eq "HELLO"
|
|
40
|
+
word_fix.rb:7: Success: expected true to be true
|
|
41
|
+
word_fix.rb:10: Success: expected "h" to eq "h"
|
|
42
|
+
```
|
|
62
43
|
|
|
63
|
-
|
|
44
|
+
`its` takes the name of the method and its arguments, as `on` does, and a block that gives the requirement: a level and a matcher, `MUST eq 5`. Inside an `on` or a `with`, `its` sends its method to the value of that context. Since `its` is a word of the language, a `let` cannot be named so.
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
every Gem release. These checksums can be found in the `checksum/` directory.
|
|
67
|
-
Although these checksums do not prevent malicious users from tampering with a
|
|
68
|
-
built Gem they can be used for basic integrity verification purposes.
|
|
46
|
+
The block is the context of the `on`, read once with the rest of the document: what else it does there is read as in an `on`, and its last expression is the requirement. A block that gives anything else, a bare matcher or an `it` of its own, raises `ArgumentError` at load, as does a missing block.
|
|
69
47
|
|
|
70
|
-
|
|
71
|
-
example:
|
|
48
|
+
In Ruby 3.4 and later, a bare `it` in a block is the parameter of the block: `its(:size) { MUST eq it }` builds `eq nil`. On Ruby 3.3 that bare `it` is the word of Fix, which raises `ArgumentError` for want of a requirement. Write the value.
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
26198b7812a5ac118a5f2a1b63927871b3378efb071b37abb7e1ba87c1aac9f3a6b45eeae87d9dc647b194c15171b13f15e46503a9a1440b1233faf924381ff5 pkg/fix-its-0.1.0.gem
|
|
50
|
+
`its` takes no `location:`, which could not be told from a keyword argument of the method: a word that composes `its` in turn has its results pointing at its own call of `its`.
|
|
75
51
|
|
|
76
52
|
## Versioning
|
|
77
53
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
## Contributing
|
|
81
|
-
|
|
82
|
-
1. [Fork it](https://github.com/fixrb/fix-its/fork)
|
|
83
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
84
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
85
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
86
|
-
5. Create a new Pull Request
|
|
54
|
+
Fix::Its follows [Semantic Versioning 2.0](https://semver.org/).
|
|
87
55
|
|
|
88
56
|
## License
|
|
89
57
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
[gem]: https://rubygems.org/gems/fix-its
|
|
93
|
-
[travis]: https://travis-ci.org/fixrb/fix-its
|
|
94
|
-
[codeclimate]: https://codeclimate.com/github/fixrb/fix-its
|
|
95
|
-
[gemnasium]: https://gemnasium.com/fixrb/fix-its
|
|
96
|
-
[inchpages]: http://inch-ci.org/github/fixrb/fix-its
|
|
97
|
-
[rubydoc]: http://rubydoc.info/gems/fix-its/frames
|
|
98
|
-
|
|
99
|
-
***
|
|
58
|
+
The [gem](https://rubygems.org/gems/fix-its) is available as open source under the terms of the [MIT License](https://github.com/fixrb/fix-its/raw/main/LICENSE.md).
|
|
100
59
|
|
|
101
|
-
|
|
60
|
+
## Sponsors
|
|
102
61
|
|
|
103
|
-
[
|
|
62
|
+
This project is sponsored by [Sashité](https://sashite.com/)
|
data/lib/fix/its.rb
CHANGED
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require
|
|
3
|
+
require "fix"
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
# @api public
|
|
8
|
-
#
|
|
5
|
+
# The specifications of Fix: this gem adds the word `its` to their language.
|
|
9
6
|
module Fix
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
# @
|
|
18
|
-
#
|
|
19
|
-
# @
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# @param spec [Proc] A spec to compare against the computed value.
|
|
24
|
-
#
|
|
25
|
-
# @return [Array] List of results.
|
|
26
|
-
#
|
|
27
|
-
# rubocop:disable AbcSize
|
|
28
|
-
def its(method, &spec)
|
|
29
|
-
i = It.new(described, (challenges + [Defi.send(method)]), helpers.dup)
|
|
7
|
+
# The word `its`, added to the language of a specification: a method of
|
|
8
|
+
# the subject and one expectation about what it returns, on one line.
|
|
9
|
+
# `its(:size) { MUST eq 3 }` is `on(:size) { it MUST eq 3 }`, the result
|
|
10
|
+
# pointing at the line of `its`.
|
|
11
|
+
module Its
|
|
12
|
+
# @param name [Symbol] the method, followed by its positional and keyword
|
|
13
|
+
# arguments, as for `on`
|
|
14
|
+
# @yieldreturn [Spectus::Requirement] the requirement, `MUST eq(3)` say
|
|
15
|
+
# @return [nil]
|
|
16
|
+
# @raise [ArgumentError] when the name is not a Symbol, without a block,
|
|
17
|
+
# or when the block does not give a requirement
|
|
18
|
+
def its(name, *, **, &block)
|
|
19
|
+
raise ::ArgumentError, "a block must be given" unless block
|
|
30
20
|
|
|
31
|
-
|
|
21
|
+
location = caller_locations(1, 1).fetch(0)
|
|
22
|
+
on(name, *, **) do
|
|
23
|
+
requirement = instance_exec(&block)
|
|
24
|
+
unless ::Spectus::Requirement === requirement
|
|
25
|
+
raise ::ArgumentError, "the block of its gives a requirement: its(:size) { MUST eq(3) }"
|
|
26
|
+
end
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
print result.to_char(configuration.fetch(:color, false))
|
|
28
|
+
it(requirement, location:)
|
|
35
29
|
end
|
|
36
|
-
|
|
37
|
-
results << result
|
|
38
30
|
end
|
|
39
|
-
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# The language of a specification, with the word `its` among its words.
|
|
34
|
+
class Dsl
|
|
35
|
+
include Its
|
|
40
36
|
end
|
|
41
37
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fix-its
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cyril Kato
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: fix
|
|
@@ -16,122 +15,33 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0
|
|
18
|
+
version: '1.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rake
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '12.3'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '12.3'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rubocop
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0.67'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0.67'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: simplecov
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0.16'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0.16'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: yard
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0.9'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0.9'
|
|
97
|
-
description: Provides "its" method for attribute matching.
|
|
98
|
-
email:
|
|
99
|
-
- contact@cyril.email
|
|
25
|
+
version: '1.0'
|
|
26
|
+
description: 'Fix::Its adds the word its to the language of Fix: a method of the subject
|
|
27
|
+
and one expectation about what it returns, on one line. its(:size) { MUST eq 3 }
|
|
28
|
+
is on(:size) { it MUST eq 3 }, and the result points at the line of its.'
|
|
29
|
+
email: contact@cyril.email
|
|
100
30
|
executables: []
|
|
101
31
|
extensions: []
|
|
102
32
|
extra_rdoc_files: []
|
|
103
33
|
files:
|
|
104
|
-
- ".gitignore"
|
|
105
|
-
- ".rubocop.yml"
|
|
106
|
-
- ".rubocop_todo.yml"
|
|
107
|
-
- ".travis.yml"
|
|
108
|
-
- ".yardopts"
|
|
109
|
-
- CODE_OF_CONDUCT.md
|
|
110
|
-
- Gemfile
|
|
111
34
|
- LICENSE.md
|
|
112
35
|
- README.md
|
|
113
|
-
- Rakefile
|
|
114
|
-
- VERSION.semver
|
|
115
|
-
- bin/console
|
|
116
|
-
- bin/setup
|
|
117
|
-
- checksum/fix-its-0.1.0.gem.sha512
|
|
118
|
-
- checksum/fix-its-0.1.1.gem.sha512
|
|
119
|
-
- checksum/fix-its-0.2.0.gem.sha512
|
|
120
|
-
- checksum/fix-its-0.3.0.gem.sha512
|
|
121
|
-
- checksum/fix-its-0.3.1.gem.sha512
|
|
122
|
-
- checksum/fix-its-0.3.2.gem.sha512
|
|
123
|
-
- checksum/fix-its-0.4.0.gem.sha512
|
|
124
|
-
- checksum/fix-its-0.5.0.gem.sha512
|
|
125
|
-
- checksum/fix-its-0.5.2.gem.sha512
|
|
126
|
-
- checksum/fix-its-0.5.3.gem.sha512
|
|
127
|
-
- fix-its.gemspec
|
|
128
36
|
- lib/fix/its.rb
|
|
129
|
-
-
|
|
130
|
-
homepage: https://github.com/fixrb/fix-its
|
|
37
|
+
homepage: https://fixrb.dev/gems/fix-its/
|
|
131
38
|
licenses:
|
|
132
39
|
- MIT
|
|
133
|
-
metadata:
|
|
134
|
-
|
|
40
|
+
metadata:
|
|
41
|
+
bug_tracker_uri: https://github.com/fixrb/fix-its/issues
|
|
42
|
+
documentation_uri: https://rubydoc.info/gems/fix-its
|
|
43
|
+
rubygems_mfa_required: 'true'
|
|
44
|
+
source_code_uri: https://github.com/fixrb/fix-its
|
|
135
45
|
rdoc_options: []
|
|
136
46
|
require_paths:
|
|
137
47
|
- lib
|
|
@@ -139,15 +49,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
139
49
|
requirements:
|
|
140
50
|
- - ">="
|
|
141
51
|
- !ruby/object:Gem::Version
|
|
142
|
-
version:
|
|
52
|
+
version: 3.3.0
|
|
143
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
54
|
requirements:
|
|
145
55
|
- - ">="
|
|
146
56
|
- !ruby/object:Gem::Version
|
|
147
57
|
version: '0'
|
|
148
58
|
requirements: []
|
|
149
|
-
rubygems_version:
|
|
150
|
-
signing_key:
|
|
59
|
+
rubygems_version: 4.0.23
|
|
151
60
|
specification_version: 4
|
|
152
|
-
summary:
|
|
61
|
+
summary: 'The word its for Fix: a method of the subject and its expectation on one
|
|
62
|
+
line'
|
|
153
63
|
test_files: []
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2018-08-26 22:40:23 +0200 using RuboCop version 0.58.2.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count: 2
|
|
10
|
-
Style/MixinUsage:
|
|
11
|
-
Exclude:
|
|
12
|
-
- 'test/examples/duck/test_app.rb'
|
|
13
|
-
- 'test/examples/operation/test_app.rb'
|
data/.travis.yml
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
sudo: false
|
|
3
|
-
cache: bundler
|
|
4
|
-
before_install:
|
|
5
|
-
- gem install bundler
|
|
6
|
-
script:
|
|
7
|
-
- bundle exec rubocop
|
|
8
|
-
- bundle exec rake test
|
|
9
|
-
rvm:
|
|
10
|
-
- 2.3.3
|
|
11
|
-
- 2.4.0
|
|
12
|
-
- 2.5.0
|
|
13
|
-
- 2.6.2
|
|
14
|
-
- ruby-head
|
|
15
|
-
- jruby-head
|
|
16
|
-
- rbx-3
|
|
17
|
-
matrix:
|
|
18
|
-
allow_failures:
|
|
19
|
-
- rvm: ruby-head
|
|
20
|
-
- rvm: jruby-head
|
|
21
|
-
- rvm: rbx-3
|
|
22
|
-
notifications:
|
|
23
|
-
webhooks:
|
|
24
|
-
urls:
|
|
25
|
-
- https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
|
|
26
|
-
on_success: change
|
|
27
|
-
on_failure: always
|
|
28
|
-
on_start: never
|
data/.yardopts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
- README.md
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Contributor Code of Conduct
|
|
2
|
-
|
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
|
4
|
-
|
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
|
6
|
-
|
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
|
8
|
-
|
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
|
10
|
-
|
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
|
12
|
-
|
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
require 'rake/testtask'
|
|
5
|
-
require 'rubocop/rake_task'
|
|
6
|
-
|
|
7
|
-
RuboCop::RakeTask.new
|
|
8
|
-
|
|
9
|
-
Rake::TestTask.new do |t|
|
|
10
|
-
t.verbose = true
|
|
11
|
-
t.warning = true
|
|
12
|
-
t.pattern = File.join('test', '**', 'test_*.rb')
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
namespace :test do
|
|
16
|
-
task :coverage do
|
|
17
|
-
ENV['COVERAGE'] = 'true'
|
|
18
|
-
Rake::Task['test'].invoke
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
task(:doc_stats) { ruby '-S yard stats' }
|
|
23
|
-
task default: %i[test doc_stats rubocop]
|
data/VERSION.semver
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.5.4
|
data/bin/console
DELETED
data/bin/setup
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
26198b7812a5ac118a5f2a1b63927871b3378efb071b37abb7e1ba87c1aac9f3a6b45eeae87d9dc647b194c15171b13f15e46503a9a1440b1233faf924381ff5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
05b8fee178ec2745c8c09bd744909fd3650c7e5fc8385cb82b00e42bf7edcf535c2c1f266a4925249629809c678b36947a1adab3c6334a9c537ae0e2d38b6db8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7d392a30709ddcea51f4fd42c494570f1c289de137b029eaf031caeaa0143c33e41b88b0c4569856641f487b2827c66e99296fe9850c6cc0fba1432f5e80d020
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
01afb43acc2ae8eead072c87df876020e89d6c3fdafeca1ebe88653f085624ae9d3b2c7a11f3cd08f4496b80fcef60a520e2f496ec65eb40b853c0f081bc4fdc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ac48831faecbd5de37b24fcec069dc396d642c6eaf9930997ab1fb33eaa32f1f582dae936c9b1369a746dec3a6d2bfbb2eb6db71a84ce487fd8ed2abc8eddbaf
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b54941519fc001244df4a67b0406fe7aadf28292b5d8c0deeca64ea968727a3cefe09365457c4fdfe33fda19d79e5eab08fe2c9f41740744e3427e5af21632e5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
491000f8bfd0a55483f6a142e47f6516889d550110c246592e8763ceca4f684e731dc90ee10c1eafd1a7559678e64d7da670d2a4afa2ca92be915576cc0c2fe5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
87626508a8b1a5bd9dffef6e84a1d8e5c96311614bf64850fb63b9422dc7f972574effbb595109d247c71e2421f563133cd1f058f065d7d520baa097ec3c17b5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
67350850ded621b58002a7e23342c5556761955cfb329a42556ba83bc83bc083229b0107bef3dd6ef5168da67186820f85e687c196e77c45cdcb0a53e797c7e0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
aac18e6f0aff3d39a17bfbdc723f7378dcdf51d7221dfcf315f0f39d5985b686ee0e65c1bdc1cfdfc66b5da05ffd956115fcc3108ef8dedf7a5ad1d5edf98e99
|
data/fix-its.gemspec
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name = 'fix-its'
|
|
5
|
-
spec.version = File.read('VERSION.semver').chomp
|
|
6
|
-
spec.authors = ['Cyril Kato']
|
|
7
|
-
spec.email = ['contact@cyril.email']
|
|
8
|
-
|
|
9
|
-
spec.summary = 'Fix extension gem for attribute matching.'
|
|
10
|
-
spec.description = 'Provides "its" method for attribute matching.'
|
|
11
|
-
spec.homepage = 'https://github.com/fixrb/fix-its'
|
|
12
|
-
spec.license = 'MIT'
|
|
13
|
-
|
|
14
|
-
spec.files =
|
|
15
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
|
16
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
17
|
-
spec.require_paths = ['lib']
|
|
18
|
-
|
|
19
|
-
spec.add_dependency 'fix', '~> 0.18.1'
|
|
20
|
-
|
|
21
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
22
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
|
23
|
-
spec.add_development_dependency 'rubocop', '~> 0.67'
|
|
24
|
-
spec.add_development_dependency 'simplecov', '~> 0.16'
|
|
25
|
-
spec.add_development_dependency 'yard', '~> 0.9'
|
|
26
|
-
end
|
data/pkg_checksum
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require 'digest/sha2'
|
|
5
|
-
|
|
6
|
-
gemname = 'fix-its'.to_sym
|
|
7
|
-
ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
|
|
8
|
-
built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
|
|
9
|
-
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
|
|
10
|
-
checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
|
|
11
|
-
|
|
12
|
-
File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
|