shaped 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a4a0b7d86c8417b8e9308fa91798a2a92ab697160e2fcfc457d8e29b6e905df
4
- data.tar.gz: fa5ac8fdb7155d47076ddd60dbc0b81eb0c4626d2e2ee2f5b09a16f7a35cd629
3
+ metadata.gz: 3d2c196c7b00a0fb7e87c81949ea48890315b0a3a5bd5d1ad677b466ce7bc6ab
4
+ data.tar.gz: b9e7c47bbb113be8e87e5f428362c337f146ddddc0002869317cb43f974f8b48
5
5
  SHA512:
6
- metadata.gz: 2150e55d70f8732d833f4fa709159c7eb62ca8d06b10e4f8f1fb8c1461ee809c8c3f9aff95e04fc99ff1650d58b72531dc9e27d206f19a4e9d929c03e04e20b6
7
- data.tar.gz: 13cbe12cc05f9fabff0738416b8bdf1981f8449e2c8bdf33be86814c070a09d07302daf830cf21d7e7ecdae0e529eb7fb2aaf0db4318cd22f870801805b9782d
6
+ metadata.gz: 77bd4dd33b184bfc25be1af014e7b69ab55335786500a2972c08b48e6b693852ae0c9bacd830690cf4ab16c2bfd609d8b9d7188c686988de5588ee87295abb36
7
+ data.tar.gz: f4f7872410534488f0d35570d64d3c25cc33c59c905c96e6ec7d4038aacc1d7f2578343c9db62676371e56322035dec58f0b81f55c3dc199349c4fbd71ee953c
@@ -9,8 +9,9 @@ jobs:
9
9
  build:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v2
13
- - uses: ruby/setup-ruby@v1
12
+ - uses: actions/checkout@v3
13
+ - name: Set up Ruby
14
+ uses: ruby/setup-ruby@v1
14
15
  with:
15
16
  bundler-cache: true
16
17
  - name: Run Rubocop
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.9.1 (2023-05-04)
2
+ [no unreleased changes yet]
3
+
1
4
  ## v0.9.0 (2022-06-13)
2
5
  [no unreleased changes yet]
3
6
 
data/Gemfile CHANGED
@@ -21,6 +21,5 @@ end
21
21
 
22
22
  group :test do
23
23
  gem 'codecov', require: false
24
- gem 'guard-espect', require: false, github: 'davidrunger/guard-espect'
25
24
  gem 'rspec'
26
25
  end
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: 862f2590257e1533f27772920bbe6205726fe534
3
+ revision: 8178e5521e33fbc488d1f9eb02bf2543ffb65058
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: a88256aa4bd96db0ab8248ffa6a456fd1e28f664
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.9.0)
21
+ shaped (0.9.1)
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.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)
@@ -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.1.10)
42
+ concurrent-ruby (1.2.2)
51
43
  diff-lcs (1.5.0)
52
44
  docile (1.4.0)
53
- ffi (1.15.4)
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
- listen (3.7.0)
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.15.0)
74
- nenv (0.3.0)
75
- notiffany (0.1.3)
76
- nenv (~> 0.1)
77
- shellany (~> 0.0)
50
+ minitest (5.17.0)
78
51
  parallel (1.22.1)
79
- parser (3.1.2.0)
52
+ parser (3.2.1.0)
80
53
  ast (~> 2.4.1)
81
- pry (0.13.1)
54
+ pry (0.14.1)
82
55
  coderay (~> 1.1)
83
56
  method_source (~> 1.0)
84
- pry-byebug (3.9.0)
57
+ pry-byebug (3.10.1)
85
58
  byebug (~> 11.0)
86
- pry (~> 0.13.0)
59
+ pry (>= 0.13, < 0.15)
87
60
  rainbow (3.1.1)
88
61
  rake (13.0.6)
89
- rb-fsevent (0.11.0)
90
- rb-inotify (0.10.1)
91
- ffi (~> 1.0)
92
- regexp_parser (2.5.0)
62
+ regexp_parser (2.7.0)
93
63
  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)
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.11.0)
103
- rspec-mocks (3.11.0)
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.11.0)
106
- rspec-support (3.11.0)
107
- rubocop (1.30.1)
75
+ rspec-support (~> 3.12.0)
76
+ rspec-support (3.12.0)
77
+ rubocop (1.46.0)
78
+ json (~> 2.3)
108
79
  parallel (~> 1.10)
109
- parser (>= 3.1.0.0)
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.18.0, < 2.0)
84
+ rubocop-ast (>= 1.26.0, < 2.0)
114
85
  ruby-progressbar (~> 1.7)
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)
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)
119
92
  rubocop (>= 1.7.0, < 2.0)
120
93
  rubocop-ast (>= 0.4.0)
121
- rubocop-rspec (2.11.1)
122
- rubocop (~> 1.19)
94
+ rubocop-rspec (2.18.1)
95
+ rubocop (~> 1.33)
96
+ rubocop-capybara (~> 2.17)
123
97
  ruby-progressbar (1.11.0)
124
- shellany (0.0.1)
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.9.2)
132
- thor (1.1.0)
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.1.0)
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 /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
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 /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
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 /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
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 /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
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 /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shaped
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
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"].sort.each { |file| require file }
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('>= 2.7.0')
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.9.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: 2022-06-13 00:00:00.000000000 Z
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: 2.7.0
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.2.22
115
+ rubygems_version: 3.4.4
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Validate the "shape" of Ruby objects.