dalliance 0.10.0 → 0.11.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
  SHA256:
3
- metadata.gz: 17d8f3041b798bd3d9ecffe845c0448716006fa138b2f287e2b6bf9d23398de6
4
- data.tar.gz: 93e622fd2d04e5bca69d186921e7c37c458a7939a7264737ecb025949af2f61a
3
+ metadata.gz: 35460471fcbc38a777b1c2c1fc85fcaf125c43011cd43a619cde99c35b2344fe
4
+ data.tar.gz: 76e1ce25a3c16717b13b8c077706d66338c6cd5af2012e513fe0a16777f0d3b7
5
5
  SHA512:
6
- metadata.gz: 5c6c450cce286913f4ff051ebe7cbdc2f3d6f7fc3035609e3feb83d86dc3b6e3c1d05156016ca60106e9f6ed9186735081e6ed0808c7d4908c3970277a529e54
7
- data.tar.gz: 1538a6fdc3c75bb24e13ab63e2da7135c40ec74295e15b827b3045c966e5e97acf2e7d1d4db92af7c1ada1e969c54a32740d178c0ef8d80817386640fcc5b590
6
+ metadata.gz: aec679732b1385ef1ed52b2affbc098ea350cdf5cc348b454bbaddaa0161c1ba8589fd54924494082dedae324c5a9bc8783cb672c9df2de830aac7a9b2067d2c
7
+ data.tar.gz: 4ed750521ad5b32f0adbc69da26ef5c2e6a58871140e0f10a2e19d4d8cddd0c4562d91040ddeef2845e610734c110c7a17222bf10970869f3b7a6c7a91b12573
data/Appraisals CHANGED
@@ -1,11 +1,3 @@
1
- appraise "rails-5.0" do
2
- gem "rails", "~> 5.0.0"
3
- end
4
-
5
- appraise "rails-5.1" do
6
- gem "rails", "~> 5.1.0"
7
- end
8
-
9
1
  appraise "rails-5.2" do
10
2
  gem "rails", "~> 5.2.2"
11
3
  end
data/dalliance.gemspec CHANGED
@@ -5,8 +5,8 @@ require "dalliance/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "dalliance"
7
7
  s.version = Dalliance::VERSION::STRING
8
- s.authors = ["Eric Sullivan"]
9
- s.email = ["eric.sullivan@annkissam.com"]
8
+ s.authors = ["Eric Sullivan", "Nick Clifford", "Sam Carlberg"]
9
+ s.email = ["eric.sullivan@annkissam.com", "nicholas.clifford@annkissam.com", "sam.carlberg@annkissam.com"]
10
10
  s.homepage = "https://github.com/annkissam/dalliance"
11
11
  s.summary = %q{ Wrapper for an ActiveRecord model with a single ascynhronous method }
12
12
  s.description = %q{ Background processing for ActiveRecord using a 'delayable' worker and a state_machine }
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_dependency('rails', '>= 5.0', "< 6.2")
19
+ s.add_dependency('rails', '>= 5.2', "< 6.2")
20
20
 
21
- s.add_dependency('state_machine')
21
+ s.add_dependency('aasm')
22
22
 
23
23
  s.add_development_dependency('rspec', '>= 3.0.0')
24
24
  s.add_development_dependency('delayed_job', '>= 3.0.0')
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dalliance (0.8.1)
5
- rails (>= 5.0, < 6.2)
6
- state_machine
4
+ dalliance (0.11.0)
5
+ aasm
6
+ rails (>= 5.2, < 6.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ aasm (5.2.0)
12
+ concurrent-ruby (~> 1.0)
11
13
  actioncable (5.2.4.1)
12
14
  actionpack (= 5.2.4.1)
13
15
  nio4r (~> 2.0)
@@ -82,7 +84,9 @@ GEM
82
84
  marcel (0.3.3)
83
85
  mimemagic (~> 0.3.2)
84
86
  method_source (0.9.2)
85
- mimemagic (0.3.4)
87
+ mimemagic (0.3.10)
88
+ nokogiri (~> 1)
89
+ rake
86
90
  mini_mime (1.0.2)
87
91
  mini_portile2 (2.4.0)
88
92
  minitest (5.14.0)
@@ -175,7 +179,6 @@ GEM
175
179
  activesupport (>= 4.0)
176
180
  sprockets (>= 3.0.0)
177
181
  sqlite3 (1.4.2)
178
- state_machine (1.2.0)
179
182
  thor (0.20.3)
180
183
  thread_safe (0.3.6)
181
184
  tilt (2.0.10)
@@ -206,4 +209,4 @@ DEPENDENCIES
206
209
  sqlite3
207
210
 
208
211
  BUNDLED WITH
209
- 1.17.3
212
+ 2.3.3
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dalliance (0.8.1)
5
- rails (>= 5.0, < 6.2)
6
- state_machine
4
+ dalliance (0.11.0)
5
+ aasm
6
+ rails (>= 5.2, < 6.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ aasm (5.2.0)
12
+ concurrent-ruby (~> 1.0)
11
13
  actioncable (6.0.2.1)
12
14
  actionpack (= 6.0.2.1)
13
15
  nio4r (~> 2.0)
@@ -95,7 +97,9 @@ GEM
95
97
  marcel (0.3.3)
96
98
  mimemagic (~> 0.3.2)
97
99
  method_source (0.9.2)
98
- mimemagic (0.3.4)
100
+ mimemagic (0.3.10)
101
+ nokogiri (~> 1)
102
+ rake
99
103
  mini_mime (1.0.2)
100
104
  mini_portile2 (2.4.0)
101
105
  minitest (5.14.0)
@@ -190,7 +194,6 @@ GEM
190
194
  activesupport (>= 4.0)
191
195
  sprockets (>= 3.0.0)
192
196
  sqlite3 (1.4.2)
193
- state_machine (1.2.0)
194
197
  thor (0.20.3)
195
198
  thread_safe (0.3.6)
196
199
  tilt (2.0.10)
@@ -222,4 +225,4 @@ DEPENDENCIES
222
225
  sqlite3
223
226
 
224
227
  BUNDLED WITH
225
- 1.17.3
228
+ 2.3.3
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dalliance (0.8.1)
5
- rails (>= 5.0, < 6.2)
6
- state_machine
4
+ dalliance (0.11.0)
5
+ aasm
6
+ rails (>= 5.2, < 6.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ aasm (5.2.0)
12
+ concurrent-ruby (~> 1.0)
11
13
  actioncable (6.1.2.1)
12
14
  actionpack (= 6.1.2.1)
13
15
  activesupport (= 6.1.2.1)
@@ -98,7 +100,9 @@ GEM
98
100
  marcel (0.3.3)
99
101
  mimemagic (~> 0.3.2)
100
102
  method_source (1.0.0)
101
- mimemagic (0.3.5)
103
+ mimemagic (0.3.10)
104
+ nokogiri (~> 1)
105
+ rake
102
106
  mini_mime (1.0.2)
103
107
  mini_portile2 (2.5.0)
104
108
  minitest (5.14.3)
@@ -199,7 +203,6 @@ GEM
199
203
  activesupport (>= 4.0)
200
204
  sprockets (>= 3.0.0)
201
205
  sqlite3 (1.4.2)
202
- state_machine (1.2.0)
203
206
  thor (1.1.0)
204
207
  tilt (2.0.10)
205
208
  tzinfo (2.0.4)
@@ -230,4 +233,4 @@ DEPENDENCIES
230
233
  sqlite3
231
234
 
232
235
  BUNDLED WITH
233
- 1.17.3
236
+ 2.3.3
@@ -1,7 +1,7 @@
1
1
  module Dalliance
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 10
4
+ MINOR = 11
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
data/lib/dalliance.rb CHANGED
@@ -1,10 +1,8 @@
1
1
  require 'rails'
2
2
 
3
- require 'state_machine'
3
+ require 'aasm'
4
4
  require 'benchmark'
5
5
 
6
- require 'dalliance/state_machine'
7
-
8
6
  require 'dalliance/version'
9
7
  require 'dalliance/workers'
10
8
  require 'dalliance/progress_meter'
@@ -65,8 +63,15 @@ module Dalliance
65
63
  end
66
64
 
67
65
  def detect_worker_class
68
- return Dalliance::Workers::DelayedJob if defined? ::Delayed::Job
69
- return Dalliance::Workers::Resque if defined? ::Resque
66
+ if defined? ::Delayed::Job
67
+ ActiveSupport::Deprecation.warn(
68
+ 'Support for Delayed::Job will be removed in future versions. ' \
69
+ 'Use Resque instead.'
70
+ )
71
+ return Dalliance::Workers::DelayedJob
72
+ end
73
+
74
+ return Dalliance::Workers::Resque if defined? ::Resque
70
75
  end
71
76
 
72
77
  def detect_logger
@@ -81,6 +86,8 @@ module Dalliance
81
86
  end
82
87
 
83
88
  included do
89
+ include ::AASM
90
+
84
91
  has_one :dalliance_progress_meter, :as => :dalliance_progress_model, :class_name => '::Dalliance::ProgressMeter', :dependent => :destroy
85
92
 
86
93
  serialize :dalliance_error_hash, Hash
@@ -94,48 +101,48 @@ module Dalliance
94
101
  scope :cancel_requested, -> { where(:dalliance_status => 'cancel_requested') }
95
102
  scope :cancelled, -> { where(:dalliance_status => 'cancelled') }
96
103
 
97
- state_machine :dalliance_status, :initial => :pending do
98
- state :pending
99
- state :processing
100
- state :validation_error
101
- state :processing_error
102
- state :completed
103
- state :cancel_requested
104
- state :cancelled
104
+ aasm :dalliance_status, initial: :pending do
105
+ state :pending, display: 'Pending'
106
+ state :processing, display: 'Processing'
107
+ state :validation_error, display: 'Validation Error'
108
+ state :processing_error, display: 'Processing Error'
109
+ state :completed, display: 'Completed'
110
+ state :cancel_requested, display: 'Cancellation Requested'
111
+ state :cancelled, display: 'Cancelled'
105
112
 
106
113
  #event :queue_dalliance do
107
- # transition :processing_error => :pending
114
+ # transitions from: :processing_error, to: :pending
108
115
  #end
109
116
 
110
117
  event :start_dalliance do
111
- transition :pending => :processing
118
+ transitions from: :pending, to: :processing
112
119
  end
113
120
 
114
121
  event :validation_error_dalliance do
115
- transition :processing => :validation_error
122
+ transitions from: :processing, to: :validation_error
116
123
  end
117
124
 
118
125
  event :error_dalliance do
119
- transition all => :processing_error
126
+ transitions to: :processing_error
120
127
  end
121
128
 
122
129
  event :finish_dalliance do
123
- transition [:processing, :cancel_requested] => :completed
130
+ transitions from: [:processing, :cancel_requested], to: :completed
124
131
  end
125
132
 
126
133
  event :reprocess_dalliance do
127
- transition [:validation_error, :processing_error, :completed] => :pending
134
+ transitions from: [:validation_error, :processing_error, :completed], to: :pending
128
135
  end
129
136
 
130
137
  # Requests the record to stop processing. This does NOT cause processing
131
138
  # to stop! Each model is required to handle cancellation on its own by
132
139
  # periodically checking the dalliance status
133
140
  event :request_cancel_dalliance do
134
- transition [:pending, :processing] => :cancel_requested
141
+ transitions from: [:pending, :processing], to: :cancel_requested
135
142
  end
136
143
 
137
144
  event :cancelled_dalliance do
138
- transition [:cancel_requested] => :cancelled
145
+ transitions from: [:cancel_requested], to: :cancelled
139
146
  end
140
147
  end
141
148
  #END state_machine(s)
@@ -145,7 +152,9 @@ module Dalliance
145
152
 
146
153
  module ClassMethods
147
154
  def dalliance_status_in_load_select_array
148
- state_machine(:dalliance_status).states.sort_by(&:name).map {|state| [state.human_name, state.name.to_s] }
155
+ aasm(:dalliance_status).states.sort_by(&:name).map do |state|
156
+ [state.human_name, state.name.to_s]
157
+ end
149
158
  end
150
159
 
151
160
  def dalliance_durations
@@ -174,9 +183,16 @@ module Dalliance
174
183
  def store_dalliance_validation_error!
175
184
  self.dalliance_error_hash = {}
176
185
 
177
- self.errors.each do |attribute, error|
178
- self.dalliance_error_hash[attribute] ||= []
179
- self.dalliance_error_hash[attribute] << error
186
+ if defined?(Rails) && Rails.gem_version >= Gem::Version.new('6.1')
187
+ self.errors.each do |error|
188
+ self.dalliance_error_hash[error.attribute] ||= []
189
+ self.dalliance_error_hash[error.attribute] << error.message
190
+ end
191
+ else
192
+ self.errors.each do |attribute, error|
193
+ self.dalliance_error_hash[attribute] ||= []
194
+ self.dalliance_error_hash[attribute] << error
195
+ end
180
196
  end
181
197
 
182
198
  begin
@@ -189,11 +205,7 @@ module Dalliance
189
205
 
190
206
  self.dalliance_error_hash = { error: 'Persistance Failure: See Logs' }
191
207
 
192
- if defined?(Rails) && ::Rails::VERSION::MAJOR > 3
193
- self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash )
194
- else
195
- self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash.to_yaml )
196
- end
208
+ self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash )
197
209
  # rubocop:disable Lint/SuppressedException
198
210
  rescue
199
211
  # rubocop:enable Lint/SuppressedException
@@ -209,6 +221,10 @@ module Dalliance
209
221
  validation_error? || processing_error? || completed? || cancelled?
210
222
  end
211
223
 
224
+ def human_dalliance_status_name
225
+ I18n.t("activerecord.state_machines.dalliance_status.states.#{dalliance_status}")
226
+ end
227
+
212
228
  # Cancels the job and removes it from the queue if has not already been taken
213
229
  # by a worker. If the job is processing, it is up to the job implementation
214
230
  # to stop and do any necessary cleanup. If the job does not honor the
@@ -335,11 +351,7 @@ module Dalliance
335
351
 
336
352
  self.dalliance_error_hash = { error: 'Persistance Failure: See Logs' }
337
353
 
338
- if defined?(Rails) && ::Rails::VERSION::MAJOR > 3
339
- self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash )
340
- else
341
- self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash.to_yaml )
342
- end
354
+ self.class.where(id: self.id).update_all(dalliance_status: dalliance_status, dalliance_error_hash: dalliance_error_hash )
343
355
  # rubocop:disable Lint/SuppressedException
344
356
  rescue
345
357
  # rubocop:enable Lint/SuppressedException
@@ -27,6 +27,13 @@ RSpec.describe 'Dalliance' do
27
27
  end
28
28
  end
29
29
 
30
+ context "human_dalliance_status_name" do
31
+ it "should display the correct locale" do
32
+ subject.dalliance_status = 'validation_error'
33
+ expect(subject.human_dalliance_status_name).to eq('Validation Error')
34
+ end
35
+ end
36
+
30
37
  context "processing_queue" do
31
38
  before do
32
39
  DallianceModel.dalliance_options[:queue] = queue
@@ -40,8 +40,8 @@ RSpec.describe DallianceModel do
40
40
  it 'raises an error' do
41
41
  expect { subject.dalliance_background_reprocess }
42
42
  .to raise_error(
43
- StateMachine::InvalidTransition,
44
- /^Cannot transition dalliance_status via :reprocess_dalliance from :pending.*/
43
+ AASM::InvalidTransition,
44
+ /^Event 'reprocess_dalliance' cannot transition from 'pending'.*/
45
45
  )
46
46
  end
47
47
  end
data/spec/spec_helper.rb CHANGED
@@ -11,7 +11,7 @@ rescue LoadError
11
11
  end
12
12
  # rubocop:enable Lint/SuppressedException
13
13
 
14
- require 'state_machine'
14
+ require 'aasm/rspec'
15
15
  require 'byebug'
16
16
 
17
17
  #Required for testing...
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dalliance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Sullivan
8
+ - Nick Clifford
9
+ - Sam Carlberg
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
13
+ date: 2022-01-06 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: rails
@@ -16,7 +18,7 @@ dependencies:
16
18
  requirements:
17
19
  - - ">="
18
20
  - !ruby/object:Gem::Version
19
- version: '5.0'
21
+ version: '5.2'
20
22
  - - "<"
21
23
  - !ruby/object:Gem::Version
22
24
  version: '6.2'
@@ -26,12 +28,12 @@ dependencies:
26
28
  requirements:
27
29
  - - ">="
28
30
  - !ruby/object:Gem::Version
29
- version: '5.0'
31
+ version: '5.2'
30
32
  - - "<"
31
33
  - !ruby/object:Gem::Version
32
34
  version: '6.2'
33
35
  - !ruby/object:Gem::Dependency
34
- name: state_machine
36
+ name: aasm
35
37
  requirement: !ruby/object:Gem::Requirement
36
38
  requirements:
37
39
  - - ">="
@@ -160,6 +162,8 @@ description: " Background processing for ActiveRecord using a 'delayable' worker
160
162
  a state_machine "
161
163
  email:
162
164
  - eric.sullivan@annkissam.com
165
+ - nicholas.clifford@annkissam.com
166
+ - sam.carlberg@annkissam.com
163
167
  executables: []
164
168
  extensions: []
165
169
  extra_rdoc_files: []
@@ -174,10 +178,6 @@ files:
174
178
  - Rakefile
175
179
  - config/locales/en.yml
176
180
  - dalliance.gemspec
177
- - gemfiles/rails_5.0.gemfile
178
- - gemfiles/rails_5.0.gemfile.lock
179
- - gemfiles/rails_5.1.gemfile
180
- - gemfiles/rails_5.1.gemfile.lock
181
181
  - gemfiles/rails_5.2.gemfile
182
182
  - gemfiles/rails_5.2.gemfile.lock
183
183
  - gemfiles/rails_6.0.gemfile
@@ -188,7 +188,6 @@ files:
188
188
  - lib/dalliance/engine.rb
189
189
  - lib/dalliance/progress_meter.rb
190
190
  - lib/dalliance/schema.rb
191
- - lib/dalliance/state_machine.rb
192
191
  - lib/dalliance/version.rb
193
192
  - lib/dalliance/workers.rb
194
193
  - lib/dalliance/workers/delayed_job.rb
@@ -221,8 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
220
  - !ruby/object:Gem::Version
222
221
  version: '0'
223
222
  requirements: []
224
- rubyforge_project:
225
- rubygems_version: 2.7.6
223
+ rubygems_version: 3.1.6
226
224
  signing_key:
227
225
  specification_version: 4
228
226
  summary: Wrapper for an ActiveRecord model with a single ascynhronous method
@@ -1,12 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "rails", "~> 5.0.0"
7
-
8
- group :development, :test do
9
- gem "byebug"
10
- end
11
-
12
- gemspec path: "../"
@@ -1,201 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- dalliance (0.8.1)
5
- rails (>= 5.0, < 6.2)
6
- state_machine
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (5.0.7.2)
12
- actionpack (= 5.0.7.2)
13
- nio4r (>= 1.2, < 3.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.7.2)
16
- actionpack (= 5.0.7.2)
17
- actionview (= 5.0.7.2)
18
- activejob (= 5.0.7.2)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.0.7.2)
22
- actionview (= 5.0.7.2)
23
- activesupport (= 5.0.7.2)
24
- rack (~> 2.0)
25
- rack-test (~> 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.7.2)
29
- activesupport (= 5.0.7.2)
30
- builder (~> 3.1)
31
- erubis (~> 2.7.0)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.0.7.2)
35
- activesupport (= 5.0.7.2)
36
- globalid (>= 0.3.6)
37
- activemodel (5.0.7.2)
38
- activesupport (= 5.0.7.2)
39
- activerecord (5.0.7.2)
40
- activemodel (= 5.0.7.2)
41
- activesupport (= 5.0.7.2)
42
- arel (~> 7.0)
43
- activesupport (5.0.7.2)
44
- concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (>= 0.7, < 2)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
48
- appraisal (2.2.0)
49
- bundler
50
- rake
51
- thor (>= 0.14.0)
52
- arel (7.1.4)
53
- ast (2.4.0)
54
- builder (3.2.4)
55
- bundler-audit (0.6.1)
56
- bundler (>= 1.2.0, < 3)
57
- thor (~> 0.18)
58
- byebug (11.1.1)
59
- concurrent-ruby (1.1.6)
60
- crass (1.0.6)
61
- delayed_job (4.1.8)
62
- activesupport (>= 3.0, < 6.1)
63
- delayed_job_active_record (4.1.4)
64
- activerecord (>= 3.0, < 6.1)
65
- delayed_job (>= 3.0, < 5)
66
- diff-lcs (1.3)
67
- erubis (2.7.0)
68
- globalid (0.4.2)
69
- activesupport (>= 4.2.0)
70
- i18n (1.8.2)
71
- concurrent-ruby (~> 1.0)
72
- jaro_winkler (1.5.4)
73
- loofah (2.4.0)
74
- crass (~> 1.0.2)
75
- nokogiri (>= 1.5.9)
76
- mail (2.7.1)
77
- mini_mime (>= 0.1.1)
78
- method_source (0.9.2)
79
- mini_mime (1.0.2)
80
- mini_portile2 (2.4.0)
81
- minitest (5.14.0)
82
- mono_logger (1.1.0)
83
- multi_json (1.14.1)
84
- mustermann (1.1.1)
85
- ruby2_keywords (~> 0.0.1)
86
- nio4r (2.5.2)
87
- nokogiri (1.10.8)
88
- mini_portile2 (~> 2.4.0)
89
- parallel (1.19.1)
90
- parser (2.7.0.3)
91
- ast (~> 2.4.0)
92
- rack (2.2.2)
93
- rack-protection (2.0.8.1)
94
- rack
95
- rack-test (0.6.3)
96
- rack (>= 1.0)
97
- rails (5.0.7.2)
98
- actioncable (= 5.0.7.2)
99
- actionmailer (= 5.0.7.2)
100
- actionpack (= 5.0.7.2)
101
- actionview (= 5.0.7.2)
102
- activejob (= 5.0.7.2)
103
- activemodel (= 5.0.7.2)
104
- activerecord (= 5.0.7.2)
105
- activesupport (= 5.0.7.2)
106
- bundler (>= 1.3.0)
107
- railties (= 5.0.7.2)
108
- sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.3)
110
- activesupport (>= 4.2.0)
111
- nokogiri (>= 1.6)
112
- rails-html-sanitizer (1.3.0)
113
- loofah (~> 2.3)
114
- railties (5.0.7.2)
115
- actionpack (= 5.0.7.2)
116
- activesupport (= 5.0.7.2)
117
- method_source
118
- rake (>= 0.8.7)
119
- thor (>= 0.18.1, < 2.0)
120
- rainbow (3.0.0)
121
- rake (13.0.1)
122
- redis (4.1.3)
123
- redis-namespace (1.7.0)
124
- redis (>= 3.0.4)
125
- resque (2.0.0)
126
- mono_logger (~> 1.0)
127
- multi_json (~> 1.0)
128
- redis-namespace (~> 1.6)
129
- sinatra (>= 0.9.2)
130
- vegas (~> 0.1.2)
131
- rexml (3.2.4)
132
- rspec (3.9.0)
133
- rspec-core (~> 3.9.0)
134
- rspec-expectations (~> 3.9.0)
135
- rspec-mocks (~> 3.9.0)
136
- rspec-core (3.9.1)
137
- rspec-support (~> 3.9.1)
138
- rspec-expectations (3.9.0)
139
- diff-lcs (>= 1.2.0, < 2.0)
140
- rspec-support (~> 3.9.0)
141
- rspec-mocks (3.9.1)
142
- diff-lcs (>= 1.2.0, < 2.0)
143
- rspec-support (~> 3.9.0)
144
- rspec-support (3.9.2)
145
- rspec_junit_formatter (0.4.1)
146
- rspec-core (>= 2, < 4, != 2.12.0)
147
- rubocop (0.80.0)
148
- jaro_winkler (~> 1.5.1)
149
- parallel (~> 1.10)
150
- parser (>= 2.7.0.1)
151
- rainbow (>= 2.2.2, < 4.0)
152
- rexml
153
- ruby-progressbar (~> 1.7)
154
- unicode-display_width (>= 1.4.0, < 1.7)
155
- ruby-progressbar (1.10.1)
156
- ruby2_keywords (0.0.2)
157
- sinatra (2.0.8.1)
158
- mustermann (~> 1.0)
159
- rack (~> 2.0)
160
- rack-protection (= 2.0.8.1)
161
- tilt (~> 2.0)
162
- sprockets (4.0.0)
163
- concurrent-ruby (~> 1.0)
164
- rack (> 1, < 3)
165
- sprockets-rails (3.2.1)
166
- actionpack (>= 4.0)
167
- activesupport (>= 4.0)
168
- sprockets (>= 3.0.0)
169
- sqlite3 (1.4.2)
170
- state_machine (1.2.0)
171
- thor (0.20.3)
172
- thread_safe (0.3.6)
173
- tilt (2.0.10)
174
- tzinfo (1.2.6)
175
- thread_safe (~> 0.1)
176
- unicode-display_width (1.6.1)
177
- vegas (0.1.11)
178
- rack (>= 1.0.0)
179
- websocket-driver (0.6.5)
180
- websocket-extensions (>= 0.1.0)
181
- websocket-extensions (0.1.4)
182
-
183
- PLATFORMS
184
- ruby
185
-
186
- DEPENDENCIES
187
- appraisal
188
- bundler-audit
189
- byebug
190
- dalliance!
191
- delayed_job (>= 3.0.0)
192
- delayed_job_active_record
193
- rails (~> 5.0.0)
194
- resque
195
- rspec (>= 3.0.0)
196
- rspec_junit_formatter
197
- rubocop (~> 0.78)
198
- sqlite3
199
-
200
- BUNDLED WITH
201
- 1.17.3
@@ -1,12 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "rails", "~> 5.1.0"
7
-
8
- group :development, :test do
9
- gem "byebug"
10
- end
11
-
12
- gemspec path: "../"
@@ -1,201 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- dalliance (0.8.1)
5
- rails (>= 5.0, < 6.2)
6
- state_machine
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (5.1.7)
12
- actionpack (= 5.1.7)
13
- nio4r (~> 2.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.1.7)
16
- actionpack (= 5.1.7)
17
- actionview (= 5.1.7)
18
- activejob (= 5.1.7)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.1.7)
22
- actionview (= 5.1.7)
23
- activesupport (= 5.1.7)
24
- rack (~> 2.0)
25
- rack-test (>= 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.1.7)
29
- activesupport (= 5.1.7)
30
- builder (~> 3.1)
31
- erubi (~> 1.4)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.1.7)
35
- activesupport (= 5.1.7)
36
- globalid (>= 0.3.6)
37
- activemodel (5.1.7)
38
- activesupport (= 5.1.7)
39
- activerecord (5.1.7)
40
- activemodel (= 5.1.7)
41
- activesupport (= 5.1.7)
42
- arel (~> 8.0)
43
- activesupport (5.1.7)
44
- concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (>= 0.7, < 2)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
48
- appraisal (2.2.0)
49
- bundler
50
- rake
51
- thor (>= 0.14.0)
52
- arel (8.0.0)
53
- ast (2.4.0)
54
- builder (3.2.4)
55
- bundler-audit (0.6.1)
56
- bundler (>= 1.2.0, < 3)
57
- thor (~> 0.18)
58
- byebug (11.1.1)
59
- concurrent-ruby (1.1.6)
60
- crass (1.0.6)
61
- delayed_job (4.1.8)
62
- activesupport (>= 3.0, < 6.1)
63
- delayed_job_active_record (4.1.4)
64
- activerecord (>= 3.0, < 6.1)
65
- delayed_job (>= 3.0, < 5)
66
- diff-lcs (1.3)
67
- erubi (1.9.0)
68
- globalid (0.4.2)
69
- activesupport (>= 4.2.0)
70
- i18n (1.8.2)
71
- concurrent-ruby (~> 1.0)
72
- jaro_winkler (1.5.4)
73
- loofah (2.4.0)
74
- crass (~> 1.0.2)
75
- nokogiri (>= 1.5.9)
76
- mail (2.7.1)
77
- mini_mime (>= 0.1.1)
78
- method_source (0.9.2)
79
- mini_mime (1.0.2)
80
- mini_portile2 (2.4.0)
81
- minitest (5.14.0)
82
- mono_logger (1.1.0)
83
- multi_json (1.14.1)
84
- mustermann (1.1.1)
85
- ruby2_keywords (~> 0.0.1)
86
- nio4r (2.5.2)
87
- nokogiri (1.10.8)
88
- mini_portile2 (~> 2.4.0)
89
- parallel (1.19.1)
90
- parser (2.7.0.3)
91
- ast (~> 2.4.0)
92
- rack (2.2.2)
93
- rack-protection (2.0.8.1)
94
- rack
95
- rack-test (1.1.0)
96
- rack (>= 1.0, < 3)
97
- rails (5.1.7)
98
- actioncable (= 5.1.7)
99
- actionmailer (= 5.1.7)
100
- actionpack (= 5.1.7)
101
- actionview (= 5.1.7)
102
- activejob (= 5.1.7)
103
- activemodel (= 5.1.7)
104
- activerecord (= 5.1.7)
105
- activesupport (= 5.1.7)
106
- bundler (>= 1.3.0)
107
- railties (= 5.1.7)
108
- sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.3)
110
- activesupport (>= 4.2.0)
111
- nokogiri (>= 1.6)
112
- rails-html-sanitizer (1.3.0)
113
- loofah (~> 2.3)
114
- railties (5.1.7)
115
- actionpack (= 5.1.7)
116
- activesupport (= 5.1.7)
117
- method_source
118
- rake (>= 0.8.7)
119
- thor (>= 0.18.1, < 2.0)
120
- rainbow (3.0.0)
121
- rake (13.0.1)
122
- redis (4.1.3)
123
- redis-namespace (1.7.0)
124
- redis (>= 3.0.4)
125
- resque (2.0.0)
126
- mono_logger (~> 1.0)
127
- multi_json (~> 1.0)
128
- redis-namespace (~> 1.6)
129
- sinatra (>= 0.9.2)
130
- vegas (~> 0.1.2)
131
- rexml (3.2.4)
132
- rspec (3.9.0)
133
- rspec-core (~> 3.9.0)
134
- rspec-expectations (~> 3.9.0)
135
- rspec-mocks (~> 3.9.0)
136
- rspec-core (3.9.1)
137
- rspec-support (~> 3.9.1)
138
- rspec-expectations (3.9.0)
139
- diff-lcs (>= 1.2.0, < 2.0)
140
- rspec-support (~> 3.9.0)
141
- rspec-mocks (3.9.1)
142
- diff-lcs (>= 1.2.0, < 2.0)
143
- rspec-support (~> 3.9.0)
144
- rspec-support (3.9.2)
145
- rspec_junit_formatter (0.4.1)
146
- rspec-core (>= 2, < 4, != 2.12.0)
147
- rubocop (0.80.0)
148
- jaro_winkler (~> 1.5.1)
149
- parallel (~> 1.10)
150
- parser (>= 2.7.0.1)
151
- rainbow (>= 2.2.2, < 4.0)
152
- rexml
153
- ruby-progressbar (~> 1.7)
154
- unicode-display_width (>= 1.4.0, < 1.7)
155
- ruby-progressbar (1.10.1)
156
- ruby2_keywords (0.0.2)
157
- sinatra (2.0.8.1)
158
- mustermann (~> 1.0)
159
- rack (~> 2.0)
160
- rack-protection (= 2.0.8.1)
161
- tilt (~> 2.0)
162
- sprockets (4.0.0)
163
- concurrent-ruby (~> 1.0)
164
- rack (> 1, < 3)
165
- sprockets-rails (3.2.1)
166
- actionpack (>= 4.0)
167
- activesupport (>= 4.0)
168
- sprockets (>= 3.0.0)
169
- sqlite3 (1.4.2)
170
- state_machine (1.2.0)
171
- thor (0.20.3)
172
- thread_safe (0.3.6)
173
- tilt (2.0.10)
174
- tzinfo (1.2.6)
175
- thread_safe (~> 0.1)
176
- unicode-display_width (1.6.1)
177
- vegas (0.1.11)
178
- rack (>= 1.0.0)
179
- websocket-driver (0.6.5)
180
- websocket-extensions (>= 0.1.0)
181
- websocket-extensions (0.1.4)
182
-
183
- PLATFORMS
184
- ruby
185
-
186
- DEPENDENCIES
187
- appraisal
188
- bundler-audit
189
- byebug
190
- dalliance!
191
- delayed_job (>= 3.0.0)
192
- delayed_job_active_record
193
- rails (~> 5.1.0)
194
- resque
195
- rspec (>= 3.0.0)
196
- rspec_junit_formatter
197
- rubocop (~> 0.78)
198
- sqlite3
199
-
200
- BUNDLED WITH
201
- 1.17.3
@@ -1,15 +0,0 @@
1
- # Rails 4.1.0 and StateMachine don't play nice
2
- # https://github.com/pluginaweek/state_machine/issues/295
3
- require 'state_machine/version'
4
-
5
- if defined?(Rails)
6
- if StateMachine::VERSION > '1.2.0'
7
- # If you see this message, please test removing this file
8
- # If it's still required, please bump up the version above
9
- Rails.logger.warn "Please remove me, StateMachine version has changed"
10
- end
11
- end
12
-
13
- module StateMachine::Integrations::ActiveModel
14
- public :around_validation
15
- end