simple_workflow 2.0.1 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 292e69a11faa0584c25618ffaa2bc2c2391e1b42d6e6e0503797fc3c94f6c2af
4
- data.tar.gz: 2b57742db3c66f8b9b2edc088dcd8cabf848759556914abc4c3a329543a3e508
3
+ metadata.gz: f3e6b480412f12b33ab1a43ea40edfd280fcf843e7b48307b79a186ea8dfec18
4
+ data.tar.gz: '094717e238b6c347acdab6f597b65b1139f1a73dc2646c55ffe3bc702f2074c2'
5
5
  SHA512:
6
- metadata.gz: 3c92b45c2959972fd8bb2d63c14357a10feadd9717268b233fed9bfad6d976c15f187ff3fb55e2737178240ac19ae462fcc96ddfc38db3588b737d3f7bf390e9
7
- data.tar.gz: '0954579fb5d60a2be355f71f3cb32bb946eefbcfcf82705958008e1427da344b72a9c6b23c9d49749a323c6c830e2b2ba44d29011a6fa72170d869a1577fbf7b'
6
+ metadata.gz: aa6f9b54442208aee5c61201b3277862a055c6d5e7cbf462f0abbf2e8d249909505dd684ca2c786fdafaba445ed55a0b3a0dcee4d6d3afffde7edbe47a3ee92a
7
+ data.tar.gz: 43249992ddb88144cfcc00ced9d9570c2aa722604ae4c2ff6f4d25c23db8f614bf33c0e9b2d197a3d48d92eb06253e35b72e3142d1ec6d090b9e2c380123869b
data/Gemfile.lock CHANGED
@@ -1,73 +1,77 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_workflow (2.0.1)
5
- rails (>= 4.2, < 6.1)
4
+ simple_workflow (2.1.0)
5
+ rails (>= 4.2, < 7)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.3.4)
11
- actionpack (= 6.0.3.4)
10
+ actioncable (6.1.0)
11
+ actionpack (= 6.1.0)
12
+ activesupport (= 6.1.0)
12
13
  nio4r (~> 2.0)
13
14
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.3.4)
15
- actionpack (= 6.0.3.4)
16
- activejob (= 6.0.3.4)
17
- activerecord (= 6.0.3.4)
18
- activestorage (= 6.0.3.4)
19
- activesupport (= 6.0.3.4)
15
+ actionmailbox (6.1.0)
16
+ actionpack (= 6.1.0)
17
+ activejob (= 6.1.0)
18
+ activerecord (= 6.1.0)
19
+ activestorage (= 6.1.0)
20
+ activesupport (= 6.1.0)
20
21
  mail (>= 2.7.1)
21
- actionmailer (6.0.3.4)
22
- actionpack (= 6.0.3.4)
23
- actionview (= 6.0.3.4)
24
- activejob (= 6.0.3.4)
22
+ actionmailer (6.1.0)
23
+ actionpack (= 6.1.0)
24
+ actionview (= 6.1.0)
25
+ activejob (= 6.1.0)
26
+ activesupport (= 6.1.0)
25
27
  mail (~> 2.5, >= 2.5.4)
26
28
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.3.4)
28
- actionview (= 6.0.3.4)
29
- activesupport (= 6.0.3.4)
30
- rack (~> 2.0, >= 2.0.8)
29
+ actionpack (6.1.0)
30
+ actionview (= 6.1.0)
31
+ activesupport (= 6.1.0)
32
+ rack (~> 2.0, >= 2.0.9)
31
33
  rack-test (>= 0.6.3)
32
34
  rails-dom-testing (~> 2.0)
33
35
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.3.4)
35
- actionpack (= 6.0.3.4)
36
- activerecord (= 6.0.3.4)
37
- activestorage (= 6.0.3.4)
38
- activesupport (= 6.0.3.4)
36
+ actiontext (6.1.0)
37
+ actionpack (= 6.1.0)
38
+ activerecord (= 6.1.0)
39
+ activestorage (= 6.1.0)
40
+ activesupport (= 6.1.0)
39
41
  nokogiri (>= 1.8.5)
40
- actionview (6.0.3.4)
41
- activesupport (= 6.0.3.4)
42
+ actionview (6.1.0)
43
+ activesupport (= 6.1.0)
42
44
  builder (~> 3.1)
43
45
  erubi (~> 1.4)
44
46
  rails-dom-testing (~> 2.0)
45
47
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.3.4)
47
- activesupport (= 6.0.3.4)
48
+ activejob (6.1.0)
49
+ activesupport (= 6.1.0)
48
50
  globalid (>= 0.3.6)
49
- activemodel (6.0.3.4)
50
- activesupport (= 6.0.3.4)
51
- activerecord (6.0.3.4)
52
- activemodel (= 6.0.3.4)
53
- activesupport (= 6.0.3.4)
54
- activestorage (6.0.3.4)
55
- actionpack (= 6.0.3.4)
56
- activejob (= 6.0.3.4)
57
- activerecord (= 6.0.3.4)
51
+ activemodel (6.1.0)
52
+ activesupport (= 6.1.0)
53
+ activerecord (6.1.0)
54
+ activemodel (= 6.1.0)
55
+ activesupport (= 6.1.0)
56
+ activestorage (6.1.0)
57
+ actionpack (= 6.1.0)
58
+ activejob (= 6.1.0)
59
+ activerecord (= 6.1.0)
60
+ activesupport (= 6.1.0)
58
61
  marcel (~> 0.3.1)
59
- activesupport (6.0.3.4)
62
+ mimemagic (~> 0.3.2)
63
+ activesupport (6.1.0)
60
64
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2, >= 2.2.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
65
69
  ansi (1.5.0)
66
70
  ast (2.4.1)
67
71
  builder (3.2.4)
68
72
  concurrent-ruby (1.1.7)
69
73
  crass (1.0.6)
70
- docile (1.3.4)
74
+ docile (1.3.3)
71
75
  erubi (1.10.0)
72
76
  globalid (0.4.2)
73
77
  activesupport (>= 4.2.0)
@@ -94,60 +98,60 @@ GEM
94
98
  nokogiri (1.10.10)
95
99
  mini_portile2 (~> 2.4.0)
96
100
  parallel (1.20.1)
97
- parser (3.0.0.0)
101
+ parser (2.7.2.0)
98
102
  ast (~> 2.4.1)
99
103
  rack (2.2.3)
100
104
  rack-test (1.1.0)
101
105
  rack (>= 1.0, < 3)
102
- rails (6.0.3.4)
103
- actioncable (= 6.0.3.4)
104
- actionmailbox (= 6.0.3.4)
105
- actionmailer (= 6.0.3.4)
106
- actionpack (= 6.0.3.4)
107
- actiontext (= 6.0.3.4)
108
- actionview (= 6.0.3.4)
109
- activejob (= 6.0.3.4)
110
- activemodel (= 6.0.3.4)
111
- activerecord (= 6.0.3.4)
112
- activestorage (= 6.0.3.4)
113
- activesupport (= 6.0.3.4)
114
- bundler (>= 1.3.0)
115
- railties (= 6.0.3.4)
106
+ rails (6.1.0)
107
+ actioncable (= 6.1.0)
108
+ actionmailbox (= 6.1.0)
109
+ actionmailer (= 6.1.0)
110
+ actionpack (= 6.1.0)
111
+ actiontext (= 6.1.0)
112
+ actionview (= 6.1.0)
113
+ activejob (= 6.1.0)
114
+ activemodel (= 6.1.0)
115
+ activerecord (= 6.1.0)
116
+ activestorage (= 6.1.0)
117
+ activesupport (= 6.1.0)
118
+ bundler (>= 1.15.0)
119
+ railties (= 6.1.0)
116
120
  sprockets-rails (>= 2.0.0)
117
121
  rails-dom-testing (2.0.3)
118
122
  activesupport (>= 4.2.0)
119
123
  nokogiri (>= 1.6)
120
124
  rails-html-sanitizer (1.3.0)
121
125
  loofah (~> 2.3)
122
- railties (6.0.3.4)
123
- actionpack (= 6.0.3.4)
124
- activesupport (= 6.0.3.4)
126
+ railties (6.1.0)
127
+ actionpack (= 6.1.0)
128
+ activesupport (= 6.1.0)
125
129
  method_source
126
130
  rake (>= 0.8.7)
127
- thor (>= 0.20.3, < 2.0)
131
+ thor (~> 1.0)
128
132
  rainbow (3.0.0)
129
133
  rake (13.0.3)
130
- regexp_parser (2.0.3)
134
+ regexp_parser (2.0.1)
131
135
  rexml (3.2.4)
132
- rubocop (1.7.0)
136
+ rubocop (0.93.1)
133
137
  parallel (~> 1.10)
134
138
  parser (>= 2.7.1.5)
135
139
  rainbow (>= 2.2.2, < 4.0)
136
- regexp_parser (>= 1.8, < 3.0)
140
+ regexp_parser (>= 1.8)
137
141
  rexml
138
- rubocop-ast (>= 1.2.0, < 2.0)
142
+ rubocop-ast (>= 0.6.0)
139
143
  ruby-progressbar (~> 1.7)
140
144
  unicode-display_width (>= 1.4.0, < 2.0)
141
145
  rubocop-ast (1.3.0)
142
146
  parser (>= 2.7.1.5)
143
- rubocop-performance (1.9.2)
147
+ rubocop-performance (1.9.1)
144
148
  rubocop (>= 0.90.0, < 2.0)
145
149
  rubocop-ast (>= 0.4.0)
146
150
  rubocop-rails (2.9.1)
147
151
  activesupport (>= 4.2.0)
148
152
  rack (>= 1.1)
149
153
  rubocop (>= 0.90.0, < 2.0)
150
- ruby-progressbar (1.11.0)
154
+ ruby-progressbar (1.10.1)
151
155
  simplecov (0.20.0)
152
156
  docile (~> 1.1)
153
157
  simplecov-html (~> 0.11)
@@ -162,9 +166,8 @@ GEM
162
166
  activesupport (>= 4.0)
163
167
  sprockets (>= 3.0.0)
164
168
  thor (1.0.1)
165
- thread_safe (0.3.6)
166
- tzinfo (1.2.9)
167
- thread_safe (~> 0.1)
169
+ tzinfo (2.0.4)
170
+ concurrent-ruby (~> 1.0)
168
171
  unicode-display_width (1.7.0)
169
172
  websocket-driver (0.7.3)
170
173
  websocket-extensions (>= 0.1.0)
@@ -172,15 +175,12 @@ GEM
172
175
  zeitwerk (2.4.2)
173
176
 
174
177
  PLATFORMS
175
- x86_64-darwin-19
178
+ ruby
176
179
 
177
180
  DEPENDENCIES
178
181
  minitest-reporters (~> 1.0)
179
- rubocop (~> 1.0)
182
+ rubocop (~> 0.49)
180
183
  rubocop-performance (~> 1.5)
181
184
  rubocop-rails (~> 2.4)
182
185
  simple_workflow!
183
186
  simplecov (~> 0.9)
184
-
185
- BUNDLED WITH
186
- 2.2.3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleWorkflow
4
- VERSION = '2.0.1'
4
+ VERSION = '2.1.0'
5
5
  end
Binary file
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake'
4
+ require './lib/simple_workflow/version'
5
+ require 'date'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'simple_workflow'
9
+ s.version = SimpleWorkflow::VERSION
10
+ s.date = Date.today.strftime '%Y-%m-%d' # rubocop:disable Rails/Date
11
+ s.authors = ['Uwe Kubosch']
12
+ s.email = 'uwe@kubosch.no'
13
+ s.summary = 'Add simple breadcrumbs "detour" workflow to Ruby On Rails.'
14
+ s.homepage = 'https://github.com/donv/simple_workflow'
15
+ s.description = 'Expands Ruby on Rails to allow simple breadcrumb detour workflows.'
16
+ s.required_ruby_version = '>= 2.5', '<4'
17
+ s.licenses = %w[MIT]
18
+ s.files = FileList['[A-Z]*', 'lib/**/*', 'test/**/*'].to_a
19
+
20
+ s.add_runtime_dependency('rails', '>=4.2', '<7')
21
+
22
+ s.add_development_dependency('minitest-reporters', '~>1.0')
23
+ s.add_development_dependency('rubocop', '~>1.0')
24
+ s.add_development_dependency('rubocop-performance', '~>1.5')
25
+ s.add_development_dependency('rubocop-rails', '~>2.4')
26
+ s.add_development_dependency('simplecov', '~>0.9')
27
+ end
data/test/helper_test.rb CHANGED
@@ -109,7 +109,7 @@ class HelperTest < MiniTest::Test
109
109
  if defined?(@routing_error) && @routing_error
110
110
  e = @routing_error
111
111
  @routing_error = nil
112
- raise e
112
+ raise e, 'Error'
113
113
  end
114
114
  options
115
115
  end
data/test/test_helper.rb CHANGED
@@ -14,3 +14,9 @@ require 'rails'
14
14
  require 'simple_workflow'
15
15
 
16
16
  FileUtils.mkdir_p File.expand_path '../log', __dir__
17
+
18
+ module SimpleWorkflow::Controller
19
+ def self.action_encoding_template(action)
20
+ false
21
+ end
22
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-01 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: minitest-reporters
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -119,6 +119,8 @@ files:
119
119
  - lib/simple_workflow/railtie.rb
120
120
  - lib/simple_workflow/test_helper.rb
121
121
  - lib/simple_workflow/version.rb
122
+ - simple_workflow-2.0.0.gem
123
+ - simple_workflow.gemspec
122
124
  - test/controller_test.rb
123
125
  - test/helper_test.rb
124
126
  - test/middleware_test.rb
@@ -137,6 +139,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
139
  - - ">="
138
140
  - !ruby/object:Gem::Version
139
141
  version: '2.5'
142
+ - - "<"
143
+ - !ruby/object:Gem::Version
144
+ version: '4'
140
145
  required_rubygems_version: !ruby/object:Gem::Requirement
141
146
  requirements:
142
147
  - - ">="