vx-service_connector 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0f6d19ca3d8cac3a290c0c0993478152f71d96b
4
- data.tar.gz: b4f44fedfa0e3d637e502a29eb4becb360cfa2ec
3
+ metadata.gz: 8ebf9f2546b18e60654140a6069987a526d4f931
4
+ data.tar.gz: acd77337b9aa845ede919698d5ca9742de527ea7
5
5
  SHA512:
6
- metadata.gz: 0afd16981e0b359a74b43f0328050a79234d400f4e7d043a40a243445d22c4ccd15d5b711165248dfd81132636abfa3de928bf06dbd30c17c219a310410d4e95
7
- data.tar.gz: c73960f77c79688f9a849c07e721169c14b28ef674f806164ec80e3e44479c262898237c75e4605c60665cd49c516fb431bef953c8735732240e24d1badd171b
6
+ metadata.gz: 70b9d46293c108d4800c7a639d8643479e4a99af1e9a91f121d6df5ac4674b66dd0a9e29cd2b9c8d9828466551b54c75ca058c5a92e4122504b7f1b5bd26cf94
7
+ data.tar.gz: 8a9287220d2cbe978adfe2abd817a81222d56062e52bf080df7407c9be36ec7d90890fefd1f4605920f3dee042c6e8741b03fa2ff126af89c57a525db9f4e4be
@@ -4,7 +4,11 @@ module Vx
4
4
  DeployKeys = Struct.new(:session, :repo) do
5
5
 
6
6
  def all
7
- session.deploy_keys(repo.full_name)
7
+ begin
8
+ session.deploy_keys(repo.full_name)
9
+ rescue Octokit::NotFound
10
+ []
11
+ end
8
12
  end
9
13
 
10
14
  def create(key_name, public_key)
@@ -4,7 +4,11 @@ module Vx
4
4
  Hooks = Struct.new(:session, :repo) do
5
5
 
6
6
  def all
7
- session.hooks(repo.full_name)
7
+ begin
8
+ session.hooks(repo.full_name)
9
+ rescue Octokit::NotFound
10
+ []
11
+ end
8
12
  end
9
13
 
10
14
  def create(url, token)
@@ -4,7 +4,11 @@ module Vx
4
4
  DeployKeys = Struct.new(:session, :repo) do
5
5
 
6
6
  def all
7
- session.get "/projects/#{repo.id}/keys"
7
+ begin
8
+ session.get "/projects/#{repo.id}/keys"
9
+ rescue RequestError
10
+ []
11
+ end
8
12
  end
9
13
 
10
14
  def create(key_name, public_key)
@@ -4,7 +4,11 @@ module Vx
4
4
  Hooks = Struct.new(:session, :repo) do
5
5
 
6
6
  def all
7
- session.get hooks_url
7
+ begin
8
+ session.get hooks_url
9
+ rescue RequestError
10
+ []
11
+ end
8
12
  end
9
13
 
10
14
  def create(url, token)
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ServiceConnector
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-service_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-01 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit