maestrano-connector-rails 2.0.2.pre.RC12 → 2.1.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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a79840e36486cf0d47441ff04cc1c8a1ac83c41
|
4
|
+
data.tar.gz: 1049ee41a84e02afdd8a1734345039a15f2a0798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc050b4d5e02bdad7debdc122a1e685ae8c3c0bf0c1582a4a6a490c2eb3282008e8e1eaebffa19023bea957d4edd9794d02bd5465e5ea9ff928d1c087ac7e9b3
|
7
|
+
data.tar.gz: 0289a0746e8e25d34a2c15b9d624fbd8e1cf63a8a3da17d93cd33b3fbc4ee390e54050e00bcd6ed0f587c982e5b61a5add805d68ba93fa14e8189ef3ed65f492
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## 2.1.0
|
2
|
+
|
3
|
+
### Features
|
4
|
+
* If there are no previous synchronizations and the synchronization fails, the last_synchronization_date is
|
5
|
+
set to the creation date of the failed sync (instead of resetting to the date_filtering_limit)
|
6
|
+
* Organization and User can now be overridden in the connectors
|
7
|
+
* Updates to layout of generated connectors
|
8
|
+
* Option to push/pull disable for a specific Organization
|
9
|
+
* Optional methods to limit currency updates
|
10
|
+
|
11
|
+
### Migration guide
|
12
|
+
* Please refer to this document in the
|
13
|
+
[Maestrano Guides](https://maestrano.atlassian.net/wiki/spaces/DEV/pages/102336339/Migration+Guides)
|
14
|
+
|
1
15
|
## 2.0.0
|
2
16
|
|
3
17
|
### Features
|
@@ -330,7 +330,7 @@ module Maestrano::Connector::Rails::Concerns::Entity
|
|
330
330
|
# or if there are some sub entities ids to send (completed_hash)
|
331
331
|
return if entities_to_send_to_connec.empty?
|
332
332
|
|
333
|
-
# Build a batch op from an idmap and a
|
333
|
+
# Build a batch op from an idmap and a completed hash
|
334
334
|
# with either only the id, or the id + id references
|
335
335
|
proc = lambda do |entity|
|
336
336
|
id = {id: [Maestrano::Connector::Rails::ConnecHelper.id_hash(entity[:idmap].external_id, @organization)]}
|
@@ -121,7 +121,7 @@ module Maestrano::Connector::Rails::Concerns::Organization
|
|
121
121
|
end
|
122
122
|
|
123
123
|
def last_synchronization_date
|
124
|
-
last_successful_synchronization&.updated_at || date_filtering_limit
|
124
|
+
last_successful_synchronization&.updated_at || synchronizations&.first&.created_at || date_filtering_limit
|
125
125
|
end
|
126
126
|
|
127
127
|
def reset_synchronized_entities(default = false)
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_runtime_dependency('bootstrap-sass')
|
32
32
|
s.add_runtime_dependency('config')
|
33
33
|
s.add_runtime_dependency('figaro')
|
34
|
-
s.add_runtime_dependency('jquery-rails', '>=
|
34
|
+
s.add_runtime_dependency('jquery-rails', '>= 4.0.4')
|
35
35
|
s.add_runtime_dependency('haml-rails')
|
36
36
|
s.add_runtime_dependency('hash_mapper', '>= 0.2.2')
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestrano-connector-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maestrano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 4.0.4
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 4.0.4
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: haml-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -506,12 +506,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
506
506
|
version: 2.3.0
|
507
507
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
508
508
|
requirements:
|
509
|
-
- - "
|
509
|
+
- - ">="
|
510
510
|
- !ruby/object:Gem::Version
|
511
|
-
version:
|
511
|
+
version: '0'
|
512
512
|
requirements: []
|
513
513
|
rubyforge_project:
|
514
|
-
rubygems_version: 2.
|
514
|
+
rubygems_version: 2.5.1
|
515
515
|
signing_key:
|
516
516
|
specification_version: 4
|
517
517
|
summary: Rails framework to build connector with Maestrano
|