csp_parser 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 +4 -4
- data/csp_parser.gemspec +1 -1
- data/lib/directive_value/base.rb +1 -1
- data/lib/directive_value/default.rb +0 -1
- data/lib/directive_value/sandbox.rb +0 -1
- data/lib/directive_value/serialized_source_list.rb +1 -1
- data/lib/directive_value/source/base.rb +2 -1
- data/lib/directive_value/source/hash.rb +0 -2
- data/lib/directive_value/source/host.rb +0 -2
- data/lib/directive_value/source/http_host.rb +0 -2
- data/lib/directive_value/source/keyword.rb +0 -2
- data/lib/directive_value/source/nonce.rb +0 -2
- data/lib/directive_value/source/none.rb +0 -2
- data/lib/directive_value/source/scheme.rb +0 -2
- data/lib/directive_value/source/source.rb +1 -1
- data/lib/directive_value/token.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6594dfdc8b0001fc57a0751d3c54652a3a60922793ab6690c4b3c625d4231ce6
|
4
|
+
data.tar.gz: e5f943e558be5afeb2fe9f493fb50b2347fa01655c21bd0301aac67d69e33f39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ef1fb4a685dbd67a708f1bc9d403d3723a13db15e0768cf3bd9e9edfc365808e5b9d61149f69a5686f02e40fb9ccf4bd122f11b760cee3499aa93b5dd4dcf0
|
7
|
+
data.tar.gz: 5000e0d2beb494698d2c8769966bdd65467c183c30f28dd2f17307c29462270763e1cc882bb9e2534a23a2e909b2954749fd676714320402b2be7c02d6458202
|
data/csp_parser.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.required_ruby_version = ">= 2.5.0"
|
5
5
|
s.name = "csp_parser"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.2"
|
7
7
|
s.summary = "Content Security Policy Parser"
|
8
8
|
s.description = "Gem for parsing Content Security Policy."
|
9
9
|
s.authors = ["Igor Kirianov"]
|
data/lib/directive_value/base.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "./directive_value"
|
4
4
|
require_relative "./base"
|
5
|
-
require_relative "../
|
5
|
+
require_relative "../grammar"
|
6
6
|
# rubocop:disable Lint/NonDeterministicRequireOrder, Style/StringConcatenation
|
7
7
|
Dir[File.dirname(__FILE__) + "/source/*.rb"].each { |file| require file }
|
8
8
|
# rubocop:enable Lint/NonDeterministicRequireOrder, Style/StringConcatenation
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::Hash < CSP::DirectiveValue::Source::Base
|
10
8
|
def algorithm
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::Host < CSP::DirectiveValue::Source::Base
|
10
8
|
def scheme_part
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "../../grammar"
|
6
5
|
require_relative "./host"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::HttpHost < CSP::DirectiveValue::Source::Host
|
10
8
|
private
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::Keyword < CSP::DirectiveValue::Source::Base
|
10
8
|
private
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::Nonce < CSP::DirectiveValue::Source::Base
|
10
8
|
def value
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::None < CSP::DirectiveValue::Source::Base
|
10
8
|
private
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../directive_value"
|
4
3
|
require_relative "./source"
|
5
4
|
require_relative "./base"
|
6
5
|
require_relative "../../grammar"
|
7
|
-
require_relative "../../csp"
|
8
6
|
|
9
7
|
class CSP::DirectiveValue::Source::Scheme < CSP::DirectiveValue::Source::Base
|
10
8
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csp_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kirianov
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.1.6
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Content Security Policy Parser
|