csp_builder 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: d498d553b48d1213a0582fa4affb968f1c45a8c2
4
- data.tar.gz: c81cf932b3097bff554b6e28d328622c419ef62b
3
+ metadata.gz: 81dcfd704429ef05e06e41f01e7fdfd77c4bf8f3
4
+ data.tar.gz: 4103cd67bcc5fa302f8d8fd5b0c3f22e38e7a6f9
5
5
  SHA512:
6
- metadata.gz: fa698baf9e3c0ca17aa2e5fead079ea1a79cd1956fb09b404a4291a0bd394e3eb4c108b94b046e62333684003cf70ced9f95308a6135af0042941ab6abdf5f5d
7
- data.tar.gz: 63aa002a358da432b5738f85ebb1e4b02ed760d51a12a98b0a06f0c8009e84c10c08c0d5d6dd250b38f90ac8cc027fdb8243fb53337a83edc2bc9ec412811b4e
6
+ metadata.gz: 9d266075d750e2538d35f9449ead4143c03a5be1b2d94f6e06bb0079b78520f01fb372d56e15e7b6a09d201a5115bdde004a7481dbec7b62e8fed8c2c2c19966
7
+ data.tar.gz: 7d214c5b81a5310be7d33cba6aab0c08770bae9db10ec9d77e9dd5fcbca7289343ecc338c3ebd17f2b8d63ee678632ba553dcb1bfb00a103e963353834eb1311
data/lib/csp_builder.rb CHANGED
@@ -115,8 +115,19 @@ class CspBuilder
115
115
  RUBY_EVAL
116
116
  end
117
117
 
118
+ protected
119
+
120
+ def reset!
121
+ @directives = @directives.dup
122
+ @result = nil
123
+ end
124
+
118
125
  private
119
126
 
127
+ def initialize_dup(source)
128
+ super.reset!
129
+ end
130
+
120
131
  # @private
121
132
  def compile
122
133
  @directives.map { |key, val|
@@ -1,3 +1,3 @@
1
1
  class CspBuilder
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csp_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Coyne