githu3 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +179 -0
- data/bin/githu3 +7 -0
- data/lib/faraday/response/parse_json.rb +22 -0
- data/lib/githu3/cache/disk.rb +43 -0
- data/lib/githu3/cache/redis.rb +35 -0
- data/lib/githu3/cache.rb +8 -0
- data/lib/githu3/cli.rb +25 -0
- data/lib/githu3/client.rb +46 -30
- data/lib/githu3/comment.rb +15 -0
- data/lib/githu3/commit.rb +13 -0
- data/lib/githu3/connection.rb +47 -0
- data/lib/githu3/core_ext/hash.rb +18 -0
- data/lib/githu3/download.rb +4 -0
- data/lib/githu3/event.rb +6 -0
- data/lib/githu3/git_commit.rb +5 -0
- data/lib/githu3/issue.rb +10 -1
- data/lib/githu3/org.rb +1 -1
- data/lib/githu3/pull.rb +9 -0
- data/lib/githu3/ref.rb +9 -0
- data/lib/githu3/relations.rb +22 -2
- data/lib/githu3/repo.rb +14 -4
- data/lib/githu3/resource.rb +19 -4
- data/lib/githu3/resource_collection.rb +26 -9
- data/lib/githu3/store.rb +2 -2
- data/lib/githu3/team.rb +4 -0
- data/lib/githu3/tree.rb +4 -0
- data/lib/githu3/user.rb +5 -0
- data/lib/githu3/version.rb +1 -1
- data/lib/githu3.rb +23 -1
- metadata +94 -119
- data/.autotest +0 -3
- data/.document +0 -5
- data/.gitignore +0 -22
- data/.rspec +0 -4
- data/.travis.yml +0 -6
- data/Gemfile +0 -16
- data/Rakefile +0 -16
- data/githu3.gemspec +0 -34
- data/spec/fixtures/all_repos.json +0 -54
- data/spec/fixtures/error.json +0 -1
- data/spec/fixtures/issues/comments.json +0 -41
- data/spec/fixtures/issues/event.json +0 -12
- data/spec/fixtures/issues/events.json +0 -14
- data/spec/fixtures/me.json +0 -31
- data/spec/fixtures/orgs/github.json +0 -18
- data/spec/fixtures/orgs/rails.json +0 -18
- data/spec/fixtures/orgs.json +0 -14
- data/spec/fixtures/public_repos.json +0 -132
- data/spec/fixtures/repos/branches.json +0 -23
- data/spec/fixtures/repos/contributors.json +0 -58
- data/spec/fixtures/repos/faraday.json +0 -31
- data/spec/fixtures/repos/issue.json +0 -53
- data/spec/fixtures/repos/issues.json +0 -55
- data/spec/fixtures/repos/label.json +0 -5
- data/spec/fixtures/repos/labels.json +0 -7
- data/spec/fixtures/repos/milestone.json +0 -17
- data/spec/fixtures/repos/milestones.json +0 -19
- data/spec/fixtures/repos/tags.json +0 -164
- data/spec/fixtures/repos/teams.json +0 -17
- data/spec/fixtures/teams/1.json +0 -8
- data/spec/fixtures/teams/members.json +0 -8
- data/spec/fixtures/teams/repos.json +0 -28
- data/spec/fixtures/users/followers.json +0 -80
- data/spec/fixtures/users/following.json +0 -182
- data/spec/fixtures/users/orgs.json +0 -8
- data/spec/fixtures/users/repos.json +0 -132
- data/spec/fixtures/users/sbellity.json +0 -20
- data/spec/githu3/client_spec.rb +0 -66
- data/spec/githu3/error_spec.rb +0 -0
- data/spec/githu3/issue_spec.rb +0 -54
- data/spec/githu3/org_spec.rb +0 -79
- data/spec/githu3/repo_spec.rb +0 -100
- data/spec/githu3/resource_collection_spec.rb +0 -64
- data/spec/githu3/team_spec.rb +0 -47
- data/spec/githu3/user_spec.rb +0 -47
- data/spec/githu3_spec.rb +0 -7
- data/spec/helper.rb +0 -21
data/lib/githu3/repo.rb
CHANGED
@@ -1,16 +1,26 @@
|
|
1
1
|
module Githu3
|
2
2
|
class Repo < Githu3::Resource
|
3
|
-
|
4
3
|
has_many :contributors, :class_name => :user
|
5
|
-
has_many :watchers,
|
6
|
-
has_many :forks,
|
4
|
+
has_many :watchers, :class_name => :user
|
5
|
+
has_many :forks, :class_name => :repo
|
7
6
|
has_many :teams
|
8
7
|
has_many :tags
|
8
|
+
has_many :commits
|
9
|
+
has_many :refs, :nested_in => :git
|
10
|
+
has_many :trees, :nested_in => :git
|
9
11
|
has_many :branches
|
10
12
|
has_many :issues
|
11
|
-
has_many :events,
|
13
|
+
has_many :events, :nested_in => :issues
|
12
14
|
has_many :labels
|
13
15
|
has_many :milestones
|
16
|
+
has_many :keys
|
17
|
+
has_many :comments
|
18
|
+
# has_many :downloads # not working... always returns an empty body
|
19
|
+
|
20
|
+
embeds_one :owner, :class_name => :user
|
14
21
|
|
22
|
+
def to_s
|
23
|
+
[owner, name].join("/")
|
24
|
+
end
|
15
25
|
end
|
16
26
|
end
|
data/lib/githu3/resource.rb
CHANGED
@@ -1,27 +1,42 @@
|
|
1
1
|
module Githu3
|
2
2
|
|
3
|
-
class Resource
|
3
|
+
class Resource
|
4
4
|
|
5
5
|
extend Githu3::Relations
|
6
6
|
|
7
7
|
def initialize(d, client)
|
8
8
|
@client = client
|
9
|
+
|
9
10
|
if d.is_a?(String)
|
10
|
-
|
11
|
+
@attributes = Githu3::Store.new(client.get(d).body)
|
11
12
|
else
|
12
|
-
|
13
|
+
@attributes = Githu3::Store.new(d)
|
13
14
|
end
|
14
15
|
end
|
15
16
|
|
17
|
+
def id
|
18
|
+
@attributes.id
|
19
|
+
end
|
20
|
+
|
16
21
|
def get *args
|
17
22
|
@client.get(*args)
|
18
23
|
end
|
19
24
|
|
20
|
-
def
|
25
|
+
def _path
|
21
26
|
return if url.nil?
|
22
27
|
URI.parse(url).path
|
23
28
|
end
|
24
29
|
|
30
|
+
def method_missing m, *args
|
31
|
+
val = @attributes.send(m, *args)
|
32
|
+
time_val = Time.parse(val) if m =~ /_at$/ rescue nil
|
33
|
+
time_val || val
|
34
|
+
end
|
35
|
+
|
36
|
+
def _attributes
|
37
|
+
@attributes
|
38
|
+
end
|
39
|
+
|
25
40
|
protected
|
26
41
|
|
27
42
|
def _client
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'forwardable'
|
2
|
+
require 'digest/sha1'
|
2
3
|
|
3
4
|
module Githu3
|
4
5
|
class ResourceCollection
|
@@ -6,9 +7,9 @@ module Githu3
|
|
6
7
|
include Enumerable
|
7
8
|
extend Forwardable
|
8
9
|
|
9
|
-
def_delegators :@resources, :each, :map, :<<, :length, :sort_by, :select, :detect, :find, :collect
|
10
|
+
def_delegators :@resources, :each, :map, :<<, :length, :sort_by, :select, :detect, :find, :collect, :first, :last
|
10
11
|
|
11
|
-
attr_reader :url, :fetch_error, :pagination
|
12
|
+
attr_reader :url, :fetch_error, :pagination, :current_page
|
12
13
|
|
13
14
|
def initialize client, resource_klass, url, params={}, opts={}
|
14
15
|
@resource_klass = resource_klass
|
@@ -25,6 +26,7 @@ module Githu3
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def fetch(page=nil)
|
29
|
+
page = page || @current_page unless @current_page == 1
|
28
30
|
begin
|
29
31
|
params = @params.dup.stringify_keys
|
30
32
|
params["page"] = page unless page.nil?
|
@@ -45,24 +47,39 @@ module Githu3
|
|
45
47
|
|
46
48
|
def update_pagination(res, params)
|
47
49
|
@pagination = parse_link_header(res.headers['link'])
|
48
|
-
@current_page = params["page"].to_i
|
50
|
+
@current_page = [1, params["page"].to_i].max
|
51
|
+
@last_page = @pagination['last'] unless @pagination['last'].nil?
|
49
52
|
end
|
50
53
|
|
51
54
|
def fetch_next
|
52
|
-
return []
|
53
|
-
fetch(@
|
55
|
+
return [] if (@current_page + 1) > @last_page
|
56
|
+
fetch(@current_page + 1)
|
54
57
|
end
|
55
58
|
|
56
59
|
def fetch_prev
|
57
|
-
return []
|
58
|
-
fetch(@
|
60
|
+
return [] if @current_page == 1
|
61
|
+
fetch(@current_page - 1)
|
59
62
|
end
|
60
63
|
|
61
64
|
def fetch_last
|
62
|
-
return
|
63
|
-
fetch(@
|
65
|
+
return [] unless @pagination["last"]
|
66
|
+
fetch(@last_page)
|
67
|
+
end
|
68
|
+
|
69
|
+
def fetch_first
|
70
|
+
fetch(1)
|
64
71
|
end
|
65
72
|
|
73
|
+
def next_page
|
74
|
+
np = @current_page + 1
|
75
|
+
np < @last_page ? np : nil
|
76
|
+
end
|
77
|
+
|
78
|
+
def prev_page
|
79
|
+
pp = @current_page - 1
|
80
|
+
pp > 1 ? pp : nil
|
81
|
+
end
|
82
|
+
|
66
83
|
|
67
84
|
def parse_link_header src
|
68
85
|
return {} if src.nil?
|
data/lib/githu3/store.rb
CHANGED
data/lib/githu3/team.rb
CHANGED
data/lib/githu3/tree.rb
ADDED
data/lib/githu3/user.rb
CHANGED
data/lib/githu3/version.rb
CHANGED
data/lib/githu3.rb
CHANGED
@@ -7,6 +7,8 @@ require 'active_support/core_ext/array/extract_options'
|
|
7
7
|
require 'active_support/core_ext/string/inflections'
|
8
8
|
require 'active_support/inflections'
|
9
9
|
|
10
|
+
require 'githu3/core_ext/hash'
|
11
|
+
|
10
12
|
module Githu3
|
11
13
|
|
12
14
|
require 'githu3/error'
|
@@ -14,9 +16,29 @@ module Githu3
|
|
14
16
|
require 'githu3/relations'
|
15
17
|
require 'githu3/resource'
|
16
18
|
require 'githu3/resource_collection'
|
19
|
+
require 'githu3/connection'
|
20
|
+
require 'githu3/cache'
|
17
21
|
require 'githu3/client'
|
18
22
|
|
19
|
-
Resources = %w{
|
23
|
+
Resources = %w{
|
24
|
+
branch
|
25
|
+
comment
|
26
|
+
commit
|
27
|
+
download
|
28
|
+
event
|
29
|
+
git_commit
|
30
|
+
issue
|
31
|
+
key
|
32
|
+
label
|
33
|
+
milestone
|
34
|
+
org
|
35
|
+
pull
|
36
|
+
repo
|
37
|
+
tag
|
38
|
+
team
|
39
|
+
tree
|
40
|
+
user
|
41
|
+
}
|
20
42
|
|
21
43
|
Resources.each do |r|
|
22
44
|
autoload r.camelize.to_sym, "githu3/#{r}"
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githu3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Stephane Bellity
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-28 00:00:00 +02:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
@@ -21,6 +26,11 @@ dependencies:
|
|
21
26
|
requirements:
|
22
27
|
- - ~>
|
23
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 0
|
33
|
+
- 0
|
24
34
|
version: 3.0.0
|
25
35
|
type: :runtime
|
26
36
|
version_requirements: *id001
|
@@ -32,6 +42,11 @@ dependencies:
|
|
32
42
|
requirements:
|
33
43
|
- - ~>
|
34
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 11
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 5
|
49
|
+
- 0
|
35
50
|
version: 0.5.0
|
36
51
|
type: :runtime
|
37
52
|
version_requirements: *id002
|
@@ -43,129 +58,154 @@ dependencies:
|
|
43
58
|
requirements:
|
44
59
|
- - ~>
|
45
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 7
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 6
|
65
|
+
- 0
|
46
66
|
version: 0.6.0
|
47
67
|
type: :runtime
|
48
68
|
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: faraday_middleware
|
51
|
-
prerelease: false
|
52
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 0.6.0
|
58
|
-
type: :runtime
|
59
|
-
version_requirements: *id004
|
60
69
|
- !ruby/object:Gem::Dependency
|
61
70
|
name: multi_json
|
62
71
|
prerelease: false
|
63
|
-
requirement: &
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
64
73
|
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 19
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 0
|
81
|
+
- 2
|
68
82
|
version: 1.0.2
|
69
83
|
type: :runtime
|
70
|
-
version_requirements: *
|
84
|
+
version_requirements: *id004
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: ZenTest
|
73
87
|
prerelease: false
|
74
|
-
requirement: &
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
75
89
|
none: false
|
76
90
|
requirements:
|
77
91
|
- - ~>
|
78
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 17
|
94
|
+
segments:
|
95
|
+
- 4
|
96
|
+
- 5
|
79
97
|
version: "4.5"
|
80
98
|
type: :development
|
81
|
-
version_requirements: *
|
99
|
+
version_requirements: *id005
|
82
100
|
- !ruby/object:Gem::Dependency
|
83
101
|
name: rake
|
84
102
|
prerelease: false
|
85
|
-
requirement: &
|
103
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
86
104
|
none: false
|
87
105
|
requirements:
|
88
106
|
- - ~>
|
89
107
|
- !ruby/object:Gem::Version
|
108
|
+
hash: 25
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
- 9
|
90
112
|
version: "0.9"
|
91
113
|
type: :development
|
92
|
-
version_requirements: *
|
114
|
+
version_requirements: *id006
|
93
115
|
- !ruby/object:Gem::Dependency
|
94
116
|
name: rspec
|
95
117
|
prerelease: false
|
96
|
-
requirement: &
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
97
119
|
none: false
|
98
120
|
requirements:
|
99
121
|
- - ~>
|
100
122
|
- !ruby/object:Gem::Version
|
123
|
+
hash: 15
|
124
|
+
segments:
|
125
|
+
- 2
|
126
|
+
- 6
|
101
127
|
version: "2.6"
|
102
128
|
type: :development
|
103
|
-
version_requirements: *
|
129
|
+
version_requirements: *id007
|
104
130
|
- !ruby/object:Gem::Dependency
|
105
131
|
name: simplecov
|
106
132
|
prerelease: false
|
107
|
-
requirement: &
|
133
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
108
134
|
none: false
|
109
135
|
requirements:
|
110
136
|
- - ~>
|
111
137
|
- !ruby/object:Gem::Version
|
138
|
+
hash: 3
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
- 4
|
112
142
|
version: "0.4"
|
113
143
|
type: :development
|
114
|
-
version_requirements: *
|
144
|
+
version_requirements: *id008
|
115
145
|
- !ruby/object:Gem::Dependency
|
116
146
|
name: webmock
|
117
147
|
prerelease: false
|
118
|
-
requirement: &
|
148
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
119
149
|
none: false
|
120
150
|
requirements:
|
121
151
|
- - ~>
|
122
152
|
- !ruby/object:Gem::Version
|
153
|
+
hash: 3
|
154
|
+
segments:
|
155
|
+
- 1
|
156
|
+
- 6
|
123
157
|
version: "1.6"
|
124
158
|
type: :development
|
125
|
-
version_requirements: *
|
159
|
+
version_requirements: *id009
|
126
160
|
- !ruby/object:Gem::Dependency
|
127
161
|
name: yajl-ruby
|
128
162
|
prerelease: false
|
129
|
-
requirement: &
|
163
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
130
164
|
none: false
|
131
165
|
requirements:
|
132
166
|
- - ~>
|
133
167
|
- !ruby/object:Gem::Version
|
168
|
+
hash: 27
|
169
|
+
segments:
|
170
|
+
- 0
|
171
|
+
- 8
|
134
172
|
version: "0.8"
|
135
173
|
type: :development
|
136
|
-
version_requirements: *
|
174
|
+
version_requirements: *id010
|
137
175
|
description: Ruby wrapper for the GitHub's v3' API
|
138
176
|
email:
|
139
177
|
- sbellity@gmail.com
|
140
|
-
executables:
|
141
|
-
|
178
|
+
executables:
|
179
|
+
- githu3
|
142
180
|
extensions: []
|
143
181
|
|
144
182
|
extra_rdoc_files: []
|
145
183
|
|
146
184
|
files:
|
147
|
-
-
|
148
|
-
- .
|
149
|
-
- .gitignore
|
150
|
-
- .rspec
|
151
|
-
- .travis.yml
|
152
|
-
- Gemfile
|
153
|
-
- LICENSE.txt
|
154
|
-
- README.md
|
155
|
-
- Rakefile
|
156
|
-
- githu3.gemspec
|
185
|
+
- bin/githu3
|
186
|
+
- lib/faraday/response/parse_json.rb
|
157
187
|
- lib/faraday/response/raise_githu3_error.rb
|
158
|
-
- lib/githu3.rb
|
159
188
|
- lib/githu3/branch.rb
|
189
|
+
- lib/githu3/cache/disk.rb
|
190
|
+
- lib/githu3/cache/redis.rb
|
191
|
+
- lib/githu3/cache.rb
|
192
|
+
- lib/githu3/cli.rb
|
160
193
|
- lib/githu3/client.rb
|
161
194
|
- lib/githu3/comment.rb
|
195
|
+
- lib/githu3/commit.rb
|
196
|
+
- lib/githu3/connection.rb
|
197
|
+
- lib/githu3/core_ext/hash.rb
|
198
|
+
- lib/githu3/download.rb
|
162
199
|
- lib/githu3/error.rb
|
163
200
|
- lib/githu3/event.rb
|
201
|
+
- lib/githu3/git_commit.rb
|
164
202
|
- lib/githu3/issue.rb
|
165
203
|
- lib/githu3/key.rb
|
166
204
|
- lib/githu3/label.rb
|
167
205
|
- lib/githu3/milestone.rb
|
168
206
|
- lib/githu3/org.rb
|
207
|
+
- lib/githu3/pull.rb
|
208
|
+
- lib/githu3/ref.rb
|
169
209
|
- lib/githu3/relations.rb
|
170
210
|
- lib/githu3/repo.rb
|
171
211
|
- lib/githu3/resource.rb
|
@@ -173,47 +213,12 @@ files:
|
|
173
213
|
- lib/githu3/store.rb
|
174
214
|
- lib/githu3/tag.rb
|
175
215
|
- lib/githu3/team.rb
|
216
|
+
- lib/githu3/tree.rb
|
176
217
|
- lib/githu3/user.rb
|
177
218
|
- lib/githu3/version.rb
|
178
|
-
-
|
179
|
-
-
|
180
|
-
-
|
181
|
-
- spec/fixtures/issues/event.json
|
182
|
-
- spec/fixtures/issues/events.json
|
183
|
-
- spec/fixtures/me.json
|
184
|
-
- spec/fixtures/orgs.json
|
185
|
-
- spec/fixtures/orgs/github.json
|
186
|
-
- spec/fixtures/orgs/rails.json
|
187
|
-
- spec/fixtures/public_repos.json
|
188
|
-
- spec/fixtures/repos/branches.json
|
189
|
-
- spec/fixtures/repos/contributors.json
|
190
|
-
- spec/fixtures/repos/faraday.json
|
191
|
-
- spec/fixtures/repos/issue.json
|
192
|
-
- spec/fixtures/repos/issues.json
|
193
|
-
- spec/fixtures/repos/label.json
|
194
|
-
- spec/fixtures/repos/labels.json
|
195
|
-
- spec/fixtures/repos/milestone.json
|
196
|
-
- spec/fixtures/repos/milestones.json
|
197
|
-
- spec/fixtures/repos/tags.json
|
198
|
-
- spec/fixtures/repos/teams.json
|
199
|
-
- spec/fixtures/teams/1.json
|
200
|
-
- spec/fixtures/teams/members.json
|
201
|
-
- spec/fixtures/teams/repos.json
|
202
|
-
- spec/fixtures/users/followers.json
|
203
|
-
- spec/fixtures/users/following.json
|
204
|
-
- spec/fixtures/users/orgs.json
|
205
|
-
- spec/fixtures/users/repos.json
|
206
|
-
- spec/fixtures/users/sbellity.json
|
207
|
-
- spec/githu3/client_spec.rb
|
208
|
-
- spec/githu3/error_spec.rb
|
209
|
-
- spec/githu3/issue_spec.rb
|
210
|
-
- spec/githu3/org_spec.rb
|
211
|
-
- spec/githu3/repo_spec.rb
|
212
|
-
- spec/githu3/resource_collection_spec.rb
|
213
|
-
- spec/githu3/team_spec.rb
|
214
|
-
- spec/githu3/user_spec.rb
|
215
|
-
- spec/githu3_spec.rb
|
216
|
-
- spec/helper.rb
|
219
|
+
- lib/githu3.rb
|
220
|
+
- LICENSE.txt
|
221
|
+
- README.md
|
217
222
|
has_rdoc: true
|
218
223
|
homepage: https://github.com/sbellity/githu3
|
219
224
|
licenses: []
|
@@ -228,12 +233,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
233
|
requirements:
|
229
234
|
- - ">="
|
230
235
|
- !ruby/object:Gem::Version
|
236
|
+
hash: 3
|
237
|
+
segments:
|
238
|
+
- 0
|
231
239
|
version: "0"
|
232
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
241
|
none: false
|
234
242
|
requirements:
|
235
243
|
- - ">="
|
236
244
|
- !ruby/object:Gem::Version
|
245
|
+
hash: 23
|
246
|
+
segments:
|
247
|
+
- 1
|
248
|
+
- 3
|
249
|
+
- 6
|
237
250
|
version: 1.3.6
|
238
251
|
requirements: []
|
239
252
|
|
@@ -242,43 +255,5 @@ rubygems_version: 1.6.2
|
|
242
255
|
signing_key:
|
243
256
|
specification_version: 3
|
244
257
|
summary: Ruby wrapper for the GitHub's v3' API
|
245
|
-
test_files:
|
246
|
-
|
247
|
-
- spec/fixtures/error.json
|
248
|
-
- spec/fixtures/issues/comments.json
|
249
|
-
- spec/fixtures/issues/event.json
|
250
|
-
- spec/fixtures/issues/events.json
|
251
|
-
- spec/fixtures/me.json
|
252
|
-
- spec/fixtures/orgs.json
|
253
|
-
- spec/fixtures/orgs/github.json
|
254
|
-
- spec/fixtures/orgs/rails.json
|
255
|
-
- spec/fixtures/public_repos.json
|
256
|
-
- spec/fixtures/repos/branches.json
|
257
|
-
- spec/fixtures/repos/contributors.json
|
258
|
-
- spec/fixtures/repos/faraday.json
|
259
|
-
- spec/fixtures/repos/issue.json
|
260
|
-
- spec/fixtures/repos/issues.json
|
261
|
-
- spec/fixtures/repos/label.json
|
262
|
-
- spec/fixtures/repos/labels.json
|
263
|
-
- spec/fixtures/repos/milestone.json
|
264
|
-
- spec/fixtures/repos/milestones.json
|
265
|
-
- spec/fixtures/repos/tags.json
|
266
|
-
- spec/fixtures/repos/teams.json
|
267
|
-
- spec/fixtures/teams/1.json
|
268
|
-
- spec/fixtures/teams/members.json
|
269
|
-
- spec/fixtures/teams/repos.json
|
270
|
-
- spec/fixtures/users/followers.json
|
271
|
-
- spec/fixtures/users/following.json
|
272
|
-
- spec/fixtures/users/orgs.json
|
273
|
-
- spec/fixtures/users/repos.json
|
274
|
-
- spec/fixtures/users/sbellity.json
|
275
|
-
- spec/githu3/client_spec.rb
|
276
|
-
- spec/githu3/error_spec.rb
|
277
|
-
- spec/githu3/issue_spec.rb
|
278
|
-
- spec/githu3/org_spec.rb
|
279
|
-
- spec/githu3/repo_spec.rb
|
280
|
-
- spec/githu3/resource_collection_spec.rb
|
281
|
-
- spec/githu3/team_spec.rb
|
282
|
-
- spec/githu3/user_spec.rb
|
283
|
-
- spec/githu3_spec.rb
|
284
|
-
- spec/helper.rb
|
258
|
+
test_files: []
|
259
|
+
|
data/.autotest
DELETED
data/.document
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
source :rubygems
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
|
6
|
-
platforms :jruby do
|
7
|
-
gem "jruby-openssl", "~> 0.7"
|
8
|
-
end
|
9
|
-
|
10
|
-
group :development, :test do
|
11
|
-
gem 'autotest-growl'
|
12
|
-
gem 'rake', '~> 0.9'
|
13
|
-
gem 'rspec', '~> 2.6'
|
14
|
-
gem 'simplecov', '~> 0.4'
|
15
|
-
gem 'webmock', '~> 1.6'
|
16
|
-
end
|