nsync 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/nsync/consumer.rb +12 -1
  3. data/nsync.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nsync}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Hughes"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Hughes