rocking_chair 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rocking_chair/view.rb +4 -0
- data/test/test_helper.rb +2 -1
- metadata +3 -3
data/lib/rocking_chair/view.rb
CHANGED
@@ -195,12 +195,16 @@ module RockingChair
|
|
195
195
|
keys.sort{|x,y|
|
196
196
|
if RockingChair::Helper.access(attribute, ruby_store[y]).nil?
|
197
197
|
-1
|
198
|
+
elsif RockingChair::Helper.access(attribute, ruby_store[x]).nil?
|
199
|
+
1
|
198
200
|
else
|
199
201
|
RockingChair::Helper.access(attribute, ruby_store[y]) <=> RockingChair::Helper.access(attribute, ruby_store[x])
|
200
202
|
end } :
|
201
203
|
keys.sort{|x,y|
|
202
204
|
if RockingChair::Helper.access(attribute, ruby_store[x]).nil?
|
203
205
|
-1
|
206
|
+
elsif RockingChair::Helper.access(attribute, ruby_store[y]).nil?
|
207
|
+
1
|
204
208
|
else
|
205
209
|
RockingChair::Helper.access(attribute, ruby_store[x]) <=> RockingChair::Helper.access(attribute, ruby_store[y])
|
206
210
|
end }
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jonathan Weiss
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-17 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|