octoauth 1.4.8 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4400cc366b87eea65ac13d764275b24d4eeefdd
4
- data.tar.gz: '0769b7fb6b953a60debecdbd6579cb809207dd16'
3
+ metadata.gz: 32ef9416626b4d9fe5ee872d5a3c423810c153b6
4
+ data.tar.gz: 0f3c636b8c2b07b419f9e4334b8bcf4d4ef94f64
5
5
  SHA512:
6
- metadata.gz: f695316c480073b97903d624a55ffe798ad8598552eb73aba0cc5bccdc1f8f71d3b1bf412080d610d8143f5624381fb06572f423eba94553f3332e6c32855a95
7
- data.tar.gz: d82ffa589559eff289b4bef805c4e9eec86689cd66ff2a21d06ebe85492331e712fe0ff4e2ad86c73572f8eeb50aed08f3fe213ae2dea8dd5fccc861d17474e6
6
+ metadata.gz: 9ccc6b6789afe6c3fff4c55b9100c4782867983ac4265e14c0c8009035251c759822514dde68e2736dc29b8bb44735f5c30740c352b8803874655bc52f3c7b9d
7
+ data.tar.gz: 0cba31e0acf83ff92cdabecc502204b0c65d46d75b85310851986cc44f78a08f1ed1426ca5d770ecfa53a05730592a1219b0d3ef5d0d00e65a109e1b3e756e82
data/.circle-ruby CHANGED
@@ -1,4 +1,3 @@
1
- 2.4.1
2
- 2.3.3
3
- 2.2.6
4
- 2.1.10
1
+ 2.4.3
2
+ 2.3.6
3
+ 2.2.9
data/.prospectus CHANGED
@@ -1,11 +1,25 @@
1
+ Prospectus.extra_dep('file', 'prospectus_circleci')
2
+
3
+ my_slug = 'akerl/octoauth'
4
+
1
5
  item do
2
- expected do
3
- static
4
- set 'green'
5
- end
6
+ noop
6
7
 
7
- actual do
8
- gemnasium
9
- slug 'akerl/octoauth'
8
+ deps do
9
+ item do
10
+ name 'gems'
11
+
12
+ expected do
13
+ static
14
+ set 'green'
15
+ end
16
+
17
+ actual do
18
+ gemnasium
19
+ slug my_slug
20
+ end
21
+ end
10
22
  end
23
+
24
+ extend ProspectusCircleci::Build.new(my_slug)
11
25
  end
data/.rubocop.yml CHANGED
@@ -1,5 +1,2 @@
1
- Encoding:
2
- Enabled: false
3
- Metrics/BlockLength:
4
- Exclude:
5
- - spec/**/*
1
+ inherit_gem:
2
+ goodcop: .rubocop.yml
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.5.0 / 2017-12-20
2
+
3
+ * [ENHANCEMENT] Update octokit to ~> 4.8.0
4
+
1
5
  # 1.4.7 / 2016-11-08
2
6
 
3
7
  * [ENHANCEMENT] Update octokit to ~> 4.6.0
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
data/Rakefile CHANGED
@@ -7,8 +7,7 @@ RSpec::Core::RakeTask.new(:spec)
7
7
 
8
8
  desc 'Run RuboCop on the gem'
9
9
  RuboCop::RakeTask.new(:rubocop) do |task|
10
- task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
11
10
  task.fail_on_error = true
12
11
  end
13
12
 
14
- task default: [:spec, :rubocop, :build, :install]
13
+ task default: %i[spec rubocop build install]
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'yaml'
3
4
 
4
5
  ##
data/octoauth.gemspec CHANGED
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'octoauth'
3
- s.version = '1.4.8'
4
- s.date = Time.now.strftime("%Y-%m-%d")
3
+ s.version = '1.5.0'
4
+ s.date = Time.now.strftime('%Y-%m-%d')
5
5
 
6
6
  s.summary = 'Auth token helper for GitHub API'
7
- s.description = "Lightweight wrapper to sanely handle OAuth tokens with Octokit"
7
+ s.description = 'Lightweight wrapper to sanely handle OAuth tokens with Octokit' # rubocop:disable Metrics/LineLength
8
8
  s.authors = ['Les Aker']
9
9
  s.email = 'me@lesaker.org'
10
10
  s.homepage = 'https://github.com/akerl/octoauth'
@@ -13,14 +13,15 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split
14
14
  s.test_files = `git ls-files spec/*`.split
15
15
 
16
- s.add_dependency 'octokit', '~> 4.7.0'
16
+ s.add_dependency 'octokit', '~> 4.8.0'
17
17
  s.add_dependency 'userinput', '~> 1.0.0'
18
18
 
19
- s.add_development_dependency 'rubocop', '~> 0.48.0'
20
- s.add_development_dependency 'rake', '~> 12.0.0'
21
19
  s.add_development_dependency 'codecov', '~> 0.1.1'
22
- s.add_development_dependency 'rspec', '~> 3.5.0'
23
20
  s.add_development_dependency 'fuubar', '~> 2.2.0'
24
- s.add_development_dependency 'webmock', '~> 2.3.0'
25
- s.add_development_dependency 'vcr', '~> 3.0.3'
21
+ s.add_development_dependency 'goodcop', '~> 0.1.1'
22
+ s.add_development_dependency 'rake', '~> 12.3.0'
23
+ s.add_development_dependency 'rspec', '~> 3.7.0'
24
+ s.add_development_dependency 'rubocop', '~> 0.52.0'
25
+ s.add_development_dependency 'vcr', '~> 4.0.0'
26
+ s.add_development_dependency 'webmock', '~> 3.1.0'
26
27
  end
@@ -75,7 +75,7 @@ describe Octoauth do
75
75
  note: 'requesting_scopes',
76
76
  login: LOGIN,
77
77
  password: PASSWORD,
78
- scopes: %w(gist delete_repo)
78
+ scopes: %w[gist delete_repo]
79
79
  )
80
80
  expect(auth.token).to eql 'token_with_scopes'
81
81
  end
data/spec/spec_helper.rb CHANGED
@@ -17,10 +17,10 @@ VCR.configure do |c|
17
17
  c.filter_sensitive_data('<USER>') { ENV['OCTOAUTH_LOGIN'] || 'user' }
18
18
  c.filter_sensitive_data('<PASSWORD>') { ENV['OCTOAUTH_PASSWORD'] || 'pw' }
19
19
  c.before_record do |i|
20
- %w(Authorization X-GitHub-OTP).each do |header|
20
+ %w[Authorization X-GitHub-OTP].each do |header|
21
21
  i.request.headers.delete header
22
22
  end
23
- %w(Etag X-Github-Request-Id X-Served-By).each do |header|
23
+ %w[Etag X-Github-Request-Id X-Served-By].each do |header|
24
24
  i.response.headers.delete header
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.7.0
19
+ version: 4.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.7.0
26
+ version: 4.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: userinput
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,35 +39,35 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: codecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.48.0
47
+ version: 0.1.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.48.0
54
+ version: 0.1.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: fuubar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 12.0.0
61
+ version: 2.2.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 12.0.0
68
+ version: 2.2.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: codecov
70
+ name: goodcop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
@@ -81,61 +81,75 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.1.1
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.5.0
89
+ version: 12.3.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.5.0
96
+ version: 12.3.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: fuubar
98
+ name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.2.0
103
+ version: 3.7.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.2.0
110
+ version: 3.7.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: webmock
112
+ name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.3.0
117
+ version: 0.52.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.3.0
124
+ version: 0.52.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.3
131
+ version: 4.0.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 4.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.1.0
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 3.0.3
152
+ version: 3.1.0
139
153
  description: Lightweight wrapper to sanely handle OAuth tokens with Octokit
140
154
  email: me@lesaker.org
141
155
  executables: []
@@ -189,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
203
  version: '0'
190
204
  requirements: []
191
205
  rubyforge_project:
192
- rubygems_version: 2.6.8
206
+ rubygems_version: 2.5.2
193
207
  signing_key:
194
208
  specification_version: 4
195
209
  summary: Auth token helper for GitHub API