state_machines-activerecord 0.8.0 → 0.10.0
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 +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +5 -6
- data/lib/state_machines/integrations/active_record/locale.rb +2 -0
- data/lib/state_machines/integrations/active_record/version.rb +3 -1
- data/lib/state_machines/integrations/active_record.rb +42 -151
- data/lib/state_machines-activerecord.rb +2 -0
- data/test/files/models/post.rb +2 -0
- data/test/integration_test.rb +2 -0
- data/test/machine_by_default_test.rb +2 -0
- data/test/machine_errors_test.rb +2 -0
- data/test/machine_multiple_test.rb +2 -0
- data/test/machine_nested_action_test.rb +2 -0
- data/test/machine_unmigrated_test.rb +2 -0
- data/test/machine_with_aliased_attribute_test.rb +2 -0
- data/test/machine_with_callbacks_test.rb +2 -0
- data/test/machine_with_column_state_attribute_test.rb +2 -0
- data/test/machine_with_complex_pluralization_scopes_test.rb +2 -0
- data/test/machine_with_conflicting_predicate_test.rb +2 -0
- data/test/machine_with_conflicting_state_name_test.rb +4 -2
- data/test/machine_with_custom_attribute_test.rb +2 -0
- data/test/machine_with_default_scope_test.rb +2 -0
- data/test/machine_with_different_column_default_test.rb +2 -0
- data/test/machine_with_different_integer_column_default_test.rb +2 -0
- data/test/machine_with_dirty_attribute_and_custom_attributes_during_loopback_test.rb +2 -0
- data/test/machine_with_dirty_attribute_and_state_events_test.rb +2 -0
- data/test/machine_with_dirty_attributes_and_custom_attribute_test.rb +2 -0
- data/test/machine_with_dirty_attributes_during_loopback_test.rb +2 -0
- data/test/machine_with_dirty_attributes_test.rb +2 -0
- data/test/machine_with_dynamic_initial_state_test.rb +2 -0
- data/test/machine_with_event_attributes_on_autosave_test.rb +3 -1
- data/test/machine_with_event_attributes_on_custom_action_test.rb +2 -0
- data/test/machine_with_event_attributes_on_save_bang_test.rb +2 -0
- data/test/machine_with_event_attributes_on_save_test.rb +2 -0
- data/test/machine_with_event_attributes_on_validation_test.rb +5 -3
- data/test/machine_with_events_test.rb +2 -0
- data/test/machine_with_failed_action_test.rb +2 -0
- data/test/machine_with_failed_after_callbacks_test.rb +2 -0
- data/test/machine_with_failed_before_callbacks_test.rb +2 -0
- data/test/machine_with_initialized_state_test.rb +2 -0
- data/test/machine_with_internationalization_test.rb +2 -0
- data/test/machine_with_loopback_test.rb +2 -0
- data/test/machine_with_non_column_state_attribute_defined_test.rb +2 -0
- data/test/machine_with_same_column_default_test.rb +2 -0
- data/test/machine_with_same_integer_column_default_test.rb +2 -0
- data/test/machine_with_scopes_and_joins_test.rb +4 -1
- data/test/machine_with_scopes_and_owner_subclass_test.rb +2 -0
- data/test/machine_with_scopes_test.rb +2 -0
- data/test/machine_with_state_driven_validations_test.rb +3 -1
- data/test/machine_with_states_test.rb +2 -0
- data/test/machine_with_static_initial_state_test.rb +4 -1
- data/test/machine_with_transactions_test.rb +2 -0
- data/test/machine_with_validations_and_custom_attribute_test.rb +2 -0
- data/test/machine_with_validations_test.rb +2 -0
- data/test/machine_without_database_test.rb +2 -0
- data/test/machine_without_transactions_test.rb +2 -0
- data/test/model_test.rb +2 -0
- data/test/test_helper.rb +21 -16
- metadata +8 -23
- data/.gitignore +0 -22
- data/.travis.yml +0 -19
- data/Appraisals +0 -34
- data/Gemfile +0 -6
- data/Rakefile +0 -9
- data/gemfiles/active_record_5.1.gemfile +0 -14
- data/gemfiles/active_record_5.2.gemfile +0 -14
- data/gemfiles/active_record_6.0.gemfile +0 -14
- data/gemfiles/active_record_6.1.gemfile +0 -14
- data/gemfiles/active_record_edge.gemfile +0 -14
- data/log/.gitkeep +0 -0
- data/state_machines-activerecord.gemspec +0 -28
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'test_helper'
|
2
4
|
|
3
5
|
class MachineWithEventAttributesOnValidationTest < BaseTestCase
|
@@ -65,7 +67,7 @@ class MachineWithEventAttributesOnValidationTest < BaseTestCase
|
|
65
67
|
def test_should_not_run_after_callbacks_with_failures_disabled_if_validation_fails
|
66
68
|
@model.class_eval do
|
67
69
|
attr_accessor :seatbelt
|
68
|
-
|
70
|
+
validates :seatbelt, presence: true
|
69
71
|
end
|
70
72
|
|
71
73
|
ran_callback = false
|
@@ -78,7 +80,7 @@ class MachineWithEventAttributesOnValidationTest < BaseTestCase
|
|
78
80
|
def test_should_run_after_callbacks_if_validation_fails
|
79
81
|
@model.class_eval do
|
80
82
|
attr_accessor :seatbelt
|
81
|
-
|
83
|
+
validates :seatbelt, presence: true
|
82
84
|
end
|
83
85
|
|
84
86
|
ran_callback = false
|
@@ -103,7 +105,7 @@ class MachineWithEventAttributesOnValidationTest < BaseTestCase
|
|
103
105
|
def test_should_not_run_around_callbacks_after_yield_with_failures_disabled_if_validation_fails
|
104
106
|
@model.class_eval do
|
105
107
|
attr_accessor :seatbelt
|
106
|
-
|
108
|
+
validates :seatbelt, presence: true
|
107
109
|
end
|
108
110
|
|
109
111
|
ran_callback = false
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'test_helper'
|
2
4
|
|
3
5
|
class MachineWithScopesAndJoinsTest < BaseTestCase
|
@@ -32,6 +34,7 @@ class MachineWithScopesAndJoinsTest < BaseTestCase
|
|
32
34
|
remove_const('Vehicle')
|
33
35
|
remove_const('Company')
|
34
36
|
end
|
35
|
-
|
37
|
+
|
38
|
+
clear_active_support_dependencies
|
36
39
|
end
|
37
40
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'test_helper'
|
2
4
|
|
3
5
|
class MachineWithStateDrivenValidationsTest < BaseTestCase
|
@@ -8,7 +10,7 @@ class MachineWithStateDrivenValidationsTest < BaseTestCase
|
|
8
10
|
|
9
11
|
@machine = StateMachines::Machine.new(@model)
|
10
12
|
@machine.state :first_gear, :second_gear do
|
11
|
-
|
13
|
+
validates :seatbelt, presence: true
|
12
14
|
end
|
13
15
|
@machine.other_states :parked
|
14
16
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'test_helper'
|
2
4
|
|
3
5
|
class MachineWithStaticInitialStateTest < BaseTestCase
|
@@ -159,7 +161,8 @@ class MachineWithStaticInitialStateTest < BaseTestCase
|
|
159
161
|
remove_const('Owner') if defined?(MachineWithStaticInitialStateTest::Owner)
|
160
162
|
remove_const('Driver') if defined?(MachineWithStaticInitialStateTest::Driver)
|
161
163
|
end
|
162
|
-
|
164
|
+
|
165
|
+
clear_active_support_dependencies
|
163
166
|
super
|
164
167
|
end
|
165
168
|
end
|
data/test/model_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'debug' if RUBY_ENGINE == 'ruby'
|
5
4
|
require 'minitest/reporters'
|
6
5
|
Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new)
|
7
6
|
require 'state_machines-activerecord'
|
@@ -11,13 +10,7 @@ require 'securerandom'
|
|
11
10
|
# Establish database connection
|
12
11
|
ActiveRecord::Base.establish_connection('adapter' => 'sqlite3', 'database' => ':memory:')
|
13
12
|
ActiveRecord::Base.logger = Logger.new("#{File.dirname(__FILE__)}/../log/active_record.log")
|
14
|
-
|
15
|
-
if ActiveSupport.gem_version >= Gem::Version.new('4.2.0')
|
16
|
-
ActiveSupport.test_order = :random
|
17
|
-
if ActiveSupport.gem_version < Gem::Version.new('5.1.x')
|
18
|
-
ActiveRecord::Base.raise_in_transactional_callbacks = true
|
19
|
-
end
|
20
|
-
end
|
13
|
+
ActiveSupport.test_order = :random
|
21
14
|
|
22
15
|
class BaseTestCase < ActiveSupport::TestCase
|
23
16
|
protected
|
@@ -31,11 +24,7 @@ class BaseTestCase < ActiveSupport::TestCase
|
|
31
24
|
connection.create_table(table_name, :force => true) { |t| t.string(:state) } if create_table
|
32
25
|
|
33
26
|
define_method(:abort_from_callback) do
|
34
|
-
|
35
|
-
throw :abort
|
36
|
-
else
|
37
|
-
false
|
38
|
-
end
|
27
|
+
throw :abort
|
39
28
|
end
|
40
29
|
|
41
30
|
(
|
@@ -49,4 +38,20 @@ class BaseTestCase < ActiveSupport::TestCase
|
|
49
38
|
model.reset_column_information if create_table
|
50
39
|
model
|
51
40
|
end
|
41
|
+
|
42
|
+
def clear_active_support_dependencies
|
43
|
+
return unless defined?(ActiveSupport::Dependencies)
|
44
|
+
|
45
|
+
if ActiveSupport::Dependencies.respond_to?(:autoloader=)
|
46
|
+
ActiveSupport::Dependencies.autoloader ||= stubbed_autoloader
|
47
|
+
end
|
48
|
+
|
49
|
+
ActiveSupport::Dependencies.clear
|
50
|
+
end
|
51
|
+
|
52
|
+
def stubbed_autoloader
|
53
|
+
Object.new.tap do |obj|
|
54
|
+
obj.define_singleton_method(:reload) {}
|
55
|
+
end
|
56
|
+
end
|
52
57
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machines-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
- Aaron Pfeifer
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: state_machines-activemodel
|
@@ -17,28 +16,28 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
19
|
+
version: 0.10.0
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
26
|
+
version: 0.10.0
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: activerecord
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
31
|
- - ">="
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
33
|
+
version: '7.1'
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
38
|
- - ">="
|
40
39
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
40
|
+
version: '7.1'
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: rake
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,24 +116,12 @@ executables: []
|
|
117
116
|
extensions: []
|
118
117
|
extra_rdoc_files: []
|
119
118
|
files:
|
120
|
-
- ".gitignore"
|
121
|
-
- ".travis.yml"
|
122
|
-
- Appraisals
|
123
|
-
- Gemfile
|
124
119
|
- LICENSE.txt
|
125
120
|
- README.md
|
126
|
-
- Rakefile
|
127
|
-
- gemfiles/active_record_5.1.gemfile
|
128
|
-
- gemfiles/active_record_5.2.gemfile
|
129
|
-
- gemfiles/active_record_6.0.gemfile
|
130
|
-
- gemfiles/active_record_6.1.gemfile
|
131
|
-
- gemfiles/active_record_edge.gemfile
|
132
121
|
- lib/state_machines-activerecord.rb
|
133
122
|
- lib/state_machines/integrations/active_record.rb
|
134
123
|
- lib/state_machines/integrations/active_record/locale.rb
|
135
124
|
- lib/state_machines/integrations/active_record/version.rb
|
136
|
-
- log/.gitkeep
|
137
|
-
- state_machines-activerecord.gemspec
|
138
125
|
- test/files/en.yml
|
139
126
|
- test/files/models/post.rb
|
140
127
|
- test/integration_test.rb
|
@@ -191,7 +178,6 @@ homepage: https://github.com/state-machines/state_machines-activerecord/
|
|
191
178
|
licenses:
|
192
179
|
- MIT
|
193
180
|
metadata: {}
|
194
|
-
post_install_message:
|
195
181
|
rdoc_options: []
|
196
182
|
require_paths:
|
197
183
|
- lib
|
@@ -199,15 +185,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
199
185
|
requirements:
|
200
186
|
- - ">="
|
201
187
|
- !ruby/object:Gem::Version
|
202
|
-
version:
|
188
|
+
version: '3.1'
|
203
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
190
|
requirements:
|
205
191
|
- - ">="
|
206
192
|
- !ruby/object:Gem::Version
|
207
193
|
version: '0'
|
208
194
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
210
|
-
signing_key:
|
195
|
+
rubygems_version: 3.6.7
|
211
196
|
specification_version: 4
|
212
197
|
summary: State machines Active Record Integration
|
213
198
|
test_files:
|
data/.gitignore
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
tmp
|
16
|
-
*.bundle
|
17
|
-
*.so
|
18
|
-
*.o
|
19
|
-
*.a
|
20
|
-
log/active_record.log
|
21
|
-
.idea/
|
22
|
-
*.lock
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.5.8
|
6
|
-
- 2.6.6
|
7
|
-
- 2.7.2
|
8
|
-
- jruby
|
9
|
-
|
10
|
-
gemfile:
|
11
|
-
- gemfiles/active_record_5.1.gemfile
|
12
|
-
- gemfiles/active_record_5.2.gemfile
|
13
|
-
- gemfiles/active_record_6.0.gemfile
|
14
|
-
- gemfiles/active_record_6.1.gemfile
|
15
|
-
- gemfiles/active_record_edge.gemfile
|
16
|
-
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: jruby
|
data/Appraisals
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
appraise "active_record_5.1" do
|
2
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
3
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
4
|
-
gem "activerecord", github: 'rails/rails', branch: '5-1-stable'
|
5
|
-
gem "activemodel", github: 'rails/rails', branch: '5-1-stable'
|
6
|
-
end
|
7
|
-
|
8
|
-
appraise "active_record_5.2" do
|
9
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
10
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
11
|
-
gem "activerecord", github: 'rails/rails', branch: '5-2-stable'
|
12
|
-
gem "activemodel", github: 'rails/rails', branch: '5-2-stable'
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise 'active_record_6.0' do
|
16
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
17
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
18
|
-
gem "activerecord", github: 'rails/rails', branch: '6-0-stable'
|
19
|
-
gem "activemodel", github: 'rails/rails', branch: '6-0-stable'
|
20
|
-
end
|
21
|
-
|
22
|
-
appraise 'active_record_6.1' do
|
23
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
24
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
25
|
-
gem "activerecord", github: 'rails/rails', branch: '6-1-stable'
|
26
|
-
gem "activemodel", github: 'rails/rails', branch: '6-1-stable'
|
27
|
-
end
|
28
|
-
|
29
|
-
appraise "active_record_edge" do
|
30
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
31
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
32
|
-
gem "activerecord", github: 'rails/rails', branch: 'master'
|
33
|
-
gem "activemodel", github: 'rails/rails', branch: 'master'
|
34
|
-
end
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
6
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
7
|
-
gem "activerecord", github: "rails/rails", branch: "5-1-stable"
|
8
|
-
gem "activemodel", github: "rails/rails", branch: "5-1-stable"
|
9
|
-
|
10
|
-
platforms :mri do
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec path: "../"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
6
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
7
|
-
gem "activerecord", github: "rails/rails", branch: "5-2-stable"
|
8
|
-
gem "activemodel", github: "rails/rails", branch: "5-2-stable"
|
9
|
-
|
10
|
-
platforms :mri do
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec path: "../"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
6
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
7
|
-
gem "activerecord", github: "rails/rails", branch: "6-0-stable"
|
8
|
-
gem "activemodel", github: "rails/rails", branch: "6-0-stable"
|
9
|
-
|
10
|
-
platforms :mri do
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec path: "../"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
6
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
7
|
-
gem "activerecord", github: "rails/rails", branch: "6-1-stable"
|
8
|
-
gem "activemodel", github: "rails/rails", branch: "6-1-stable"
|
9
|
-
|
10
|
-
platforms :mri do
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec path: "../"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", platforms: [:mri, :rbx]
|
6
|
-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
|
7
|
-
gem "activerecord", github: "rails/rails", branch: "master"
|
8
|
-
gem "activemodel", github: "rails/rails", branch: "master"
|
9
|
-
|
10
|
-
platforms :mri do
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gemspec path: "../"
|
data/log/.gitkeep
DELETED
File without changes
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'state_machines/integrations/active_record/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'state_machines-activerecord'
|
8
|
-
spec.version = StateMachines::Integrations::ActiveRecord::VERSION
|
9
|
-
spec.authors = ['Abdelkader Boudih', 'Aaron Pfeifer']
|
10
|
-
spec.email = %w(terminale@gmail.com aaron@pluginaweek.org)
|
11
|
-
spec.summary = %q(State machines Active Record Integration)
|
12
|
-
spec.description = %q(Adds support for creating state machines for attributes on ActiveRecord)
|
13
|
-
spec.homepage = 'https://github.com/state-machines/state_machines-activerecord/'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0")
|
17
|
-
spec.test_files = spec.files.grep(/^test\//)
|
18
|
-
spec.required_ruby_version = '>= 2.2.2'
|
19
|
-
spec.require_paths = ['lib']
|
20
|
-
|
21
|
-
spec.add_dependency 'state_machines-activemodel', '>= 0.8.0'
|
22
|
-
spec.add_dependency 'activerecord' , '>= 5.1'
|
23
|
-
spec.add_development_dependency 'rake', '~> 13.0'
|
24
|
-
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
25
|
-
spec.add_development_dependency 'appraisal', '>= 1'
|
26
|
-
spec.add_development_dependency 'minitest' , '>= 5.4.0'
|
27
|
-
spec.add_development_dependency 'minitest-reporters'
|
28
|
-
end
|