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 +4 -4
- data/lib/csp_builder.rb +11 -0
- data/lib/csp_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81dcfd704429ef05e06e41f01e7fdfd77c4bf8f3
|
4
|
+
data.tar.gz: 4103cd67bcc5fa302f8d8fd5b0c3f22e38e7a6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
data/lib/csp_builder/version.rb
CHANGED