From 7682afd6f7c7cbb9559d6319806395a231b46e79 Mon Sep 17 00:00:00 2001 From: Adam Meehan <6318+adzap@users.noreply.github.com> Date: Tue, 31 Dec 2024 14:35:30 +1100 Subject: [PATCH] chore: add Appraisal for mulitple ActiveSupport versions --- Appraisals | 23 +++++++ Gemfile | 3 +- gemfiles/activesupport_5_2.gemfile | 10 +++ gemfiles/activesupport_5_2.gemfile.lock | 81 ++++++++++++++++++++++ gemfiles/activesupport_6_0.gemfile | 10 +++ gemfiles/activesupport_6_0.gemfile.lock | 83 ++++++++++++++++++++++ gemfiles/activesupport_6_1.gemfile | 10 +++ gemfiles/activesupport_6_1.gemfile.lock | 82 ++++++++++++++++++++++ gemfiles/activesupport_7_0.gemfile | 10 +++ gemfiles/activesupport_7_0.gemfile.lock | 80 +++++++++++++++++++++ gemfiles/activesupport_7_2.gemfile | 10 +++ gemfiles/activesupport_7_2.gemfile.lock | 92 +++++++++++++++++++++++++ spec/timeliness_helper.rb | 2 + 13 files changed, 495 insertions(+), 1 deletion(-) create mode 100644 Appraisals create mode 100644 gemfiles/activesupport_5_2.gemfile create mode 100644 gemfiles/activesupport_5_2.gemfile.lock create mode 100644 gemfiles/activesupport_6_0.gemfile create mode 100644 gemfiles/activesupport_6_0.gemfile.lock create mode 100644 gemfiles/activesupport_6_1.gemfile create mode 100644 gemfiles/activesupport_6_1.gemfile.lock create mode 100644 gemfiles/activesupport_7_0.gemfile create mode 100644 gemfiles/activesupport_7_0.gemfile.lock create mode 100644 gemfiles/activesupport_7_2.gemfile create mode 100644 gemfiles/activesupport_7_2.gemfile.lock diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..967fb6b --- /dev/null +++ b/Appraisals @@ -0,0 +1,23 @@ +appraise "activesupport_5_2" do + gem "activesupport", "~> 5.2.0" +end + +appraise "activesupport_6_0" do + gem "activesupport", "~> 6.0.0" +end + +appraise "activesupport_6_1" do + gem "activesupport", "~> 6.1.0" +end + +appraise "activesupport_7_0" do + gem "activesupport", "~> 7.0.0" +end + +appraise "activesupport_7_2" do + gem "activesupport", "~> 7.1.0" +end + +appraise "activesupport_7_2" do + gem "activesupport", "~> 7.2.0" +end diff --git a/Gemfile b/Gemfile index d285f70..73a0d7f 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source 'http://rubygems.org' gemspec -gem 'activesupport', '~> 6.0.0' +gem 'appraisal' +gem 'activesupport', '~> 7.2.0' gem 'debug', platforms: %i[mri mingw x64_mingw] gem 'memory_profiler' diff --git a/gemfiles/activesupport_5_2.gemfile b/gemfiles/activesupport_5_2.gemfile new file mode 100644 index 0000000..f3ce8eb --- /dev/null +++ b/gemfiles/activesupport_5_2.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "appraisal" +gem "activesupport", "~> 5.2.0" +gem "debug", platforms: [:mri, :mingw, :x64_mingw] +gem "memory_profiler" + +gemspec path: "../" diff --git a/gemfiles/activesupport_5_2.gemfile.lock b/gemfiles/activesupport_5_2.gemfile.lock new file mode 100644 index 0000000..b2e5a6f --- /dev/null +++ b/gemfiles/activesupport_5_2.gemfile.lock @@ -0,0 +1,81 @@ +PATH + remote: .. + specs: + timeliness (0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + activesupport (5.2.8.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + bigdecimal (3.1.9) + concurrent-ruby (1.3.4) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + diff-lcs (1.5.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.14.3) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + memory_profiler (1.1.0) + minitest (5.25.4) + mutex_m (0.3.0) + psych (5.2.2) + date + stringio + rake (13.2.1) + rdoc (6.10.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + 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) + stringio (3.1.2) + thor (1.3.2) + thread_safe (0.3.6) + timecop (0.9.10) + tzinfo (1.2.11) + thread_safe (~> 0.1) + +PLATFORMS + x86_64-darwin-23 + +DEPENDENCIES + activesupport (~> 5.2.0) + appraisal + base64 + bigdecimal + debug + i18n + memory_profiler + mutex_m + rspec (~> 3.4) + timecop + timeliness! + tzinfo (>= 0.3.31) + +BUNDLED WITH + 2.4.22 diff --git a/gemfiles/activesupport_6_0.gemfile b/gemfiles/activesupport_6_0.gemfile new file mode 100644 index 0000000..1125766 --- /dev/null +++ b/gemfiles/activesupport_6_0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "appraisal" +gem "activesupport", "~> 6.0.0" +gem "debug", platforms: [:mri, :mingw, :x64_mingw] +gem "memory_profiler" + +gemspec path: "../" diff --git a/gemfiles/activesupport_6_0.gemfile.lock b/gemfiles/activesupport_6_0.gemfile.lock new file mode 100644 index 0000000..7fbba64 --- /dev/null +++ b/gemfiles/activesupport_6_0.gemfile.lock @@ -0,0 +1,83 @@ +PATH + remote: .. + specs: + timeliness (0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + 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.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + bigdecimal (3.1.9) + concurrent-ruby (1.3.4) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + diff-lcs (1.5.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.14.3) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + memory_profiler (1.1.0) + minitest (5.25.4) + mutex_m (0.3.0) + psych (5.2.2) + date + stringio + rake (13.2.1) + rdoc (6.10.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + 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) + stringio (3.1.2) + thor (1.3.2) + thread_safe (0.3.6) + timecop (0.9.10) + tzinfo (1.2.11) + thread_safe (~> 0.1) + zeitwerk (2.6.18) + +PLATFORMS + x86_64-darwin-23 + +DEPENDENCIES + activesupport (~> 6.0.0) + appraisal + base64 + bigdecimal + debug + i18n + memory_profiler + mutex_m + rspec (~> 3.4) + timecop + timeliness! + tzinfo (>= 0.3.31) + +BUNDLED WITH + 2.4.22 diff --git a/gemfiles/activesupport_6_1.gemfile b/gemfiles/activesupport_6_1.gemfile new file mode 100644 index 0000000..ba3cc2b --- /dev/null +++ b/gemfiles/activesupport_6_1.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "appraisal" +gem "activesupport", "~> 6.1.0" +gem "debug", platforms: [:mri, :mingw, :x64_mingw] +gem "memory_profiler" + +gemspec path: "../" diff --git a/gemfiles/activesupport_6_1.gemfile.lock b/gemfiles/activesupport_6_1.gemfile.lock new file mode 100644 index 0000000..18c644b --- /dev/null +++ b/gemfiles/activesupport_6_1.gemfile.lock @@ -0,0 +1,82 @@ +PATH + remote: .. + specs: + timeliness (0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + 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.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + bigdecimal (3.1.9) + concurrent-ruby (1.3.4) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + diff-lcs (1.5.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.14.3) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + memory_profiler (1.1.0) + minitest (5.25.4) + mutex_m (0.3.0) + psych (5.2.2) + date + stringio + rake (13.2.1) + rdoc (6.10.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + 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) + stringio (3.1.2) + thor (1.3.2) + timecop (0.9.10) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + zeitwerk (2.6.18) + +PLATFORMS + x86_64-darwin-23 + +DEPENDENCIES + activesupport (~> 6.1.0) + appraisal + base64 + bigdecimal + debug + i18n + memory_profiler + mutex_m + rspec (~> 3.4) + timecop + timeliness! + tzinfo (>= 0.3.31) + +BUNDLED WITH + 2.4.22 diff --git a/gemfiles/activesupport_7_0.gemfile b/gemfiles/activesupport_7_0.gemfile new file mode 100644 index 0000000..f6ac8f7 --- /dev/null +++ b/gemfiles/activesupport_7_0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "appraisal" +gem "activesupport", "~> 7.0.0" +gem "debug", platforms: [:mri, :mingw, :x64_mingw] +gem "memory_profiler" + +gemspec path: "../" diff --git a/gemfiles/activesupport_7_0.gemfile.lock b/gemfiles/activesupport_7_0.gemfile.lock new file mode 100644 index 0000000..ba151f4 --- /dev/null +++ b/gemfiles/activesupport_7_0.gemfile.lock @@ -0,0 +1,80 @@ +PATH + remote: .. + specs: + timeliness (0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + activesupport (7.0.8.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + bigdecimal (3.1.9) + concurrent-ruby (1.3.4) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + diff-lcs (1.5.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.14.3) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + memory_profiler (1.1.0) + minitest (5.25.4) + mutex_m (0.3.0) + psych (5.2.2) + date + stringio + rake (13.2.1) + rdoc (6.10.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + 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) + stringio (3.1.2) + thor (1.3.2) + timecop (0.9.10) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + +PLATFORMS + x86_64-darwin-23 + +DEPENDENCIES + activesupport (~> 7.0.0) + appraisal + base64 + bigdecimal + debug + i18n + memory_profiler + mutex_m + rspec (~> 3.4) + timecop + timeliness! + tzinfo (>= 0.3.31) + +BUNDLED WITH + 2.4.22 diff --git a/gemfiles/activesupport_7_2.gemfile b/gemfiles/activesupport_7_2.gemfile new file mode 100644 index 0000000..738a2a6 --- /dev/null +++ b/gemfiles/activesupport_7_2.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "appraisal" +gem "activesupport", "~> 7.2.0" +gem "debug", platforms: [:mri, :mingw, :x64_mingw] +gem "memory_profiler" + +gemspec path: "../" diff --git a/gemfiles/activesupport_7_2.gemfile.lock b/gemfiles/activesupport_7_2.gemfile.lock new file mode 100644 index 0000000..aa4d889 --- /dev/null +++ b/gemfiles/activesupport_7_2.gemfile.lock @@ -0,0 +1,92 @@ +PATH + remote: .. + specs: + timeliness (0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + activesupport (7.2.2.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) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.9) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + diff-lcs (1.5.1) + drb (2.2.1) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.14.3) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + logger (1.6.4) + memory_profiler (1.1.0) + minitest (5.25.4) + mutex_m (0.3.0) + psych (5.2.2) + date + stringio + rake (13.2.1) + rdoc (6.10.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + 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.1) + stringio (3.1.2) + thor (1.3.2) + timecop (0.9.10) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + +PLATFORMS + x86_64-darwin-23 + +DEPENDENCIES + activesupport (~> 7.2.0) + appraisal + base64 + bigdecimal + debug + i18n + memory_profiler + mutex_m + rspec (~> 3.4) + timecop + timeliness! + tzinfo (>= 0.3.31) + +BUNDLED WITH + 2.4.22 diff --git a/spec/timeliness_helper.rb b/spec/timeliness_helper.rb index 715caff..13ad2e0 100644 --- a/spec/timeliness_helper.rb +++ b/spec/timeliness_helper.rb @@ -1,4 +1,6 @@ +require 'active_support' require 'active_support/time' +require 'active_support/core_ext/object' require 'timecop' require 'timeliness' require 'timeliness/core_ext'