diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..690dcdb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: build +on: + pull_request: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby-version: [3.2, 3.3] + steps: + - uses: actions/checkout@v4 + with: + show-progress: 'false' + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs `bundle install` and caches installed gems automatically + - run: bundle exec rake diff --git a/.gitignore b/.gitignore index 46a6f15..b24c99c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ /.bundle/ /.yardoc -/Gemfile.lock /_yardoc/ /coverage/ /doc/ /pkg/ /spec/reports/ +/Gemfile.lock /tmp/ *.bundle *.so @@ -14,4 +14,4 @@ mkmf.log *.gem .byebug_history -/vendor/ \ No newline at end of file +/vendor/ diff --git a/.ruby-version b/.ruby-version index 34cde56..86fb650 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.6 +3.3.7 diff --git a/confg.gemspec b/confg.gemspec index dc6796c..18b47ee 100644 --- a/confg.gemspec +++ b/confg.gemspec @@ -13,7 +13,12 @@ Gem::Specification.new do |spec| spec.summary = "Sets shared variables for applications" spec.homepage = "" - spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) + + # Specify which files should be added to the gem when it is released. + # The `git ls-files -z` loads the files in the RubyGem that have been added into git. + spec.files = Dir.chdir(File.expand_path(__dir__)) do + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test)/}) } + end spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] @@ -22,4 +27,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "byebug" spec.add_development_dependency "minitest", "~> 5.0" spec.add_development_dependency "rake" + + spec.required_ruby_version = ">= 3.2.0" end diff --git a/lib/confg/version.rb b/lib/confg/version.rb index 7570153..6eac55b 100644 --- a/lib/confg/version.rb +++ b/lib/confg/version.rb @@ -2,6 +2,10 @@ module Confg - VERSION = "3.0.1" + MAJOR = 3 + MINOR = 1 + PATCH = 0 + PRERELEASE = nil + VERSION = [MAJOR, MINOR, PATCH, PRERELEASE].compact.join(".") end