rails_key_rotator 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d1778feace35c94d339199b459de6c749f82539e63cbe46a934684ec17cbb9e
4
- data.tar.gz: 05dac7f4d49bdf29c7689ecb5c4b17a8907471d5d5139a9fa80c5f80137fbca6
3
+ metadata.gz: 1185099ebdd0aa95fe346dd3903a6a0cb56540a0e5b40acf8b917342ca33912a
4
+ data.tar.gz: 6bec30ca3c50f0870d05b9377a94f0f7afe69ec8eb36d0a21dbde210b73c6d3b
5
5
  SHA512:
6
- metadata.gz: b283c99e15d1bc2804ec2486971c78765b1e2eab9c68c31510baf95c53fac9e8dded8c1f380c201ad4964077428a694459556999d2516d7efafdfea55aecf02a
7
- data.tar.gz: 9aea496df02a242c867dce7d3fe3b8237872f3d732dbbc9392eb12a0985e62296f9fa9418a2f3c3726bad156a41af6493ddcdf5e3ab4126d1db0209fe35c5dd1
6
+ metadata.gz: 20d3d663fe20d4cd2d08a7d5e5e6c7f8c55837f222f52f1a237f667ec7760b25744f1f8c4e90cb3c22f47c21c423cc28c6a1c7e4826029631dff45eb4ef855f9
7
+ data.tar.gz: 8a1c6af613656d15ad0380aa1d4e43a69289e1dd4bd7ccfbe9e242d7c8df7c82c7e0bcc86c727c179786085fbf85eb06ccba8bcdb9ceae2cf8978bb9b3e6d868
data/.rubocop.yml CHANGED
@@ -3,6 +3,9 @@ require:
3
3
  inherit_gem:
4
4
  standard: config/base.yml
5
5
 
6
+ AllCops:
7
+ TargetRubyVersion: 2.6
8
+
6
9
  Gemspec/DependencyVersion:
7
10
  Enabled: true
8
11
  Gemspec/DeprecatedAttributeAssignment:
@@ -4,4 +4,12 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "~> 6.0.0", require: "active_support"
6
6
 
7
+ group :development do
8
+ gem "appraisal"
9
+ gem "guard-rspec"
10
+ gem "rake"
11
+ gem "rspec"
12
+ gem "standard"
13
+ end
14
+
7
15
  gemspec path: "../"
@@ -4,4 +4,12 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "~> 6.1.0", require: "active_support"
6
6
 
7
+ group :development do
8
+ gem "appraisal"
9
+ gem "guard-rspec"
10
+ gem "rake"
11
+ gem "rspec"
12
+ gem "standard"
13
+ end
14
+
7
15
  gemspec path: "../"
@@ -4,4 +4,12 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "~> 7.0.0", require: "active_support"
6
6
 
7
+ group :development do
8
+ gem "appraisal"
9
+ gem "guard-rspec"
10
+ gem "rake"
11
+ gem "rspec"
12
+ gem "standard"
13
+ end
14
+
7
15
  gemspec path: "../"
@@ -4,4 +4,12 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "~> 7.1.0", require: "active_support"
6
6
 
7
+ group :development do
8
+ gem "appraisal"
9
+ gem "guard-rspec"
10
+ gem "rake"
11
+ gem "rspec"
12
+ gem "standard"
13
+ end
14
+
7
15
  gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails"
4
+
5
+ module RailsKeyRotator
6
+ class Railtie < Rails::Railtie
7
+ config.before_initialize do
8
+ KeyRotator.call
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsKeyRotator
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -5,6 +5,8 @@ require "tempfile"
5
5
  require "active_support"
6
6
  require "active_support/encrypted_configuration"
7
7
 
8
+ require "rails_key_rotator/railtie" if defined?(Rails)
9
+
8
10
  module RailsKeyRotator
9
11
  class Error < StandardError; end
10
12
  # Your code goes here...
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  # spec.description = "TODO: Write a longer description or delete this line."
13
13
  spec.homepage = "https://wendbaar.nl"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7.0"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
16
 
17
17
  # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_key_rotator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Berenschot
@@ -54,6 +54,7 @@ files:
54
54
  - gemfiles/active_support_70.gemfile
55
55
  - gemfiles/active_support_71.gemfile
56
56
  - lib/rails_key_rotator.rb
57
+ - lib/rails_key_rotator/railtie.rb
57
58
  - lib/rails_key_rotator/version.rb
58
59
  - rails_key_rotator.gemspec
59
60
  - sig/rails_key_rotator.rbs
@@ -73,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
74
  requirements:
74
75
  - - ">="
75
76
  - !ruby/object:Gem::Version
76
- version: 2.7.0
77
+ version: 2.6.0
77
78
  required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  requirements:
79
80
  - - ">="