Skip to content

Commit

Permalink
Refresh version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
capripot committed Feb 9, 2021
1 parent c5041d4 commit 9b2a164
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 28 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: ruby

rvm:
- 1.9.3
- 2.0.0
- 2.2
- 2.1
- 2.5
- 2.6
- 2.7
- 3.0

script: rake spec

sudo: false
sudo: false
9 changes: 8 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This project follows [semantic versioning](http://semver.org/). This changelog follows suggestions from [keepachangelog.com](http://keepachangelog.com/).

## Version 3.0.0

#### Added
- Upped the Ruby version required to last supported branch: Ruby 2.5
- Refreshed and relaxed gem versions requirements
- Switched from HTTMultiParty (unsupported) to HTTParty since multipart uplodad is supported by HTTParty

## Version 2.5.0
Released 2016-05-31. Contributed by [@theshanx](https://github.com/theshanx). Thanks! :)

Expand Down Expand Up @@ -38,4 +45,4 @@ Released 2016-02-03.

##### Changed
- Upgraded dependencies: `multi_json` (now ~>1.11.2), and development gems
- Added version dependency for `httmultiparty`: ``'~> 0.3.16'``
- Added version dependency for `httmultiparty`: ``'~> 0.3.16'``
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
source 'https://rubygems.org'

group :development do
gem 'pry'
gem "pry"
end

group :test do
gem "codeclimate-test-reporter", group: :test, require: nil
gem "simplecov", ">= 0.20", group: :test, require: false
end

gemspec
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Version](https://badge.fury.io/rb/greenhouse_io.png)](http://badge.fury.io/rb/gr

A Ruby interface to
[Greenhouse.io's](https://app.greenhouse.io/jobboard/jsonp_instructions)
API (requires Ruby 1.9.3 or greater).
API (requires Ruby 2.5 or greater).

## Installation

Expand All @@ -23,10 +23,10 @@ Or install it yourself as:
## API Documentation

Documentation for the Harvest and Job Board web APIs can be found at [developers.greenhouse.io](https://developers.greenhouse.io).

## Configuration

You can assign default configuration values when using this gem.
You can assign default configuration values when using this gem.
Here is an example `config/initializers/greenhouse_io.rb` file used in a Rails application:

```ruby
Expand Down Expand Up @@ -197,4 +197,4 @@ Methods for which an `id` is **required**:
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Contributions are always welcome!
Contributions are always welcome!
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'rspec/core/rake_task'
require "rspec/core/rake_task"
require "bundler/gem_tasks"

task :default => :spec
desc "Run all spec tests"
RSpec::Core::RakeTask.new do |t|
t.pattern = FileList['spec/**/*_spec.rb']
t.pattern = FileList["spec/**/*_spec.rb"]
end
13 changes: 6 additions & 7 deletions greenhouse_io.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'greenhouse_io/version'
Expand All @@ -18,12 +17,12 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency('httmultiparty', '~> 0.3.16')
spec.required_ruby_version = '>= 1.9.3'
spec.add_dependency("httparty", "~> 0.17")
spec.required_ruby_version = ">= 2.5"

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "bundler", ">= 1.9"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.4.0"
spec.add_development_dependency "webmock", "~> 1.22.6"
spec.add_development_dependency "vcr", "~> 3.0.1"
spec.add_development_dependency "rspec", "~> 3.4"
spec.add_development_dependency "webmock", "~> 1.22"
spec.add_development_dependency "vcr", "~> 3.0"
end
4 changes: 2 additions & 2 deletions lib/greenhouse_io.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'httmultiparty'
require 'json'
require "httparty"
require "json"

require "greenhouse_io/version"
require "greenhouse_io/error"
Expand Down
4 changes: 2 additions & 2 deletions lib/greenhouse_io/api/client.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module GreenhouseIo
class Client
include HTTMultiParty
include HTTParty
include GreenhouseIo::API

PERMITTED_OPTIONS = [:page, :per_page, :job_id]
Expand Down Expand Up @@ -96,7 +96,7 @@ def permitted_options(options)

def get_from_harvest_api(url, options = {})
response = get_response(url, {
:query => permitted_options(options),
:query => permitted_options(options),
:basic_auth => basic_auth
})

Expand Down
2 changes: 1 addition & 1 deletion lib/greenhouse_io/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GreenhouseIo
VERSION = "2.5.0"
VERSION = "3.0.0"
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
require "simplecov"
SimpleCov.start

require 'rubygems'
require 'bundler'
Expand Down

0 comments on commit 9b2a164

Please sign in to comment.