yaml_csp_config 1.0.1 → 1.0.3
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 +4 -4
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/lib/generators/{USAGE → yaml_csp_config/USAGE} +0 -0
- data/lib/generators/{install_generator.rb → yaml_csp_config/install_generator.rb} +5 -4
- data/lib/generators/{templates → yaml_csp_config/templates}/content_security_policy.yml +0 -0
- data/lib/generators/{templates → yaml_csp_config/templates}/yaml_csp_config.rb +0 -0
- data/lib/tasks/yaml_csp_config_tasks.rake +1 -1
- data/lib/yaml_csp_config/version.rb +1 -1
- data/lib/yaml_csp_config.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d364ca228a1c6e897f15ceb024b277fe0d5ca6e857b8408e2beec971cd3ea62
|
4
|
+
data.tar.gz: 9dd744ccf9ee54ac541b364f829fbc284c839826c7a1bf2b862e4a06f7ae4bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b860612f0350846c2af70a0fe469f2b42b8dcdafd1899925e4a67834b971d6530481ab56b07c12a59e15d1f308ba7bef0e0f535bfdd08d69e6fc25947d71ef4b
|
7
|
+
data.tar.gz: 497d63f942a225ce8127bb516a8425330c1fce9cdb9e90fb97cfbc4400f6306cdfc6126738ea05d7972a6ab16e4ae6d8fb95f2c9038727b3aba8b04356cce10f
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ require "rdoc/task"
|
|
10
10
|
|
11
11
|
RDoc::Task.new(:rdoc) do |rdoc|
|
12
12
|
rdoc.rdoc_dir = "rdoc"
|
13
|
-
rdoc.title
|
13
|
+
rdoc.title = "YamlCspConfig"
|
14
14
|
rdoc.options << "--line-numbers"
|
15
15
|
rdoc.rdoc_files.include("README.md")
|
16
16
|
rdoc.rdoc_files.include("lib/**/*.rb")
|
File without changes
|
@@ -5,13 +5,14 @@ require "rails/generators/base"
|
|
5
5
|
module YamlCspConfig
|
6
6
|
module Generators
|
7
7
|
# The Install generator `yaml_csp_config:install`
|
8
|
-
class InstallGenerator < Rails::Generators::Base
|
8
|
+
class InstallGenerator < ::Rails::Generators::Base
|
9
9
|
source_root File.expand_path(__dir__)
|
10
10
|
|
11
11
|
desc "Creates an initial basic YAML configuration, an initializer and configures Rails to use the gem."
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
def copy_tasks
|
13
|
+
template "templates/yaml_csp_config.rb", "config/initializers/yaml_csp_config.rb"
|
14
|
+
template "templates/content_security_policy.yml", "config/content_security_policy.yml"
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
File without changes
|
File without changes
|
@@ -8,7 +8,7 @@ namespace :yaml_csp_config do
|
|
8
8
|
puts "\nDirective\t\t: Directive Value"
|
9
9
|
puts "---------\t\t ---------------"
|
10
10
|
policy.directives.each do |k, v|
|
11
|
-
puts "#{k}\t\t: #{v.join(
|
11
|
+
puts "#{k}\t\t: #{v.join(" ")}"
|
12
12
|
end
|
13
13
|
|
14
14
|
puts "\n\nConfiguration\t\t: Value"
|
data/lib/yaml_csp_config.rb
CHANGED
@@ -20,10 +20,10 @@ module YamlCspConfig
|
|
20
20
|
class Configuration
|
21
21
|
# @dynamic configuration_file_path, yaml_config_base_key
|
22
22
|
attr_accessor :configuration_file_path,
|
23
|
-
|
23
|
+
:yaml_config_base_key
|
24
24
|
# @dynamic default_env_var_additions_key_prefix, default_env_var_group_key
|
25
25
|
attr_accessor :default_env_var_additions_key_prefix,
|
26
|
-
|
26
|
+
:default_env_var_group_key
|
27
27
|
|
28
28
|
def initialize
|
29
29
|
@configuration_file_path = Rails.root.join("config", "content_security_policy.yml")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml_csp_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Ierodiaconou
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: standard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -92,10 +92,10 @@ files:
|
|
92
92
|
- MIT-LICENSE
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
|
-
- lib/generators/USAGE
|
96
|
-
- lib/generators/install_generator.rb
|
97
|
-
- lib/generators/templates/content_security_policy.yml
|
98
|
-
- lib/generators/templates/yaml_csp_config.rb
|
95
|
+
- lib/generators/yaml_csp_config/USAGE
|
96
|
+
- lib/generators/yaml_csp_config/install_generator.rb
|
97
|
+
- lib/generators/yaml_csp_config/templates/content_security_policy.yml
|
98
|
+
- lib/generators/yaml_csp_config/templates/yaml_csp_config.rb
|
99
99
|
- lib/tasks/yaml_csp_config_tasks.rake
|
100
100
|
- lib/yaml_csp_config.rb
|
101
101
|
- lib/yaml_csp_config/csp_ext.rb
|
@@ -107,7 +107,7 @@ homepage: https://github.com/stevegeek/yaml_csp_config
|
|
107
107
|
licenses:
|
108
108
|
- MIT
|
109
109
|
metadata: {}
|
110
|
-
post_install_message:
|
110
|
+
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|
113
113
|
- lib
|
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
-
signing_key:
|
125
|
+
rubygems_version: 3.3.7
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: yaml_csp_config provides you with a way to manage your Rails CSP configuration
|
129
129
|
via a YAML file.
|