synced 1.0.1 → 1.0.2

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: df9ccd1c14e5e6d9f1568bfb7898df4ff12944cf
4
- data.tar.gz: 7d9598be6697ad7286d841fa84ac4fde6bf2a616
3
+ metadata.gz: 5b1d111a0f8399a92dc2e05d16a7f5d2ec1b483f
4
+ data.tar.gz: 5e294cabc9c1f81592269017b74b6463b554b91e
5
5
  SHA512:
6
- metadata.gz: 37adce0d19da8d8810d3cfa1e5a20cbd989d9dd5c0bfca7e377e42f5670c32edec0cd2c8b8aefc910ea118cf962b46df38ed3df1cd8dd64e5b911641e13feb10
7
- data.tar.gz: cd0ab1b64bd726bf3aac82f2b496044872a62e049343a281ac5d18c641aecd28e6abfe3ece2cd670532c2434ec9ad32ccd528a6959589690a7ad961cfa7280dd
6
+ metadata.gz: b93a1b2a3485ccc1280356f17a6f76bada7a6a39314f4f5b0c44e10779418d638b957ca5f8a49136b7e3dc0484f9805af522134cc85c68934d170f76289338d3
7
+ data.tar.gz: f52a4a789d434ae88fcc9f3e60f5f6f3350e139995ed39e90d120befb113ce2b7218ea03a468701ad99d3bb46133819b12e0456e4d973c109675fcc45957b9d5
@@ -100,6 +100,15 @@ module Synced
100
100
  Synced::Synchronizer.new(self, options).perform
101
101
  end
102
102
 
103
+ # Reset synced_all_at for given scope, this forces synced to sync
104
+ # all the records on the next sync. Useful for cases when you add
105
+ # a new column to be synced and you use updated since strategy for faster
106
+ # synchronization.
107
+ def reset_synced
108
+ return unless synced_only_updated
109
+ update_all(synced_all_at_key => nil)
110
+ end
111
+
103
112
  private
104
113
 
105
114
  def synced_column_presence(name)
@@ -1,3 +1,3 @@
1
1
  module Synced
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synced
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Grosjean
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-18 00:00:00.000000000 Z
12
+ date: 2014-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails