angular_xss 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,7 @@ module AngularXss
19
19
  #DOUBLE_BRACE_REGEXP = Regexp.new("(#{BRACE.join('|')})(#{BRACE.join('|')})", Regexp::IGNORECASE)
20
20
 
21
21
  def self.escape(string)
22
+ return unless string
22
23
  if disabled?
23
24
  string
24
25
  else
@@ -1,3 +1,3 @@
1
1
  module AngularXss
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- angular_xss (0.2.2)
4
+ angular_xss (0.2.3)
5
5
  activesupport
6
6
  haml (>= 3.1.5)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- angular_xss (0.2.2)
4
+ angular_xss (0.2.3)
5
5
  activesupport
6
6
  haml (>= 3.1.5)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- angular_xss (0.2.2)
4
+ angular_xss (0.2.3)
5
5
  activesupport
6
6
  haml (>= 3.1.5)
7
7
 
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveSupport::SafeBuffer do
4
+
5
+ it 'still allows concatting nil' do
6
+ expect { subject << nil }.to_not raise_error
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular_xss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -137,6 +137,7 @@ files:
137
137
  - spec/shared/support/engine_preventing_angular_xss.rb
138
138
  - spec/shared/tests/erb_spec.rb
139
139
  - spec/shared/tests/haml_spec.rb
140
+ - spec/shared/tests/safe_buffer_spec.rb
140
141
  has_rdoc: true
141
142
  homepage: https://github.com/makandra/angular_xss
142
143
  licenses:
@@ -239,3 +240,4 @@ test_files:
239
240
  - spec/shared/support/engine_preventing_angular_xss.rb
240
241
  - spec/shared/tests/erb_spec.rb
241
242
  - spec/shared/tests/haml_spec.rb
243
+ - spec/shared/tests/safe_buffer_spec.rb