Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: octokit/octokit.rb
base: v1.0.1
...
head fork: octokit/octokit.rb
compare: v1.0.2
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 9 files changed
  • 0 commit comments
  • 3 contributors
View
1  CHANGELOG.md
@@ -1,5 +1,6 @@
# CHANGELOG
+* [1.0.1 - March 31, 2012](https://github.com/pengwynn/octokit/compare/v1.0.0...v1.0.1)
* [1.0.0 - February 12, 2012](https://github.com/pengwynn/octokit/compare/v0.6.5...v1.0.0)
* [0.6.5 - October 15, 2011](https://github.com/pengwynn/octokit/compare/v0.6.4...v0.6.5)
* [0.6.4 - July 2, 2011](https://github.com/pengwynn/octokit/compare/v0.6.3...v0.6.4)
View
2  lib/octokit/client/issues.rb
@@ -11,7 +11,9 @@ module Issues
# @see http://develop.github.com/p/issues.html
# @example Search for 'test' in the open issues for sferik/rails_admin
# Octokit.search_issues("sferik/rails_admin", 'test', 'open')
+ # @deprecated Please use `list_issues` instead
def search_issues(repo, search_term, state='open', options={})
+ warn 'DEPRECATED: Please use Octokit.list_issues instead.'
get("/api/v2/json/issues/search/#{Repository.new(repo)}/#{state}/#{search_term}", options, 2)['issues']
end
View
2  lib/octokit/client/network.rb
@@ -2,10 +2,12 @@ module Octokit
class Client
module Network
def network_meta(repo, options={})
+ warn 'DEPRECATED: V3 of the API does not support this information. Support will be removed soon.'
get("/#{Repository.new(repo)}/network_meta", options, 2, false)
end
def network_data(repo, options={})
+ warn 'DEPRECATED: V3 of the API does not support this information. Support will be removed soon.'
get("/#{Repository.new(repo)}/network_data_chunk", options, 2, false)['commits']
end
end
View
8 lib/octokit/client/objects.rb
@@ -9,25 +9,25 @@ def blob(repo, tree_sha, options={})
get("repos/#{Repository.new(repo)}/git/blobs/#{tree_sha}", options)
end
- # Depreciated
def blobs(repo, tree_sha, options={})
+ warn 'DEPRECATED: Please use Octokit.tree instead.'
get("/api/v2/json/blob/all/#{Repository.new(repo)}/#{tree_sha}", options, 2)['blobs']
end
- # Depreciated
def blob_metadata(repo, tree_sha, options={})
+ warn 'DEPRECATED: Please use Octokit.blob instead.'
get("/api/v2/json/blob/full/#{Repository.new(repo)}/#{tree_sha}", options, 2)['blobs']
end
alias :blob_meta :blob_metadata
- # Depreciated
def tree_metadata(repo, tree_sha, options={})
+ warn 'DEPRECATED: Please use Octokit.tree instead.'
get("/api/v2/json/tree/full/#{Repository.new(repo)}/#{tree_sha}", options, 2)['tree']
end
alias :tree_meta :tree_metadata
- # Depreciated
def raw(repo, sha, options={})
+ warn 'DEPRECATED: Please use Octokit.blob instead.'
get("/api/v2/json/blob/show/#{Repository.new(repo)}/#{sha}", options, 2, true, true).body
end
end
View
2  lib/octokit/client/organizations.rb
@@ -24,7 +24,7 @@ def organizations(user=nil, options={})
def organization_repositories(org=nil, options={})
if org.nil?
- # Depreciated
+ warn 'DEPRECATED: Please pass org name to list repos.'
get("/api/v2/json/organizations/repositories", options, 2)
else
get("orgs/#{org}/repos", options, 3)
View
2  lib/octokit/client/repositories.rb
@@ -2,7 +2,7 @@ module Octokit
class Client
module Repositories
def search_repositories(q, options={})
- # Depreciated
+ warn 'DEPRECATED: V3 of the API does not support searching repos. Please use Octokit.repositories instead.'
get("/api/v2/json/repos/search/#{q}", options, 2)['repositories']
end
alias :search_repos :search_repositories
View
2  lib/octokit/client/timelines.rb
@@ -2,11 +2,13 @@ module Octokit
class Client
module Timelines
def timeline(options={})
+ warn 'DEPRECATED: Please use Octokit.public_events instead.'
path = "/timeline.json"
get(path, options, 2, false)
end
def user_timeline(username=login, options={})
+ warn 'DEPRECATED: Please use Octokit.user_events instead.'
if authenticated?
path = "/#{username}.private.json"
else
View
3  lib/octokit/client/users.rb
@@ -1,9 +1,10 @@
module Octokit
class Client
module Users
+
EMAIL_RE = /[\w.!#\$%+-]+@[\w-]+(?:\.[\w-]+)+/
- # Depreciated: V3 of the API does not allow searching users
def search_users(search, options={})
+ warn 'DEPRECATED: V3 of the API does not allow searching users.'
if search.match(EMAIL_RE)
get("/api/v2/json/user/email/#{search}", options, 2)['user']
else
View
2  lib/octokit/version.rb
@@ -1,3 +1,3 @@
module Octokit
- VERSION = "1.0.1".freeze unless defined?(Octokit::VERSION)
+ VERSION = "1.0.2".freeze unless defined?(Octokit::VERSION)
end

No commit comments for this range

Something went wrong with that request. Please try again.