-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add more rubocop goodies (#445)
- Add github action step to run rubocop - Add Layout/StringLiterals cop - Add Layout/IndentationWidth cop - Add Lint/Syntax cop Add rubocop Github action step Enable Layout/IndentationWidth To keep the indentation consistency.
- Loading branch information
Showing
784 changed files
with
4,727 additions
and
4,704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem 'rake', '~>12.3.3' | ||
gem 'sqlite3', '~>1.3' | ||
gem 'conventional-changelog', '~>1.3' | ||
gem 'bump', '~> 0.5' | ||
gem "rake", "~>12.3.3" | ||
gem "sqlite3", "~>1.3" | ||
gem "conventional-changelog", "~>1.3" | ||
gem "bump", "~> 0.5" | ||
|
||
group :development do | ||
gem 'pry-byebug' | ||
gem 'rubocop', '~>1.1' | ||
gem 'rubocop-performance' | ||
gem 'sequel-annotate', '~>1.3' | ||
gem "pry-byebug" | ||
gem "rubocop", "~>1.1" | ||
gem "rubocop-performance" | ||
gem "sequel-annotate", "~>1.3" | ||
end | ||
|
||
group :test do | ||
gem 'simplecov', :require => false | ||
gem 'pact', '~>1.14' | ||
gem 'rspec-pact-matchers', '~>0.1' | ||
gem 'bundler-audit', '~>0.4' | ||
gem 'fakefs', '~>0.4' | ||
gem 'webmock', '~>3.9' | ||
gem 'rspec', '~>3.0' | ||
gem 'rspec-its', '~>1.2' | ||
gem 'database_cleaner', '~>1.8', '>= 1.8.1' | ||
gem 'timecop', '~> 0.9' | ||
gem 'faraday', '~>0.15' | ||
gem 'faraday_middleware', '~> 0.14' | ||
gem 'docker-api', '~>1.34' | ||
gem 'approvals', '>=0.0.24', '<1.0.0' | ||
gem "simplecov", :require => false | ||
gem "pact", "~>1.14" | ||
gem "rspec-pact-matchers", "~>0.1" | ||
gem "bundler-audit", "~>0.4" | ||
gem "fakefs", "~>0.4" | ||
gem "webmock", "~>3.9" | ||
gem "rspec", "~>3.0" | ||
gem "rspec-its", "~>1.2" | ||
gem "database_cleaner", "~>1.8", ">= 1.8.1" | ||
gem "timecop", "~> 0.9" | ||
gem "faraday", "~>0.15" | ||
gem "faraday_middleware", "~> 0.14" | ||
gem "docker-api", "~>1.34" | ||
gem "approvals", ">=0.0.24", "<1.0.0" | ||
end | ||
|
||
if ENV['INSTALL_MYSQL'] == "true" | ||
gem 'mysql2', '~>0.5' | ||
if ENV["INSTALL_MYSQL"] == "true" | ||
gem "mysql2", "~>0.5" | ||
end | ||
|
||
if ENV['INSTALL_PG'] == 'true' | ||
gem 'pg', '~>1.2' | ||
if ENV["INSTALL_PG"] == "true" | ||
gem "pg", "~>1.2" | ||
end | ||
|
||
if ENV['X_PACT_DEVELOPMENT'] == 'true' | ||
gem 'pact-support', path: '../pact-support' | ||
if ENV["X_PACT_DEVELOPMENT"] == "true" | ||
gem "pact-support", path: "../pact-support" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Remember everything in this file will be loaded by Rake, don't make it too heavy... | ||
|
||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib') | ||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../lib") | ||
|
||
# Default environment | ||
# Be aware that rake loads this boot file, so any attempt to change RACK_ENV by | ||
# setting ENV['RACK_ENV'] after that (eg. in spec_helper) will not work. | ||
RACK_ENV = ENV['RACK_ENV'] || 'development' unless defined? RACK_ENV | ||
RACK_ENV = ENV["RACK_ENV"] || "development" unless defined? RACK_ENV | ||
|
||
# Set up gems listed in the Gemfile. | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
if File.exist?(ENV['BUNDLE_GEMFILE']) | ||
require 'bundler/setup' | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) | ||
if File.exist?(ENV["BUNDLE_GEMFILE"]) | ||
require "bundler/setup" | ||
Bundler.require | ||
end | ||
|
||
if defined?(I18n) | ||
I18n.enforce_available_locales = false | ||
end | ||
|
||
require 'pact_broker' | ||
require "pact_broker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require_relative 'migration_helper' | ||
require_relative "migration_helper" | ||
|
||
Sequel.migration do | ||
change do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
db/migrations/000017_migrate_json_content_to_pact_version_content_table.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
db/migrations/000019_make_pact_version_content_sha_not_nullable.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
db/migrations/000020_add_pact_version_content_sha_to_all_pacts_view.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Sequel.migration do | ||
up do | ||
create_table(:pact_publications, charset: 'utf8') do | ||
create_table(:pact_publications, charset: "utf8") do | ||
primary_key :id | ||
foreign_key :consumer_version_id, :versions, null: false | ||
foreign_key :provider_id, :pacticipants, null: false | ||
Integer :revision_number, null: false | ||
foreign_key :pact_version_id, :pact_versions, null: false | ||
DateTime :created_at, null: false | ||
index [:consumer_version_id, :provider_id, :revision_number], unique: true, name: 'cv_prov_revision_unq' | ||
index [:consumer_version_id, :provider_id, :id], name: 'cv_prov_id_ndx' | ||
index [:consumer_version_id, :provider_id, :revision_number], unique: true, name: "cv_prov_revision_unq" | ||
index [:consumer_version_id, :provider_id, :id], name: "cv_prov_id_ndx" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.