prototype-rails 3.2.0.rc1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/test/assert_select_test.rb +6 -11
- data/test/fixtures/test/render_explicit_html_template.js.rjs +1 -1
- metadata +38 -46
data/Gemfile
CHANGED
data/test/assert_select_test.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
require 'abstract_unit'
|
4
2
|
|
5
3
|
class AssertSelectTest < ActionController::TestCase
|
@@ -49,7 +47,7 @@ class AssertSelectTest < ActionController::TestCase
|
|
49
47
|
assert_select "#2"
|
50
48
|
end
|
51
49
|
end
|
52
|
-
|
50
|
+
|
53
51
|
# With multiple results.
|
54
52
|
def test_assert_select_from_rjs_with_multiple_results
|
55
53
|
render_rjs do |page|
|
@@ -123,22 +121,19 @@ class AssertSelectTest < ActionController::TestCase
|
|
123
121
|
|
124
122
|
def test_assert_select_rjs_with_unicode
|
125
123
|
# 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"
|
128
124
|
render_rjs do |page|
|
129
|
-
page.replace "test",
|
125
|
+
page.replace "test", "<div id=\"1\">\343\203\201\343\202\261\343\203\203\343\203\210</div>"
|
130
126
|
end
|
131
|
-
|
132
127
|
assert_select_rjs do
|
133
128
|
str = "#1"
|
134
|
-
assert_select str, :text =>
|
135
|
-
assert_select str,
|
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"
|
136
131
|
if str.respond_to?(:force_encoding)
|
137
132
|
assert_select str, /\343\203\201..\343\203\210/u
|
138
133
|
assert_raise(Assertion) { assert_select str, /\343\203\201.\343\203\210/u }
|
139
134
|
else
|
140
|
-
assert_select str, Regexp.new("\343\203\201..\343\203\210",
|
141
|
-
assert_raise(Assertion) { assert_select str, Regexp.new("\343\203\201.\343\203\210",
|
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') }
|
142
137
|
end
|
143
138
|
end
|
144
139
|
end
|
@@ -1 +1 @@
|
|
1
|
-
page.call "document.write", render(:partial =>
|
1
|
+
page.call "document.write", render(:partial => "one.html.erb")
|
metadata
CHANGED
@@ -1,38 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prototype-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0
|
5
|
-
prerelease:
|
4
|
+
version: 3.2.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Xavier Noria
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.0.rc
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *69515510
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: mocha
|
27
|
-
requirement: &69514670 !ruby/object:Gem::Requirement
|
15
|
+
name: railties
|
16
|
+
requirement: &2156378720 !ruby/object:Gem::Requirement
|
28
17
|
none: false
|
29
18
|
requirements:
|
30
19
|
- - ! '>='
|
31
20
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
-
|
21
|
+
version: 3.2.0.beta
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '5.0'
|
25
|
+
type: :runtime
|
34
26
|
prerelease: false
|
35
|
-
version_requirements: *
|
27
|
+
version_requirements: *2156378720
|
36
28
|
description:
|
37
29
|
email: fxn@hashref.com
|
38
30
|
executables: []
|
@@ -42,53 +34,53 @@ files:
|
|
42
34
|
- README
|
43
35
|
- Rakefile
|
44
36
|
- Gemfile
|
45
|
-
- lib/action_view/template/handlers/rjs.rb
|
46
|
-
- lib/action_view/helpers/scriptaculous_helper.rb
|
47
37
|
- lib/action_view/helpers/prototype_helper.rb
|
48
|
-
- lib/
|
49
|
-
- lib/
|
38
|
+
- lib/action_view/helpers/scriptaculous_helper.rb
|
39
|
+
- lib/action_view/template/handlers/rjs.rb
|
50
40
|
- lib/prototype-rails/javascript_helper.rb
|
41
|
+
- lib/prototype-rails/on_load_action_controller.rb
|
42
|
+
- lib/prototype-rails/on_load_action_view.rb
|
51
43
|
- lib/prototype-rails/renderers.rb
|
52
44
|
- lib/prototype-rails/rendering.rb
|
53
|
-
- lib/prototype-rails/on_load_action_view.rb
|
54
45
|
- lib/prototype-rails/selector_assertions.rb
|
46
|
+
- lib/prototype-rails.rb
|
47
|
+
- vendor/assets/javascripts/controls.js
|
55
48
|
- vendor/assets/javascripts/dragdrop.js
|
49
|
+
- vendor/assets/javascripts/effects.js
|
56
50
|
- vendor/assets/javascripts/prototype.js
|
57
51
|
- vendor/assets/javascripts/prototype_ujs.js
|
58
|
-
- vendor/assets/javascripts/controls.js
|
59
|
-
- vendor/assets/javascripts/effects.js
|
60
|
-
- test/render_other_test.rb
|
61
|
-
- test/lib/controller/fake_models.rb
|
62
52
|
- test/abstract_unit.rb
|
63
|
-
- test/template/scriptaculous_helper_test.rb
|
64
|
-
- test/template/prototype_helper_test.rb
|
65
|
-
- test/template/render_test.rb
|
66
53
|
- test/assert_select_test.rb
|
67
54
|
- test/controller/caching_test.rb
|
55
|
+
- test/controller/content_type_test.rb
|
56
|
+
- test/controller/mime_responds_test.rb
|
68
57
|
- test/controller/new_base/content_type_test.rb
|
69
58
|
- test/controller/new_base/render_rjs_test.rb
|
70
|
-
- test/controller/mime_responds_test.rb
|
71
|
-
- test/controller/content_type_test.rb
|
72
59
|
- test/controller/render_js_test.rb
|
73
|
-
- test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs
|
74
|
-
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
75
60
|
- test/fixtures/functional_caching/_partial.erb
|
61
|
+
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
62
|
+
- test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs
|
76
63
|
- test/fixtures/old_content_type/render_default_for_rjs.rjs
|
77
|
-
- test/fixtures/respond_to/using_defaults_with_type_list.js.rjs
|
78
|
-
- test/fixtures/respond_to/layouts/standard.html.erb
|
79
64
|
- test/fixtures/respond_to/all_types_with_layout.js.rjs
|
65
|
+
- test/fixtures/respond_to/layouts/standard.html.erb
|
80
66
|
- test/fixtures/respond_to/using_defaults.js.rjs
|
81
|
-
- test/fixtures/
|
82
|
-
- test/fixtures/
|
67
|
+
- test/fixtures/respond_to/using_defaults_with_type_list.js.rjs
|
68
|
+
- test/fixtures/respond_with/using_resource.js.rjs
|
69
|
+
- test/fixtures/test/_one.html.erb
|
83
70
|
- test/fixtures/test/_partial.html.erb
|
84
|
-
- test/fixtures/test/enum_rjs_test.rjs
|
85
|
-
- test/fixtures/test/render_explicit_html_template.js.rjs
|
86
71
|
- test/fixtures/test/_partial.js.erb
|
87
|
-
- test/fixtures/test/greeting.js.rjs
|
88
|
-
- test/fixtures/test/_one.html.erb
|
89
72
|
- test/fixtures/test/_two.html.erb
|
90
|
-
- test/fixtures/
|
73
|
+
- test/fixtures/test/delete_with_js.rjs
|
74
|
+
- test/fixtures/test/enum_rjs_test.rjs
|
75
|
+
- test/fixtures/test/greeting.js.rjs
|
76
|
+
- test/fixtures/test/render_explicit_html_template.js.rjs
|
77
|
+
- test/fixtures/test/render_implicit_html_template.js.rjs
|
91
78
|
- test/javascript_helper_test.rb
|
79
|
+
- test/lib/controller/fake_models.rb
|
80
|
+
- test/render_other_test.rb
|
81
|
+
- test/template/prototype_helper_test.rb
|
82
|
+
- test/template/render_test.rb
|
83
|
+
- test/template/scriptaculous_helper_test.rb
|
92
84
|
homepage: http://github.com/rails/prototype-rails
|
93
85
|
licenses: []
|
94
86
|
post_install_message:
|
@@ -104,9 +96,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
97
|
none: false
|
106
98
|
requirements:
|
107
|
-
- - ! '
|
99
|
+
- - ! '>='
|
108
100
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
101
|
+
version: '0'
|
110
102
|
requirements: []
|
111
103
|
rubyforge_project:
|
112
104
|
rubygems_version: 1.8.10
|