yaml_csp_config 1.0.1 → 1.0.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: 636f76164108ed26ee965a4c3a6b62f17691134fba8077f5bdbd157faff5b6d5
4
- data.tar.gz: 2627769481fee67efdc943ab7e50f0757edcdea387a930079cbf128ef49c927e
3
+ metadata.gz: e12b5494dba4e7a54ad6c603423d610d82cb1c8d18cd42c0d2ff1cda0e4039f9
4
+ data.tar.gz: b89ac8d5f0bf1b359a70aaf6102fca06bdb99b07a1be5a41d1e6a92dfbc04b37
5
5
  SHA512:
6
- metadata.gz: bbca5b53805a870e2c8f5811d25e718953628c2e6e33150f2f62d5a29555a38d79057b7910a34aca052f97b34cf31d15056a1ecbc9923a5093db7801dc628cc6
7
- data.tar.gz: ba204c300eb92eadfb14270df762294ccd33ee2f271a1289fce35be10ac104a64854b37f84abd3632014fa6d7ef088e2f352ecd8f6665869e940f49c133d2f5f
6
+ metadata.gz: fad7cd68c6a626b4a33c6380daee1f99c0a42cf976144fa3030a0d3e5ffa150274b5ebcce6fada66b7dcbec4ed8ff22dc9492e419a012915d8bdaa3231ebd91a
7
+ data.tar.gz: a00a8c69eb1331b27d39feb271c8bb7d57be3e84ef3efcf49e02f69a37022d43aaae9f126bd6f9fda7a1b4de372b45db587a1e1155e08f659d0e72340a07dabd
data/README.md CHANGED
@@ -163,7 +163,7 @@ $ gem install yaml_csp_config
163
163
  ```
164
164
  Then run the **generator to add the initializer**
165
165
 
166
- rails yaml_csp_config:install
166
+ rails g yaml_csp_config:install
167
167
 
168
168
 
169
169
  ## Usage
@@ -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
- copy_file "yaml_csp_config.rb", "config/initializers/yaml_csp_config.rb"
14
- copy_file "content_security_policy.yml", "config/content_security_policy.yml"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YamlCspConfig
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_csp_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Ierodiaconou
@@ -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