keyless 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/documentation.yml +39 -0
- data/.github/workflows/test.yml +63 -0
- data/.gitignore +3 -0
- data/.rspec +2 -2
- data/.rubocop.yml +38 -8
- data/.simplecov +12 -0
- data/.yardopts +6 -0
- data/Appraisals +5 -0
- data/CHANGELOG.md +17 -2
- data/Dockerfile +28 -0
- data/Envfile +3 -0
- data/Guardfile +44 -0
- data/LICENSE +1 -1
- data/Makefile +163 -0
- data/README.md +4 -2
- data/Rakefile +11 -0
- data/config/docker/.bash_profile +3 -0
- data/config/docker/.bashrc +48 -0
- data/config/docker/.inputrc +17 -0
- data/docker-compose.yml +9 -0
- data/gemfiles/rails_5.2.gemfile +7 -0
- data/keyless.gemspec +44 -21
- data/lib/keyless/rsa_public_key.rb +2 -1
- data/lib/keyless/version.rb +19 -1
- data/lib/keyless.rb +0 -2
- metadata +192 -54
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ad87d423bc0cef68c4d459e72f3174952573a16c0a27402523f2d4bd4848f82
|
4
|
+
data.tar.gz: ca15bb771175ffd11bbd5500ef176efd8c21154ebde397a90a06678b1e3ea388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23bfd4256a676890fea5fb72b0ee4731ad155e66a56f91dce9bc03a2cd093f4ca3d6b81dcbbf774aebe01da07a44ba26d25f749fb5121e77dbcf4a113698135
|
7
|
+
data.tar.gz: cfb172a94afdb55206a76a8bd77852d58028229f001356c207a77f7edea34e4850e308ffcce9864be75c6b52eaeaf6206778cad88c8ca553027ead068fc90e1e
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Build Documentation
|
2
|
+
on:
|
3
|
+
repository_dispatch:
|
4
|
+
types: [documentation]
|
5
|
+
|
6
|
+
concurrency:
|
7
|
+
group: 'docs'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
docs:
|
11
|
+
name: Build gem documentation
|
12
|
+
runs-on: ubuntu-22.04
|
13
|
+
timeout-minutes: 5
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v3
|
16
|
+
|
17
|
+
- name: Install the correct Ruby version
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.5
|
21
|
+
bundler-cache: true
|
22
|
+
rubygems: '3.3.26'
|
23
|
+
|
24
|
+
- name: Prepare the virtual environment
|
25
|
+
uses: hausgold/actions/ci@master
|
26
|
+
with:
|
27
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
28
|
+
settings: '${{ github.repository }}'
|
29
|
+
target: ci/gem-test
|
30
|
+
|
31
|
+
- name: Build gem documentation
|
32
|
+
run: make docs
|
33
|
+
|
34
|
+
- name: Upload the code coverage report
|
35
|
+
run: coverage
|
36
|
+
|
37
|
+
- name: Add this job to the commit status
|
38
|
+
run: commit-status '${{ job.status }}'
|
39
|
+
if: always()
|
@@ -0,0 +1,63 @@
|
|
1
|
+
name: Test
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- '**'
|
6
|
+
schedule:
|
7
|
+
- cron: '0 0 * * MON'
|
8
|
+
|
9
|
+
concurrency:
|
10
|
+
group: '${{ github.ref }}'
|
11
|
+
cancel-in-progress: true
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
|
16
|
+
runs-on: ubuntu-22.04
|
17
|
+
timeout-minutes: 5
|
18
|
+
strategy:
|
19
|
+
fail-fast: false
|
20
|
+
matrix:
|
21
|
+
ruby: ['2.5', '2.7']
|
22
|
+
rails: ['5.2']
|
23
|
+
env:
|
24
|
+
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v3
|
27
|
+
|
28
|
+
- name: Install the correct Ruby version
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby }}
|
32
|
+
bundler-cache: true
|
33
|
+
rubygems: '3.3.26'
|
34
|
+
|
35
|
+
- name: Prepare the virtual environment
|
36
|
+
uses: hausgold/actions/ci@master
|
37
|
+
with:
|
38
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
39
|
+
settings: '${{ github.repository }}'
|
40
|
+
target: ci/gem-test
|
41
|
+
|
42
|
+
- name: Run the gem tests
|
43
|
+
run: make test
|
44
|
+
|
45
|
+
- name: Upload the code coverage report
|
46
|
+
run: coverage
|
47
|
+
|
48
|
+
trigger-docs:
|
49
|
+
name: Trigger the documentation upload
|
50
|
+
runs-on: ubuntu-22.04
|
51
|
+
timeout-minutes: 2
|
52
|
+
needs: test
|
53
|
+
if: github.ref == 'refs/heads/master'
|
54
|
+
steps:
|
55
|
+
- name: Prepare the virtual environment
|
56
|
+
uses: hausgold/actions/ci@master
|
57
|
+
with:
|
58
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
59
|
+
settings: '${{ github.repository }}'
|
60
|
+
target: ci/noop
|
61
|
+
|
62
|
+
- name: Trigger the documentation upload
|
63
|
+
run: workflow documentation
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,28 +1,40 @@
|
|
1
|
-
require:
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
3
|
+
- rubocop-rails
|
2
4
|
|
3
5
|
Rails:
|
4
6
|
Enabled: true
|
5
7
|
|
6
|
-
Documentation:
|
8
|
+
Style/Documentation:
|
7
9
|
Enabled: true
|
8
10
|
|
9
11
|
AllCops:
|
12
|
+
NewCops: enable
|
13
|
+
SuggestExtensions: false
|
10
14
|
DisplayCopNames: true
|
11
|
-
TargetRubyVersion: 2.
|
15
|
+
TargetRubyVersion: 2.5
|
16
|
+
TargetRailsVersion: 5.2
|
12
17
|
Exclude:
|
13
|
-
- db/schema.rb
|
14
18
|
- bin/**/*
|
15
|
-
-
|
16
|
-
- vendor/cache/**/*
|
17
|
-
- vendor/bundle/**/*
|
19
|
+
- vendor/**/*
|
18
20
|
- build/**/*
|
21
|
+
- gemfiles/**/*
|
19
22
|
|
20
23
|
Metrics/BlockLength:
|
21
24
|
Exclude:
|
22
25
|
- Rakefile
|
23
|
-
-
|
26
|
+
- '*.gemspec'
|
24
27
|
- spec/**/*.rb
|
25
28
|
- '**/*.rake'
|
29
|
+
- doc/**/*.rb
|
30
|
+
|
31
|
+
# MFA is not yet enabled for our gems yet.
|
32
|
+
Gemspec/RequireMFA:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
# We stay with the original Ruby Style Guide recommendation.
|
36
|
+
Layout/LineLength:
|
37
|
+
Max: 80
|
26
38
|
|
27
39
|
# Document all the things.
|
28
40
|
Style/DocumentationMethod:
|
@@ -39,3 +51,21 @@ Lint/AmbiguousBlockAssociation:
|
|
39
51
|
# supported with the +with(hash_including)+ matchers
|
40
52
|
RSpec/MessageSpies:
|
41
53
|
EnforcedStyle: receive
|
54
|
+
|
55
|
+
# Because nesting makes sense here to group the feature tests
|
56
|
+
# more effective. This increases maintainability.
|
57
|
+
RSpec/NestedGroups:
|
58
|
+
Max: 4
|
59
|
+
|
60
|
+
# Disable regular Rails spec paths.
|
61
|
+
RSpec/FilePath:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
# Because we just implemented the ActiveRecord API.
|
65
|
+
Rails/SkipsModelValidations:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
# We use memoized helpers all over the place to construct inputs and output
|
69
|
+
# which can be customized at nested contexts easily.
|
70
|
+
RSpec/MultipleMemoizedHelpers:
|
71
|
+
Enabled: false
|
data/.simplecov
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'simplecov-html'
|
4
|
+
require 'simplecov_json_formatter'
|
5
|
+
|
6
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
7
|
+
[
|
8
|
+
SimpleCov::Formatter::HTMLFormatter,
|
9
|
+
SimpleCov::Formatter::JSONFormatter
|
10
|
+
]
|
11
|
+
)
|
12
|
+
|
1
13
|
SimpleCov.start 'test_frameworks' do
|
2
14
|
add_filter '/vendor/bundle/'
|
3
15
|
end
|
data/.yardopts
ADDED
data/Appraisals
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,23 @@
|
|
1
|
+
### 1.1.0
|
2
|
+
|
3
|
+
* Bundler >= 2.3 is from now on required as minimal version (#1)
|
4
|
+
* Dropped support for Ruby < 2.5 (#1)
|
5
|
+
* Dropped support for Rails < 5.2 (#1)
|
6
|
+
* Updated all development/runtime gems to their latest
|
7
|
+
Ruby 2.5 compatible version (#1)
|
8
|
+
|
9
|
+
### 1.0.2
|
10
|
+
|
11
|
+
* Migrated to Github Actions
|
12
|
+
* Migrated to our own coverage reporting
|
13
|
+
* Added the code statistics to the test process
|
14
|
+
|
1
15
|
### 1.0.1
|
2
16
|
|
3
17
|
* Renamed the Gem to `keyless`.
|
4
18
|
|
5
19
|
### 1.0.0
|
6
20
|
|
7
|
-
* Initial release, extracted from former
|
8
|
-
|
21
|
+
* Initial release, extracted from former
|
22
|
+
[grape-jwt-authentication](https://github.com/hausgold/grape-jwt-authentication)
|
23
|
+
code at v1.3.0.
|
data/Dockerfile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
FROM hausgold/ruby:2.5
|
2
|
+
MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>
|
3
|
+
|
4
|
+
# Update system gem
|
5
|
+
RUN gem update --system '3.3.26'
|
6
|
+
|
7
|
+
# Install system packages and the latest bundler
|
8
|
+
RUN apt-get update -yqqq && \
|
9
|
+
apt-get install -y \
|
10
|
+
build-essential locales sudo vim \
|
11
|
+
ca-certificates \
|
12
|
+
bash-completion inotify-tools && \
|
13
|
+
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
|
14
|
+
gem install bundler -v '~> 2.3.0' --no-document --no-prerelease
|
15
|
+
|
16
|
+
# Add new web user
|
17
|
+
RUN mkdir /app && \
|
18
|
+
adduser web --home /home/web --shell /bin/bash \
|
19
|
+
--disabled-password --gecos ""
|
20
|
+
COPY config/docker/* /home/web/
|
21
|
+
RUN chown web:web -R /app /home/web /usr/local/bundle && \
|
22
|
+
mkdir -p /home/web/.ssh
|
23
|
+
|
24
|
+
# Set the root password and grant root access to web
|
25
|
+
RUN echo 'root:root' | chpasswd
|
26
|
+
RUN echo 'web ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
27
|
+
|
28
|
+
WORKDIR /app
|
data/Envfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A sample Guardfile
|
4
|
+
# More info at https://github.com/guard/guard#readme
|
5
|
+
|
6
|
+
## Uncomment and set this to only include directories you want to watch
|
7
|
+
(directories %w[lib spec]).select do |d|
|
8
|
+
if Dir.exist?(d)
|
9
|
+
d
|
10
|
+
else
|
11
|
+
UI.warning("Directory #{d} does not exist")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
## Note: if you are using the `directories` clause above and you are not
|
16
|
+
## watching the project directory ('.'), then you will want to move
|
17
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
18
|
+
#
|
19
|
+
# $ mkdir config
|
20
|
+
# $ mv Guardfile config/
|
21
|
+
# $ ln -s config/Guardfile .
|
22
|
+
#
|
23
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
24
|
+
|
25
|
+
# NOTE: The cmd option is now required due to the increasing number of ways
|
26
|
+
# rspec may be run, below are examples of the most common uses.
|
27
|
+
# * bundler: 'bundle exec rspec'
|
28
|
+
# * bundler binstubs: 'bin/rspec'
|
29
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
30
|
+
# installed the spring binstubs per the docs)
|
31
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
32
|
+
# * 'just' rspec: 'rspec'
|
33
|
+
|
34
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
35
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
36
|
+
watch(%r{^lib/keyless.rb}) { 'spec' }
|
37
|
+
watch(%r{^spec/.+_spec\.rb$})
|
38
|
+
watch(%r{^lib/keyless/([^\\]+)\.rb$}) do |m|
|
39
|
+
"spec/keyless/#{m[1]}_spec.rb"
|
40
|
+
end
|
41
|
+
watch(%r{^lib/keyless/([^\\]+)/(.*)\.rb$}) do |m|
|
42
|
+
"spec/keyless/#{m[1]}/#{m[2]}_spec.rb"
|
43
|
+
end
|
44
|
+
end
|
data/LICENSE
CHANGED
data/Makefile
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
MAKEFLAGS += --warn-undefined-variables -j1
|
2
|
+
SHELL := bash
|
3
|
+
.SHELLFLAGS := -eu -o pipefail -c
|
4
|
+
.DEFAULT_GOAL := all
|
5
|
+
.DELETE_ON_ERROR:
|
6
|
+
.SUFFIXES:
|
7
|
+
.PHONY:
|
8
|
+
|
9
|
+
# Environment switches
|
10
|
+
MAKE_ENV ?= docker
|
11
|
+
COMPOSE_RUN_SHELL_FLAGS ?= --rm
|
12
|
+
BASH_RUN_SHELL_FLAGS ?=
|
13
|
+
|
14
|
+
# Directories
|
15
|
+
VENDOR_DIR ?= vendor/bundle
|
16
|
+
|
17
|
+
# Host binaries
|
18
|
+
AWK ?= awk
|
19
|
+
BASH ?= bash
|
20
|
+
COMPOSE ?= docker-compose
|
21
|
+
DOCKER ?= docker
|
22
|
+
GREP ?= grep
|
23
|
+
ID ?= id
|
24
|
+
MKDIR ?= mkdir
|
25
|
+
RM ?= rm
|
26
|
+
XARGS ?= xargs
|
27
|
+
|
28
|
+
# Container binaries
|
29
|
+
APPRAISAL ?= appraisal
|
30
|
+
BUNDLE ?= bundle
|
31
|
+
GEM ?= gem
|
32
|
+
GUARD ?= guard
|
33
|
+
RAKE ?= rake
|
34
|
+
RSPEC ?= rspec
|
35
|
+
RUBOCOP ?= rubocop
|
36
|
+
YARD ?= yard
|
37
|
+
|
38
|
+
# Files
|
39
|
+
GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\
|
40
|
+
$(wildcard $(GEMFILES_DIR)/*.gemfile)))
|
41
|
+
TEST_GEMFILES := $(GEMFILES:%=test-%)
|
42
|
+
|
43
|
+
# Define a generic shell run wrapper
|
44
|
+
# $1 - The command to run
|
45
|
+
ifeq ($(MAKE_ENV),docker)
|
46
|
+
define run-shell
|
47
|
+
$(COMPOSE) run $(COMPOSE_RUN_SHELL_FLAGS) \
|
48
|
+
-e LANG=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e LC_ALL=en_US.UTF-8 \
|
49
|
+
-e HOME=/home/web -e BUNDLE_APP_CONFIG=/app/.bundle \
|
50
|
+
-u `$(ID) -u` test \
|
51
|
+
bash $(BASH_RUN_SHELL_FLAGS) -c 'sleep 0.1; echo; $(1)'
|
52
|
+
endef
|
53
|
+
else ifeq ($(MAKE_ENV),baremetal)
|
54
|
+
define run-shell
|
55
|
+
$(1)
|
56
|
+
endef
|
57
|
+
endif
|
58
|
+
|
59
|
+
all:
|
60
|
+
# Keyless
|
61
|
+
#
|
62
|
+
# install Install the dependencies
|
63
|
+
# update Update the local Gemset dependencies
|
64
|
+
# clean Clean the dependencies
|
65
|
+
#
|
66
|
+
# test Run the whole test suite
|
67
|
+
# test-style Test the code styles
|
68
|
+
# watch Watch for code changes and rerun the test suite
|
69
|
+
#
|
70
|
+
# docs Generate the Ruby documentation of the library
|
71
|
+
# stats Print the code statistics (library and test suite)
|
72
|
+
# notes Print all the notes from the code
|
73
|
+
# release Release a new Gem version (maintainers only)
|
74
|
+
#
|
75
|
+
# shell Run an interactive shell on the container
|
76
|
+
# shell-irb Run an interactive IRB shell on the container
|
77
|
+
|
78
|
+
.interactive:
|
79
|
+
@$(eval BASH_RUN_SHELL_FLAGS = --login)
|
80
|
+
|
81
|
+
install:
|
82
|
+
# Install the dependencies
|
83
|
+
@$(MKDIR) -p $(VENDOR_DIR)
|
84
|
+
@$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR))
|
85
|
+
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install)
|
86
|
+
|
87
|
+
update:
|
88
|
+
# Install the dependencies
|
89
|
+
@$(MKDIR) -p $(VENDOR_DIR)
|
90
|
+
@$(call run-shell,$(BUNDLE) update)
|
91
|
+
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) update)
|
92
|
+
|
93
|
+
watch: install .interactive
|
94
|
+
# Watch for code changes and rerun the test suite
|
95
|
+
@$(call run-shell,$(BUNDLE) exec $(GUARD))
|
96
|
+
|
97
|
+
test: \
|
98
|
+
test-specs \
|
99
|
+
test-style
|
100
|
+
|
101
|
+
test-specs:
|
102
|
+
# Run the whole test suite
|
103
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats spec)
|
104
|
+
|
105
|
+
$(TEST_GEMFILES): GEMFILE=$(@:test-%=%)
|
106
|
+
$(TEST_GEMFILES):
|
107
|
+
# Run the whole test suite ($(GEMFILE))
|
108
|
+
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) $(GEMFILE) $(RSPEC))
|
109
|
+
|
110
|
+
test-style: \
|
111
|
+
test-style-ruby
|
112
|
+
|
113
|
+
test-style-ruby:
|
114
|
+
# Run the static code analyzer (rubocop)
|
115
|
+
@$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a)
|
116
|
+
|
117
|
+
clean:
|
118
|
+
# Clean the dependencies
|
119
|
+
@$(RM) -rf $(VENDOR_DIR)
|
120
|
+
@$(RM) -rf $(VENDOR_DIR)/Gemfile.lock
|
121
|
+
@$(RM) -rf .bundle .yardoc coverage pkg Gemfile.lock doc/api \
|
122
|
+
.rspec_status
|
123
|
+
|
124
|
+
clean-containers:
|
125
|
+
# Clean running containers
|
126
|
+
ifeq ($(MAKE_ENV),docker)
|
127
|
+
@$(COMPOSE) down
|
128
|
+
endif
|
129
|
+
|
130
|
+
clean-images:
|
131
|
+
# Clean build images
|
132
|
+
ifeq ($(MAKE_ENV),docker)
|
133
|
+
@-$(DOCKER) images | $(GREP) $(shell basename "`pwd`") \
|
134
|
+
| $(AWK) '{ print $$3 }' \
|
135
|
+
| $(XARGS) -rn1 $(DOCKER) rmi -f
|
136
|
+
endif
|
137
|
+
|
138
|
+
distclean: clean clean-containers clean-images
|
139
|
+
|
140
|
+
shell:
|
141
|
+
# Run an interactive shell on the container
|
142
|
+
@$(call run-shell,$(BASH) -i)
|
143
|
+
|
144
|
+
shell-irb:
|
145
|
+
# Run an interactive IRB shell on the container
|
146
|
+
@$(call run-shell,bin/console)
|
147
|
+
|
148
|
+
docs:
|
149
|
+
# Build the API documentation
|
150
|
+
@$(call run-shell,$(BUNDLE) exec $(YARD) -q && \
|
151
|
+
$(BUNDLE) exec $(YARD) stats --list-undoc --compact)
|
152
|
+
|
153
|
+
notes:
|
154
|
+
# Print the code statistics (library and test suite)
|
155
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) notes)
|
156
|
+
|
157
|
+
stats:
|
158
|
+
# Print all the notes from the code
|
159
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats)
|
160
|
+
|
161
|
+
release:
|
162
|
+
# Release a new gem version
|
163
|
+
@$(BUNDLE) exec $(RAKE) release
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
![keyless](doc/assets/project.svg)
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Continuous Integration](https://github.com/hausgold/keyless/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/hausgold/keyless/actions/workflows/test.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/keyless.svg)](https://badge.fury.io/rb/keyless)
|
5
|
-
[![
|
5
|
+
[![Test Coverage](https://automate-api.hausgold.de/v1/coverage_reports/keyless/coverage.svg)](https://knowledge.hausgold.de/coverage)
|
6
|
+
[![Test Ratio](https://automate-api.hausgold.de/v1/coverage_reports/keyless/ratio.svg)](https://knowledge.hausgold.de/coverage)
|
7
|
+
[![API docs](https://automate-api.hausgold.de/v1/coverage_reports/keyless/documentation.svg)](https://www.rubydoc.info/gems/keyless)
|
6
8
|
|
7
9
|
This gem is dedicated to easily integrate a JWT authentication to your
|
8
10
|
ruby application. The real authentication
|
data/Rakefile
CHANGED
@@ -2,7 +2,18 @@
|
|
2
2
|
|
3
3
|
require 'bundler/gem_tasks'
|
4
4
|
require 'rspec/core/rake_task'
|
5
|
+
require 'countless/rake_tasks'
|
5
6
|
|
6
7
|
RSpec::Core::RakeTask.new(:spec)
|
7
8
|
|
8
9
|
task default: :spec
|
10
|
+
|
11
|
+
# Configure all code statistics directories
|
12
|
+
Countless.configure do |config|
|
13
|
+
config.stats_base_directories = [
|
14
|
+
{ name: 'Top-levels',
|
15
|
+
pattern: 'lib/**/*.rb' },
|
16
|
+
{ name: 'Top-levels specs', test: true,
|
17
|
+
pattern: 'spec/**/*_spec.rb' }
|
18
|
+
]
|
19
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# ~/.bashrc: executed by bash(1) for non-login shells.
|
2
|
+
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
3
|
+
# for examples
|
4
|
+
|
5
|
+
_GEM_PATHS=$(ls -d1 ${HOME}/.gem/ruby/*/bin 2>/dev/null | paste -sd ':')
|
6
|
+
_APP_PATHS=$(ls -d1 /app/vendor/bundle/ruby/*/bin 2>/dev/null | paste -sd ':')
|
7
|
+
|
8
|
+
export PATH="${_GEM_PATHS}:${_APP_PATHS}:${PATH}"
|
9
|
+
export PATH="/app/node_modules/.bin:${HOME}/.bin:/app/bin:${PATH}"
|
10
|
+
export MAKE_ENV=baremetal
|
11
|
+
|
12
|
+
# Disable the autostart of all supervisord units
|
13
|
+
sudo sed -i 's/autostart=.*/autostart=false/g' /etc/supervisor/conf.d/*
|
14
|
+
|
15
|
+
# Start the supervisord (empty, no units)
|
16
|
+
sudo supervisord >/dev/null 2>&1 &
|
17
|
+
|
18
|
+
# Wait for supervisord
|
19
|
+
while ! supervisorctl status >/dev/null 2>&1; do sleep 1; done
|
20
|
+
|
21
|
+
# Boot the mDNS stack
|
22
|
+
echo '# Start the mDNS stack'
|
23
|
+
sudo supervisorctl start dbus avahi
|
24
|
+
echo
|
25
|
+
|
26
|
+
function watch-make-test()
|
27
|
+
{
|
28
|
+
while [ 1 ]; do
|
29
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
30
|
+
make test
|
31
|
+
done
|
32
|
+
}
|
33
|
+
|
34
|
+
function watch-make()
|
35
|
+
{
|
36
|
+
while [ 1 ]; do
|
37
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
38
|
+
make $@
|
39
|
+
done
|
40
|
+
}
|
41
|
+
|
42
|
+
function watch-run()
|
43
|
+
{
|
44
|
+
while [ 1 ]; do
|
45
|
+
inotifywait --quiet -r `pwd` -e close_write --format '%e -> %w%f'
|
46
|
+
bash -c "$@"
|
47
|
+
done
|
48
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
|
2
|
+
"\e[1;5C": forward-word
|
3
|
+
"\e[1;5D": backward-word
|
4
|
+
"\e[5C": forward-word
|
5
|
+
"\e[5D": backward-word
|
6
|
+
"\e\e[C": forward-word
|
7
|
+
"\e\e[D": backward-word
|
8
|
+
|
9
|
+
# handle common Home/End escape codes
|
10
|
+
"\e[1~": beginning-of-line
|
11
|
+
"\e[4~": end-of-line
|
12
|
+
"\e[7~": beginning-of-line
|
13
|
+
"\e[8~": end-of-line
|
14
|
+
"\eOH": beginning-of-line
|
15
|
+
"\eOF": end-of-line
|
16
|
+
"\e[H": beginning-of-line
|
17
|
+
"\e[F": end-of-line
|
data/docker-compose.yml
ADDED
data/keyless.gemspec
CHANGED
@@ -5,32 +5,55 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'keyless/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name
|
9
|
-
spec.version
|
10
|
-
spec.authors
|
11
|
-
spec.email
|
8
|
+
spec.name = 'keyless'
|
9
|
+
spec.version = Keyless::VERSION
|
10
|
+
spec.authors = ['Hermann Mayer', 'Christopher Mühl', 'Marcus Geißler']
|
11
|
+
spec.email = ['hermann.mayer92@gmail.com',
|
12
|
+
'christopher@padarom.xyz',
|
13
|
+
'marcus3006@gmail.com']
|
12
14
|
|
13
|
-
spec.
|
14
|
-
spec.
|
15
|
-
spec.
|
15
|
+
spec.license = 'MIT'
|
16
|
+
spec.summary = 'A reusable JWT authentication helper'
|
17
|
+
spec.description = 'A reusable JWT authentication helper'
|
18
|
+
|
19
|
+
base_uri = "https://github.com/hausgold/#{spec.name}"
|
20
|
+
spec.metadata = {
|
21
|
+
'homepage_uri' => base_uri,
|
22
|
+
'source_code_uri' => base_uri,
|
23
|
+
'changelog_uri' => "#{base_uri}/blob/master/CHANGELOG.md",
|
24
|
+
'bug_tracker_uri' => "#{base_uri}/issues",
|
25
|
+
'documentation_uri' => "https://www.rubydoc.info/gems/#{spec.name}"
|
26
|
+
}
|
16
27
|
|
17
28
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
29
|
f.match(%r{^(test|spec|features)/})
|
19
30
|
end
|
20
|
-
|
21
|
-
spec.
|
31
|
+
|
32
|
+
spec.bindir = 'exe'
|
33
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
34
|
spec.require_paths = ['lib']
|
23
35
|
|
24
|
-
spec.
|
25
|
-
|
26
|
-
spec.
|
27
|
-
spec.
|
28
|
-
spec.
|
29
|
-
spec.
|
30
|
-
|
31
|
-
|
32
|
-
spec.
|
33
|
-
spec.
|
34
|
-
spec.
|
35
|
-
spec.
|
36
|
+
spec.required_ruby_version = '>= 2.5'
|
37
|
+
|
38
|
+
spec.add_runtime_dependency 'activesupport', '>= 5.2'
|
39
|
+
spec.add_runtime_dependency 'httparty', '>= 0.21'
|
40
|
+
spec.add_runtime_dependency 'jwt', '~> 2.6'
|
41
|
+
spec.add_runtime_dependency 'recursive-open-struct', '~> 1.1'
|
42
|
+
|
43
|
+
spec.add_development_dependency 'appraisal', '~> 2.4'
|
44
|
+
spec.add_development_dependency 'bundler', '~> 2.3'
|
45
|
+
spec.add_development_dependency 'countless', '~> 1.1'
|
46
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
47
|
+
spec.add_development_dependency 'railties', '>= 5.2'
|
48
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
49
|
+
spec.add_development_dependency 'rspec', '~> 3.12'
|
50
|
+
spec.add_development_dependency 'rubocop', '~> 1.28'
|
51
|
+
spec.add_development_dependency 'rubocop-rails', '~> 2.14'
|
52
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.10'
|
53
|
+
spec.add_development_dependency 'simplecov', '>= 0.22'
|
54
|
+
spec.add_development_dependency 'timecop', '>= 0.9.6'
|
55
|
+
spec.add_development_dependency 'vcr', '~> 6.0'
|
56
|
+
spec.add_development_dependency 'webmock', '~> 3.18'
|
57
|
+
spec.add_development_dependency 'yard', '>= 0.9.28'
|
58
|
+
spec.add_development_dependency 'yard-activesupport-concern', '>= 0.0.1'
|
36
59
|
end
|
data/lib/keyless/version.rb
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# The gem version details.
|
3
4
|
module Keyless
|
4
|
-
|
5
|
+
# The version of the +keyless+ gem
|
6
|
+
VERSION = '1.1.0'
|
7
|
+
|
8
|
+
class << self
|
9
|
+
# Returns the version of gem as a string.
|
10
|
+
#
|
11
|
+
# @return [String] the gem version as string
|
12
|
+
def version
|
13
|
+
VERSION
|
14
|
+
end
|
15
|
+
|
16
|
+
# Returns the version of the gem as a +Gem::Version+.
|
17
|
+
#
|
18
|
+
# @return [Gem::Version] the gem version as object
|
19
|
+
def gem_version
|
20
|
+
Gem::Version.new VERSION
|
21
|
+
end
|
22
|
+
end
|
5
23
|
end
|
data/lib/keyless.rb
CHANGED
metadata
CHANGED
@@ -1,210 +1,348 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keyless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
- Christopher Mühl
|
9
9
|
- Marcus Geißler
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: activesupport
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
22
|
-
|
21
|
+
version: '5.2'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
23
27
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
25
|
-
|
28
|
+
version: '5.2'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: httparty
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0.21'
|
36
|
+
type: :runtime
|
26
37
|
prerelease: false
|
27
38
|
version_requirements: !ruby/object:Gem::Requirement
|
28
39
|
requirements:
|
29
40
|
- - ">="
|
30
41
|
- !ruby/object:Gem::Version
|
31
|
-
version: '
|
32
|
-
|
42
|
+
version: '0.21'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: jwt
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.6'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
33
55
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
56
|
+
version: '2.6'
|
35
57
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
58
|
+
name: recursive-open-struct
|
37
59
|
requirement: !ruby/object:Gem::Requirement
|
38
60
|
requirements:
|
39
61
|
- - "~>"
|
40
62
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
63
|
+
version: '1.1'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.1'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: appraisal
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.4'
|
42
78
|
type: :development
|
43
79
|
prerelease: false
|
44
80
|
version_requirements: !ruby/object:Gem::Requirement
|
45
81
|
requirements:
|
46
82
|
- - "~>"
|
47
83
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
84
|
+
version: '2.4'
|
49
85
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
86
|
+
name: bundler
|
51
87
|
requirement: !ruby/object:Gem::Requirement
|
52
88
|
requirements:
|
53
89
|
- - "~>"
|
54
90
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3
|
91
|
+
version: '2.3'
|
56
92
|
type: :development
|
57
93
|
prerelease: false
|
58
94
|
version_requirements: !ruby/object:Gem::Requirement
|
59
95
|
requirements:
|
60
96
|
- - "~>"
|
61
97
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3
|
98
|
+
version: '2.3'
|
63
99
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
100
|
+
name: countless
|
65
101
|
requirement: !ruby/object:Gem::Requirement
|
66
102
|
requirements:
|
67
103
|
- - "~>"
|
68
104
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
105
|
+
version: '1.1'
|
70
106
|
type: :development
|
71
107
|
prerelease: false
|
72
108
|
version_requirements: !ruby/object:Gem::Requirement
|
73
109
|
requirements:
|
74
110
|
- - "~>"
|
75
111
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
112
|
+
version: '1.1'
|
77
113
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
114
|
+
name: guard-rspec
|
79
115
|
requirement: !ruby/object:Gem::Requirement
|
80
116
|
requirements:
|
81
117
|
- - "~>"
|
82
118
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
119
|
+
version: '4.7'
|
84
120
|
type: :development
|
85
121
|
prerelease: false
|
86
122
|
version_requirements: !ruby/object:Gem::Requirement
|
87
123
|
requirements:
|
88
124
|
- - "~>"
|
89
125
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
126
|
+
version: '4.7'
|
91
127
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
128
|
+
name: railties
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '5.2'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '5.2'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rake
|
93
143
|
requirement: !ruby/object:Gem::Requirement
|
94
144
|
requirements:
|
95
145
|
- - "~>"
|
96
146
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
147
|
+
version: '13.0'
|
98
148
|
type: :development
|
99
149
|
prerelease: false
|
100
150
|
version_requirements: !ruby/object:Gem::Requirement
|
101
151
|
requirements:
|
102
152
|
- - "~>"
|
103
153
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
154
|
+
version: '13.0'
|
105
155
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
156
|
+
name: rspec
|
107
157
|
requirement: !ruby/object:Gem::Requirement
|
108
158
|
requirements:
|
109
159
|
- - "~>"
|
110
160
|
- !ruby/object:Gem::Version
|
111
|
-
version: '3.
|
161
|
+
version: '3.12'
|
112
162
|
type: :development
|
113
163
|
prerelease: false
|
114
164
|
version_requirements: !ruby/object:Gem::Requirement
|
115
165
|
requirements:
|
116
166
|
- - "~>"
|
117
167
|
- !ruby/object:Gem::Version
|
118
|
-
version: '3.
|
168
|
+
version: '3.12'
|
119
169
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
170
|
+
name: rubocop
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.28'
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '1.28'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: rubocop-rails
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '2.14'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - "~>"
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '2.14'
|
197
|
+
- !ruby/object:Gem::Dependency
|
198
|
+
name: rubocop-rspec
|
199
|
+
requirement: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - "~>"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '2.10'
|
204
|
+
type: :development
|
205
|
+
prerelease: false
|
206
|
+
version_requirements: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - "~>"
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '2.10'
|
211
|
+
- !ruby/object:Gem::Dependency
|
212
|
+
name: simplecov
|
121
213
|
requirement: !ruby/object:Gem::Requirement
|
122
214
|
requirements:
|
123
215
|
- - ">="
|
124
216
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
type: :
|
217
|
+
version: '0.22'
|
218
|
+
type: :development
|
127
219
|
prerelease: false
|
128
220
|
version_requirements: !ruby/object:Gem::Requirement
|
129
221
|
requirements:
|
130
222
|
- - ">="
|
131
223
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
224
|
+
version: '0.22'
|
133
225
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
226
|
+
name: timecop
|
135
227
|
requirement: !ruby/object:Gem::Requirement
|
136
228
|
requirements:
|
137
229
|
- - ">="
|
138
230
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
140
|
-
type: :
|
231
|
+
version: 0.9.6
|
232
|
+
type: :development
|
141
233
|
prerelease: false
|
142
234
|
version_requirements: !ruby/object:Gem::Requirement
|
143
235
|
requirements:
|
144
236
|
- - ">="
|
145
237
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
238
|
+
version: 0.9.6
|
147
239
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
240
|
+
name: vcr
|
149
241
|
requirement: !ruby/object:Gem::Requirement
|
150
242
|
requirements:
|
151
243
|
- - "~>"
|
152
244
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
154
|
-
type: :
|
245
|
+
version: '6.0'
|
246
|
+
type: :development
|
155
247
|
prerelease: false
|
156
248
|
version_requirements: !ruby/object:Gem::Requirement
|
157
249
|
requirements:
|
158
250
|
- - "~>"
|
159
251
|
- !ruby/object:Gem::Version
|
160
|
-
version: '
|
252
|
+
version: '6.0'
|
161
253
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
254
|
+
name: webmock
|
163
255
|
requirement: !ruby/object:Gem::Requirement
|
164
256
|
requirements:
|
165
257
|
- - "~>"
|
166
258
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
168
|
-
type: :
|
259
|
+
version: '3.18'
|
260
|
+
type: :development
|
169
261
|
prerelease: false
|
170
262
|
version_requirements: !ruby/object:Gem::Requirement
|
171
263
|
requirements:
|
172
264
|
- - "~>"
|
173
265
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
266
|
+
version: '3.18'
|
267
|
+
- !ruby/object:Gem::Dependency
|
268
|
+
name: yard
|
269
|
+
requirement: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - ">="
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: 0.9.28
|
274
|
+
type: :development
|
275
|
+
prerelease: false
|
276
|
+
version_requirements: !ruby/object:Gem::Requirement
|
277
|
+
requirements:
|
278
|
+
- - ">="
|
279
|
+
- !ruby/object:Gem::Version
|
280
|
+
version: 0.9.28
|
281
|
+
- !ruby/object:Gem::Dependency
|
282
|
+
name: yard-activesupport-concern
|
283
|
+
requirement: !ruby/object:Gem::Requirement
|
284
|
+
requirements:
|
285
|
+
- - ">="
|
286
|
+
- !ruby/object:Gem::Version
|
287
|
+
version: 0.0.1
|
288
|
+
type: :development
|
289
|
+
prerelease: false
|
290
|
+
version_requirements: !ruby/object:Gem::Requirement
|
291
|
+
requirements:
|
292
|
+
- - ">="
|
293
|
+
- !ruby/object:Gem::Version
|
294
|
+
version: 0.0.1
|
175
295
|
description: A reusable JWT authentication helper
|
176
296
|
email:
|
177
297
|
- hermann.mayer92@gmail.com
|
178
298
|
- christopher@padarom.xyz
|
179
|
-
-
|
299
|
+
- marcus3006@gmail.com
|
180
300
|
executables: []
|
181
301
|
extensions: []
|
182
302
|
extra_rdoc_files: []
|
183
303
|
files:
|
184
304
|
- ".editorconfig"
|
305
|
+
- ".github/workflows/documentation.yml"
|
306
|
+
- ".github/workflows/test.yml"
|
185
307
|
- ".gitignore"
|
186
308
|
- ".rspec"
|
187
309
|
- ".rubocop.yml"
|
188
310
|
- ".simplecov"
|
189
|
-
- ".
|
311
|
+
- ".yardopts"
|
312
|
+
- Appraisals
|
190
313
|
- CHANGELOG.md
|
314
|
+
- Dockerfile
|
315
|
+
- Envfile
|
191
316
|
- Gemfile
|
317
|
+
- Guardfile
|
192
318
|
- LICENSE
|
319
|
+
- Makefile
|
193
320
|
- README.md
|
194
321
|
- Rakefile
|
195
322
|
- bin/console
|
196
323
|
- bin/setup
|
324
|
+
- config/docker/.bash_profile
|
325
|
+
- config/docker/.bashrc
|
326
|
+
- config/docker/.inputrc
|
197
327
|
- doc/assets/project.svg
|
328
|
+
- docker-compose.yml
|
329
|
+
- gemfiles/rails_5.2.gemfile
|
198
330
|
- keyless.gemspec
|
199
331
|
- lib/keyless.rb
|
200
332
|
- lib/keyless/configuration.rb
|
201
333
|
- lib/keyless/jwt.rb
|
202
334
|
- lib/keyless/rsa_public_key.rb
|
203
335
|
- lib/keyless/version.rb
|
204
|
-
homepage:
|
205
|
-
licenses:
|
206
|
-
|
207
|
-
|
336
|
+
homepage:
|
337
|
+
licenses:
|
338
|
+
- MIT
|
339
|
+
metadata:
|
340
|
+
homepage_uri: https://github.com/hausgold/keyless
|
341
|
+
source_code_uri: https://github.com/hausgold/keyless
|
342
|
+
changelog_uri: https://github.com/hausgold/keyless/blob/master/CHANGELOG.md
|
343
|
+
bug_tracker_uri: https://github.com/hausgold/keyless/issues
|
344
|
+
documentation_uri: https://www.rubydoc.info/gems/keyless
|
345
|
+
post_install_message:
|
208
346
|
rdoc_options: []
|
209
347
|
require_paths:
|
210
348
|
- lib
|
@@ -212,15 +350,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
350
|
requirements:
|
213
351
|
- - ">="
|
214
352
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
353
|
+
version: '2.5'
|
216
354
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
355
|
requirements:
|
218
356
|
- - ">="
|
219
357
|
- !ruby/object:Gem::Version
|
220
358
|
version: '0'
|
221
359
|
requirements: []
|
222
|
-
rubygems_version: 3.
|
223
|
-
signing_key:
|
360
|
+
rubygems_version: 3.3.8
|
361
|
+
signing_key:
|
224
362
|
specification_version: 4
|
225
363
|
summary: A reusable JWT authentication helper
|
226
364
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=ecb753423174dbd8e4aaf04fb62bf4ef9c2a54904ac49a33fdf2b908b3c5e5f3
|
4
|
-
|
5
|
-
sudo: false
|
6
|
-
language: ruby
|
7
|
-
rvm:
|
8
|
-
- 2.6
|
9
|
-
- 2.5
|
10
|
-
- 2.4
|
11
|
-
|
12
|
-
before_install: gem install bundler
|
13
|
-
|
14
|
-
before_script:
|
15
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
16
|
-
- chmod +x ./cc-test-reporter
|
17
|
-
- ./cc-test-reporter before-build
|
18
|
-
script: bundle exec rake
|
19
|
-
after_script:
|
20
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|