canonical-rails 0.1.1 → 0.1.2
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 +2 -2
- data/lib/canonical-rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 869cd13978490822f6915a4ed4398e349334ac17
|
4
|
+
data.tar.gz: ebc920d8a0f5f77d607530235d186d562b308f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e56c138eb35043f5f220e03f4ce4844b123fc9bdc9e088e8c44f2d02a08dd166f3e4ec9c92ba70fff0365bf1b1c74ed6f2a45c13c481fe4567af4a42900b08e0
|
7
|
+
data.tar.gz: aa031e2f97df4104e9f20224416725be5e55d042f32e69010068f221dc2be9f52dbf7cafe5b8c5712bf2c109a12d3acb4c650a1c7eee4c05df0dd160b15b8d7a
|
@@ -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}"
|
31
31
|
end
|
32
32
|
|
33
33
|
def canonical_tag(host = canonical_host, port = canonical_port)
|
@@ -35,7 +35,7 @@ module CanonicalRails
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def whitelisted_params
|
38
|
-
|
38
|
+
params.select do |key, value|
|
39
39
|
value.present? && CanonicalRails.sym_whitelisted_parameters.include?(key.to_sym)
|
40
40
|
end
|
41
41
|
end
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 3.5
|
67
|
+
version: '3.5'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 3.5
|
74
|
+
version: '3.5'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: pry
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.5.2
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Simple and configurable Rails canonical ref tag helper
|