synchronisable 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97bddcbfca63402c0394e535b25bef1c7d1f8a9e
4
- data.tar.gz: cebba95741ae03eec51bfc4ba1c333fd5a8574cd
3
+ metadata.gz: ddc378e3062d64be1af3f4ae2090b442cd538843
4
+ data.tar.gz: 264ecb7ed827c0943ff77249efa3dcb6aa6b301b
5
5
  SHA512:
6
- metadata.gz: ad86504ab1870a6f6f535ae0162093971dacac5c3d38d7208e5495ddd4d52acaacc6181e758246250b99b7c7535b2e9da7cd394c3a882101d84bf5db8b9e02ed
7
- data.tar.gz: 7cfdc9b259f064693b096c79555aaa11124114c01bab4a2ffa1a37de9b24d0b97a3752772c0232e0bb138c36d797ea83d9a35f8461051c51225d741436bfeda9
6
+ metadata.gz: f7ee4e0237a3331470f9efb3621d22ee56f87bcb41a5e98a296e12a29c4731a8885a468040155ec53160c91b46d428a5e6e0e8a919c5b627acabe68e543766b4
7
+ data.tar.gz: 9d0a2bc7a6f25a88f3acc5b2a3e22b6a06d42ccd49a29f85c8631c93adbc49fc2249ca67b086fc7766e3cafba329e43bda3edf6d2a709f556fe0473ca05e6535
@@ -18,7 +18,7 @@ class CreateImports < ActiveRecord::Migration
18
18
 
19
19
  def self.down
20
20
  remove_index :imports, :remote_id
21
- remove_index :imports, [:synchronisable_type, :synchronisable_id]
21
+ remove_index :imports, :synchronisable_id
22
22
  remove_index :imports, [:synchronisable_type, :remote_id]
23
23
  remove_index :imports, [:synchronisable_type, :unique_id]
24
24
  drop_table :imports
@@ -2,7 +2,7 @@ module Synchronisable
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 8
5
+ PATCH = 9
6
6
  SUFFIX = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, SUFFIX].compact.join('.')
@@ -36,6 +36,7 @@ module Synchronisable
36
36
  :synchronisable_id => record.id,
37
37
  :synchronisable_type => @source.model.to_s,
38
38
  :remote_id => @source.remote_id.to_s,
39
+ :unique_id => @source.unique_id.to_s,
39
40
  :attrs => @source.local_attrs
40
41
  )
41
42
  end
@@ -6,7 +6,7 @@ describe Tournament do
6
6
  [
7
7
  build(:remote_tournament, tour_id: '1', eman: 'tour-1'),
8
8
  build(:remote_tournament, tour_id: '2', eman: 'tour-1'),
9
- build(:remote_tournament, tour_id: '1', eman: 'tour-2')
9
+ build(:remote_tournament, tour_id: '3', eman: 'tour-2')
10
10
  ]
11
11
  end
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synchronisable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliy Yorkin