glogin 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +12 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- data/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/rake.yml +24 -0
- data/.rubocop.yml +2 -0
- data/.rultor.yml +4 -1
- data/.simplecov +8 -6
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +4 -1
- data/Rakefile +1 -1
- data/glogin.gemspec +11 -16
- data/lib/glogin/auth.rb +3 -6
- data/lib/glogin/codec.rb +3 -3
- data/lib/glogin/cookie.rb +2 -2
- data/lib/glogin/version.rb +3 -3
- data/lib/glogin.rb +2 -2
- data/test/glogin/test_auth.rb +1 -1
- data/test/glogin/test_codec.rb +1 -1
- data/test/glogin/test_cookie.rb +1 -1
- data/test/test__helper.rb +2 -2
- data/test/test_glogin.rb +2 -2
- metadata +27 -28
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d167febc4cddb92a21a6e768ba084262e600379dafd23440768ce622b2abe7
|
4
|
+
data.tar.gz: 7afd525bbc7ec53f454a279d2840575456af556f46b28cff73ca84f727d6941d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6be3c9cdd283c53b19bc6ab5add3d6ba4687a55a5d49521cf1997e79be4c6974ab0e72d49baf098f7978f73c6aec8135a66f224531c0f308a2a2915f393c2e
|
7
|
+
data.tar.gz: ddda55fec3c9483989f186fbe43f3ca006fe041677cf22a5d5c84604bd4e157cb5c6e14e67c0abae14729dedef405bb02c57424d00e3df1a5527feaaa5466124
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Make sure the title of the issue explains the problem you are having. Also, the description of the issue must clearly explain what is broken, not what you want us to implement. Go through this checklist and make sure you answer "YES" to all points:
|
2
|
+
|
3
|
+
- You have all pre-requisites listed in README.md installed
|
4
|
+
- You are sure that you are not reporting a duplicate (search all issues)
|
5
|
+
- You say "is broken" or "doesn't work" in the title
|
6
|
+
- You tell us what you are trying to do
|
7
|
+
- You explain the results you are getting
|
8
|
+
- You suggest an alternative result you would like to see
|
9
|
+
|
10
|
+
This article will help you understand what we are looking for: http://www.yegor256.com/2014/11/24/principles-of-bug-tracking.html
|
11
|
+
|
12
|
+
Thank you for your contribution!
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Many thanks for your contribution, we truly appreciate it. We will appreciate it even more, if you make sure that you can say "YES" to each point in this short checklist:
|
2
|
+
|
3
|
+
- You made a small amount of changes (less than 100 lines, less than 10 files)
|
4
|
+
- You made changes related to only one bug (create separate PRs for separate problems)
|
5
|
+
- You are ready to defend your changes (there will be a code review)
|
6
|
+
- You don't touch what you don't understand
|
7
|
+
- You ran the build locally and it passed
|
8
|
+
|
9
|
+
This article will help you understand what we are looking for: http://www.yegor256.com/2015/02/09/serious-code-reviewer.html
|
10
|
+
|
11
|
+
Thank you for your contribution!
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: codecov
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
jobs:
|
8
|
+
codecov:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- uses: actions/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 2.7
|
15
|
+
- run: bundle update
|
16
|
+
- run: bundle exec rake
|
17
|
+
- uses: codecov/codecov-action@v1
|
18
|
+
with:
|
19
|
+
file: coverage/.resultset.json
|
20
|
+
fail_ci_if_error: true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
name: rake
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
name: test
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
os: [ubuntu-latest, macos-latest]
|
16
|
+
ruby: [2.7]
|
17
|
+
runs-on: ${{ matrix.os }}
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- uses: actions/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
23
|
+
- run: bundle update
|
24
|
+
- run: bundle exec rake
|
data/.rubocop.yml
CHANGED
data/.rultor.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
docker:
|
2
|
+
image: yegor256/rultor-image:1.9.0
|
1
3
|
assets:
|
2
4
|
rubygems.yml: yegor256/home#assets/rubygems.yml
|
3
5
|
install: |
|
@@ -5,9 +7,10 @@ install: |
|
|
5
7
|
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
6
8
|
release:
|
7
9
|
script: |-
|
10
|
+
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
|
8
11
|
bundle exec rake
|
9
12
|
rm -rf *.gem
|
10
|
-
sed -i "s/
|
13
|
+
sed -i "s/0\.0\.0/${tag}/g" lib/glogin/version.rb
|
11
14
|
git add lib/glogin/version.rb
|
12
15
|
git commit -m "version set to ${tag}"
|
13
16
|
gem build glogin.gemspec
|
data/.simplecov
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#
|
2
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
3
5
|
#
|
4
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -19,21 +21,21 @@
|
|
19
21
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
22
|
# SOFTWARE.
|
21
23
|
|
22
|
-
if Gem.win_platform?
|
24
|
+
if Gem.win_platform?
|
23
25
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
24
26
|
SimpleCov::Formatter::HTMLFormatter
|
25
27
|
]
|
26
28
|
SimpleCov.start do
|
27
|
-
add_filter
|
28
|
-
add_filter
|
29
|
+
add_filter '/test/'
|
30
|
+
add_filter '/features/'
|
29
31
|
end
|
30
32
|
else
|
31
33
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
|
32
34
|
[SimpleCov::Formatter::HTMLFormatter]
|
33
35
|
)
|
34
36
|
SimpleCov.start do
|
35
|
-
add_filter
|
36
|
-
add_filter
|
37
|
+
add_filter '/test/'
|
38
|
+
add_filter '/features/'
|
37
39
|
minimum_coverage 20
|
38
40
|
end
|
39
41
|
end
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -4,13 +4,14 @@
|
|
4
4
|
[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/glogin)](http://www.rultor.com/p/yegor256/glogin)
|
5
5
|
[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
|
6
6
|
|
7
|
-
[![
|
7
|
+
[![rake](https://github.com/yegor256/glogin/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/glogin/actions/workflows/rake.yml)
|
8
8
|
[![PDD status](http://www.0pdd.com/svg?name=yegor256/glogin)](http://www.0pdd.com/p?name=yegor256/glogin)
|
9
9
|
[![Gem Version](https://badge.fury.io/rb/glogin.svg)](http://badge.fury.io/rb/glogin)
|
10
10
|
[![Maintainability](https://api.codeclimate.com/v1/badges/155f86b639d155259219/maintainability)](https://codeclimate.com/github/yegor256/glogin/maintainability)
|
11
11
|
[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/glogin.svg)](https://codecov.io/github/yegor256/glogin?branch=master)
|
12
12
|
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/yegor256/glogin/master/frames)
|
13
13
|
|
14
|
+
![Lines of code](https://img.shields.io/tokei/lines/github/yegor256/glogin)
|
14
15
|
[![Hits-of-Code](https://hitsofcode.com/github/yegor256/glogin)](https://hitsofcode.com/view/github/yegor256/glogin)
|
15
16
|
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/glogin/blob/master/LICENSE.txt)
|
16
17
|
|
@@ -68,6 +69,8 @@ a local variable `@user` will be set to something like this:
|
|
68
69
|
{ login: 'yegor256', avatar: 'http://...' }
|
69
70
|
```
|
70
71
|
|
72
|
+
If the `secret` is an empty string, the encryption will be disabled.
|
73
|
+
|
71
74
|
Next, we need a URL for GitHub OAuth callback:
|
72
75
|
|
73
76
|
```ruby
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/glogin.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
4
|
-
# Copyright (c) 2017-2020 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,11 +27,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
28
27
|
require_relative 'lib/glogin/version'
|
29
28
|
|
30
29
|
Gem::Specification.new do |s|
|
31
|
-
s.
|
32
|
-
if s.respond_to? :required_rubygems_version=
|
33
|
-
s.required_rubygems_version = Gem::Requirement.new('>= 0')
|
34
|
-
end
|
35
|
-
s.rubygems_version = '2.2'
|
30
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
36
31
|
s.required_ruby_version = '~>2.3'
|
37
32
|
s.name = 'glogin'
|
38
33
|
s.version = GLogin::VERSION
|
@@ -44,16 +39,16 @@ Gem::Specification.new do |s|
|
|
44
39
|
s.homepage = 'http://github.com/yegor256/glogin'
|
45
40
|
s.files = `git ls-files`.split($RS)
|
46
41
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
47
|
-
s.test_files = s.files.grep(%r{^(test)/})
|
48
42
|
s.rdoc_options = ['--charset=UTF-8']
|
49
43
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
50
44
|
s.add_runtime_dependency 'base58', '0.2.3'
|
51
|
-
s.add_development_dependency 'codecov', '0.
|
52
|
-
s.add_development_dependency 'minitest', '5.
|
53
|
-
s.add_development_dependency 'rake', '
|
54
|
-
s.add_development_dependency 'rdoc', '4.
|
55
|
-
s.add_development_dependency 'rspec-rails', '
|
56
|
-
s.add_development_dependency 'rubocop', '
|
57
|
-
s.add_development_dependency 'rubocop-rspec', '
|
58
|
-
s.add_development_dependency 'webmock', '3.
|
45
|
+
s.add_development_dependency 'codecov', '0.6.0'
|
46
|
+
s.add_development_dependency 'minitest', '5.16.1'
|
47
|
+
s.add_development_dependency 'rake', '13.0.6'
|
48
|
+
s.add_development_dependency 'rdoc', '6.4.0'
|
49
|
+
s.add_development_dependency 'rspec-rails', '5.1.2'
|
50
|
+
s.add_development_dependency 'rubocop', '1.31.1'
|
51
|
+
s.add_development_dependency 'rubocop-rspec', '2.11.1'
|
52
|
+
s.add_development_dependency 'webmock', '3.14.0'
|
53
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
59
54
|
end
|
data/lib/glogin/auth.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,7 +28,7 @@ require 'cgi'
|
|
28
28
|
|
29
29
|
# GLogin main module.
|
30
30
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
31
|
-
# Copyright:: Copyright (c) 2017-
|
31
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
32
32
|
# License:: MIT
|
33
33
|
module GLogin
|
34
34
|
#
|
@@ -45,10 +45,7 @@ module GLogin
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def login_uri
|
48
|
-
|
49
|
-
CGI.escape(@id) +
|
50
|
-
'&redirect_uri=' +
|
51
|
-
CGI.escape(@redirect)
|
48
|
+
"https://github.com/login/oauth/authorize?client_id=#{CGI.escape(@id)}&redirect_uri=#{CGI.escape(@redirect)}"
|
52
49
|
end
|
53
50
|
|
54
51
|
def user(code)
|
data/lib/glogin/codec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,7 +28,7 @@ require 'base58'
|
|
28
28
|
|
29
29
|
# Codec.
|
30
30
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
31
|
-
# Copyright:: Copyright (c) 2017-
|
31
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
32
32
|
# License:: MIT
|
33
33
|
class GLogin::Codec
|
34
34
|
# When can't decode.
|
@@ -71,7 +71,7 @@ class GLogin::Codec
|
|
71
71
|
cpr.encrypt
|
72
72
|
cpr.key = digest
|
73
73
|
salt = SecureRandom.base64(Random.rand(8..32))
|
74
|
-
encrypted = cpr.update(salt
|
74
|
+
encrypted = cpr.update("#{salt} #{text}")
|
75
75
|
encrypted << cpr.final
|
76
76
|
Base58.binary_to_base58(encrypted)
|
77
77
|
end
|
data/lib/glogin/cookie.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,7 +28,7 @@ require_relative 'codec'
|
|
28
28
|
|
29
29
|
# GLogin main module.
|
30
30
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
31
|
-
# Copyright:: Copyright (c) 2017-
|
31
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
32
32
|
# License:: MIT
|
33
33
|
module GLogin
|
34
34
|
# Split symbol inside the cookie text
|
data/lib/glogin/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,8 +23,8 @@
|
|
23
23
|
|
24
24
|
# GLogin main module.
|
25
25
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
26
|
-
# Copyright:: Copyright (c) 2017-
|
26
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
module GLogin
|
29
|
-
VERSION = '0.
|
29
|
+
VERSION = '0.8.0'
|
30
30
|
end
|
data/lib/glogin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,7 +28,7 @@ require_relative 'glogin/cookie'
|
|
28
28
|
|
29
29
|
# GLogin main module.
|
30
30
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
31
|
-
# Copyright:: Copyright (c) 2017-
|
31
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
32
32
|
# License:: MIT
|
33
33
|
module GLogin
|
34
34
|
end
|
data/test/glogin/test_auth.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/test/glogin/test_codec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/test/glogin/test_cookie.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/test/test__helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -21,7 +21,7 @@
|
|
21
21
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
22
|
# SOFTWARE.
|
23
23
|
|
24
|
-
|
24
|
+
$stdout.sync = true
|
25
25
|
|
26
26
|
require 'simplecov'
|
27
27
|
SimpleCov.start
|
data/test/test_glogin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2017-
|
4
|
+
# Copyright (c) 2017-2022 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -26,7 +26,7 @@ require_relative '../lib/glogin'
|
|
26
26
|
|
27
27
|
# GLogin main module test.
|
28
28
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
29
|
-
# Copyright:: Copyright (c) 2017-
|
29
|
+
# Copyright:: Copyright (c) 2017-2022 Yegor Bugayenko
|
30
30
|
# License:: MIT
|
31
31
|
class TestGLogin < Minitest::Test
|
32
32
|
def test_basic
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glogin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base58
|
@@ -30,112 +30,112 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.6.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.6.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 5.
|
47
|
+
version: 5.16.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: 5.
|
54
|
+
version: 5.16.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 13.0.6
|
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:
|
68
|
+
version: 13.0.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.
|
75
|
+
version: 6.4.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.
|
82
|
+
version: 6.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 5.1.2
|
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:
|
96
|
+
version: 5.1.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 1.31.1
|
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:
|
110
|
+
version: 1.31.1
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.11.1
|
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:
|
124
|
+
version: 2.11.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: webmock
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 3.
|
131
|
+
version: 3.14.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.
|
138
|
+
version: 3.14.0
|
139
139
|
description: Enables login/logout functionality for a Ruby web app
|
140
140
|
email: yegor256@gmail.com
|
141
141
|
executables: []
|
@@ -146,12 +146,15 @@ extra_rdoc_files:
|
|
146
146
|
files:
|
147
147
|
- ".0pdd.yml"
|
148
148
|
- ".gitattributes"
|
149
|
+
- ".github/ISSUE_TEMPLATE.md"
|
150
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
151
|
+
- ".github/workflows/codecov.yml"
|
152
|
+
- ".github/workflows/rake.yml"
|
149
153
|
- ".gitignore"
|
150
154
|
- ".pdd"
|
151
155
|
- ".rubocop.yml"
|
152
156
|
- ".rultor.yml"
|
153
157
|
- ".simplecov"
|
154
|
-
- ".travis.yml"
|
155
158
|
- Gemfile
|
156
159
|
- LICENSE.txt
|
157
160
|
- README.md
|
@@ -171,7 +174,8 @@ files:
|
|
171
174
|
homepage: http://github.com/yegor256/glogin
|
172
175
|
licenses:
|
173
176
|
- MIT
|
174
|
-
metadata:
|
177
|
+
metadata:
|
178
|
+
rubygems_mfa_required: 'true'
|
175
179
|
post_install_message:
|
176
180
|
rdoc_options:
|
177
181
|
- "--charset=UTF-8"
|
@@ -188,13 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
192
|
- !ruby/object:Gem::Version
|
189
193
|
version: '0'
|
190
194
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
195
|
+
rubygems_version: 3.1.2
|
192
196
|
signing_key:
|
193
|
-
specification_version:
|
197
|
+
specification_version: 4
|
194
198
|
summary: Login/logout via GitHub OAuth for your web app
|
195
|
-
test_files:
|
196
|
-
- test/glogin/test_auth.rb
|
197
|
-
- test/glogin/test_codec.rb
|
198
|
-
- test/glogin/test_cookie.rb
|
199
|
-
- test/test__helper.rb
|
200
|
-
- test/test_glogin.rb
|
199
|
+
test_files: []
|