rails_xss 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rails_xss/erubis.rb +4 -5
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
@@ -1,10 +1,9 @@
1
1
  # stop erubis from printing it's version number all the time
2
+ require 'stringio'
2
3
  old_stdout = $stdout
3
- File.open("/dev/null", "w") do |f|
4
- $stdout = f
5
- require 'erubis/helpers/rails_helper'
6
- $stdout = old_stdout
7
- end
4
+ $stdout = StringIO.new
5
+ require 'erubis/helpers/rails_helper'
6
+ $stdout = old_stdout
8
7
 
9
8
  module RailsXss
10
9
  class Erubis < ::Erubis::Eruby
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_xss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 1.8.24
70
+ rubygems_version: 1.8.25
71
71
  signing_key:
72
72
  specification_version: 3
73
73
  summary: A plugin for rails 2.3 apps which switches the default to escape by default