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 +4 -4
- data/lib/amp_helper/amp_link_to_helper.rb +2 -1
- data/lib/amp_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e17b70448361999669c2f3bbc47f0ad9b2b7a19
|
4
|
+
data.tar.gz: 60d5e39719610ad64868209c467099c6ab12f9cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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
|
data/lib/amp_helper/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|