amazon_auth 0.7.0 → 0.8.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/amazon_auth.gemspec +1 -1
- data/lib/amazon_auth/converter.rb +2 -2
- data/lib/amazon_auth/version.rb +1 -1
- data/lib/amazon_auth.rb +1 -0
- metadata +2 -5
- data/.circleci/config.yml +0 -21
- data/.gitignore +0 -14
- data/.rspec +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be42ef6936b600922637d6ff82740c6cb355b8574336ba18142729fbcd5ab394
|
|
4
|
+
data.tar.gz: ec6d91bf0e702c892ae26e2d4edd5db2095bc6b322c78bc4b2dc3dd54f4a9beb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac1946c5930553fdee2febf9abd735eba70c033247edb679f2a06a4c16d8d309c7e97d03a0fbef6c69df7ccb05e9c06328e1985e7180e8636006a2374ef75a24
|
|
7
|
+
data.tar.gz: ceb6c2bbb0d5f8cf37129ab9d906eadecfaf6b3db0efa5d15476901f2487d55ef25b195ddff73581590877e80030e328468056744ae310252b2256512a3362b7
|
data/amazon_auth.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.homepage = "https://github.com/kyamaguchi/amazon_auth"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f.start_with?('.') }
|
|
17
17
|
spec.bindir = "exe"
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
@@ -7,7 +7,7 @@ module AmazonAuth
|
|
|
7
7
|
|
|
8
8
|
def encode(str)
|
|
9
9
|
raise "Empty string" if str.to_s.size == 0
|
|
10
|
-
Base64.strict_encode64("#{salt}#{str}")
|
|
10
|
+
::Base64.strict_encode64("#{salt}#{str}")
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def salt
|
|
@@ -16,7 +16,7 @@ module AmazonAuth
|
|
|
16
16
|
|
|
17
17
|
def self.decode(code)
|
|
18
18
|
raise "Empty string" if code.to_s.size == 0
|
|
19
|
-
Base64.strict_decode64(code).gsub(/\A#{salt}/, '')
|
|
19
|
+
::Base64.strict_decode64(code).gsub(/\A#{salt}/, '')
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def self.salt
|
data/lib/amazon_auth/version.rb
CHANGED
data/lib/amazon_auth.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amazon_auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kazuho Yamaguchi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capybara
|
|
@@ -158,9 +158,6 @@ executables:
|
|
|
158
158
|
extensions: []
|
|
159
159
|
extra_rdoc_files: []
|
|
160
160
|
files:
|
|
161
|
-
- ".circleci/config.yml"
|
|
162
|
-
- ".gitignore"
|
|
163
|
-
- ".rspec"
|
|
164
161
|
- Gemfile
|
|
165
162
|
- LICENSE.txt
|
|
166
163
|
- README.md
|
data/.circleci/config.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
version: 2.1
|
|
2
|
-
|
|
3
|
-
jobs:
|
|
4
|
-
test:
|
|
5
|
-
parameters:
|
|
6
|
-
ruby-version:
|
|
7
|
-
type: string
|
|
8
|
-
docker:
|
|
9
|
-
- image: cimg/ruby:<< parameters.ruby-version >>-browsers
|
|
10
|
-
steps:
|
|
11
|
-
- checkout
|
|
12
|
-
- run: bundle install
|
|
13
|
-
- run: bundle exec rspec
|
|
14
|
-
|
|
15
|
-
workflows:
|
|
16
|
-
all-tests:
|
|
17
|
-
jobs:
|
|
18
|
-
- test:
|
|
19
|
-
matrix:
|
|
20
|
-
parameters:
|
|
21
|
-
ruby-version: ["2.7.5", "3.0.3"]
|
data/.gitignore
DELETED
data/.rspec
DELETED