octopussy 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/changelog.markdown +2 -0
- data/lib/octopussy/client.rb +7 -2
- data/octopussy.gemspec +3 -3
- metadata +4 -4
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = %Q{Simple wrapper for the GitHub API}
|
9
9
|
gem.description = %Q{Simple wrapper for the GitHub API v2}
|
10
10
|
gem.email = "wynn.netherland@gmail.com"
|
11
|
-
gem.homepage = "http://
|
11
|
+
gem.homepage = "http://wynnnetherland.com/projects/octopussy"
|
12
12
|
gem.authors = ["Wynn Netherland", "Adam Stacoviak"]
|
13
13
|
|
14
14
|
gem.add_dependency('hashie', '~> 0.2.0')
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/changelog.markdown
CHANGED
data/lib/octopussy/client.rb
CHANGED
@@ -251,8 +251,13 @@ module Octopussy
|
|
251
251
|
Hashie::Mash.new(response).repository
|
252
252
|
end
|
253
253
|
|
254
|
-
def list_repos(username)
|
255
|
-
|
254
|
+
def list_repos(username = nil)
|
255
|
+
if username.nil? && !@login.nil?
|
256
|
+
username = login
|
257
|
+
elsif username.nil?
|
258
|
+
raise ArgumentError, 'you must provide a username'
|
259
|
+
end
|
260
|
+
response = self.class.get("/repos/show/#{username}", :query => auth_params)
|
256
261
|
Hashie::Mash.new(response).repositories
|
257
262
|
end
|
258
263
|
|
data/octopussy.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{octopussy}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wynn Netherland", "Adam Stacoviak"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-17}
|
13
13
|
s.description = %q{Simple wrapper for the GitHub API v2}
|
14
14
|
s.email = %q{wynn.netherland@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
|
|
63
63
|
"test/octopussy_test.rb",
|
64
64
|
"test/repo_test.rb"
|
65
65
|
]
|
66
|
-
s.homepage = %q{http://
|
66
|
+
s.homepage = %q{http://wynnnetherland.com/projects/octopussy}
|
67
67
|
s.rdoc_options = ["--charset=UTF-8"]
|
68
68
|
s.require_paths = ["lib"]
|
69
69
|
s.rubygems_version = %q{1.3.6}
|
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
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Wynn Netherland
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-17 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -158,7 +158,7 @@ files:
|
|
158
158
|
- test/octopussy_test.rb
|
159
159
|
- test/repo_test.rb
|
160
160
|
has_rdoc: true
|
161
|
-
homepage: http://
|
161
|
+
homepage: http://wynnnetherland.com/projects/octopussy
|
162
162
|
licenses: []
|
163
163
|
|
164
164
|
post_install_message:
|