github-api-client 0.1.2.1 → 0.1.2.2

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.
@@ -39,7 +39,7 @@ module GitHub
39
39
  hash = case resource
40
40
  when :user_get then {:public_repo_count => :nil, :public_gist_count => :nil, :created => :nil, :permission => :nil, :followers_count => :nil, :following_count => :nil}
41
41
  when :user_search then {:name => :login, :username => :login, :fullname => :name, :followers => :nil, :repos => :public_repo_count, :created => :nil, :permission => :nil}
42
- when :repo then {}
42
+ when :repo then {:fork => :"fork?".to_s}
43
43
  end
44
44
  hash.each do |k, v|
45
45
  unless v == :nil
@@ -4,7 +4,8 @@ module GitHub
4
4
  belongs_to :parent, :class_name => 'GitHub::Repo'
5
5
 
6
6
  def self.get(information)
7
- GitHub::Repo.find_or_create_by_id(GitHub::Base.parse_attributes(:repo, YAML::load(GitHub::Browser.get("/repos/show/#{information}"))['repository']))
7
+ #FIXME: permalink column must be present, comparing url's is surely not the most efficient way for the db
8
+ GitHub::Repo.find_or_create_by_url(YAML::load(GitHub::Browser.get("/repos/show/#{information}"))['repository'])
8
9
  end
9
10
 
10
11
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 0.1.2.1
9
+ - 2
10
+ version: 0.1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jakub Oko\xC5\x84ski"