acts_as_replaceable 1.2.2 → 1.3.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: 45a6e64f4c56d4fa4be699fc72ca202a83f389f6
4
- data.tar.gz: 8f5407d48a07186d0487df36cc0379330f0cfca8
3
+ metadata.gz: a88441e896770f805a900a6f82f9987bb13b18c5
4
+ data.tar.gz: 5472e13602233996bf0657e04f30819f297cb801
5
5
  SHA512:
6
- metadata.gz: 42012a704fde1c4d373fda3a577117af46bb305875e04a4d54fbd8468fd634d9e4a724e06b9a22c777e58b0c0945cffadb61eea8ab2e4d877c5047728334dd5d
7
- data.tar.gz: 663c304f39a04340aa7666c763210fb69926b56228c436771716aa78591cb605999ba286721118bbceaf6952f76d750c3c91dd2e21c187bc06a8f403ccfe3a45
6
+ metadata.gz: 97080bcca7b0fc3e5e9adc8fc0d953ea6a54658a87eb440d61f0903aaf9b13d55cdf6108a66fe4a743047dc117357d33dec212017c8e6ea6b969f030b25fdd66
7
+ data.tar.gz: 1144c66536fd3503c59fa8bc366efc92a6d8c31b75e50dd9f36baa2b05e7036d1a5b86b4b2a60d6b5984735c73c5e662e1de42568c42d3115beda44ff9a195cc
@@ -143,13 +143,13 @@ module ActsAsReplaceable
143
143
 
144
144
  module InstanceMethods
145
145
  # Override the create or update method so we can run callbacks, but opt not to save if we don't need to
146
- def create_record(*args)
146
+ def _create_record(*args)
147
147
  ActsAsReplaceable::HelperMethods.lock_if(ActsAsReplaceable.concurrency, self) do
148
148
  find_and_replace
149
149
  if @has_not_changed
150
150
  logger.info "(acts_as_replaceable) Found unchanged #{self.class.to_s} ##{id} #{"- Name: #{name}" if respond_to?('name')}"
151
151
  elsif @has_been_replaced
152
- update_record(*args)
152
+ _update_record(*args)
153
153
  logger.info "(acts_as_replaceable) Updated existing #{self.class.to_s} ##{id} #{"- Name: #{name}" if respond_to?('name')}"
154
154
  else
155
155
  super
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_replaceable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen
@@ -17,62 +17,62 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '3.2'
21
- - - "<="
20
+ version: 4.0.6
21
+ - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: 4.0.5
23
+ version: 4.2.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '3.2'
31
- - - "<="
30
+ version: 4.0.6
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.5
33
+ version: 4.2.0
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: bundler
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.5'
41
41
  type: :development
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.5'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sqlite3
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.3'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.3'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec-rails
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '2.0'
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '2.0'
76
76
  description:
77
77
  email: technical@rrnpilot.org
78
78
  executables: []