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 +4 -4
- data/lib/synced/model.rb +9 -0
- data/lib/synced/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b1d111a0f8399a92dc2e05d16a7f5d2ec1b483f
|
4
|
+
data.tar.gz: 5e294cabc9c1f81592269017b74b6463b554b91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b93a1b2a3485ccc1280356f17a6f76bada7a6a39314f4f5b0c44e10779418d638b957ca5f8a49136b7e3dc0484f9805af522134cc85c68934d170f76289338d3
|
7
|
+
data.tar.gz: f52a4a789d434ae88fcc9f3e60f5f6f3350e139995ed39e90d120befb113ce2b7218ea03a468701ad99d3bb46133819b12e0456e4d973c109675fcc45957b9d5
|
data/lib/synced/model.rb
CHANGED
@@ -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)
|
data/lib/synced/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|