capybara 2.0.2 → 2.0.3

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.
@@ -13,10 +13,7 @@ module Capybara
13
13
  # @return [String] Normalized text
14
14
  #
15
15
  def normalize_whitespace(text)
16
- # http://en.wikipedia.org/wiki/Whitespace_character#Unicode
17
- # We should have a better reference.
18
- # See also http://stackoverflow.com/a/11758133/525872
19
- text.to_s.gsub(/[\s\u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]+/, ' ').strip
16
+ text.to_s.gsub(/[[:space:]]+/, ' ').strip
20
17
  end
21
18
 
22
19
  ##
@@ -3,7 +3,7 @@ require 'capybara/dsl'
3
3
 
4
4
  Capybara.app = Rack::Builder.new do
5
5
  map "/" do
6
- if Rails.version.to_f >= 3.0
6
+ if Gem::Version.new(Rails.version) >= Gem::Version.new("3.0")
7
7
  run Rails.application
8
8
  else # Rails 2
9
9
  use Rails::Rack::Static
@@ -1,3 +1,3 @@
1
1
  module Capybara
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
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: 2012-12-31 00:00:00.000000000 Z
12
+ date: 2013-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -362,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
362
  version: '0'
363
363
  requirements: []
364
364
  rubyforge_project: capybara
365
- rubygems_version: 1.8.24
365
+ rubygems_version: 1.8.25
366
366
  signing_key:
367
367
  specification_version: 3
368
368
  summary: Capybara aims to simplify the process of integration testing Rack applications,