canonical-rails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +0 -1
- data/app/helpers/canonical_rails/tag_helper.rb +1 -1
- data/lib/canonical-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0d9ef773da11596654f1a0c5417e77410bcbac6594dc1adccb544edef085d66
|
4
|
+
data.tar.gz: f900d781c65c89cab82b65885ab0b07bcc7bab959929d2b91508ed5295579c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ab25beac66412f2437f19aa34309e0374a1d115ccfffb7b0d1dffb42cc9a9a73f5cc7f3d44a35ae1ce62ca989197bafec3f1f11590a7ef7dd0b27b46141b7a
|
7
|
+
data.tar.gz: d360b87780f9e2c663a18a553961b658f3defade38f7c4724c6b1c838bec7e9d9c91680030eae8016cd87145814d8a495a2cdda60b85cb3f1f521b89a8b48a1d
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
CanonicalRails
|
2
2
|
==============
|
3
|
-
[![Dependency Status](https://gemnasium.com/jumph4x/canonical-rails.png)](https://gemnasium.com/jumph4x/canonical-rails)
|
4
3
|
[![Build Status](https://travis-ci.org/jumph4x/canonical-rails.svg?branch=master)](https://travis-ci.org/jumph4x/canonical-rails)
|
5
4
|
|
6
5
|
A number of articles exist explaining the issue concisely and at length:
|
@@ -27,7 +27,7 @@ module CanonicalRails
|
|
27
27
|
def canonical_href(host = canonical_host, port = canonical_port)
|
28
28
|
default_ports = { 'https://' => 443, 'http://' => 80 }
|
29
29
|
port = port.present? && port.to_i != default_ports[canonical_protocol] ? ":#{port}" : ''
|
30
|
-
raw "#{canonical_protocol}#{host}#{port}#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}"
|
30
|
+
raw "#{canonical_protocol}#{host}#{port}#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}".downcase
|
31
31
|
end
|
32
32
|
|
33
33
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.7.7
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Simple and configurable Rails canonical ref tag helper
|