locomotivecms_steam 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/Gemfile.lock +5 -3
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/config/locales/nb.yml +6 -2
- data/lib/locomotive/steam/version.rb +1 -1
- data/locomotivecms_steam.gemspec +2 -2
- data/spec/unit/middlewares/cache_spec.rb +4 -4
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54113c1f820748abcfc48e22803c588b09387b5889942ac838c4d2165b113de3
|
4
|
+
data.tar.gz: 02706cbb6e9002ae7180dfd99106acab607e58cae7f68b0b7a9b43f877b49b0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07231a9488c08e9f664b6ea326c9e09c86a7eca83567be52ee876c0fb5a87203db2eb5919d87207926f8fbd7185788644b622e73a4fb788f5dd1ae345e29c269
|
7
|
+
data.tar.gz: 742faf6804b70f83d14491e99358f4f9e99c316442ca00434684ef17ba57fb2e36846f59f76bffb7921b8e276c863c79143e64926d253ac295e59c3012ae2c29
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
locomotivecms_steam (1.7.
|
4
|
+
locomotivecms_steam (1.7.1)
|
5
5
|
RedCloth (~> 4.3.2)
|
6
6
|
bcrypt (~> 3.1.11)
|
7
7
|
chronic (~> 0.10.2)
|
@@ -19,7 +19,7 @@ PATH
|
|
19
19
|
multi_json (~> 1.15.0)
|
20
20
|
nokogiri (~> 1.14.2)
|
21
21
|
pony (~> 1.12)
|
22
|
-
rack-cache (
|
22
|
+
rack-cache (>= 1.7, < 2)
|
23
23
|
rack-rewrite (~> 1.5.1)
|
24
24
|
rack_csrf (~> 2.6.0)
|
25
25
|
sanitize (~> 6.0.1)
|
@@ -114,6 +114,8 @@ GEM
|
|
114
114
|
nokogiri (1.14.2)
|
115
115
|
mini_portile2 (~> 2.8.0)
|
116
116
|
racc (~> 1.4)
|
117
|
+
nokogiri (1.14.2-x86_64-darwin)
|
118
|
+
racc (~> 1.4)
|
117
119
|
origin (2.3.1)
|
118
120
|
pony (1.13.1)
|
119
121
|
mail (>= 2.0)
|
@@ -122,7 +124,7 @@ GEM
|
|
122
124
|
nio4r (~> 2.0)
|
123
125
|
racc (1.6.2)
|
124
126
|
rack (2.2.3.1)
|
125
|
-
rack-cache (1.
|
127
|
+
rack-cache (1.13.0)
|
126
128
|
rack (>= 0.4)
|
127
129
|
rack-mini-profiler (0.10.7)
|
128
130
|
rack (>= 1.2.0)
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
The rendering stack used by both Wagon and Engine. It includes:
|
6
6
|
|
7
|
-
- the rack stack to
|
7
|
+
- the rack stack to pages and already precompiled assets (through webpack, vite or other).
|
8
8
|
- the liquid drops/filters/tags libs to parse and render liquid templates.
|
9
9
|
- a Filesystem adapter which reads the source of a site written for Wagon.
|
10
10
|
- a MongoDB adapter which reads an existing site hosted by the Locomotive Engine.
|
@@ -103,4 +103,4 @@ Note: you do not need to prefix with bundle exec as the docky-ruby image already
|
|
103
103
|
|
104
104
|
## License
|
105
105
|
|
106
|
-
Copyright (c)
|
106
|
+
Copyright (c) 2023 NoCoffee. MIT Licensed, see MIT-LICENSE for details.
|
data/config/locales/nb.yml
CHANGED
@@ -139,7 +139,7 @@ nb:
|
|
139
139
|
minute: "Minutt"
|
140
140
|
second: "Sekund"
|
141
141
|
number:
|
142
|
-
format:
|
142
|
+
format:
|
143
143
|
precision: 2
|
144
144
|
separator: ","
|
145
145
|
delimiter: " "
|
@@ -149,7 +149,11 @@ nb:
|
|
149
149
|
format:
|
150
150
|
unit: "kr"
|
151
151
|
format: "%n %u"
|
152
|
-
|
152
|
+
precision: 2
|
153
|
+
separator: ","
|
154
|
+
delimiter: " "
|
155
|
+
significant: false
|
156
|
+
strip_insignificant_zeros: true
|
153
157
|
precision:
|
154
158
|
format:
|
155
159
|
delimiter: ""
|
data/locomotivecms_steam.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency 'liquid', '~> 4.0.4'
|
29
29
|
|
30
30
|
spec.add_dependency 'rack-rewrite', '~> 1.5.1'
|
31
|
-
spec.add_dependency 'rack-cache', '
|
31
|
+
spec.add_dependency 'rack-cache', '>= 1.7', '< 2'
|
32
32
|
spec.add_dependency 'rack_csrf', '~> 2.6.0'
|
33
33
|
spec.add_dependency 'dragonfly', '>= 1.2', '< 1.5'
|
34
34
|
spec.add_dependency 'moneta', '~> 1.0.0'
|
@@ -44,5 +44,5 @@ Gem::Specification.new do |spec|
|
|
44
44
|
|
45
45
|
spec.add_dependency 'locomotivecms_common', '~> 0.5.0'
|
46
46
|
|
47
|
-
spec.required_ruby_version = ['>= 2.7', '< 3.
|
47
|
+
spec.required_ruby_version = ['>= 2.7', '< 3.2']
|
48
48
|
end
|
@@ -55,11 +55,11 @@ describe Locomotive::Steam::Middlewares::Cache do
|
|
55
55
|
|
56
56
|
let(:response) { nil }
|
57
57
|
|
58
|
-
before { expect(cache).to receive(:read).with('
|
58
|
+
before { expect(cache).to receive(:read).with('40ba2b3cfde6e2f8539c9ffa02fab139').and_return(response) }
|
59
59
|
|
60
60
|
context 'the cache is empty' do
|
61
61
|
|
62
|
-
before { expect(cache).to receive(:write).with('
|
62
|
+
before { expect(cache).to receive(:write).with('40ba2b3cfde6e2f8539c9ffa02fab139', Marshal.dump([200, {}, ["Hello world!"]])) }
|
63
63
|
|
64
64
|
it 'tells the CDN to cache the page and also cache it internally' do
|
65
65
|
is_expected.to eq ['max-age=0, s-maxage=3600, public, must-revalidate', 'Accept-Language']
|
@@ -69,7 +69,7 @@ describe Locomotive::Steam::Middlewares::Cache do
|
|
69
69
|
|
70
70
|
subject { send_request[:env]['steam.cache_etag'] }
|
71
71
|
|
72
|
-
it { is_expected.to eq '
|
72
|
+
it { is_expected.to eq '40ba2b3cfde6e2f8539c9ffa02fab139' }
|
73
73
|
|
74
74
|
end
|
75
75
|
|
@@ -104,7 +104,7 @@ describe Locomotive::Steam::Middlewares::Cache do
|
|
104
104
|
|
105
105
|
context 'based on the ETag' do
|
106
106
|
|
107
|
-
let(:etag) { '
|
107
|
+
let(:etag) { '40ba2b3cfde6e2f8539c9ffa02fab139' }
|
108
108
|
|
109
109
|
it 'returns a 304 (Not modified) without no cache headers' do
|
110
110
|
expect(subject.first).to eq 304
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_steam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-03-
|
14
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mongo
|
@@ -171,16 +171,22 @@ dependencies:
|
|
171
171
|
name: rack-cache
|
172
172
|
requirement: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
|
-
- - "
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '1.7'
|
177
|
+
- - "<"
|
175
178
|
- !ruby/object:Gem::Version
|
176
|
-
version:
|
179
|
+
version: '2'
|
177
180
|
type: :runtime
|
178
181
|
prerelease: false
|
179
182
|
version_requirements: !ruby/object:Gem::Requirement
|
180
183
|
requirements:
|
181
|
-
- - "
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '1.7'
|
187
|
+
- - "<"
|
182
188
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
189
|
+
version: '2'
|
184
190
|
- !ruby/object:Gem::Dependency
|
185
191
|
name: rack_csrf
|
186
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -888,14 +894,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
888
894
|
version: '2.7'
|
889
895
|
- - "<"
|
890
896
|
- !ruby/object:Gem::Version
|
891
|
-
version: '3.
|
897
|
+
version: '3.2'
|
892
898
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
893
899
|
requirements:
|
894
900
|
- - ">="
|
895
901
|
- !ruby/object:Gem::Version
|
896
902
|
version: '0'
|
897
903
|
requirements: []
|
898
|
-
rubygems_version: 3.
|
904
|
+
rubygems_version: 3.3.3
|
899
905
|
signing_key:
|
900
906
|
specification_version: 4
|
901
907
|
summary: The LocomotiveCMS Steam is the rendering stack used by both Wagon and Engine
|