remotipart 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/generators/templates/jquery.remotipart.js +5 -1
- data/lib/remotipart.rb +1 -1
- data/remotipart.gemspec +17 -19
- metadata +10 -8
- data/.gitignore +0 -21
data/README.rdoc
CHANGED
@@ -17,7 +17,7 @@ This gem augments the native Rails jQuery remote form function enabling asynchro
|
|
17
17
|
2. Run the Remotipart generator to add jquery.remotipart.js to public/javascripts/
|
18
18
|
rails g remotipart
|
19
19
|
3. Add the Javascript files for jQuery, the Rails jQuery driver, jQuery Form plugin, and Remotipart to your template, making sure to include jquery.remotipart.js *after* the jQuery and the Rails jQuery driver
|
20
|
-
<%= javascript_include_tag 'jquery-1.4.
|
20
|
+
<%= javascript_include_tag 'jquery-1.4.4.min', 'rails', 'jquery.form', 'jquery.remotipart' %>
|
21
21
|
|
22
22
|
== Usage
|
23
23
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -11,7 +11,11 @@ jQuery(function ($) {
|
|
11
11
|
throw "No URL specified for remote call (action must be present).";
|
12
12
|
} else {
|
13
13
|
if (el.triggerAndReturn('ajax:before')) {
|
14
|
-
|
14
|
+
|
15
|
+
url = url.split('?'); // split on GET params
|
16
|
+
if(url[0].substr(-3) != '.js') url[0] += '.js'; // force rails to respond to respond to the request with :format = js
|
17
|
+
url = url.join('?'); // join on GET params
|
18
|
+
|
15
19
|
el.ajaxSubmit({
|
16
20
|
url: url,
|
17
21
|
dataType: 'script',
|
data/lib/remotipart.rb
CHANGED
data/remotipart.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{remotipart}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Greg Leppert"]
|
12
|
-
s.date = %q{2010-08
|
12
|
+
s.date = %q{2010-12-08}
|
13
13
|
s.description = %q{Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery.
|
14
14
|
This gem augments the native Rails jQuery remote form function enabling asynchronous file uploads with little to no modification to your application.
|
15
15
|
It requires jQuery (http://jquery.com), the Rails jQuery driver (http://github.com/rails/jquery-ujs), and the jQuery Form plugin (http://jquery.malsup.com/form/).
|
@@ -17,37 +17,35 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.email = %q{greg@formasfunction.com}
|
18
18
|
s.extra_rdoc_files = [
|
19
19
|
"LICENSE",
|
20
|
-
|
20
|
+
"README.rdoc"
|
21
21
|
]
|
22
22
|
s.files = [
|
23
23
|
".document",
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
"test/test_remotipart.rb"
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/generators/remotipart_generator.rb",
|
29
|
+
"lib/generators/templates/jquery.remotipart.js",
|
30
|
+
"lib/remotipart.rb",
|
31
|
+
"remotipart.gemspec",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_remotipart.rb"
|
35
34
|
]
|
36
35
|
s.homepage = %q{http://github.com/formasfunction/remotipart}
|
37
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
38
36
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.3.
|
37
|
+
s.rubygems_version = %q{1.3.7}
|
40
38
|
s.summary = %q{Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery.}
|
41
39
|
s.test_files = [
|
42
40
|
"test/helper.rb",
|
43
|
-
|
41
|
+
"test/test_remotipart.rb"
|
44
42
|
]
|
45
43
|
|
46
44
|
if s.respond_to? :specification_version then
|
47
45
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
46
|
s.specification_version = 3
|
49
47
|
|
50
|
-
if Gem::Version.new(Gem::
|
48
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
49
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
52
50
|
else
|
53
51
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Greg Leppert
|
@@ -14,13 +14,14 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08
|
17
|
+
date: 2010-12-08 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: thoughtbot-shoulda
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -40,7 +41,6 @@ extra_rdoc_files:
|
|
40
41
|
- README.rdoc
|
41
42
|
files:
|
42
43
|
- .document
|
43
|
-
- .gitignore
|
44
44
|
- LICENSE
|
45
45
|
- README.rdoc
|
46
46
|
- Rakefile
|
@@ -56,11 +56,12 @@ homepage: http://github.com/formasfunction/remotipart
|
|
56
56
|
licenses: []
|
57
57
|
|
58
58
|
post_install_message:
|
59
|
-
rdoc_options:
|
60
|
-
|
59
|
+
rdoc_options: []
|
60
|
+
|
61
61
|
require_paths:
|
62
62
|
- lib
|
63
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
64
65
|
requirements:
|
65
66
|
- - ">="
|
66
67
|
- !ruby/object:Gem::Version
|
@@ -68,6 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
69
|
- 0
|
69
70
|
version: "0"
|
70
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
71
73
|
requirements:
|
72
74
|
- - ">="
|
73
75
|
- !ruby/object:Gem::Version
|
@@ -77,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
requirements: []
|
78
80
|
|
79
81
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.3.
|
82
|
+
rubygems_version: 1.3.7
|
81
83
|
signing_key:
|
82
84
|
specification_version: 3
|
83
85
|
summary: Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery.
|