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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2616112a7c77ce7a370145836360fc55df643716450e6222d95affa6c1b942ec
4
- data.tar.gz: e96f0dad4d371aeaf0c6bd7dc325cd252fea806e992c322aceef88e01e5c7cc4
3
+ metadata.gz: be42ef6936b600922637d6ff82740c6cb355b8574336ba18142729fbcd5ab394
4
+ data.tar.gz: ec6d91bf0e702c892ae26e2d4edd5db2095bc6b322c78bc4b2dc3dd54f4a9beb
5
5
  SHA512:
6
- metadata.gz: a18f9d6ce597e2c12a96bdf6748bc8eda365533f8d5daebd968282a58dfb330cf12adfc7c057b529b1b5e20a05a9c61e9a41ba5cf8c0922b27db921f656f0f4a
7
- data.tar.gz: 99b3832589d28b9e4eebf5bf4fc3fe590ecc5b57ec6031a5b5e4854d472add8d700b1abf118d10d9dfb441454d1ce2152c6d95220726b474e446f200b7d8b1db
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
@@ -1,3 +1,3 @@
1
1
  module AmazonAuth
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
data/lib/amazon_auth.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'dotenv'
2
2
  Dotenv.load
3
+ require 'base64'
3
4
  require "active_support/all"
4
5
  require "capybara"
5
6
  require "capybara/sessionkeeper"
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.7.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-07-06 00:00:00.000000000 Z
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
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /.env
11
- /.env.development
12
- /.byebug_history
13
- /.ruby-version
14
- /.rspec_status
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color