garland 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/garland_rails.rb +4 -3
- 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: a00d71fb025dd71c34da87926327385c4278a2a6
|
4
|
+
data.tar.gz: 09a6733560c52e47f1065e35900ad4bbfd4a15c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04640cac5d39141ef5030df7d1b2b3b1e56c3b2b4e4ee31550ac9056675cdd55da7451e0332bc4a8b4e16e8998af9855b4c098ffdcf935afb9d17507c6af8a58
|
7
|
+
data.tar.gz: ad3318e2a4b883b3cfe199870b30522c2e471088271eee39b58e9cc021c73d4f979dd164e41ae36493ec62fe7581c8e0f74ef0789c84010c28455dc8aa760c4d
|
data/lib/garland_rails.rb
CHANGED
@@ -103,16 +103,17 @@ module GarlandRails
|
|
103
103
|
|
104
104
|
def self.last_diff(belongs_to = nil)
|
105
105
|
head = self.head(belongs_to)
|
106
|
+
return nil unless head
|
106
107
|
|
107
|
-
|
108
|
+
head.previous
|
108
109
|
end
|
109
110
|
|
110
111
|
def next
|
111
|
-
Garland.find(self.next_id)
|
112
|
+
Garland.find(self.next_id) if self.next_id
|
112
113
|
end
|
113
114
|
|
114
115
|
def previous
|
115
|
-
Garland.find(self.previous_id)
|
116
|
+
Garland.find(self.previous_id) if self.previous_id
|
116
117
|
end
|
117
118
|
|
118
119
|
def safe_eval_entity
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garland
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Morozov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashdiff_sym
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.6.6
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: HashDiff Rails storage
|