bust_rails_etags 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # BustRailsEtags
1
+ # Bust Rails Etags
2
2
 
3
3
  Helps bust http caching on new deploys of a Rails app using the environment variable:
4
4
 
@@ -11,11 +11,11 @@ module BustRailsEtags
11
11
  def etag_with_version_id=(etag)
12
12
 
13
13
  etag_elements = []
14
+ etag_elements << ENV['ETAG_VERSION_ID']
14
15
 
15
16
  if etag.is_a?(Array)
16
- etag_elements = ENV['ETAG_VERSION_ID'] + etag
17
+ etag_elements += etag
17
18
  else
18
- etag_elements << ENV['ETAG_VERSION_ID']
19
19
  etag_elements << etag
20
20
  end
21
21
 
@@ -1,3 +1,3 @@
1
1
  module BustRailsEtags
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bust_rails_etags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: