simple_workflow 2.1.0 → 2.2.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: f3e6b480412f12b33ab1a43ea40edfd280fcf843e7b48307b79a186ea8dfec18
4
- data.tar.gz: '094717e238b6c347acdab6f597b65b1139f1a73dc2646c55ffe3bc702f2074c2'
3
+ metadata.gz: e889d098f3df6a6fb2b8616fe94dd78df26fcb39eefdbef76058f63243ea7009
4
+ data.tar.gz: aca8036b62d9b076aeb7134957141c61bb31da1bf6e748c95f183dc6006cafb4
5
5
  SHA512:
6
- metadata.gz: aa6f9b54442208aee5c61201b3277862a055c6d5e7cbf462f0abbf2e8d249909505dd684ca2c786fdafaba445ed55a0b3a0dcee4d6d3afffde7edbe47a3ee92a
7
- data.tar.gz: 43249992ddb88144cfcc00ced9d9570c2aa722604ae4c2ff6f4d25c23db8f614bf33c0e9b2d197a3d48d92eb06253e35b72e3142d1ec6d090b9e2c380123869b
6
+ metadata.gz: 7de279f421829e2aba3a9401ddf26925f9dad573f531753a562d7abd552bf0b2f65a487f8906d1335e5a40dadd6f45a3b72137be06a7378fa2f9bec9d8e1f0e5
7
+ data.tar.gz: 3801dd96ab9190e4c2f008dc3c75e03a2f90b02459ffbb4517c1de8a92dee6505eebbe216a88434cb530d363114ae3042f6efe0c0f635fc1b5828b15750e65dd
data/Gemfile.lock CHANGED
@@ -1,186 +1,198 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_workflow (2.1.0)
5
- rails (>= 4.2, < 7)
4
+ simple_workflow (2.2.0)
5
+ rails (>= 6.2, < 8)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.1.0)
11
- actionpack (= 6.1.0)
12
- activesupport (= 6.1.0)
10
+ actioncable (7.0.2.2)
11
+ actionpack (= 7.0.2.2)
12
+ activesupport (= 7.0.2.2)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
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)
15
+ actionmailbox (7.0.2.2)
16
+ actionpack (= 7.0.2.2)
17
+ activejob (= 7.0.2.2)
18
+ activerecord (= 7.0.2.2)
19
+ activestorage (= 7.0.2.2)
20
+ activesupport (= 7.0.2.2)
21
21
  mail (>= 2.7.1)
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)
22
+ net-imap
23
+ net-pop
24
+ net-smtp
25
+ actionmailer (7.0.2.2)
26
+ actionpack (= 7.0.2.2)
27
+ actionview (= 7.0.2.2)
28
+ activejob (= 7.0.2.2)
29
+ activesupport (= 7.0.2.2)
27
30
  mail (~> 2.5, >= 2.5.4)
31
+ net-imap
32
+ net-pop
33
+ net-smtp
28
34
  rails-dom-testing (~> 2.0)
29
- actionpack (6.1.0)
30
- actionview (= 6.1.0)
31
- activesupport (= 6.1.0)
32
- rack (~> 2.0, >= 2.0.9)
35
+ actionpack (7.0.2.2)
36
+ actionview (= 7.0.2.2)
37
+ activesupport (= 7.0.2.2)
38
+ rack (~> 2.0, >= 2.2.0)
33
39
  rack-test (>= 0.6.3)
34
40
  rails-dom-testing (~> 2.0)
35
41
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
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)
42
+ actiontext (7.0.2.2)
43
+ actionpack (= 7.0.2.2)
44
+ activerecord (= 7.0.2.2)
45
+ activestorage (= 7.0.2.2)
46
+ activesupport (= 7.0.2.2)
47
+ globalid (>= 0.6.0)
41
48
  nokogiri (>= 1.8.5)
42
- actionview (6.1.0)
43
- activesupport (= 6.1.0)
49
+ actionview (7.0.2.2)
50
+ activesupport (= 7.0.2.2)
44
51
  builder (~> 3.1)
45
52
  erubi (~> 1.4)
46
53
  rails-dom-testing (~> 2.0)
47
54
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.0)
49
- activesupport (= 6.1.0)
55
+ activejob (7.0.2.2)
56
+ activesupport (= 7.0.2.2)
50
57
  globalid (>= 0.3.6)
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)
61
- marcel (~> 0.3.1)
62
- mimemagic (~> 0.3.2)
63
- activesupport (6.1.0)
58
+ activemodel (7.0.2.2)
59
+ activesupport (= 7.0.2.2)
60
+ activerecord (7.0.2.2)
61
+ activemodel (= 7.0.2.2)
62
+ activesupport (= 7.0.2.2)
63
+ activestorage (7.0.2.2)
64
+ actionpack (= 7.0.2.2)
65
+ activejob (= 7.0.2.2)
66
+ activerecord (= 7.0.2.2)
67
+ activesupport (= 7.0.2.2)
68
+ marcel (~> 1.0)
69
+ mini_mime (>= 1.1.0)
70
+ activesupport (7.0.2.2)
64
71
  concurrent-ruby (~> 1.0, >= 1.0.2)
65
72
  i18n (>= 1.6, < 2)
66
73
  minitest (>= 5.1)
67
74
  tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
- ansi (1.5.0)
70
- ast (2.4.1)
75
+ ast (2.4.2)
71
76
  builder (3.2.4)
72
- concurrent-ruby (1.1.7)
77
+ concurrent-ruby (1.1.9)
73
78
  crass (1.0.6)
74
- docile (1.3.3)
79
+ digest (3.1.0)
80
+ docile (1.4.0)
75
81
  erubi (1.10.0)
76
- globalid (0.4.2)
77
- activesupport (>= 4.2.0)
78
- i18n (1.8.5)
82
+ globalid (1.0.0)
83
+ activesupport (>= 5.0)
84
+ i18n (1.10.0)
79
85
  concurrent-ruby (~> 1.0)
80
- loofah (2.8.0)
86
+ io-wait (0.2.1)
87
+ loofah (2.14.0)
81
88
  crass (~> 1.0.2)
82
89
  nokogiri (>= 1.5.9)
83
90
  mail (2.7.1)
84
91
  mini_mime (>= 0.1.1)
85
- marcel (0.3.3)
86
- mimemagic (~> 0.3.2)
92
+ marcel (1.0.2)
87
93
  method_source (1.0.0)
88
- mimemagic (0.3.5)
89
- mini_mime (1.0.2)
90
- mini_portile2 (2.4.0)
91
- minitest (5.14.2)
92
- minitest-reporters (1.4.2)
93
- ansi
94
- builder
95
- minitest (>= 5.0)
96
- ruby-progressbar
97
- nio4r (2.5.4)
98
- nokogiri (1.10.10)
99
- mini_portile2 (~> 2.4.0)
100
- parallel (1.20.1)
101
- parser (2.7.2.0)
94
+ mini_mime (1.1.2)
95
+ minitest (5.15.0)
96
+ net-imap (0.2.3)
97
+ digest
98
+ net-protocol
99
+ strscan
100
+ net-pop (0.1.1)
101
+ digest
102
+ net-protocol
103
+ timeout
104
+ net-protocol (0.1.2)
105
+ io-wait
106
+ timeout
107
+ net-smtp (0.3.1)
108
+ digest
109
+ net-protocol
110
+ timeout
111
+ nio4r (2.5.8)
112
+ nokogiri (1.13.3-x86_64-darwin)
113
+ racc (~> 1.4)
114
+ parallel (1.21.0)
115
+ parser (3.1.1.0)
102
116
  ast (~> 2.4.1)
117
+ racc (1.6.0)
103
118
  rack (2.2.3)
104
119
  rack-test (1.1.0)
105
120
  rack (>= 1.0, < 3)
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)
121
+ rails (7.0.2.2)
122
+ actioncable (= 7.0.2.2)
123
+ actionmailbox (= 7.0.2.2)
124
+ actionmailer (= 7.0.2.2)
125
+ actionpack (= 7.0.2.2)
126
+ actiontext (= 7.0.2.2)
127
+ actionview (= 7.0.2.2)
128
+ activejob (= 7.0.2.2)
129
+ activemodel (= 7.0.2.2)
130
+ activerecord (= 7.0.2.2)
131
+ activestorage (= 7.0.2.2)
132
+ activesupport (= 7.0.2.2)
118
133
  bundler (>= 1.15.0)
119
- railties (= 6.1.0)
120
- sprockets-rails (>= 2.0.0)
134
+ railties (= 7.0.2.2)
121
135
  rails-dom-testing (2.0.3)
122
136
  activesupport (>= 4.2.0)
123
137
  nokogiri (>= 1.6)
124
- rails-html-sanitizer (1.3.0)
138
+ rails-html-sanitizer (1.4.2)
125
139
  loofah (~> 2.3)
126
- railties (6.1.0)
127
- actionpack (= 6.1.0)
128
- activesupport (= 6.1.0)
140
+ railties (7.0.2.2)
141
+ actionpack (= 7.0.2.2)
142
+ activesupport (= 7.0.2.2)
129
143
  method_source
130
- rake (>= 0.8.7)
144
+ rake (>= 12.2)
131
145
  thor (~> 1.0)
132
- rainbow (3.0.0)
133
- rake (13.0.3)
134
- regexp_parser (2.0.1)
135
- rexml (3.2.4)
136
- rubocop (0.93.1)
146
+ zeitwerk (~> 2.5)
147
+ rainbow (3.1.1)
148
+ rake (13.0.6)
149
+ regexp_parser (2.2.1)
150
+ rexml (3.2.5)
151
+ rubocop (1.25.1)
137
152
  parallel (~> 1.10)
138
- parser (>= 2.7.1.5)
153
+ parser (>= 3.1.0.0)
139
154
  rainbow (>= 2.2.2, < 4.0)
140
- regexp_parser (>= 1.8)
155
+ regexp_parser (>= 1.8, < 3.0)
141
156
  rexml
142
- rubocop-ast (>= 0.6.0)
157
+ rubocop-ast (>= 1.15.1, < 2.0)
143
158
  ruby-progressbar (~> 1.7)
144
- unicode-display_width (>= 1.4.0, < 2.0)
145
- rubocop-ast (1.3.0)
146
- parser (>= 2.7.1.5)
147
- rubocop-performance (1.9.1)
148
- rubocop (>= 0.90.0, < 2.0)
159
+ unicode-display_width (>= 1.4.0, < 3.0)
160
+ rubocop-ast (1.16.0)
161
+ parser (>= 3.1.1.0)
162
+ rubocop-performance (1.13.2)
163
+ rubocop (>= 1.7.0, < 2.0)
149
164
  rubocop-ast (>= 0.4.0)
150
- rubocop-rails (2.9.1)
165
+ rubocop-rails (2.13.2)
151
166
  activesupport (>= 4.2.0)
152
167
  rack (>= 1.1)
153
- rubocop (>= 0.90.0, < 2.0)
154
- ruby-progressbar (1.10.1)
155
- simplecov (0.20.0)
168
+ rubocop (>= 1.7.0, < 2.0)
169
+ ruby-progressbar (1.11.0)
170
+ simplecov (0.21.2)
156
171
  docile (~> 1.1)
157
172
  simplecov-html (~> 0.11)
158
173
  simplecov_json_formatter (~> 0.1)
159
174
  simplecov-html (0.12.3)
160
- simplecov_json_formatter (0.1.2)
161
- sprockets (4.0.2)
162
- concurrent-ruby (~> 1.0)
163
- rack (> 1, < 3)
164
- sprockets-rails (3.2.2)
165
- actionpack (>= 4.0)
166
- activesupport (>= 4.0)
167
- sprockets (>= 3.0.0)
168
- thor (1.0.1)
175
+ simplecov_json_formatter (0.1.4)
176
+ strscan (3.0.1)
177
+ thor (1.2.1)
178
+ timeout (0.2.0)
169
179
  tzinfo (2.0.4)
170
180
  concurrent-ruby (~> 1.0)
171
- unicode-display_width (1.7.0)
172
- websocket-driver (0.7.3)
181
+ unicode-display_width (2.1.0)
182
+ websocket-driver (0.7.5)
173
183
  websocket-extensions (>= 0.1.0)
174
184
  websocket-extensions (0.1.5)
175
- zeitwerk (2.4.2)
185
+ zeitwerk (2.5.4)
176
186
 
177
187
  PLATFORMS
178
188
  ruby
179
189
 
180
190
  DEPENDENCIES
181
- minitest-reporters (~> 1.0)
182
- rubocop (~> 0.49)
191
+ rubocop (~> 1.0)
183
192
  rubocop-performance (~> 1.5)
184
193
  rubocop-rails (~> 2.4)
185
194
  simple_workflow!
186
195
  simplecov (~> 0.9)
196
+
197
+ BUNDLED WITH
198
+ 2.3.5
@@ -23,7 +23,7 @@ module SimpleWorkflow::Detour
23
23
  return nil unless detours
24
24
 
25
25
  detour = detours.delete(origin_options) || detours.pop
26
- Rails.logger.debug "popped detour: #{detour.inspect} #{session[:detours].size} more"
26
+ Rails.logger.debug { "popped detour: #{detour.inspect} #{session[:detours].size} more" }
27
27
  reset_workflow(session) if detours.empty?
28
28
  detour
29
29
  end
@@ -42,7 +42,7 @@ class SimpleWorkflow::Middleware
42
42
  end
43
43
 
44
44
  def remove_old_detours(env)
45
- return unless session(env).instance_variable_get('@by').is_a?(ActionDispatch::Session::CookieStore)
45
+ return unless session(env).instance_variable_get(:@by).is_a?(ActionDispatch::Session::CookieStore)
46
46
 
47
47
  session_size = workflow_size = nil
48
48
  session = session(env)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleWorkflow
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
@@ -7,7 +7,6 @@ require 'date'
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'simple_workflow'
9
9
  s.version = SimpleWorkflow::VERSION
10
- s.date = Date.today.strftime '%Y-%m-%d' # rubocop:disable Rails/Date
11
10
  s.authors = ['Uwe Kubosch']
12
11
  s.email = 'uwe@kubosch.no'
13
12
  s.summary = 'Add simple breadcrumbs "detour" workflow to Ruby On Rails.'
@@ -17,11 +16,11 @@ Gem::Specification.new do |s|
17
16
  s.licenses = %w[MIT]
18
17
  s.files = FileList['[A-Z]*', 'lib/**/*', 'test/**/*'].to_a
19
18
 
20
- s.add_runtime_dependency('rails', '>=4.2', '<7')
19
+ s.add_runtime_dependency('rails', '>=6.2', '<8')
21
20
 
22
- s.add_development_dependency('minitest-reporters', '~>1.0')
23
21
  s.add_development_dependency('rubocop', '~>1.0')
24
22
  s.add_development_dependency('rubocop-performance', '~>1.5')
25
23
  s.add_development_dependency('rubocop-rails', '~>2.4')
26
24
  s.add_development_dependency('simplecov', '~>0.9')
25
+ s.metadata['rubygems_mfa_required'] = 'true'
27
26
  end
data/test/helper_test.rb CHANGED
@@ -9,7 +9,7 @@ class HelperTest < MiniTest::Test
9
9
 
10
10
  def test_with_detour
11
11
  assert_equal '?detour%5Baction%5D=myaction&detour%5Bcontroller%5D=mycontroller&detour%5Bid%5D=42' \
12
- '&detour%5Bquery%5D%5Bnested%5D=criterium',
12
+ '&detour%5Bquery%5D%5Bnested%5D=criterium',
13
13
  with_detour('')
14
14
  end
15
15
 
@@ -20,7 +20,8 @@ class HelperTest < MiniTest::Test
20
20
 
21
21
  def test_with_detour_with_only_anchor_as_origin
22
22
  assert_equal '?detour%5Baction%5D=myaction&detour%5Banchor%5D=tab_2' \
23
- '&detour%5Bcontroller%5D=mycontroller&detour%5Bid%5D=42&detour%5Bquery%5D%5Bnested%5D=criterium',
23
+ '&detour%5Bcontroller%5D=mycontroller&detour%5Bid%5D=42' \
24
+ '&detour%5Bquery%5D%5Bnested%5D=criterium',
24
25
  with_detour('', anchor: :tab_2)
25
26
  end
26
27
 
@@ -38,7 +39,7 @@ class HelperTest < MiniTest::Test
38
39
  end
39
40
 
40
41
  assert_equal '?detour%5Baction%5D=index&detour%5Banchor%5D=tab_2' \
41
- '&detour%5Bcontroller%5D=simple_workflow%2F&detour%5Bhullo%5D=1',
42
+ '&detour%5Bcontroller%5D=simple_workflow%2F&detour%5Bhullo%5D=1',
42
43
  with_detour('', '/dashboard/index?hullo=1#tab_2')
43
44
  ensure
44
45
  Rails.application = nil
@@ -48,7 +49,7 @@ class HelperTest < MiniTest::Test
48
49
  assert_equal [
49
50
  'Link Text',
50
51
  'Link target?detour%5Baction%5D=myaction&detour%5Bcontroller%5D=mycontroller&detour%5Bid%5D=42' \
51
- '&detour%5Bquery%5D%5Bnested%5D=criterium',
52
+ '&detour%5Bquery%5D%5Bnested%5D=criterium',
52
53
  { id: 'link_tag_id', title: 'Link title' },
53
54
  ],
54
55
  detour_to('Link Text', 'Link target', id: 'link_tag_id', title: 'Link title')
data/test/test_helper.rb CHANGED
@@ -8,15 +8,13 @@ SimpleCov.start do
8
8
  minimum_coverage 76
9
9
  end
10
10
  require 'minitest/autorun'
11
- require 'minitest/reporters'
12
- MiniTest::Reporters.use!
13
11
  require 'rails'
14
12
  require 'simple_workflow'
15
13
 
16
14
  FileUtils.mkdir_p File.expand_path '../log', __dir__
17
15
 
18
16
  module SimpleWorkflow::Controller
19
- def self.action_encoding_template(action)
17
+ def self.action_encoding_template(_action)
20
18
  false
21
19
  end
22
20
  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.1.0
4
+ version: 2.2.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-02-02 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,34 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '6.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7'
22
+ version: '8'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '6.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7'
33
- - !ruby/object:Gem::Dependency
34
- name: minitest-reporters
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.0'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.0'
32
+ version: '8'
47
33
  - !ruby/object:Gem::Dependency
48
34
  name: rubocop
49
35
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +105,6 @@ files:
119
105
  - lib/simple_workflow/railtie.rb
120
106
  - lib/simple_workflow/test_helper.rb
121
107
  - lib/simple_workflow/version.rb
122
- - simple_workflow-2.0.0.gem
123
108
  - simple_workflow.gemspec
124
109
  - test/controller_test.rb
125
110
  - test/helper_test.rb
@@ -129,7 +114,8 @@ files:
129
114
  homepage: https://github.com/donv/simple_workflow
130
115
  licenses:
131
116
  - MIT
132
- metadata: {}
117
+ metadata:
118
+ rubygems_mfa_required: 'true'
133
119
  post_install_message:
134
120
  rdoc_options: []
135
121
  require_paths:
@@ -148,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
134
  - !ruby/object:Gem::Version
149
135
  version: '0'
150
136
  requirements: []
151
- rubygems_version: 3.2.3
137
+ rubygems_version: 3.3.7
152
138
  signing_key:
153
139
  specification_version: 4
154
140
  summary: Add simple breadcrumbs "detour" workflow to Ruby On Rails.
Binary file