fuselage 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module Fuselage
10
10
  def self.find(repo, sha, user=nil)
11
11
  raise AuthenticationRequired unless Api.authenticated
12
12
  user ||= User.current.login
13
- Commit.new(get("/repos/#{user}/#{repo}/commits/#{sha}"))
13
+ Commit.new(get("/repos/#{user}/#{repo}/git/commits/#{sha}"))
14
14
  end
15
15
 
16
16
  # Create a commit
data/lib/fuselage/tree.rb CHANGED
@@ -10,7 +10,13 @@ module Fuselage
10
10
  def self.find(repo, sha, user=nil)
11
11
  raise AuthenticationRequired unless Api.authenticated
12
12
  user ||= User.current.login
13
- Commit.new(get("/repos/#{user}/#{repo}/trees/#{sha}"))
13
+ Commit.new(get("/repos/#{user}/#{repo}/git/trees/#{sha}"))
14
+ end
15
+
16
+ def self.find_recursive(repo, sha, user=nil)
17
+ raise AuthenticationRequired unless Api.authenticated
18
+ user ||= User.current.login
19
+ Commit.new(get("/repos/#{user}/#{repo}/git/trees/#{sha}", {:recursive => 1}))
14
20
  end
15
21
 
16
22
  # Create a tree
@@ -1,3 +1,3 @@
1
1
  module Fuselage
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fuselage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Corey Collins
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-19 00:00:00 Z
13
+ date: 2011-07-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec