Skip to content

Commit

Permalink
Merge pull request civisanalytics#61 from civisanalytics/maintenance
Browse files Browse the repository at this point in the history
Maintenance
  • Loading branch information
jeffreyc authored Mar 8, 2018
2 parents b38541d + 4b0fe70 commit 719960f
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.1

Layout/IndentHeredoc:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.1
2.5.0
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ cache: bundler
rvm:
- 2.0
- 2.1.10
- 2.2.7
- 2.3.4
- 2.4.1
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
before_install:
- gem update --system
- rvm @global do gem install bundler
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Added

* Added 2.5.0 to the Travis matrix

### Changed

* Bumped the Ruby version for development to 2.5.0
* Bumped the Travis matrix to 2.2.9, 2.3.6, and 2.4.3
* Bumped the Pry version for development to 0.11
* Bumped the Rake version for development to 12
* Bumped the VCR version for development to 4
* RuboCop fixes

## [1.1.2] - 2017-09-13

### Fixed
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Build Status](https://travis-ci.org/civisanalytics/swagger-diff.svg?branch=master)](https://travis-ci.org/civisanalytics/swagger-diff)
[![Gem Version](https://badge.fury.io/rb/swagger-diff.svg)](http://badge.fury.io/rb/swagger-diff)
[![Dependency Status](https://gemnasium.com/civisanalytics/swagger-diff.svg)](https://gemnasium.com/civisanalytics/swagger-diff)

![Swagger::Diff in action](swagger-diff.gif)

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'swagger/diff'
require 'pry'
require 'vcr'
Expand Down
4 changes: 2 additions & 2 deletions spec/swagger/diff/rspec_matchers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end

it 'should raise Exception with details when incompatible' do
msg = <<-EOM
msg = <<-MESSAGE
expected Swagger to be compatible with 'spec/fixtures/dummy.v1.json', found:
- missing endpoints
- post /b/
Expand Down Expand Up @@ -44,7 +44,7 @@
- missing attribute from 200 response: description (in: body, type: string)
- put /b/{}
- missing attribute from 200 response: description (in: body, type: string)
EOM
MESSAGE
expect do
expect('spec/fixtures/dummy.v2.json')
.to be_compatible_with('spec/fixtures/dummy.v1.json')
Expand Down
4 changes: 2 additions & 2 deletions spec/swagger/diff/specification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@

it 'generates a warning' do
expect { spec }
.to output(<<-EOW
.to output(<<-WARNING
{"swagger"=>"2.0", "info"=>{"title"=>"Swagger Fixture", "version"=>"1.0"}, ... is not a valid Swagger specification:
The property '#/paths//a//get' did not contain a required property of 'responses' in schema http://swagger.io/v2/schema.json#
EOW
WARNING
).to_stderr
end
end
Expand Down
10 changes: 4 additions & 6 deletions swagger-diff.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding: utf-8

lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'swagger/diff/version'

Expand Down Expand Up @@ -32,10 +30,10 @@ Gem::Specification.new do |spec|
spec.add_dependency 'json-schema', '~> 2.6'
spec.add_dependency 'rspec-expectations', '~> 3.3'
spec.add_development_dependency 'bundler', '~> 1.9'
spec.add_development_dependency 'rake', '~> 11.1'
spec.add_development_dependency 'pry', '~> 0.11.3'
spec.add_development_dependency 'rake', '~> 12.3'
spec.add_development_dependency 'rspec', '~> 3.3'
spec.add_development_dependency 'pry', '~> 0.10.1'
spec.add_development_dependency 'rubocop', '~> 0.49.0'
spec.add_development_dependency 'vcr', '~> 3.0'
spec.add_development_dependency 'vcr', '~> 4.0'
spec.add_development_dependency 'webmock', '~> 3.0'
end

0 comments on commit 719960f

Please sign in to comment.