rack_do_app_platform_safelist 1.0.0 → 1.0.1

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: a6bce93ff200590683a6ac90c0ac3d2d830336ee8dd751b688af93c86b2d4ef6
4
- data.tar.gz: 3212a885b1e37ac65de4cd4f5bfc36f0c843bee1e1d350d5af286623d8188834
3
+ metadata.gz: 023e3004291feb208719f5260f70bd520de402f51487bbe8d33633aaad4e4c75
4
+ data.tar.gz: c28dac560f374fdd77b90db41ba88b90058805b5d7e5f74c1e45e19e8012ff9b
5
5
  SHA512:
6
- metadata.gz: 2518416145149e6aeff291dc2f20c71f5322c8af859be76f7121ab8863006306b73a997e4f55e060f838af055f4db9666290693fb49312db9b686ea4aa2199c2
7
- data.tar.gz: 6109e59f4205f5e21cb0cbcbad687d32c5389f7caac7683e9e73f5e1ed0a624d201a1ae5655162791d07503e6a09ed64570e96d1dbdad428368fb13c73e98074
6
+ metadata.gz: a3a3a33937c1afdfa0a6c4923b2b14e3135fd385e386149940fd0d7fad3a652fe3d8081c7c2c5e6ff81a5831dd9963b613179f0fb477bddae7c12467e8a4b8d0
7
+ data.tar.gz: bfca9f1f70315029cc1998793bbb4805aa4908932469587a570c116d3075f32e079edbde40e772599e1a2e895f77de9e817906b4fb768cef8273e10e2ae7de50
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.1] - 2023-02-12
4
+
5
+ - Changed readme to be more thorough with regards to integrating with your application.
6
+ - Fixed repository errors in gemspec.
7
+
3
8
  ## [1.0.0] - 2023-02-11
4
9
 
5
10
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack_do_app_platform_safelist (1.0.0)
4
+ rack_do_app_platform_safelist (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -41,11 +41,13 @@ a) For __rails__ applications.
41
41
 
42
42
  require "rack_do_app_platform_safelist"
43
43
 
44
- Rails.application.config.middleware.insert_before(0, RackDoAppPlatformSafelist, logger: Rails.logger)
44
+ if Rails.env.production?
45
+ Rails.application.config.middleware.insert_before(0, RackDoAppPlatformSafelist, logger: Rails.logger)
46
+ end
45
47
  ```
46
48
 
47
49
  This will insert the middleware at the top of the middleware stack so it can block request before reaching any other
48
- middleware in your application
50
+ middleware in your application. You would only want to enable this middleware in production.
49
51
 
50
52
  b) For __rack__ applications:
51
53
 
@@ -58,7 +60,9 @@ use RackDoAppPlatformSafelist
58
60
  run App.new
59
61
  ```
60
62
 
61
- If you want to use a different environment variable for the whitelisted IPs you can pass it as an argument
63
+ ### Options
64
+
65
+ If you want to use a different environment variable for the safelisted IPs you can pass it as an argument
62
66
 
63
67
  a) For __rails__ applications.
64
68
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RackDoAppPlatformSafelist
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
@@ -11,13 +11,13 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Rack middleware for safelisting IP addresses in DigitalOcean's App Platform"
12
12
  spec.description = "Rack middleware for safelisting IP addresses using an environment variables in DigitalOcean's " \
13
13
  "App Platform"
14
- spec.homepage = "https://github.com/blafri/rack_do_app_platform_whitelist"
14
+ spec.homepage = "https://github.com/blafri/rack_do_app_platform_safelist"
15
15
  spec.license = "MIT"
16
16
  spec.required_ruby_version = ">= 3.0.0"
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/blafri/rack_do_app_platform_whitelist"
20
- spec.metadata["changelog_uri"] = "https://github.com/blafri/rack_do_app_platform_whitelist/blob/main/CHANGELOG.md"
19
+ spec.metadata["source_code_uri"] = "https://github.com/blafri/rack_do_app_platform_safelist"
20
+ spec.metadata["changelog_uri"] = "https://github.com/blafri/rack_do_app_platform_safelist/blob/main/CHANGELOG.md"
21
21
  spec.metadata["rubygems_mfa_required"] = "true"
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_do_app_platform_safelist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blayne Farinha
@@ -28,13 +28,13 @@ files:
28
28
  - lib/rack_do_app_platform_safelist.rb
29
29
  - lib/rack_do_app_platform_safelist/version.rb
30
30
  - rack_do_app_platform_safelist.gemspec
31
- homepage: https://github.com/blafri/rack_do_app_platform_whitelist
31
+ homepage: https://github.com/blafri/rack_do_app_platform_safelist
32
32
  licenses:
33
33
  - MIT
34
34
  metadata:
35
- homepage_uri: https://github.com/blafri/rack_do_app_platform_whitelist
36
- source_code_uri: https://github.com/blafri/rack_do_app_platform_whitelist
37
- changelog_uri: https://github.com/blafri/rack_do_app_platform_whitelist/blob/main/CHANGELOG.md
35
+ homepage_uri: https://github.com/blafri/rack_do_app_platform_safelist
36
+ source_code_uri: https://github.com/blafri/rack_do_app_platform_safelist
37
+ changelog_uri: https://github.com/blafri/rack_do_app_platform_safelist/blob/main/CHANGELOG.md
38
38
  rubygems_mfa_required: 'true'
39
39
  post_install_message:
40
40
  rdoc_options: []