shaped 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +45 -74
- data/bin/_guard-core +1 -1
- data/bin/guard +1 -1
- data/bin/release +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/lib/shaped/version.rb +1 -1
- data/lib/shaped.rb +2 -2
- data/shaped.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a561294e8661c08c4e51ffbbfd8f6d7f5b1c7847189694d0eefad3ac0242ba12
|
4
|
+
data.tar.gz: 60aaf2ad38b406f12d69e62090403c028f57c5872dfba2f8c4d8df22cfc557aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6a382e593f908adc17d6b518892e157af29ae4ab13767bfbf23aaf3d4ebe75e25b8dee88dae655c4049e31e1db612a872084dcb08957b10b3eafb9c59f9478b
|
7
|
+
data.tar.gz: bd49cde0f68661e86a27b705c40db07aee52a750fc1ce082d2c075e947839eaab08201fa0e0e6fe4c15bee5a5c385f1f3bda4c3343ae924e3e392245c86ae82d
|
data/.github/workflows/ruby.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0
|
1
|
+
3.2.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,6 @@
|
|
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: 969b3a90264da6ce73275a7240cc7e54ff5a6370
|
13
4
|
specs:
|
14
5
|
release_assistant (0.3.3.alpha)
|
15
6
|
activesupport (>= 6, < 8)
|
@@ -19,23 +10,24 @@ GIT
|
|
19
10
|
|
20
11
|
GIT
|
21
12
|
remote: https://github.com/davidrunger/runger_style.git
|
22
|
-
revision:
|
13
|
+
revision: 70a51d91a324c23a0dcd206f2d4ef6008b66beca
|
23
14
|
specs:
|
24
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.
|
21
|
+
shaped (0.10.0)
|
30
22
|
activemodel (>= 6, < 8)
|
31
23
|
activesupport (>= 6, < 8)
|
32
24
|
|
33
25
|
GEM
|
34
26
|
remote: https://rubygems.org/
|
35
27
|
specs:
|
36
|
-
activemodel (7.0.3)
|
37
|
-
activesupport (= 7.0.3)
|
38
|
-
activesupport (7.0.3)
|
28
|
+
activemodel (7.0.4.3)
|
29
|
+
activesupport (= 7.0.4.3)
|
30
|
+
activesupport (7.0.4.3)
|
39
31
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
40
32
|
i18n (>= 1.6, < 2)
|
41
33
|
minitest (>= 5.1)
|
@@ -47,92 +39,72 @@ GEM
|
|
47
39
|
simplecov (>= 0.15, < 0.22)
|
48
40
|
coderay (1.1.3)
|
49
41
|
colorize (0.8.1)
|
50
|
-
concurrent-ruby (1.
|
42
|
+
concurrent-ruby (1.2.2)
|
51
43
|
diff-lcs (1.5.0)
|
52
44
|
docile (1.4.0)
|
53
|
-
|
54
|
-
formatador (0.3.0)
|
55
|
-
guard (2.18.0)
|
56
|
-
formatador (>= 0.2.4)
|
57
|
-
listen (>= 2.7, < 4.0)
|
58
|
-
lumberjack (>= 1.0.12, < 2.0)
|
59
|
-
nenv (~> 0.1)
|
60
|
-
notiffany (~> 0.0)
|
61
|
-
pry (>= 0.13.0)
|
62
|
-
shellany (~> 0.0)
|
63
|
-
thor (>= 0.18.1)
|
64
|
-
guard-compat (1.2.1)
|
65
|
-
i18n (1.10.0)
|
45
|
+
i18n (1.12.0)
|
66
46
|
concurrent-ruby (~> 1.0)
|
67
|
-
|
68
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
69
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
70
|
-
lumberjack (1.2.8)
|
47
|
+
json (2.6.3)
|
71
48
|
memoist (0.16.2)
|
72
49
|
method_source (1.0.0)
|
73
|
-
minitest (5.
|
74
|
-
|
75
|
-
|
76
|
-
nenv (~> 0.1)
|
77
|
-
shellany (~> 0.0)
|
78
|
-
parallel (1.22.1)
|
79
|
-
parser (3.1.2.0)
|
50
|
+
minitest (5.18.0)
|
51
|
+
parallel (1.23.0)
|
52
|
+
parser (3.2.2.0)
|
80
53
|
ast (~> 2.4.1)
|
81
|
-
pry (0.
|
54
|
+
pry (0.14.1)
|
82
55
|
coderay (~> 1.1)
|
83
56
|
method_source (~> 1.0)
|
84
|
-
pry-byebug (3.
|
57
|
+
pry-byebug (3.10.1)
|
85
58
|
byebug (~> 11.0)
|
86
|
-
pry (
|
59
|
+
pry (>= 0.13, < 0.15)
|
87
60
|
rainbow (3.1.1)
|
88
61
|
rake (13.0.6)
|
89
|
-
|
90
|
-
rb-inotify (0.10.1)
|
91
|
-
ffi (~> 1.0)
|
92
|
-
regexp_parser (2.5.0)
|
62
|
+
regexp_parser (2.8.0)
|
93
63
|
rexml (3.2.5)
|
94
|
-
rspec (3.
|
95
|
-
rspec-core (~> 3.
|
96
|
-
rspec-expectations (~> 3.
|
97
|
-
rspec-mocks (~> 3.
|
98
|
-
rspec-core (3.
|
99
|
-
rspec-support (~> 3.
|
100
|
-
rspec-expectations (3.
|
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)
|
101
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
102
|
-
rspec-support (~> 3.
|
103
|
-
rspec-mocks (3.
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-mocks (3.12.0)
|
104
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
105
|
-
rspec-support (~> 3.
|
106
|
-
rspec-support (3.
|
107
|
-
rubocop (1.
|
75
|
+
rspec-support (~> 3.12.0)
|
76
|
+
rspec-support (3.12.0)
|
77
|
+
rubocop (1.50.2)
|
78
|
+
json (~> 2.3)
|
108
79
|
parallel (~> 1.10)
|
109
|
-
parser (>= 3.
|
80
|
+
parser (>= 3.2.0.0)
|
110
81
|
rainbow (>= 2.2.2, < 4.0)
|
111
82
|
regexp_parser (>= 1.8, < 3.0)
|
112
83
|
rexml (>= 3.2.5, < 4.0)
|
113
|
-
rubocop-ast (>= 1.
|
84
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
114
85
|
ruby-progressbar (~> 1.7)
|
115
|
-
unicode-display_width (>=
|
116
|
-
rubocop-ast (1.
|
117
|
-
parser (>= 3.
|
118
|
-
rubocop-
|
86
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
87
|
+
rubocop-ast (1.28.0)
|
88
|
+
parser (>= 3.2.1.0)
|
89
|
+
rubocop-capybara (2.18.0)
|
90
|
+
rubocop (~> 1.41)
|
91
|
+
rubocop-performance (1.17.1)
|
119
92
|
rubocop (>= 1.7.0, < 2.0)
|
120
93
|
rubocop-ast (>= 0.4.0)
|
121
|
-
rubocop-rspec (2.
|
122
|
-
rubocop (~> 1.
|
123
|
-
|
124
|
-
|
94
|
+
rubocop-rspec (2.20.0)
|
95
|
+
rubocop (~> 1.33)
|
96
|
+
rubocop-capybara (~> 2.17)
|
97
|
+
ruby-progressbar (1.13.0)
|
125
98
|
simplecov (0.21.2)
|
126
99
|
docile (~> 1.1)
|
127
100
|
simplecov-html (~> 0.11)
|
128
101
|
simplecov_json_formatter (~> 0.1)
|
129
102
|
simplecov-html (0.12.3)
|
130
103
|
simplecov_json_formatter (0.1.3)
|
131
|
-
slop (4.
|
132
|
-
|
133
|
-
tzinfo (2.0.4)
|
104
|
+
slop (4.10.1)
|
105
|
+
tzinfo (2.0.6)
|
134
106
|
concurrent-ruby (~> 1.0)
|
135
|
-
unicode-display_width (2.
|
107
|
+
unicode-display_width (2.4.2)
|
136
108
|
|
137
109
|
PLATFORMS
|
138
110
|
ruby
|
@@ -140,7 +112,6 @@ PLATFORMS
|
|
140
112
|
DEPENDENCIES
|
141
113
|
amazing_print
|
142
114
|
codecov
|
143
|
-
guard-espect!
|
144
115
|
pry-byebug
|
145
116
|
rake
|
146
117
|
release_assistant!
|
data/bin/_guard-core
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("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/guard
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("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/release
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("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rspec
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/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,7 +12,7 @@ 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
17
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
18
|
spec.metadata['homepage_uri'] = spec.homepage
|
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.10.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: 2023-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -105,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: 3.1.1
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.4.4
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Validate the "shape" of Ruby objects.
|