Skip to content

Commit

Permalink
bump version to 1.8.0.alpha2
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Jun 25, 2024
1 parent eae314f commit ee59720
Showing 3 changed files with 22 additions and 19 deletions.
31 changes: 17 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
locomotivecms_steam (1.8.0.alpha1)
locomotivecms_steam (1.8.0.alpha2)
RedCloth (~> 4.3.2)
bcrypt (~> 3.1.11)
chronic (~> 0.10.2)
@@ -29,7 +29,7 @@ GEM
remote: https://rubygems.org/
specs:
RedCloth (4.3.4)
activesupport (7.1.3.2)
activesupport (7.1.3.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -39,12 +39,12 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
attr_extras (7.1.0)
base64 (0.2.0)
bcrypt (3.1.20)
bigdecimal (3.1.7)
bigdecimal (3.1.8)
bson (4.15.0)
chronic (0.10.2)
colorize (1.1.0)
@@ -94,19 +94,20 @@ GEM
memory_profiler (1.0.1)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0305)
mime-types-data (3.2024.0604)
mimetype-fu (0.1.2)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.22.3)
mini_portile2 (2.8.7)
minitest (5.24.0)
moneta (1.6.0)
mongo (2.18.3)
bson (>= 4.14.1, < 5.0.0)
morphine (0.1.1)
multi_json (1.15.0)
multi_xml (0.6.0)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
mutex_m (0.2.0)
net-imap (0.4.10)
net-imap (0.4.14)
date
net-protocol
net-pop (0.1.2)
@@ -124,12 +125,12 @@ GEM
origin (2.3.1)
pony (1.13.1)
mail (>= 2.0)
public_suffix (5.0.4)
public_suffix (6.0.0)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
racc (1.8.0)
rack (3.0.10)
rack-cache (1.16.0)
rack-cache (1.17.0)
rack (>= 0.4)
rack-mini-profiler (0.10.7)
rack (>= 1.2.0)
@@ -141,7 +142,8 @@ GEM
rack_csrf (2.6.0)
rack (>= 1.1.0)
rake (13.1.0)
rexml (3.2.6)
rexml (3.3.1)
strscan
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
@@ -166,6 +168,7 @@ GEM
simplecov_json_formatter (0.1.4)
stackprof (0.2.26)
stringex (2.8.6)
strscan (3.1.0)
temple (0.10.3)
thor (1.3.1)
tilt (2.3.0)
2 changes: 1 addition & 1 deletion lib/locomotive/steam/version.rb
Original file line number Diff line number Diff line change
@@ -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.8.0.alpha1'
VERSION = '1.8.0.alpha2'
end
end
8 changes: 4 additions & 4 deletions spec/unit/middlewares/cache_spec.rb
Original file line number Diff line number Diff line change
@@ -55,11 +55,11 @@

let(:response) { nil }

before { expect(cache).to receive(:read).with('7f3fe1e49370f63970331ec3194d4590').and_return(response) }
before { expect(cache).to receive(:read).with('f5f2eb8af560507da49fbe5df8220030').and_return(response) }

context 'the cache is empty' do

before { expect(cache).to receive(:write).with('7f3fe1e49370f63970331ec3194d4590', Marshal.dump([200, {}, ["Hello world!"]])) }
before { expect(cache).to receive(:write).with('f5f2eb8af560507da49fbe5df8220030', 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']
@@ -69,7 +69,7 @@

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

it { is_expected.to eq '7f3fe1e49370f63970331ec3194d4590' }
it { is_expected.to eq 'f5f2eb8af560507da49fbe5df8220030' }

end

@@ -104,7 +104,7 @@

context 'based on the ETag' do

let(:etag) { '7f3fe1e49370f63970331ec3194d4590' }
let(:etag) { 'f5f2eb8af560507da49fbe5df8220030' }

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

0 comments on commit ee59720

Please sign in to comment.