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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cead6c85010ac7c384e7e49923be99ca0b975921dd6b427fabdc8639c632aaed
4
- data.tar.gz: 15f2f45cc97f7c01751bf8b79afa9f4f624aeb37fb18d7acfa21b63d651b4d06
3
+ metadata.gz: 6594dfdc8b0001fc57a0751d3c54652a3a60922793ab6690c4b3c625d4231ce6
4
+ data.tar.gz: e5f943e558be5afeb2fe9f493fb50b2347fa01655c21bd0301aac67d69e33f39
5
5
  SHA512:
6
- metadata.gz: a0e8076a7ad8c8fe3f6b999eaf5f29cc70948ddd65f747055512506bd9f1b17d5dd9f7ba196bae3b0d8018a86b277fff460a60bc0491ad3cc583767a97b66c9e
7
- data.tar.gz: f89e0fa7162eb4151531f48a71c2210758afdf25e6ae24aebdadfa31228e74dc9f21c00f48d73d5a1b32b92769561227e21c9de80e326a60c461c4d7a5b57291
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.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"]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../csp"
3
+ require_relative "./directive_value"
4
4
 
5
5
  class CSP::DirectiveValue::Base
6
6
  def initialize(value_str)
@@ -3,7 +3,6 @@
3
3
  require_relative "./directive_value"
4
4
  require_relative "./base"
5
5
  require_relative "../grammar"
6
- require_relative "../csp"
7
6
 
8
7
  class CSP::DirectiveValue::Default < CSP::DirectiveValue::Base
9
8
  private
@@ -3,7 +3,6 @@
3
3
  require_relative "./directive_value"
4
4
  require_relative "./base"
5
5
  require_relative "../grammar"
6
- require_relative "../csp"
7
6
 
8
7
  class CSP::DirectiveValue::Sandbox < CSP::DirectiveValue::Base
9
8
  private
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "./directive_value"
4
4
  require_relative "./base"
5
- require_relative "../csp"
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,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../../csp"
3
+ require_relative "./source"
4
+ require_relative "../directive_value"
4
5
 
5
6
  class CSP::DirectiveValue::Source::Base
6
7
  def initialize(value_str)
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../../csp"
3
+ require_relative "../directive_value"
4
4
 
5
5
  module CSP::DirectiveValue::Source
6
6
  end
@@ -3,7 +3,6 @@
3
3
  require_relative "./directive_value"
4
4
  require_relative "./base"
5
5
  require_relative "../grammar"
6
- require_relative "../csp"
7
6
 
8
7
  class CSP::DirectiveValue::Token < CSP::DirectiveValue::Base
9
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.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.0.3
66
+ rubygems_version: 3.1.6
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Content Security Policy Parser