octopussy 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/pengwynn/octopussy"
12
12
  gem.authors = ["Wynn Netherland", "Adam Stacoviak"]
13
13
 
14
- gem.add_dependency('hashie', '~> 0.1.3')
14
+ gem.add_dependency('hashie', '~> 0.2.0')
15
15
  gem.add_dependency('httparty', '~> 0.4.5')
16
16
 
17
17
  gem.add_development_dependency('shoulda', '>= 2.10.1')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.2
data/changelog.markdown CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
-
2
+ ## 0.2.2
3
+ * Patch from [abrader](http://github.com/abrader) to add auth_params query to the blob, tree, and repo class methods
4
+ ## 0.2.1
5
+ * Contributors API courtesy of @enricob
3
6
  ## 0.2.0
4
7
  * Commits API courtesy of @enricob
5
8
 
@@ -247,7 +247,7 @@ module Octopussy
247
247
 
248
248
  def repo(repo)
249
249
  repo = Repo.new(repo)
250
- response = self.class.get("/repos/show/#{repo.username}/#{repo.name}")
250
+ response = self.class.get("/repos/show/#{repo.username}/#{repo.name}", :query => auth_params)
251
251
  Hashie::Mash.new(response).repository
252
252
  end
253
253
 
@@ -310,19 +310,19 @@ module Octopussy
310
310
 
311
311
  def tree(repo, sha)
312
312
  repo = Repo.new(repo)
313
- response = self.class.get("http://github.com/api/v2/json/tree/show/#{repo.username}/#{repo.name}/#{sha}")
313
+ response = self.class.get("http://github.com/api/v2/json/tree/show/#{repo.username}/#{repo.name}/#{sha}", :query => auth_params)
314
314
  Hashie::Mash.new(response).tree
315
315
  end
316
316
 
317
317
  def blob(repo, sha, path)
318
318
  repo = Repo.new(repo)
319
- response = self.class.get("http://github.com/api/v2/json/blob/show/#{repo.username}/#{repo.name}/#{sha}/#{path}")
319
+ response = self.class.get("http://github.com/api/v2/json/blob/show/#{repo.username}/#{repo.name}/#{sha}/#{path}", :query => auth_params)
320
320
  Hashie::Mash.new(response).blob
321
321
  end
322
322
 
323
323
  def raw(repo, sha)
324
324
  repo = Repo.new(repo)
325
- response = self.class.get("http://github.com/api/v2/yaml/blob/show/#{repo.username}/#{repo.name}/#{sha}")
325
+ response = self.class.get("http://github.com/api/v2/yaml/blob/show/#{repo.username}/#{repo.name}/#{sha}", :query => auth_params)
326
326
  response.body
327
327
  end
328
328
 
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.1"
8
+ s.version = "0.2.2"
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-05-04}
12
+ s.date = %q{2010-06-08}
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 = [
@@ -79,14 +79,14 @@ Gem::Specification.new do |s|
79
79
  s.specification_version = 3
80
80
 
81
81
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
82
- s.add_runtime_dependency(%q<hashie>, ["~> 0.1.3"])
82
+ s.add_runtime_dependency(%q<hashie>, ["~> 0.2.0"])
83
83
  s.add_runtime_dependency(%q<httparty>, ["~> 0.4.5"])
84
84
  s.add_development_dependency(%q<shoulda>, [">= 2.10.1"])
85
85
  s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
86
86
  s.add_development_dependency(%q<mocha>, [">= 0.9.4"])
87
87
  s.add_development_dependency(%q<fakeweb>, [">= 1.2.5"])
88
88
  else
89
- s.add_dependency(%q<hashie>, ["~> 0.1.3"])
89
+ s.add_dependency(%q<hashie>, ["~> 0.2.0"])
90
90
  s.add_dependency(%q<httparty>, ["~> 0.4.5"])
91
91
  s.add_dependency(%q<shoulda>, [">= 2.10.1"])
92
92
  s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
@@ -94,7 +94,7 @@ Gem::Specification.new do |s|
94
94
  s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
95
95
  end
96
96
  else
97
- s.add_dependency(%q<hashie>, ["~> 0.1.3"])
97
+ s.add_dependency(%q<hashie>, ["~> 0.2.0"])
98
98
  s.add_dependency(%q<httparty>, ["~> 0.4.5"])
99
99
  s.add_dependency(%q<shoulda>, [">= 2.10.1"])
100
100
  s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
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-05-04 00:00:00 -05:00
18
+ date: 2010-06-08 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -27,9 +27,9 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 0
30
- - 1
31
- - 3
32
- version: 0.1.3
30
+ - 2
31
+ - 0
32
+ version: 0.2.0
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency