shaped 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -7
- data/.github/workflows/ruby.yml +7 -3
- data/.ruby-version +1 -1
- data/.runger-config.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +44 -52
- data/bin/githooks/pre-push +8 -0
- data/lib/shaped/version.rb +1 -1
- data/shaped.gemspec +4 -3
- metadata +6 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a705ce4da399f80663a11c1a8b008b4d074684caf744e9bd0473e4e839c3557b
|
4
|
+
data.tar.gz: c4add216de1412d396638dc5907d3d120913242abaa665949150687e03b3c522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdab32a10014f0cb76e47c0a89beb025f9f0c5ab4dc027182c92bedd11f0138bdacd92bb714a44c75ec8a056e67aff42872d58e289c60dfcad4f5c889d3568e
|
7
|
+
data.tar.gz: 8d82b19b797159a8ca73caa08f243989a6dd18de465aaf296725ba062297bfb9c382b3ec0345fd04fa23da97ccc5d5d4caca90c64e90bc064f9504dc91d354b8
|
data/.github/dependabot.yml
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
---
|
1
2
|
version: 2
|
2
3
|
updates:
|
3
|
-
- package-ecosystem: bundler
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
- package-ecosystem: bundler
|
5
|
+
directory: "/"
|
6
|
+
schedule:
|
7
|
+
interval: daily
|
8
|
+
time: "04:04"
|
9
|
+
timezone: America/Chicago
|
10
|
+
open-pull-requests-limit: 20
|
11
|
+
allow:
|
12
|
+
- dependency-type: all
|
data/.github/workflows/ruby.yml
CHANGED
@@ -3,13 +3,16 @@ name: Run Tests, Linters, Etc.
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
5
5
|
branches:
|
6
|
-
|
6
|
+
- '*'
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- main
|
7
10
|
|
8
11
|
jobs:
|
9
12
|
build:
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
steps:
|
12
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
13
16
|
- name: Set up Ruby
|
14
17
|
uses: ruby/setup-ruby@v1
|
15
18
|
with:
|
@@ -21,6 +24,7 @@ jobs:
|
|
21
24
|
- name: Ensure no git diff
|
22
25
|
run: git diff --exit-code && git diff-index --quiet --cached HEAD
|
23
26
|
- name: Upload Code Coverage
|
24
|
-
uses: codecov/codecov-action@
|
27
|
+
uses: codecov/codecov-action@v4
|
25
28
|
with:
|
26
29
|
directory: tmp/simple_cov
|
30
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.6
|
data/.runger-config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
expected-num-github-checks: 3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v0.14.0 (2024-11-08)
|
2
|
+
- Remove upper bounds on versions for all dependencies
|
3
|
+
|
4
|
+
## v0.13.0 (2024-06-28)
|
5
|
+
- Enforce only major and minor parts of required Ruby version (loosening the required Ruby version from 3.3.3 to 3.3.0)
|
6
|
+
|
1
7
|
## v0.12.0 (2024-06-15)
|
2
8
|
- Rename primary branch from `master` to `main`
|
3
9
|
|
data/Gemfile.lock
CHANGED
@@ -1,110 +1,103 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shaped (0.
|
5
|
-
activemodel (>= 6
|
6
|
-
activesupport (>= 6
|
4
|
+
shaped (0.14.0)
|
5
|
+
activemodel (>= 6)
|
6
|
+
activesupport (>= 6)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (7.
|
12
|
-
activesupport (= 7.
|
13
|
-
activesupport (7.
|
11
|
+
activemodel (7.2.2)
|
12
|
+
activesupport (= 7.2.2)
|
13
|
+
activesupport (7.2.2)
|
14
14
|
base64
|
15
|
+
benchmark (>= 0.3)
|
15
16
|
bigdecimal
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
17
18
|
connection_pool (>= 2.2.5)
|
18
19
|
drb
|
19
20
|
i18n (>= 1.6, < 2)
|
21
|
+
logger (>= 1.4.2)
|
20
22
|
minitest (>= 5.1)
|
21
|
-
|
22
|
-
tzinfo (~> 2.0)
|
23
|
+
securerandom (>= 0.3)
|
24
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
23
25
|
amazing_print (1.6.0)
|
24
26
|
ast (2.4.2)
|
25
27
|
base64 (0.2.0)
|
28
|
+
benchmark (0.4.0)
|
26
29
|
bigdecimal (3.1.8)
|
27
30
|
byebug (11.1.3)
|
28
31
|
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.3.
|
32
|
+
concurrent-ruby (1.3.4)
|
30
33
|
connection_pool (2.4.1)
|
31
34
|
diff-lcs (1.5.1)
|
32
|
-
docile (1.4.
|
35
|
+
docile (1.4.1)
|
33
36
|
drb (2.2.1)
|
34
|
-
i18n (1.14.
|
37
|
+
i18n (1.14.6)
|
35
38
|
concurrent-ruby (~> 1.0)
|
36
|
-
json (2.
|
39
|
+
json (2.8.1)
|
37
40
|
language_server-protocol (3.17.0.3)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
parallel (1.
|
43
|
-
parser (3.3.
|
41
|
+
logger (1.6.1)
|
42
|
+
memo_wise (1.10.0)
|
43
|
+
method_source (1.1.0)
|
44
|
+
minitest (5.25.1)
|
45
|
+
parallel (1.26.3)
|
46
|
+
parser (3.3.6.0)
|
44
47
|
ast (~> 2.4.1)
|
45
48
|
racc
|
46
|
-
prism (
|
47
|
-
pry (0.14.
|
49
|
+
prism (1.2.0)
|
50
|
+
pry (0.14.2)
|
48
51
|
coderay (~> 1.1)
|
49
52
|
method_source (~> 1.0)
|
50
53
|
pry-byebug (3.10.1)
|
51
54
|
byebug (~> 11.0)
|
52
55
|
pry (>= 0.13, < 0.15)
|
53
|
-
racc (1.8.
|
56
|
+
racc (1.8.1)
|
54
57
|
rainbow (3.1.1)
|
55
58
|
rake (13.2.1)
|
56
59
|
regexp_parser (2.9.2)
|
57
|
-
rexml (3.
|
58
|
-
strscan (>= 3.0.9)
|
60
|
+
rexml (3.3.9)
|
59
61
|
rspec (3.13.0)
|
60
62
|
rspec-core (~> 3.13.0)
|
61
63
|
rspec-expectations (~> 3.13.0)
|
62
64
|
rspec-mocks (~> 3.13.0)
|
63
|
-
rspec-core (3.13.
|
65
|
+
rspec-core (3.13.2)
|
64
66
|
rspec-support (~> 3.13.0)
|
65
|
-
rspec-expectations (3.13.
|
67
|
+
rspec-expectations (3.13.3)
|
66
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
69
|
rspec-support (~> 3.13.0)
|
68
|
-
rspec-mocks (3.13.
|
70
|
+
rspec-mocks (3.13.2)
|
69
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
72
|
rspec-support (~> 3.13.0)
|
71
|
-
rspec-support (3.13.
|
72
|
-
rubocop (1.
|
73
|
+
rspec-support (3.13.1)
|
74
|
+
rubocop (1.68.0)
|
73
75
|
json (~> 2.3)
|
74
76
|
language_server-protocol (>= 3.17.0)
|
75
77
|
parallel (~> 1.10)
|
76
78
|
parser (>= 3.3.0.2)
|
77
79
|
rainbow (>= 2.2.2, < 4.0)
|
78
|
-
regexp_parser (>=
|
79
|
-
|
80
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
80
|
+
regexp_parser (>= 2.4, < 3.0)
|
81
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
81
82
|
ruby-progressbar (~> 1.7)
|
82
83
|
unicode-display_width (>= 2.4.0, < 3.0)
|
83
|
-
rubocop-ast (1.
|
84
|
+
rubocop-ast (1.34.1)
|
84
85
|
parser (>= 3.3.1.0)
|
85
|
-
rubocop-
|
86
|
-
rubocop (~> 1.41)
|
87
|
-
rubocop-factory_bot (2.25.1)
|
88
|
-
rubocop (~> 1.41)
|
89
|
-
rubocop-performance (1.21.0)
|
86
|
+
rubocop-performance (1.22.1)
|
90
87
|
rubocop (>= 1.48.1, < 2.0)
|
91
88
|
rubocop-ast (>= 1.31.1, < 2.0)
|
92
|
-
rubocop-rspec (2.
|
93
|
-
rubocop (~> 1.
|
94
|
-
rubocop-capybara (~> 2.17)
|
95
|
-
rubocop-factory_bot (~> 2.22)
|
96
|
-
rubocop-rspec_rails (~> 2.28)
|
97
|
-
rubocop-rspec_rails (2.28.3)
|
98
|
-
rubocop (~> 1.40)
|
89
|
+
rubocop-rspec (3.2.0)
|
90
|
+
rubocop (~> 1.61)
|
99
91
|
ruby-progressbar (1.13.0)
|
100
|
-
runger_release_assistant (0.
|
92
|
+
runger_release_assistant (0.12.0)
|
101
93
|
activesupport (>= 6, < 8)
|
102
94
|
memo_wise (>= 1.7, < 2)
|
103
95
|
rainbow (>= 3.0, < 4)
|
104
96
|
slop (~> 4.8)
|
105
|
-
runger_style (2.
|
97
|
+
runger_style (2.17.0)
|
106
98
|
prism (>= 0.24.0)
|
107
99
|
rubocop (>= 1.38.0, < 2)
|
100
|
+
securerandom (0.3.1)
|
108
101
|
simplecov (0.22.0)
|
109
102
|
docile (~> 1.1)
|
110
103
|
simplecov-html (~> 0.11)
|
@@ -112,13 +105,12 @@ GEM
|
|
112
105
|
simplecov-cobertura (2.1.0)
|
113
106
|
rexml
|
114
107
|
simplecov (~> 0.19)
|
115
|
-
simplecov-html (0.
|
108
|
+
simplecov-html (0.13.1)
|
116
109
|
simplecov_json_formatter (0.1.4)
|
117
110
|
slop (4.10.1)
|
118
|
-
strscan (3.1.0)
|
119
111
|
tzinfo (2.0.6)
|
120
112
|
concurrent-ruby (~> 1.0)
|
121
|
-
unicode-display_width (2.
|
113
|
+
unicode-display_width (2.6.0)
|
122
114
|
|
123
115
|
PLATFORMS
|
124
116
|
ruby
|
@@ -137,7 +129,7 @@ DEPENDENCIES
|
|
137
129
|
simplecov-cobertura
|
138
130
|
|
139
131
|
RUBY VERSION
|
140
|
-
ruby 3.3.
|
132
|
+
ruby 3.3.6p108
|
141
133
|
|
142
134
|
BUNDLED WITH
|
143
|
-
2.5.
|
135
|
+
2.5.23
|
data/lib/shaped/version.rb
CHANGED
data/shaped.gemspec
CHANGED
@@ -12,7 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Validate the "shape" of Ruby objects.'
|
13
13
|
spec.homepage = 'https://github.com/davidrunger/shaped'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
|
15
|
+
required_ruby_version = File.read('.ruby-version').rstrip.sub(/\A(\d+\.\d+)\.\d+\z/, '\1.0')
|
16
|
+
spec.required_ruby_version = ">= #{required_ruby_version}"
|
16
17
|
|
17
18
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
19
|
spec.metadata['homepage_uri'] = spec.homepage
|
@@ -27,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
27
28
|
end
|
28
29
|
spec.require_paths = ['lib']
|
29
30
|
|
30
|
-
spec.
|
31
|
-
spec.
|
31
|
+
spec.add_dependency('activemodel', '>= 6')
|
32
|
+
spec.add_dependency('activesupport', '>= 6')
|
32
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shaped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2024-
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '8'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '6'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '8'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: activesupport
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: '6'
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '8'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +38,6 @@ dependencies:
|
|
47
38
|
- - ">="
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: '6'
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '8'
|
53
41
|
description: Validate the "shape" of Ruby objects.
|
54
42
|
email:
|
55
43
|
- davidjrunger@gmail.com
|
@@ -64,6 +52,7 @@ files:
|
|
64
52
|
- ".rspec"
|
65
53
|
- ".rubocop.yml"
|
66
54
|
- ".ruby-version"
|
55
|
+
- ".runger-config.yml"
|
67
56
|
- CHANGELOG.md
|
68
57
|
- Gemfile
|
69
58
|
- Gemfile.lock
|
@@ -72,6 +61,7 @@ files:
|
|
72
61
|
- Rakefile
|
73
62
|
- bin/_guard-core
|
74
63
|
- bin/console
|
64
|
+
- bin/githooks/pre-push
|
75
65
|
- bin/guard
|
76
66
|
- bin/release
|
77
67
|
- bin/rspec
|
@@ -105,14 +95,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
95
|
requirements:
|
106
96
|
- - ">="
|
107
97
|
- !ruby/object:Gem::Version
|
108
|
-
version: 3.3.
|
98
|
+
version: 3.3.0
|
109
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
100
|
requirements:
|
111
101
|
- - ">="
|
112
102
|
- !ruby/object:Gem::Version
|
113
103
|
version: '0'
|
114
104
|
requirements: []
|
115
|
-
rubygems_version: 3.5.
|
105
|
+
rubygems_version: 3.5.23
|
116
106
|
signing_key:
|
117
107
|
specification_version: 4
|
118
108
|
summary: Validate the "shape" of Ruby objects.
|