prototype-rails 3.1.0 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source :rubygems
2
2
 
3
- gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-1-0'
4
- gem 'mocha'
3
+ gemspec
@@ -546,7 +546,15 @@ module ActionView
546
546
  end
547
547
 
548
548
  def with_formats(*args)
549
- @context ? @context.lookup_context.update_details(:formats => args) { yield } : yield
549
+ return yield unless @context
550
+
551
+ lookup = @context.lookup_context
552
+ begin
553
+ old_formats, lookup.formats = lookup.formats, args
554
+ yield
555
+ ensure
556
+ lookup.formats = old_formats
557
+ end
550
558
  end
551
559
 
552
560
  def javascript_object_for(object)
@@ -1,3 +1,4 @@
1
+ require 'active_support/core_ext/module/aliasing'
1
2
  require 'action_controller/vendor/html-scanner'
2
3
  require 'action_dispatch/testing/assertions'
3
4
  require 'action_dispatch/testing/assertions/selector'
@@ -104,7 +104,7 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
104
104
 
105
105
  def self.build_app(routes = nil)
106
106
  RoutedRackApp.new(routes || ActionDispatch::Routing::RouteSet.new) do |middleware|
107
- middleware.use "ActionDispatch::ShowExceptions"
107
+ middleware.use "ActionDispatch::ShowExceptions", ActionDispatch::PublicExceptions.new("#{FIXTURE_LOAD_PATH}/public")
108
108
  middleware.use "ActionDispatch::Callbacks"
109
109
  middleware.use "ActionDispatch::ParamsParser"
110
110
  middleware.use "ActionDispatch::Cookies"
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'abstract_unit'
2
4
 
3
5
  class AssertSelectTest < ActionController::TestCase
@@ -47,7 +49,7 @@ class AssertSelectTest < ActionController::TestCase
47
49
  assert_select "#2"
48
50
  end
49
51
  end
50
-
52
+
51
53
  # With multiple results.
52
54
  def test_assert_select_from_rjs_with_multiple_results
53
55
  render_rjs do |page|
@@ -121,19 +123,22 @@ class AssertSelectTest < ActionController::TestCase
121
123
 
122
124
  def test_assert_select_rjs_with_unicode
123
125
  # Test that non-ascii characters (which are converted into \uXXXX in RJS) are decoded correctly.
126
+
127
+ unicode = "\343\203\201\343\202\261\343\203\203\343\203\210"
124
128
  render_rjs do |page|
125
- page.replace "test", "<div id=\"1\">\343\203\201\343\202\261\343\203\203\343\203\210</div>"
129
+ page.replace "test", %(<div id="1">#{unicode}</div>)
126
130
  end
131
+
127
132
  assert_select_rjs do
128
133
  str = "#1"
129
- assert_select str, :text => "\343\203\201\343\202\261\343\203\203\343\203\210"
130
- assert_select str, "\343\203\201\343\202\261\343\203\203\343\203\210"
134
+ assert_select str, :text => unicode
135
+ assert_select str, unicode
131
136
  if str.respond_to?(:force_encoding)
132
137
  assert_select str, /\343\203\201..\343\203\210/u
133
138
  assert_raise(Assertion) { assert_select str, /\343\203\201.\343\203\210/u }
134
139
  else
135
- assert_select str, Regexp.new("\343\203\201..\343\203\210",0,'U')
136
- assert_raise(Assertion) { assert_select str, Regexp.new("\343\203\201.\343\203\210",0,'U') }
140
+ assert_select str, Regexp.new("\343\203\201..\343\203\210", 0, 'U')
141
+ assert_raise(Assertion) { assert_select str, Regexp.new("\343\203\201.\343\203\210", 0, 'U') }
137
142
  end
138
143
  end
139
144
  end
@@ -1 +1 @@
1
- page.call "document.write", render(:partial => "one.html.erb")
1
+ page.call "document.write", render(:partial => 'one')
metadata CHANGED
@@ -1,47 +1,44 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: prototype-rails
3
- version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease:
6
- segments:
7
- - 3
8
- - 1
9
- - 0
10
- version: 3.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.0.rc1
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Xavier Noria
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-31 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &69515510 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 5
30
- segments:
31
- - 3
32
- - 1
33
- version: "3.1"
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.0.rc
34
22
  type: :runtime
35
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *69515510
25
+ - !ruby/object:Gem::Dependency
26
+ name: mocha
27
+ requirement: &69514670 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *69514670
36
36
  description:
37
37
  email: fxn@hashref.com
38
38
  executables: []
39
-
40
39
  extensions: []
41
-
42
40
  extra_rdoc_files: []
43
-
44
- files:
41
+ files:
45
42
  - README
46
43
  - Rakefile
47
44
  - Gemfile
@@ -92,39 +89,28 @@ files:
92
89
  - test/fixtures/test/_two.html.erb
93
90
  - test/fixtures/respond_with/using_resource.js.rjs
94
91
  - test/javascript_helper_test.rb
95
- has_rdoc: true
96
92
  homepage: http://github.com/rails/prototype-rails
97
93
  licenses: []
98
-
99
94
  post_install_message:
100
95
  rdoc_options: []
101
-
102
- require_paths:
96
+ require_paths:
103
97
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
98
+ required_ruby_version: !ruby/object:Gem::Requirement
105
99
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
- version: "0"
113
- required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
105
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
106
+ requirements:
107
+ - - ! '>'
108
+ - !ruby/object:Gem::Version
109
+ version: 1.3.1
122
110
  requirements: []
123
-
124
111
  rubyforge_project:
125
- rubygems_version: 1.6.2
112
+ rubygems_version: 1.8.10
126
113
  signing_key:
127
114
  specification_version: 3
128
115
  summary: Prototype, Scriptaculous, and RJS for Ruby on Rails
129
116
  test_files: []
130
-