usps-jwt_auth 0.0.4 → 0.0.6

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: ae0acc782c09d52d721375bb82679e65e8e3a39d8e76c73be42de3d9200f7d24
4
- data.tar.gz: a920c09f41b7cc7458a27796a75ecf87efb0a8c2d932aa8ad973ac9a37cfe8d1
3
+ metadata.gz: f3713e69b0474983072c09952260c509b4d5bfc55093f784180c2762f1580c22
4
+ data.tar.gz: 3b211bb26c1ba938aa104439bd399ebd48369a02b7a9476b5b89d557219f4b86
5
5
  SHA512:
6
- metadata.gz: 0e0f3369200bcdfb24f84a973873965521088bba354f5de60e93fad8816d1ea81ee46e7a47e2eb875463906eb893c534db93810094c9df64476f66dddd293ebd
7
- data.tar.gz: 8c1e24776b1dd9228baddc8123acaa5f4999a1d46676399747764a189c2284f87b283d6955be3ae35abe99d170adfbcbbc0a7699a5ef4b9486085271d77d6ea3
6
+ metadata.gz: '09cde55ca936565d0fd67906a8324ec1dd320628a18d99ad126fa720352598480729f068cf8a657254e4f57d22596eee5fa2aed2c9af8e4d54bf32d90c9111ea'
7
+ data.tar.gz: 5d97c3ccc7b24ef48c67dd82195229cc2f69b3f975dbab5f21af9f4b31e5765c4b45b9f532a1114cb83132ccd2910086288a0f76cb7bd93b228091c020a749fa
data/lib/railtie.rb ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails'
4
+
5
+ module Usps
6
+ module JwtAuth
7
+ # Expose rake tasks to Rails
8
+ #
9
+ class Railtie < Rails::Railtie
10
+ railtie_name :usps_jwt_auth
11
+
12
+ rake_tasks do
13
+ path = File.expand_path(__dir__)
14
+ Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f }
15
+ end
16
+ end
17
+ end
18
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '0.0.4'
5
+ VERSION = '0.0.6'
6
6
  end
7
7
  end
data/lib/usps/jwt_auth.rb CHANGED
@@ -7,6 +7,8 @@ require_relative 'jwt_auth/encode'
7
7
  require_relative 'jwt_auth/decode'
8
8
  require_relative 'jwt_auth/concern'
9
9
 
10
+ require_relative 'jwt_auth/railtie' if defined?(Rails)
11
+
10
12
  module Usps
11
13
  # Unified configuration for handling JWT Authentication
12
14
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-jwt_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -33,6 +33,7 @@ files:
33
33
  - ".ruby-version"
34
34
  - README.md
35
35
  - Rakefile
36
+ - lib/railtie.rb
36
37
  - lib/tasks/jwt_auth.rake
37
38
  - lib/usps/jwt_auth.rb
38
39
  - lib/usps/jwt_auth/concern.rb