bp3-string 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ea07615a38dda2b4c9cb905a88a0fd402082bd288677f3ffbeb42cfe49a0ded
4
- data.tar.gz: '096cb470454f2f9bcfff18d0890de7df69274301bea6fcf9a6e81e08de96dae4'
3
+ metadata.gz: dd833aad78ba2625d97821802d7469f0b60cbdebaafef6c20aebd231839bfc91
4
+ data.tar.gz: 7ee598ade560ecda044b7c8dfe296f23c9ae85c61135c2b80ae061c54926c9d4
5
5
  SHA512:
6
- metadata.gz: ff5def22f298e31fb666b044ea126b065e83d00538fc3c094dbaa14d49685e98a10b91daf0c19377a35ccc008eec7b25908b7fab910ef6a8c94adaa2f851fd98
7
- data.tar.gz: b2615c56ee6801534215e336db7399af669e979873a2e697c33f9f5ed754fe9c44226bc22b6d4a1c7c3a1f28b3b7f5dc37393d676fe023f68a2c80a1988e4d0f
6
+ metadata.gz: 51e4b9ae4b020769534156a391a40d40a1520bf044add6e349ff67d8694dcc56b5280a02d809f70d7f91aad392223bdfcee7b58abf9852ab90d6bd7f488020b5
7
+ data.tar.gz: 748ab81d09669797611c47a198880dbfae54d414d54a07adcd0fb0d202ee0530f703bd8bd16146d66342b502f3afdfde92e2275c602e6db9b5c6e497fc1d06b3
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rake
3
3
  - rubocop-rspec
4
4
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2026-01-12
4
+
5
+ - Update dependencies to rails 8.0.3
6
+ - Use to_prepare to reset cached hashes
7
+ - Update gems
8
+
3
9
  ## [0.1.3] - 2024-11-18
4
10
 
5
11
  - Relax gem constraints
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bp3-string (0.1.3)
5
- activerecord (>= 7.1.2)
6
- activesupport (>= 7.1.2)
7
- railties (>= 7.1.2)
4
+ bp3-string (0.2.0)
5
+ activerecord (>= 8.0.3)
6
+ activesupport (~> 8.1)
7
+ railties (~> 8.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (8.0.0)
13
- actionview (= 8.0.0)
14
- activesupport (= 8.0.0)
12
+ actionpack (8.1.2)
13
+ actionview (= 8.1.2)
14
+ activesupport (= 8.1.2)
15
15
  nokogiri (>= 1.8.5)
16
16
  rack (>= 2.2.4)
17
17
  rack-session (>= 1.0.1)
@@ -19,138 +19,159 @@ GEM
19
19
  rails-dom-testing (~> 2.2)
20
20
  rails-html-sanitizer (~> 1.6)
21
21
  useragent (~> 0.16)
22
- actionview (8.0.0)
23
- activesupport (= 8.0.0)
22
+ actionview (8.1.2)
23
+ activesupport (= 8.1.2)
24
24
  builder (~> 3.1)
25
25
  erubi (~> 1.11)
26
26
  rails-dom-testing (~> 2.2)
27
27
  rails-html-sanitizer (~> 1.6)
28
- activemodel (8.0.0)
29
- activesupport (= 8.0.0)
30
- activerecord (8.0.0)
31
- activemodel (= 8.0.0)
32
- activesupport (= 8.0.0)
28
+ activemodel (8.1.2)
29
+ activesupport (= 8.1.2)
30
+ activerecord (8.1.2)
31
+ activemodel (= 8.1.2)
32
+ activesupport (= 8.1.2)
33
33
  timeout (>= 0.4.0)
34
- activesupport (8.0.0)
34
+ activesupport (8.1.2)
35
35
  base64
36
- benchmark (>= 0.3)
37
36
  bigdecimal
38
37
  concurrent-ruby (~> 1.0, >= 1.3.1)
39
38
  connection_pool (>= 2.2.5)
40
39
  drb
41
40
  i18n (>= 1.6, < 2)
41
+ json
42
42
  logger (>= 1.4.2)
43
43
  minitest (>= 5.1)
44
44
  securerandom (>= 0.3)
45
45
  tzinfo (~> 2.0, >= 2.0.5)
46
46
  uri (>= 0.13.1)
47
- ast (2.4.2)
48
- base64 (0.2.0)
49
- benchmark (0.4.0)
50
- bigdecimal (3.1.8)
47
+ ast (2.4.3)
48
+ base64 (0.3.0)
49
+ bigdecimal (4.0.1)
51
50
  builder (3.3.0)
52
- byebug (11.1.3)
53
- concurrent-ruby (1.3.4)
54
- connection_pool (2.4.1)
51
+ byebug (12.0.0)
52
+ concurrent-ruby (1.3.6)
53
+ connection_pool (3.0.2)
55
54
  crass (1.0.6)
56
- diff-lcs (1.5.1)
57
- drb (2.2.1)
58
- erubi (1.13.0)
59
- i18n (1.14.6)
55
+ date (3.5.1)
56
+ diff-lcs (1.6.2)
57
+ drb (2.2.3)
58
+ erb (6.0.1)
59
+ erubi (1.13.1)
60
+ i18n (1.14.8)
60
61
  concurrent-ruby (~> 1.0)
61
- io-console (0.7.2)
62
- irb (1.14.1)
62
+ io-console (0.8.2)
63
+ irb (1.16.0)
64
+ pp (>= 0.6.0)
63
65
  rdoc (>= 4.0.0)
64
66
  reline (>= 0.4.2)
65
- json (2.8.2)
66
- language_server-protocol (3.17.0.3)
67
- logger (1.6.1)
68
- loofah (2.23.1)
67
+ json (2.18.0)
68
+ language_server-protocol (3.17.0.5)
69
+ lint_roller (1.1.0)
70
+ logger (1.7.0)
71
+ loofah (2.25.0)
69
72
  crass (~> 1.0.2)
70
73
  nokogiri (>= 1.12.0)
71
- minitest (5.25.1)
72
- nokogiri (1.16.7-x86_64-darwin)
74
+ minitest (6.0.1)
75
+ prism (~> 1.5)
76
+ nokogiri (1.19.0-x86_64-darwin)
73
77
  racc (~> 1.4)
74
- parallel (1.26.3)
75
- parser (3.3.6.0)
78
+ parallel (1.27.0)
79
+ parser (3.3.10.0)
76
80
  ast (~> 2.4.1)
77
81
  racc
78
- psych (5.2.0)
82
+ pp (0.6.3)
83
+ prettyprint
84
+ prettyprint (0.2.0)
85
+ prism (1.7.0)
86
+ psych (5.3.1)
87
+ date
79
88
  stringio
80
89
  racc (1.8.1)
81
- rack (3.1.8)
82
- rack-session (2.0.0)
90
+ rack (3.2.4)
91
+ rack-session (2.1.1)
92
+ base64 (>= 0.1.0)
83
93
  rack (>= 3.0.0)
84
- rack-test (2.1.0)
94
+ rack-test (2.2.0)
85
95
  rack (>= 1.3)
86
- rackup (2.2.1)
96
+ rackup (2.3.1)
87
97
  rack (>= 3)
88
- rails-dom-testing (2.2.0)
98
+ rails-dom-testing (2.3.0)
89
99
  activesupport (>= 5.0.0)
90
100
  minitest
91
101
  nokogiri (>= 1.6)
92
- rails-html-sanitizer (1.6.0)
102
+ rails-html-sanitizer (1.6.2)
93
103
  loofah (~> 2.21)
94
- nokogiri (~> 1.14)
95
- railties (8.0.0)
96
- actionpack (= 8.0.0)
97
- activesupport (= 8.0.0)
104
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
105
+ railties (8.1.2)
106
+ actionpack (= 8.1.2)
107
+ activesupport (= 8.1.2)
98
108
  irb (~> 1.13)
99
109
  rackup (>= 1.0.0)
100
110
  rake (>= 12.2)
101
111
  thor (~> 1.0, >= 1.2.2)
112
+ tsort (>= 0.2)
102
113
  zeitwerk (~> 2.6)
103
114
  rainbow (3.1.1)
104
- rake (13.2.1)
105
- rdoc (6.7.0)
115
+ rake (13.3.1)
116
+ rdoc (7.0.3)
117
+ erb
106
118
  psych (>= 4.0.0)
107
- regexp_parser (2.9.2)
108
- reline (0.5.11)
119
+ tsort
120
+ regexp_parser (2.11.3)
121
+ reline (0.6.3)
109
122
  io-console (~> 0.5)
110
- rspec (3.13.0)
123
+ rspec (3.13.2)
111
124
  rspec-core (~> 3.13.0)
112
125
  rspec-expectations (~> 3.13.0)
113
126
  rspec-mocks (~> 3.13.0)
114
- rspec-core (3.13.2)
127
+ rspec-core (3.13.6)
115
128
  rspec-support (~> 3.13.0)
116
- rspec-expectations (3.13.3)
129
+ rspec-expectations (3.13.5)
117
130
  diff-lcs (>= 1.2.0, < 2.0)
118
131
  rspec-support (~> 3.13.0)
119
- rspec-mocks (3.13.2)
132
+ rspec-mocks (3.13.7)
120
133
  diff-lcs (>= 1.2.0, < 2.0)
121
134
  rspec-support (~> 3.13.0)
122
- rspec-support (3.13.1)
123
- rubocop (1.68.0)
135
+ rspec-support (3.13.6)
136
+ rubocop (1.82.1)
124
137
  json (~> 2.3)
125
- language_server-protocol (>= 3.17.0)
138
+ language_server-protocol (~> 3.17.0.2)
139
+ lint_roller (~> 1.1.0)
126
140
  parallel (~> 1.10)
127
141
  parser (>= 3.3.0.2)
128
142
  rainbow (>= 2.2.2, < 4.0)
129
- regexp_parser (>= 2.4, < 3.0)
130
- rubocop-ast (>= 1.32.2, < 2.0)
143
+ regexp_parser (>= 2.9.3, < 3.0)
144
+ rubocop-ast (>= 1.48.0, < 2.0)
131
145
  ruby-progressbar (~> 1.7)
132
- unicode-display_width (>= 2.4.0, < 3.0)
133
- rubocop-ast (1.36.1)
134
- parser (>= 3.3.1.0)
135
- rubocop-rake (0.6.0)
136
- rubocop (~> 1.0)
137
- rubocop-rspec (3.2.0)
138
- rubocop (~> 1.61)
146
+ unicode-display_width (>= 2.4.0, < 4.0)
147
+ rubocop-ast (1.49.0)
148
+ parser (>= 3.3.7.2)
149
+ prism (~> 1.7)
150
+ rubocop-rake (0.7.1)
151
+ lint_roller (~> 1.1)
152
+ rubocop (>= 1.72.1)
153
+ rubocop-rspec (3.9.0)
154
+ lint_roller (~> 1.1)
155
+ rubocop (~> 1.81)
139
156
  ruby-progressbar (1.13.0)
140
- securerandom (0.3.2)
141
- stringio (3.1.2)
142
- thor (1.3.2)
143
- timeout (0.4.2)
157
+ securerandom (0.4.1)
158
+ stringio (3.2.0)
159
+ thor (1.5.0)
160
+ timeout (0.6.0)
161
+ tsort (0.2.0)
144
162
  tzinfo (2.0.6)
145
163
  concurrent-ruby (~> 1.0)
146
- unicode-display_width (2.6.0)
147
- uri (1.0.2)
148
- useragent (0.16.10)
149
- zeitwerk (2.7.1)
164
+ unicode-display_width (3.2.0)
165
+ unicode-emoji (~> 4.1)
166
+ unicode-emoji (4.2.0)
167
+ uri (1.1.1)
168
+ useragent (0.16.11)
169
+ zeitwerk (2.7.4)
150
170
 
151
171
  PLATFORMS
152
172
  x86_64-darwin-22
153
173
  x86_64-darwin-23
174
+ x86_64-darwin-24
154
175
 
155
176
  DEPENDENCIES
156
177
  bp3-string!
@@ -162,4 +183,4 @@ DEPENDENCIES
162
183
  rubocop-rspec (>= 2.25)
163
184
 
164
185
  BUNDLED WITH
165
- 2.5.23
186
+ 2.7.2
data/bp3-string.gemspec CHANGED
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_dependency 'activerecord', '>= 7.1.2'
35
- spec.add_dependency 'activesupport', '>= 7.1.2'
36
- spec.add_dependency 'railties', '>= 7.1.2'
34
+ spec.add_dependency 'activerecord', '>= 8.0.3'
35
+ spec.add_dependency 'activesupport', '~> 8.1'
36
+ spec.add_dependency 'railties', '~> 8.1'
37
37
 
38
38
  spec.add_development_dependency 'byebug'
39
39
  spec.add_development_dependency 'rake', '>= 13.0'
@@ -12,7 +12,7 @@ module Bp3
12
12
  end
13
13
 
14
14
  def self.reset_cached_hash
15
- @cached_hash = nil
15
+ raise(NotImplementedError, 'Must implement in subclass')
16
16
  end
17
17
 
18
18
  def self.build_hash
@@ -12,6 +12,11 @@ module Bp3
12
12
  include Bp3::String::Controllerize
13
13
  end
14
14
  end
15
+
16
+ app.config.to_prepare do
17
+ Bp3::String::TableModelMap.reset_cached_hash if defined?(Bp3::String::TableModelMap)
18
+ Bp3::String::TableControllerMap.reset_cached_hash if defined?(Bp3::String::TableControllerMap)
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -18,6 +18,12 @@ module Bp3
18
18
  end
19
19
  end
20
20
 
21
+ def self.reset_cached_hash
22
+ CACHED_HASH_MUTEX.synchronize do
23
+ @cached_hash = nil
24
+ end
25
+ end
26
+
21
27
  def build_hash
22
28
  @encoding = 'string'.encoding # TODO: not sure why encoding sometimes doesn't match
23
29
  @ar_hash = build_hash_from_active_record
@@ -20,6 +20,12 @@ module Bp3
20
20
  end
21
21
  end
22
22
 
23
+ def self.reset_cached_hash
24
+ CACHED_HASH_MUTEX.synchronize do
25
+ @cached_hash = nil
26
+ end
27
+ end
28
+
23
29
  def build_hash
24
30
  encoding = 'string'.encoding # TODO: not sure why encoding sometimes doesn't match
25
31
  hash = {}
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bp3
4
4
  module String
5
- VERSION = '0.1.3'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bp3-string
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wim den Braven
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -16,42 +15,42 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 7.1.2
18
+ version: 8.0.3
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: 7.1.2
25
+ version: 8.0.3
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: activesupport
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: 7.1.2
32
+ version: '8.1'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - ">="
37
+ - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: 7.1.2
39
+ version: '8.1'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: railties
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ">="
44
+ - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: 7.1.2
46
+ version: '8.1'
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - ">="
51
+ - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: 7.1.2
53
+ version: '8.1'
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: byebug
57
56
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +135,6 @@ dependencies:
136
135
  - - ">="
137
136
  - !ruby/object:Gem::Version
138
137
  version: '2.25'
139
- description:
140
138
  email:
141
139
  - wimdenbraven@persuavis.com
142
140
  executables: []
@@ -174,7 +172,6 @@ metadata:
174
172
  source_code_uri: https://github.com/persuavis/bp3-string
175
173
  changelog_uri: https://github.com/persuavis/bp3-string/blob/main/CHANGELOG.md
176
174
  rubygems_mfa_required: 'true'
177
- post_install_message:
178
175
  rdoc_options: []
179
176
  require_paths:
180
177
  - lib
@@ -189,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
186
  - !ruby/object:Gem::Version
190
187
  version: '0'
191
188
  requirements: []
192
- rubygems_version: 3.5.23
193
- signing_key:
189
+ rubygems_version: 3.6.9
194
190
  specification_version: 4
195
191
  summary: bp3-string adapts the String class for BP3 (persuavis/black_phoebe_3).
196
192
  test_files: []