shaped 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +54 -56
- data/lib/shaped.rb +1 -1
- data/lib/shaped/shapes/class.rb +0 -7
- data/lib/shaped/version.rb +1 -1
- data/shaped.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcb21038c53b353208f02bd64475365067297f3a491645dec0b81cec74bbc151
|
4
|
+
data.tar.gz: 899d747be3d03b69796bfe0fa2fad813f2281397107b86973ff7195233c2b6f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0dbbce2637e41389801a48f197f3fccf220c5665ca84d3f2938c73de7854110fc27b972c08cdcd1e64e18c96873543a111454134462feaa41af72e0abebbe25
|
7
|
+
data.tar.gz: d5d2b4e12cf31d8c29226a512138def5cc5543ef06bc1778cf587a84a20ccb2cd6c7a0bc1dd86d68edeb980934c4c7a0fe5e1b1bbbae6ea0dc6ea941a97d3f28
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -9,40 +9,37 @@ GIT
|
|
9
9
|
|
10
10
|
GIT
|
11
11
|
remote: https://github.com/davidrunger/runger_style.git
|
12
|
-
revision:
|
12
|
+
revision: f7c19c578016914b58a216a71bc4193d276b1048
|
13
13
|
specs:
|
14
|
-
runger_style (0.2.
|
14
|
+
runger_style (0.2.5)
|
15
15
|
|
16
16
|
PATH
|
17
17
|
remote: .
|
18
18
|
specs:
|
19
|
-
shaped (0.7.
|
19
|
+
shaped (0.7.3)
|
20
20
|
activemodel (~> 6.0)
|
21
21
|
activesupport (~> 6.0)
|
22
22
|
|
23
23
|
GEM
|
24
24
|
remote: https://rubygems.org/
|
25
25
|
specs:
|
26
|
-
activemodel (6.
|
27
|
-
activesupport (= 6.
|
28
|
-
activesupport (6.
|
26
|
+
activemodel (6.1.1)
|
27
|
+
activesupport (= 6.1.1)
|
28
|
+
activesupport (6.1.1)
|
29
29
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
30
|
-
i18n (>=
|
31
|
-
minitest (
|
32
|
-
tzinfo (~>
|
33
|
-
zeitwerk (~> 2.
|
34
|
-
amazing_print (1.2.
|
30
|
+
i18n (>= 1.6, < 2)
|
31
|
+
minitest (>= 5.1)
|
32
|
+
tzinfo (~> 2.0)
|
33
|
+
zeitwerk (~> 2.3)
|
34
|
+
amazing_print (1.2.2)
|
35
35
|
ast (2.4.1)
|
36
36
|
byebug (11.1.3)
|
37
|
-
codecov (0.2.
|
38
|
-
|
39
|
-
json
|
40
|
-
simplecov
|
37
|
+
codecov (0.2.15)
|
38
|
+
simplecov (>= 0.15, < 0.21)
|
41
39
|
coderay (1.1.3)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
docile (1.3.2)
|
40
|
+
concurrent-ruby (1.1.7)
|
41
|
+
diff-lcs (1.4.4)
|
42
|
+
docile (1.3.4)
|
46
43
|
ffi (1.13.1)
|
47
44
|
formatador (0.2.5)
|
48
45
|
guard (2.16.2)
|
@@ -55,21 +52,20 @@ GEM
|
|
55
52
|
shellany (~> 0.0)
|
56
53
|
thor (>= 0.18.1)
|
57
54
|
guard-compat (1.2.1)
|
58
|
-
i18n (1.8.
|
55
|
+
i18n (1.8.7)
|
59
56
|
concurrent-ruby (~> 1.0)
|
60
|
-
json (2.3.1)
|
61
57
|
listen (3.2.1)
|
62
58
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
63
59
|
rb-inotify (~> 0.9, >= 0.9.10)
|
64
60
|
lumberjack (1.2.5)
|
65
61
|
method_source (1.0.0)
|
66
|
-
minitest (5.14.
|
62
|
+
minitest (5.14.3)
|
67
63
|
nenv (0.3.0)
|
68
64
|
notiffany (0.1.3)
|
69
65
|
nenv (~> 0.1)
|
70
66
|
shellany (~> 0.0)
|
71
|
-
parallel (1.
|
72
|
-
parser (
|
67
|
+
parallel (1.20.1)
|
68
|
+
parser (3.0.0.0)
|
73
69
|
ast (~> 2.4.1)
|
74
70
|
pry (0.13.1)
|
75
71
|
coderay (~> 1.1)
|
@@ -78,53 +74,55 @@ GEM
|
|
78
74
|
byebug (~> 11.0)
|
79
75
|
pry (~> 0.13.0)
|
80
76
|
rainbow (3.0.0)
|
81
|
-
rake (13.0.
|
77
|
+
rake (13.0.3)
|
82
78
|
rb-fsevent (0.10.4)
|
83
79
|
rb-inotify (0.10.1)
|
84
80
|
ffi (~> 1.0)
|
85
|
-
regexp_parser (
|
81
|
+
regexp_parser (2.0.3)
|
86
82
|
rexml (3.2.4)
|
87
|
-
rspec (3.
|
88
|
-
rspec-core (~> 3.
|
89
|
-
rspec-expectations (~> 3.
|
90
|
-
rspec-mocks (~> 3.
|
91
|
-
rspec-core (3.
|
92
|
-
rspec-support (~> 3.
|
93
|
-
rspec-expectations (3.
|
83
|
+
rspec (3.10.0)
|
84
|
+
rspec-core (~> 3.10.0)
|
85
|
+
rspec-expectations (~> 3.10.0)
|
86
|
+
rspec-mocks (~> 3.10.0)
|
87
|
+
rspec-core (3.10.1)
|
88
|
+
rspec-support (~> 3.10.0)
|
89
|
+
rspec-expectations (3.10.1)
|
94
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
-
rspec-support (~> 3.
|
96
|
-
rspec-mocks (3.
|
91
|
+
rspec-support (~> 3.10.0)
|
92
|
+
rspec-mocks (3.10.1)
|
97
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-support (3.
|
100
|
-
rubocop (0.
|
94
|
+
rspec-support (~> 3.10.0)
|
95
|
+
rspec-support (3.10.1)
|
96
|
+
rubocop (0.93.1)
|
101
97
|
parallel (~> 1.10)
|
102
|
-
parser (>= 2.7.1.
|
98
|
+
parser (>= 2.7.1.5)
|
103
99
|
rainbow (>= 2.2.2, < 4.0)
|
104
|
-
regexp_parser (>= 1.
|
100
|
+
regexp_parser (>= 1.8)
|
105
101
|
rexml
|
106
|
-
rubocop-ast (>= 0.
|
102
|
+
rubocop-ast (>= 0.6.0)
|
107
103
|
ruby-progressbar (~> 1.7)
|
108
104
|
unicode-display_width (>= 1.4.0, < 2.0)
|
109
|
-
rubocop-ast (
|
110
|
-
parser (>= 2.7.
|
111
|
-
rubocop-performance (1.
|
112
|
-
rubocop (>= 0.
|
113
|
-
|
114
|
-
|
115
|
-
|
105
|
+
rubocop-ast (1.4.0)
|
106
|
+
parser (>= 2.7.1.5)
|
107
|
+
rubocop-performance (1.9.2)
|
108
|
+
rubocop (>= 0.90.0, < 2.0)
|
109
|
+
rubocop-ast (>= 0.4.0)
|
110
|
+
rubocop-rspec (1.44.1)
|
111
|
+
rubocop (~> 0.87)
|
112
|
+
rubocop-ast (>= 0.7.1)
|
113
|
+
ruby-progressbar (1.11.0)
|
116
114
|
shellany (0.0.1)
|
117
|
-
simplecov (0.
|
115
|
+
simplecov (0.20.0)
|
118
116
|
docile (~> 1.1)
|
119
|
-
|
120
|
-
|
121
|
-
simplecov-html (0.
|
117
|
+
simplecov-html (~> 0.11)
|
118
|
+
simplecov_json_formatter (~> 0.1)
|
119
|
+
simplecov-html (0.12.3)
|
120
|
+
simplecov_json_formatter (0.1.2)
|
122
121
|
thor (1.0.1)
|
123
|
-
|
124
|
-
|
125
|
-
thread_safe (~> 0.1)
|
122
|
+
tzinfo (2.0.4)
|
123
|
+
concurrent-ruby (~> 1.0)
|
126
124
|
unicode-display_width (1.7.0)
|
127
|
-
zeitwerk (2.
|
125
|
+
zeitwerk (2.4.2)
|
128
126
|
|
129
127
|
PLATFORMS
|
130
128
|
ruby
|
data/lib/shaped.rb
CHANGED
@@ -6,7 +6,7 @@ module Shaped::Shapes ; end
|
|
6
6
|
require 'active_support/all'
|
7
7
|
require 'active_model'
|
8
8
|
require_relative './shaped/shape.rb'
|
9
|
-
Dir[File.dirname(__FILE__)
|
9
|
+
Dir["#{File.dirname(__FILE__)}/**/*.rb"].sort.each { |file| require file }
|
10
10
|
|
11
11
|
module Shaped
|
12
12
|
# rubocop:disable Naming/MethodName, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
data/lib/shaped/shapes/class.rb
CHANGED
@@ -34,13 +34,6 @@ class Shaped::Shapes::Class < Shaped::Shape
|
|
34
34
|
attr_accessor :value
|
35
35
|
|
36
36
|
validates :value, validations
|
37
|
-
|
38
|
-
class << self
|
39
|
-
# ActiveModel requires the class to have a `name`
|
40
|
-
def name
|
41
|
-
'Shaped::Shapes::Class::AnonymousValidator'
|
42
|
-
end
|
43
|
-
end
|
44
37
|
end
|
45
38
|
end
|
46
39
|
|
data/lib/shaped/version.rb
CHANGED
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.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
16
16
|
|
17
17
|
spec.metadata['homepage_uri'] = spec.homepage
|
18
18
|
spec.metadata['source_code_uri'] = 'https://github.com/davidrunger/shaped'
|
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.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -82,7 +82,7 @@ metadata:
|
|
82
82
|
homepage_uri: https://github.com/davidrunger/shaped
|
83
83
|
source_code_uri: https://github.com/davidrunger/shaped
|
84
84
|
changelog_uri: https://github.com/davidrunger/shaped/blob/master/CHANGELOG.md
|
85
|
-
post_install_message:
|
85
|
+
post_install_message:
|
86
86
|
rdoc_options: []
|
87
87
|
require_paths:
|
88
88
|
- lib
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.
|
93
|
+
version: 2.7.0
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubygems_version: 3.1.2
|
101
|
-
signing_key:
|
101
|
+
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Validate the "shape" of Ruby objects.
|
104
104
|
test_files: []
|