github-v3-api 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +3 -18
- data/Gemfile.lock +37 -100
- data/Rakefile +2 -59
- data/github-v3-api.gemspec +24 -88
- data/lib/github_v3_api.rb +12 -1
- data/lib/github_v3_api/version.rb +3 -0
- data/spec/github_v3_api_spec.rb +24 -2
- metadata +84 -71
- data/.document +0 -5
- data/.rvmrc +0 -2
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f692dff20ddbd6902535cc3e21c21daad15011a7
|
4
|
+
data.tar.gz: 94e3d1a031dd93bdfd43300a8e33bbf110a9da44
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: decad8e4794a5b87bf3f22b292226791bcd672df7f2f70326bd1fbd6bfa6f61eb2a8ce9d15510bc37eafe9f68dd3529657f96862a2e7492778109d6cf76a3564
|
7
|
+
data.tar.gz: 6d45d0bcaa1e25d2fdbfb4dab2201ee80f35a209dc5f2d19b23bc74beb83910f5592f9b6eeeb7b6afe87beab724bac700e1df962ec11eef7450b39f9883f2dcf
|
data/.gitignore
ADDED
data/Gemfile
CHANGED
@@ -1,19 +1,4 @@
|
|
1
|
-
source
|
2
|
-
gem 'rest-client', '~> 1.6.3'
|
3
|
-
gem 'json', '~> 1.5.3'
|
1
|
+
source 'https://rubygems.org'
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
gem "bundler", "~> 1.0.0"
|
8
|
-
gem "jeweler", "~> 1.6.0"
|
9
|
-
gem "rcov", ">= 0"
|
10
|
-
gem "reek", "~> 1.2.8"
|
11
|
-
gem "roodi", "~> 2.1.0"
|
12
|
-
end
|
13
|
-
|
14
|
-
# these are for the simple sinatra app that lets you get a GitHub access_token
|
15
|
-
# in order to test this library from IRB.
|
16
|
-
group :sinatra do
|
17
|
-
gem "sinatra"
|
18
|
-
gem "omniauth"
|
19
|
-
end
|
3
|
+
# Specify your gem's dependencies in github-v3-api.gemspec
|
4
|
+
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,110 +1,47 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
github-v3-api (0.4.1)
|
5
|
+
json
|
6
|
+
rest-client
|
7
|
+
|
1
8
|
GEM
|
2
|
-
remote:
|
9
|
+
remote: https://rubygems.org/
|
3
10
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
mime-types (1.16)
|
17
|
-
multi_json (1.0.3)
|
18
|
-
multi_xml (0.2.2)
|
19
|
-
multipart-post (1.1.2)
|
20
|
-
net-ldap (0.2.2)
|
21
|
-
nokogiri (1.4.6)
|
22
|
-
oa-basic (0.2.6)
|
23
|
-
oa-core (= 0.2.6)
|
24
|
-
rest-client (~> 1.6.0)
|
25
|
-
oa-core (0.2.6)
|
26
|
-
oa-enterprise (0.2.6)
|
27
|
-
addressable (= 2.2.4)
|
28
|
-
net-ldap (~> 0.2.2)
|
29
|
-
nokogiri (~> 1.4.2)
|
30
|
-
oa-core (= 0.2.6)
|
31
|
-
pyu-ruby-sasl (~> 0.0.3.1)
|
32
|
-
rubyntlm (~> 0.1.1)
|
33
|
-
oa-more (0.2.6)
|
34
|
-
multi_json (~> 1.0.0)
|
35
|
-
oa-core (= 0.2.6)
|
36
|
-
rest-client (~> 1.6.0)
|
37
|
-
oa-oauth (0.2.6)
|
38
|
-
faraday (~> 0.6.1)
|
39
|
-
multi_json (~> 1.0.0)
|
40
|
-
multi_xml (~> 0.2.2)
|
41
|
-
oa-core (= 0.2.6)
|
42
|
-
oauth (~> 0.4.0)
|
43
|
-
oauth2 (~> 0.4.1)
|
44
|
-
oa-openid (0.2.6)
|
45
|
-
oa-core (= 0.2.6)
|
46
|
-
rack-openid (~> 1.3.1)
|
47
|
-
ruby-openid-apps-discovery (~> 1.2.0)
|
48
|
-
oauth (0.4.4)
|
49
|
-
oauth2 (0.4.1)
|
50
|
-
faraday (~> 0.6.1)
|
51
|
-
multi_json (>= 0.0.5)
|
52
|
-
omniauth (0.2.6)
|
53
|
-
oa-basic (= 0.2.6)
|
54
|
-
oa-core (= 0.2.6)
|
55
|
-
oa-enterprise (= 0.2.6)
|
56
|
-
oa-more (= 0.2.6)
|
57
|
-
oa-oauth (= 0.2.6)
|
58
|
-
oa-openid (= 0.2.6)
|
59
|
-
pyu-ruby-sasl (0.0.3.3)
|
60
|
-
rack (1.3.0)
|
61
|
-
rack-openid (1.3.1)
|
62
|
-
rack (>= 1.1.0)
|
63
|
-
ruby-openid (>= 2.1.8)
|
64
|
-
rake (0.9.2)
|
65
|
-
rcov (0.9.9)
|
66
|
-
reek (1.2.8)
|
67
|
-
ruby2ruby (~> 1.2)
|
68
|
-
ruby_parser (~> 2.0)
|
69
|
-
sexp_processor (~> 3.0)
|
70
|
-
rest-client (1.6.3)
|
11
|
+
diff-lcs (1.2.1)
|
12
|
+
hashie (1.2.0)
|
13
|
+
json (1.7.7)
|
14
|
+
mime-types (1.21)
|
15
|
+
omniauth (1.1.3)
|
16
|
+
hashie (~> 1.2)
|
17
|
+
rack
|
18
|
+
rack (1.5.2)
|
19
|
+
rack-protection (1.5.0)
|
20
|
+
rack
|
21
|
+
rake (10.0.4)
|
22
|
+
rest-client (1.6.7)
|
71
23
|
mime-types (>= 1.16)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
rspec-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
rspec-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
ruby2ruby (1.2.5)
|
86
|
-
ruby_parser (~> 2.0)
|
87
|
-
sexp_processor (~> 3.0)
|
88
|
-
ruby_parser (2.0.6)
|
89
|
-
sexp_processor (~> 3.0)
|
90
|
-
rubyntlm (0.1.1)
|
91
|
-
sexp_processor (3.0.5)
|
92
|
-
sinatra (1.2.6)
|
93
|
-
rack (~> 1.1)
|
94
|
-
tilt (>= 1.2.2, < 2.0)
|
95
|
-
tilt (1.3.2)
|
24
|
+
rspec (2.13.0)
|
25
|
+
rspec-core (~> 2.13.0)
|
26
|
+
rspec-expectations (~> 2.13.0)
|
27
|
+
rspec-mocks (~> 2.13.0)
|
28
|
+
rspec-core (2.13.1)
|
29
|
+
rspec-expectations (2.13.0)
|
30
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
31
|
+
rspec-mocks (2.13.0)
|
32
|
+
sinatra (1.4.2)
|
33
|
+
rack (~> 1.5, >= 1.5.2)
|
34
|
+
rack-protection (~> 1.4)
|
35
|
+
tilt (~> 1.3, >= 1.3.4)
|
36
|
+
tilt (1.3.6)
|
96
37
|
|
97
38
|
PLATFORMS
|
98
39
|
ruby
|
99
40
|
|
100
41
|
DEPENDENCIES
|
101
|
-
bundler (~> 1.
|
102
|
-
|
103
|
-
json (~> 1.5.3)
|
42
|
+
bundler (~> 1.3)
|
43
|
+
github-v3-api!
|
104
44
|
omniauth
|
105
|
-
|
106
|
-
|
107
|
-
rest-client (~> 1.6.3)
|
108
|
-
roodi (~> 2.1.0)
|
109
|
-
rspec (~> 2.3.0)
|
45
|
+
rake
|
46
|
+
rspec
|
110
47
|
sinatra
|
data/Rakefile
CHANGED
@@ -1,63 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "github-v3-api"
|
18
|
-
gem.homepage = "http://github.com/jwilger/github-v3-api"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{Ruby Client for the GitHub v3 API}
|
21
|
-
gem.description = %Q{Ponies}
|
22
|
-
gem.email = "johnwilger@gmail.com"
|
23
|
-
gem.authors = ["John Wilger"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
|
-
|
28
|
-
require 'rspec/core'
|
1
|
+
require "bundler/gem_tasks"
|
29
2
|
require 'rspec/core/rake_task'
|
30
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
-
end
|
33
|
-
|
34
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
-
spec.rcov = true
|
37
|
-
end
|
38
3
|
|
39
|
-
|
40
|
-
Reek::Rake::Task.new do |t|
|
41
|
-
t.fail_on_error = true
|
42
|
-
t.verbose = false
|
43
|
-
t.source_files = 'lib/**/*.rb'
|
44
|
-
end
|
45
|
-
|
46
|
-
require 'roodi'
|
47
|
-
require 'roodi_task'
|
48
|
-
RoodiTask.new do |t|
|
49
|
-
t.verbose = false
|
50
|
-
end
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
51
5
|
|
52
6
|
task :default => :spec
|
53
|
-
|
54
|
-
require 'rake/rdoctask'
|
55
|
-
Rake::RDocTask.new do |rdoc|
|
56
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
57
|
-
|
58
|
-
rdoc.rdoc_dir = 'rdoc'
|
59
|
-
rdoc.title = "github-v3-api #{version}"
|
60
|
-
rdoc.rdoc_files.include('README*')
|
61
|
-
rdoc.rdoc_files.include('LICENSE*')
|
62
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
63
|
-
end
|
data/github-v3-api.gemspec
CHANGED
@@ -1,92 +1,28 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'github_v3_api/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "github-v3-api"
|
8
|
+
spec.version = GitHubV3API::VERSION
|
9
|
+
spec.authors = ["John Wilger"]
|
10
|
+
spec.email = ["johnwilger@gmail.com"]
|
11
|
+
spec.description = %q{Ponies}
|
12
|
+
spec.summary = %q{Ruby Client for the GitHub v3 API}
|
13
|
+
spec.homepage = "http://github.com/jwilger/github-v3-api"
|
14
|
+
spec.license = "MIT"
|
9
15
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
s.email = "johnwilger@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
".rvmrc",
|
23
|
-
"Gemfile",
|
24
|
-
"Gemfile.lock",
|
25
|
-
"LICENSE.txt",
|
26
|
-
"README.rdoc",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"github-v3-api-get-token",
|
30
|
-
"github-v3-api.gemspec",
|
31
|
-
"lib/github-v3-api.rb",
|
32
|
-
"lib/github_v3_api.rb",
|
33
|
-
"lib/github_v3_api/entity.rb",
|
34
|
-
"lib/github_v3_api/issue.rb",
|
35
|
-
"lib/github_v3_api/issues_api.rb",
|
36
|
-
"lib/github_v3_api/org.rb",
|
37
|
-
"lib/github_v3_api/orgs_api.rb",
|
38
|
-
"lib/github_v3_api/repo.rb",
|
39
|
-
"lib/github_v3_api/repos_api.rb",
|
40
|
-
"lib/github_v3_api/user.rb",
|
41
|
-
"lib/github_v3_api/users_api.rb",
|
42
|
-
"spec/github_v3_api_spec.rb",
|
43
|
-
"spec/issue_spec.rb",
|
44
|
-
"spec/issues_api_spec.rb",
|
45
|
-
"spec/org_spec.rb",
|
46
|
-
"spec/orgs_api_spec.rb",
|
47
|
-
"spec/repo_spec.rb",
|
48
|
-
"spec/repos_api_spec.rb",
|
49
|
-
"spec/spec_helper.rb",
|
50
|
-
"spec/user_api_spec.rb",
|
51
|
-
"spec/user_spec.rb"
|
52
|
-
]
|
53
|
-
s.homepage = "http://github.com/jwilger/github-v3-api"
|
54
|
-
s.licenses = ["MIT"]
|
55
|
-
s.require_paths = ["lib"]
|
56
|
-
s.rubygems_version = "1.8.10"
|
57
|
-
s.summary = "Ruby Client for the GitHub v3 API"
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
58
20
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
67
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
|
68
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
69
|
-
s.add_development_dependency(%q<reek>, ["~> 1.2.8"])
|
70
|
-
s.add_development_dependency(%q<roodi>, ["~> 2.1.0"])
|
71
|
-
else
|
72
|
-
s.add_dependency(%q<rest-client>, ["~> 1.6.3"])
|
73
|
-
s.add_dependency(%q<json>, ["~> 1.5.3"])
|
74
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
75
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
76
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
|
77
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
78
|
-
s.add_dependency(%q<reek>, ["~> 1.2.8"])
|
79
|
-
s.add_dependency(%q<roodi>, ["~> 2.1.0"])
|
80
|
-
end
|
81
|
-
else
|
82
|
-
s.add_dependency(%q<rest-client>, ["~> 1.6.3"])
|
83
|
-
s.add_dependency(%q<json>, ["~> 1.5.3"])
|
84
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
85
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
86
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
|
87
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
88
|
-
s.add_dependency(%q<reek>, ["~> 1.2.8"])
|
89
|
-
s.add_dependency(%q<roodi>, ["~> 2.1.0"])
|
90
|
-
end
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
24
|
+
spec.add_runtime_dependency(%q<json>, [">= 0"])
|
25
|
+
spec.add_development_dependency(%q<rspec>, [">= 0"])
|
26
|
+
spec.add_development_dependency(%q<sinatra>, [">= 0"])
|
27
|
+
spec.add_development_dependency(%q<omniauth>, [">= 0"])
|
91
28
|
end
|
92
|
-
|
data/lib/github_v3_api.rb
CHANGED
@@ -74,7 +74,18 @@ class GitHubV3API
|
|
74
74
|
result = RestClient.get("https://api.github.com" + path,
|
75
75
|
{:accept => :json,
|
76
76
|
:authorization => "token #{@access_token}"}.merge({:params => params}))
|
77
|
-
JSON.parse(result)
|
77
|
+
result_data = JSON.parse(result)
|
78
|
+
# check for pagination
|
79
|
+
link = result.headers[:link]
|
80
|
+
if link then
|
81
|
+
re_relnext = /<https:\/\/api.github.com([^>]*)>; *rel="next"/
|
82
|
+
relnext_path = link.match re_relnext
|
83
|
+
if relnext_path && relnext_path[1] then
|
84
|
+
next_data = self.get(relnext_path[1], params)
|
85
|
+
result_data += next_data
|
86
|
+
end
|
87
|
+
end
|
88
|
+
result_data
|
78
89
|
rescue RestClient::Unauthorized
|
79
90
|
raise Unauthorized, "The access token is invalid according to GitHub"
|
80
91
|
end
|
data/spec/github_v3_api_spec.rb
CHANGED
@@ -28,19 +28,41 @@ describe GitHubV3API do
|
|
28
28
|
|
29
29
|
describe '#get' do
|
30
30
|
it 'does a get request to the specified path at the GitHub API server and adds the access token' do
|
31
|
+
rcs = String.new('[]')
|
32
|
+
rcs.stub!(:headers).and_return({})
|
31
33
|
RestClient.should_receive(:get) \
|
32
34
|
.with('https://api.github.com/some/path', {:accept => :json, :authorization => 'token abcde', :params => {}}) \
|
33
|
-
.and_return(
|
35
|
+
.and_return(rcs)
|
34
36
|
api = GitHubV3API.new('abcde')
|
35
37
|
api.get('/some/path')
|
36
38
|
end
|
37
39
|
|
38
40
|
it 'returns the result of parsing the result body as JSON' do
|
39
|
-
|
41
|
+
rcs = String.new('[{"foo": "bar"}]')
|
42
|
+
rcs.stub!(:headers).and_return({})
|
43
|
+
RestClient.stub!(:get => rcs)
|
40
44
|
api = GitHubV3API.new('abcde')
|
41
45
|
api.get('/something').should == [{"foo" => "bar"}]
|
42
46
|
end
|
43
47
|
|
48
|
+
it "follows a pagination link from the http headers" do
|
49
|
+
headers_next = { :link => 'Link: <https://api.github.com/some/nextpath>; rel="next", <https://api.github.com/some/lastpath>; rel="last"' }
|
50
|
+
headers_last = { :link => 'Link: <https://api.github.com/some/prevpath>; rel="previous", <https://api.github.com/some/lastpath>; rel="last"' }
|
51
|
+
rcs_next = String.new('[]')
|
52
|
+
rcs_next.stub!(:headers).and_return(headers_next)
|
53
|
+
rcs_last = String.new('[]')
|
54
|
+
rcs_last.stub!(:headers).and_return(headers_last)
|
55
|
+
|
56
|
+
RestClient.should_receive(:get) \
|
57
|
+
.with('https://api.github.com/some/path', {:accept => :json, :authorization => 'token abcde', :params => {}}) \
|
58
|
+
.and_return(rcs_next)
|
59
|
+
RestClient.should_receive(:get) \
|
60
|
+
.with('https://api.github.com/some/nextpath', {:accept => :json, :authorization => 'token abcde', :params => {}}) \
|
61
|
+
.and_return(rcs_last)
|
62
|
+
api = GitHubV3API.new('abcde')
|
63
|
+
api.get('/some/path')
|
64
|
+
end
|
65
|
+
|
44
66
|
it 'raises GitHubV3API::Unauthorized instead of RestClient::Unauthorized' do
|
45
67
|
RestClient.stub!(:get).and_raise(RestClient::Unauthorized)
|
46
68
|
api = GitHubV3API.new('abcde')
|
metadata
CHANGED
@@ -1,121 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-v3-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Wilger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement:
|
17
|
-
none: false
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
22
|
-
type: :
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: json
|
27
|
-
requirement: &2173810720 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
23
|
requirements:
|
30
24
|
- - ~>
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *2173810720
|
26
|
+
version: '1.3'
|
36
27
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement:
|
39
|
-
none: false
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
40
30
|
requirements:
|
41
|
-
- -
|
31
|
+
- - '>='
|
42
32
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
33
|
+
version: '0'
|
44
34
|
type: :development
|
45
35
|
prerelease: false
|
46
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement:
|
50
|
-
none: false
|
42
|
+
name: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
51
44
|
requirements:
|
52
|
-
- -
|
45
|
+
- - '>='
|
53
46
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
type: :
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
56
49
|
prerelease: false
|
57
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
58
55
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement:
|
61
|
-
none: false
|
56
|
+
name: json
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
62
58
|
requirements:
|
63
|
-
- -
|
59
|
+
- - '>='
|
64
60
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
66
|
-
type: :
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
67
63
|
prerelease: false
|
68
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement:
|
72
|
-
none: false
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
|
-
- -
|
73
|
+
- - '>='
|
75
74
|
- !ruby/object:Gem::Version
|
76
75
|
version: '0'
|
77
76
|
type: :development
|
78
77
|
prerelease: false
|
79
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
80
83
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement:
|
83
|
-
none: false
|
84
|
+
name: sinatra
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
84
86
|
requirements:
|
85
|
-
- -
|
87
|
+
- - '>='
|
86
88
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
89
|
+
version: '0'
|
88
90
|
type: :development
|
89
91
|
prerelease: false
|
90
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
91
97
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement:
|
94
|
-
none: false
|
98
|
+
name: omniauth
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
95
100
|
requirements:
|
96
|
-
- -
|
101
|
+
- - '>='
|
97
102
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
103
|
+
version: '0'
|
99
104
|
type: :development
|
100
105
|
prerelease: false
|
101
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
102
111
|
description: Ponies
|
103
|
-
email:
|
112
|
+
email:
|
113
|
+
- johnwilger@gmail.com
|
104
114
|
executables: []
|
105
115
|
extensions: []
|
106
|
-
extra_rdoc_files:
|
107
|
-
- LICENSE.txt
|
108
|
-
- README.rdoc
|
116
|
+
extra_rdoc_files: []
|
109
117
|
files:
|
110
|
-
- .
|
118
|
+
- .gitignore
|
111
119
|
- .rspec
|
112
|
-
- .rvmrc
|
113
120
|
- Gemfile
|
114
121
|
- Gemfile.lock
|
115
122
|
- LICENSE.txt
|
116
123
|
- README.rdoc
|
117
124
|
- Rakefile
|
118
|
-
- VERSION
|
119
125
|
- github-v3-api-get-token
|
120
126
|
- github-v3-api.gemspec
|
121
127
|
- lib/github-v3-api.rb
|
@@ -129,6 +135,7 @@ files:
|
|
129
135
|
- lib/github_v3_api/repos_api.rb
|
130
136
|
- lib/github_v3_api/user.rb
|
131
137
|
- lib/github_v3_api/users_api.rb
|
138
|
+
- lib/github_v3_api/version.rb
|
132
139
|
- spec/github_v3_api_spec.rb
|
133
140
|
- spec/issue_spec.rb
|
134
141
|
- spec/issues_api_spec.rb
|
@@ -142,29 +149,35 @@ files:
|
|
142
149
|
homepage: http://github.com/jwilger/github-v3-api
|
143
150
|
licenses:
|
144
151
|
- MIT
|
152
|
+
metadata: {}
|
145
153
|
post_install_message:
|
146
154
|
rdoc_options: []
|
147
155
|
require_paths:
|
148
156
|
- lib
|
149
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
158
|
requirements:
|
152
|
-
- -
|
159
|
+
- - '>='
|
153
160
|
- !ruby/object:Gem::Version
|
154
161
|
version: '0'
|
155
|
-
segments:
|
156
|
-
- 0
|
157
|
-
hash: -3441059539014864528
|
158
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
163
|
requirements:
|
161
|
-
- -
|
164
|
+
- - '>='
|
162
165
|
- !ruby/object:Gem::Version
|
163
166
|
version: '0'
|
164
167
|
requirements: []
|
165
168
|
rubyforge_project:
|
166
|
-
rubygems_version:
|
169
|
+
rubygems_version: 2.0.3
|
167
170
|
signing_key:
|
168
|
-
specification_version:
|
171
|
+
specification_version: 4
|
169
172
|
summary: Ruby Client for the GitHub v3 API
|
170
|
-
test_files:
|
173
|
+
test_files:
|
174
|
+
- spec/github_v3_api_spec.rb
|
175
|
+
- spec/issue_spec.rb
|
176
|
+
- spec/issues_api_spec.rb
|
177
|
+
- spec/org_spec.rb
|
178
|
+
- spec/orgs_api_spec.rb
|
179
|
+
- spec/repo_spec.rb
|
180
|
+
- spec/repos_api_spec.rb
|
181
|
+
- spec/spec_helper.rb
|
182
|
+
- spec/user_api_spec.rb
|
183
|
+
- spec/user_spec.rb
|
data/.document
DELETED
data/.rvmrc
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.3.0
|