workflow-activerecord 4.1.2 → 4.1.3

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: ad59649643114cbcf8a421ba6f9c662ac6596618fef0ccd0fe6217e7eecd187b
4
- data.tar.gz: 03e0a9b1b3f6fd20f1e18000362ab054ffe2fe813323214bcdf10f590067513f
3
+ metadata.gz: b71df1c88832b6becc3a4c594a60a0f42a474200bb74675d3f715c8b042c92a3
4
+ data.tar.gz: e192a5ce46f271798c928c3c6202e06516f96a754d960631fc4fff5662d3e03b
5
5
  SHA512:
6
- metadata.gz: 52f5694fddf685da1d49279235cb048e541d1c1d9860c3264310de7cf7f1fb86783b6eb39875a9effe10fbc8eb98fa731f2cca29c475086538f302b642028e22
7
- data.tar.gz: faf9a128b5d2f010e2edc1973c9008b9a532bec4ca1941fa8eba23b917da5e03807243b18042ad1b9bf3f3778d69dd685e566fe37df4371a6b86ef59e6e3e6bc
6
+ metadata.gz: 6c1bbe329aa90e5d03c1b82f6664aff19f1dd4e1a44527ff07876155bca04ae8593d5656b99fea77ffd123f157e6de63d880f4bcb5e3d21eb61e411917d2e37a
7
+ data.tar.gz: b406b370be0b87830a5e9d5e106f16032e1d03889ec0a3af9b637073768d122a6dbdf77e11b76cb221b74a775f3d3dcd57b0c9a6a726a4976e5d8464ca49e07d
data/README.md CHANGED
@@ -14,7 +14,7 @@ Coverage](https://codeclimate.com/github/geekq/workflow-activerecord/badges/cove
14
14
  **ActiveRecord/Rails Integration for the Workflow library**
15
15
 
16
16
  Major+minor versions of workflow-activerecord are based on the oldest
17
- compatible ActiveRecord API. To use [`workflow`][] with a
17
+ compatible ActiveRecord API. To use [`workflow`][workflow] with
18
18
  Rails/ActiveRecord 4.1, 4.2, 5.0, 5.1, 5.2 please use:
19
19
 
20
20
  gem 'workflow-activerecord', '>= 4.1', '< 6.0'
@@ -25,12 +25,13 @@ the core 'workflow' gem. But you can also choose a specific version:
25
25
  gem 'workflow', '~> 2.0'
26
26
  gem 'workflow-activerecord', '>= 4.1pre', '< 6.0'
27
27
 
28
- Please also have a look at the [sample application][]!
28
+ Please also have a look at [the sample application][]!
29
29
 
30
- For detailed introduction into workflow DSL please read [`workflow`][]!
30
+ For detailed introduction into workflow DSL please read the
31
+ [`workflow` README][workflow]!
31
32
 
32
- [`workflow`]: https://github.com/geekq/workflow
33
- [sample application]: https://github.com/geekq/workflow-rails-sample
33
+ [workflow]: https://github.com/geekq/workflow
34
+ [the sample application]: https://github.com/geekq/workflow-rails-sample
34
35
 
35
36
 
36
37
  State persistence with ActiveRecord
@@ -41,7 +42,7 @@ only need to define a string field on the table called `workflow_state`
41
42
  and include the workflow mixin in your model class as usual:
42
43
 
43
44
  class Order < ApplicationRecord
44
- include Workflow
45
+ include WorkflowActiverecord
45
46
  workflow do
46
47
  # list states and transitions here
47
48
  end
@@ -66,7 +67,7 @@ Workflow library also adds automatically generated scopes with names based on
66
67
  states names:
67
68
 
68
69
  class Order < ApplicationRecord
69
- include Workflow
70
+ include WorkflowActiverecord
70
71
  workflow do
71
72
  state :approved
72
73
  state :pending
@@ -86,7 +87,7 @@ states names:
86
87
  custom persistence column easily, e.g. for a legacy database schema:
87
88
 
88
89
  class LegacyOrder < ApplicationRecord
89
- include Workflow
90
+ include WorkflowActiverecord
90
91
 
91
92
  workflow_column :foo_bar # use this legacy database column for
92
93
  # persistence
@@ -139,7 +140,7 @@ Table Inheritance" of the [ActiveRecord documentation][ActiveRecord].
139
140
  Then you define your different classes:
140
141
 
141
142
  class Order < ActiveRecord::Base
142
- include Workflow
143
+ include WorkflowActiverecord
143
144
  end
144
145
 
145
146
  class SmallOrder < Order
@@ -167,7 +168,7 @@ instances via metaclass, e.g.
167
168
  # probably depending on some condition or database field
168
169
  if # some condition
169
170
  class << booking
170
- include Workflow
171
+ include WorkflowActiverecord
171
172
  workflow do
172
173
  state :state1
173
174
  state :state2
@@ -187,6 +188,12 @@ example][multiple_workflow_test]!
187
188
  Changelog
188
189
  ---------
189
190
 
191
+ ### New in the version 4.1.3
192
+
193
+ * retire Ruby 2.3 and Rails 4.1 since this Ruby version has reached end of life
194
+ * add build for Rails 6.0 beta, Ruby 2.6
195
+ * fix #4 ruby-graphiz warnings
196
+
190
197
  ### New in the version 4.1.0
191
198
 
192
199
  First version supporting Rails/ActiveRecord 4.1, 4.2, 5.0, 5.1, 5.2
@@ -1,3 +1,3 @@
1
1
  module WorkflowActiverecord
2
- VERSION = "4.1.2"
2
+ VERSION = "4.1.3"
3
3
  end
@@ -3,14 +3,6 @@ require 'rubygems'
3
3
  require 'workflow/specification'
4
4
  require 'workflow_activerecord/adapters/active_record'
5
5
 
6
- begin
7
- require 'ruby-graphviz'
8
- require 'active_support/inflector'
9
- require 'workflow/draw'
10
- rescue LoadError => e
11
- $stderr.puts "Could not load the ruby-graphiz or active_support gems for rendering: #{e.message}"
12
- end
13
-
14
6
  module WorkflowActiverecord
15
7
  def self.included(klass)
16
8
  klass.send :include, ::Workflow
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dobriakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-12 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workflow
@@ -48,114 +48,86 @@ dependencies:
48
48
  name: rdoc
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.12'
53
+ version: '6.1'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.12'
60
+ version: '6.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: bundler
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 1.0.0
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 1.0.0
75
- - !ruby/object:Gem::Dependency
76
- name: sqlite3
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
65
+ - - "~>"
80
66
  - !ruby/object:Gem::Version
81
- version: '0'
67
+ version: '2.0'
82
68
  type: :development
83
69
  prerelease: false
84
70
  version_requirements: !ruby/object:Gem::Requirement
85
71
  requirements:
86
- - - ">="
72
+ - - "~>"
87
73
  - !ruby/object:Gem::Version
88
- version: '0'
74
+ version: '2.0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: mocha
91
77
  requirement: !ruby/object:Gem::Requirement
92
78
  requirements:
93
- - - ">="
79
+ - - "~>"
94
80
  - !ruby/object:Gem::Version
95
- version: '0'
81
+ version: '1.8'
96
82
  type: :development
97
83
  prerelease: false
98
84
  version_requirements: !ruby/object:Gem::Requirement
99
85
  requirements:
100
- - - ">="
86
+ - - "~>"
101
87
  - !ruby/object:Gem::Version
102
- version: '0'
88
+ version: '1.8'
103
89
  - !ruby/object:Gem::Dependency
104
90
  name: rake
105
91
  requirement: !ruby/object:Gem::Requirement
106
92
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
- - !ruby/object:Gem::Dependency
118
- name: test-unit
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
93
+ - - "~>"
122
94
  - !ruby/object:Gem::Version
123
- version: '0'
95
+ version: '12.3'
124
96
  type: :development
125
97
  prerelease: false
126
98
  version_requirements: !ruby/object:Gem::Requirement
127
99
  requirements:
128
- - - ">="
100
+ - - "~>"
129
101
  - !ruby/object:Gem::Version
130
- version: '0'
102
+ version: '12.3'
131
103
  - !ruby/object:Gem::Dependency
132
104
  name: minitest
133
105
  requirement: !ruby/object:Gem::Requirement
134
106
  requirements:
135
- - - ">="
107
+ - - "~>"
136
108
  - !ruby/object:Gem::Version
137
- version: '0'
109
+ version: '5.11'
138
110
  type: :development
139
111
  prerelease: false
140
112
  version_requirements: !ruby/object:Gem::Requirement
141
113
  requirements:
142
- - - ">="
114
+ - - "~>"
143
115
  - !ruby/object:Gem::Version
144
- version: '0'
116
+ version: '5.11'
145
117
  - !ruby/object:Gem::Dependency
146
- name: ruby-graphviz
118
+ name: sqlite3
147
119
  requirement: !ruby/object:Gem::Requirement
148
120
  requirements:
149
- - - ">="
121
+ - - "~>"
150
122
  - !ruby/object:Gem::Version
151
- version: '0'
123
+ version: '1.3'
152
124
  type: :development
153
125
  prerelease: false
154
126
  version_requirements: !ruby/object:Gem::Requirement
155
127
  requirements:
156
- - - ">="
128
+ - - "~>"
157
129
  - !ruby/object:Gem::Version
158
- version: '0'
130
+ version: '1.3'
159
131
  description: "ActiveRecord/Rails Integration for the Workflow library. \nWorkflow
160
132
  is a finite-state-machine-inspired API for modeling and interacting\n with what
161
133
  we tend to refer to as 'workflow'."