octokit 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # CHANGELOG
2
2
 
3
+ * [1.0.1 - March 31, 2012](https://github.com/pengwynn/octokit/compare/v1.0.0...v1.0.1)
3
4
  * [1.0.0 - February 12, 2012](https://github.com/pengwynn/octokit/compare/v0.6.5...v1.0.0)
4
5
  * [0.6.5 - October 15, 2011](https://github.com/pengwynn/octokit/compare/v0.6.4...v0.6.5)
5
6
  * [0.6.4 - July 2, 2011](https://github.com/pengwynn/octokit/compare/v0.6.3...v0.6.4)
@@ -11,7 +11,9 @@ module Octokit
11
11
  # @see http://develop.github.com/p/issues.html
12
12
  # @example Search for 'test' in the open issues for sferik/rails_admin
13
13
  # Octokit.search_issues("sferik/rails_admin", 'test', 'open')
14
+ # @deprecated Please use `list_issues` instead
14
15
  def search_issues(repo, search_term, state='open', options={})
16
+ warn 'DEPRECATED: Please use Octokit.list_issues instead.'
15
17
  get("/api/v2/json/issues/search/#{Repository.new(repo)}/#{state}/#{search_term}", options, 2)['issues']
16
18
  end
17
19
 
@@ -2,10 +2,12 @@ module Octokit
2
2
  class Client
3
3
  module Network
4
4
  def network_meta(repo, options={})
5
+ warn 'DEPRECATED: V3 of the API does not support this information. Support will be removed soon.'
5
6
  get("/#{Repository.new(repo)}/network_meta", options, 2, false)
6
7
  end
7
8
 
8
9
  def network_data(repo, options={})
10
+ warn 'DEPRECATED: V3 of the API does not support this information. Support will be removed soon.'
9
11
  get("/#{Repository.new(repo)}/network_data_chunk", options, 2, false)['commits']
10
12
  end
11
13
  end
@@ -9,25 +9,25 @@ module Octokit
9
9
  get("repos/#{Repository.new(repo)}/git/blobs/#{tree_sha}", options)
10
10
  end
11
11
 
12
- # Depreciated
13
12
  def blobs(repo, tree_sha, options={})
13
+ warn 'DEPRECATED: Please use Octokit.tree instead.'
14
14
  get("/api/v2/json/blob/all/#{Repository.new(repo)}/#{tree_sha}", options, 2)['blobs']
15
15
  end
16
16
 
17
- # Depreciated
18
17
  def blob_metadata(repo, tree_sha, options={})
18
+ warn 'DEPRECATED: Please use Octokit.blob instead.'
19
19
  get("/api/v2/json/blob/full/#{Repository.new(repo)}/#{tree_sha}", options, 2)['blobs']
20
20
  end
21
21
  alias :blob_meta :blob_metadata
22
22
 
23
- # Depreciated
24
23
  def tree_metadata(repo, tree_sha, options={})
24
+ warn 'DEPRECATED: Please use Octokit.tree instead.'
25
25
  get("/api/v2/json/tree/full/#{Repository.new(repo)}/#{tree_sha}", options, 2)['tree']
26
26
  end
27
27
  alias :tree_meta :tree_metadata
28
28
 
29
- # Depreciated
30
29
  def raw(repo, sha, options={})
30
+ warn 'DEPRECATED: Please use Octokit.blob instead.'
31
31
  get("/api/v2/json/blob/show/#{Repository.new(repo)}/#{sha}", options, 2, true, true).body
32
32
  end
33
33
  end
@@ -24,7 +24,7 @@ module Octokit
24
24
 
25
25
  def organization_repositories(org=nil, options={})
26
26
  if org.nil?
27
- # Depreciated
27
+ warn 'DEPRECATED: Please pass org name to list repos.'
28
28
  get("/api/v2/json/organizations/repositories", options, 2)
29
29
  else
30
30
  get("orgs/#{org}/repos", options, 3)
@@ -2,7 +2,7 @@ module Octokit
2
2
  class Client
3
3
  module Repositories
4
4
  def search_repositories(q, options={})
5
- # Depreciated
5
+ warn 'DEPRECATED: V3 of the API does not support searching repos. Please use Octokit.repositories instead.'
6
6
  get("/api/v2/json/repos/search/#{q}", options, 2)['repositories']
7
7
  end
8
8
  alias :search_repos :search_repositories
@@ -2,11 +2,13 @@ module Octokit
2
2
  class Client
3
3
  module Timelines
4
4
  def timeline(options={})
5
+ warn 'DEPRECATED: Please use Octokit.public_events instead.'
5
6
  path = "/timeline.json"
6
7
  get(path, options, 2, false)
7
8
  end
8
9
 
9
10
  def user_timeline(username=login, options={})
11
+ warn 'DEPRECATED: Please use Octokit.user_events instead.'
10
12
  if authenticated?
11
13
  path = "/#{username}.private.json"
12
14
  else
@@ -1,9 +1,10 @@
1
1
  module Octokit
2
2
  class Client
3
3
  module Users
4
+
4
5
  EMAIL_RE = /[\w.!#\$%+-]+@[\w-]+(?:\.[\w-]+)+/
5
- # Depreciated: V3 of the API does not allow searching users
6
6
  def search_users(search, options={})
7
+ warn 'DEPRECATED: V3 of the API does not allow searching users.'
7
8
  if search.match(EMAIL_RE)
8
9
  get("/api/v2/json/user/email/#{search}", options, 2)['user']
9
10
  else
@@ -1,3 +1,3 @@
1
1
  module Octokit
2
- VERSION = "1.0.1".freeze unless defined?(Octokit::VERSION)
2
+ VERSION = "1.0.2".freeze unless defined?(Octokit::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-31 00:00:00.000000000 Z
14
+ date: 2012-04-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
18
- requirement: &70223355576780 !ruby/object:Gem::Requirement
18
+ requirement: &70272876478760 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '2.2'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70223355576780
26
+ version_requirements: *70272876478760
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
- requirement: &70223355598600 !ruby/object:Gem::Requirement
29
+ requirement: &70272876477640 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0.7'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70223355598600
37
+ version_requirements: *70272876477640
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: faraday_middleware
40
- requirement: &70223355597960 !ruby/object:Gem::Requirement
40
+ requirement: &70272876499700 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0.8'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70223355597960
48
+ version_requirements: *70272876499700
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: hashie
51
- requirement: &70223355596920 !ruby/object:Gem::Requirement
51
+ requirement: &70272876496120 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '1.2'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *70223355596920
59
+ version_requirements: *70272876496120
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: multi_json
62
- requirement: &70223355596420 !ruby/object:Gem::Requirement
62
+ requirement: &70272876510140 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '1.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70223355596420
70
+ version_requirements: *70272876510140
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: json
73
- requirement: &70223355595900 !ruby/object:Gem::Requirement
73
+ requirement: &70272876504620 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *70223355595900
81
+ version_requirements: *70272876504620
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: maruku
84
- requirement: &70223355595220 !ruby/object:Gem::Requirement
84
+ requirement: &70272876516320 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70223355595220
92
+ version_requirements: *70272876516320
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rake
95
- requirement: &70223355594780 !ruby/object:Gem::Requirement
95
+ requirement: &70272876535680 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70223355594780
103
+ version_requirements: *70272876535680
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rspec
106
- requirement: &70223355594200 !ruby/object:Gem::Requirement
106
+ requirement: &70272876533280 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ~>
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '2.8'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *70223355594200
114
+ version_requirements: *70272876533280
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: simplecov
117
- requirement: &70223355593620 !ruby/object:Gem::Requirement
117
+ requirement: &70272876532000 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *70223355593620
125
+ version_requirements: *70272876532000
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: webmock
128
- requirement: &70223355593040 !ruby/object:Gem::Requirement
128
+ requirement: &70272876543700 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *70223355593040
136
+ version_requirements: *70272876543700
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: yard
139
- requirement: &70223355592460 !ruby/object:Gem::Requirement
139
+ requirement: &70272876541160 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *70223355592460
147
+ version_requirements: *70272876541160
148
148
  description: Simple wrapper for the GitHub API (v2 and v3)
149
149
  email:
150
150
  - wynn.netherland@gmail.com