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.
data/test/test_helper.rb CHANGED
@@ -3,6 +3,7 @@ require 'bundler/setup'
3
3
  Bundler.setup
4
4
 
5
5
  require 'minitest/autorun'
6
+ require 'byebug'
6
7
 
7
8
  require 'active_support'
8
9
  require 'active_record'
@@ -16,11 +17,16 @@ which_command = Gem::Commands::WhichCommand.new
16
17
  paths = which_command.find_paths('wash_out', $LOAD_PATH)
17
18
  wash_out_lib = File.dirname(paths[0]) # Alternate technique: File.dirname(`gem which wash_out`)
18
19
 
19
- # Add wash_out to autoload_paths so that WashOutHelper can be included directly
20
- # http://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html#method-i-helper
21
- # http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#require-dependency
22
- # http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#autoload-paths
23
- ActiveSupport::Dependencies.autoload_paths << "#{wash_out_lib}/../app/helpers"
20
+ if Rails.version < '7'
21
+ # Add wash_out to autoload_paths so that WashOutHelper can be included directly
22
+ # http://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html#method-i-helper
23
+ # http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#require-dependency
24
+ # http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#autoload-paths
25
+ ActiveSupport::Dependencies.autoload_paths << "#{wash_out_lib}/../app/helpers"
26
+ else
27
+ # That doesn't work in Rails 7, but this does.
28
+ require "#{wash_out_lib}/../app/helpers/wash_out_helper.rb"
29
+ end
24
30
 
25
31
  $:<< File.expand_path(File.dirname(__FILE__) + '/../lib')
26
32
  require 'qbwc'
@@ -51,7 +57,11 @@ module QbwcTestApplication
51
57
  Rails.application.configure do
52
58
  config.secret_key_base = "stub"
53
59
  config.eager_load = false
60
+ if config.respond_to?(:hosts)
61
+ config.hosts.clear
62
+ end
54
63
  end
64
+ ActiveRecord::Base.yaml_column_permitted_classes += [Symbol] if ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes)
55
65
  ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
56
66
  require '../qbwc/lib/generators/qbwc/install/templates/db/migrate/create_qbwc_jobs'
57
67
  require '../qbwc/lib/generators/qbwc/install/templates/db/migrate/index_qbwc_jobs'
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbwc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Skryl
8
8
  - Russell Osborne
9
9
  - German Garcia
10
10
  - Jason Barnabe
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-12-09 00:00:00.000000000 Z
14
+ date: 2025-03-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: qbxml
@@ -104,6 +104,9 @@ dependencies:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: 5.0.1
107
+ - - "<"
108
+ - !ruby/object:Gem::Version
109
+ version: '7.2'
107
110
  type: :development
108
111
  prerelease: false
109
112
  version_requirements: !ruby/object:Gem::Requirement
@@ -111,6 +114,9 @@ dependencies:
111
114
  - - ">="
112
115
  - !ruby/object:Gem::Version
113
116
  version: 5.0.1
117
+ - - "<"
118
+ - !ruby/object:Gem::Version
119
+ version: '7.2'
114
120
  - !ruby/object:Gem::Dependency
115
121
  name: sqlite3
116
122
  requirement: !ruby/object:Gem::Requirement
@@ -195,6 +201,20 @@ dependencies:
195
201
  - - ">="
196
202
  - !ruby/object:Gem::Version
197
203
  version: '0'
204
+ - !ruby/object:Gem::Dependency
205
+ name: byebug
206
+ requirement: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ type: :development
212
+ prerelease: false
213
+ version_requirements: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
198
218
  description: A Rails interface for Intuit's Quickbooks Web Connector that's OPEN SOURCE!
199
219
  email:
200
220
  - rut216@gmail.com
@@ -206,17 +226,29 @@ extensions: []
206
226
  extra_rdoc_files:
207
227
  - README.md
208
228
  files:
229
+ - ".github/workflows/ci.yml"
209
230
  - ".gitignore"
210
231
  - ".rspec"
211
- - ".travis.yml"
212
232
  - Appraisals
213
233
  - CHANGELOG.md
214
234
  - Gemfile
235
+ - Gemfile.lock
215
236
  - LICENSE.txt
216
237
  - README.md
217
238
  - Rakefile
218
- - gemfiles/rails_5.0.gemfile
239
+ - gemfiles/.bundle/config
219
240
  - gemfiles/rails_5.1.gemfile
241
+ - gemfiles/rails_5.1.gemfile.lock
242
+ - gemfiles/rails_5.2.gemfile
243
+ - gemfiles/rails_5.2.gemfile.lock
244
+ - gemfiles/rails_6.0.gemfile
245
+ - gemfiles/rails_6.0.gemfile.lock
246
+ - gemfiles/rails_6.1.gemfile
247
+ - gemfiles/rails_6.1.gemfile.lock
248
+ - gemfiles/rails_7.0.gemfile
249
+ - gemfiles/rails_7.0.gemfile.lock
250
+ - gemfiles/rails_7.1.gemfile
251
+ - gemfiles/rails_7.1.gemfile.lock
220
252
  - lib/generators/qbwc/install/install_generator.rb
221
253
  - lib/generators/qbwc/install/templates/config/qbwc.rb
222
254
  - lib/generators/qbwc/install/templates/controllers/qbwc_controller.rb
@@ -249,7 +281,7 @@ files:
249
281
  homepage: ''
250
282
  licenses: []
251
283
  metadata: {}
252
- post_install_message:
284
+ post_install_message:
253
285
  rdoc_options: []
254
286
  require_paths:
255
287
  - lib
@@ -264,9 +296,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
296
  - !ruby/object:Gem::Version
265
297
  version: '0'
266
298
  requirements: []
267
- rubyforge_project: qbwc
268
- rubygems_version: 2.6.8
269
- signing_key:
299
+ rubygems_version: 3.5.11
300
+ signing_key:
270
301
  specification_version: 4
271
302
  summary: A Rails interface for Intuit's Quickbooks Web Connector
272
303
  test_files: []
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.2
5
- - 2.3.5 # https://github.com/travis-ci/travis-ci/issues/5361
6
- - 2.4.2
7
- gemfile:
8
- - gemfiles/rails_5.1.gemfile
9
- - gemfiles/rails_5.0.gemfile
10
- before_install:
11
- - gem update bundler
12
-
13
- script: "bundle exec rake test"