state_machinable 3.1.0 → 4.0.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
- SHA1:
3
- metadata.gz: 69c606da71bb70c6d46b4563c47773ac0038e32e
4
- data.tar.gz: 6078b6189ad894736b43cbc6f9388b38a169ff44
2
+ SHA256:
3
+ metadata.gz: ffb363d9eaa8c09e19a916ce3e73356652d2d8ecf7cc7b0c3b8d43bc3878d8bf
4
+ data.tar.gz: 05ff7aa966176751ad1cfe2f8285b354da2755344b418211cf5021d143d0847a
5
5
  SHA512:
6
- metadata.gz: cf15408d7f1281e2ff8b4bdec811b25540b4ea2cc426227cefe015a47f7f9e0821964d179b9e826065f213fe3f8098fb9f7fca9741a121557debc09dcdda16f5
7
- data.tar.gz: d80c84673058d9eaba118fbb7bc4da3d990040009d6133e722bc2d34abbc7fc51709d34f240a96443144bcb9caf3cfac7f416d9746593c536a1e20aa298f1d90
6
+ metadata.gz: 7e685d4d466de802d75e2a54b85661b0e5e4598518344af03dad429477973b043acd4668224787dd4cf52b1b4b2ab8db8198e27b57b58e8aa2c8f6a8904c8011
7
+ data.tar.gz: 8d89ebc1c9b3de17b01b262b9e7bb0f5ad3db6e08244b6d00ff1790fbdf61ad6617a051cc5e7996ac9a488f53cfc0d86108eecc53a3a341b07c9b7b90f41479a
@@ -0,0 +1,54 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@1.8.0
4
+ references:
5
+ run_tests: &run_tests
6
+ run:
7
+ name: Run test suite
8
+ command: bundle exec rspec
9
+ restore: &restore
10
+ restore_cache:
11
+ keys:
12
+ - v1_bundler_deps-{{ checksum "Gemfile.lock" }}-{{ checksum "ruby_version.rev" }}
13
+ save: &save
14
+ save_cache:
15
+ paths:
16
+ - ./vendor/bundle
17
+ key: v1_bundler_deps-{{ checksum "Gemfile.lock" }}-{{ checksum "ruby_version.rev" }} # CIRCLE_JOB e.g. "ruby-2.5"
18
+ bundle: &bundle
19
+ run:
20
+ name: install dependencies
21
+ command: |
22
+ echo "export BUNDLE_JOBS=4" >> $BASH_ENV
23
+ echo "export BUNDLE_RETRY=3" >> $BASH_ENV
24
+ echo "export BUNDLE_PATH=$(pwd)/vendor/bundle" >> $BASH_ENV
25
+ source $BASH_ENV
26
+ gem install bundler -v 1.17.3
27
+ bundle install
28
+
29
+ jobs:
30
+ test:
31
+ parameters:
32
+ ruby_version:
33
+ type: string
34
+ docker:
35
+ - image: "cimg/ruby:<< parameters.ruby_version >>"
36
+ environment:
37
+ RUBY_VERSION: <<parameters.ruby_version>>
38
+ steps:
39
+ - checkout
40
+ - run: sudo apt-get update
41
+ - run: sudo apt-get install sqlite3 libsqlite3-dev
42
+ - run: echo "${RUBY_VERSION}" > ruby_version.rev
43
+ - <<: *restore
44
+ - <<: *bundle
45
+ - <<: *run_tests
46
+ - <<: *save
47
+
48
+ workflows:
49
+ all-tests:
50
+ jobs:
51
+ - test:
52
+ matrix:
53
+ parameters:
54
+ ruby_version: ["2.5", "2.6", "2.7"]
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -10,3 +9,4 @@
10
9
 
11
10
  # rspec failure tracking
12
11
  .rspec_status
12
+ .idea
data/Gemfile.lock ADDED
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ state_machinable (4.0.0)
5
+ activesupport (>= 4, < 7)
6
+ statesman (> 2.0, < 10.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (6.1.7)
12
+ activesupport (= 6.1.7)
13
+ activerecord (6.1.7)
14
+ activemodel (= 6.1.7)
15
+ activesupport (= 6.1.7)
16
+ activesupport (6.1.7)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ zeitwerk (~> 2.3)
22
+ coderay (1.1.3)
23
+ concurrent-ruby (1.1.10)
24
+ diff-lcs (1.5.0)
25
+ i18n (1.12.0)
26
+ concurrent-ruby (~> 1.0)
27
+ method_source (1.0.0)
28
+ minitest (5.15.0)
29
+ pry (0.14.1)
30
+ coderay (~> 1.1)
31
+ method_source (~> 1.0)
32
+ rake (10.5.0)
33
+ rspec (3.9.0)
34
+ rspec-core (~> 3.9.0)
35
+ rspec-expectations (~> 3.9.0)
36
+ rspec-mocks (~> 3.9.0)
37
+ rspec-core (3.9.3)
38
+ rspec-support (~> 3.9.3)
39
+ rspec-expectations (3.9.4)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.9.0)
42
+ rspec-mocks (3.9.1)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.9.0)
45
+ rspec-support (3.9.4)
46
+ sqlite3 (1.4.4)
47
+ statesman (9.0.1)
48
+ tzinfo (2.0.5)
49
+ concurrent-ruby (~> 1.0)
50
+ zeitwerk (2.6.6)
51
+
52
+ PLATFORMS
53
+ x86_64-darwin-21
54
+
55
+ DEPENDENCIES
56
+ activerecord (>= 5.1, < 7)
57
+ bundler
58
+ pry
59
+ rake (~> 10.0)
60
+ rspec (~> 3.0)
61
+ sqlite3 (~> 1.3)
62
+ state_machinable!
63
+
64
+ BUNDLED WITH
65
+ 2.3.16
@@ -13,7 +13,7 @@ module StateMachinable
13
13
  end
14
14
 
15
15
  included do
16
- after_save :transition_to_initial_state, :if => Proc.new { |obj| obj.id_changed? }
16
+ after_save :transition_to_initial_state, :if => Proc.new { |obj| obj.saved_change_to_id? }
17
17
  delegate :can_transition_to?, :transition_to!, :transition_to, :to => :state_machine
18
18
 
19
19
  def state_machine
@@ -1,3 +1,3 @@
1
1
  module StateMachinable
2
- VERSION = "3.1.0"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -27,12 +27,12 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "bundler", "~> 1.14"
30
+ spec.add_development_dependency "bundler"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
  spec.add_development_dependency "rspec", "~> 3.0"
33
33
  spec.add_development_dependency "pry"
34
- spec.add_development_dependency "activerecord", ">= 4", "< 6"
34
+ spec.add_development_dependency "activerecord", ">= 5.1", "< 7"
35
35
  spec.add_development_dependency "sqlite3", "~> 1.3"
36
- spec.add_dependency "statesman", "> 2.0"
37
- spec.add_dependency "activesupport", ">= 4", "< 6"
36
+ spec.add_dependency "statesman", "> 2.0", "< 10.0"
37
+ spec.add_dependency "activesupport", ">= 4", "< 7"
38
38
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machinable
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Herrera
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-24 00:00:00.000000000 Z
11
+ date: 2022-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,20 +72,20 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '4'
75
+ version: '5.1'
76
76
  - - "<"
77
77
  - !ruby/object:Gem::Version
78
- version: '6'
78
+ version: '7'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: '4'
85
+ version: '5.1'
86
86
  - - "<"
87
87
  - !ruby/object:Gem::Version
88
- version: '6'
88
+ version: '7'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: sqlite3
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,9 @@ dependencies:
107
107
  - - ">"
108
108
  - !ruby/object:Gem::Version
109
109
  version: '2.0'
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '10.0'
110
113
  type: :runtime
111
114
  prerelease: false
112
115
  version_requirements: !ruby/object:Gem::Requirement
@@ -114,6 +117,9 @@ dependencies:
114
117
  - - ">"
115
118
  - !ruby/object:Gem::Version
116
119
  version: '2.0'
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '10.0'
117
123
  - !ruby/object:Gem::Dependency
118
124
  name: activesupport
119
125
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +129,7 @@ dependencies:
123
129
  version: '4'
124
130
  - - "<"
125
131
  - !ruby/object:Gem::Version
126
- version: '6'
132
+ version: '7'
127
133
  type: :runtime
128
134
  prerelease: false
129
135
  version_requirements: !ruby/object:Gem::Requirement
@@ -133,19 +139,21 @@ dependencies:
133
139
  version: '4'
134
140
  - - "<"
135
141
  - !ruby/object:Gem::Version
136
- version: '6'
137
- description:
142
+ version: '7'
143
+ description:
138
144
  email:
139
145
  - santiago@snapsheet.me
140
146
  executables: []
141
147
  extensions: []
142
148
  extra_rdoc_files: []
143
149
  files:
150
+ - ".circleci/config.yml"
144
151
  - ".gitignore"
145
152
  - ".rspec"
146
153
  - ".travis.yml"
147
154
  - CODE_OF_CONDUCT.md
148
155
  - Gemfile
156
+ - Gemfile.lock
149
157
  - LICENSE.txt
150
158
  - README.md
151
159
  - Rakefile
@@ -162,7 +170,7 @@ licenses:
162
170
  - MIT
163
171
  metadata:
164
172
  allowed_push_host: https://rubygems.org
165
- post_install_message:
173
+ post_install_message:
166
174
  rdoc_options: []
167
175
  require_paths:
168
176
  - lib
@@ -177,9 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
185
  - !ruby/object:Gem::Version
178
186
  version: '0'
179
187
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.6.8
182
- signing_key:
188
+ rubygems_version: 3.0.9
189
+ signing_key:
183
190
  specification_version: 4
184
191
  summary: Gem that adds functionality to statesman
185
192
  test_files: []