Skip to content

Commit

Permalink
0.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
gdower committed Sep 12, 2024
1 parent e7c6d43 commit 8cec4fa
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
ruby-version: 3.3.4
bundler-cache: true
- name: Run the default task
run: bundle exec rake
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
/pkg/
/spec/reports/
/tmp/
*.gem
*.gem
Gemfile.lock
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

## [0.1.2] - 2024-09-12
- Removed Gemfile.lock
- Bumped development depency versions to avoid CVE-2024-43398

## [0.1.1] - 2023-04-17
- Updated Faraday version

Expand Down
55 changes: 0 additions & 55 deletions Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Or install it yourself as:

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, update the `CHANGELOG.md`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Expand Down
10 changes: 2 additions & 8 deletions bell_pepper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.description = "bell_pepper is a low-level wrapper around the BELS API."
s.homepage = "https://github.com/SpeciesFileGroup/bell_pepper"
s.license = "NCSA"
s.required_ruby_version = ">= 2.4.0"
s.required_ruby_version = ">= 2.5.0"

# s.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"

Expand All @@ -33,22 +33,16 @@ Gem::Specification.new do |s|
# s.add_dependency "example-gem", "~> 1.0"

s.add_development_dependency "bundler", "~> 2.1", ">= 2.1.4"
# s.add_development_dependency "codecov", "~> 0.5.0"
# s.add_development_dependency "json", "~> 2.3", ">= 2.3.1"
s.add_development_dependency "rake", "~> 13.0", ">= 13.0.1"
# s.add_development_dependency "standard", "~> 1.0"
# s.add_development_dependency "simplecov", "~> 0.21.2"
s.add_development_dependency "test-unit", "~> 3.3", ">= 3.3.6"
s.add_development_dependency "vcr", "~> 6.0"
s.add_development_dependency "webmock", "~> 3.18"
s.add_development_dependency "rexml", "~> 3.3", ">= 3.3.6"

s.add_runtime_dependency "faraday", "~> 2.2"
s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.4"
s.add_runtime_dependency "multi_json", "~> 1.15"

# TODO: comment out
s.add_development_dependency "byebug"

# s.add_runtime_dependency "thor", "~> 1.0", ">= 1.0.1"

# For more information and examples about making a new gem, checkout our
Expand Down
12 changes: 6 additions & 6 deletions lib/bell_pepper/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ module BellPepper
# Custom error class for rescuing from all BellPepper errors
class Error < StandardError; end

# Raised when ChecklistBank returns the HTTP status code 400
# Raised when BELS returns the HTTP status code 400
class BadRequest < Error; end

# Raised when ChecklistBank returns the HTTP status code 404
# Raised when BELS returns the HTTP status code 404
class NotFound < Error; end

# Raised when ChecklistBank returns the HTTP status code 500
# Raised when BELS returns the HTTP status code 500
class InternalServerError < Error; end

# Raised when ChecklistBank returns the HTTP status code 502
# Raised when BELS returns the HTTP status code 502
class BadGateway < Error; end

# Raised when ChecklistBank returns the HTTP status code 503
# Raised when BELS returns the HTTP status code 503
class ServiceUnavailable < Error; end

# Raised when ChecklistBank returns the HTTP status code 504
# Raised when BELS returns the HTTP status code 504
class GatewayTimeout < Error; end
end
2 changes: 1 addition & 1 deletion lib/bell_pepper/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BellPepper
VERSION = "0.1.1"
VERSION = "0.1.2"
end
3 changes: 0 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
require 'bell_pepper'
require 'vcr'

# TODO: remove
require 'byebug'

VCR.configure do |c|
c.cassette_library_dir = 'test/fixtures/vcr'
c.hook_into :webmock
Expand Down

0 comments on commit 8cec4fa

Please sign in to comment.