From f865c1b0980844d8aacf6095abee837b6e219529 Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 11 Dec 2024 00:48:37 -0700 Subject: [PATCH 1/5] make tests pass based on llm suggestions --- lib/qbxml.rb | 1 + lib/qbxml/types.rb | 2 ++ 2 files changed, 3 insertions(+) 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 = { From 306865317d64eb4343ad372b5af5920cc7a6db69 Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 11 Dec 2024 00:55:35 -0700 Subject: [PATCH 2/5] create new gemfile for rails 8 --- gemfiles/rails_8.0.gemfile | 7 +++ gemfiles/rails_8.0.gemfile.lock | 98 +++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 gemfiles/rails_8.0.gemfile create mode 100644 gemfiles/rails_8.0.gemfile.lock diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..eb4643a --- /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: "../" \ No newline at end of file diff --git a/gemfiles/rails_8.0.gemfile.lock b/gemfiles/rails_8.0.gemfile.lock new file mode 100644 index 0000000..eb227ae --- /dev/null +++ b/gemfiles/rails_8.0.gemfile.lock @@ -0,0 +1,98 @@ +PATH + remote: . + specs: + qbxml (0.4.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 + appraisal + pry + pry-nav + qbxml! + rake + rspec + +BUNDLED WITH + 2.5.22 From d1c94866b259e54fa559163f4a99de0d74f056fa Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 11 Dec 2024 01:01:46 -0700 Subject: [PATCH 3/5] gemfile lock --- gemfiles/rails_8.0.gemfile.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gemfiles/rails_8.0.gemfile.lock b/gemfiles/rails_8.0.gemfile.lock index eb227ae..90d39b2 100644 --- a/gemfiles/rails_8.0.gemfile.lock +++ b/gemfiles/rails_8.0.gemfile.lock @@ -1,5 +1,5 @@ PATH - remote: . + remote: .. specs: qbxml (0.4.0) activesupport (>= 5.0.0) @@ -87,6 +87,7 @@ PLATFORMS x86_64-linux DEPENDENCIES + activesupport (~> 8.0.0.1) appraisal pry pry-nav From 24c403899cb7b1dda569c0f96a01b72abf7b329d Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 11 Dec 2024 01:06:49 -0700 Subject: [PATCH 4/5] version increment --- lib/qbxml/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0d598a102e08a75b58a7aba4f3fe15984dded107 Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 11 Dec 2024 01:11:29 -0700 Subject: [PATCH 5/5] appraisals --- Appraisals | 4 ++ gemfiles/rails_5.0.gemfile.lock | 62 ++++++++++++++++--------------- gemfiles/rails_5.1.gemfile.lock | 62 ++++++++++++++++--------------- gemfiles/rails_5.2.gemfile.lock | 64 ++++++++++++++++---------------- gemfiles/rails_6.0.gemfile.lock | 66 +++++++++++++++++---------------- gemfiles/rails_6.1.gemfile.lock | 66 +++++++++++++++++---------------- gemfiles/rails_8.0.gemfile | 2 +- gemfiles/rails_8.0.gemfile.lock | 2 +- 8 files changed, 171 insertions(+), 157 deletions(-) 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 index eb4643a..c549f2d 100644 --- a/gemfiles/rails_8.0.gemfile +++ b/gemfiles/rails_8.0.gemfile @@ -4,4 +4,4 @@ source "https://rubygems.org" gem "activesupport", "~> 8.0.0.1" -gemspec path: "../" \ No newline at end of file +gemspec path: "../" diff --git a/gemfiles/rails_8.0.gemfile.lock b/gemfiles/rails_8.0.gemfile.lock index 90d39b2..20b6d00 100644 --- a/gemfiles/rails_8.0.gemfile.lock +++ b/gemfiles/rails_8.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)