rbs_active_hash 1.2.0 → 1.2.2

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: f12b41b5d7f8ba64d20e27c4f7f21e677cd0ee2fa8f08db13ec5daef40c9b55a
4
- data.tar.gz: 1a21add9c8606ac60158813d275a2e702353e7d70b61019228f1b1ed152d81f9
3
+ metadata.gz: 7cebfa0accc1277b5ec246b7aa963deef65a0c49722f194c0e1dc4125d4b9c08
4
+ data.tar.gz: e15eef33012442f0bbe5e64552ac1b283d2fbd8bc814bd328bc60ebf5d69b6dd
5
5
  SHA512:
6
- metadata.gz: 6727269c9ffe5664c7c6a342eeafb0f715ea177929e8e82c5d76ea86593c3124e07074d987ea4755fc47d041319ef81892df9a71bf16b1af505edd42357b9602
7
- data.tar.gz: c9e7452a80261991c3d7684c41c3dc906a7b83943fa5f2189f0af9b48bd420465aa0ab7d4bbdd89fc5225605a67ec5342341796ee1b3c6b860d87e55a53b2d1d
6
+ metadata.gz: 294b5c3741aa02f777ba1d487f27bf51776705daaa896b204005df904b1c5ac240dd3952279189382a5c042bfd784e9d532153e550cca6fa4d7aac22e554499d
7
+ data.tar.gz: bef9cbbf9fdb93b5abb989782baa05d791b3e048b6b328046ca0158fdf78efc1a62d2e1fcbd4e6534168a16cd3bfc27aca2adc3944afe5ccfe6f71722296bd5b
data/.rubocop.yml CHANGED
@@ -15,6 +15,9 @@ Style/StringLiteralsInInterpolation:
15
15
  Layout/LineLength:
16
16
  Max: 120
17
17
 
18
+ Metrics/AbcSize:
19
+ Max: 20
20
+
18
21
  Metrics/BlockLength:
19
22
  Exclude:
20
23
  - spec/**/*_spec.rb
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
9
 
10
- gem "rubocop", "~> 1.55"
10
+ gem "rubocop", "~> 1.56"
11
11
 
12
12
  group :test do
13
13
  gem "activerecord"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs_active_hash (1.2.0)
4
+ rbs_active_hash (1.2.2)
5
5
  active_hash
6
6
  rbs
7
7
  rbs_rails
@@ -9,32 +9,33 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (7.0.6)
13
- actionview (= 7.0.6)
14
- activesupport (= 7.0.6)
12
+ actionpack (7.0.7)
13
+ actionview (= 7.0.7)
14
+ activesupport (= 7.0.7)
15
15
  rack (~> 2.0, >= 2.2.4)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (7.0.6)
20
- activesupport (= 7.0.6)
19
+ actionview (7.0.7)
20
+ activesupport (= 7.0.7)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
25
  active_hash (3.2.0)
26
26
  activesupport (>= 5.0.0)
27
- activemodel (7.0.6)
28
- activesupport (= 7.0.6)
29
- activerecord (7.0.6)
30
- activemodel (= 7.0.6)
31
- activesupport (= 7.0.6)
32
- activesupport (7.0.6)
27
+ activemodel (7.0.7)
28
+ activesupport (= 7.0.7)
29
+ activerecord (7.0.7)
30
+ activemodel (= 7.0.7)
31
+ activesupport (= 7.0.7)
32
+ activesupport (7.0.7)
33
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
34
34
  i18n (>= 1.6, < 2)
35
35
  minitest (>= 5.1)
36
36
  tzinfo (~> 2.0)
37
37
  ast (2.4.2)
38
+ base64 (0.1.1)
38
39
  builder (3.2.4)
39
40
  coderay (1.1.3)
40
41
  concurrent-ruby (1.2.2)
@@ -57,9 +58,9 @@ GEM
57
58
  nokogiri (>= 1.12.0)
58
59
  method_source (1.0.0)
59
60
  minitest (5.19.0)
60
- nokogiri (1.15.2-x86_64-darwin)
61
+ nokogiri (1.15.4-x86_64-darwin)
61
62
  racc (~> 1.4)
62
- nokogiri (1.15.2-x86_64-linux)
63
+ nokogiri (1.15.4-x86_64-linux)
63
64
  racc (~> 1.4)
64
65
  parallel (1.23.0)
65
66
  parser (3.2.2.3)
@@ -69,19 +70,19 @@ GEM
69
70
  coderay (~> 1.1)
70
71
  method_source (~> 1.0)
71
72
  racc (1.7.1)
72
- rack (2.2.7)
73
+ rack (2.2.8)
73
74
  rack-test (2.1.0)
74
75
  rack (>= 1.3)
75
- rails-dom-testing (2.1.1)
76
+ rails-dom-testing (2.2.0)
76
77
  activesupport (>= 5.0.0)
77
78
  minitest
78
79
  nokogiri (>= 1.6)
79
80
  rails-html-sanitizer (1.6.0)
80
81
  loofah (~> 2.21)
81
82
  nokogiri (~> 1.14)
82
- railties (7.0.6)
83
- actionpack (= 7.0.6)
84
- activesupport (= 7.0.6)
83
+ railties (7.0.7)
84
+ actionpack (= 7.0.7)
85
+ activesupport (= 7.0.7)
85
86
  method_source
86
87
  rake (>= 12.2)
87
88
  thor (~> 1.0)
@@ -113,7 +114,8 @@ GEM
113
114
  diff-lcs (>= 1.2.0, < 2.0)
114
115
  rspec-support (~> 3.12.0)
115
116
  rspec-support (3.12.0)
116
- rubocop (1.55.1)
117
+ rubocop (1.56.0)
118
+ base64 (~> 0.1.1)
117
119
  json (~> 2.3)
118
120
  language_server-protocol (>= 3.17.0)
119
121
  parallel (~> 1.10)
@@ -128,7 +130,7 @@ GEM
128
130
  parser (>= 3.2.1.0)
129
131
  ruby-progressbar (1.13.0)
130
132
  securerandom (0.2.2)
131
- steep (1.5.2)
133
+ steep (1.5.3)
132
134
  activesupport (>= 5.1)
133
135
  concurrent-ruby (>= 1.1.10)
134
136
  csv (>= 3.0.9)
@@ -150,7 +152,7 @@ GEM
150
152
  tzinfo (2.0.6)
151
153
  concurrent-ruby (~> 1.0)
152
154
  unicode-display_width (2.4.2)
153
- zeitwerk (2.6.8)
155
+ zeitwerk (2.6.11)
154
156
 
155
157
  PLATFORMS
156
158
  x86_64-darwin-19
@@ -164,7 +166,7 @@ DEPENDENCIES
164
166
  rbs_active_hash!
165
167
  rspec
166
168
  rspec-daemon
167
- rubocop (~> 1.55)
169
+ rubocop (~> 1.56)
168
170
  steep
169
171
 
170
172
  BUNDLED WITH
data/README.md CHANGED
@@ -7,7 +7,7 @@ rbs_active_hash is a generator for [ActiveHash](https://github.com/active-hash/a
7
7
  Add a new entry to your Gemfile and run `bundle install`:
8
8
 
9
9
  group :development do
10
- gem 'rbs_active_hash'
10
+ gem 'rbs_active_hash', require: false
11
11
  end
12
12
 
13
13
  After the installation, please run rake task generator:
@@ -79,7 +79,7 @@ module RbsActiveHash
79
79
  include ActiveHash::Enum
80
80
  extend ActiveHash::Enum::Methods
81
81
 
82
- #{constants.map { |c| "#{c}: instance" }.join("\n")}
82
+ #{constants.map { |c| "#{c}: #{klass_name}" }.join("\n")}
83
83
  RBS
84
84
  end
85
85
 
@@ -98,7 +98,7 @@ module RbsActiveHash
98
98
  end
99
99
  end
100
100
 
101
- def association_decls # rubocop:disable Metrics/AbcSize
101
+ def association_decls
102
102
  return unless klass.ancestors.include? ::ActiveHash::Associations
103
103
 
104
104
  path, = Object.const_source_location(klass_name)
@@ -3,7 +3,6 @@
3
3
  require "pathname"
4
4
  require "rake"
5
5
  require "rake/tasklib"
6
- require "rbs_active_hash"
7
6
 
8
7
  module RbsActiveHash
9
8
  class RakeTask < Rake::TaskLib
@@ -40,6 +39,8 @@ module RbsActiveHash
40
39
  def define_generate_task
41
40
  desc "Generate RBS files for ActiveHash models"
42
41
  task("#{name}:generate": :environment) do
42
+ require "rbs_active_hash" # load RbsActiveHash lazily
43
+
43
44
  Rails.application.eager_load!
44
45
 
45
46
  ::ActiveHash::Base.descendants.each do |klass|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsActiveHash
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.2"
5
5
  end
@@ -2,7 +2,7 @@
2
2
  sources:
3
3
  - type: git
4
4
  name: ruby/gem_rbs_collection
5
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
5
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
6
6
  remote: https://github.com/ruby/gem_rbs_collection.git
7
7
  repo_dir: gems
8
8
  path: ".gem_rbs_collection"
@@ -16,7 +16,7 @@ gems:
16
16
  source:
17
17
  type: git
18
18
  name: ruby/gem_rbs_collection
19
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
19
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
20
20
  remote: https://github.com/ruby/gem_rbs_collection.git
21
21
  repo_dir: gems
22
22
  - name: actionview
@@ -24,7 +24,7 @@ gems:
24
24
  source:
25
25
  type: git
26
26
  name: ruby/gem_rbs_collection
27
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
27
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
28
28
  remote: https://github.com/ruby/gem_rbs_collection.git
29
29
  repo_dir: gems
30
30
  - name: active_hash
@@ -32,7 +32,7 @@ gems:
32
32
  source:
33
33
  type: git
34
34
  name: ruby/gem_rbs_collection
35
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
35
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
36
36
  remote: https://github.com/ruby/gem_rbs_collection.git
37
37
  repo_dir: gems
38
38
  - name: activemodel
@@ -40,7 +40,7 @@ gems:
40
40
  source:
41
41
  type: git
42
42
  name: ruby/gem_rbs_collection
43
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
43
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
44
44
  remote: https://github.com/ruby/gem_rbs_collection.git
45
45
  repo_dir: gems
46
46
  - name: activerecord
@@ -48,7 +48,7 @@ gems:
48
48
  source:
49
49
  type: git
50
50
  name: ruby/gem_rbs_collection
51
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
51
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
52
52
  remote: https://github.com/ruby/gem_rbs_collection.git
53
53
  repo_dir: gems
54
54
  - name: activesupport
@@ -56,7 +56,7 @@ gems:
56
56
  source:
57
57
  type: git
58
58
  name: ruby/gem_rbs_collection
59
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
59
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
60
60
  remote: https://github.com/ruby/gem_rbs_collection.git
61
61
  repo_dir: gems
62
62
  - name: ast
@@ -64,9 +64,13 @@ gems:
64
64
  source:
65
65
  type: git
66
66
  name: ruby/gem_rbs_collection
67
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
67
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
68
68
  remote: https://github.com/ruby/gem_rbs_collection.git
69
69
  repo_dir: gems
70
+ - name: base64
71
+ version: '0'
72
+ source:
73
+ type: stdlib
70
74
  - name: cgi
71
75
  version: '0'
72
76
  source:
@@ -76,7 +80,7 @@ gems:
76
80
  source:
77
81
  type: git
78
82
  name: ruby/gem_rbs_collection
79
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
83
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
80
84
  remote: https://github.com/ruby/gem_rbs_collection.git
81
85
  repo_dir: gems
82
86
  - name: date
@@ -88,7 +92,7 @@ gems:
88
92
  source:
89
93
  type: git
90
94
  name: ruby/gem_rbs_collection
91
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
95
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
92
96
  remote: https://github.com/ruby/gem_rbs_collection.git
93
97
  repo_dir: gems
94
98
  - name: json
@@ -116,7 +120,7 @@ gems:
116
120
  source:
117
121
  type: git
118
122
  name: ruby/gem_rbs_collection
119
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
123
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
120
124
  remote: https://github.com/ruby/gem_rbs_collection.git
121
125
  repo_dir: gems
122
126
  - name: optparse
@@ -128,7 +132,7 @@ gems:
128
132
  source:
129
133
  type: git
130
134
  name: ruby/gem_rbs_collection
131
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
135
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
132
136
  remote: https://github.com/ruby/gem_rbs_collection.git
133
137
  repo_dir: gems
134
138
  - name: pathname
@@ -140,7 +144,7 @@ gems:
140
144
  source:
141
145
  type: git
142
146
  name: ruby/gem_rbs_collection
143
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
147
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
144
148
  remote: https://github.com/ruby/gem_rbs_collection.git
145
149
  repo_dir: gems
146
150
  - name: rails-dom-testing
@@ -148,7 +152,7 @@ gems:
148
152
  source:
149
153
  type: git
150
154
  name: ruby/gem_rbs_collection
151
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
155
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
152
156
  remote: https://github.com/ruby/gem_rbs_collection.git
153
157
  repo_dir: gems
154
158
  - name: railties
@@ -156,7 +160,7 @@ gems:
156
160
  source:
157
161
  type: git
158
162
  name: ruby/gem_rbs_collection
159
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
163
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
160
164
  remote: https://github.com/ruby/gem_rbs_collection.git
161
165
  repo_dir: gems
162
166
  - name: rainbow
@@ -164,7 +168,7 @@ gems:
164
168
  source:
165
169
  type: git
166
170
  name: ruby/gem_rbs_collection
167
- revision: 965029a810c265f39b2b85f8c0edc160e5275e3d
171
+ revision: a4c633634493ab7ae73219022f56acff56ab69af
168
172
  remote: https://github.com/ruby/gem_rbs_collection.git
169
173
  repo_dir: gems
170
174
  - name: rbs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs_active_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi KOMIYA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_hash