octoauth 1.9.0 → 2.0.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
  SHA256:
3
- metadata.gz: 0a8089ceca805bb42c2890b1f1734ff64a9907a2de20a0d99998622db2627ffe
4
- data.tar.gz: e9dba99a1f8a2ebbac46e4ad75c696c45080025a1170f3b2178738e4ae419bdb
3
+ metadata.gz: ca7716280373d75cd5e077bcf07a1ce795c6e1835e64ac20a750edd9770b8d7f
4
+ data.tar.gz: e26aef04279e7e5b6b249733745c1c2a9f7db81757b60971d92a390a55ee88a4
5
5
  SHA512:
6
- metadata.gz: 47bca4b50a2a3f6953b9a42c6d4109bc7c7ff85e1d7738a71514a15c62f8cdb8041d91309c77edb8dea289e1c569700d520d396bf9de88452fead635a849a939
7
- data.tar.gz: 608a0a63f897e36ca4b8fdd1ca30ba4a6e7aabd44a207ea3f30db970b195a31d68a168b0c7ae42ee5db34707a6cc82674ebe0f99ad6cd1dc8a4486c34206a5e2
6
+ metadata.gz: 22dda45d3b9be791948e4be90fbc29bc9917e192a6c1ebcfea0a25eba26b91da31257d443598de87d95b2ad39183492271eb9c39dca085cccfa00a7f43da870c
7
+ data.tar.gz: d6275b385f3e31cf63c9649dd162630f8e6cfb89e6e9520b00fb57c4009ebcae117ceae130d8ec852f358c0683f2f904d1e9aaef37ce39179264c58f9a70c133
@@ -0,0 +1,46 @@
1
+ name: Build
2
+ on:
3
+ pull_request:
4
+ push:
5
+ jobs:
6
+ build:
7
+ name: Build
8
+ runs-on: ubuntu-22.04
9
+ permissions:
10
+ contents: write
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v3
14
+ with:
15
+ submodules: recursive
16
+ - uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '3.1'
19
+ bundler-cache: true
20
+ - name: Build
21
+ run: bundle exec rake
22
+ - name: Release
23
+ if: github.ref_type == 'tag'
24
+ run: bundle exec rake release
25
+ env:
26
+ GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
27
+ - name: Post to a Slack channel
28
+ if: ${{ failure() }}
29
+ uses: slackapi/slack-github-action@v1.23.0
30
+ env:
31
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
32
+ SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
33
+ with:
34
+ payload: |
35
+ {
36
+ "text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
37
+ "blocks": [
38
+ {
39
+ "type": "section",
40
+ "text": {
41
+ "type": "mrkdwn",
42
+ "text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
43
+ }
44
+ }
45
+ ]
46
+ }
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.0 / 2022-10-21
2
+
3
+ * [ENHANCEMENT] Update octokit to ~> 5.6.1. Note that GitHub has deprecated the password-based API for getting access tokens, so Octokit will no longer function.
4
+
1
5
  # 1.9.0 / 2022-03-23
2
6
 
3
7
  * [ENHANCEMENT] Update octokit to ~> 4.22.0
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Les Aker
3
+ Copyright (c) 2022 Les Aker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,9 +2,7 @@ octoauth
2
2
  =========
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/octoauth.svg)](https://rubygems.org/gems/octoauth)
5
- [![Build Status](https://img.shields.io/travis/com/akerl/octoauth.svg)](https://travis-ci.com/akerl/octoauth)
6
- [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/octoauth.svg)](https://codecov.io/github/akerl/octoauth)
7
- [![Code Quality](https://img.shields.io/codacy/648fd8ebe3374dd4acc5449b8922f2e0.svg)](https://www.codacy.com/app/akerl/octoauth)
5
+ [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/akerl/octoauth/Build)](https://github.com/akerl/octoauth/actions)
8
6
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
9
7
 
10
8
  Authentication wrapper for GitHub's API
data/octoauth.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'octoauth'
3
- s.version = '1.9.0'
3
+ s.version = '2.0.0'
4
4
 
5
- s.required_ruby_version = '>= 2.5.0'
5
+ s.required_ruby_version = '>= 2.6'
6
6
 
7
7
  s.summary = 'Auth token helper for GitHub API'
8
8
  s.description = 'Lightweight wrapper to sanely handle OAuth tokens with Octokit'
@@ -12,12 +12,11 @@ Gem::Specification.new do |s|
12
12
  s.license = 'MIT'
13
13
 
14
14
  s.files = `git ls-files`.split
15
- s.test_files = `git ls-files spec/*`.split
16
15
 
17
- s.add_dependency 'octokit', '~> 4.22.0'
16
+ s.add_dependency 'octokit', '~> 5.6.1'
18
17
  s.add_dependency 'userinput', '~> 1.0.2'
19
18
 
20
- s.add_development_dependency 'goodcop', '~> 0.9.5'
19
+ s.add_development_dependency 'goodcop', '~> 0.9.7'
21
20
  s.add_development_dependency 'vcr', '~> 5.0.0'
22
21
  s.add_development_dependency 'webmock', '~> 3.7.6'
23
22
 
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,3 @@
1
- if ENV['CI'] == 'true'
2
- require 'simplecov'
3
- require 'codecov'
4
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
5
- SimpleCov.start do
6
- add_filter '/spec/'
7
- end
8
- end
9
-
10
1
  require 'rspec'
11
2
  require 'octoauth'
12
3
 
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.9.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-10-22 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.22.0
19
+ version: 5.6.1
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.22.0
26
+ version: 5.6.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: userinput
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.9.5
47
+ version: 0.9.7
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.9.5
54
+ version: 0.9.7
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: vcr
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +86,7 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
+ - ".github/workflows/build.yml"
89
90
  - ".gitignore"
90
91
  - ".rspec"
91
92
  - ".rubocop.yml"
@@ -115,7 +116,7 @@ licenses:
115
116
  - MIT
116
117
  metadata:
117
118
  rubygems_mfa_required: 'true'
118
- post_install_message:
119
+ post_install_message:
119
120
  rdoc_options: []
120
121
  require_paths:
121
122
  - lib
@@ -123,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
124
  requirements:
124
125
  - - ">="
125
126
  - !ruby/object:Gem::Version
126
- version: 2.5.0
127
+ version: '2.6'
127
128
  required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - ">="
@@ -131,19 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  version: '0'
132
133
  requirements: []
133
134
  rubygems_version: 3.3.7
134
- signing_key:
135
+ signing_key:
135
136
  specification_version: 4
136
137
  summary: Auth token helper for GitHub API
137
- test_files:
138
- - spec/examples/existing_token.yml
139
- - spec/fixtures/cassettes/alternate_endpoints.yml
140
- - spec/fixtures/cassettes/autosaving_config_file.yml
141
- - spec/fixtures/cassettes/create_token.yml
142
- - spec/fixtures/cassettes/handle_two_factor.yml
143
- - spec/fixtures/cassettes/recreate_token.yml
144
- - spec/fixtures/cassettes/requesting_scopes.yml
145
- - spec/fixtures/cassettes/write_to_first_file.yml
146
- - spec/octoauth/auth_spec.rb
147
- - spec/octoauth/configfile_spec.rb
148
- - spec/octoauth_spec.rb
149
- - spec/spec_helper.rb
138
+ test_files: []