shaped 0.8.2 → 0.9.1
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 +16 -0
- data/.github/workflows/ruby.yml +3 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +60 -92
- data/bin/_guard-core +2 -5
- data/bin/guard +2 -5
- data/bin/release +2 -3
- data/bin/rspec +2 -6
- data/bin/rubocop +1 -1
- data/lib/shaped/version.rb +1 -1
- data/lib/shaped.rb +2 -2
- data/shaped.gemspec +4 -3
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2c196c7b00a0fb7e87c81949ea48890315b0a3a5bd5d1ad677b466ce7bc6ab
|
4
|
+
data.tar.gz: b9e7c47bbb113be8e87e5f428362c337f146ddddc0002869317cb43f974f8b48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77bd4dd33b184bfc25be1af014e7b69ab55335786500a2972c08b48e6b693852ae0c9bacd830690cf4ab16c2bfd609d8b9d7188c686988de5588ee87295abb36
|
7
|
+
data.tar.gz: f4f7872410534488f0d35570d64d3c25cc33c59c905c96e6ec7d4038aacc1d7f2578343c9db62676371e56322035dec58f0b81f55c3dc199349c4fbd71ee953c
|
@@ -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
|
data/.github/workflows/ruby.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,141 +1,110 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/davidrunger/guard-espect.git
|
3
|
-
revision: 8d7f8594d120f4fa815eb20d79aeb962af8e83df
|
4
|
-
specs:
|
5
|
-
guard-espect (4.7.3)
|
6
|
-
guard (~> 2.1)
|
7
|
-
guard-compat (~> 1.1)
|
8
|
-
rspec (>= 2.99.0, < 4.0)
|
9
|
-
|
10
1
|
GIT
|
11
2
|
remote: https://github.com/davidrunger/release_assistant.git
|
12
|
-
revision:
|
3
|
+
revision: 8178e5521e33fbc488d1f9eb02bf2543ffb65058
|
13
4
|
specs:
|
14
|
-
release_assistant (0.3.
|
15
|
-
activesupport (
|
5
|
+
release_assistant (0.3.3.alpha)
|
6
|
+
activesupport (>= 6, < 8)
|
16
7
|
colorize (~> 0.8)
|
17
8
|
memoist (~> 0.16)
|
18
9
|
slop (~> 4.8)
|
19
10
|
|
20
11
|
GIT
|
21
12
|
remote: https://github.com/davidrunger/runger_style.git
|
22
|
-
revision:
|
13
|
+
revision: 70a51d91a324c23a0dcd206f2d4ef6008b66beca
|
23
14
|
specs:
|
24
|
-
runger_style (0.2.
|
15
|
+
runger_style (0.2.22.alpha)
|
16
|
+
rubocop (>= 1.38.0, < 2)
|
25
17
|
|
26
18
|
PATH
|
27
19
|
remote: .
|
28
20
|
specs:
|
29
|
-
shaped (0.
|
30
|
-
activemodel (
|
31
|
-
activesupport (
|
21
|
+
shaped (0.9.1)
|
22
|
+
activemodel (>= 6, < 8)
|
23
|
+
activesupport (>= 6, < 8)
|
32
24
|
|
33
25
|
GEM
|
34
26
|
remote: https://rubygems.org/
|
35
27
|
specs:
|
36
|
-
activemodel (
|
37
|
-
activesupport (=
|
38
|
-
activesupport (
|
28
|
+
activemodel (7.0.4.2)
|
29
|
+
activesupport (= 7.0.4.2)
|
30
|
+
activesupport (7.0.4.2)
|
39
31
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
40
32
|
i18n (>= 1.6, < 2)
|
41
33
|
minitest (>= 5.1)
|
42
34
|
tzinfo (~> 2.0)
|
43
|
-
|
44
|
-
amazing_print (1.2.2)
|
35
|
+
amazing_print (1.4.0)
|
45
36
|
ast (2.4.2)
|
46
37
|
byebug (11.1.3)
|
47
|
-
codecov (0.
|
38
|
+
codecov (0.6.0)
|
48
39
|
simplecov (>= 0.15, < 0.22)
|
49
40
|
coderay (1.1.3)
|
50
41
|
colorize (0.8.1)
|
51
|
-
concurrent-ruby (1.
|
52
|
-
diff-lcs (1.
|
53
|
-
docile (1.
|
54
|
-
|
55
|
-
formatador (0.2.5)
|
56
|
-
guard (2.16.2)
|
57
|
-
formatador (>= 0.2.4)
|
58
|
-
listen (>= 2.7, < 4.0)
|
59
|
-
lumberjack (>= 1.0.12, < 2.0)
|
60
|
-
nenv (~> 0.1)
|
61
|
-
notiffany (~> 0.0)
|
62
|
-
pry (>= 0.9.12)
|
63
|
-
shellany (~> 0.0)
|
64
|
-
thor (>= 0.18.1)
|
65
|
-
guard-compat (1.2.1)
|
66
|
-
i18n (1.8.8)
|
42
|
+
concurrent-ruby (1.2.2)
|
43
|
+
diff-lcs (1.5.0)
|
44
|
+
docile (1.4.0)
|
45
|
+
i18n (1.12.0)
|
67
46
|
concurrent-ruby (~> 1.0)
|
68
|
-
|
69
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
70
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
71
|
-
lumberjack (1.2.5)
|
47
|
+
json (2.6.3)
|
72
48
|
memoist (0.16.2)
|
73
49
|
method_source (1.0.0)
|
74
|
-
minitest (5.
|
75
|
-
|
76
|
-
|
77
|
-
nenv (~> 0.1)
|
78
|
-
shellany (~> 0.0)
|
79
|
-
parallel (1.20.1)
|
80
|
-
parser (3.0.0.0)
|
50
|
+
minitest (5.17.0)
|
51
|
+
parallel (1.22.1)
|
52
|
+
parser (3.2.1.0)
|
81
53
|
ast (~> 2.4.1)
|
82
|
-
pry (0.
|
54
|
+
pry (0.14.1)
|
83
55
|
coderay (~> 1.1)
|
84
56
|
method_source (~> 1.0)
|
85
|
-
pry-byebug (3.
|
57
|
+
pry-byebug (3.10.1)
|
86
58
|
byebug (~> 11.0)
|
87
|
-
pry (
|
88
|
-
rainbow (3.
|
89
|
-
rake (13.0.
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rspec-
|
98
|
-
|
99
|
-
rspec-core (3.10.1)
|
100
|
-
rspec-support (~> 3.10.0)
|
101
|
-
rspec-expectations (3.10.1)
|
59
|
+
pry (>= 0.13, < 0.15)
|
60
|
+
rainbow (3.1.1)
|
61
|
+
rake (13.0.6)
|
62
|
+
regexp_parser (2.7.0)
|
63
|
+
rexml (3.2.5)
|
64
|
+
rspec (3.12.0)
|
65
|
+
rspec-core (~> 3.12.0)
|
66
|
+
rspec-expectations (~> 3.12.0)
|
67
|
+
rspec-mocks (~> 3.12.0)
|
68
|
+
rspec-core (3.12.0)
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-expectations (3.12.0)
|
102
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
103
|
-
rspec-support (~> 3.
|
104
|
-
rspec-mocks (3.
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-mocks (3.12.0)
|
105
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
106
|
-
rspec-support (~> 3.
|
107
|
-
rspec-support (3.
|
108
|
-
rubocop (1.
|
75
|
+
rspec-support (~> 3.12.0)
|
76
|
+
rspec-support (3.12.0)
|
77
|
+
rubocop (1.46.0)
|
78
|
+
json (~> 2.3)
|
109
79
|
parallel (~> 1.10)
|
110
|
-
parser (>= 3.
|
80
|
+
parser (>= 3.2.0.0)
|
111
81
|
rainbow (>= 2.2.2, < 4.0)
|
112
82
|
regexp_parser (>= 1.8, < 3.0)
|
113
|
-
rexml
|
114
|
-
rubocop-ast (>= 1.
|
83
|
+
rexml (>= 3.2.5, < 4.0)
|
84
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
115
85
|
ruby-progressbar (~> 1.7)
|
116
|
-
unicode-display_width (>=
|
117
|
-
rubocop-ast (1.
|
118
|
-
parser (>= 2.
|
119
|
-
rubocop-
|
120
|
-
rubocop (
|
86
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
87
|
+
rubocop-ast (1.26.0)
|
88
|
+
parser (>= 3.2.1.0)
|
89
|
+
rubocop-capybara (2.17.0)
|
90
|
+
rubocop (~> 1.41)
|
91
|
+
rubocop-performance (1.16.0)
|
92
|
+
rubocop (>= 1.7.0, < 2.0)
|
121
93
|
rubocop-ast (>= 0.4.0)
|
122
|
-
rubocop-rspec (2.1
|
123
|
-
rubocop (~> 1.
|
124
|
-
rubocop-
|
94
|
+
rubocop-rspec (2.18.1)
|
95
|
+
rubocop (~> 1.33)
|
96
|
+
rubocop-capybara (~> 2.17)
|
125
97
|
ruby-progressbar (1.11.0)
|
126
|
-
shellany (0.0.1)
|
127
98
|
simplecov (0.21.2)
|
128
99
|
docile (~> 1.1)
|
129
100
|
simplecov-html (~> 0.11)
|
130
101
|
simplecov_json_formatter (~> 0.1)
|
131
102
|
simplecov-html (0.12.3)
|
132
|
-
simplecov_json_formatter (0.1.
|
133
|
-
slop (4.
|
134
|
-
|
135
|
-
tzinfo (2.0.4)
|
103
|
+
simplecov_json_formatter (0.1.3)
|
104
|
+
slop (4.10.1)
|
105
|
+
tzinfo (2.0.6)
|
136
106
|
concurrent-ruby (~> 1.0)
|
137
|
-
unicode-display_width (2.
|
138
|
-
zeitwerk (2.4.2)
|
107
|
+
unicode-display_width (2.4.2)
|
139
108
|
|
140
109
|
PLATFORMS
|
141
110
|
ruby
|
@@ -143,7 +112,6 @@ PLATFORMS
|
|
143
112
|
DEPENDENCIES
|
144
113
|
amazing_print
|
145
114
|
codecov
|
146
|
-
guard-espect!
|
147
115
|
pry-byebug
|
148
116
|
rake
|
149
117
|
release_assistant!
|
@@ -155,4 +123,4 @@ DEPENDENCIES
|
|
155
123
|
shaped!
|
156
124
|
|
157
125
|
BUNDLED WITH
|
158
|
-
2.
|
126
|
+
2.2.22
|
data/bin/_guard-core
CHANGED
@@ -9,15 +9,12 @@
|
|
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
|
|
19
16
|
if File.file?(bundle_binstub)
|
20
|
-
if
|
17
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
21
18
|
load(bundle_binstub)
|
22
19
|
else
|
23
20
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/guard
CHANGED
@@ -9,15 +9,12 @@
|
|
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
|
|
19
16
|
if File.file?(bundle_binstub)
|
20
|
-
if
|
17
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
21
18
|
load(bundle_binstub)
|
22
19
|
else
|
23
20
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/release
CHANGED
@@ -9,13 +9,12 @@
|
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'pathname'
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
-
Pathname.new(__FILE__).realpath)
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
|
14
13
|
|
15
14
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
16
15
|
|
17
16
|
if File.file?(bundle_binstub)
|
18
|
-
if
|
17
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
19
18
|
load(bundle_binstub)
|
20
19
|
else
|
21
20
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rspec
CHANGED
@@ -9,16 +9,12 @@
|
|
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
|
|
20
16
|
if File.file?(bundle_binstub)
|
21
|
-
if
|
17
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
22
18
|
load(bundle_binstub)
|
23
19
|
else
|
24
20
|
abort(<<~ERROR)
|
data/bin/rubocop
CHANGED
@@ -14,7 +14,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE_
|
|
14
14
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
15
15
|
|
16
16
|
if File.file?(bundle_binstub)
|
17
|
-
if
|
17
|
+
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
|
18
18
|
load(bundle_binstub)
|
19
19
|
else
|
20
20
|
abort(<<~ERROR)
|
data/lib/shaped/version.rb
CHANGED
data/lib/shaped.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
module Shaped ; end
|
4
4
|
module Shaped::Shapes ; end
|
5
5
|
|
6
|
-
require 'active_support/all'
|
7
6
|
require 'active_model'
|
7
|
+
require 'active_support/all'
|
8
8
|
require_relative './shaped/shape.rb'
|
9
|
-
Dir["#{File.dirname(__FILE__)}/**/*.rb"].
|
9
|
+
Dir["#{File.dirname(__FILE__)}/**/*.rb"].each { |file| require file }
|
10
10
|
|
11
11
|
module Shaped
|
12
12
|
# rubocop:disable Naming/MethodName, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
data/shaped.gemspec
CHANGED
@@ -12,8 +12,9 @@ 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
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.1')
|
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.1
|
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: 2023-05-04 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,6 +57,7 @@ executables: []
|
|
45
57
|
extensions: []
|
46
58
|
extra_rdoc_files: []
|
47
59
|
files:
|
60
|
+
- ".github/dependabot.yml"
|
48
61
|
- ".github/workflows/ruby.yml"
|
49
62
|
- ".gitignore"
|
50
63
|
- ".release_assistant.yml"
|
@@ -80,6 +93,7 @@ homepage: https://github.com/davidrunger/shaped
|
|
80
93
|
licenses:
|
81
94
|
- MIT
|
82
95
|
metadata:
|
96
|
+
rubygems_mfa_required: 'true'
|
83
97
|
homepage_uri: https://github.com/davidrunger/shaped
|
84
98
|
source_code_uri: https://github.com/davidrunger/shaped
|
85
99
|
changelog_uri: https://github.com/davidrunger/shaped/blob/master/CHANGELOG.md
|
@@ -91,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
105
|
requirements:
|
92
106
|
- - ">="
|
93
107
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
108
|
+
version: 3.1.1
|
95
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
110
|
requirements:
|
97
111
|
- - ">="
|
98
112
|
- !ruby/object:Gem::Version
|
99
113
|
version: '0'
|
100
114
|
requirements: []
|
101
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.4.4
|
102
116
|
signing_key:
|
103
117
|
specification_version: 4
|
104
118
|
summary: Validate the "shape" of Ruby objects.
|