vx-service_connector 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 966e5006fb1ed1af82253fb84668743343c1d6ae
4
- data.tar.gz: 165034189ca2a98b8d95fb6363e030f44d77ad24
3
+ metadata.gz: 2b29bb50c4760278782ac338ebb324aa59b8b703
4
+ data.tar.gz: 2d57da49c1545e966b01e4cbcf8f442d3d70a0b5
5
5
  SHA512:
6
- metadata.gz: 1f9f9a3033586ddd96b7a74f0cbb90782536c8e3f98827dff4f2d2dd7604a722bf264f3eded3e03471cdea466ecc021ac9de595b5472ef8aed6941999e25635f
7
- data.tar.gz: 901eca963bae69219a3f78401d2c10b9cb820a6d711ce2c5a4832e8391151203114eeeaab0710978303937af01979122f6746509ebaced10da9d9d9e376c215c
6
+ metadata.gz: fdca12195da6fb696117464e28fd4694452c2cc7ca12f72f11471daf7412094f807cd7013137c19a25f07c6da976bd3e93372b32bfb7fd8c1605789cd01a37c5
7
+ data.tar.gz: 67b699e32a94ea31093d8e75b54d20a4eefd9e187f642c19f14fe32758f38eeae4425fbe18b4c1b23ad97834bd5427e297f5ceadb6ff6399fa364aa4c9ec7c5e
@@ -25,9 +25,9 @@ module Vx
25
25
  end
26
26
 
27
27
  def user_repositories
28
- session.repositories.map do |repo|
29
- repo_to_model repo
30
- end
28
+ session.repositories
29
+ .select { |repo| repo.permissions && repo.permissions.admin }
30
+ .map { |repo| repo_to_model repo }
31
31
  end
32
32
 
33
33
  def repo_to_model(repo)
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ServiceConnector
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
5
5
  end
@@ -43,6 +43,54 @@
43
43
  "open_issues_count": 0,
44
44
  "pushed_at": "2011-01-26T19:06:43Z",
45
45
  "created_at": "2011-01-26T19:01:12Z",
46
- "updated_at": "2011-01-26T19:14:43Z"
46
+ "updated_at": "2011-01-26T19:14:43Z",
47
+ "permissions": { "admin": true, "push": true, "pull": true}
48
+ },
49
+ {
50
+ "id": 12962691,
51
+ "owner": {
52
+ "login": "octocat-adminless",
53
+ "id": 1,
54
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
55
+ "gravatar_id": "somehexcode",
56
+ "url": "https://api.github.com/users/octocat",
57
+ "html_url": "https://github.com/octocat",
58
+ "followers_url": "https://api.github.com/users/octocat/followers",
59
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
60
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
61
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
62
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
63
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
64
+ "repos_url": "https://api.github.com/users/octocat/repos",
65
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
66
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
67
+ "type": "User",
68
+ "site_admin": false
69
+ },
70
+ "name": "Hello-World",
71
+ "full_name": "octocat/user",
72
+ "description": "This your first repo!",
73
+ "private": false,
74
+ "fork": true,
75
+ "url": "https://api.github.com/repos/octocat/Hello-World",
76
+ "html_url": "https://github.com/octocat/Hello-World",
77
+ "clone_url": "https://github.com/octocat/Hello-World.git",
78
+ "git_url": "git://github.com/octocat/Hello-World.git",
79
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
80
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
81
+ "mirror_url": "git://git.example.com/octocat/Hello-World",
82
+ "homepage": "https://github.com",
83
+ "language": null,
84
+ "forks_count": 9,
85
+ "stargazers_count": 80,
86
+ "watchers_count": 80,
87
+ "size": 108,
88
+ "default_branch": "master",
89
+ "master_branch": "master",
90
+ "open_issues_count": 0,
91
+ "pushed_at": "2011-01-26T19:06:43Z",
92
+ "created_at": "2011-01-26T19:01:12Z",
93
+ "updated_at": "2011-01-26T19:14:43Z",
94
+ "permissions": { "admin": false, "push": true, "pull": true}
47
95
  }
48
96
  ]
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.2.8
4
+ version: 0.2.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-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit