effective_qb_sync 1.4.0 → 1.5.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 +4 -4
- data/MIT-LICENSE +1 -1
- data/config/effective_qb_sync.rb +0 -6
- data/db/migrate/{01_create_effective_qb_sync.rb.erb → 101_create_effective_qb_sync.rb} +10 -19
- data/lib/effective_qb_sync/version.rb +1 -1
- data/lib/generators/effective_qb_sync/install_generator.rb +1 -6
- metadata +36 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e55d82b7d35e1ca6e2b388b26e81d411ce8dd9c159d124f6b7e6bcf4e51862b5
|
4
|
+
data.tar.gz: 2154ab9a976283f25e51d041893b70e5dae4fe231d88fa4499f72d8cf80a5274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09049ae10bf2573d8b9f0b2f078cd953fbaa402e13a93991a3b527ef740672d441a3e9e0c286b85abd216d6a82df423ce84d76ddc76e8a85aec13bcd0ab516ca'
|
7
|
+
data.tar.gz: 45fab0de80049b54ab0bf6f4f88341b66d3327de9256da51c9cfcbc68e57e0a5647aac71d597e917c3dcddea597a90aaae00f3cd37902c6273804d77c357f980
|
data/MIT-LICENSE
CHANGED
data/config/effective_qb_sync.rb
CHANGED
@@ -1,10 +1,4 @@
|
|
1
1
|
EffectiveQbSync.setup do |config|
|
2
|
-
# Configure Database Tables
|
3
|
-
config.qb_requests_table_name = :qb_requests
|
4
|
-
config.qb_tickets_table_name = :qb_tickets
|
5
|
-
config.qb_logs_table_name = :qb_logs
|
6
|
-
config.qb_order_items_table_name = :qb_order_items
|
7
|
-
|
8
2
|
# Layout Settings
|
9
3
|
# config.layout = { admin: 'admin' }
|
10
4
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class CreateEffectiveQbSync < ActiveRecord::Migration[
|
2
|
-
def
|
3
|
-
create_table
|
1
|
+
class CreateEffectiveQbSync < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :qb_requests do |t|
|
4
4
|
t.integer :order_id
|
5
5
|
t.integer :qb_ticket_id
|
6
6
|
|
@@ -16,9 +16,9 @@ class CreateEffectiveQbSync < ActiveRecord::Migration[4.2]
|
|
16
16
|
|
17
17
|
t.timestamps
|
18
18
|
end
|
19
|
-
add_index
|
19
|
+
add_index :qb_requests, :order_id
|
20
20
|
|
21
|
-
create_table
|
21
|
+
create_table :qb_tickets do |t|
|
22
22
|
t.integer :qb_request_id
|
23
23
|
|
24
24
|
t.string :username
|
@@ -37,32 +37,23 @@ class CreateEffectiveQbSync < ActiveRecord::Migration[4.2]
|
|
37
37
|
|
38
38
|
t.timestamps
|
39
39
|
end
|
40
|
-
add_index
|
40
|
+
add_index :qb_tickets, :qb_request_id
|
41
41
|
|
42
|
-
create_table
|
42
|
+
create_table :qb_logs do |t|
|
43
43
|
t.integer :qb_ticket_id
|
44
|
-
|
45
44
|
t.text :message
|
46
45
|
|
47
46
|
t.timestamps
|
48
47
|
end
|
49
|
-
add_index
|
48
|
+
add_index :qb_logs, :qb_ticket_id
|
50
49
|
|
51
|
-
create_table
|
50
|
+
create_table :qb_order_items do |t|
|
52
51
|
t.integer :order_item_id
|
53
|
-
|
54
52
|
t.string :name
|
55
53
|
|
56
54
|
t.timestamps
|
57
55
|
end
|
58
|
-
add_index
|
59
|
-
|
60
|
-
end
|
56
|
+
add_index :qb_order_items, :order_item_id
|
61
57
|
|
62
|
-
def self.down
|
63
|
-
drop_table <%= @qb_requests_table_name %>
|
64
|
-
drop_table <%= @qb_tickets_table_name %>
|
65
|
-
drop_table <%= @qb_logs_table_name %>
|
66
|
-
drop_table <%= @qb_order_items_table_name %>
|
67
58
|
end
|
68
59
|
end
|
@@ -30,12 +30,7 @@ module EffectiveQbSync
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def create_migration_file
|
33
|
-
|
34
|
-
@qb_tickets_table_name = ':' + EffectiveQbSync.qb_tickets_table_name.to_s
|
35
|
-
@qb_logs_table_name = ':' + EffectiveQbSync.qb_logs_table_name.to_s
|
36
|
-
@qb_order_items_table_name = ':' + EffectiveQbSync.qb_order_items_table_name.to_s
|
37
|
-
|
38
|
-
migration_template ('../' * 3) + 'db/migrate/01_create_effective_qb_sync.rb.erb', 'db/migrate/create_effective_qb_sync.rb'
|
33
|
+
migration_template ('../' * 3) + 'db/migrate/101_create_effective_qb_sync.rb', 'db/migrate/create_effective_qb_sync.rb'
|
39
34
|
end
|
40
35
|
|
41
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_qb_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -116,7 +116,7 @@ files:
|
|
116
116
|
- app/views/effective/qb_web_connector/quickbooks.html.erb
|
117
117
|
- config/effective_qb_sync.rb
|
118
118
|
- config/routes.rb
|
119
|
-
- db/migrate/
|
119
|
+
- db/migrate/101_create_effective_qb_sync.rb
|
120
120
|
- lib/effective_qb_sync.rb
|
121
121
|
- lib/effective_qb_sync/engine.rb
|
122
122
|
- lib/effective_qb_sync/version.rb
|
@@ -193,59 +193,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
196
|
+
rubygems_version: 3.4.10
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: Synchronize EffectiveOrders with QuickBooks Web Connector.
|
200
200
|
test_files:
|
201
|
-
- spec/
|
201
|
+
- spec/dummy/README.rdoc
|
202
|
+
- spec/dummy/Rakefile
|
203
|
+
- spec/dummy/app/assets/javascripts/application.js
|
204
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
205
|
+
- spec/dummy/app/controllers/application_controller.rb
|
206
|
+
- spec/dummy/app/helpers/application_helper.rb
|
202
207
|
- spec/dummy/app/models/product.rb
|
203
208
|
- spec/dummy/app/models/product_with_float_price.rb
|
204
209
|
- spec/dummy/app/models/user.rb
|
205
|
-
- spec/dummy/app/controllers/application_controller.rb
|
206
210
|
- spec/dummy/app/views/layouts/application.html.erb
|
207
|
-
- spec/dummy/app/assets/javascripts/application.js
|
208
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
209
|
-
- spec/dummy/app/helpers/application_helper.rb
|
210
|
-
- spec/dummy/bin/rake
|
211
211
|
- spec/dummy/bin/bundle
|
212
212
|
- spec/dummy/bin/rails
|
213
|
-
- spec/dummy/
|
214
|
-
- spec/dummy/config/routes.rb
|
215
|
-
- spec/dummy/config/locales/en.yml
|
216
|
-
- spec/dummy/config/environments/production.rb
|
217
|
-
- spec/dummy/config/environments/development.rb
|
218
|
-
- spec/dummy/config/environments/test.rb
|
219
|
-
- spec/dummy/config/environment.rb
|
213
|
+
- spec/dummy/bin/rake
|
220
214
|
- spec/dummy/config/application.rb
|
221
|
-
- spec/dummy/config/database.yml
|
222
215
|
- spec/dummy/config/boot.rb
|
216
|
+
- spec/dummy/config/database.yml
|
217
|
+
- spec/dummy/config/environment.rb
|
218
|
+
- spec/dummy/config/environments/development.rb
|
219
|
+
- spec/dummy/config/environments/production.rb
|
220
|
+
- spec/dummy/config/environments/test.rb
|
223
221
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
224
|
-
- spec/dummy/config/initializers/mime_types.rb
|
225
|
-
- spec/dummy/config/initializers/effective_addresses.rb
|
226
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
227
|
-
- spec/dummy/config/initializers/session_store.rb
|
228
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
229
|
-
- spec/dummy/config/initializers/effective_qb_sync.rb
|
230
222
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
231
223
|
- spec/dummy/config/initializers/devise.rb
|
224
|
+
- spec/dummy/config/initializers/effective_addresses.rb
|
232
225
|
- spec/dummy/config/initializers/effective_orders.rb
|
233
|
-
- spec/dummy/config/initializers/
|
226
|
+
- spec/dummy/config/initializers/effective_qb_sync.rb
|
227
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
234
228
|
- spec/dummy/config/initializers/inflections.rb
|
229
|
+
- spec/dummy/config/initializers/mime_types.rb
|
230
|
+
- spec/dummy/config/initializers/session_store.rb
|
231
|
+
- spec/dummy/config/initializers/simple_form.rb
|
232
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
233
|
+
- spec/dummy/config/locales/en.yml
|
234
|
+
- spec/dummy/config/routes.rb
|
235
|
+
- spec/dummy/config/secrets.yml
|
235
236
|
- spec/dummy/config.ru
|
236
|
-
- spec/dummy/Rakefile
|
237
|
-
- spec/dummy/public/favicon.ico
|
238
|
-
- spec/dummy/public/422.html
|
239
|
-
- spec/dummy/public/500.html
|
240
|
-
- spec/dummy/public/404.html
|
241
237
|
- spec/dummy/db/schema.rb
|
242
238
|
- spec/dummy/db/test.sqlite3
|
243
|
-
- spec/dummy/
|
239
|
+
- spec/dummy/public/404.html
|
240
|
+
- spec/dummy/public/422.html
|
241
|
+
- spec/dummy/public/500.html
|
242
|
+
- spec/dummy/public/favicon.ico
|
243
|
+
- spec/fixtures/qbxml_response_error.xml
|
244
|
+
- spec/fixtures/qbxml_response_success.xml
|
245
|
+
- spec/models/acts_as_purchasable_spec.rb
|
246
|
+
- spec/models/factories_spec.rb
|
247
|
+
- spec/models/qb_machine_spec.rb
|
244
248
|
- spec/models/qb_request_spec.rb
|
245
249
|
- spec/models/qb_ticket_spec.rb
|
246
|
-
- spec/
|
247
|
-
- spec/models/factories_spec.rb
|
248
|
-
- spec/models/acts_as_purchasable_spec.rb
|
250
|
+
- spec/spec_helper.rb
|
249
251
|
- spec/support/factories.rb
|
250
|
-
- spec/fixtures/qbxml_response_success.xml
|
251
|
-
- spec/fixtures/qbxml_response_error.xml
|