diff --git a/Appraisals b/Appraisals index 0e811ee..df232a4 100644 --- a/Appraisals +++ b/Appraisals @@ -17,3 +17,7 @@ end appraise "rails-6.1" do gem "activesupport", "~> 6.1.0" end + +appraise "rails-8.0" do + gem "activesupport", "~> 8.0.0.1" +end diff --git a/gemfiles/rails_5.0.gemfile.lock b/gemfiles/rails_5.0.gemfile.lock index 8d2faa5..7ec8d0c 100644 --- a/gemfiles/rails_5.0.gemfile.lock +++ b/gemfiles/rails_5.0.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - qbxml (0.4.0) + qbxml (0.5.0) activesupport (>= 5.0.0) builder (~> 3.0) nokogiri (~> 1.5) @@ -14,43 +14,45 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - appraisal (2.3.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - builder (3.2.4) + builder (3.3.0) coderay (1.1.3) - concurrent-ruby (1.1.7) - diff-lcs (1.4.4) - i18n (1.8.5) + concurrent-ruby (1.3.4) + diff-lcs (1.5.1) + i18n (1.14.6) concurrent-ruby (~> 1.0) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - pry-nav (0.3.0) - pry (>= 0.9.10, < 0.13.0) - rake (13.0.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + method_source (1.1.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.17.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.0) - thor (1.0.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + thor (1.3.2) thread_safe (0.3.6) - tzinfo (1.2.8) + tzinfo (1.2.11) thread_safe (~> 0.1) PLATFORMS diff --git a/gemfiles/rails_5.1.gemfile.lock b/gemfiles/rails_5.1.gemfile.lock index 3e74d53..259368d 100644 --- a/gemfiles/rails_5.1.gemfile.lock +++ b/gemfiles/rails_5.1.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - qbxml (0.4.0) + qbxml (0.5.0) activesupport (>= 5.0.0) builder (~> 3.0) nokogiri (~> 1.5) @@ -14,43 +14,45 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - appraisal (2.3.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - builder (3.2.4) + builder (3.3.0) coderay (1.1.3) - concurrent-ruby (1.1.7) - diff-lcs (1.4.4) - i18n (1.8.5) + concurrent-ruby (1.3.4) + diff-lcs (1.5.1) + i18n (1.14.6) concurrent-ruby (~> 1.0) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - pry-nav (0.3.0) - pry (>= 0.9.10, < 0.13.0) - rake (13.0.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + method_source (1.1.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.17.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.0) - thor (1.0.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + thor (1.3.2) thread_safe (0.3.6) - tzinfo (1.2.8) + tzinfo (1.2.11) thread_safe (~> 0.1) PLATFORMS diff --git a/gemfiles/rails_5.2.gemfile.lock b/gemfiles/rails_5.2.gemfile.lock index 86428f8..900c5c6 100644 --- a/gemfiles/rails_5.2.gemfile.lock +++ b/gemfiles/rails_5.2.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - qbxml (0.4.0) + qbxml (0.5.0) activesupport (>= 5.0.0) builder (~> 3.0) nokogiri (~> 1.5) @@ -9,48 +9,50 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (5.2.4.4) + activesupport (5.2.8.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - appraisal (2.3.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - builder (3.2.4) + builder (3.3.0) coderay (1.1.3) - concurrent-ruby (1.1.7) - diff-lcs (1.4.4) - i18n (1.8.5) + concurrent-ruby (1.3.4) + diff-lcs (1.5.1) + i18n (1.14.6) concurrent-ruby (~> 1.0) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - pry-nav (0.3.0) - pry (>= 0.9.10, < 0.13.0) - rake (13.0.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + method_source (1.1.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.17.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.0) - thor (1.0.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + thor (1.3.2) thread_safe (0.3.6) - tzinfo (1.2.8) + tzinfo (1.2.11) thread_safe (~> 0.1) PLATFORMS diff --git a/gemfiles/rails_6.0.gemfile.lock b/gemfiles/rails_6.0.gemfile.lock index 128e653..9e17d8b 100644 --- a/gemfiles/rails_6.0.gemfile.lock +++ b/gemfiles/rails_6.0.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - qbxml (0.4.0) + qbxml (0.5.0) activesupport (>= 5.0.0) builder (~> 3.0) nokogiri (~> 1.5) @@ -9,51 +9,53 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (6.0.3.4) + activesupport (6.0.6.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) zeitwerk (~> 2.2, >= 2.2.2) - appraisal (2.3.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - builder (3.2.4) + builder (3.3.0) coderay (1.1.3) - concurrent-ruby (1.1.7) - diff-lcs (1.4.4) - i18n (1.8.5) + concurrent-ruby (1.3.4) + diff-lcs (1.5.1) + i18n (1.14.6) concurrent-ruby (~> 1.0) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - pry-nav (0.3.0) - pry (>= 0.9.10, < 0.13.0) - rake (13.0.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + method_source (1.1.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.17.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.0) - thor (1.0.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + thor (1.3.2) thread_safe (0.3.6) - tzinfo (1.2.8) + tzinfo (1.2.11) thread_safe (~> 0.1) - zeitwerk (2.4.2) + zeitwerk (2.7.1) PLATFORMS ruby diff --git a/gemfiles/rails_6.1.gemfile.lock b/gemfiles/rails_6.1.gemfile.lock index b11bdaa..fd13df6 100644 --- a/gemfiles/rails_6.1.gemfile.lock +++ b/gemfiles/rails_6.1.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - qbxml (0.4.0) + qbxml (0.5.0) activesupport (>= 5.0.0) builder (~> 3.0) nokogiri (~> 1.5) @@ -9,50 +9,52 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (6.1.0) + activesupport (6.1.7.10) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) zeitwerk (~> 2.3) - appraisal (2.3.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - builder (3.2.4) + builder (3.3.0) coderay (1.1.3) - concurrent-ruby (1.1.7) - diff-lcs (1.4.4) - i18n (1.8.5) + concurrent-ruby (1.3.4) + diff-lcs (1.5.1) + i18n (1.14.6) concurrent-ruby (~> 1.0) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.2) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - pry-nav (0.3.0) - pry (>= 0.9.10, < 0.13.0) - rake (13.0.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + method_source (1.1.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.17.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.0) - thor (1.0.1) - tzinfo (2.0.3) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + thor (1.3.2) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - zeitwerk (2.4.2) + zeitwerk (2.7.1) PLATFORMS ruby diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..c549f2d --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 8.0.0.1" + +gemspec path: "../" diff --git a/gemfiles/rails_8.0.gemfile.lock b/gemfiles/rails_8.0.gemfile.lock new file mode 100644 index 0000000..20b6d00 --- /dev/null +++ b/gemfiles/rails_8.0.gemfile.lock @@ -0,0 +1,99 @@ +PATH + remote: .. + specs: + qbxml (0.5.0) + activesupport (>= 5.0.0) + builder (~> 3.0) + nokogiri (~> 1.5) + +GEM + remote: https://rubygems.org/ + specs: + activesupport (8.0.0.1) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.8) + builder (3.3.0) + coderay (1.1.3) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + diff-lcs (1.5.1) + drb (2.2.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + logger (1.6.2) + method_source (1.1.0) + minitest (5.25.4) + nokogiri (1.17.1-aarch64-linux) + racc (~> 1.4) + nokogiri (1.17.1-arm-linux) + racc (~> 1.4) + nokogiri (1.17.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.17.1-x86-linux) + racc (~> 1.4) + nokogiri (1.17.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.17.1-x86_64-linux) + racc (~> 1.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + pry-nav (1.0.0) + pry (>= 0.9.10, < 0.15) + racc (1.8.1) + rake (13.2.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + securerandom (0.4.0) + thor (1.3.2) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + uri (1.0.2) + +PLATFORMS + aarch64-linux + arm-linux + arm64-darwin + x86-linux + x86_64-darwin + x86_64-linux + +DEPENDENCIES + activesupport (~> 8.0.0.1) + appraisal + pry + pry-nav + qbxml! + rake + rspec + +BUNDLED WITH + 2.5.22 diff --git a/lib/qbxml.rb b/lib/qbxml.rb index 1974cf4..ede64e6 100644 --- a/lib/qbxml.rb +++ b/lib/qbxml.rb @@ -3,6 +3,7 @@ require 'nokogiri' require 'active_support/builder' require 'active_support/core_ext/string' +require 'active_support/core_ext/object/blank' class Qbxml; end diff --git a/lib/qbxml/types.rb b/lib/qbxml/types.rb index aa13339..6843c56 100644 --- a/lib/qbxml/types.rb +++ b/lib/qbxml/types.rb @@ -1,3 +1,5 @@ +require 'bigdecimal' + module Qbxml::Types XML_DIRECTIVES = { diff --git a/lib/qbxml/version.rb b/lib/qbxml/version.rb index 884f1a6..2bf9cf1 100644 --- a/lib/qbxml/version.rb +++ b/lib/qbxml/version.rb @@ -1,3 +1,3 @@ class Qbxml - VERSION = "0.4.0" + VERSION = "0.5.0" end