githu3 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. data/README.md +179 -0
  2. data/bin/githu3 +7 -0
  3. data/lib/faraday/response/parse_json.rb +22 -0
  4. data/lib/githu3/cache/disk.rb +43 -0
  5. data/lib/githu3/cache/redis.rb +35 -0
  6. data/lib/githu3/cache.rb +8 -0
  7. data/lib/githu3/cli.rb +25 -0
  8. data/lib/githu3/client.rb +46 -30
  9. data/lib/githu3/comment.rb +15 -0
  10. data/lib/githu3/commit.rb +13 -0
  11. data/lib/githu3/connection.rb +47 -0
  12. data/lib/githu3/core_ext/hash.rb +18 -0
  13. data/lib/githu3/download.rb +4 -0
  14. data/lib/githu3/event.rb +6 -0
  15. data/lib/githu3/git_commit.rb +5 -0
  16. data/lib/githu3/issue.rb +10 -1
  17. data/lib/githu3/org.rb +1 -1
  18. data/lib/githu3/pull.rb +9 -0
  19. data/lib/githu3/ref.rb +9 -0
  20. data/lib/githu3/relations.rb +22 -2
  21. data/lib/githu3/repo.rb +14 -4
  22. data/lib/githu3/resource.rb +19 -4
  23. data/lib/githu3/resource_collection.rb +26 -9
  24. data/lib/githu3/store.rb +2 -2
  25. data/lib/githu3/team.rb +4 -0
  26. data/lib/githu3/tree.rb +4 -0
  27. data/lib/githu3/user.rb +5 -0
  28. data/lib/githu3/version.rb +1 -1
  29. data/lib/githu3.rb +23 -1
  30. metadata +94 -119
  31. data/.autotest +0 -3
  32. data/.document +0 -5
  33. data/.gitignore +0 -22
  34. data/.rspec +0 -4
  35. data/.travis.yml +0 -6
  36. data/Gemfile +0 -16
  37. data/Rakefile +0 -16
  38. data/githu3.gemspec +0 -34
  39. data/spec/fixtures/all_repos.json +0 -54
  40. data/spec/fixtures/error.json +0 -1
  41. data/spec/fixtures/issues/comments.json +0 -41
  42. data/spec/fixtures/issues/event.json +0 -12
  43. data/spec/fixtures/issues/events.json +0 -14
  44. data/spec/fixtures/me.json +0 -31
  45. data/spec/fixtures/orgs/github.json +0 -18
  46. data/spec/fixtures/orgs/rails.json +0 -18
  47. data/spec/fixtures/orgs.json +0 -14
  48. data/spec/fixtures/public_repos.json +0 -132
  49. data/spec/fixtures/repos/branches.json +0 -23
  50. data/spec/fixtures/repos/contributors.json +0 -58
  51. data/spec/fixtures/repos/faraday.json +0 -31
  52. data/spec/fixtures/repos/issue.json +0 -53
  53. data/spec/fixtures/repos/issues.json +0 -55
  54. data/spec/fixtures/repos/label.json +0 -5
  55. data/spec/fixtures/repos/labels.json +0 -7
  56. data/spec/fixtures/repos/milestone.json +0 -17
  57. data/spec/fixtures/repos/milestones.json +0 -19
  58. data/spec/fixtures/repos/tags.json +0 -164
  59. data/spec/fixtures/repos/teams.json +0 -17
  60. data/spec/fixtures/teams/1.json +0 -8
  61. data/spec/fixtures/teams/members.json +0 -8
  62. data/spec/fixtures/teams/repos.json +0 -28
  63. data/spec/fixtures/users/followers.json +0 -80
  64. data/spec/fixtures/users/following.json +0 -182
  65. data/spec/fixtures/users/orgs.json +0 -8
  66. data/spec/fixtures/users/repos.json +0 -132
  67. data/spec/fixtures/users/sbellity.json +0 -20
  68. data/spec/githu3/client_spec.rb +0 -66
  69. data/spec/githu3/error_spec.rb +0 -0
  70. data/spec/githu3/issue_spec.rb +0 -54
  71. data/spec/githu3/org_spec.rb +0 -79
  72. data/spec/githu3/repo_spec.rb +0 -100
  73. data/spec/githu3/resource_collection_spec.rb +0 -64
  74. data/spec/githu3/team_spec.rb +0 -47
  75. data/spec/githu3/user_spec.rb +0 -47
  76. data/spec/githu3_spec.rb +0 -7
  77. 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, :class_name => :user
6
- has_many :forks, :class_name => :repo
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, :nested_in => :issues
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
@@ -1,27 +1,42 @@
1
1
  module Githu3
2
2
 
3
- class Resource < Githu3::Store
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
- super(client.get(d).body)
11
+ @attributes = Githu3::Store.new(client.get(d).body)
11
12
  else
12
- super(d)
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 path
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 [] unless @pagination["next"]
53
- fetch(@pagination["next"])
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 [] unless @pagination["prev"]
58
- fetch(@pagination["prev"])
60
+ return [] if @current_page == 1
61
+ fetch(@current_page - 1)
59
62
  end
60
63
 
61
64
  def fetch_last
62
- return false unless @pagination["last"]
63
- fetch(@pagination["last"])
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
@@ -7,10 +7,10 @@ module Githu3
7
7
  @id = data[:id] || data["id"]
8
8
  @attributes = OpenStruct.new(data)
9
9
  end
10
-
10
+
11
11
  def method_missing m, *args
12
12
  @attributes.send m, *args
13
13
  end
14
-
14
+
15
15
  end
16
16
  end
data/lib/githu3/team.rb CHANGED
@@ -5,6 +5,10 @@ module Githu3
5
5
  has_many :members, :class_name => :user
6
6
  has_many :repos
7
7
 
8
+ def to_s
9
+ name
10
+ end
11
+
8
12
  def member?(user_login)
9
13
  begin
10
14
  _client.conn.get("/teams/#{id}/members/#{user_login}").status == 204
@@ -0,0 +1,4 @@
1
+ module Githu3
2
+ class Tree < Githu3::Resource
3
+ end
4
+ end
data/lib/githu3/user.rb CHANGED
@@ -8,6 +8,11 @@ module Githu3
8
8
  has_many :followers, :class_name => :user
9
9
  has_many :following, :class_name => :user
10
10
 
11
+
12
+ def to_s
13
+ login || email || name
14
+ end
15
+
11
16
  end
12
17
 
13
18
  end
@@ -1,3 +1,3 @@
1
1
  module Githu3
2
- VERSION = "0.0.3".freeze unless defined?(Githu3::VERSION)
2
+ VERSION = "0.0.4".freeze unless defined?(Githu3::VERSION)
3
3
  end
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{ issue org team user tag branch repo key event comment label milestone }
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
- version: 0.0.3
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-27 00:00:00 +02:00
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: &id005 !ruby/object:Gem::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: *id005
84
+ version_requirements: *id004
71
85
  - !ruby/object:Gem::Dependency
72
86
  name: ZenTest
73
87
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::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: *id006
99
+ version_requirements: *id005
82
100
  - !ruby/object:Gem::Dependency
83
101
  name: rake
84
102
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::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: *id007
114
+ version_requirements: *id006
93
115
  - !ruby/object:Gem::Dependency
94
116
  name: rspec
95
117
  prerelease: false
96
- requirement: &id008 !ruby/object:Gem::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: *id008
129
+ version_requirements: *id007
104
130
  - !ruby/object:Gem::Dependency
105
131
  name: simplecov
106
132
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::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: *id009
144
+ version_requirements: *id008
115
145
  - !ruby/object:Gem::Dependency
116
146
  name: webmock
117
147
  prerelease: false
118
- requirement: &id010 !ruby/object:Gem::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: *id010
159
+ version_requirements: *id009
126
160
  - !ruby/object:Gem::Dependency
127
161
  name: yajl-ruby
128
162
  prerelease: false
129
- requirement: &id011 !ruby/object:Gem::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: *id011
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
- - .autotest
148
- - .document
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
- - spec/fixtures/all_repos.json
179
- - spec/fixtures/error.json
180
- - spec/fixtures/issues/comments.json
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
- - spec/fixtures/all_repos.json
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
@@ -1,3 +0,0 @@
1
- require 'autotest/bundler'
2
- require "autotest/growl"
3
-
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- .rvmrc
2
- *.gem
3
- *~
4
- .DS_Store
5
- .\#*
6
- .bundle
7
- .config
8
- .yardoc
9
- Gemfile.lock
10
- \#*
11
- _yardoc
12
- coverage
13
- doc/
14
- lib/bundler/man
15
- pkg
16
- rdoc
17
- spec/reports
18
- test/tmp
19
- test/version_tmp
20
- tmp
21
- tmtags
22
- spec/.token
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --color
2
- --format=nested
3
- --backtrace
4
-
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- script: "bundle exec rspec spec"
2
- rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - rbx
6
- - ree
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
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- require 'rspec/core/rake_task'
7
- RSpec::Core::RakeTask.new(:spec)
8
-
9
- task :test => :spec
10
- task :default => :spec
11
-
12
-
13
-
14
-
15
-
16
-