pub_sub_model_sync 0.4.2 → 0.4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0bd383488f8214ca409871adf231319b905f41833b8a9db9c2bc58a9d5a2691
4
- data.tar.gz: c05ca888a6c085280407f9a1e26fe7552efa1c33f6be7735129ff2f8addd77fc
3
+ metadata.gz: 30ddd2acf4ff439f66a35b747794b606dbe7949c31fe3f9bf064e87e718c8e48
4
+ data.tar.gz: 95724a2190dd0cdb8d9a4ef4e841c90462cd53794dbf5cde7c04e2699171f55a
5
5
  SHA512:
6
- metadata.gz: f8769aee9d08936fd9fd4707e1dd5664c30ccbb6b2b59e386182ac4a0c173b46813df9ca5ccc3a3e3139af4297c160ca5ddb05a555d8f2c1fbb719e7a54384f4
7
- data.tar.gz: bc25309e3894fd5905d0e3fdc180d93a98cfced77ff006f24d0044f1db717f5b0fa475722126901ec18381d3e4890a2a0ff00f7ecb234405cdad4a1e7049a5fb
6
+ metadata.gz: 417260220e8c7c89a0fd37a23814d4b5436f29218bd212541b11e9ec1f815cb283fc8f1a1d579dd23ee5ada60c8138cc6a53515ddea2a0ec7dd75c5ee59c2be3
7
+ data.tar.gz: ded28709d868ec234553ac1d47927d48423f909126fc1a4b119d5cb98801181927883ae1b0b7e01c979b0225bafbd6685f2f7b9d843722da673e3d63760b8057
@@ -1,6 +1,7 @@
1
1
  # This is the configuration used to check the rubocop source code.
2
2
 
3
3
  AllCops:
4
+ TargetRubyVersion: 2.4
4
5
  Exclude:
5
6
  - 'spec/spec_helper.rb'
6
7
  - 'Gemfile'
@@ -11,6 +12,9 @@ Metrics/BlockLength:
11
12
  Exclude:
12
13
  - 'spec/**/*.rb'
13
14
 
15
+ Layout/LineLength:
16
+ Max: 80
17
+
14
18
  Style/SymbolArray:
15
19
  Exclude:
16
20
  - 'Gemfile'
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ # 0.4.2.1 (August 20, 2020)
4
+ - Improve ```ps_subscriber_changed?``` to run validations and check for changes
5
+
6
+ # 0.4.2 (May 12, 2020)
7
+ - chore: remove typo
8
+
3
9
  # 0.4.1 (May 12, 2020)
4
10
  - chore: improve log messages
5
11
  - feat: do not update model if no changes
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pub_sub_model_sync (0.4.2)
4
+ pub_sub_model_sync (0.4.2.1)
5
5
  rails
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -272,6 +272,12 @@ Note: Be careful with collision of names
272
272
  end
273
273
  ```
274
274
 
275
+ ## TODO
276
+ - Hooks/callbacks when message processed or failed
277
+ - Add alias attributes when subscribing (similar to publisher)
278
+ - Add flag ```model.ps_processing``` to indicate that the current transaction is being processed by pub/sub
279
+
280
+
275
281
  ## Contributing
276
282
 
277
283
  Bug reports and pull requests are welcome on GitHub at https://github.com/owen2345/pub_sub_model_sync. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -6,8 +6,9 @@ module PubSubModelSync
6
6
  base.extend(ClassMethods)
7
7
  end
8
8
 
9
- # check if model was changed to .save!
9
+ # check if model was changed to skip nonsense .update!()
10
10
  def ps_subscriber_changed?(_data)
11
+ validate
11
12
  changed?
12
13
  end
13
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PubSubModelSync
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.2.1'
5
5
  end
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'pub_sub_model_sync/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
+ spec.required_ruby_version = '>= 2.4'
8
9
  spec.name = 'pub_sub_model_sync'
9
10
  spec.version = PubSubModelSync::VERSION
10
11
  spec.authors = ['Owen']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pub_sub_model_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-15 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: '0'
142
+ version: '2.4'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="