bp3-activestorage 0.1.1 → 0.1.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: 5e5c67003411959eb9a46ed29f88d43805422aff300e11b26891f94642beadc8
4
- data.tar.gz: fe3712363cffc7ace5a83f6b18f4c5c6e1bba9fa2cfa0f21557519e204086866
3
+ metadata.gz: e24da76896eb05f7cdcffda9b08a15d9c452942d75d543619fd494ca4b8f9cf5
4
+ data.tar.gz: fdf98d4524d47ff8facbde9558d711fbd9bc9ac908c1b152202d15ecfc55991a
5
5
  SHA512:
6
- metadata.gz: 81d7eb9157e499bb9f82330c9c782c74cea00551390a704aafc85aa14b295c02dc31df244e9f46492ca80160d4a25afcdb789a4cca6de0fd3796048e1d41f7c4
7
- data.tar.gz: 2bf61b92f8374745e0b4f622b4fde047474b284ccb2ee567c06e10debe5e9600b386cfc5a6e0a8d09a368d40ce3a07eb7a30ee80824d3ad9082c34901aca0fda
6
+ metadata.gz: c4bf8762a887aaa7ce8c8ebdbdf117937d0521bf13415af434b75b4b30395da78ff0d51a74fb809de838f0c0e44f0f0ab48392db72a3a7d555d7678e5c1e336c
7
+ data.tar.gz: 8ed623ccc11c2340caa56765e60449ad178a1a0e5e297c3aa626b1a3bda483451f6eb7df78520fe63d8f9cc12e02f7e84a5f0067bea67697948767e45ee44829
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2024-11-08
4
+
5
+ - Update activestorage dependency to support Rails 7.2
6
+
7
+ ## [0.1.2] - 2024-11-08
8
+
9
+ - Make classes Ransackable
10
+ - Add .table_name_basis
11
+
3
12
  ## [0.1.1] - 2024-05-31
4
13
 
5
14
  - Tweaks and documentation
data/Gemfile.lock CHANGED
@@ -1,93 +1,96 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bp3-activestorage (0.1.1)
5
- activestorage (~> 7.1)
4
+ bp3-activestorage (0.1.3)
5
+ activestorage (>= 7.1.2, < 8)
6
6
  bp3-core (>= 0.1.0, < 2)
7
7
  paper_trail (~> 15.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (7.1.3)
13
- actionview (= 7.1.3)
14
- activesupport (= 7.1.3)
12
+ actionpack (7.2.2)
13
+ actionview (= 7.2.2)
14
+ activesupport (= 7.2.2)
15
15
  nokogiri (>= 1.8.5)
16
16
  racc
17
- rack (>= 2.2.4)
17
+ rack (>= 2.2.4, < 3.2)
18
18
  rack-session (>= 1.0.1)
19
19
  rack-test (>= 0.6.3)
20
20
  rails-dom-testing (~> 2.2)
21
21
  rails-html-sanitizer (~> 1.6)
22
- actionview (7.1.3)
23
- activesupport (= 7.1.3)
22
+ useragent (~> 0.16)
23
+ actionview (7.2.2)
24
+ activesupport (= 7.2.2)
24
25
  builder (~> 3.1)
25
26
  erubi (~> 1.11)
26
27
  rails-dom-testing (~> 2.2)
27
28
  rails-html-sanitizer (~> 1.6)
28
- activejob (7.1.3)
29
- activesupport (= 7.1.3)
29
+ activejob (7.2.2)
30
+ activesupport (= 7.2.2)
30
31
  globalid (>= 0.3.6)
31
- activemodel (7.1.3)
32
- activesupport (= 7.1.3)
33
- activerecord (7.1.3)
34
- activemodel (= 7.1.3)
35
- activesupport (= 7.1.3)
32
+ activemodel (7.2.2)
33
+ activesupport (= 7.2.2)
34
+ activerecord (7.2.2)
35
+ activemodel (= 7.2.2)
36
+ activesupport (= 7.2.2)
36
37
  timeout (>= 0.4.0)
37
- activestorage (7.1.3)
38
- actionpack (= 7.1.3)
39
- activejob (= 7.1.3)
40
- activerecord (= 7.1.3)
41
- activesupport (= 7.1.3)
38
+ activestorage (7.2.2)
39
+ actionpack (= 7.2.2)
40
+ activejob (= 7.2.2)
41
+ activerecord (= 7.2.2)
42
+ activesupport (= 7.2.2)
42
43
  marcel (~> 1.0)
43
- activesupport (7.1.3)
44
+ activesupport (7.2.2)
44
45
  base64
46
+ benchmark (>= 0.3)
45
47
  bigdecimal
46
- concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ concurrent-ruby (~> 1.0, >= 1.3.1)
47
49
  connection_pool (>= 2.2.5)
48
50
  drb
49
51
  i18n (>= 1.6, < 2)
52
+ logger (>= 1.4.2)
50
53
  minitest (>= 5.1)
51
- mutex_m
52
- tzinfo (~> 2.0)
54
+ securerandom (>= 0.3)
55
+ tzinfo (~> 2.0, >= 2.0.5)
53
56
  ast (2.4.2)
54
57
  base64 (0.2.0)
55
- bigdecimal (3.1.6)
56
- bp3-core (0.1.2)
58
+ benchmark (0.4.0)
59
+ bigdecimal (3.1.8)
60
+ bp3-core (0.1.4)
57
61
  actionview (>= 7.1.2, < 8)
58
62
  activesupport (>= 7.1.2, < 8)
59
- builder (3.2.4)
63
+ builder (3.3.0)
60
64
  byebug (11.1.3)
61
- concurrent-ruby (1.2.3)
65
+ concurrent-ruby (1.3.4)
62
66
  connection_pool (2.4.1)
63
67
  crass (1.0.6)
64
- diff-lcs (1.5.0)
65
- drb (2.2.0)
66
- ruby2_keywords
67
- erubi (1.12.0)
68
+ diff-lcs (1.5.1)
69
+ drb (2.2.1)
70
+ erubi (1.13.0)
68
71
  globalid (1.2.1)
69
72
  activesupport (>= 6.1)
70
- i18n (1.14.1)
73
+ i18n (1.14.6)
71
74
  concurrent-ruby (~> 1.0)
72
- json (2.7.1)
75
+ json (2.8.1)
73
76
  language_server-protocol (3.17.0.3)
74
- loofah (2.22.0)
77
+ logger (1.6.1)
78
+ loofah (2.23.1)
75
79
  crass (~> 1.0.2)
76
80
  nokogiri (>= 1.12.0)
77
- marcel (1.0.2)
78
- minitest (5.21.2)
79
- mutex_m (0.2.0)
80
- nokogiri (1.16.0-x86_64-darwin)
81
+ marcel (1.0.4)
82
+ minitest (5.25.1)
83
+ nokogiri (1.16.7-x86_64-darwin)
81
84
  racc (~> 1.4)
82
- paper_trail (15.1.0)
85
+ paper_trail (15.2.0)
83
86
  activerecord (>= 6.1)
84
87
  request_store (~> 1.4)
85
- parallel (1.24.0)
86
- parser (3.3.0.4)
88
+ parallel (1.26.3)
89
+ parser (3.3.6.0)
87
90
  ast (~> 2.4.1)
88
91
  racc
89
- racc (1.7.3)
90
- rack (3.0.8)
92
+ racc (1.8.1)
93
+ rack (3.1.8)
91
94
  rack-session (2.0.0)
92
95
  rack (>= 3.0.0)
93
96
  rack-test (2.1.0)
@@ -100,56 +103,59 @@ GEM
100
103
  loofah (~> 2.21)
101
104
  nokogiri (~> 1.14)
102
105
  rainbow (3.1.1)
103
- rake (13.1.0)
104
- regexp_parser (2.9.0)
105
- request_store (1.5.1)
106
+ rake (13.2.1)
107
+ regexp_parser (2.9.2)
108
+ request_store (1.7.0)
106
109
  rack (>= 1.4)
107
- rexml (3.2.6)
108
- rspec (3.12.0)
109
- rspec-core (~> 3.12.0)
110
- rspec-expectations (~> 3.12.0)
111
- rspec-mocks (~> 3.12.0)
112
- rspec-core (3.12.2)
113
- rspec-support (~> 3.12.0)
114
- rspec-expectations (3.12.3)
110
+ rspec (3.13.0)
111
+ rspec-core (~> 3.13.0)
112
+ rspec-expectations (~> 3.13.0)
113
+ rspec-mocks (~> 3.13.0)
114
+ rspec-core (3.13.2)
115
+ rspec-support (~> 3.13.0)
116
+ rspec-expectations (3.13.3)
115
117
  diff-lcs (>= 1.2.0, < 2.0)
116
- rspec-support (~> 3.12.0)
117
- rspec-mocks (3.12.6)
118
+ rspec-support (~> 3.13.0)
119
+ rspec-mocks (3.13.2)
118
120
  diff-lcs (>= 1.2.0, < 2.0)
119
- rspec-support (~> 3.12.0)
120
- rspec-support (3.12.1)
121
- rubocop (1.60.1)
121
+ rspec-support (~> 3.13.0)
122
+ rspec-support (3.13.1)
123
+ rubocop (1.68.0)
122
124
  json (~> 2.3)
123
125
  language_server-protocol (>= 3.17.0)
124
126
  parallel (~> 1.10)
125
127
  parser (>= 3.3.0.2)
126
128
  rainbow (>= 2.2.2, < 4.0)
127
- regexp_parser (>= 1.8, < 3.0)
128
- rexml (>= 3.2.5, < 4.0)
129
- rubocop-ast (>= 1.30.0, < 2.0)
129
+ regexp_parser (>= 2.4, < 3.0)
130
+ rubocop-ast (>= 1.32.2, < 2.0)
130
131
  ruby-progressbar (~> 1.7)
131
132
  unicode-display_width (>= 2.4.0, < 3.0)
132
- rubocop-ast (1.30.0)
133
- parser (>= 3.2.1.0)
134
- rubocop-capybara (2.20.0)
135
- rubocop (~> 1.41)
136
- rubocop-factory_bot (2.25.1)
133
+ rubocop-ast (1.34.1)
134
+ parser (>= 3.3.1.0)
135
+ rubocop-capybara (2.21.0)
137
136
  rubocop (~> 1.41)
137
+ rubocop-factory_bot (2.26.1)
138
+ rubocop (~> 1.61)
138
139
  rubocop-rake (0.6.0)
139
140
  rubocop (~> 1.0)
140
- rubocop-rspec (2.26.1)
141
+ rubocop-rspec (2.31.0)
141
142
  rubocop (~> 1.40)
142
143
  rubocop-capybara (~> 2.17)
143
144
  rubocop-factory_bot (~> 2.22)
145
+ rubocop-rspec_rails (~> 2.28)
146
+ rubocop-rspec_rails (2.29.1)
147
+ rubocop (~> 1.61)
144
148
  ruby-progressbar (1.13.0)
145
- ruby2_keywords (0.0.5)
146
- timeout (0.4.1)
149
+ securerandom (0.3.1)
150
+ timeout (0.4.2)
147
151
  tzinfo (2.0.6)
148
152
  concurrent-ruby (~> 1.0)
149
- unicode-display_width (2.5.0)
153
+ unicode-display_width (2.6.0)
154
+ useragent (0.16.10)
150
155
 
151
156
  PLATFORMS
152
157
  x86_64-darwin-22
158
+ x86_64-darwin-23
153
159
 
154
160
  DEPENDENCIES
155
161
  bp3-activestorage!
@@ -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 'activestorage', '~> 7.1'
35
- spec.add_dependency 'paper_trail', '~> 15.1'
34
+ spec.add_dependency 'activestorage', ['>= 7.1.2', '< 8']
36
35
  spec.add_dependency 'bp3-core', ['>= 0.1.0', '< 2']
36
+ spec.add_dependency 'paper_trail', '~> 15.1'
37
37
 
38
38
  spec.add_development_dependency 'byebug'
39
39
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -2,6 +2,7 @@
2
2
 
3
3
  # require 'rails/railtie'
4
4
 
5
+ # rubocop:disable Metrics/BlockLength
5
6
  module Bp3
6
7
  module Activestorage
7
8
  if defined?(Rails.env)
@@ -28,12 +29,17 @@ module Bp3
28
29
  alias site sites_site
29
30
  alias site= sites_site=
30
31
  belongs_to :tenant, optional: true
32
+
33
+ def self.table_name_basis
34
+ table_name.gsub(/\Apublic\./, '').singularize
35
+ end
31
36
  end
32
37
 
33
38
  class Blob
34
39
  include Bp3::Core::Rqid
35
40
  include Bp3::Core::Sqnr
36
41
  include Bp3::Core::Displayable
42
+ include Bp3::Core::Ransackable
37
43
 
38
44
  use_sqnr_for_ordering
39
45
  has_paper_trail
@@ -43,6 +49,10 @@ module Bp3
43
49
  alias site= sites_site=
44
50
  belongs_to :tenant, optional: true
45
51
 
52
+ def self.table_name_basis
53
+ table_name.gsub(/\Apublic\./, '').singularize
54
+ end
55
+
46
56
  private
47
57
 
48
58
  def version_filter_mask
@@ -53,6 +63,7 @@ module Bp3
53
63
  class VariantRecord
54
64
  include Bp3::Core::Rqid
55
65
  include Bp3::Core::Sqnr
66
+ include Bp3::Core::Ransackable
56
67
 
57
68
  use_sqnr_for_ordering
58
69
  has_paper_trail
@@ -61,6 +72,10 @@ module Bp3
61
72
  alias site sites_site
62
73
  alias site= sites_site=
63
74
  belongs_to :tenant, optional: true
75
+
76
+ def self.table_name_basis
77
+ table_name.gsub(/\Apublic\./, '').singularize
78
+ end
64
79
  end
65
80
 
66
81
  class BaseController
@@ -92,3 +107,4 @@ module Bp3
92
107
  end
93
108
  end
94
109
  end
110
+ # rubocop:enable Metrics/BlockLength
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bp3
4
4
  module Activestorage
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,43 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bp3-activestorage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wim den Braven
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-31 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '7.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
17
+ - - ">="
25
18
  - !ruby/object:Gem::Version
26
- version: '7.1'
27
- - !ruby/object:Gem::Dependency
28
- name: paper_trail
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
19
+ version: 7.1.2
20
+ - - "<"
32
21
  - !ruby/object:Gem::Version
33
- version: '15.1'
22
+ version: '8'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
27
+ - - ">="
39
28
  - !ruby/object:Gem::Version
40
- version: '15.1'
29
+ version: 7.1.2
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8'
41
33
  - !ruby/object:Gem::Dependency
42
34
  name: bp3-core
43
35
  requirement: !ruby/object:Gem::Requirement
@@ -58,6 +50,20 @@ dependencies:
58
50
  - - "<"
59
51
  - !ruby/object:Gem::Version
60
52
  version: '2'
53
+ - !ruby/object:Gem::Dependency
54
+ name: paper_trail
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '15.1'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '15.1'
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: byebug
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
194
  - !ruby/object:Gem::Version
189
195
  version: '0'
190
196
  requirements: []
191
- rubygems_version: 3.5.11
197
+ rubygems_version: 3.5.23
192
198
  signing_key:
193
199
  specification_version: 4
194
200
  summary: bp3-activestorage adapts activestorage for BP3 (persuavis/black_phoebe_3).