github-release 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/github-release.rb +3 -11
  2. metadata +4 -4
@@ -17,6 +17,8 @@ class GithubRelease
17
17
  private
18
18
  def api
19
19
  @api ||= Octokit::Client.new(:access_token => token)
20
+ @api.auto_paginate = true
21
+ @api
20
22
  end
21
23
 
22
24
  def token
@@ -91,20 +93,10 @@ class GithubRelease
91
93
  end
92
94
 
93
95
  def github_releases
94
- @github_releases ||= api_repo_rels[:releases].get.data.map(&:tag_name)
96
+ @github_releases ||= api.releases(repo_name).map(&:tag_name)
95
97
  log_val(@github_releases)
96
98
  end
97
99
 
98
- def api_repo
99
- @api_repo ||= api.repo(repo_name)
100
- log_val(@api_repo)
101
- end
102
-
103
- def api_repo_rels
104
- @api_repo_rels ||= api_repo.rels
105
- log_val(@api_repo_rels)
106
- end
107
-
108
100
  def git_config(item, default = nil)
109
101
  @config_cache ||= {}
110
102
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-07 00:00:00.000000000 Z
12
+ date: 2014-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: -1355824237292744633
123
+ hash: 4079736310220655042
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: -1355824237292744633
132
+ hash: 4079736310220655042
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.23