shaped 0.7.3 → 0.9.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/.github/dependabot.yml +16 -0
- data/.github/workflows/ruby.yml +21 -0
- data/.release_assistant.yml +3 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +19 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +72 -61
- data/README.md +26 -9
- data/bin/_guard-core +1 -4
- data/bin/guard +1 -4
- data/bin/release +25 -13
- data/bin/rspec +1 -5
- data/lib/shaped/shapes/callable.rb +1 -0
- data/lib/shaped/version.rb +1 -1
- data/shaped.gemspec +3 -2
- metadata +27 -12
- data/.travis.yml +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a4a0b7d86c8417b8e9308fa91798a2a92ab697160e2fcfc457d8e29b6e905df
|
|
4
|
+
data.tar.gz: fa5ac8fdb7155d47076ddd60dbc0b81eb0c4626d2e2ee2f5b09a16f7a35cd629
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2150e55d70f8732d833f4fa709159c7eb62ca8d06b10e4f8f1fb8c1461ee809c8c3f9aff95e04fc99ff1650d58b72531dc9e27d206f19a4e9d929c03e04e20b6
|
|
7
|
+
data.tar.gz: 13cbe12cc05f9fabff0738416b8bdf1981f8449e2c8bdf33be86814c070a09d07302daf830cf21d7e7ecdae0e529eb7fb2aaf0db4318cd22f870801805b9782d
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: bundler
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
time: "03:52"
|
|
8
|
+
timezone: America/Chicago
|
|
9
|
+
open-pull-requests-limit: 20
|
|
10
|
+
ignore:
|
|
11
|
+
- dependency-name: activesupport
|
|
12
|
+
versions:
|
|
13
|
+
- 6.1.3
|
|
14
|
+
- dependency-name: activemodel
|
|
15
|
+
versions:
|
|
16
|
+
- 6.1.2.1
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Run Tests, Linters, Etc.
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
- uses: ruby/setup-ruby@v1
|
|
14
|
+
with:
|
|
15
|
+
bundler-cache: true
|
|
16
|
+
- name: Run Rubocop
|
|
17
|
+
run: bin/rubocop --format clang
|
|
18
|
+
- name: Run RSpec tests
|
|
19
|
+
run: bin/rspec --format progress
|
|
20
|
+
- name: Ensure no git diff
|
|
21
|
+
run: git diff --exit-code && git diff-index --quiet --cached HEAD
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.0.2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## v0.9.0 (2022-06-13)
|
|
2
|
+
[no unreleased changes yet]
|
|
3
|
+
|
|
4
|
+
## v0.8.2 (2021-02-01)
|
|
5
|
+
### Internal
|
|
6
|
+
- Update release_assistant
|
|
7
|
+
|
|
8
|
+
## v0.8.1 (2021-02-01)
|
|
9
|
+
### Internal
|
|
10
|
+
- Use `release_assistant` gem to manage the release process
|
|
11
|
+
|
|
12
|
+
## v0.8.0 (2021-01-31)
|
|
13
|
+
### Added
|
|
14
|
+
- Accept `Method` as a `Callable` shape definition
|
|
15
|
+
|
|
16
|
+
### Internal
|
|
17
|
+
- Bump Ruby version from 2.7.0 to 2.7.2
|
|
18
|
+
- Move from Travis to GitHub Actions
|
|
19
|
+
|
|
1
20
|
## v0.7.3 (2021-01-07)
|
|
2
21
|
### Removed
|
|
3
22
|
- Removed `::name` method for anonymous validator class in `Shaped::Shapes::Class`
|
data/Gemfile
CHANGED
|
@@ -15,6 +15,10 @@ group :development, :test do
|
|
|
15
15
|
gem 'runger_style', github: 'davidrunger/runger_style', require: false
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
group :development do
|
|
19
|
+
gem 'release_assistant', require: false, github: 'davidrunger/release_assistant'
|
|
20
|
+
end
|
|
21
|
+
|
|
18
22
|
group :test do
|
|
19
23
|
gem 'codecov', require: false
|
|
20
24
|
gem 'guard-espect', require: false, github: 'davidrunger/guard-espect'
|
data/Gemfile.lock
CHANGED
|
@@ -7,65 +7,76 @@ GIT
|
|
|
7
7
|
guard-compat (~> 1.1)
|
|
8
8
|
rspec (>= 2.99.0, < 4.0)
|
|
9
9
|
|
|
10
|
+
GIT
|
|
11
|
+
remote: https://github.com/davidrunger/release_assistant.git
|
|
12
|
+
revision: 862f2590257e1533f27772920bbe6205726fe534
|
|
13
|
+
specs:
|
|
14
|
+
release_assistant (0.3.3.alpha)
|
|
15
|
+
activesupport (>= 6, < 8)
|
|
16
|
+
colorize (~> 0.8)
|
|
17
|
+
memoist (~> 0.16)
|
|
18
|
+
slop (~> 4.8)
|
|
19
|
+
|
|
10
20
|
GIT
|
|
11
21
|
remote: https://github.com/davidrunger/runger_style.git
|
|
12
|
-
revision:
|
|
22
|
+
revision: a88256aa4bd96db0ab8248ffa6a456fd1e28f664
|
|
13
23
|
specs:
|
|
14
|
-
runger_style (0.2.
|
|
24
|
+
runger_style (0.2.22.alpha)
|
|
15
25
|
|
|
16
26
|
PATH
|
|
17
27
|
remote: .
|
|
18
28
|
specs:
|
|
19
|
-
shaped (0.
|
|
20
|
-
activemodel (
|
|
21
|
-
activesupport (
|
|
29
|
+
shaped (0.9.0)
|
|
30
|
+
activemodel (>= 6, < 8)
|
|
31
|
+
activesupport (>= 6, < 8)
|
|
22
32
|
|
|
23
33
|
GEM
|
|
24
34
|
remote: https://rubygems.org/
|
|
25
35
|
specs:
|
|
26
|
-
activemodel (
|
|
27
|
-
activesupport (=
|
|
28
|
-
activesupport (
|
|
36
|
+
activemodel (7.0.3)
|
|
37
|
+
activesupport (= 7.0.3)
|
|
38
|
+
activesupport (7.0.3)
|
|
29
39
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
30
40
|
i18n (>= 1.6, < 2)
|
|
31
41
|
minitest (>= 5.1)
|
|
32
42
|
tzinfo (~> 2.0)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
ast (2.4.1)
|
|
43
|
+
amazing_print (1.4.0)
|
|
44
|
+
ast (2.4.2)
|
|
36
45
|
byebug (11.1.3)
|
|
37
|
-
codecov (0.
|
|
38
|
-
simplecov (>= 0.15, < 0.
|
|
46
|
+
codecov (0.6.0)
|
|
47
|
+
simplecov (>= 0.15, < 0.22)
|
|
39
48
|
coderay (1.1.3)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
colorize (0.8.1)
|
|
50
|
+
concurrent-ruby (1.1.10)
|
|
51
|
+
diff-lcs (1.5.0)
|
|
52
|
+
docile (1.4.0)
|
|
53
|
+
ffi (1.15.4)
|
|
54
|
+
formatador (0.3.0)
|
|
55
|
+
guard (2.18.0)
|
|
46
56
|
formatador (>= 0.2.4)
|
|
47
57
|
listen (>= 2.7, < 4.0)
|
|
48
58
|
lumberjack (>= 1.0.12, < 2.0)
|
|
49
59
|
nenv (~> 0.1)
|
|
50
60
|
notiffany (~> 0.0)
|
|
51
|
-
pry (>= 0.
|
|
61
|
+
pry (>= 0.13.0)
|
|
52
62
|
shellany (~> 0.0)
|
|
53
63
|
thor (>= 0.18.1)
|
|
54
64
|
guard-compat (1.2.1)
|
|
55
|
-
i18n (1.
|
|
65
|
+
i18n (1.10.0)
|
|
56
66
|
concurrent-ruby (~> 1.0)
|
|
57
|
-
listen (3.
|
|
67
|
+
listen (3.7.0)
|
|
58
68
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
59
69
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
60
|
-
lumberjack (1.2.
|
|
70
|
+
lumberjack (1.2.8)
|
|
71
|
+
memoist (0.16.2)
|
|
61
72
|
method_source (1.0.0)
|
|
62
|
-
minitest (5.
|
|
73
|
+
minitest (5.15.0)
|
|
63
74
|
nenv (0.3.0)
|
|
64
75
|
notiffany (0.1.3)
|
|
65
76
|
nenv (~> 0.1)
|
|
66
77
|
shellany (~> 0.0)
|
|
67
|
-
parallel (1.
|
|
68
|
-
parser (3.
|
|
78
|
+
parallel (1.22.1)
|
|
79
|
+
parser (3.1.2.0)
|
|
69
80
|
ast (~> 2.4.1)
|
|
70
81
|
pry (0.13.1)
|
|
71
82
|
coderay (~> 1.1)
|
|
@@ -73,56 +84,55 @@ GEM
|
|
|
73
84
|
pry-byebug (3.9.0)
|
|
74
85
|
byebug (~> 11.0)
|
|
75
86
|
pry (~> 0.13.0)
|
|
76
|
-
rainbow (3.
|
|
77
|
-
rake (13.0.
|
|
78
|
-
rb-fsevent (0.
|
|
87
|
+
rainbow (3.1.1)
|
|
88
|
+
rake (13.0.6)
|
|
89
|
+
rb-fsevent (0.11.0)
|
|
79
90
|
rb-inotify (0.10.1)
|
|
80
91
|
ffi (~> 1.0)
|
|
81
|
-
regexp_parser (2.0
|
|
82
|
-
rexml (3.2.
|
|
83
|
-
rspec (3.
|
|
84
|
-
rspec-core (~> 3.
|
|
85
|
-
rspec-expectations (~> 3.
|
|
86
|
-
rspec-mocks (~> 3.
|
|
87
|
-
rspec-core (3.
|
|
88
|
-
rspec-support (~> 3.
|
|
89
|
-
rspec-expectations (3.
|
|
92
|
+
regexp_parser (2.5.0)
|
|
93
|
+
rexml (3.2.5)
|
|
94
|
+
rspec (3.11.0)
|
|
95
|
+
rspec-core (~> 3.11.0)
|
|
96
|
+
rspec-expectations (~> 3.11.0)
|
|
97
|
+
rspec-mocks (~> 3.11.0)
|
|
98
|
+
rspec-core (3.11.0)
|
|
99
|
+
rspec-support (~> 3.11.0)
|
|
100
|
+
rspec-expectations (3.11.0)
|
|
90
101
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
91
|
-
rspec-support (~> 3.
|
|
92
|
-
rspec-mocks (3.
|
|
102
|
+
rspec-support (~> 3.11.0)
|
|
103
|
+
rspec-mocks (3.11.0)
|
|
93
104
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
94
|
-
rspec-support (~> 3.
|
|
95
|
-
rspec-support (3.
|
|
96
|
-
rubocop (
|
|
105
|
+
rspec-support (~> 3.11.0)
|
|
106
|
+
rspec-support (3.11.0)
|
|
107
|
+
rubocop (1.30.1)
|
|
97
108
|
parallel (~> 1.10)
|
|
98
|
-
parser (>=
|
|
109
|
+
parser (>= 3.1.0.0)
|
|
99
110
|
rainbow (>= 2.2.2, < 4.0)
|
|
100
|
-
regexp_parser (>= 1.8)
|
|
101
|
-
rexml
|
|
102
|
-
rubocop-ast (>=
|
|
111
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
112
|
+
rexml (>= 3.2.5, < 4.0)
|
|
113
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
|
103
114
|
ruby-progressbar (~> 1.7)
|
|
104
|
-
unicode-display_width (>= 1.4.0, <
|
|
105
|
-
rubocop-ast (1.
|
|
106
|
-
parser (>=
|
|
107
|
-
rubocop-performance (1.
|
|
108
|
-
rubocop (>=
|
|
115
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
116
|
+
rubocop-ast (1.18.0)
|
|
117
|
+
parser (>= 3.1.1.0)
|
|
118
|
+
rubocop-performance (1.14.2)
|
|
119
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
109
120
|
rubocop-ast (>= 0.4.0)
|
|
110
|
-
rubocop-rspec (
|
|
111
|
-
rubocop (~>
|
|
112
|
-
rubocop-ast (>= 0.7.1)
|
|
121
|
+
rubocop-rspec (2.11.1)
|
|
122
|
+
rubocop (~> 1.19)
|
|
113
123
|
ruby-progressbar (1.11.0)
|
|
114
124
|
shellany (0.0.1)
|
|
115
|
-
simplecov (0.
|
|
125
|
+
simplecov (0.21.2)
|
|
116
126
|
docile (~> 1.1)
|
|
117
127
|
simplecov-html (~> 0.11)
|
|
118
128
|
simplecov_json_formatter (~> 0.1)
|
|
119
129
|
simplecov-html (0.12.3)
|
|
120
|
-
simplecov_json_formatter (0.1.
|
|
121
|
-
|
|
130
|
+
simplecov_json_formatter (0.1.3)
|
|
131
|
+
slop (4.9.2)
|
|
132
|
+
thor (1.1.0)
|
|
122
133
|
tzinfo (2.0.4)
|
|
123
134
|
concurrent-ruby (~> 1.0)
|
|
124
|
-
unicode-display_width (1.
|
|
125
|
-
zeitwerk (2.4.2)
|
|
135
|
+
unicode-display_width (2.1.0)
|
|
126
136
|
|
|
127
137
|
PLATFORMS
|
|
128
138
|
ruby
|
|
@@ -133,6 +143,7 @@ DEPENDENCIES
|
|
|
133
143
|
guard-espect!
|
|
134
144
|
pry-byebug
|
|
135
145
|
rake
|
|
146
|
+
release_assistant!
|
|
136
147
|
rspec
|
|
137
148
|
rubocop
|
|
138
149
|
rubocop-performance
|
|
@@ -141,4 +152,4 @@ DEPENDENCIES
|
|
|
141
152
|
shaped!
|
|
142
153
|
|
|
143
154
|
BUNDLED WITH
|
|
144
|
-
2.
|
|
155
|
+
2.2.22
|
data/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
[](https://codecov.io/gh/davidrunger/shaped)
|
|
2
|
-
[](https://travis-ci.com/davidrunger/shaped)
|
|
3
2
|
[](https://dependabot.com)
|
|
4
3
|
[](https://badge.fury.io/rb/shaped)
|
|
5
4
|
|
|
@@ -240,6 +239,23 @@ shape.matched_by?(5) # fails the `#even?` check
|
|
|
240
239
|
shape.matched_by?(10) # fails the `#cover?` check (10 is too high)
|
|
241
240
|
# => false
|
|
242
241
|
```
|
|
242
|
+
|
|
243
|
+
If you'd like to provide a named method rather than an anonymous proc/lambda, you can do that, too:
|
|
244
|
+
|
|
245
|
+
```rb
|
|
246
|
+
def number_is_greater_than_thirty?(number)
|
|
247
|
+
number > 30
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
shape = Shaped::Shape(method(:number_is_greater_than_thirty?))
|
|
251
|
+
|
|
252
|
+
shape.matched_by?(31)
|
|
253
|
+
# => true
|
|
254
|
+
|
|
255
|
+
shape.matched_by?(29)
|
|
256
|
+
# => false
|
|
257
|
+
```
|
|
258
|
+
|
|
243
259
|
You can also provide an instance of a custom class that implements a `#call` instance method:
|
|
244
260
|
|
|
245
261
|
```rb
|
|
@@ -386,14 +402,15 @@ rake install`.
|
|
|
386
402
|
|
|
387
403
|
# For maintainers
|
|
388
404
|
|
|
389
|
-
To release a new version
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
405
|
+
To release a new version, run `bin/release` with an appropriate `--type` option, e.g.:
|
|
406
|
+
|
|
407
|
+
```
|
|
408
|
+
bin/release --type minor
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
(This uses the [`release_assistant` gem][release_assistant].)
|
|
412
|
+
|
|
413
|
+
[release_assistant]: https://github.com/davidrunger/release_assistant/
|
|
397
414
|
|
|
398
415
|
# License
|
|
399
416
|
|
data/bin/_guard-core
CHANGED
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
#
|
|
10
10
|
|
|
11
11
|
require 'pathname'
|
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
|
|
13
|
-
'../../Gemfile',
|
|
14
|
-
Pathname.new(__FILE__).realpath,
|
|
15
|
-
)
|
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
|
|
16
13
|
|
|
17
14
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
18
15
|
|
data/bin/guard
CHANGED
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
#
|
|
10
10
|
|
|
11
11
|
require 'pathname'
|
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
|
|
13
|
-
'../../Gemfile',
|
|
14
|
-
Pathname.new(__FILE__).realpath,
|
|
15
|
-
)
|
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
|
|
16
13
|
|
|
17
14
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
18
15
|
|
data/bin/release
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'release' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
echo "Aborting release! Commit message is improperly formatted. Commit message is '$COMMIT_MESSAGE'.";
|
|
13
|
-
exit 1;
|
|
14
|
-
fi
|
|
11
|
+
require 'pathname'
|
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
15
|
+
|
|
16
|
+
if File.file?(bundle_binstub)
|
|
17
|
+
if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
|
|
18
|
+
load(bundle_binstub)
|
|
19
|
+
else
|
|
20
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
21
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
require 'rubygems'
|
|
26
|
+
require 'bundler/setup'
|
|
27
|
+
|
|
28
|
+
load Gem.bin_path('release_assistant', 'release')
|
data/bin/rspec
CHANGED
|
@@ -9,11 +9,7 @@
|
|
|
9
9
|
#
|
|
10
10
|
|
|
11
11
|
require 'pathname'
|
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||=
|
|
13
|
-
File.expand_path(
|
|
14
|
-
'../../Gemfile',
|
|
15
|
-
Pathname.new(__FILE__).realpath,
|
|
16
|
-
)
|
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
|
|
17
13
|
|
|
18
14
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
19
15
|
|
|
@@ -11,6 +11,7 @@ class Shaped::Shapes::Callable < Shaped::Shape
|
|
|
11
11
|
|
|
12
12
|
def to_s
|
|
13
13
|
case @callable
|
|
14
|
+
when Method then "Method defined at #{@callable.source_location.map(&:to_s).join(':')}"
|
|
14
15
|
when Proc then "Proc test defined at #{@callable.source_location.map(&:to_s).join(':')}"
|
|
15
16
|
else "#call test defined at #{@callable.method(:call).source_location.map(&:to_s).join(':')}"
|
|
16
17
|
end
|
data/lib/shaped/version.rb
CHANGED
data/shaped.gemspec
CHANGED
|
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
|
16
16
|
|
|
17
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
17
18
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
18
19
|
spec.metadata['source_code_uri'] = 'https://github.com/davidrunger/shaped'
|
|
19
20
|
spec.metadata['changelog_uri'] = 'https://github.com/davidrunger/shaped/blob/master/CHANGELOG.md'
|
|
@@ -26,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
|
26
27
|
end
|
|
27
28
|
spec.require_paths = ['lib']
|
|
28
29
|
|
|
29
|
-
spec.add_runtime_dependency('activemodel', '
|
|
30
|
-
spec.add_runtime_dependency('activesupport', '
|
|
30
|
+
spec.add_runtime_dependency('activemodel', '>= 6', '< 8')
|
|
31
|
+
spec.add_runtime_dependency('activesupport', '>= 6', '< 8')
|
|
31
32
|
end
|
metadata
CHANGED
|
@@ -1,43 +1,55 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shaped
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Runger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '6
|
|
19
|
+
version: '6'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '8'
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '6'
|
|
30
|
+
- - "<"
|
|
25
31
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
32
|
+
version: '8'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: activesupport
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
|
-
- - "
|
|
37
|
+
- - ">="
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '6
|
|
39
|
+
version: '6'
|
|
40
|
+
- - "<"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '8'
|
|
34
43
|
type: :runtime
|
|
35
44
|
prerelease: false
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
46
|
requirements:
|
|
38
|
-
- - "
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '6'
|
|
50
|
+
- - "<"
|
|
39
51
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
52
|
+
version: '8'
|
|
41
53
|
description: Validate the "shape" of Ruby objects.
|
|
42
54
|
email:
|
|
43
55
|
- davidjrunger@gmail.com
|
|
@@ -45,11 +57,13 @@ executables: []
|
|
|
45
57
|
extensions: []
|
|
46
58
|
extra_rdoc_files: []
|
|
47
59
|
files:
|
|
60
|
+
- ".github/dependabot.yml"
|
|
61
|
+
- ".github/workflows/ruby.yml"
|
|
48
62
|
- ".gitignore"
|
|
63
|
+
- ".release_assistant.yml"
|
|
49
64
|
- ".rspec"
|
|
50
65
|
- ".rubocop.yml"
|
|
51
66
|
- ".ruby-version"
|
|
52
|
-
- ".travis.yml"
|
|
53
67
|
- CHANGELOG.md
|
|
54
68
|
- Gemfile
|
|
55
69
|
- Gemfile.lock
|
|
@@ -79,6 +93,7 @@ homepage: https://github.com/davidrunger/shaped
|
|
|
79
93
|
licenses:
|
|
80
94
|
- MIT
|
|
81
95
|
metadata:
|
|
96
|
+
rubygems_mfa_required: 'true'
|
|
82
97
|
homepage_uri: https://github.com/davidrunger/shaped
|
|
83
98
|
source_code_uri: https://github.com/davidrunger/shaped
|
|
84
99
|
changelog_uri: https://github.com/davidrunger/shaped/blob/master/CHANGELOG.md
|
|
@@ -97,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
112
|
- !ruby/object:Gem::Version
|
|
98
113
|
version: '0'
|
|
99
114
|
requirements: []
|
|
100
|
-
rubygems_version: 3.
|
|
115
|
+
rubygems_version: 3.2.22
|
|
101
116
|
signing_key:
|
|
102
117
|
specification_version: 4
|
|
103
118
|
summary: Validate the "shape" of Ruby objects.
|