Skip to content

Commit

Permalink
Expand json version compatibility (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh authored Jun 26, 2020
1 parent b177842 commit 05c8a23
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 60 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
- uses: actions/checkout@v2
- name: Install dependencies
run: bundle install
run: bundle install && bundle exec appraisal install
- name: Run tests
run: bundle exec rspec
run: bundle exec appraisal rspec
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# Appraisals generated Gemfiles
/gemfiles/

# rspec failure tracking
.rspec_status
9 changes: 9 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

appraise 'json-1.8' do
gem 'json', '~> 1.8.0'
end

appraise 'json-2' do
gem 'json', '~> 2.0'
end
57 changes: 0 additions & 57 deletions Gemfile.lock

This file was deleted.

4 changes: 3 additions & 1 deletion serialized-hashie.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'appraisal', '~> 2.3'

spec.add_runtime_dependency 'hashie', '>= 4.0', '< 5.0'
spec.add_runtime_dependency 'json', '>= 2.0', '< 3.0'
spec.add_runtime_dependency 'json', '>= 1.8', '< 3.0'
end

0 comments on commit 05c8a23

Please sign in to comment.