maestrano-connector-rails 2.1.1 → 2.1.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: f267b4786215b5d645fc55e422f0f03225467fd6
4
- data.tar.gz: e51ffb20f909c95602eb306ea74ea7e6910a3df5
3
+ metadata.gz: d879c0830748c6b3e1b278b8fe6009fb4cc831d2
4
+ data.tar.gz: cf2d4e2bf3147a0f14e6d841778eaf5164d06be8
5
5
  SHA512:
6
- metadata.gz: 9266c88d3068be3b351a9b1802c08ba69b355f413ff84065c7b05af74128a456be9570a1dcba3059d29ec6702d4ffb81bb38d8e27025cecdb1c7bef01f2c878c
7
- data.tar.gz: f3c38b491d1cd4c584b6c37c9cef44f5aa45ec53952de0cb7d33f05131dbe63bb69a4ad2bb316cee900f7c127d45c3576c6464949a14d4f7bc6fbea55c4121d0
6
+ metadata.gz: bcdbcbdf6bd8df45b6279a42944fad721bde471590502c674ce9be6c6a9f95da77eddc47069ba51923c244595d010eee7ce0183a78a9b8e1f82d04b4161483a5
7
+ data.tar.gz: 4812a5a394a9a4f31f5e2e57c37347c35afa71cdfe7634e031bcfaee094092e560dd74f2448ec522f848f12aa4465b4127bda39c258027a6685fb415f5dd2aa4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.1.2
2
+
3
+ ### Features
4
+ * Fix a bug when the user selects Historical data before the first synchronization
5
+ * and the first synchronization fails
6
+
1
7
  ## 2.1.1
2
8
 
3
9
  ### Features
@@ -121,7 +121,11 @@ module Maestrano::Connector::Rails::Concerns::Organization
121
121
  end
122
122
 
123
123
  def last_synchronization_date
124
- last_successful_synchronization&.updated_at || synchronizations&.first&.created_at || date_filtering_limit
124
+ last_successful_synchronization&.updated_at || historical_not_enabled_and_not_first_sync || date_filtering_limit
125
+ end
126
+
127
+ def historical_not_enabled_and_not_first_sync
128
+ !historical_data && synchronizations&.first&.created_at
125
129
  end
126
130
 
127
131
  def reset_synchronized_entities(default = false)
@@ -1,7 +1,7 @@
1
1
  module Maestrano
2
2
  module Connector
3
3
  module Rails
4
- VERSION = '2.1.1'.freeze
4
+ VERSION = '2.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maestrano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails