Skip to content

Commit

Permalink
bump version to 1.6.0.rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Sep 24, 2021
1 parent 985852f commit d3f1f67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
locomotivecms_steam (1.6.0.beta1)
locomotivecms_steam (1.6.0.rc1)
RedCloth (~> 4.3.2)
autoprefixer-rails (~> 8.0.0)
bcrypt (~> 3.1.11)
Expand Down
2 changes: 1 addition & 1 deletion lib/locomotive/steam/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# 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
module Locomotive
module Steam
VERSION = '1.6.0.beta1'
VERSION = '1.6.0.rc1'
end
end
8 changes: 4 additions & 4 deletions spec/unit/middlewares/cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@

let(:response) { nil }

before { expect(cache).to receive(:read).with('9c535e0c37793cf8134e8b88b2517197').and_return(response) }
before { expect(cache).to receive(:read).with('7cf53dab8a56bd5d2cbf7610101514fd').and_return(response) }

context 'the cache is empty' do

before { expect(cache).to receive(:write).with('9c535e0c37793cf8134e8b88b2517197', Marshal.dump([200, {}, ["Hello world!"]])) }
before { expect(cache).to receive(:write).with('7cf53dab8a56bd5d2cbf7610101514fd', Marshal.dump([200, {}, ["Hello world!"]])) }

it 'tells the CDN to cache the page and also cache it internally' do
is_expected.to eq ['max-age=0, s-maxage=3600, public, must-revalidate', 'Accept-Language']
Expand All @@ -69,7 +69,7 @@

subject { send_request[:env]['steam.cache_etag'] }

it { is_expected.to eq '9c535e0c37793cf8134e8b88b2517197' }
it { is_expected.to eq '7cf53dab8a56bd5d2cbf7610101514fd' }

end

Expand Down Expand Up @@ -104,7 +104,7 @@

context 'based on the ETag' do

let(:etag) { '9c535e0c37793cf8134e8b88b2517197' }
let(:etag) { '7cf53dab8a56bd5d2cbf7610101514fd' }

it 'returns a 304 (Not modified) without no cache headers' do
expect(subject.first).to eq 304
Expand Down

0 comments on commit d3f1f67

Please sign in to comment.