glogin 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/rake.yml +24 -0
- data/.rubocop.yml +4 -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 +12 -17
- 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/renovate.json +6 -0
- 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 -29
- 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: 4cc141a23e15b0f3ab7b965b281e0af9f0b62d35d4d6e4bfe7f08126f5fd15a8
|
|
4
|
+
data.tar.gz: f1c8f19028513466cc34370655d07d2a9eb0036ee12d36a191c0f46c5e8b89d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0639b3241684fb1b20c81e0008f1e4366c579acedb4fa5fede72c0920b9e9c6b9b3f8a7a6cae4a63eb49f394ad7592e86f7a11b7dca1765795cdd4e5c9908266'
|
|
7
|
+
data.tar.gz: 584d6a182b189286a3a2feb9559e9decdf5a0821aa3a62241c4b71373201b348c12969f2afd72352f5e81c27ce629929dbc17f1aa1832dc0a095973aa5d9144f
|
|
@@ -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@v3
|
|
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@v3
|
|
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@v3
|
|
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
|
[](http://www.rultor.com/p/yegor256/glogin)
|
|
5
5
|
[](https://www.jetbrains.com/ruby/)
|
|
6
6
|
|
|
7
|
-
[](https://github.com/yegor256/glogin/actions/workflows/rake.yml)
|
|
8
8
|
[](http://www.0pdd.com/p?name=yegor256/glogin)
|
|
9
9
|
[](http://badge.fury.io/rb/glogin)
|
|
10
10
|
[](https://codeclimate.com/github/yegor256/glogin/maintainability)
|
|
11
11
|
[](https://codecov.io/github/yegor256/glogin?branch=master)
|
|
12
12
|
[](http://rubydoc.info/github/yegor256/glogin/master/frames)
|
|
13
13
|
|
|
14
|
+

|
|
14
15
|
[](https://hitsofcode.com/view/github/yegor256/glogin)
|
|
15
16
|
[](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,12 +27,8 @@ $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
|
-
|
|
33
|
-
s.required_rubygems_version = Gem::Requirement.new('>= 0')
|
|
34
|
-
end
|
|
35
|
-
s.rubygems_version = '2.2'
|
|
36
|
-
s.required_ruby_version = '~>2.3'
|
|
30
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
31
|
+
s.required_ruby_version = '>=2.3'
|
|
37
32
|
s.name = 'glogin'
|
|
38
33
|
s.version = GLogin::VERSION
|
|
39
34
|
s.license = 'MIT'
|
|
@@ -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.9.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/renovate.json
ADDED
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.9.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-12-20 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,13 @@ extra_rdoc_files:
|
|
|
146
146
|
files:
|
|
147
147
|
- ".0pdd.yml"
|
|
148
148
|
- ".gitattributes"
|
|
149
|
+
- ".github/workflows/codecov.yml"
|
|
150
|
+
- ".github/workflows/rake.yml"
|
|
149
151
|
- ".gitignore"
|
|
150
152
|
- ".pdd"
|
|
151
153
|
- ".rubocop.yml"
|
|
152
154
|
- ".rultor.yml"
|
|
153
155
|
- ".simplecov"
|
|
154
|
-
- ".travis.yml"
|
|
155
156
|
- Gemfile
|
|
156
157
|
- LICENSE.txt
|
|
157
158
|
- README.md
|
|
@@ -163,6 +164,7 @@ files:
|
|
|
163
164
|
- lib/glogin/cookie.rb
|
|
164
165
|
- lib/glogin/version.rb
|
|
165
166
|
- logo.svg
|
|
167
|
+
- renovate.json
|
|
166
168
|
- test/glogin/test_auth.rb
|
|
167
169
|
- test/glogin/test_codec.rb
|
|
168
170
|
- test/glogin/test_cookie.rb
|
|
@@ -171,7 +173,8 @@ files:
|
|
|
171
173
|
homepage: http://github.com/yegor256/glogin
|
|
172
174
|
licenses:
|
|
173
175
|
- MIT
|
|
174
|
-
metadata:
|
|
176
|
+
metadata:
|
|
177
|
+
rubygems_mfa_required: 'true'
|
|
175
178
|
post_install_message:
|
|
176
179
|
rdoc_options:
|
|
177
180
|
- "--charset=UTF-8"
|
|
@@ -179,7 +182,7 @@ require_paths:
|
|
|
179
182
|
- lib
|
|
180
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
184
|
requirements:
|
|
182
|
-
- - "
|
|
185
|
+
- - ">="
|
|
183
186
|
- !ruby/object:Gem::Version
|
|
184
187
|
version: '2.3'
|
|
185
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
@@ -188,13 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
191
|
- !ruby/object:Gem::Version
|
|
189
192
|
version: '0'
|
|
190
193
|
requirements: []
|
|
191
|
-
rubygems_version: 3.
|
|
194
|
+
rubygems_version: 3.1.2
|
|
192
195
|
signing_key:
|
|
193
|
-
specification_version:
|
|
196
|
+
specification_version: 4
|
|
194
197
|
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
|
|
198
|
+
test_files: []
|