octopussy 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -5
- data/VERSION +1 -1
- data/changelog.markdown +18 -5
- data/lib/octopussy.rb +32 -110
- data/lib/octopussy/client.rb +31 -66
- data/octopussy.gemspec +16 -13
- data/test/fixtures/list_branch_commits.json +48 -0
- data/test/fixtures/list_commits.json +824 -0
- data/test/fixtures/show_commit.json +37 -0
- data/test/helper.rb +9 -14
- data/test/{test_octopussy.rb → octopussy_test.rb} +129 -83
- data/test/{test_repo.rb → repo_test.rb} +3 -3
- metadata +69 -35
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'helper'
|
1
|
+
require File.dirname(__FILE__) + '/helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class RepoTest < Test::Unit::TestCase
|
4
4
|
context "when passed a string containg a forward slash" do
|
5
5
|
setup do
|
6
6
|
@repo = Octopussy::Repo.new("pengwynn/linkedin")
|
@@ -48,4 +48,4 @@ class TestRepo < Test::Unit::TestCase
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopussy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Wynn Netherland
|
@@ -10,69 +15,93 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2010-
|
18
|
+
date: 2010-04-30 00:00:00 -05:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
22
|
name: hashie
|
18
|
-
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
25
|
requirements:
|
22
26
|
- - ~>
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 1
|
31
|
+
- 3
|
24
32
|
version: 0.1.3
|
25
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
26
35
|
- !ruby/object:Gem::Dependency
|
27
36
|
name: httparty
|
28
|
-
|
29
|
-
|
30
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
39
|
requirements:
|
32
40
|
- - ~>
|
33
41
|
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
- 5
|
34
46
|
version: 0.4.5
|
35
|
-
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
36
49
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
name: shoulda
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
53
|
requirements:
|
42
54
|
- - ">="
|
43
55
|
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 2
|
58
|
+
- 10
|
59
|
+
- 1
|
44
60
|
version: 2.10.1
|
45
|
-
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id003
|
46
63
|
- !ruby/object:Gem::Dependency
|
47
64
|
name: jnunemaker-matchy
|
48
|
-
|
49
|
-
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
67
|
requirements:
|
52
68
|
- - "="
|
53
69
|
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
- 4
|
73
|
+
- 0
|
54
74
|
version: 0.4.0
|
55
|
-
|
75
|
+
type: :development
|
76
|
+
version_requirements: *id004
|
56
77
|
- !ruby/object:Gem::Dependency
|
57
78
|
name: mocha
|
58
|
-
|
59
|
-
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
81
|
requirements:
|
62
|
-
- - "
|
82
|
+
- - ">="
|
63
83
|
- !ruby/object:Gem::Version
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
- 9
|
87
|
+
- 4
|
64
88
|
version: 0.9.4
|
65
|
-
|
89
|
+
type: :development
|
90
|
+
version_requirements: *id005
|
66
91
|
- !ruby/object:Gem::Dependency
|
67
92
|
name: fakeweb
|
68
|
-
|
69
|
-
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
71
95
|
requirements:
|
72
96
|
- - ">="
|
73
97
|
- !ruby/object:Gem::Version
|
98
|
+
segments:
|
99
|
+
- 1
|
100
|
+
- 2
|
101
|
+
- 5
|
74
102
|
version: 1.2.5
|
75
|
-
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id006
|
76
105
|
description: Simple wrapper for the GitHub API v2
|
77
106
|
email: wynn.netherland@gmail.com
|
78
107
|
executables: []
|
@@ -108,6 +137,8 @@ files:
|
|
108
137
|
- test/fixtures/keys.json
|
109
138
|
- test/fixtures/labels.json
|
110
139
|
- test/fixtures/languages.json
|
140
|
+
- test/fixtures/list_branch_commits.json
|
141
|
+
- test/fixtures/list_commits.json
|
111
142
|
- test/fixtures/network.json
|
112
143
|
- test/fixtures/network_data.json
|
113
144
|
- test/fixtures/network_meta.json
|
@@ -118,12 +149,13 @@ files:
|
|
118
149
|
- test/fixtures/repo_search.json
|
119
150
|
- test/fixtures/repos.json
|
120
151
|
- test/fixtures/search.json
|
152
|
+
- test/fixtures/show_commit.json
|
121
153
|
- test/fixtures/tags.json
|
122
154
|
- test/fixtures/trees.json
|
123
155
|
- test/fixtures/user.json
|
124
156
|
- test/helper.rb
|
125
|
-
- test/
|
126
|
-
- test/
|
157
|
+
- test/octopussy_test.rb
|
158
|
+
- test/repo_test.rb
|
127
159
|
has_rdoc: true
|
128
160
|
homepage: http://github.com/pengwynn/octopussy
|
129
161
|
licenses: []
|
@@ -137,22 +169,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
169
|
requirements:
|
138
170
|
- - ">="
|
139
171
|
- !ruby/object:Gem::Version
|
172
|
+
segments:
|
173
|
+
- 0
|
140
174
|
version: "0"
|
141
|
-
version:
|
142
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
176
|
requirements:
|
144
177
|
- - ">="
|
145
178
|
- !ruby/object:Gem::Version
|
179
|
+
segments:
|
180
|
+
- 0
|
146
181
|
version: "0"
|
147
|
-
version:
|
148
182
|
requirements: []
|
149
183
|
|
150
184
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.3.
|
185
|
+
rubygems_version: 1.3.6
|
152
186
|
signing_key:
|
153
187
|
specification_version: 3
|
154
188
|
summary: Simple wrapper for the GitHub API
|
155
189
|
test_files:
|
156
190
|
- test/helper.rb
|
157
|
-
- test/
|
158
|
-
- test/
|
191
|
+
- test/octopussy_test.rb
|
192
|
+
- test/repo_test.rb
|