synced 1.8.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/synced/model.rb +2 -4
- data/lib/synced/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c2c2e645519782a9d9dd2d17e75c568d9da22740fd72ae1df00378c274db862c
|
4
|
+
data.tar.gz: bddae30333bfe7676cf0efccce14d22296988f5a5bcaff40ee5e99bd2fa15054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b7640f5888e65432bb20672b372dae02c2b92a81d48ada3799145526ccc5838f36652843822c872e308f99ec347723b8cbf462adc99db489e0c0bb567219c41
|
7
|
+
data.tar.gz: ed40aead1f87fa5f0eb4fa78fe1eead2c936deae3676caa516a31c60c822992d7d0bb3529e58abdd5c160a470af69128846380cb5c4e477443f3ec0f2f98389e
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
©[![Code Climate](https://codeclimate.com/github/BookingSync/synced.png)](https://codeclimate.com/github/BookingSync/synced)
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/BookingSync/synced/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BookingSync/synced/actions/workflows/ci.yml)
|
3
3
|
|
4
4
|
# Synced
|
5
5
|
|
@@ -13,7 +13,7 @@ added/changed/deleted objects since last synchronization.
|
|
13
13
|
|
14
14
|
## Requirements
|
15
15
|
|
16
|
-
This engine requires Rails `>=
|
16
|
+
This engine requires Rails `>= 6.0.0` and Ruby `>= 2.7.0`.
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
data/lib/synced/model.rb
CHANGED
@@ -127,7 +127,6 @@ module Synced
|
|
127
127
|
options[:transaction_per_page] = synced_transaction_per_page unless options.has_key?(:transaction_per_page)
|
128
128
|
options.merge!({
|
129
129
|
scope: scope,
|
130
|
-
strategy: strategy,
|
131
130
|
id_key: synced_id_key,
|
132
131
|
synced_data_key: synced_data_key,
|
133
132
|
data_key: synced_data_key,
|
@@ -142,7 +141,7 @@ module Synced
|
|
142
141
|
tolerance: synced_tolerance,
|
143
142
|
synced_endpoint: synced_endpoint
|
144
143
|
})
|
145
|
-
Synced::Synchronizer.new(self, options).perform
|
144
|
+
Synced::Synchronizer.new(self, strategy: strategy, **options).perform
|
146
145
|
end
|
147
146
|
|
148
147
|
# Reset last sync timestamp for given scope, this forces synced to sync
|
@@ -152,13 +151,12 @@ module Synced
|
|
152
151
|
def reset_synced(scope: scope_from_relation)
|
153
152
|
options = {
|
154
153
|
scope: scope,
|
155
|
-
strategy: synced_strategy,
|
156
154
|
only_updated: synced_only_updated,
|
157
155
|
initial_sync_since: synced_initial_sync_since,
|
158
156
|
timestamp_strategy: synced_timestamp_strategy,
|
159
157
|
synced_endpoint: synced_endpoint
|
160
158
|
}
|
161
|
-
Synced::Synchronizer.new(self, options).reset_synced
|
159
|
+
Synced::Synchronizer.new(self, strategy: synced_strategy, **options).reset_synced
|
162
160
|
end
|
163
161
|
|
164
162
|
private
|
data/lib/synced/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synced
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Grosjean
|
8
8
|
- Mariusz Pietrzyk
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: '6'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: '6'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bookingsync-api
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 1.0.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 1.0.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: hashie
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,7 +222,7 @@ homepage: https://github.com/BookingSync/synced
|
|
222
222
|
licenses:
|
223
223
|
- MIT
|
224
224
|
metadata: {}
|
225
|
-
post_install_message:
|
225
|
+
post_install_message:
|
226
226
|
rdoc_options: []
|
227
227
|
require_paths:
|
228
228
|
- lib
|
@@ -237,9 +237,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
- !ruby/object:Gem::Version
|
238
238
|
version: '0'
|
239
239
|
requirements: []
|
240
|
-
|
241
|
-
|
242
|
-
signing_key:
|
240
|
+
rubygems_version: 3.3.26
|
241
|
+
signing_key:
|
243
242
|
specification_version: 4
|
244
243
|
summary: Keep your BookingSync Application synced with BookingSync.
|
245
244
|
test_files: []
|