canonical_url-rails 0.2.0 → 0.2.1

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: 666f937cfaa0cbc6c229e8c5bce30425a27bd277
4
- data.tar.gz: 0d2d51cf1feb654c27d738da7066562f6e2c52fc
3
+ metadata.gz: 74a2702706ccbd72865372aecb9bc0ca0f18582e
4
+ data.tar.gz: 3b1f7d75da58bdc894eb1f2fac17704b5cf1a7ee
5
5
  SHA512:
6
- metadata.gz: 7f539a4719d610e7217ea66147ba800dee923ee816f04ccf622d8c5485c5c670151d0d2cc1d347d691165a15cc69e8eb67adcd572935cbabc7aae5fe835d4ac0
7
- data.tar.gz: c361c816c12037ad4ed79875634c49823c4b0a5659362a20e8f69f0a28b173b0ea0d942af3d5322e1d5dccf8e2be0dd1df33cd8339389fe501e44c53cc31e196
6
+ metadata.gz: b1de6e3a7eb9bbbb13aee847d77b61848759bc3fad1dd76effb80602e6012b522b9e60c7106308d31d844e42e2cabe24166fa959c9344c0ba121c0606a0a7646
7
+ data.tar.gz: 3985f97bf0cee609337a9c8a570fca20c7f6c6f69e77eb36b2c4668bc44fd12000d0ad4bf90665ee9715441e4a59e400eb5ba41c9ad5f5e825ffcc63d4f59c70
@@ -3,7 +3,7 @@ module CanonicalURL
3
3
  module ActionView
4
4
  def canonical_link_tag url = nil
5
5
  return '' if url.nil? && @canonical_url.nil?
6
- tag("link", rel: "canonical", href: url.html_safe || @canonical_url.html_safe)
6
+ tag("link", rel: "canonical", href: url.try(:html_safe) || @canonical_url.try(:html_safe))
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  module CanonicalURL
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canonical_url-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayuki Matsubara