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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1d1190c7a803c31bd03c95eadc0778dae4018260d5f189e17504584ff214eb2
4
- data.tar.gz: a31caf22fe539484172005e8ffd8429bc301b72d1e09b0b0d4d553ca6364a8c9
3
+ metadata.gz: 54113c1f820748abcfc48e22803c588b09387b5889942ac838c4d2165b113de3
4
+ data.tar.gz: 02706cbb6e9002ae7180dfd99106acab607e58cae7f68b0b7a9b43f877b49b0c
5
5
  SHA512:
6
- metadata.gz: 5fce3dfa770a46f8d6f7ae47db8c7045d4dece1acb550685955f0641bf09c82de9a2d9dc67309727d3fc7874b21b59c205d29f770c8f7c2f3ab5829c72ce769c
7
- data.tar.gz: 34b654ec05743ce7da33454004a9828f94533d15f26691a25c254833f179f2ba84cc5f3dc9864485452d76f82b889ae6dd7f10ac6a90bda3951dd5f80b961604
6
+ metadata.gz: 07231a9488c08e9f664b6ea326c9e09c86a7eca83567be52ee876c0fb5a87203db2eb5919d87207926f8fbd7185788644b622e73a4fb788f5dd1ae345e29c269
7
+ data.tar.gz: 742faf6804b70f83d14491e99358f4f9e99c316442ca00434684ef17ba57fb2e36846f59f76bffb7921b8e276c863c79143e64926d253ac295e59c3012ae2c29
data/.travis.yml CHANGED
@@ -2,7 +2,9 @@ language: ruby
2
2
  services: mongodb
3
3
  before_script: ./script/ci/before_build.sh
4
4
  rvm:
5
- - 2.7.4
5
+ - 2.7.7
6
+ - 3.0.5
7
+ - 3.1.3
6
8
  addons:
7
9
  code_climate:
8
10
  repo_token: 3fa74f2ade25037fccd7261090acbdeae232639c3a83aafb80ee428ec16b8cf9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_steam (1.7.0)
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 (~> 1.7.0)
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.7.2)
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 NoCoffee
3
+ Copyright (c) 2023 NoCoffee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
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 serve assets (SCSS, Coffeescript, ...etc) and pages.
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) 2020 NoCoffee. MIT Licensed, see MIT-LICENSE for details.
106
+ Copyright (c) 2023 NoCoffee. MIT Licensed, see MIT-LICENSE for details.
@@ -139,7 +139,7 @@ nb:
139
139
  minute: "Minutt"
140
140
  second: "Sekund"
141
141
  number:
142
- format: &number_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
- <<: *number_format
152
+ precision: 2
153
+ separator: ","
154
+ delimiter: " "
155
+ significant: false
156
+ strip_insignificant_zeros: true
153
157
  precision:
154
158
  format:
155
159
  delimiter: ""
@@ -3,6 +3,6 @@
3
3
  # 1.0.0.alpha < 1.0.0.alpha1 < 1.0.0.beta < 1.0.0.beta2 < 1.0.0.beta11 < 1.0.0.rc1 < 1.0.0
4
4
  module Locomotive
5
5
  module Steam
6
- VERSION = '1.7.0'
6
+ VERSION = '1.7.1'
7
7
  end
8
8
  end
@@ -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', '~> 1.7.0'
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.1']
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('57f157d0981a09b1565fb31f250229d4').and_return(response) }
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('57f157d0981a09b1565fb31f250229d4', Marshal.dump([200, {}, ["Hello world!"]])) }
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 '57f157d0981a09b1565fb31f250229d4' }
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) { '57f157d0981a09b1565fb31f250229d4' }
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.0
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-01 00:00:00.000000000 Z
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: 1.7.0
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: 1.7.0
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.1'
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.1.6
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