benhoskings-hammock 0.2.11.3 → 0.2.11.4

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.11.4 2009-03-25
2
+ Don't encodeURIComponent() the authenticity_token, as it's not required and breaks non-alphanumeric chars.
3
+
4
+
1
5
  == 0.2.11.3 2009-03-25
2
6
  Updated deprecated session_id references to request.session_options[:id].
3
7
 
data/hammock.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hammock}
5
- s.version = "0.2.11.3"
5
+ s.version = "0.2.11.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Hoskings"]
data/lib/hammock.rb CHANGED
@@ -8,7 +8,7 @@ Dir.glob("#{File.dirname __FILE__}/hammock/**/*.rb").each {|dep|
8
8
  } if defined?(RAILS_ROOT) # Loading Hammock components under 'rake package' fails.
9
9
 
10
10
  module Hammock
11
- VERSION = '0.2.11.3'
11
+ VERSION = '0.2.11.4'
12
12
 
13
13
  def self.included base # :nodoc:
14
14
  Hammock.constants.map {|constant_name|
@@ -145,7 +145,7 @@ module Hammock
145
145
  if !protect_against_forgery? || (:get == (request_method || request.method))
146
146
  '{ }'
147
147
  else
148
- "{ '#{request_forgery_protection_token}': encodeURIComponent('#{escape_javascript(form_authenticity_token)}') }"
148
+ "{ '#{request_forgery_protection_token}': '#{escape_javascript(form_authenticity_token)}' }"
149
149
  end
150
150
  end
151
151
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benhoskings-hammock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11.3
4
+ version: 0.2.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hoskings