railhead_permalink 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1df951f172d983cb4441b50dd86d57033ac5c38d
4
- data.tar.gz: 361f8886278022895a3eca95f398d9ca7495a9d0
2
+ SHA256:
3
+ metadata.gz: 9dbdd48baec3c14bcc73161ed3ebdb3490938403af0289c0cfb71a46de6e05e6
4
+ data.tar.gz: 9d938043b4b5bc6a4c2a58a91ffc2e483981079e9d61635626371aed81a5807a
5
5
  SHA512:
6
- metadata.gz: 0d9755006f6bd7d8c0f6a89f865c5755e5a7c5e27d24c75d64435d77e0891def0f0914770501eda7b55b8294b3ec7ce239a51c3538bc0c6434d9e908ad7236d1
7
- data.tar.gz: 5a0799954487dd0897f5153ccfc2831265227664ab74317a9215fcd6d3ee5ec1bab43bdbac98a0526df6d179590a7fff929d5a257c3359c7a060a2db3b75485d
6
+ metadata.gz: 9e22b67f522f102e60a7177740504be6fd70e8dc873171f5de02433eb711fbfeb9394bd8eca2d03b44beca63de46b2ed131a1369f742003e357736f1504b53b8
7
+ data.tar.gz: 6d013b873588a187ebc8132946c6fdd347af83f19649e20758cd9bc7bf06ae40af3c0cba6cfeb986352d3b8a652f4a8b727549f030f6f22539a1b888f07c7768
@@ -3,7 +3,7 @@ begin
3
3
  # stringex 2.7.1 fix | 'Auður Ava Ólafdóttir'.to_url => "audur-ava-lafdottir"
4
4
  class String
5
5
  def to_url
6
- Stringex::Unidecoder.decode(self).parameterize
6
+ Stringex::Unidecoder.decode(self.remove(/'/)).parameterize
7
7
  end
8
8
  end
9
9
  rescue LoadError
@@ -27,7 +27,8 @@ module RailheadPermalink
27
27
  def auto_permalink(field, options = {})
28
28
  include RailheadPermalink::InstanceMethods
29
29
  class << self
30
- alias_method_chain :find, :permalink
30
+ alias_method :find_without_permalink, :find
31
+ alias_method :find, :find_with_permalink
31
32
  end
32
33
  class_attribute :permalink_options
33
34
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_permalink"
3
- s.version = "0.3.0"
4
- s.date = "2017-08-29"
3
+ s.version = "0.4.0"
4
+ s.date = "2019-05-16"
5
5
  s.summary = "RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink."
6
6
  s.email = "bence.nagy@gmail.com"
7
7
  s.homepage = "http://github.com/nagybence/railhead_permalink"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_permalink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bence Nagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: bence.nagy@gmail.com
@@ -41,8 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
- rubyforge_project:
45
- rubygems_version: 2.6.8
44
+ rubygems_version: 3.0.2
46
45
  signing_key:
47
46
  specification_version: 4
48
47
  summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord