amp_helper 1.0.0.pre.2 → 1.0.0.pre.3

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
  SHA1:
3
- metadata.gz: de14bc07af417ab4acea00331539edcdd94cab90
4
- data.tar.gz: b98de58c842a75f6e6e3d0187bd4d3eaa36ed3b2
3
+ metadata.gz: 1e17b70448361999669c2f3bbc47f0ad9b2b7a19
4
+ data.tar.gz: 60d5e39719610ad64868209c467099c6ab12f9cd
5
5
  SHA512:
6
- metadata.gz: 40e1bd870f0d6dbbd001635e0105271271cba581241a8da96d38672e915aa57d2b1463cd3b0c933ec83de39d7e7a4ba2862384d02e1ebccf6f459e604f962531
7
- data.tar.gz: 32182d37459945c0fef8f06f343792979d0a19f7bcf8491896ab732f47f87b7d9af6847feb199bbe395299a72a2a2c2db5b8d6afe56a5b8c90f0165c67bc3034
6
+ metadata.gz: 69cb8ac38bd9c3f344953f52982241a677b4fb7fd2af24b7998667cf777bfe7eba8ac7b29c03c29f6af00af33d88e1488892f425b9d7e958d81b26cd361d7afb
7
+ data.tar.gz: d9fba967483587abc9b7618bccea580199eba1a0fb8c9bfa49d8bf1d1c7d5ad5ede4cc3e081356158c30d42d5f7c2e28eeb6b29a58c9734260a43a9dec6ee7ec
@@ -27,7 +27,8 @@ module AmpLinkToHelper
27
27
  uri = URI(url_for(options))
28
28
  identify = ''
29
29
  identify += 's/' if request.scheme == 'https'
30
- identify += "#{request.host}#{uri.path}#{uri.query}"
30
+ identify += "#{request.host}#{uri.path}"
31
+ identify += "?#{uri.query}" if uri.query.present?
31
32
  escaped_host = request.host.gsub('-', '--').gsub('.', '-')
32
33
  cache_url = "https://#{escaped_host}.cdn.ampproject.org/c/#{identify}"
33
34
  validate_amp_cache(cache_url) ? cache_url : uri.to_s
@@ -1,3 +1,3 @@
1
1
  module AmpHelper
2
- VERSION = '1.0.0.pre.2'
2
+ VERSION = '1.0.0.pre.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amp_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.2
4
+ version: 1.0.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Awjecc
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler