-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update the gems to the latest version - stage 1 * require faraday/rack to fix rack adapter issue * params removed form cancel and restart spec * rubocop stage1 * rubocop stage2 * faraday-rack up to 2.0 * Default API endpoint switched * activesupport 7.0
- Loading branch information
Showing
157 changed files
with
3,468 additions
and
2,899 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
require: rubocop-performance | ||
require: rubocop-rspec | ||
|
||
Documentation: | ||
Enabled: false | ||
Metrics/ClassLength: | ||
Enabled: false | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
Metrics/LineLength: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Max: 40 | ||
Style/AsciiComments: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Style/GuardClause: | ||
Enabled: false | ||
Style/FormatStringToken: | ||
Enabled: false | ||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
Style/IfUnlessModifier: | ||
Enabled: false | ||
Naming/MemoizedInstanceVariableName: | ||
EnforcedStyleForLeadingUnderscores: required | ||
Style/MultilineBlockChain: | ||
Enabled: false | ||
Lint/ConstantDefinitionInBlock: | ||
Enabled: false | ||
Naming/VariableNumber: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
Enabled: false | ||
Lint/ImplicitStringConcatenation: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Style/StructInheritance: | ||
Enabled: false | ||
Lint/RescueException: | ||
Enabled: false | ||
Lint/SuppressedException: | ||
Enabled: false | ||
Naming/MemoizedInstanceVariableName: | ||
Enabled: false | ||
Style/SymbolProc: | ||
Enabled: false | ||
RSpec/MultipleMemoizedHelpers: | ||
Enabled: false |
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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
gemspec | ||
|
||
gem 'gh', git: 'https://github.com/travis-ci/gh', branch: 'prd-ruby-upgrade-dev' | ||
gem 'rake' | ||
gem 'activesupport', '~> 7.0.6' | ||
|
||
group :development, :test do | ||
gem 'rubocop' | ||
gem 'rubocop-performance' | ||
gem 'rubocop-rspec' | ||
gem 'simplecov-console' | ||
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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'travis' | ||
repos = Travis::Repository.find_all(owner_name: 'travis-ci') | ||
repos.each { |repo| puts "#{repo.slug} #{repo.last_build_state}" } |
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,6 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'travis' | ||
|
||
Travis.listen do |listener| | ||
listener.on("job:started") { |e| puts "job started for #{e.repository.slug}" } | ||
listener.on("job:finished") { |e| puts "job finished for #{e.repository.slug}" } | ||
end | ||
listener.on('job:started') { |e| puts "job started for #{e.repository.slug}" } | ||
listener.on('job:finished') { |e| puts "job finished for #{e.repository.slug}" } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
module Travis | ||
autoload :Client, 'travis/client' | ||
autoload :CLI, 'travis/cli' | ||
autoload :Pro, 'travis/pro' | ||
autoload :Version, 'travis/version' | ||
|
||
include Client::Namespace.new(Client::ORG_URI) | ||
include Client::Namespace.new(Client::COM_URI) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'travis' | ||
require 'travis/client/auto_login' | ||
Travis::Client::AutoLogin.new(Travis).authenticate |
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.