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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 93effbb9923e23f138e7b82c9faf2a6f2bf22c65
4
- data.tar.gz: bcd9e233e82e9601bbab880a79403d18b4a2f389
2
+ SHA256:
3
+ metadata.gz: c2c2e645519782a9d9dd2d17e75c568d9da22740fd72ae1df00378c274db862c
4
+ data.tar.gz: bddae30333bfe7676cf0efccce14d22296988f5a5bcaff40ee5e99bd2fa15054
5
5
  SHA512:
6
- metadata.gz: 396006e583aad103b778d7b95018aeed916cc163a08deb071722855be7dae57348f5a5e6a78a2b39d96ceb7b8fc705b98910543e01933fa6f11b45b15037b200
7
- data.tar.gz: 376b82eb69c737606f6cda84ea550cd6d71397769dc710674d16c3d3c9cf1da3f54b41bf70a1f5abb7a2e17c9ae9f2fe0af680341f41baf3f31ac6a599062480
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://travis-ci.org/BookingSync/synced.png?branch=master)](https://travis-ci.org/BookingSync/synced)
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 `>= 4.0.0` and Ruby `>= 2.0.0`.
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
@@ -1,3 +1,3 @@
1
1
  module Synced
2
- VERSION = "1.8.0"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.8.0
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: 2018-04-30 00:00:00.000000000 Z
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: 4.0.0
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: 4.0.0
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.1.4
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.1.4
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
- rubyforge_project:
241
- rubygems_version: 2.5.1
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: []