seo_cache 0.17.0 → 0.18.0

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: 8cbb8606a44387a0ee110cc7f415f03fca04f44b78db3532e7c4bfd401a1217f
4
- data.tar.gz: 1690e98393eaca4f5c46acba224ae4581887d824a18b33a825b208be89461a55
3
+ metadata.gz: 6132fa1fc97736b7bbfea3971ae247d65dd7a373a799ce4907bbd2106f8f9fa6
4
+ data.tar.gz: 067f4bdea04af6f7c931c2ce09f283fb907c6a7a56afe364ef5ea932e320f3b1
5
5
  SHA512:
6
- metadata.gz: 4879727dc7ee291e9986bc4a834e066763b7886770e578167b8d8beba7b62b6e4e30f05bd4914cb422985ee7622c13cb4028a6cdaecfd06661201fff068d64ea
7
- data.tar.gz: 6809502cd15aabd145478e5b1033806345b1f097d92221466ef58d2270279bd06922707b940d808e46db6e6b5f4e217d515b9d7ee58131a382b0c00eae1dcada
6
+ metadata.gz: e4826755941dc1bfba9f98182c5d3c07d2ca78fe62f443b9e432c3411fc232099ca7966a97191a8e1fa6630b5551fca4679f9c47781411b1e4182f2013093d19
7
+ data.tar.gz: 6aa1029ab15d5f6abd879cb54fe5cb74f972aa452c4555ee19dd4ac98cb63459507d742b2e359ad627eb593b940efc0a59c68435ee72780b3e520e2d46fc1c3f
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 0.16.0
1
+ ## 0.18.0
2
+
3
+ - Correct use of prerender param in URL
4
+
5
+ ## 0.17.0
2
6
 
3
7
  - Correct bug when populating cache
4
8
 
@@ -188,7 +188,7 @@ module SeoCache
188
188
  def page_render(env)
189
189
  # Add key parameter to url
190
190
  request = Rack::Request.new(env)
191
- url = if request.query_string.present? || request.url.end_with?('?')
191
+ url = if request.query_string.present? || request.url.include?('?')
192
192
  request.url + '&'
193
193
  else
194
194
  request.url + '?'
@@ -19,7 +19,7 @@ module SeoCache
19
19
  next if @page_caching.cache_exists?(path) && !@force_cache
20
20
 
21
21
  url = @host + path
22
- url += if path.end_with?('?')
22
+ url += if path.include?('?')
23
23
  '&'
24
24
  else
25
25
  '?'
@@ -1,3 +1,3 @@
1
1
  module SeoCache
2
- VERSION = '0.17.0'.freeze
2
+ VERSION = '0.18.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FloXcoder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.0.4
229
+ rubygems_version: 3.1.2
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Cache dedicated for SEO with Javascript rendering