Skip to content

Commit

Permalink
Remove gh gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Kolotinskiy committed Dec 3, 2020
1 parent 9cff6fe commit f85ff27
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ gem 'activerecord'
gem 'faraday'
gem 'faraday_middleware'

gem 'gh'
gem 'keen'
gem 'sentry-raven'
gem 'simple_states', git: 'https://github.com/svenfuchs/simple_states'
Expand Down
10 changes: 0 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ GEM
multipart-post (>= 1.2, < 3)
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
gh (0.15.1)
addressable (~> 2.4.0)
backports
faraday (~> 0.8)
multi_json (~> 1.0)
net-http-persistent (~> 2.9)
net-http-pipeline
hashdiff (0.3.0)
hashr (2.0.0)
hitimes (1.2.6)
Expand Down Expand Up @@ -147,8 +140,6 @@ GEM
metaclass (~> 0.0.1)
multi_json (1.12.1)
multipart-post (2.0.0)
net-http-persistent (2.9.4)
net-http-pipeline (1.0.1)
nio4r (2.5.2)
pg (0.19.0)
pry (0.11.3)
Expand Down Expand Up @@ -231,7 +222,6 @@ DEPENDENCIES
factory_girl
faraday
faraday_middleware
gh
jemalloc
jwt
keen
Expand Down
2 changes: 1 addition & 1 deletion lib/travis/addons/serializer/tasks/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def owner_data
def repository_data
{
id: repository.id,
github_id: repository.github_id,
github_id: repository.vcs_id.to_i,
vcs_id: repository.vcs_id,
vcs_type: repository.vcs_type,
key: repository.key.try(:public_key),
Expand Down
4 changes: 2 additions & 2 deletions spec/travis/addons/serializer/generic/build_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe Travis::Addons::Serializer::Tasks::Build do
let(:owner) { FactoryGirl.create(:user, login: 'login') }
let(:repo) { FactoryGirl.create(:repository, github_id: 12345, vcs_id: '12345', vcs_type: 'GithubRepository') }
let(:repo) { FactoryGirl.create(:repository, vcs_id: '12345', vcs_type: 'GithubRepository') }
let(:build) { FactoryGirl.create(:build, owner: owner, repository: repo, pull_request: pull, tag: tag, jobs: [job]) }
let(:stage) { FactoryGirl.create(:stage, number: 1, name: 'example') }
let(:job) { FactoryGirl.create(:job, repository: repo, stage: stage) }
Expand Down Expand Up @@ -39,7 +39,7 @@
it 'repository data' do
expect(data[:repository]).to eql(
id: repo.id,
github_id: 12345,
github_id: repo.vcs_id.to_i,
vcs_id: '12345',
vcs_type: 'GithubRepository',
key: nil,
Expand Down

0 comments on commit f85ff27

Please sign in to comment.