nsync 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/nsync/consumer.rb +12 -1
- data/nsync.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/nsync/consumer.rb
CHANGED
@@ -151,7 +151,6 @@ module Nsync
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
-
# @private
|
155
154
|
class Change < Struct.new(:id, :diff)
|
156
155
|
def type
|
157
156
|
if diff.deleted_file
|
@@ -163,6 +162,18 @@ module Nsync
|
|
163
162
|
end
|
164
163
|
end
|
165
164
|
|
165
|
+
def a_data
|
166
|
+
JSON.load(diff.a_blob.data)
|
167
|
+
rescue
|
168
|
+
{}
|
169
|
+
end
|
170
|
+
|
171
|
+
def b_data
|
172
|
+
JSON.load(diff.b_blob.data)
|
173
|
+
rescue
|
174
|
+
{}
|
175
|
+
end
|
176
|
+
|
166
177
|
def data
|
167
178
|
@data ||= JSON.load(diff.b_blob.data)
|
168
179
|
rescue
|
data/nsync.gemspec
CHANGED