vidibus-permalink 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vidibus/permalink/mongoid.rb +2 -2
- data/lib/vidibus/permalink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51f420dad962971000b45f721fc1179b27e5736dce2b2b8bfa2ca5d058789cea
|
4
|
+
data.tar.gz: bdd0f56bb07da5d649b2b9b68e5545f18b9bcfcef7fcdf0ad442e564d0e0436c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0ef6ac2e4225da6aa42abfbc8883999b5194b7e87bfd6e1b1576e4a3a0af70c655fcaa0028e78a342a28a041e7e991fb2bb68fc33eff84a9cb788b3a50826f
|
7
|
+
data.tar.gz: 76f55494e22bf48e18ed6f6107b414c3049b638c0e939fd5c6c11b77407d7aadd2d7d1a91f7273d8a4773447eaefb7d2aff745c76433ef88c3ae1b59b512effb
|
@@ -114,7 +114,7 @@ module Vidibus
|
|
114
114
|
end
|
115
115
|
|
116
116
|
# Initializes a new permalink object and sets permalink attribute.
|
117
|
-
def set_permalink
|
117
|
+
def set_permalink(force = false)
|
118
118
|
begin
|
119
119
|
attribute_names = self.class.permalink_attributes
|
120
120
|
rescue NoMethodError
|
@@ -127,7 +127,7 @@ module Vidibus
|
|
127
127
|
changed ||= send("#{name}_changed?")
|
128
128
|
values << send(name)
|
129
129
|
end
|
130
|
-
return unless permalink.blank? || changed
|
130
|
+
return unless permalink.blank? || changed || force
|
131
131
|
value = values.join(' ')
|
132
132
|
if permalink_repository
|
133
133
|
@permalink_object = permalink_object_by_value(value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-permalink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andre Pankratz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|