effective_qb_online 0.3.5 → 0.4.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: d5368bf44f047ec64ae4cad94e56993133ad6ee99dd1e0da4508d6965e4f2401
4
- data.tar.gz: 62611e8d8b9d30b151edc495a1304b1c244d383e900819290e174a556d3b1aa0
3
+ metadata.gz: d0a57f6214297b86608b3cddc41885a14093371ccf8246471177e83adca31c93
4
+ data.tar.gz: e5035d9267de8cf24a5ce0431a051e41621797b2c9ffbbdebade41f07b324d1a
5
5
  SHA512:
6
- metadata.gz: f9a21da8716b358e69b518fc8865670adca5a5a74622adb012fdd6d3b9f0bd5a2001e26d615dca68e943a7f4f732ede98eee9a3c709603565fc466a666f64681
7
- data.tar.gz: 9fca066e819394486d5dc72579946385c4134bb6fabd0e3b5289d920de9b477799b735fd6ac908e6dcf81952743659ce7cc25272071611435542026f78bee8e5
6
+ metadata.gz: d69dbad553ff14cd2e1cc75e32b25f39f0b900afafc8197a4efd43ddc718eb2df7e6df455b93aca8d44ff964654eacdc77195f2324a8b0882f1a72aa49b116e5
7
+ data.tar.gz: c855c58edfb05b3b1bd767b9a92fa40f9f281e1c98ba3c484e33d74bb2f6175f208954fdd66d61dd3e414b539ca0c586c2a3540a5243e886a674921eb7470bcb
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Code and Effect Inc.
1
+ Copyright 2023 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -221,7 +221,7 @@ module Effective
221
221
  return nil unless value.present?
222
222
  value = value.gsub(':', '')
223
223
  value = value.gsub("'", "\\'") if sql
224
- value
224
+ value.strip
225
225
  end
226
226
 
227
227
  end
@@ -1,8 +1,4 @@
1
1
  EffectiveQbOnline.setup do |config|
2
- config.qb_realms_table_name = :qb_realms
3
- config.qb_receipts_table_name = :qb_receipts
4
- config.qb_receipt_items_table_name = :qb_receipt_items
5
-
6
2
  # Layout Settings
7
3
  # Configure the Layout per controller, or all at once
8
4
  # config.layout = { application: 'application', admin: 'admin' }
@@ -1,6 +1,6 @@
1
- class CreateEffectiveQbOnline < ActiveRecord::Migration[6.1]
1
+ class CreateEffectiveQbOnline < ActiveRecord::Migration[6.0]
2
2
  def change
3
- create_table <%= @qb_realms_table_name %> do |t|
3
+ create_table :qb_realms do |t|
4
4
  t.string :realm_id
5
5
 
6
6
  t.integer :deposit_to_account_id
@@ -15,7 +15,7 @@ class CreateEffectiveQbOnline < ActiveRecord::Migration[6.1]
15
15
  t.timestamps
16
16
  end
17
17
 
18
- create_table <%= @qb_receipts_table_name %> do |t|
18
+ create_table :qb_receipts do |t|
19
19
  t.integer :order_id
20
20
  t.integer :customer_id
21
21
 
@@ -27,9 +27,9 @@ class CreateEffectiveQbOnline < ActiveRecord::Migration[6.1]
27
27
  t.timestamps
28
28
  end
29
29
 
30
- add_index <%= @qb_receipts_table_name %>, :order_id
30
+ add_index :qb_receipts, :order_id
31
31
 
32
- create_table <%= @qb_receipt_items_name %> do |t|
32
+ create_table :qb_receipt_items_name do |t|
33
33
  t.integer :qb_receipt_id
34
34
  t.integer :order_item_id
35
35
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbOnline
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
@@ -20,11 +20,7 @@ module EffectiveQbOnline
20
20
  end
21
21
 
22
22
  def create_migration_file
23
- @qb_realms_table_name = ':' + EffectiveQbOnline.qb_realms_table_name.to_s
24
- @qb_receipts_table_name = ':' + EffectiveQbOnline.qb_receipts_table_name.to_s
25
- @qb_receipt_items_table_name = ':' + EffectiveQbOnline.qb_receipt_items_table_name.to_s
26
-
27
- migration_template ('../' * 3) + 'db/migrate/01_create_effective_qb_online.rb.erb', 'db/migrate/create_effective_qb_online.rb'
23
+ migration_template ('../' * 3) + 'db/migrate/101_create_effective_qb_online.rb', 'db/migrate/create_effective_qb_online.rb'
28
24
  end
29
25
 
30
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_qb_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.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: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: haml-rails
140
+ name: haml
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -231,7 +231,7 @@ files:
231
231
  - app/views/admin/qb_receipts/new.html.haml
232
232
  - config/effective_qb_online.rb
233
233
  - config/routes.rb
234
- - db/migrate/01_create_effective_qb_online.rb.erb
234
+ - db/migrate/101_create_effective_qb_online.rb
235
235
  - db/seeds.rb
236
236
  - lib/effective_qb_online.rb
237
237
  - lib/effective_qb_online/engine.rb
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  - !ruby/object:Gem::Version
259
259
  version: '0'
260
260
  requirements: []
261
- rubygems_version: 3.1.2
261
+ rubygems_version: 3.3.7
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: Create QuickBooks Online SalesReceipts for purchased effective orders