canonical-rails 0.2.1 → 0.2.2

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: 493140cf6a89545c33141ea88e762de816853cdc
4
- data.tar.gz: 15ea886c64d6a83d6bf4149c88ce324fa95e1c8b
3
+ metadata.gz: fc90038b3844c34c502d2e85981eb686d7e4807c
4
+ data.tar.gz: 8f6fdcc961ff3dd9d2d6362844bf1a3065d7acc8
5
5
  SHA512:
6
- metadata.gz: 65dee720050ac6ed7574a3cd7ed40da9f32fa4f21af0b8953f8ab9d87bce86279289055ac5ba77b4d967b324ea13df4346b546e26676e55c7faacfa95718b743
7
- data.tar.gz: a85c78bc01e5b9f3f7d0099c61cfffa3a0f8d27fea49feea40c0ca631d3eedc2560adcb99125925b691cff7f274fba7e8b039f439961a32772ba148635835fed
6
+ metadata.gz: 838ea0f6ab5de71a4e6feb1fb1238b2643a3d60742ae2ca630b816aca75b956774379a64c5b0091e63679c830f2da6ce09b7f9f0789a1b1e1c18d03f4773c5ed
7
+ data.tar.gz: cb8ac19a39883c2c37b8fbd14aa6537d85ee12c1349c919bdf37194761255a5cd5a8620807fec50f507276f202db0277c2ba0d79d9080047f4874a536593a7d2
@@ -29,6 +29,10 @@ module CanonicalRails
29
29
  port = port.present? && port.to_i != default_ports[canonical_protocol] ? ":#{port}" : ''
30
30
  raw "#{canonical_protocol}#{host}#{port}#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}"
31
31
  end
32
+
33
+ def canonical_path
34
+ raw "#{path_without_html_extension}#{trailing_slash_if_needed}#{whitelisted_query_string}"
35
+ end
32
36
 
33
37
  def canonical_tag(host = canonical_host, port = canonical_port)
34
38
  canonical_url = canonical_href(host, port)
@@ -1,3 +1,3 @@
1
1
  module CanonicalRails
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  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.2.1
4
+ version: 0.2.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: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2018-02-03 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.4.3
128
+ rubygems_version: 2.6.11
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Simple and configurable Rails canonical ref tag helper