-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from jpickwell/improvements
Restructured library files.
- Loading branch information
Showing
19 changed files
with
452 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
/.bundle/ | ||
/.yardoc | ||
/Gemfile.lock | ||
/_yardoc/ | ||
*.gem | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
*.gem | ||
|
||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
|
||
/.bundle/ | ||
|
||
Gemfile.lock | ||
|
||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rubocop: | ||
config_file: .rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,54 @@ | ||
--- | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
DefaultFormatter: progress | ||
DisplayCopNames: true | ||
DisplayStyleGuide: false | ||
ExtraDetails: true | ||
TargetRubyVersion: 2.5 | ||
|
||
################################### Bundler #################################### | ||
|
||
################################### Gemspec #################################### | ||
|
||
#################################### Layout #################################### | ||
|
||
##################################### Lint ##################################### | ||
|
||
################################### Metrics #################################### | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- spec/**/* | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
#################################### Naming #################################### | ||
|
||
LineLength: | ||
Naming/FileName: | ||
Exclude: | ||
- spec/**/* | ||
- lib/doorkeeper-jwt.rb | ||
|
||
StringLiterals: | ||
Enabled: false | ||
################################# Performance ################################## | ||
|
||
#################################### Rails ##################################### | ||
|
||
################################### Security ################################### | ||
|
||
#################################### Style ##################################### | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
################################### Capybara ################################### | ||
|
||
################################## FactoryBot ################################## | ||
|
||
#################################### RSpec ##################################### | ||
|
||
RSpec/ExampleLength: | ||
Enabled: false | ||
|
||
RSpec/MultipleExpectations: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in doorkeeper-jwt.gemspec | ||
gemspec | ||
|
||
gem 'coveralls', require: false | ||
gem 'rubocop', '~> 0.59.2', require: false | ||
gem 'rubocop-rspec', '~> 1.30', require: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
require "doorkeeper-jwt" | ||
require 'bundler/setup' | ||
require 'doorkeeper-jwt' | ||
|
||
# You can add fixtures and/or initialization code here to make experimenting | ||
# with your gem easier. You can also use a different console, if you like. | ||
|
||
# (If you use this, don't forget to add pry to your Gemfile!) | ||
# require "pry" | ||
# require 'pry' | ||
# | ||
# Pry.start | ||
|
||
require "irb" | ||
require 'irb' | ||
|
||
IRB.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
bundle install | ||
|
||
# Do any other automated setup that you need to do here | ||
# Do any other automated setup that you need to do here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'doorkeeper-jwt/version' | ||
|
||
require 'doorkeeper/jwt/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "doorkeeper-jwt" | ||
spec.version = Doorkeeper::JWT.gem_version | ||
spec.authors = ["Chris Warren"] | ||
spec.email = ["[email protected]"] | ||
spec.name = 'doorkeeper-jwt' | ||
spec.version = Doorkeeper::JWT::VERSION | ||
spec.authors = ['Chris Warren'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'JWT token generator for Doorkeeper' | ||
spec.description = 'JWT token generator extension for Doorkeeper' | ||
spec.homepage = "https://github.com/chriswarren/doorkeeper-jwt" | ||
spec.license = "MIT" | ||
spec.summary = 'JWT token generator for Doorkeeper' | ||
spec.description = 'JWT token generator extension for Doorkeeper' | ||
spec.homepage = 'https://github.com/chriswarren/doorkeeper-jwt' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = "exe" | ||
spec.bindir = 'exe' | ||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency "jwt", "~> 2.1.0", ">= 2.1.0" | ||
spec.add_dependency 'jwt', '~> 2.1' | ||
|
||
spec.add_development_dependency "bundler", "~> 1.8", ">= 1.8" | ||
spec.add_development_dependency "pry", "~> 0" | ||
spec.add_development_dependency "rake", "~> 10.0", ">= 10.0" | ||
spec.add_development_dependency "rspec", "~> 3.2.0", ">= 3.2" | ||
spec.add_development_dependency 'bundler', '~> 1.16' | ||
spec.add_development_dependency 'pry', '~> 0' | ||
spec.add_development_dependency 'rake', '~> 12.3' | ||
spec.add_development_dependency 'rspec', '~> 3.8' | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.