github_api 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,10 @@
1
- Feature: Accessing Gists Main API
2
- In order to interact with github gists
3
- GithubAPI gem
4
- Should return the expected results depending on passed parameters
1
+ Feature: Gists API
5
2
 
6
3
  Background:
7
4
  Given I have "Github::Gists" instance
8
5
 
9
- Scenario: Lists all user's gists
6
+ Scenario: List all user's gists
7
+
10
8
  Given I want to list resources
11
9
  And I pass the following request options:
12
10
  | user |
@@ -14,24 +12,63 @@ Feature: Accessing Gists Main API
14
12
  When I make request within a cassette named "gists/gists/user_all"
15
13
  Then the response status should be 200
16
14
  And the response type should be JSON
15
+ And the response should not be empty
16
+
17
+ Scenario: List public gists
17
18
 
18
- Scenario: Lists all public gists
19
19
  Given I want to list resources
20
20
  When I make request within a cassette named "gists/gists/public_all"
21
21
  Then the response status should be 200
22
22
  And the response type should be JSON
23
23
 
24
+ Scenario: List starred gists
25
+
26
+ Given I want starred resources
27
+ When I make request within a cassette named "gists/gists/starred"
28
+ Then the response status should be 200
29
+ And the response type should be JSON
30
+
24
31
  Scenario: Gets a single gist
32
+
25
33
  Given I want to get resource with the following params:
26
34
  | gist_id |
27
35
  | 1738161 |
28
36
  When I make request within a cassette named "gists/gist"
29
37
  Then the response status should be 200
30
38
  And the response type should be JSON
39
+ And the response should not be empty
31
40
 
32
41
  Scenario: Check if gist is starred
42
+
33
43
  Given I want to starred? resource with the following params:
34
44
  | gist_id |
35
45
  | 1738161 |
36
46
  When I make request within a cassette named "gists/starred"
37
47
  Then the response should equal false
48
+
49
+ Scenario: Start gist
50
+
51
+ Given I want to star resource with the following params:
52
+ | gist_id |
53
+ | 2900588 |
54
+ When I make request within a cassette named "gists/star"
55
+ Then the response status should be 204
56
+
57
+ Scenario: Unstart gist
58
+
59
+ Given I want to unstar resource with the following params:
60
+ | gist_id |
61
+ | 2900588 |
62
+ When I make request within a cassette named "gists/unstar"
63
+ Then the response status should be 204
64
+
65
+ Scenario: Fork gist
66
+
67
+ Given I want to fork resource with the following params:
68
+ | gist_id |
69
+ | 2900588 |
70
+ When I make request within a cassette named "gists/fork"
71
+ Then the response status should be 201
72
+ And the response type should be JSON
73
+ And the response should not be empty
74
+
@@ -0,0 +1,32 @@
1
+ Feature: Organizations API
2
+
3
+ Background:
4
+ Given I have "Github::Orgs" instance
5
+
6
+ Scenario: List for the user
7
+
8
+ Given I want to list resources
9
+ And I pass the following request options:
10
+ | user |
11
+ | wycats |
12
+ When I make request within a cassette named "orgs/list/user"
13
+ Then the response status should be 200
14
+ And the response type should be JSON
15
+ And the response should not be empty
16
+
17
+ Scenario: List for the authenticated user
18
+
19
+ Given I want to list resources
20
+ When I make request within a cassette named "orgs/list/oauth_user"
21
+ Then the response status should be 200
22
+ And the response type should be JSON
23
+
24
+ Scenario: Get
25
+
26
+ Given I want to get resource with the following params:
27
+ | org_name |
28
+ | github |
29
+ When I make request within a cassette named "orgs/get"
30
+ Then the response status should be 200
31
+ And the response type should be JSON
32
+ And the response should not be empty
@@ -1,4 +1,4 @@
1
- Feature: Githu API pagination
1
+ Feature: Github API pagination
2
2
 
3
3
  The gem permits to paginate resources.
4
4
 
@@ -1,30 +1,30 @@
1
- Feature: Accessing Repos Main API
2
- In order to interact with github repositories
3
- GithubAPI gem
4
- Should return the expected results depending on passed parameters
1
+ Feature: Repositories API
5
2
 
6
3
  Background:
7
4
  Given I have "Github::Repos" instance
8
5
 
9
- Scenario: Returning all repository branches
10
- When I am looking for "branches" with the following params:
6
+ Scenario: Branches
7
+
8
+ Given I want branches resource with the following params:
11
9
  | user | repo |
12
10
  | peter-murach | github |
13
- And I make request within a cassette named "repos/branches"
11
+ When I make request within a cassette named "repos/branches"
14
12
  Then the response status should be 200
15
13
  And the response type should be JSON
16
14
  And the response should not be empty
17
15
 
18
- Scenario: Returning all repository tags
19
- When I am looking for "tags" with the following params:
16
+ Scenario: Tags
17
+
18
+ Given I want tags resource with the following params:
20
19
  | user | repo |
21
20
  | peter-murach | github |
22
- And I make request within a cassette named "repos/tags"
21
+ When I make request within a cassette named "repos/tags"
23
22
  Then the response status should be 200
24
23
  And the response type should be JSON
25
24
  And the response should not be empty
26
25
 
27
- Scenario: Returning all repositories for the user
26
+ Scenario: All repositories for the user
27
+
28
28
  Given I want to list resources
29
29
  And I pass the following request options:
30
30
  | user |
@@ -35,6 +35,7 @@ Feature: Accessing Repos Main API
35
35
  And the response should not be empty
36
36
 
37
37
  Scenario: Get a repository
38
+
38
39
  Given I want to get resource with the following params:
39
40
  | user | repo |
40
41
  | wycats | thor |
@@ -43,15 +44,18 @@ Feature: Accessing Repos Main API
43
44
  And the response type should be JSON
44
45
  And the response should not be empty
45
46
 
46
- Scenario: Listing repository languages
47
- When I am looking for "languages" with the following params:
47
+ Scenario: Languages
48
+
49
+ Given I want languages resource with the following params:
48
50
  | user | repo |
49
51
  | peter-murach | github |
50
- And I make request within a cassette named "repos/languages"
52
+ When I make request within a cassette named "repos/languages"
51
53
  Then the response status should be 200
52
54
  And the response type should be JSON
55
+ And the response should not be empty
53
56
 
54
57
  Scenario: Create repository
58
+
55
59
  Given I want to create resource
56
60
  And I pass the following request options:
57
61
  | name |
@@ -60,3 +64,4 @@ Feature: Accessing Repos Main API
60
64
  Then the response status should be 201
61
65
  And the response type should be JSON
62
66
  And the response should not be empty
67
+
@@ -30,11 +30,11 @@ When /^I will have access to "([^"]*)" API$/ do |api|
30
30
  @response.class.to_s.should match api
31
31
  end
32
32
 
33
- When /^I want to (.*) (?:resource|resources)$/ do |method|
33
+ When /^I want(?: to|) (.*) (?:resource|resources)$/ do |method|
34
34
  @method = method
35
35
  end
36
36
 
37
- When /^I want to (.*) (?:resource|resources) with the following params:$/ do |method, table|
37
+ When /^I want(?: to|) (.*) (?:resource|resources) with the following params:$/ do |method, table|
38
38
  table.hashes.each do |attributes|
39
39
  @method = method.to_sym
40
40
  @attributes = attributes
@@ -10,4 +10,8 @@ class Array # :nodoc:
10
10
  copy
11
11
  end unless method_defined?(:except!)
12
12
 
13
+ def extract_options!
14
+ last.is_a?(::Hash) ? pop : {}
15
+ end
16
+
13
17
  end # Array
@@ -129,7 +129,7 @@ module Github
129
129
  # github.issues.labels.add 'user-name', 'repo-name', 'issue-id', 'label1', 'label2', ...
130
130
  #
131
131
  def add(user_name, repo_name, issue_id, *args)
132
- params = args.last.is_a?(Hash) ? args.pop : {}
132
+ params = args.extract_options!
133
133
  params['data'] = args unless args.empty?
134
134
 
135
135
  _update_user_repo_params(user_name, repo_name)
@@ -174,7 +174,7 @@ module Github
174
174
  # github.issues.labels.replace 'user-name', 'repo-name', 'issue-id', 'label1', 'label2', ...
175
175
  #
176
176
  def replace(user_name, repo_name, issue_id, *args)
177
- params = args.last.is_a?(Hash) ? args.pop : {}
177
+ params = args.extract_options!
178
178
  params['data'] = args unless args.empty?
179
179
 
180
180
  _update_user_repo_params(user_name, repo_name)
@@ -34,21 +34,22 @@ module Github
34
34
  # List all public organizations for a user.
35
35
  #
36
36
  # = Examples
37
- # github = Github.new :user => 'user-name'
38
- # github.orgs.list
37
+ # github = Github.new
38
+ # github.orgs.list user: 'user-name'
39
39
  #
40
40
  # List public and private organizations for the authenticated user.
41
41
  #
42
- # github = Github.new :oauth_token => '..'
43
- # github.orgs.list 'github'
42
+ # github = Github.new oauth_token: '..'
43
+ # github.orgs.list
44
44
  #
45
- def list(user_name=nil, params={})
46
- _update_user_repo_params(user_name)
45
+ def list(*args)
46
+ params = args.extract_options!
47
47
  _normalize_params_keys(params)
48
48
 
49
- response = if user?
50
- get_request("/users/#{user}/orgs", params)
49
+ response = if (user_name = params.delete("user"))
50
+ get_request("/users/#{user_name}/orgs", params)
51
51
  else
52
+ # For the authenticated user
52
53
  get_request("/user/orgs", params)
53
54
  end
54
55
  return response unless block_given?
@@ -209,8 +209,11 @@ module Github
209
209
  alias :team_repository? :team_repo?
210
210
 
211
211
  # Add a team repository
212
+ #
212
213
  # In order to add a repo to a team, the authenticated user must be
213
- # an owner of the org that the team is associated with.
214
+ # an owner of the org that the team is associated with. Also, the repo
215
+ # must be owned by the organization, or a direct for of a repo owned
216
+ # by the organization.
214
217
  #
215
218
  # = Examples
216
219
  # github = Github.new :oauth_token => '...'
@@ -224,8 +227,9 @@ module Github
224
227
  alias :add_repository :add_repo
225
228
 
226
229
  # Remove a team repository
230
+ #
227
231
  # In order to add a repo to a team, the authenticated user must be
228
- # an owner of the org that the team is associated with.
232
+ # an owner of the org that the team is associated with.
229
233
  # note: This does not delete the repo, it just removes it from the team.
230
234
  #
231
235
  # = Examples
@@ -133,7 +133,7 @@ module Github
133
133
  # github.repos.create :name => 'repo-name', :org => 'organisation-name'
134
134
  #
135
135
  def create(*args)
136
- params = args.last.is_a?(Hash) ? args.pop : {}
136
+ params = args.extract_options!
137
137
  _normalize_params_keys(params)
138
138
  _filter_params_keys(VALID_REPO_OPTIONS + %w[ org ], params)
139
139
 
@@ -264,7 +264,7 @@ module Github
264
264
  # github.repos.list :org => 'org-name', { |repo| ... }
265
265
  #
266
266
  def list(*args)
267
- params = args.last.is_a?(Hash) ? args.pop : {}
267
+ params = args.extract_options!
268
268
  _normalize_params_keys(params)
269
269
  _merge_user_into_params!(params) unless params.has_key?('user')
270
270
  _filter_params_keys(%w[ org user type ], params)
@@ -33,7 +33,7 @@ module Github
33
33
  # github.repos.watching.watched
34
34
  #
35
35
  def watched(*args)
36
- params = args.last.is_a?(Hash) ? args.pop : {}
36
+ params = args.extract_options!
37
37
  _normalize_params_keys(params)
38
38
  _merge_user_into_params!(params) unless params.has_key?('user')
39
39
 
@@ -1,9 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'base64'
4
- require 'addressable/uri'
5
- require 'multi_json'
6
-
7
3
  module Github
8
4
  # Defines HTTP verbs
9
5
  module Request
@@ -64,18 +60,5 @@ module Github
64
60
  options['mime_type'] = params['resource'] ? params.delete('mime_type') : ''
65
61
  end
66
62
 
67
- # no need for this smizzle
68
- def formatted_path(path, options={})
69
- [ path, options.fetch(:format, format) ].compact.join('.')
70
- end
71
-
72
- def basic_auth(login, password) # :nodoc:
73
- auth = Base64.encode("#{login}:#{password}")
74
- auth.gsub!("\n", "")
75
- end
76
-
77
- def token_auth
78
- end
79
-
80
63
  end # Request
81
64
  end # Github
@@ -17,7 +17,7 @@ module Github
17
17
  def initialize(app, *args)
18
18
  @app = app
19
19
  credentials = ""
20
- options = args.last.is_a?(Hash) ? args.pop : {}
20
+ options = args.extract_options!
21
21
  if options.has_key? :login
22
22
  credentials = "#{options[:login]}:#{options[:password]}"
23
23
  elsif options.has_key? :basic_auth
@@ -4,7 +4,7 @@ module Github
4
4
  module VERSION
5
5
  MAJOR = 0
6
6
  MINOR = 5
7
- PATCH = 3
7
+ PATCH = 4
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.');
@@ -24,29 +24,29 @@ describe Github::Orgs do
24
24
  end
25
25
 
26
26
  it "should get the resources" do
27
- github.orgs.list user
27
+ github.orgs.list :user => user
28
28
  a_get("/users/#{user}/orgs").should have_been_made
29
29
  end
30
30
 
31
31
  it "should return array of resources" do
32
- orgs = github.orgs.list user
32
+ orgs = github.orgs.list :user => user
33
33
  orgs.should be_an Array
34
34
  orgs.should have(1).items
35
35
  end
36
36
 
37
37
  it "should be a mash type" do
38
- orgs = github.orgs.list user
38
+ orgs = github.orgs.list :user => user
39
39
  orgs.first.should be_a Hashie::Mash
40
40
  end
41
41
 
42
42
  it "should get org information" do
43
- orgs = github.orgs.list user
43
+ orgs = github.orgs.list :user => user
44
44
  orgs.first.login.should == 'github'
45
45
  end
46
46
 
47
47
  it "should yield to a block" do
48
- github.orgs.should_receive(:list).with(user).and_yield('web')
49
- github.orgs.list(user) { |param| 'web' }
48
+ github.orgs.should_receive(:list).with(:user => user).and_yield('web')
49
+ github.orgs.list(:user => user) { |param| 'web' }
50
50
  end
51
51
  end
52
52
 
@@ -76,7 +76,7 @@ describe Github::Orgs do
76
76
 
77
77
  it "should return 404 with a message 'Not Found'" do
78
78
  expect {
79
- github.orgs.list user
79
+ github.orgs.list :user => user
80
80
  }.to raise_error(Github::Error::NotFound)
81
81
  end
82
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-06 00:00:00.000000000Z
12
+ date: 2012-06-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
16
- requirement: &2154417660 !ruby/object:Gem::Requirement
16
+ requirement: &2154258300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154417660
24
+ version_requirements: *2154258300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: faraday
27
- requirement: &2154417160 !ruby/object:Gem::Requirement
27
+ requirement: &2154257800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2154417160
35
+ version_requirements: *2154257800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &2154416700 !ruby/object:Gem::Requirement
38
+ requirement: &2154257340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.3'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2154416700
46
+ version_requirements: *2154257340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: oauth2
49
- requirement: &2154416240 !ruby/object:Gem::Requirement
49
+ requirement: &2154256880 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0.7'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2154416240
57
+ version_requirements: *2154256880
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &2154415780 !ruby/object:Gem::Requirement
60
+ requirement: &2154256420 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.5.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2154415780
68
+ version_requirements: *2154256420
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &2154435800 !ruby/object:Gem::Requirement
71
+ requirement: &2154272320 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2154435800
79
+ version_requirements: *2154272320
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: cucumber
82
- requirement: &2154435340 !ruby/object:Gem::Requirement
82
+ requirement: &2154271860 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2154435340
90
+ version_requirements: *2154271860
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: yajl-ruby
93
- requirement: &2154434880 !ruby/object:Gem::Requirement
93
+ requirement: &2154271400 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.1.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2154434880
101
+ version_requirements: *2154271400
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: webmock
104
- requirement: &2154434420 !ruby/object:Gem::Requirement
104
+ requirement: &2154270940 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.8.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2154434420
112
+ version_requirements: *2154270940
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: vcr
115
- requirement: &2154433960 !ruby/object:Gem::Requirement
115
+ requirement: &2154270480 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 2.2.0
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2154433960
123
+ version_requirements: *2154270480
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: simplecov
126
- requirement: &2154433500 !ruby/object:Gem::Requirement
126
+ requirement: &2154270020 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.6.1
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2154433500
134
+ version_requirements: *2154270020
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: guard
137
- requirement: &2154433120 !ruby/object:Gem::Requirement
137
+ requirement: &2154269640 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2154433120
145
+ version_requirements: *2154269640
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: guard-rspec
148
- requirement: &2154432660 !ruby/object:Gem::Requirement
148
+ requirement: &2154269180 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2154432660
156
+ version_requirements: *2154269180
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: guard-cucumber
159
- requirement: &2154432240 !ruby/object:Gem::Requirement
159
+ requirement: &2154268760 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *2154432240
167
+ version_requirements: *2154268760
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rake
170
- requirement: &2154431820 !ruby/object:Gem::Requirement
170
+ requirement: &2154268340 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *2154431820
178
+ version_requirements: *2154268340
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: bundler
181
- requirement: &2154431400 !ruby/object:Gem::Requirement
181
+ requirement: &2154267920 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,7 +186,7 @@ dependencies:
186
186
  version: '0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *2154431400
189
+ version_requirements: *2154267920
190
190
  description: ! ' Ruby wrapper that supports all of the GitHub API v3 methods(nearly
191
191
  200). It''s build in a modular way, that is, you can either instantiate the whole
192
192
  api wrapper Github.new or use parts of it e.i. Github::Repos.new if working solely
@@ -198,15 +198,30 @@ extra_rdoc_files: []
198
198
  files:
199
199
  - Rakefile
200
200
  - features/cassettes/errors/repos/create.yml
201
+ - features/cassettes/events/issue.yml
202
+ - features/cassettes/events/network.yml
203
+ - features/cassettes/events/org.yml
204
+ - features/cassettes/events/performed.yml
205
+ - features/cassettes/events/public.yml
206
+ - features/cassettes/events/received.yml
207
+ - features/cassettes/events/repo.yml
208
+ - features/cassettes/events/user_org.yml
201
209
  - features/cassettes/gists/comments/all.yml
202
210
  - features/cassettes/gists/comments/first.yml
211
+ - features/cassettes/gists/fork.yml
203
212
  - features/cassettes/gists/gist.yml
204
213
  - features/cassettes/gists/gists/public_all.yml
214
+ - features/cassettes/gists/gists/starred.yml
205
215
  - features/cassettes/gists/gists/user_all.yml
216
+ - features/cassettes/gists/star.yml
206
217
  - features/cassettes/gists/starred.yml
218
+ - features/cassettes/gists/unstar.yml
207
219
  - features/cassettes/git_data/references/all.yml
208
220
  - features/cassettes/git_data/references/all_tags.yml
209
221
  - features/cassettes/git_data/references/one.yml
222
+ - features/cassettes/orgs/get.yml
223
+ - features/cassettes/orgs/list/oauth_user.yml
224
+ - features/cassettes/orgs/list/user.yml
210
225
  - features/cassettes/pagination/issues/list/first.yml
211
226
  - features/cassettes/pagination/issues/list/last.yml
212
227
  - features/cassettes/pagination/issues/list/next.yml
@@ -232,11 +247,13 @@ files:
232
247
  - features/cassettes/users/emails/all.yml
233
248
  - features/cassettes/users/emails/delete.yml
234
249
  - features/error_codes.feature
250
+ - features/events.feature
235
251
  - features/gists/comments.feature
236
252
  - features/gists.feature
237
253
  - features/git_data/references.feature
238
254
  - features/github_api.feature
239
255
  - features/options.feature
256
+ - features/orgs.feature
240
257
  - features/pagination.feature
241
258
  - features/README.rdoc
242
259
  - features/repos.feature
@@ -475,7 +492,7 @@ files:
475
492
  homepage: https://github.com/peter-murach/github
476
493
  licenses: []
477
494
  post_install_message: ! "\n--------------------------------------------------------------------------------\nThank
478
- you for installing github_api-0.5.3.\n\n*NOTE*: Version 0.5.0 introduces breaking
495
+ you for installing github_api-0.5.4.\n\n*NOTE*: Version 0.5.0 introduces breaking
479
496
  changes to the way github api is queried.\nThe interface has been rewritten to be
480
497
  more consistent with REST verbs that\ninteract with GitHub hypermedia resources.
481
498
  Thus, to list resources 'list' or 'all'\nverbs are used, to retrieve individual