canonical-rails 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/canonical_rails/tag_helper.rb +1 -1
- data/lib/canonical-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38067fe7096258dd5090045db04194d4ab089758ebcda87b3863011535893d7e
|
4
|
+
data.tar.gz: 16567396612642f5640dc28dc45c65be6702bb1a37389e2d200d52987ef2fea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac96b6a583c455be2407383812ab84bf0670a51cf8debc17c435997a8f66f976b6b2ff4274ca1b539ef3e3079f0d42d0932b90a7b29cdf36fbce61da58ade1fb
|
7
|
+
data.tar.gz: 5347b6cf1356f000144da898cd8d5ddb78bba658cbf3ef35d40a270174d202b7a06a61e70bb51d7b8abe70c8ae86739e6c11c887cbd33feeea1a1c198bdb9480
|
@@ -29,7 +29,7 @@ module CanonicalRails
|
|
29
29
|
def canonical_href(host = canonical_host, port = canonical_port)
|
30
30
|
default_ports = { 'https://' => 443, 'http://' => 80 }
|
31
31
|
port = port.present? && port.to_i != default_ports[canonical_protocol] ? ":#{port}" : ''
|
32
|
-
raw "#{canonical_protocol}#{host}#{port}#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}"
|
32
|
+
raw "#{canonical_protocol}#{host}#{port}#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}"
|
33
33
|
end
|
34
34
|
|
35
35
|
def canonical_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canonical-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|