right-rails 0.3.0 → 0.3.1
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/README.textile
CHANGED
@@ -9,6 +9,7 @@ organization.
|
|
9
9
|
|
10
10
|
h2. Features
|
11
11
|
|
12
|
+
|
12
13
|
* Lightning fast RightJS library
|
13
14
|
* Transparent Prototype/Scriptaculous helpers replacement
|
14
15
|
* More powerful and flexible new JavaScript generator for RJS
|
@@ -42,8 +43,22 @@ You also will have an ajax-friendly scaffold generator
|
|
42
43
|
|
43
44
|
@script/generate right_scaffold Zing@
|
44
45
|
|
46
|
+
h4. Ruby Gem
|
47
|
+
|
48
|
+
Ruby gem version is now also available. You need to add gemcutter to the list of sources
|
49
|
+
|
50
|
+
<pre><code>gem sources -a http://gemcutter.org</code></pre>
|
51
|
+
|
52
|
+
Install the gem:
|
53
|
+
|
54
|
+
<pre><code>gem install right-rails</code></pre>
|
55
|
+
|
56
|
+
Add the gem into your @config/environment.rb@ file
|
57
|
+
|
58
|
+
<pre><code>Rails::Initializer.run do |config|
|
59
|
+
config.gem 'right-rails'
|
60
|
+
end</code></pre>
|
45
61
|
|
46
|
-
The rubygem is still coming soon.
|
47
62
|
|
48
63
|
|
49
64
|
|
@@ -97,7 +97,7 @@ module RightRails::Helpers::Basic
|
|
97
97
|
|
98
98
|
value = case value.class.name.to_sym
|
99
99
|
when :NilClass then 'null'
|
100
|
-
when :Symbol then "#{value}"
|
100
|
+
when :Symbol then c_key == 'method' ? "'#{value}'" : "#{value}"
|
101
101
|
when :String then "'#{value}'"
|
102
102
|
else value.inspect
|
103
103
|
end
|
@@ -110,9 +110,9 @@ protected
|
|
110
110
|
if XHR_OPTION_KEYS.include?(key.to_s)
|
111
111
|
xhr_options[key] = case value.class.name.to_sym
|
112
112
|
when :NilClass then 'null'
|
113
|
-
when :Symbol then "#{value}"
|
114
113
|
when :String then "'#{value}'"
|
115
|
-
|
114
|
+
when :Symbol then key.to_s == 'method' ? "'#{value}'" : "#{value}"
|
115
|
+
else value.inspect
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -163,4 +163,4 @@ protected
|
|
163
163
|
xhr
|
164
164
|
end
|
165
165
|
|
166
|
-
end
|
166
|
+
end
|
@@ -22,6 +22,11 @@ describe RightRails::Helpers::Rails do
|
|
22
22
|
"Xhr.load('/foo',{method:'put'})"
|
23
23
|
end
|
24
24
|
|
25
|
+
it "should accept the method parameter as a symbol too" do
|
26
|
+
remote_function(:url => '/foo', :method => :post).should ==
|
27
|
+
"Xhr.load('/foo',{method:'post'})"
|
28
|
+
end
|
29
|
+
|
25
30
|
it "should let you specify the spinners" do
|
26
31
|
remote_function(:url => '/foo', :spinner => 'my-spinner').should ==
|
27
32
|
"Xhr.load('/foo',{spinner:'my-spinner'})"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolay Nemshilov
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-29 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: RightRails provides support of the RightJS framework
|
16
|
+
description: RightRails provides support of the RightJS framework with transparent Rails/Prototype replacements, plus it has a new RJS processor, the most common ajax operations interface, RightJS own features support, remote files uploading handler, etc.
|
17
17
|
email: nemshilov@gmail.com
|
18
18
|
executables: []
|
19
19
|
|
@@ -99,8 +99,7 @@ has_rdoc: true
|
|
99
99
|
homepage: http://github.com/MadRabbit/right-rails
|
100
100
|
licenses: []
|
101
101
|
|
102
|
-
post_install_message:
|
103
|
-
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< RIGHT RAILS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n Please run the following command to copy RightJS scripts and modules in place\n \n script/generate right_rails\n\n Cheers!\n \n "
|
102
|
+
post_install_message:
|
104
103
|
rdoc_options: []
|
105
104
|
|
106
105
|
require_paths:
|