rails_key_rotator 0.1.1 → 0.1.2

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: 1c3890118c4df957ca79c8cf21823a86cea1061c91fb0a541bb7370432c68e3c
4
+ data.tar.gz: c8f4bf343b83f3581b4a51e8cce589d7fcf075ca4f89dd7a2441caea31c32d3f
5
5
  SHA512:
6
- metadata.gz: b283c99e15d1bc2804ec2486971c78765b1e2eab9c68c31510baf95c53fac9e8dded8c1f380c201ad4964077428a694459556999d2516d7efafdfea55aecf02a
7
- data.tar.gz: 9aea496df02a242c867dce7d3fe3b8237872f3d732dbbc9392eb12a0985e62296f9fa9418a2f3c3726bad156a41af6493ddcdf5e3ab4126d1db0209fe35c5dd1
6
+ metadata.gz: 6fe025cb0f8f31142616bd1d627e745d357d3bd4ee72700713b6ed58060938d4dfc93b483812c02db791e50ad5d838b9d1168058bde846641539b6542c147f63
7
+ data.tar.gz: 41a0e25df4a51da37f380f4ba9ca5dd80db6a999a26138792350213c637cde584dc16a85421bd35efd73f8139d907bf5f672834065c09d988c4fd0ae4dce7997
@@ -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.2"
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.2
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
  - - ">="