qbwc 1.1.0 → 1.2.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.
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "~> 7.0.0"
6
+ gem "actionview", "~> 7.0.0"
7
+ gem "concurrent-ruby", "1.3.4"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,243 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ qbwc (1.1.0)
5
+ actionpack (>= 5.0.1)
6
+ qbxml (>= 0.3.0)
7
+ wash_out (>= 0.12.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (7.0.8.7)
13
+ actionpack (= 7.0.8.7)
14
+ activesupport (= 7.0.8.7)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (7.0.8.7)
18
+ actionpack (= 7.0.8.7)
19
+ activejob (= 7.0.8.7)
20
+ activerecord (= 7.0.8.7)
21
+ activestorage (= 7.0.8.7)
22
+ activesupport (= 7.0.8.7)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.0.8.7)
28
+ actionpack (= 7.0.8.7)
29
+ actionview (= 7.0.8.7)
30
+ activejob (= 7.0.8.7)
31
+ activesupport (= 7.0.8.7)
32
+ mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.0)
37
+ actionpack (7.0.8.7)
38
+ actionview (= 7.0.8.7)
39
+ activesupport (= 7.0.8.7)
40
+ rack (~> 2.0, >= 2.2.4)
41
+ rack-test (>= 0.6.3)
42
+ rails-dom-testing (~> 2.0)
43
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
44
+ actiontext (7.0.8.7)
45
+ actionpack (= 7.0.8.7)
46
+ activerecord (= 7.0.8.7)
47
+ activestorage (= 7.0.8.7)
48
+ activesupport (= 7.0.8.7)
49
+ globalid (>= 0.6.0)
50
+ nokogiri (>= 1.8.5)
51
+ actionview (7.0.8.7)
52
+ activesupport (= 7.0.8.7)
53
+ builder (~> 3.1)
54
+ erubi (~> 1.4)
55
+ rails-dom-testing (~> 2.0)
56
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
+ activejob (7.0.8.7)
58
+ activesupport (= 7.0.8.7)
59
+ globalid (>= 0.3.6)
60
+ activemodel (7.0.8.7)
61
+ activesupport (= 7.0.8.7)
62
+ activerecord (7.0.8.7)
63
+ activemodel (= 7.0.8.7)
64
+ activesupport (= 7.0.8.7)
65
+ activestorage (7.0.8.7)
66
+ actionpack (= 7.0.8.7)
67
+ activejob (= 7.0.8.7)
68
+ activerecord (= 7.0.8.7)
69
+ activesupport (= 7.0.8.7)
70
+ marcel (~> 1.0)
71
+ mini_mime (>= 1.1.0)
72
+ activesupport (7.0.8.7)
73
+ concurrent-ruby (~> 1.0, >= 1.0.2)
74
+ i18n (>= 1.6, < 2)
75
+ minitest (>= 5.1)
76
+ tzinfo (~> 2.0)
77
+ addressable (2.8.7)
78
+ public_suffix (>= 2.0.2, < 7.0)
79
+ akami (1.3.2)
80
+ gyoku (>= 0.4.0)
81
+ nokogiri
82
+ appraisal (2.5.0)
83
+ bundler
84
+ rake
85
+ thor (>= 0.14.0)
86
+ base64 (0.2.0)
87
+ bigdecimal (3.1.9)
88
+ builder (3.3.0)
89
+ byebug (11.1.3)
90
+ concurrent-ruby (1.3.4)
91
+ crack (1.0.0)
92
+ bigdecimal
93
+ rexml
94
+ crass (1.0.6)
95
+ date (3.4.1)
96
+ diff-lcs (1.6.0)
97
+ erubi (1.13.1)
98
+ globalid (1.2.1)
99
+ activesupport (>= 6.1)
100
+ gyoku (1.4.0)
101
+ builder (>= 2.1.2)
102
+ rexml (~> 3.0)
103
+ hashdiff (1.1.2)
104
+ httpi (3.0.1)
105
+ rack
106
+ i18n (1.14.7)
107
+ concurrent-ruby (~> 1.0)
108
+ loofah (2.24.0)
109
+ crass (~> 1.0.2)
110
+ nokogiri (>= 1.12.0)
111
+ mail (2.8.1)
112
+ mini_mime (>= 0.1.1)
113
+ net-imap
114
+ net-pop
115
+ net-smtp
116
+ marcel (1.0.4)
117
+ method_source (1.1.0)
118
+ mini_mime (1.1.5)
119
+ mini_portile2 (2.8.8)
120
+ minitest (5.25.5)
121
+ net-imap (0.4.19)
122
+ date
123
+ net-protocol
124
+ net-pop (0.1.2)
125
+ net-protocol
126
+ net-protocol (0.2.2)
127
+ timeout
128
+ net-smtp (0.5.1)
129
+ net-protocol
130
+ nio4r (2.7.4)
131
+ nokogiri (1.15.7)
132
+ mini_portile2 (~> 2.8.2)
133
+ racc (~> 1.4)
134
+ nokogiri (1.15.7-x86_64-linux)
135
+ racc (~> 1.4)
136
+ nori (2.6.0)
137
+ public_suffix (5.1.1)
138
+ qbxml (0.5.0)
139
+ activesupport (>= 5.0.0)
140
+ builder (~> 3.0)
141
+ nokogiri (~> 1.5)
142
+ racc (1.8.1)
143
+ rack (2.2.13)
144
+ rack-test (2.2.0)
145
+ rack (>= 1.3)
146
+ rails (7.0.8.7)
147
+ actioncable (= 7.0.8.7)
148
+ actionmailbox (= 7.0.8.7)
149
+ actionmailer (= 7.0.8.7)
150
+ actionpack (= 7.0.8.7)
151
+ actiontext (= 7.0.8.7)
152
+ actionview (= 7.0.8.7)
153
+ activejob (= 7.0.8.7)
154
+ activemodel (= 7.0.8.7)
155
+ activerecord (= 7.0.8.7)
156
+ activestorage (= 7.0.8.7)
157
+ activesupport (= 7.0.8.7)
158
+ bundler (>= 1.15.0)
159
+ railties (= 7.0.8.7)
160
+ rails-dom-testing (2.2.0)
161
+ activesupport (>= 5.0.0)
162
+ minitest
163
+ nokogiri (>= 1.6)
164
+ rails-html-sanitizer (1.6.2)
165
+ loofah (~> 2.21)
166
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
167
+ railties (7.0.8.7)
168
+ actionpack (= 7.0.8.7)
169
+ activesupport (= 7.0.8.7)
170
+ method_source
171
+ rake (>= 12.2)
172
+ thor (~> 1.0)
173
+ zeitwerk (~> 2.5)
174
+ rake (13.2.1)
175
+ rexml (3.4.1)
176
+ rspec (3.13.0)
177
+ rspec-core (~> 3.13.0)
178
+ rspec-expectations (~> 3.13.0)
179
+ rspec-mocks (~> 3.13.0)
180
+ rspec-core (3.13.3)
181
+ rspec-support (~> 3.13.0)
182
+ rspec-expectations (3.13.3)
183
+ diff-lcs (>= 1.2.0, < 2.0)
184
+ rspec-support (~> 3.13.0)
185
+ rspec-mocks (3.13.2)
186
+ diff-lcs (>= 1.2.0, < 2.0)
187
+ rspec-support (~> 3.13.0)
188
+ rspec-support (3.13.2)
189
+ savon (2.15.0)
190
+ akami (~> 1.2)
191
+ builder (>= 2.1.2)
192
+ gyoku (~> 1.2)
193
+ httpi (>= 2.4.5, < 5)
194
+ mail (~> 2.5)
195
+ nokogiri (>= 1.8.1)
196
+ nori (~> 2.4)
197
+ wasabi (>= 3.7, < 6)
198
+ sqlite3 (1.6.9)
199
+ mini_portile2 (~> 2.8.0)
200
+ sqlite3 (1.6.9-x86_64-linux)
201
+ thor (1.3.2)
202
+ timeout (0.4.3)
203
+ tzinfo (2.0.6)
204
+ concurrent-ruby (~> 1.0)
205
+ wasabi (4.0.0)
206
+ addressable
207
+ httpi (~> 3.0)
208
+ nokogiri (>= 1.13.9)
209
+ wash_out (0.12.0)
210
+ nori (>= 2.0.0)
211
+ webmock (3.25.1)
212
+ addressable (>= 2.8.0)
213
+ crack (>= 0.3.2)
214
+ hashdiff (>= 0.4.0, < 2.0.0)
215
+ websocket-driver (0.7.7)
216
+ base64
217
+ websocket-extensions (>= 0.1.0)
218
+ websocket-extensions (0.1.5)
219
+ zeitwerk (2.6.18)
220
+
221
+ PLATFORMS
222
+ ruby
223
+ x86_64-linux
224
+
225
+ DEPENDENCIES
226
+ actionpack (~> 7.0.0)
227
+ actionview (~> 7.0.0)
228
+ activerecord
229
+ appraisal
230
+ byebug
231
+ concurrent-ruby (= 1.3.4)
232
+ httpi
233
+ minitest
234
+ qbwc!
235
+ rails (>= 5.0.1, < 7.2)
236
+ rake
237
+ rspec
238
+ savon
239
+ sqlite3
240
+ webmock
241
+
242
+ BUNDLED WITH
243
+ 2.4.13
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "actionpack", "~> 5.0.1"
6
- gem "actionview", "~> 5.0.1"
5
+ gem "actionpack", "~> 7.1.0"
6
+ gem "actionview", "~> 7.1.0"
7
7
 
8
8
  gemspec path: "../"
@@ -0,0 +1,292 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ qbwc (1.1.0)
5
+ actionpack (>= 5.0.1)
6
+ qbxml (>= 0.3.0)
7
+ wash_out (>= 0.12.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (7.1.5.1)
13
+ actionpack (= 7.1.5.1)
14
+ activesupport (= 7.1.5.1)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ zeitwerk (~> 2.6)
18
+ actionmailbox (7.1.5.1)
19
+ actionpack (= 7.1.5.1)
20
+ activejob (= 7.1.5.1)
21
+ activerecord (= 7.1.5.1)
22
+ activestorage (= 7.1.5.1)
23
+ activesupport (= 7.1.5.1)
24
+ mail (>= 2.7.1)
25
+ net-imap
26
+ net-pop
27
+ net-smtp
28
+ actionmailer (7.1.5.1)
29
+ actionpack (= 7.1.5.1)
30
+ actionview (= 7.1.5.1)
31
+ activejob (= 7.1.5.1)
32
+ activesupport (= 7.1.5.1)
33
+ mail (~> 2.5, >= 2.5.4)
34
+ net-imap
35
+ net-pop
36
+ net-smtp
37
+ rails-dom-testing (~> 2.2)
38
+ actionpack (7.1.5.1)
39
+ actionview (= 7.1.5.1)
40
+ activesupport (= 7.1.5.1)
41
+ nokogiri (>= 1.8.5)
42
+ racc
43
+ rack (>= 2.2.4)
44
+ rack-session (>= 1.0.1)
45
+ rack-test (>= 0.6.3)
46
+ rails-dom-testing (~> 2.2)
47
+ rails-html-sanitizer (~> 1.6)
48
+ actiontext (7.1.5.1)
49
+ actionpack (= 7.1.5.1)
50
+ activerecord (= 7.1.5.1)
51
+ activestorage (= 7.1.5.1)
52
+ activesupport (= 7.1.5.1)
53
+ globalid (>= 0.6.0)
54
+ nokogiri (>= 1.8.5)
55
+ actionview (7.1.5.1)
56
+ activesupport (= 7.1.5.1)
57
+ builder (~> 3.1)
58
+ erubi (~> 1.11)
59
+ rails-dom-testing (~> 2.2)
60
+ rails-html-sanitizer (~> 1.6)
61
+ activejob (7.1.5.1)
62
+ activesupport (= 7.1.5.1)
63
+ globalid (>= 0.3.6)
64
+ activemodel (7.1.5.1)
65
+ activesupport (= 7.1.5.1)
66
+ activerecord (7.1.5.1)
67
+ activemodel (= 7.1.5.1)
68
+ activesupport (= 7.1.5.1)
69
+ timeout (>= 0.4.0)
70
+ activestorage (7.1.5.1)
71
+ actionpack (= 7.1.5.1)
72
+ activejob (= 7.1.5.1)
73
+ activerecord (= 7.1.5.1)
74
+ activesupport (= 7.1.5.1)
75
+ marcel (~> 1.0)
76
+ activesupport (7.1.5.1)
77
+ base64
78
+ benchmark (>= 0.3)
79
+ bigdecimal
80
+ concurrent-ruby (~> 1.0, >= 1.0.2)
81
+ connection_pool (>= 2.2.5)
82
+ drb
83
+ i18n (>= 1.6, < 2)
84
+ logger (>= 1.4.2)
85
+ minitest (>= 5.1)
86
+ mutex_m
87
+ securerandom (>= 0.3)
88
+ tzinfo (~> 2.0)
89
+ addressable (2.8.7)
90
+ public_suffix (>= 2.0.2, < 7.0)
91
+ akami (1.3.3)
92
+ base64
93
+ gyoku (>= 0.4.0)
94
+ nokogiri
95
+ appraisal (2.5.0)
96
+ bundler
97
+ rake
98
+ thor (>= 0.14.0)
99
+ base64 (0.2.0)
100
+ benchmark (0.4.0)
101
+ bigdecimal (3.1.9)
102
+ builder (3.3.0)
103
+ byebug (11.1.3)
104
+ concurrent-ruby (1.3.5)
105
+ connection_pool (2.5.0)
106
+ crack (1.0.0)
107
+ bigdecimal
108
+ rexml
109
+ crass (1.0.6)
110
+ date (3.4.1)
111
+ diff-lcs (1.6.0)
112
+ drb (2.2.1)
113
+ erubi (1.13.1)
114
+ faraday (2.12.2)
115
+ faraday-net_http (>= 2.0, < 3.5)
116
+ json
117
+ logger
118
+ faraday-net_http (3.4.0)
119
+ net-http (>= 0.5.0)
120
+ globalid (1.2.1)
121
+ activesupport (>= 6.1)
122
+ gyoku (1.4.0)
123
+ builder (>= 2.1.2)
124
+ rexml (~> 3.0)
125
+ hashdiff (1.1.2)
126
+ httpi (4.0.4)
127
+ base64
128
+ mutex_m
129
+ nkf
130
+ rack (>= 2.0, < 4)
131
+ i18n (1.14.7)
132
+ concurrent-ruby (~> 1.0)
133
+ io-console (0.8.0)
134
+ irb (1.15.1)
135
+ pp (>= 0.6.0)
136
+ rdoc (>= 4.0.0)
137
+ reline (>= 0.4.2)
138
+ json (2.10.2)
139
+ logger (1.6.6)
140
+ loofah (2.24.0)
141
+ crass (~> 1.0.2)
142
+ nokogiri (>= 1.12.0)
143
+ mail (2.8.1)
144
+ mini_mime (>= 0.1.1)
145
+ net-imap
146
+ net-pop
147
+ net-smtp
148
+ marcel (1.0.4)
149
+ mini_mime (1.1.5)
150
+ mini_portile2 (2.8.8)
151
+ minitest (5.25.5)
152
+ mutex_m (0.3.0)
153
+ net-http (0.6.0)
154
+ uri
155
+ net-imap (0.4.19)
156
+ date
157
+ net-protocol
158
+ net-pop (0.1.2)
159
+ net-protocol
160
+ net-protocol (0.2.2)
161
+ timeout
162
+ net-smtp (0.5.1)
163
+ net-protocol
164
+ nio4r (2.7.4)
165
+ nkf (0.2.0)
166
+ nokogiri (1.17.2-x86_64-linux)
167
+ racc (~> 1.4)
168
+ nori (2.7.1)
169
+ bigdecimal
170
+ pp (0.6.2)
171
+ prettyprint
172
+ prettyprint (0.2.0)
173
+ psych (5.2.3)
174
+ date
175
+ stringio
176
+ public_suffix (6.0.1)
177
+ qbxml (0.5.0)
178
+ activesupport (>= 5.0.0)
179
+ builder (~> 3.0)
180
+ nokogiri (~> 1.5)
181
+ racc (1.8.1)
182
+ rack (3.1.12)
183
+ rack-session (2.1.0)
184
+ base64 (>= 0.1.0)
185
+ rack (>= 3.0.0)
186
+ rack-test (2.2.0)
187
+ rack (>= 1.3)
188
+ rackup (2.2.1)
189
+ rack (>= 3)
190
+ rails (7.1.5.1)
191
+ actioncable (= 7.1.5.1)
192
+ actionmailbox (= 7.1.5.1)
193
+ actionmailer (= 7.1.5.1)
194
+ actionpack (= 7.1.5.1)
195
+ actiontext (= 7.1.5.1)
196
+ actionview (= 7.1.5.1)
197
+ activejob (= 7.1.5.1)
198
+ activemodel (= 7.1.5.1)
199
+ activerecord (= 7.1.5.1)
200
+ activestorage (= 7.1.5.1)
201
+ activesupport (= 7.1.5.1)
202
+ bundler (>= 1.15.0)
203
+ railties (= 7.1.5.1)
204
+ rails-dom-testing (2.2.0)
205
+ activesupport (>= 5.0.0)
206
+ minitest
207
+ nokogiri (>= 1.6)
208
+ rails-html-sanitizer (1.6.2)
209
+ loofah (~> 2.21)
210
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
211
+ railties (7.1.5.1)
212
+ actionpack (= 7.1.5.1)
213
+ activesupport (= 7.1.5.1)
214
+ irb
215
+ rackup (>= 1.0.0)
216
+ rake (>= 12.2)
217
+ thor (~> 1.0, >= 1.2.2)
218
+ zeitwerk (~> 2.6)
219
+ rake (13.2.1)
220
+ rdoc (6.12.0)
221
+ psych (>= 4.0.0)
222
+ reline (0.6.0)
223
+ io-console (~> 0.5)
224
+ rexml (3.4.1)
225
+ rspec (3.13.0)
226
+ rspec-core (~> 3.13.0)
227
+ rspec-expectations (~> 3.13.0)
228
+ rspec-mocks (~> 3.13.0)
229
+ rspec-core (3.13.3)
230
+ rspec-support (~> 3.13.0)
231
+ rspec-expectations (3.13.3)
232
+ diff-lcs (>= 1.2.0, < 2.0)
233
+ rspec-support (~> 3.13.0)
234
+ rspec-mocks (3.13.2)
235
+ diff-lcs (>= 1.2.0, < 2.0)
236
+ rspec-support (~> 3.13.0)
237
+ rspec-support (3.13.2)
238
+ savon (2.15.1)
239
+ akami (~> 1.2)
240
+ builder (>= 2.1.2)
241
+ gyoku (~> 1.2)
242
+ httpi (>= 4, < 5)
243
+ mail (~> 2.5)
244
+ nokogiri (>= 1.8.1)
245
+ nori (~> 2.4)
246
+ wasabi (>= 3.7, < 6)
247
+ securerandom (0.3.2)
248
+ sqlite3 (2.0.4)
249
+ mini_portile2 (~> 2.8.0)
250
+ stringio (3.1.5)
251
+ thor (1.3.2)
252
+ timeout (0.4.3)
253
+ tzinfo (2.0.6)
254
+ concurrent-ruby (~> 1.0)
255
+ uri (1.0.3)
256
+ wasabi (5.1.0)
257
+ addressable
258
+ faraday (>= 1.9, < 3)
259
+ nokogiri (>= 1.13.9)
260
+ wash_out (0.12.0)
261
+ nori (>= 2.0.0)
262
+ webmock (3.25.1)
263
+ addressable (>= 2.8.0)
264
+ crack (>= 0.3.2)
265
+ hashdiff (>= 0.4.0, < 2.0.0)
266
+ websocket-driver (0.7.7)
267
+ base64
268
+ websocket-extensions (>= 0.1.0)
269
+ websocket-extensions (0.1.5)
270
+ zeitwerk (2.6.18)
271
+
272
+ PLATFORMS
273
+ x86_64-linux
274
+
275
+ DEPENDENCIES
276
+ actionpack (~> 7.1.0)
277
+ actionview (~> 7.1.0)
278
+ activerecord
279
+ appraisal
280
+ byebug
281
+ httpi
282
+ minitest
283
+ qbwc!
284
+ rails (>= 5.0.1, < 7.2)
285
+ rake
286
+ rspec
287
+ savon
288
+ sqlite3
289
+ webmock
290
+
291
+ BUNDLED WITH
292
+ 2.4.13
@@ -1,8 +1,15 @@
1
1
  class QBWC::ActiveRecord::Job < QBWC::Job
2
2
  class QbwcJob < ActiveRecord::Base
3
- validates :name, :uniqueness => true, :presence => true
4
- serialize :requests, Hash
5
- serialize :request_index, Hash
3
+ validates :name, :uniqueness => { :case_sensitive => true }, :presence => true
4
+
5
+ if Rails.version >= '6.1'
6
+ serialize :requests, type: Hash
7
+ serialize :request_index, type: Hash
8
+ else
9
+ serialize :requests, Hash
10
+ serialize :request_index, Hash
11
+ end
12
+
6
13
  serialize :data
7
14
 
8
15
  def to_qbwc_job
@@ -85,7 +85,7 @@ SB
85
85
  #{scheduler_block}
86
86
  </QBWCXML>
87
87
  QWC
88
- send_data qwc, :filename => "#{Rails.application.class.parent_name}.qwc", :content_type => 'application/x-qwc'
88
+ send_data qwc, :filename => "#{Rails.application.class.try(:module_parent_name) || Rails.application.class.parent_name}.qwc", :content_type => 'application/x-qwc'
89
89
  end
90
90
 
91
91
  class StringArray < WashOut::Type
@@ -162,7 +162,7 @@ QWC
162
162
  end
163
163
 
164
164
  def app_name
165
- "#{Rails.application.class.parent_name} #{Rails.env}"
165
+ "#{Rails.application.class.try(:module_parent_name) || Rails.application.class.parent_name} #{Rails.env}"
166
166
  end
167
167
 
168
168
  def file_id
data/lib/qbwc/session.rb CHANGED
@@ -18,7 +18,7 @@ class QBWC::Session
18
18
  @iterator_id = nil
19
19
  @initial_job_count = pending_jobs.length
20
20
 
21
- @ticket = ticket || Digest::SHA1.hexdigest("#{Rails.application.config.secret_token}#{Time.now.to_i}")
21
+ @ticket = ticket || Digest::SHA1.hexdigest("#{Rails.application.config.try(:secret_key_base) || Rails.application.config.try(:secret_token)}#{SecureRandom.uuid}")
22
22
 
23
23
  @@session = self
24
24
  reset(ticket.nil?)
@@ -61,8 +61,9 @@ class QBWC::Session
61
61
  request = self.next_request
62
62
  if request && self.iterator_id.present?
63
63
  request = request.to_hash
64
+ requestID = request.values.first["xml_attributes"]["requestID"]
64
65
  request.delete('xml_attributes')
65
- request.values.first['xml_attributes'] = {'iterator' => 'Continue', 'iteratorID' => self.iterator_id}
66
+ request.values.first['xml_attributes'] = {'iterator' => 'Continue', 'iteratorID' => self.iterator_id, 'requestID' => requestID}
66
67
  request = QBWC::Request.new(request)
67
68
  end
68
69
  request
data/lib/qbwc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module QBWC
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
data/qbwc.gemspec CHANGED
@@ -31,11 +31,12 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency('webmock')
32
32
  s.add_development_dependency('rspec')
33
33
  s.add_development_dependency('activerecord')
34
- s.add_development_dependency('rails', [">= 5.0.1"])
34
+ s.add_development_dependency('rails', [">= 5.0.1", '< 7.2'])
35
35
  s.add_development_dependency('sqlite3')
36
36
  s.add_development_dependency('minitest')
37
37
  s.add_development_dependency('rake')
38
38
  s.add_development_dependency('appraisal')
39
39
  s.add_development_dependency('savon')
40
40
  s.add_development_dependency('httpi')
41
+ s.add_development_dependency('byebug')
41
42
  end
@@ -8,6 +8,7 @@ class QBWCControllerTest < ActionController::TestCase
8
8
 
9
9
  def setup
10
10
  @routes = Rails.application.routes # https://github.com/blowmage/minitest-rails/issues/133#issuecomment-36401436
11
+ ActiveRecord::Base.yaml_column_permitted_classes += [Symbol] if ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes)
11
12
  @controller = QbwcController.new # http://stackoverflow.com/a/7743176
12
13
  @session = QBWC::Session.new('foo', '')
13
14
 
@@ -20,7 +20,7 @@ class SavonClientTest < ActionDispatch::IntegrationTest
20
20
 
21
21
  # http://blog.johnsonch.com/2013/04/18/rails-3-soap-and-testing-oh-my/
22
22
  test "qbwc/action serverVersion" do
23
- host = 'application'
23
+ host = 'www.example.com'
24
24
  url_base = "http://#{host}"
25
25
  url_path = '/qbwc/action'
26
26
 
@@ -26,12 +26,10 @@ class SessionTest < ActionDispatch::IntegrationTest
26
26
  assert_equal 2, QBWC.pending_jobs(COMPANY, session).count
27
27
 
28
28
  # Simulate controller 1st send_request and receive_response
29
- request = session.current_request
30
29
  session.response = QBWC_CUSTOMER_QUERY_RESPONSE_INFO
31
30
  assert_equal 50, session.progress
32
31
 
33
32
  # Simulate controller 2nd send_request and receive_response
34
- request = session.current_request
35
33
  session.response = QBWC_CUSTOMER_QUERY_RESPONSE_INFO
36
34
  assert_equal 100, session.progress
37
35
  end
@@ -48,12 +46,10 @@ class SessionTest < ActionDispatch::IntegrationTest
48
46
  assert_equal 2, QBWC.pending_jobs(COMPANY, session).count
49
47
 
50
48
  # Simulate controller 1st send_request and receive_response
51
- request = session.current_request
52
49
  session.response = QBWC_CUSTOMER_ADD_RESPONSE_LONG
53
50
  assert_equal 50, session.progress
54
51
 
55
52
  # Simulate controller 2nd send_request and receive_response
56
- request = session.current_request
57
53
  session.response = QBWC_CUSTOMER_QUERY_RESPONSE_INFO
58
54
  assert_equal 100, session.progress
59
55
  end