From 4b9f6927c3e00eb96084e5451d71bdd74b65967c Mon Sep 17 00:00:00 2001 From: Nikita Bulai Date: Wed, 24 Oct 2018 14:43:40 +0300 Subject: [PATCH] Small changes --- .rubocop.yml | 28 ---------------------------- CHANGELOG.md | 2 +- doorkeeper-jwt.gemspec | 4 ++-- lib/doorkeeper/jwt/version.rb | 15 ++++++++++++++- 4 files changed, 17 insertions(+), 32 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 7742625..b5d7a81 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,45 +8,17 @@ AllCops: ExtraDetails: true TargetRubyVersion: 2.5 -################################### Bundler #################################### - -################################### Gemspec #################################### - -#################################### Layout #################################### - -##################################### Lint ##################################### - -################################### Metrics #################################### - Metrics/BlockLength: Enabled: false Metrics/MethodLength: Enabled: false -#################################### Naming #################################### Naming/FileName: Exclude: - lib/doorkeeper-jwt.rb -################################# Performance ################################## - -#################################### Rails ##################################### - -################################### Security ################################### - -#################################### Style ##################################### - -Style/Documentation: - Enabled: false - -################################### Capybara ################################### - -################################## FactoryBot ################################## - -#################################### RSpec ##################################### - RSpec/ExampleLength: Enabled: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 287bf95..3bcab21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [0.4.0] - 2018-10-18 +## master ### Changed diff --git a/doorkeeper-jwt.gemspec b/doorkeeper-jwt.gemspec index 0fd892d..91ea473 100644 --- a/doorkeeper-jwt.gemspec +++ b/doorkeeper-jwt.gemspec @@ -7,7 +7,7 @@ require 'doorkeeper/jwt/version' Gem::Specification.new do |spec| spec.name = 'doorkeeper-jwt' - spec.version = Doorkeeper::JWT::VERSION + spec.version = Doorkeeper::JWT.gem_version spec.authors = ['Chris Warren'] spec.email = ['chris@expectless.com'] @@ -17,7 +17,7 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.bindir = 'exe' - spec.files = `git ls-files -z`.split("\x0") + spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] diff --git a/lib/doorkeeper/jwt/version.rb b/lib/doorkeeper/jwt/version.rb index ce3744c..9612751 100644 --- a/lib/doorkeeper/jwt/version.rb +++ b/lib/doorkeeper/jwt/version.rb @@ -2,6 +2,19 @@ module Doorkeeper module JWT - VERSION = '0.4.0' + def self.gem_version + Gem::Version.new VERSION::STRING + end + + module VERSION + # Semantic versioning + MAJOR = 0 + MINOR = 3 + TINY = 0 + PRE = nil + + # Full version number + STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') + end end end