bp3-action_dispatch 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 +4 -4
- data/.rubocop.yml +0 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +49 -55
- data/Rakefile +4 -3
- data/bp3-action_dispatch.gemspec +8 -8
- data/lib/bp3/action_dispatch/request_site.rb +3 -1
- data/lib/bp3/action_dispatch/version.rb +1 -1
- metadata +13 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40a3514837d758199e64ffcca4e182a1d92857417d4080726e5a022a3a25c74
|
4
|
+
data.tar.gz: 518255920737b9e273bfb050d592823b9f5be04703e5ae352849bbdde48c9471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68488d8c4cd841e895a49934dfdb9e0deca496441f75f7108963f741faff2877ccf2599d91836f74ed2a69cc6843ac60c9f2a4fe6c2acdc70af6d6a1ac6f371c
|
7
|
+
data.tar.gz: f8462b77b3da8adbba1d36e751fe081e6ab53c3b7f8314e4fc9d654c581509bf57e0b02850b0114cdf591f5cd08febe8da67ee562350bbb9bc945eec95ef07ae
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.3] - 2024-11-18
|
4
|
+
|
5
|
+
- Use ruby 3.3.5 and relax gem constraints
|
6
|
+
|
7
|
+
## [0.1.2] - 2024-06-27
|
8
|
+
|
9
|
+
- Undo making site_class configurable, as it causes problems with
|
10
|
+
class reloading
|
11
|
+
|
3
12
|
## [0.1.1] - 2024-05-30
|
4
13
|
|
5
14
|
- Tweaks and documentation
|
data/Gemfile.lock
CHANGED
@@ -1,68 +1,72 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bp3-action_dispatch (0.1.
|
5
|
-
actionpack (>= 7.1.2
|
6
|
-
activesupport (>= 7.1.2
|
7
|
-
i18n (>= 1.8.11
|
4
|
+
bp3-action_dispatch (0.1.3)
|
5
|
+
actionpack (>= 7.1.2)
|
6
|
+
activesupport (>= 7.1.2)
|
7
|
+
i18n (>= 1.8.11)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionpack (
|
13
|
-
actionview (=
|
14
|
-
activesupport (=
|
12
|
+
actionpack (8.0.0)
|
13
|
+
actionview (= 8.0.0)
|
14
|
+
activesupport (= 8.0.0)
|
15
15
|
nokogiri (>= 1.8.5)
|
16
|
-
racc
|
17
16
|
rack (>= 2.2.4)
|
18
17
|
rack-session (>= 1.0.1)
|
19
18
|
rack-test (>= 0.6.3)
|
20
19
|
rails-dom-testing (~> 2.2)
|
21
20
|
rails-html-sanitizer (~> 1.6)
|
22
|
-
|
23
|
-
|
21
|
+
useragent (~> 0.16)
|
22
|
+
actionview (8.0.0)
|
23
|
+
activesupport (= 8.0.0)
|
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
|
-
activesupport (
|
28
|
+
activesupport (8.0.0)
|
29
29
|
base64
|
30
|
+
benchmark (>= 0.3)
|
30
31
|
bigdecimal
|
31
|
-
concurrent-ruby (~> 1.0, >= 1.
|
32
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
32
33
|
connection_pool (>= 2.2.5)
|
33
34
|
drb
|
34
35
|
i18n (>= 1.6, < 2)
|
36
|
+
logger (>= 1.4.2)
|
35
37
|
minitest (>= 5.1)
|
36
|
-
|
37
|
-
tzinfo (~> 2.0)
|
38
|
+
securerandom (>= 0.3)
|
39
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
40
|
+
uri (>= 0.13.1)
|
38
41
|
ast (2.4.2)
|
39
42
|
base64 (0.2.0)
|
43
|
+
benchmark (0.4.0)
|
40
44
|
bigdecimal (3.1.8)
|
41
|
-
builder (3.
|
45
|
+
builder (3.3.0)
|
42
46
|
byebug (11.1.3)
|
43
|
-
concurrent-ruby (1.3.
|
47
|
+
concurrent-ruby (1.3.4)
|
44
48
|
connection_pool (2.4.1)
|
45
49
|
crass (1.0.6)
|
46
50
|
diff-lcs (1.5.1)
|
47
51
|
drb (2.2.1)
|
48
|
-
erubi (1.
|
49
|
-
i18n (1.14.
|
52
|
+
erubi (1.13.0)
|
53
|
+
i18n (1.14.6)
|
50
54
|
concurrent-ruby (~> 1.0)
|
51
|
-
json (2.
|
55
|
+
json (2.8.2)
|
52
56
|
language_server-protocol (3.17.0.3)
|
53
|
-
|
57
|
+
logger (1.6.1)
|
58
|
+
loofah (2.23.1)
|
54
59
|
crass (~> 1.0.2)
|
55
60
|
nokogiri (>= 1.12.0)
|
56
|
-
minitest (5.
|
57
|
-
|
58
|
-
nokogiri (1.16.5-x86_64-darwin)
|
61
|
+
minitest (5.25.1)
|
62
|
+
nokogiri (1.16.7-x86_64-darwin)
|
59
63
|
racc (~> 1.4)
|
60
|
-
parallel (1.
|
61
|
-
parser (3.3.
|
64
|
+
parallel (1.26.3)
|
65
|
+
parser (3.3.6.0)
|
62
66
|
ast (~> 2.4.1)
|
63
67
|
racc
|
64
|
-
racc (1.8.
|
65
|
-
rack (3.
|
68
|
+
racc (1.8.1)
|
69
|
+
rack (3.1.8)
|
66
70
|
rack-session (2.0.0)
|
67
71
|
rack (>= 3.0.0)
|
68
72
|
rack-test (2.1.0)
|
@@ -77,52 +81,42 @@ GEM
|
|
77
81
|
rainbow (3.1.1)
|
78
82
|
rake (13.2.1)
|
79
83
|
regexp_parser (2.9.2)
|
80
|
-
rexml (3.2.8)
|
81
|
-
strscan (>= 3.0.9)
|
82
84
|
rspec (3.13.0)
|
83
85
|
rspec-core (~> 3.13.0)
|
84
86
|
rspec-expectations (~> 3.13.0)
|
85
87
|
rspec-mocks (~> 3.13.0)
|
86
|
-
rspec-core (3.13.
|
88
|
+
rspec-core (3.13.2)
|
87
89
|
rspec-support (~> 3.13.0)
|
88
|
-
rspec-expectations (3.13.
|
90
|
+
rspec-expectations (3.13.3)
|
89
91
|
diff-lcs (>= 1.2.0, < 2.0)
|
90
92
|
rspec-support (~> 3.13.0)
|
91
|
-
rspec-mocks (3.13.
|
93
|
+
rspec-mocks (3.13.2)
|
92
94
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
95
|
rspec-support (~> 3.13.0)
|
94
96
|
rspec-support (3.13.1)
|
95
|
-
rubocop (1.
|
97
|
+
rubocop (1.68.0)
|
96
98
|
json (~> 2.3)
|
97
99
|
language_server-protocol (>= 3.17.0)
|
98
100
|
parallel (~> 1.10)
|
99
101
|
parser (>= 3.3.0.2)
|
100
102
|
rainbow (>= 2.2.2, < 4.0)
|
101
|
-
regexp_parser (>=
|
102
|
-
|
103
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
103
|
+
regexp_parser (>= 2.4, < 3.0)
|
104
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
104
105
|
ruby-progressbar (~> 1.7)
|
105
106
|
unicode-display_width (>= 2.4.0, < 3.0)
|
106
|
-
rubocop-ast (1.
|
107
|
+
rubocop-ast (1.36.1)
|
107
108
|
parser (>= 3.3.1.0)
|
108
|
-
rubocop-capybara (2.20.0)
|
109
|
-
rubocop (~> 1.41)
|
110
|
-
rubocop-factory_bot (2.25.1)
|
111
|
-
rubocop (~> 1.41)
|
112
109
|
rubocop-rake (0.6.0)
|
113
110
|
rubocop (~> 1.0)
|
114
|
-
rubocop-rspec (2.
|
115
|
-
rubocop (~> 1.
|
116
|
-
rubocop-capybara (~> 2.17)
|
117
|
-
rubocop-factory_bot (~> 2.22)
|
118
|
-
rubocop-rspec_rails (~> 2.28)
|
119
|
-
rubocop-rspec_rails (2.28.3)
|
120
|
-
rubocop (~> 1.40)
|
111
|
+
rubocop-rspec (3.2.0)
|
112
|
+
rubocop (~> 1.61)
|
121
113
|
ruby-progressbar (1.13.0)
|
122
|
-
|
114
|
+
securerandom (0.3.2)
|
123
115
|
tzinfo (2.0.6)
|
124
116
|
concurrent-ruby (~> 1.0)
|
125
|
-
unicode-display_width (2.
|
117
|
+
unicode-display_width (2.6.0)
|
118
|
+
uri (1.0.2)
|
119
|
+
useragent (0.16.10)
|
126
120
|
|
127
121
|
PLATFORMS
|
128
122
|
x86_64-darwin-21
|
@@ -131,11 +125,11 @@ PLATFORMS
|
|
131
125
|
DEPENDENCIES
|
132
126
|
bp3-action_dispatch!
|
133
127
|
byebug
|
134
|
-
rake (
|
135
|
-
rspec (
|
136
|
-
rubocop (
|
137
|
-
rubocop-rake (
|
138
|
-
rubocop-rspec (
|
128
|
+
rake (>= 13.0)
|
129
|
+
rspec (>= 3.0)
|
130
|
+
rubocop (>= 1.21)
|
131
|
+
rubocop-rake (>= 0.6)
|
132
|
+
rubocop-rspec (>= 2.25)
|
139
133
|
|
140
134
|
BUNDLED WITH
|
141
135
|
2.3.7
|
data/Rakefile
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'bundler/setup'
|
3
4
|
require 'bundler/gem_tasks'
|
4
5
|
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
6
|
require 'rubocop/rake_task'
|
9
7
|
|
8
|
+
Dir.glob('lib/tasks/**/*.rake').each { |file| load file }
|
9
|
+
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
10
11
|
RuboCop::RakeTask.new
|
11
12
|
|
12
13
|
task default: %i[spec rubocop]
|
data/bp3-action_dispatch.gemspec
CHANGED
@@ -31,16 +31,16 @@ 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 'actionpack',
|
35
|
-
spec.add_dependency 'activesupport',
|
36
|
-
spec.add_dependency 'i18n',
|
34
|
+
spec.add_dependency 'actionpack', '>= 7.1.2'
|
35
|
+
spec.add_dependency 'activesupport', '>= 7.1.2'
|
36
|
+
spec.add_dependency 'i18n', '>= 1.8.11'
|
37
37
|
|
38
38
|
spec.add_development_dependency 'byebug'
|
39
|
-
spec.add_development_dependency 'rake', '
|
40
|
-
spec.add_development_dependency 'rspec', '
|
41
|
-
spec.add_development_dependency 'rubocop', '
|
42
|
-
spec.add_development_dependency 'rubocop-rake', '
|
43
|
-
spec.add_development_dependency 'rubocop-rspec', '
|
39
|
+
spec.add_development_dependency 'rake', '>= 13.0'
|
40
|
+
spec.add_development_dependency 'rspec', '>= 3.0'
|
41
|
+
spec.add_development_dependency 'rubocop', '>= 1.21'
|
42
|
+
spec.add_development_dependency 'rubocop-rake', '>= 0.6'
|
43
|
+
spec.add_development_dependency 'rubocop-rspec', '>= 2.25'
|
44
44
|
|
45
45
|
# For more information and examples about making a new gem, check out our
|
46
46
|
# guide at: https://bundler.io/guides/creating_gem.html
|
@@ -1,10 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# RequestSite is included in ActionDispatch::Request
|
4
|
+
# it depends on RequestHost
|
3
5
|
module Bp3
|
4
6
|
module ActionDispatch
|
5
7
|
module RequestSite
|
6
8
|
def request_site
|
7
|
-
@request_site ||=
|
9
|
+
@request_site ||= Sites::Site.find_host(normalized_host)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bp3-action_dispatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.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-
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 7.1.2
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '8'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 7.1.2
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '8'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: activesupport
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: 7.1.2
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '8'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +38,6 @@ dependencies:
|
|
47
38
|
- - ">="
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: 7.1.2
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '8'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: i18n
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,9 +45,6 @@ dependencies:
|
|
57
45
|
- - ">="
|
58
46
|
- !ruby/object:Gem::Version
|
59
47
|
version: 1.8.11
|
60
|
-
- - "<"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '2'
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,9 +52,6 @@ dependencies:
|
|
67
52
|
- - ">="
|
68
53
|
- !ruby/object:Gem::Version
|
69
54
|
version: 1.8.11
|
70
|
-
- - "<"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '2'
|
73
55
|
- !ruby/object:Gem::Dependency
|
74
56
|
name: byebug
|
75
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,70 +70,70 @@ dependencies:
|
|
88
70
|
name: rake
|
89
71
|
requirement: !ruby/object:Gem::Requirement
|
90
72
|
requirements:
|
91
|
-
- - "
|
73
|
+
- - ">="
|
92
74
|
- !ruby/object:Gem::Version
|
93
75
|
version: '13.0'
|
94
76
|
type: :development
|
95
77
|
prerelease: false
|
96
78
|
version_requirements: !ruby/object:Gem::Requirement
|
97
79
|
requirements:
|
98
|
-
- - "
|
80
|
+
- - ">="
|
99
81
|
- !ruby/object:Gem::Version
|
100
82
|
version: '13.0'
|
101
83
|
- !ruby/object:Gem::Dependency
|
102
84
|
name: rspec
|
103
85
|
requirement: !ruby/object:Gem::Requirement
|
104
86
|
requirements:
|
105
|
-
- - "
|
87
|
+
- - ">="
|
106
88
|
- !ruby/object:Gem::Version
|
107
89
|
version: '3.0'
|
108
90
|
type: :development
|
109
91
|
prerelease: false
|
110
92
|
version_requirements: !ruby/object:Gem::Requirement
|
111
93
|
requirements:
|
112
|
-
- - "
|
94
|
+
- - ">="
|
113
95
|
- !ruby/object:Gem::Version
|
114
96
|
version: '3.0'
|
115
97
|
- !ruby/object:Gem::Dependency
|
116
98
|
name: rubocop
|
117
99
|
requirement: !ruby/object:Gem::Requirement
|
118
100
|
requirements:
|
119
|
-
- - "
|
101
|
+
- - ">="
|
120
102
|
- !ruby/object:Gem::Version
|
121
103
|
version: '1.21'
|
122
104
|
type: :development
|
123
105
|
prerelease: false
|
124
106
|
version_requirements: !ruby/object:Gem::Requirement
|
125
107
|
requirements:
|
126
|
-
- - "
|
108
|
+
- - ">="
|
127
109
|
- !ruby/object:Gem::Version
|
128
110
|
version: '1.21'
|
129
111
|
- !ruby/object:Gem::Dependency
|
130
112
|
name: rubocop-rake
|
131
113
|
requirement: !ruby/object:Gem::Requirement
|
132
114
|
requirements:
|
133
|
-
- - "
|
115
|
+
- - ">="
|
134
116
|
- !ruby/object:Gem::Version
|
135
117
|
version: '0.6'
|
136
118
|
type: :development
|
137
119
|
prerelease: false
|
138
120
|
version_requirements: !ruby/object:Gem::Requirement
|
139
121
|
requirements:
|
140
|
-
- - "
|
122
|
+
- - ">="
|
141
123
|
- !ruby/object:Gem::Version
|
142
124
|
version: '0.6'
|
143
125
|
- !ruby/object:Gem::Dependency
|
144
126
|
name: rubocop-rspec
|
145
127
|
requirement: !ruby/object:Gem::Requirement
|
146
128
|
requirements:
|
147
|
-
- - "
|
129
|
+
- - ">="
|
148
130
|
- !ruby/object:Gem::Version
|
149
131
|
version: '2.25'
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
135
|
requirements:
|
154
|
-
- - "
|
136
|
+
- - ">="
|
155
137
|
- !ruby/object:Gem::Version
|
156
138
|
version: '2.25'
|
157
139
|
description:
|
@@ -204,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
186
|
- !ruby/object:Gem::Version
|
205
187
|
version: '0'
|
206
188
|
requirements: []
|
207
|
-
rubygems_version: 3.5.
|
189
|
+
rubygems_version: 3.5.17
|
208
190
|
signing_key:
|
209
191
|
specification_version: 4
|
210
192
|
summary: bp3-action_dispatch adapts ActionDispatch::Request for BP3 (persuavis/black_phoebe_3).
|