fuselage 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fuselage/commit.rb +1 -1
- data/lib/fuselage/tree.rb +7 -1
- data/lib/fuselage/version.rb +1 -1
- metadata +2 -2
data/lib/fuselage/commit.rb
CHANGED
@@ -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
|
data/lib/fuselage/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fuselage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
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-
|
13
|
+
date: 2011-07-20 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|