railhead_permalink 0.2.5 → 0.2.6
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 +4 -4
- data/lib/railhead_permalink.rb +1 -1
- data/railhead_permalink.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 549d9aa8e21d99cb4d72701d2aacadd3bda8e8df
|
|
4
|
+
data.tar.gz: 1977ce57de8503fce94ded930055f8b782bc92ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 204dd294b43b9b914f292cf30739d612f01bdba5c638d97d0bf048b9bd94ded93dc4430565e3f2898ec257fbb63187f673ac85e4d67ae2466b6f98c908e1583b
|
|
7
|
+
data.tar.gz: fd1c052349c2bfa2ca62689765f67de9f22c016ebd4728c95c7a9c035177b0ffc0155203fdc3637db2a65a6aa89da56c15c1aaa31ed0d8d988d636c0612be258
|
data/lib/railhead_permalink.rb
CHANGED
|
@@ -52,7 +52,7 @@ module RailheadPermalink
|
|
|
52
52
|
|
|
53
53
|
def create_permalink
|
|
54
54
|
if self.permalink.nil? or (self.changed.include?(permalink_options[:field].to_s) and not permalink_options[:keep_existing])
|
|
55
|
-
key = self
|
|
55
|
+
key = self.send(permalink_options[:field]).to_url
|
|
56
56
|
unless self.permalink == key
|
|
57
57
|
permalink, counter = key, '-1'
|
|
58
58
|
while permalink_options[:reserved_names].include?(permalink) or permalink.blank? or
|
data/railhead_permalink.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "railhead_permalink"
|
|
3
|
-
s.version = "0.2.
|
|
4
|
-
s.date = "
|
|
3
|
+
s.version = "0.2.6"
|
|
4
|
+
s.date = "2016-09-15"
|
|
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.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bence Nagy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: bence.nagy@gmail.com
|
|
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
42
42
|
version: '0'
|
|
43
43
|
requirements: []
|
|
44
44
|
rubyforge_project:
|
|
45
|
-
rubygems_version: 2.
|
|
45
|
+
rubygems_version: 2.5.1
|
|
46
46
|
signing_key:
|
|
47
47
|
specification_version: 4
|
|
48
48
|
summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord
|