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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c17eca1a62726455801d77acc63877eadf199ad58ceba789262917f93a8fd56a
4
- data.tar.gz: 723367acf980be0ac1e427aa792825f9e4b513b917e8929ed41f16b02ee67d5c
3
+ metadata.gz: dcb21038c53b353208f02bd64475365067297f3a491645dec0b81cec74bbc151
4
+ data.tar.gz: 899d747be3d03b69796bfe0fa2fad813f2281397107b86973ff7195233c2b6f7
5
5
  SHA512:
6
- metadata.gz: 6232fb1b87dca1f98184ef631444c05b9a74be191ed82d12af8263b30dad6df8826b91eb27ad9ed85543fb65f9a19c2900cd925cde0730b582b7806be17ee491
7
- data.tar.gz: 53b0b230f2b1fe6f0b13c1cfd624ec2f62284ad7aafb4d60bf2625fc33c8f2d83cdd2cc6bb657eff88166ea4cdb171de4adcff76aabedd8de079db022ff7e160
6
+ metadata.gz: f0dbbce2637e41389801a48f197f3fccf220c5665ca84d3f2938c73de7854110fc27b972c08cdcd1e64e18c96873543a111454134462feaa41af72e0abebbe25
7
+ data.tar.gz: d5d2b4e12cf31d8c29226a512138def5cc5543ef06bc1778cf587a84a20ccb2cd6c7a0bc1dd86d68edeb980934c4c7a0fe5e1b1bbbae6ea0dc6ea941a97d3f28
@@ -1,3 +1,7 @@
1
+ ## v0.7.3 (2021-01-07)
2
+ ### Removed
3
+ - Removed `::name` method for anonymous validator class in `Shaped::Shapes::Class`
4
+
1
5
  ## v0.7.2 (2020-07-13)
2
6
  ### Dependencies
3
7
  - Bump `rubocop` to 0.88.0 and `runger_style` to 0.2.3
@@ -9,40 +9,37 @@ GIT
9
9
 
10
10
  GIT
11
11
  remote: https://github.com/davidrunger/runger_style.git
12
- revision: 3d13e2985df67c4b9ce60c6039433ffa14ea87c9
12
+ revision: f7c19c578016914b58a216a71bc4193d276b1048
13
13
  specs:
14
- runger_style (0.2.3)
14
+ runger_style (0.2.5)
15
15
 
16
16
  PATH
17
17
  remote: .
18
18
  specs:
19
- shaped (0.7.2)
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.0.3.2)
27
- activesupport (= 6.0.3.2)
28
- activesupport (6.0.3.2)
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 (>= 0.7, < 2)
31
- minitest (~> 5.1)
32
- tzinfo (~> 1.1)
33
- zeitwerk (~> 2.2, >= 2.2.2)
34
- amazing_print (1.2.1)
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.0)
38
- colorize
39
- json
40
- simplecov
37
+ codecov (0.2.15)
38
+ simplecov (>= 0.15, < 0.21)
41
39
  coderay (1.1.3)
42
- colorize (0.8.1)
43
- concurrent-ruby (1.1.6)
44
- diff-lcs (1.3)
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.3)
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.1)
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.19.2)
72
- parser (2.7.1.4)
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.1)
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 (1.7.1)
81
+ regexp_parser (2.0.3)
86
82
  rexml (3.2.4)
87
- rspec (3.9.0)
88
- rspec-core (~> 3.9.0)
89
- rspec-expectations (~> 3.9.0)
90
- rspec-mocks (~> 3.9.0)
91
- rspec-core (3.9.2)
92
- rspec-support (~> 3.9.3)
93
- rspec-expectations (3.9.2)
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.9.0)
96
- rspec-mocks (3.9.1)
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.9.0)
99
- rspec-support (3.9.3)
100
- rubocop (0.88.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.1)
98
+ parser (>= 2.7.1.5)
103
99
  rainbow (>= 2.2.2, < 4.0)
104
- regexp_parser (>= 1.7)
100
+ regexp_parser (>= 1.8)
105
101
  rexml
106
- rubocop-ast (>= 0.1.0, < 1.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 (0.1.0)
110
- parser (>= 2.7.0.1)
111
- rubocop-performance (1.7.0)
112
- rubocop (>= 0.82.0)
113
- rubocop-rspec (1.42.0)
114
- rubocop (>= 0.87.0)
115
- ruby-progressbar (1.10.1)
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.17.1)
115
+ simplecov (0.20.0)
118
116
  docile (~> 1.1)
119
- json (>= 1.8, < 3)
120
- simplecov-html (~> 0.10.0)
121
- simplecov-html (0.10.2)
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
- thread_safe (0.3.6)
124
- tzinfo (1.2.7)
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.3.1)
125
+ zeitwerk (2.4.2)
128
126
 
129
127
  PLATFORMS
130
128
  ruby
@@ -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__) + '/**/*.rb'].sort.each { |file| require 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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shaped
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.3'
5
5
  end
@@ -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.3.0')
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.2
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: 2020-07-13 00:00:00.000000000 Z
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.3.0
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: []