github-api-client 0.2.4 → 0.2.5
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.
- data/VERSION +1 -1
- data/bin/api-browser.rb +20 -0
- data/db/migrate/003_create_repos.rb +3 -3
- data/db/migrate/006_create_organizations_members.rb +1 -1
- data/features/fetching.feature +7 -2
- data/features/step_definitions/fetching_steps.rb +6 -2
- data/lib/github-api-client.rb +3 -3
- data/lib/github-api-client/base.rb +15 -10
- data/lib/github-api-client/organization.rb +19 -0
- data/lib/github-api-client/repo.rb +14 -5
- metadata +16 -19
- data/.rspec +0 -1
- data/Gemfile +0 -16
- data/Gemfile.lock +0 -65
- data/Rakefile +0 -43
- data/api-browser.rb +0 -21
- data/gemspec.old.orig +0 -17
- data/github-api-client.gemspec +0 -103
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/bin/api-browser.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'github-api-client'
|
4
|
+
|
5
|
+
puts GitHub::Config::Version
|
6
|
+
|
7
|
+
unless ARGV.include? 'test'
|
8
|
+
# Dev temporary code here
|
9
|
+
# GitHub::Repo.get('parndt/hub').parent.fetch(:self, :watchers).watchers
|
10
|
+
org = GitHub::Organization.get('github').fetch(:members, :repositories)
|
11
|
+
p org.repositories.collect {|r| r.name}
|
12
|
+
p org.members.collect {|u| u.login}
|
13
|
+
else # launches all-features code
|
14
|
+
# Performance tests
|
15
|
+
GitHub::Organization.get('rails').fetch(:repositories).repositories
|
16
|
+
GitHub::Repo.get('parndt/hub').parent.fetch(:self, :watchers).watchers
|
17
|
+
GitHub::User.get('kneath').fetch(:followers, :followings)
|
18
|
+
GitHub::User.get('schacon').fetch(:organizations).organizations
|
19
|
+
GitHub::Organization.get('github').fetch(:members, :repositories).members
|
20
|
+
end
|
@@ -5,16 +5,16 @@ class CreateRepos < ActiveRecord::Migration
|
|
5
5
|
t.string attr
|
6
6
|
end
|
7
7
|
|
8
|
-
%w(owner parent).each do |attr|
|
8
|
+
%w(owner parent organization).each do |attr|
|
9
9
|
t.references attr
|
10
10
|
end
|
11
11
|
|
12
12
|
# TODO: organization temporarily a string, only when there's no organization model
|
13
|
-
%w(size
|
13
|
+
%w(size score).each do |attr|
|
14
14
|
t.integer attr
|
15
15
|
end
|
16
16
|
|
17
|
-
%w(has_downloads b_fork deleted locked has_wiki private open_issues has_issues).each do |attr|
|
17
|
+
%w(has_downloads b_fork b_org deleted locked has_wiki private open_issues has_issues).each do |attr|
|
18
18
|
t.boolean attr
|
19
19
|
end
|
20
20
|
|
data/features/fetching.feature
CHANGED
@@ -3,11 +3,16 @@ Feature: Fetching Objects
|
|
3
3
|
I just need to request a function from a model
|
4
4
|
|
5
5
|
Scenario: Fetching user information
|
6
|
-
Given I
|
6
|
+
Given I fetch user "schacon"
|
7
7
|
Then my local database should contain that record
|
8
8
|
And that record's "name" should be "Scott Chacon"
|
9
9
|
|
10
10
|
Scenario: Fetching repo information
|
11
|
-
Given I
|
11
|
+
Given I fetch repo "mojombo/jekyll"
|
12
12
|
Then my local database should contain that record
|
13
13
|
And that record's "login" of the "owner" should be "mojombo"
|
14
|
+
|
15
|
+
Scenario: Fetching organization
|
16
|
+
Given I fetch organization "github"
|
17
|
+
Then my local database should contain that record
|
18
|
+
And that record's "email" should be "support@github.com"
|
@@ -4,14 +4,18 @@ Before do
|
|
4
4
|
end
|
5
5
|
end
|
6
6
|
|
7
|
-
Given /^I
|
7
|
+
Given /^I fetch user "(.*)"$/ do |login|
|
8
8
|
@record = GitHub::User.get(login)
|
9
9
|
end
|
10
10
|
|
11
|
-
Given /^I
|
11
|
+
Given /^I fetch repo "(.*)"$/ do |permalink|
|
12
12
|
@record = GitHub::Repo.get(permalink)
|
13
13
|
end
|
14
14
|
|
15
|
+
Given /^I fetch organization "(.*)"$/ do |login|
|
16
|
+
@record = GitHub::Organization.get(login)
|
17
|
+
end
|
18
|
+
|
15
19
|
Then /^my local database should contain that record$/ do
|
16
20
|
@record.class.find(@record.id).should == @record
|
17
21
|
end
|
data/lib/github-api-client.rb
CHANGED
@@ -19,19 +19,19 @@ module GitHub
|
|
19
19
|
users = GitHub::User.all
|
20
20
|
repos = GitHub::Repo.all
|
21
21
|
puts "Updating Records of all #{"users".color(:yellow).bright}"
|
22
|
-
progress = ProgressBar.new("Updating records", users.count)
|
22
|
+
#progress = ProgressBar.new("Updating records", users.count)
|
23
23
|
users.each do |user|
|
24
24
|
# Disabled because of its length
|
25
25
|
user.fetch(:self)
|
26
|
-
progress.inc
|
26
|
+
#progress.inc
|
27
27
|
end
|
28
28
|
progress.finish
|
29
|
-
progress = ProgressBar.new("Updating records", repos.count)
|
29
|
+
#progress = ProgressBar.new("Updating records", repos.count)
|
30
30
|
repos.each do |repo|
|
31
31
|
repo.fetch(:self, :watchers)
|
32
|
-
progress.inc
|
32
|
+
#progress.inc
|
33
33
|
end
|
34
|
-
progress.finish
|
34
|
+
#progress.finish
|
35
35
|
nil
|
36
36
|
end
|
37
37
|
|
@@ -45,17 +45,22 @@ module GitHub
|
|
45
45
|
hash = case resource
|
46
46
|
when :user_get then {:public_repo_count => :nil, :public_gist_count => :nil, :created => :nil, :permission => :nil, :followers_count => :nil, :following_count => :nil}
|
47
47
|
when :user_search then {:name => :login, :username => :login, :fullname => :name, :followers => :nil, :repos => :nil, :created => :nil, :permission => :nil}
|
48
|
-
when :repo_get then {:fork => :b_fork, :watchers => :nil}
|
48
|
+
when :repo_get then {:fork => :b_fork, :watchers => nil, :owner => :owner_login, :organization => :organization_login, :forks => nil, :followers_count => nil, :forks_count => nil}
|
49
49
|
when :org_get then {:public_gist_count => nil, :public_repo_count => nil, :following_count => :nil, :followers_count => :nil}
|
50
|
+
when :org_repo_index then {:owner => nil, :open_issues => nil, :has_issues => nil, :watchers => nil, :forks => nil, :fork => :b_fork, :gravatar_id => nil, :organization => :organization_login}
|
50
51
|
end
|
51
52
|
# Provides abstraction layer between YAML :keys and 'keys' returned by Hub
|
52
|
-
symbolized_resources = [:repo_get]
|
53
|
+
symbolized_resources = [:repo_get, :org_repo_index, :org_repo_get]
|
53
54
|
hash.each do |k, v|
|
54
55
|
unless v == :nil || v == nil
|
55
|
-
if
|
56
|
-
attributes[
|
56
|
+
if v.class != Symbol
|
57
|
+
attributes[k.to_s] = v
|
57
58
|
else
|
58
|
-
|
59
|
+
if symbolized_resources.include? resource
|
60
|
+
attributes[v.to_s] = attributes[k.to_sym]
|
61
|
+
else
|
62
|
+
attributes[v.to_s] = attributes[k.to_s]
|
63
|
+
end
|
59
64
|
end
|
60
65
|
end
|
61
66
|
if symbolized_resources.include? resource
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module GitHub
|
2
2
|
class Organization < ActiveRecord::Base
|
3
3
|
has_and_belongs_to_many :members, :class_name => 'GitHub::User', :join_table => 'organizations_members'
|
4
|
+
has_many :repositories, :class_name => 'GitHub::Repo'
|
4
5
|
|
5
6
|
def get
|
6
7
|
self.update_attributes(
|
@@ -20,6 +21,7 @@ module GitHub
|
|
20
21
|
case thing
|
21
22
|
when :self then get
|
22
23
|
when :members then get_members
|
24
|
+
when :repositories then get_repositories
|
23
25
|
end
|
24
26
|
end
|
25
27
|
self
|
@@ -41,5 +43,22 @@ module GitHub
|
|
41
43
|
puts nil
|
42
44
|
self
|
43
45
|
end
|
46
|
+
|
47
|
+
def get_repositories
|
48
|
+
repos = YAML::load(GitHub::Browser.get "/organizations/#{login}/public_repositories")['repositories']
|
49
|
+
puts "Fetching repositories for #{"organization".color(:magenta).bright} #{self.login.color(:green).bright}"
|
50
|
+
i, count = 0, repos.count.to_s.color(:green).bright
|
51
|
+
self.transaction do
|
52
|
+
repos.each do |repo|
|
53
|
+
i += 1
|
54
|
+
r = GitHub::Repo.find_by_url(repo[:url])
|
55
|
+
r ||= GitHub::Repo.create(GitHub::Base.parse_attributes :org_repo_index, repo)
|
56
|
+
print "\r#{i.to_s.color(:yellow).bright}/#{count}"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
puts nil
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
44
63
|
end
|
45
64
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module GitHub
|
2
2
|
class Repo < ActiveRecord::Base
|
3
3
|
belongs_to :owner, :class_name => 'GitHub::User'
|
4
|
+
belongs_to :organization, :class_name => 'GitHub::Organization'
|
4
5
|
belongs_to :parent, :class_name => 'GitHub::Repo'
|
5
6
|
has_and_belongs_to_many :watchers, :class_name => 'GitHub::User', :join_table => 'repo_watchings', :foreign_key => 'repo_id', :association_foreign_key => 'watcher_id'
|
6
7
|
|
@@ -49,10 +50,17 @@ module GitHub
|
|
49
50
|
end
|
50
51
|
|
51
52
|
public
|
52
|
-
def
|
53
|
-
|
54
|
-
|
55
|
-
self.
|
53
|
+
def owner_login=(user)
|
54
|
+
if user
|
55
|
+
self.b_org = false
|
56
|
+
self.owner = GitHub::User.find_or_create_by_login(user)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def organization_login=(organization)
|
61
|
+
if organization
|
62
|
+
self.b_org = true
|
63
|
+
self.organization = Organization.find_or_create_by_login(organization)
|
56
64
|
end
|
57
65
|
end
|
58
66
|
|
@@ -65,7 +73,8 @@ module GitHub
|
|
65
73
|
end
|
66
74
|
|
67
75
|
def permalink
|
68
|
-
|
76
|
+
o = owner.presence || organization.presence
|
77
|
+
"#{o.login}/#{name}"
|
69
78
|
end
|
70
79
|
|
71
80
|
# For future, when sql will be find_or_create_by_permalink
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Jakub Oko\xC5\x84ski"
|
@@ -14,8 +14,8 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
18
|
-
default_executable:
|
17
|
+
date: 2010-12-26 00:00:00 +01:00
|
18
|
+
default_executable: api-browser.rb
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rainbow
|
@@ -174,33 +174,21 @@ dependencies:
|
|
174
174
|
version_requirements: *id011
|
175
175
|
description: Caches retrieved information to your user profile and reuses it when you query again.
|
176
176
|
email: kuba@okonski.org
|
177
|
-
executables:
|
178
|
-
|
177
|
+
executables:
|
178
|
+
- api-browser.rb
|
179
179
|
extensions: []
|
180
180
|
|
181
181
|
extra_rdoc_files:
|
182
182
|
- LICENSE.txt
|
183
183
|
- README.rdoc
|
184
184
|
files:
|
185
|
-
- .rspec
|
186
|
-
- Gemfile
|
187
|
-
- Gemfile.lock
|
188
|
-
- LICENSE.txt
|
189
|
-
- README.rdoc
|
190
|
-
- Rakefile
|
191
185
|
- VERSION
|
192
|
-
- api-browser.rb
|
193
186
|
- db/migrate/001_create_users.rb
|
194
187
|
- db/migrate/002_create_user_followings.rb
|
195
188
|
- db/migrate/003_create_repos.rb
|
196
189
|
- db/migrate/004_create_repo_watchings.rb
|
197
190
|
- db/migrate/005_create_organizations.rb
|
198
191
|
- db/migrate/006_create_organizations_members.rb
|
199
|
-
- features/fetching.feature
|
200
|
-
- features/step_definitions/fetching_steps.rb
|
201
|
-
- features/support/env.rb
|
202
|
-
- gemspec.old.orig
|
203
|
-
- github-api-client.gemspec
|
204
192
|
- lib/core_ext/habtm.rb
|
205
193
|
- lib/github-api-client.rb
|
206
194
|
- lib/github-api-client/base.rb
|
@@ -209,8 +197,14 @@ files:
|
|
209
197
|
- lib/github-api-client/organization.rb
|
210
198
|
- lib/github-api-client/repo.rb
|
211
199
|
- lib/github-api-client/user.rb
|
200
|
+
- LICENSE.txt
|
201
|
+
- README.rdoc
|
202
|
+
- features/fetching.feature
|
203
|
+
- features/step_definitions/fetching_steps.rb
|
204
|
+
- features/support/env.rb
|
212
205
|
- spec/github-api-client_spec.rb
|
213
206
|
- spec/spec_helper.rb
|
207
|
+
- bin/api-browser.rb
|
214
208
|
has_rdoc: true
|
215
209
|
homepage: http://github.com/farnoy/github-api-client
|
216
210
|
licenses:
|
@@ -225,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
219
|
requirements:
|
226
220
|
- - ">="
|
227
221
|
- !ruby/object:Gem::Version
|
228
|
-
hash:
|
222
|
+
hash: -2220678579085750639
|
229
223
|
segments:
|
230
224
|
- 0
|
231
225
|
version: "0"
|
@@ -245,5 +239,8 @@ signing_key:
|
|
245
239
|
specification_version: 3
|
246
240
|
summary: Library for easy GitHub API browsing
|
247
241
|
test_files:
|
242
|
+
- features/fetching.feature
|
243
|
+
- features/step_definitions/fetching_steps.rb
|
244
|
+
- features/support/env.rb
|
248
245
|
- spec/github-api-client_spec.rb
|
249
246
|
- spec/spec_helper.rb
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/Gemfile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
gem "rainbow"
|
4
|
-
gem "activerecord", ">= 3.0.3"
|
5
|
-
gem "activesupport", ">= 3.0.3"
|
6
|
-
gem "sqlite3-ruby"
|
7
|
-
|
8
|
-
group :development do
|
9
|
-
gem "rspec", ">= 2.3.0"
|
10
|
-
gem "mocha"
|
11
|
-
gem "yard", ">= 0.6.0"
|
12
|
-
gem "cucumber"
|
13
|
-
gem "bundler", ">= 1.0.0"
|
14
|
-
gem "jeweler", ">= 1.5.2"
|
15
|
-
gem "rcov"
|
16
|
-
end
|
data/Gemfile.lock
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activemodel (3.0.3)
|
5
|
-
activesupport (= 3.0.3)
|
6
|
-
builder (~> 2.1.2)
|
7
|
-
i18n (~> 0.4)
|
8
|
-
activerecord (3.0.3)
|
9
|
-
activemodel (= 3.0.3)
|
10
|
-
activesupport (= 3.0.3)
|
11
|
-
arel (~> 2.0.2)
|
12
|
-
tzinfo (~> 0.3.23)
|
13
|
-
activesupport (3.0.3)
|
14
|
-
arel (2.0.6)
|
15
|
-
builder (2.1.2)
|
16
|
-
cucumber (0.10.0)
|
17
|
-
builder (>= 2.1.2)
|
18
|
-
diff-lcs (~> 1.1.2)
|
19
|
-
gherkin (~> 2.3.2)
|
20
|
-
json (~> 1.4.6)
|
21
|
-
term-ansicolor (~> 1.0.5)
|
22
|
-
diff-lcs (1.1.2)
|
23
|
-
gherkin (2.3.2)
|
24
|
-
json (~> 1.4.6)
|
25
|
-
term-ansicolor (~> 1.0.5)
|
26
|
-
git (1.2.5)
|
27
|
-
i18n (0.5.0)
|
28
|
-
jeweler (1.5.2)
|
29
|
-
bundler (~> 1.0.0)
|
30
|
-
git (>= 1.2.5)
|
31
|
-
rake
|
32
|
-
json (1.4.6)
|
33
|
-
mocha (0.9.10)
|
34
|
-
rake
|
35
|
-
rainbow (1.1)
|
36
|
-
rake (0.8.7)
|
37
|
-
rcov (0.9.9)
|
38
|
-
rspec (2.3.0)
|
39
|
-
rspec-core (~> 2.3.0)
|
40
|
-
rspec-expectations (~> 2.3.0)
|
41
|
-
rspec-mocks (~> 2.3.0)
|
42
|
-
rspec-core (2.3.1)
|
43
|
-
rspec-expectations (2.3.0)
|
44
|
-
diff-lcs (~> 1.1.2)
|
45
|
-
rspec-mocks (2.3.0)
|
46
|
-
sqlite3-ruby (1.3.2)
|
47
|
-
term-ansicolor (1.0.5)
|
48
|
-
tzinfo (0.3.23)
|
49
|
-
yard (0.6.4)
|
50
|
-
|
51
|
-
PLATFORMS
|
52
|
-
ruby
|
53
|
-
|
54
|
-
DEPENDENCIES
|
55
|
-
activerecord (>= 3.0.3)
|
56
|
-
activesupport (>= 3.0.3)
|
57
|
-
bundler (>= 1.0.0)
|
58
|
-
cucumber
|
59
|
-
jeweler (>= 1.5.2)
|
60
|
-
mocha
|
61
|
-
rainbow
|
62
|
-
rcov
|
63
|
-
rspec (>= 2.3.0)
|
64
|
-
sqlite3-ruby
|
65
|
-
yard (>= 0.6.0)
|
data/Rakefile
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
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.name = "github-api-client"
|
17
|
-
gem.homepage = "http://github.com/farnoy/github-api-client"
|
18
|
-
gem.license = "MIT"
|
19
|
-
gem.summary = %Q{Library for easy GitHub API browsing}
|
20
|
-
gem.description = %Q{Caches retrieved information to your user profile and reuses it when you query again.}
|
21
|
-
gem.email = "kuba@okonski.org"
|
22
|
-
gem.authors = ["Jakub Okoński"]
|
23
|
-
end
|
24
|
-
Jeweler::RubygemsDotOrgTasks.new
|
25
|
-
|
26
|
-
require 'rspec/core'
|
27
|
-
require 'rspec/core/rake_task'
|
28
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
29
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
30
|
-
end
|
31
|
-
|
32
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
33
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
34
|
-
spec.rcov = true
|
35
|
-
end
|
36
|
-
|
37
|
-
require 'cucumber/rake/task'
|
38
|
-
Cucumber::Rake::Task.new(:features)
|
39
|
-
|
40
|
-
task :default => :spec
|
41
|
-
|
42
|
-
require 'yard'
|
43
|
-
YARD::Rake::YardocTask.new
|
data/api-browser.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
$:.unshift('./lib/')
|
3
|
-
|
4
|
-
require 'github-api-client'
|
5
|
-
|
6
|
-
puts GitHub::Config::Version
|
7
|
-
|
8
|
-
unless ARGV.include? 'test'
|
9
|
-
# Dev temporary code here
|
10
|
-
#p GitHub::Organization.get('github')
|
11
|
-
#p GitHub::Organization.get('github').fetch(:members).members.first.organizations
|
12
|
-
else # launches all-features code
|
13
|
-
# Performance tests
|
14
|
-
GitHub::Repo.get('mojombo/jekyll').fetch(:self, :watchers)
|
15
|
-
GitHub::Repo.get('schacon/kidgloves').fetch(:watchers).watchers.each
|
16
|
-
GitHub::Repo.get('parndt/hub').parent.fetch(:self, :watchers).watchers
|
17
|
-
GitHub::User.get('kneath').fetch(:followers, :followings)
|
18
|
-
GitHub::User.get('defunkt').fetch(:followers, :followings)
|
19
|
-
GitHub::User.get('schacon').fetch(:organizations).organizations
|
20
|
-
GitHub::Organization.get('github').fetch(:members).members
|
21
|
-
end
|
data/gemspec.old.orig
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = "github-api-client"
|
3
|
-
s.version = '0.1.3.2'
|
4
|
-
s.summary = 'Library for easy GitHub API browsing'
|
5
|
-
s.description = s.summary
|
6
|
-
s.author = 'Jakub Okoński'
|
7
|
-
s.email = 'kuba@okonski.org'
|
8
|
-
s.homepage = 'http://github.com/farnoy/github-api-client'
|
9
|
-
|
10
|
-
s.files = Dir['lib/github_api.rb', 'lib/github_api/*', 'db/*/**', 'lib/core_ext/*']
|
11
|
-
s.require_path = 'lib'
|
12
|
-
s.has_rdoc = false
|
13
|
-
|
14
|
-
s.add_dependency('rainbow', '>=1.1')
|
15
|
-
s.add_dependency('activerecord', '>=3.0.3')
|
16
|
-
s.add_dependency('sqlite3-ruby', '>=1.3.2')
|
17
|
-
end
|
data/github-api-client.gemspec
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{github-api-client}
|
8
|
-
s.version = "0.2.4"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jakub Okoński"]
|
12
|
-
s.date = %q{2010-12-23}
|
13
|
-
s.description = %q{Caches retrieved information to your user profile and reuses it when you query again.}
|
14
|
-
s.email = %q{kuba@okonski.org}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".rspec",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"api-browser.rb",
|
28
|
-
"db/migrate/001_create_users.rb",
|
29
|
-
"db/migrate/002_create_user_followings.rb",
|
30
|
-
"db/migrate/003_create_repos.rb",
|
31
|
-
"db/migrate/004_create_repo_watchings.rb",
|
32
|
-
"db/migrate/005_create_organizations.rb",
|
33
|
-
"db/migrate/006_create_organizations_members.rb",
|
34
|
-
"features/fetching.feature",
|
35
|
-
"features/step_definitions/fetching_steps.rb",
|
36
|
-
"features/support/env.rb",
|
37
|
-
"gemspec.old.orig",
|
38
|
-
"github-api-client.gemspec",
|
39
|
-
"lib/core_ext/habtm.rb",
|
40
|
-
"lib/github-api-client.rb",
|
41
|
-
"lib/github-api-client/base.rb",
|
42
|
-
"lib/github-api-client/browser.rb",
|
43
|
-
"lib/github-api-client/config.rb",
|
44
|
-
"lib/github-api-client/organization.rb",
|
45
|
-
"lib/github-api-client/repo.rb",
|
46
|
-
"lib/github-api-client/user.rb",
|
47
|
-
"spec/github-api-client_spec.rb",
|
48
|
-
"spec/spec_helper.rb"
|
49
|
-
]
|
50
|
-
s.homepage = %q{http://github.com/farnoy/github-api-client}
|
51
|
-
s.licenses = ["MIT"]
|
52
|
-
s.require_paths = ["lib"]
|
53
|
-
s.rubygems_version = %q{1.3.7}
|
54
|
-
s.summary = %q{Library for easy GitHub API browsing}
|
55
|
-
s.test_files = [
|
56
|
-
"spec/github-api-client_spec.rb",
|
57
|
-
"spec/spec_helper.rb"
|
58
|
-
]
|
59
|
-
|
60
|
-
if s.respond_to? :specification_version then
|
61
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
62
|
-
s.specification_version = 3
|
63
|
-
|
64
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
65
|
-
s.add_runtime_dependency(%q<rainbow>, [">= 0"])
|
66
|
-
s.add_runtime_dependency(%q<activerecord>, [">= 3.0.3"])
|
67
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.3"])
|
68
|
-
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 0"])
|
69
|
-
s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
|
70
|
-
s.add_development_dependency(%q<mocha>, [">= 0"])
|
71
|
-
s.add_development_dependency(%q<yard>, [">= 0.6.0"])
|
72
|
-
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
73
|
-
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
74
|
-
s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
|
75
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
76
|
-
else
|
77
|
-
s.add_dependency(%q<rainbow>, [">= 0"])
|
78
|
-
s.add_dependency(%q<activerecord>, [">= 3.0.3"])
|
79
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.3"])
|
80
|
-
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
81
|
-
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
82
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
83
|
-
s.add_dependency(%q<yard>, [">= 0.6.0"])
|
84
|
-
s.add_dependency(%q<cucumber>, [">= 0"])
|
85
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
86
|
-
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
87
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
88
|
-
end
|
89
|
-
else
|
90
|
-
s.add_dependency(%q<rainbow>, [">= 0"])
|
91
|
-
s.add_dependency(%q<activerecord>, [">= 3.0.3"])
|
92
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.3"])
|
93
|
-
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
94
|
-
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
95
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
96
|
-
s.add_dependency(%q<yard>, [">= 0.6.0"])
|
97
|
-
s.add_dependency(%q<cucumber>, [">= 0"])
|
98
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
99
|
-
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
100
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|