pax_global_header 0000666 0000000 0000000 00000000064 12115673564 0014524 g ustar 00root root 0000000 0000000 52 comment=a5180e2d242d962715cd93e1c88acde1b1516027
ruby-remotipart-1.0.5/ 0000775 0000000 0000000 00000000000 12115673564 0014674 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/.document 0000664 0000000 0000000 00000000074 12115673564 0016514 0 ustar 00root root 0000000 0000000 README.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
ruby-remotipart-1.0.5/Gemfile 0000664 0000000 0000000 00000000321 12115673564 0016163 0 ustar 00root root 0000000 0000000 source 'https://rubygems.org'
group :development do
gem 'rake'
gem 'jeweler'
# This conflicts with jeweler gemspec generation,
# causes dependencies to be added to gemspec recursively
#gemspec
end
ruby-remotipart-1.0.5/Gemfile.lock 0000664 0000000 0000000 00000000413 12115673564 0017114 0 ustar 00root root 0000000 0000000 GEM
remote: https://rubygems.org/
specs:
git (1.2.5)
jeweler (1.8.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
rdoc
json (1.7.6)
rake (10.0.3)
rdoc (3.12)
json (~> 1.4)
PLATFORMS
ruby
DEPENDENCIES
jeweler
rake
ruby-remotipart-1.0.5/History.rdoc 0000664 0000000 0000000 00000005133 12115673564 0017210 0 ustar 00root root 0000000 0000000 = History
=== 1.0.5 / 2013-02-09
* Fixed gem dependency info.
=== 1.0.4 / 2013-02-09
* Fixed render override compatibility with other gems that override render (e.g. wicked_pdf)
=== 1.0.3 / 2013-02-08
* Fixed for jquery-rails v2.2.x (i.e. jQuery v1.9.x)
=== 1.0.2 / 2012-02-03
* Minor Enhancements
* Fixed rendering when JS response contains `textarea` tag
=== 1.0.1 / 2011-11-27
* Minor Enhancements
* Added support for non-post methods from Rails's `_method` hidden input.
* Fixed IE form submit-bubbling support for jquery 1.7
=== 1.0 / 2011-08-26
* New Features
* New dependency on simpler jquery.iframe-transport.js (no more form.js)
* New Rack middleware, making `remotipart_response` block obsolete in js.erb responses
* Better support for all requested ajax data-types
=== 0.4.2 / 2011-08-26
* Minor Enhancements
* Updated to jquery.form.js v2.84
=== 0.4.1 / 2011-07-12
* Minor Enhancements
* Updated README and docs
=== 0.4.0 / 2011-07-12
* New Features
* Added `remotipart_submitted?` helper method for controllers and views
* Added railtie and engine support to add remotipart and dependencies to Rails 3.0 (in the js :defaults) and 3.1 (in the asset pipeline) apps automatically
* Enhancements
* Restructured gem to integrate better with Rails apps
=== 0.3.0 / 2011-02-24
* New Features
* Added support for all data-type ajax submissions, not just 'script'.
* Made a little more flexible, so that separate js.erb response templates are no longer needed between remotipart (i.e. multipart) ajax form submissions and regular ajax form submissions, so multiple versions of the same form can now submit to the same action.
=== 0.2.1 / 2011-01-16
* Minor Enhancements
* Added support for passing text_area_tag options to remotipart_response. {GitHub Issue #7}[https://github.com/formasfunction/remotipart/issues#issue/7] - patch by {Todd Eichel}[https://github.com/tfe]
=== 0.2.0 / 2010-12-08
* Bug Fixes
* Added support for form action URLs that include GET params. {GitHub Issue #4}[https://github.com/formasfunction/remotipart/issues/closed#issue/4] - initial patch by ramontayag[https://github.com/ramontayag].
* Added proper HTML escaping for the remotipart_response textarea content. {GitHub Issue #5}[https://github.com/formasfunction/remotipart/issues/closed#issue/5] - patch by gucki[https://github.com/gucki].
=== 0.1.1 / 2010-08-27
* Bug Fixes
* Removed a call to the JS console. {GitHub Issue #1}[https://github.com/formasfunction/remotipart/issues/closed#issue/5] - reported by {Trevor Burnham}[https://github.com/TrevorBurnham].
=== 0.1.0 / 2010-04-09
* Initial Release
ruby-remotipart-1.0.5/LICENSE 0000664 0000000 0000000 00000002040 12115673564 0015675 0 ustar 00root root 0000000 0000000 Copyright (c) 2009 Greg Leppert
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ruby-remotipart-1.0.5/README.rdoc 0000664 0000000 0000000 00000012564 12115673564 0016512 0 ustar 00root root 0000000 0000000 = Remotipart
Remotipart is a Ruby on Rails gem enabling AJAX file uploads with jQuery in Rails 3.0 and Rails 3.1 remote forms.
This gem augments the native Rails jQuery remote form functionality enabling asynchronous file uploads with little to no modification to your application.
* {Homepage and Demos}[http://www.alfajango.com/blog/remotipart-rails-gem/]
* {How AJAX File Uploads Work}[http://www.alfajango.com/blog/ajax-file-uploads-with-the-iframe-method/]
== Dependencies
* {Rails 3}[http://github.com/rails/rails]
* {The jquery-rails gem}[http://rubygems.org/gems/jquery-rails], which really just installs {jQuery}[http://jquery.com] and the {Rails jQuery driver (jquery-ujs)}[https://github.com/rails/jquery-ujs]
== Installation
Your app should be using jquery-rails gem v1.0.12 or above (except jquery-rails v2.0.3 and v2.1.0; there was a {bug in jquery-rails}[https://github.com/rails/jquery-ujs/issues/271] which causes remotiarpt to not work for those versions).
If you're using an old version of the jquery-rails gem,
make sure you have a supported jquery-ujs (rails.js or jquery_ujs.js) version from {VERSION_COMPATIBILITY}[https://github.com/JangoSteve/remotipart/blob/master/VERSION_COMPATIBILITY.rdoc].
[1.]
Install the Remotipart gem
* Add this line to your GEMFILE (use the appropriate version from the compatibilty chart if needed)
gem 'remotipart', '~> 1.0'
* And run
bundle install
=== Rails 3.1
[2.]
The necessary js files will automatically be added to the asset pipeline, so add the following to app/assets/javascripts/application.js (right after //= require jquery_ujs):
//= require jquery.remotipart
=== Rails 3.0
[2.]
Run the Remotipart install generator to add jquery.iframe-transport.js and jquery.remotipart.js to public/javascripts/
rails g remotipart:install
[3.]
The necessary js files will be added to your app's javascript :defaults, so make sure the following is in your application layout:
<%= javascript_include_tag :defaults %>
== Usage
* For multipart / forms with file inputs, set your form_for to remote as you would for a normal ajax form:
:remote => true
* When Javascript is enabled in the user's browser, the form, including the file, will be submitted asynchronously to your controller with:
:format == 'js'
* If you need to determine if a particular request was made via a remotipart-enabled form...
* from your Rails controller or view:
if remotipart_submitted?
* from your javascript:
$(form).bind("ajax:success", function(){
if ( $(this).data('remotipartSubmitted') )
});
=== Example
sample_layout.html.erb
<%= form_for @sample, :html => { :multipart => true }, :remote => true do |f| %>
<%= f.label :file %>
<%= f.file_field :file %>
<%= f.submit %>
<% end %>
sample_controller.rb
def create
respond_to do |format|
if @sample.save
format.js
end
end
end
create.js.erb
// Display a Javascript alert
alert('success!');
<% if remotipart_submitted? %>
alert('submitted via remotipart')
<% else %>
alert('submitted via native jquery-ujs')
<% end %>
== Note on Patches/Pull Requests
If you have a general improvement, optimization, or refactoring, please {read this first}[https://github.com/formasfunction/remotipart/wiki/Refactoring-and-Improving-Remotipart].
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.
== Tests
Because of the nature of AJAX file uploads and certain browser restrictions, we could not simply create unit tests (using qunit or jasmine)
to test the file upload functionality of remotipart (since the browsers running those test suites won't allow us to set the target of a file
upload input using javascript). So, instead we created a demo Rails app using remotipart with all remotipart functionality tested using RSpec and Capybara.
* {Demo Rails App with Tests}[https://github.com/JangoSteve/Rails-jQuery-Demo/tree/remotipart]
* {Tests}[https://github.com/JangoSteve/Rails-jQuery-Demo/blob/remotipart/spec/integration/comments_spec.rb]
To run tests:
Clone the remotipart branch of the demo app
git clone -b remotipart git://github.com/JangoSteve/Rails-jQuery-Demo.git
Install the dependencies
bundle install
Run the tests
bundle exec rspec spec/
If you need to test your own changes to remotipart, just update the Gemfile with your own fork/branch of remotipart:
gem 'remotipart', :git => 'git://github.com/MY_FORK/remotipart.git', :branch => 'MY_BRANCH'
== Special Thanks
Thank you to Greg Leppert for writing the original version of this gem and providing inspiration for the gem in its current incarnation.
Thank you to {Adam Kerr}[https://github.com/ajrkerr] for helping move over to the simpler jQuery 1.6-compatible iframe-transport.js and for helping write the rack middleware, making remotipart even easier to use in Rails.
== Copyright
Copyright (c) 2011 {Steve Schwartz}[https://github.com/JangoSteve], {Greg Leppert}[https://github.com/leppert]. See LICENSE for details.
ruby-remotipart-1.0.5/Rakefile 0000664 0000000 0000000 00000003511 12115673564 0016341 0 ustar 00root root 0000000 0000000 require 'rubygems'
require 'rake'
require File.expand_path('../lib/remotipart/rails/version', __FILE__)
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "remotipart"
gem.summary = %Q{Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jquery-rails.}
gem.description = %Q{Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jquery-rails.
This gem augments the native Rails 3 jQuery-UJS remote form function enabling asynchronous file uploads with little to no modification to your application.
}
gem.email = %w{greg@formasfunction.com steve@alfajango.com}
gem.homepage = "http://opensource.alfajango.com/remotipart/"
gem.authors = ["Greg Leppert", "Steve Schwartz"]
gem.version = Remotipart::Rails::VERSION
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::RubygemsDotOrgTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
require 'rdoc/task'
require File.expand_path('../lib/remotipart/rails/version', __FILE__)
Rake::RDocTask.new do |rdoc|
version = Remotipart::Rails::VERSION
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "remotipart #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
ruby-remotipart-1.0.5/VERSION_COMPATIBILITY.rdoc 0000664 0000000 0000000 00000003703 12115673564 0020766 0 ustar 00root root 0000000 0000000 = Version Compatibility
+---------------------------------------------------------------------+
| Version of remotipart.js | is compatible with versions of rails.js* |
+---------------------------------------------------------------------+
| <= 0.3.1 | <= 498b35e24cdb14f2 |
| 0.3.2 | > 498b35e24cdb14f2, <= 7f2acc1811f62877 |
| 0.3.3 | > 7f2acc1811f62877, <= d2abd6f9df4e4a42 |
| >= 0.3.4 | > d2abd6f9df4e4a42 | (current version of rails.js)
+---------------------------------------------------------------------+
*rails.js versions (For a full list of Rails.js]versions and diffs, see {Rails jQuery UJS Changelog}[https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md]):
* {498b35e24cdb14f2}[https://github.com/rails/jquery-ujs/raw/498b35e24cdb14f2d94486e8a1f4a1f661091426/src/rails.js]
* {7f2acc1811f62877}[https://github.com/rails/jquery-ujs/raw/7f2acc1811f62877611e16451530728b5e13dbe7/src/rails.js]
* {d2abd6f9df4e4a42}[https://github.com/rails/jquery-ujs/raw/d2abd6f9df4e4a426c17c218b7d5e05004c768d0/src/rails.js]
* {current}[https://github.com/rails/jquery-ujs/raw/master/src/rails.js]
== Installation for Remotipart v0.3.x
Prerequisite: Make sure you have a supported jquery-ujs (rails.js) version from the previous section.
1. Install the Remotipart gem
* Add this line to your GEMFILE (add the correct version from previous section if needed)
gem 'remotipart'
* And run
bundle install
2. Run the Remotipart generator to add jquery.remotipart.js to public/javascripts/
rails g remotipart
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* jQuery and the Rails jQuery driver
<%= javascript_include_tag 'jquery-1.4.4.min', 'rails', 'jquery.form', 'jquery.remotipart' %>
ruby-remotipart-1.0.5/lib/ 0000775 0000000 0000000 00000000000 12115673564 0015442 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/generators/ 0000775 0000000 0000000 00000000000 12115673564 0017613 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/generators/remotipart/ 0000775 0000000 0000000 00000000000 12115673564 0022001 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/generators/remotipart/install/ 0000775 0000000 0000000 00000000000 12115673564 0023447 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/generators/remotipart/install/install_generator.rb 0000664 0000000 0000000 00000001464 12115673564 0027515 0 ustar 00root root 0000000 0000000 require 'rails'
module Remotipart
module Generators
class InstallGenerator < ::Rails::Generators::Base
desc "This generator installs IframeTransport.js #{Remotipart::Rails::IFRAMETRANSPORT_VERSION} and Remotipart #{Remotipart::Rails::VERSION}"
source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)
def install_iframe_transport
say_status "copying", "IframeTransport.js #{Remotipart::Rails::IFRAMETRANSPORT_VERSION}", :green
copy_file "jquery.iframe-transport.js", "public/javascripts/jquery.iframe-transport.js"
end
def install_remotipart
say_status "copying", "Remotipart.js #{Remotipart::Rails::VERSION}", :green
copy_file 'jquery.remotipart.js', 'public/javascripts/jquery.remotipart.js'
end
end
end
end
ruby-remotipart-1.0.5/lib/remotipart.rb 0000664 0000000 0000000 00000000271 12115673564 0020155 0 ustar 00root root 0000000 0000000 require 'remotipart/view_helper'
require 'remotipart/request_helper'
require 'remotipart/render_overrides'
require 'remotipart/middleware'
require 'remotipart/rails' if defined?(Rails)
ruby-remotipart-1.0.5/lib/remotipart/ 0000775 0000000 0000000 00000000000 12115673564 0017630 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/remotipart/middleware.rb 0000664 0000000 0000000 00000001762 12115673564 0022300 0 ustar 00root root 0000000 0000000 module Remotipart
# A middleware to look for our form parameters and
# encourage Rails to respond with the requested format
class Middleware
def initialize app
@app = app
end
def call env
# For some reason, in Rails 3.0, `env['rack.request.form_hash']`
# isn't populated unless we manually initialize a new Rack::Request
# and call the `POST` method on it
if ::Rails.version < "3.1"
Rack::Request.new(env).POST
end
params = env['rack.request.form_hash']
# This was using an iframe transport, and is therefore an XHR
# This is required if we're going to override the http_accept
if params and params['X-Requested-With'] == 'IFrame'
env['HTTP_X_REQUESTED_WITH'] = 'xmlhttprequest'
end
# Override the accepted format, because it isn't what we really want
if params and params['X-Http-Accept']
env['HTTP_ACCEPT'] = params['X-Http-Accept']
end
@app.call(env)
end
end
end
ruby-remotipart-1.0.5/lib/remotipart/rails.rb 0000664 0000000 0000000 00000000323 12115673564 0021265 0 ustar 00root root 0000000 0000000 module Remotipart
module Rails
if ::Rails.version < "3.1"
require 'remotipart/rails/railtie'
else
require 'remotipart/rails/engine'
end
require 'remotipart/rails/version'
end
end
ruby-remotipart-1.0.5/lib/remotipart/rails/ 0000775 0000000 0000000 00000000000 12115673564 0020742 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/lib/remotipart/rails/engine.rb 0000664 0000000 0000000 00000001134 12115673564 0022533 0 ustar 00root root 0000000 0000000 # Configure Rails 3.1
module Remotipart
module Rails
class Engine < ::Rails::Engine
initializer "remotipart.view_helper" do
ActionView::Base.send :include, RequestHelper
ActionView::Base.send :include, ViewHelper
end
initializer "remotipart.controller_helper" do
ActionController::Base.send :include, RequestHelper
ActionController::Base.send :include, RenderOverrides
end
initializer "remotipart.include_middelware" do
config.app_middleware.insert_after ActionDispatch::ParamsParser, Middleware
end
end
end
end
ruby-remotipart-1.0.5/lib/remotipart/rails/railtie.rb 0000664 0000000 0000000 00000003046 12115673564 0022723 0 ustar 00root root 0000000 0000000 # Configure Rails 3.0 to use form.js and remotipart
module Remotipart
module Rails
class Railtie < ::Rails::Railtie
config.before_configuration do
# Files to be added to :defaults
FILES = ['jquery.iframe-transport', 'jquery.remotipart']
# Figure out where rails.js (aka jquery_ujs.js if install by jquery-rails gem) is
# in the :defaults array
position = config.action_view.javascript_expansions[:defaults].index('rails') ||
config.action_view.javascript_expansions[:defaults].index('jquery_ujs')
# Merge form.js and then remotipart into :defaults array right after rails.js
if position && position > 0
config.action_view.javascript_expansions[:defaults].insert(position + 1, *FILES)
# If rails.js couldn't be found, it may have a custom filename, or not be in the :defaults.
# In that case, just try adding to the end of the :defaults array.
else
config.action_view.javascript_expansions[:defaults].push(*FILES)
end
end
initializer "remotipart.view_helper" do
ActionView::Base.send :include, RequestHelper
ActionView::Base.send :include, ViewHelper
end
initializer "remotipart.controller_helper" do
ActionController::Base.send :include, RequestHelper
ActionController::Base.send :include, RenderOverrides
end
initializer "remotipart.include_middelware" do
config.app_middleware.insert_after ActionDispatch::ParamsParser, Middleware
end
end
end
end
ruby-remotipart-1.0.5/lib/remotipart/rails/version.rb 0000664 0000000 0000000 00000000154 12115673564 0022754 0 ustar 00root root 0000000 0000000 module Remotipart
module Rails
VERSION = "1.0.5"
IFRAMETRANSPORT_VERSION = "07.05.2011"
end
end
ruby-remotipart-1.0.5/lib/remotipart/render_overrides.rb 0000664 0000000 0000000 00000001235 12115673564 0023517 0 ustar 00root root 0000000 0000000 module Remotipart
# Responder used to automagically wrap any non-xml replies in a text-area
# as expected by iframe-transport.
module RenderOverrides
include ActionView::Helpers::TagHelper
def self.included(base)
base.class_eval do
alias_method_chain :render, :remotipart
end
end
def render_with_remotipart *args
render_without_remotipart *args
if remotipart_submitted?
response.body = %{}
response.content_type = Mime::HTML
end
response_body
end
end
end
ruby-remotipart-1.0.5/lib/remotipart/request_helper.rb 0000664 0000000 0000000 00000000311 12115673564 0023177 0 ustar 00root root 0000000 0000000 module Remotipart
module RequestHelper
def remotipart_submitted?
params[:remotipart_submitted] ? true : false
end
alias :remotipart_requested? :remotipart_submitted?
end
end
ruby-remotipart-1.0.5/lib/remotipart/view_helper.rb 0000664 0000000 0000000 00000000317 12115673564 0022467 0 ustar 00root root 0000000 0000000 module Remotipart
module ViewHelper
#No longer used
#Retrained to prevent issues while updating
def remotipart_response(options = {}, &block)
with_output_buffer(&block)
end
end
end
ruby-remotipart-1.0.5/metadata.yml 0000664 0000000 0000000 00000005036 12115673564 0017203 0 ustar 00root root 0000000 0000000 --- !ruby/object:Gem::Specification
name: remotipart
version: !ruby/object:Gem::Version
version: 1.0.5
prerelease:
platform: ruby
authors:
- Greg Leppert
- Steve Schwartz
autorequire:
bindir: bin
cert_chain: []
date: 2013-02-09 00:00:00.000000000Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
requirement: &70318770174740 !ruby/object:Gem::Requirement
none: false
requirements:
- - ! '>='
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: *70318770174740
- !ruby/object:Gem::Dependency
name: jeweler
requirement: &70318770173180 !ruby/object:Gem::Requirement
none: false
requirements:
- - ! '>='
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: *70318770173180
description: ! "Remotipart is a Ruby on Rails gem enabling remote multipart forms
(AJAX style file uploads) with jquery-rails.\n This gem augments the native Rails
3 jQuery-UJS remote form function enabling asynchronous file uploads with little
to no modification to your application.\n "
email:
- greg@formasfunction.com
- steve@alfajango.com
executables: []
extensions: []
extra_rdoc_files:
- LICENSE
- README.rdoc
files:
- .document
- Gemfile
- Gemfile.lock
- History.rdoc
- LICENSE
- README.rdoc
- Rakefile
- VERSION_COMPATIBILITY.rdoc
- lib/generators/remotipart/install/install_generator.rb
- lib/remotipart.rb
- lib/remotipart/middleware.rb
- lib/remotipart/rails.rb
- lib/remotipart/rails/engine.rb
- lib/remotipart/rails/railtie.rb
- lib/remotipart/rails/version.rb
- lib/remotipart/render_overrides.rb
- lib/remotipart/request_helper.rb
- lib/remotipart/view_helper.rb
- remotipart.gemspec
- vendor/assets/javascripts/jquery.iframe-transport.js
- vendor/assets/javascripts/jquery.remotipart.js
homepage: http://opensource.alfajango.com/remotipart/
licenses: []
post_install_message:
rdoc_options: []
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
none: false
requirements:
- - ! '>='
- !ruby/object:Gem::Version
version: '0'
segments:
- 0
hash: -3595294083198888121
required_rubygems_version: !ruby/object:Gem::Requirement
none: false
requirements:
- - ! '>='
- !ruby/object:Gem::Version
version: '0'
requirements: []
rubyforge_project:
rubygems_version: 1.8.15
signing_key:
specification_version: 3
summary: Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style
file uploads) with jquery-rails.
test_files: []
ruby-remotipart-1.0.5/remotipart.gemspec 0000664 0000000 0000000 00000004316 12115673564 0020433 0 ustar 00root root 0000000 0000000 # Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "remotipart"
s.version = "1.0.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Greg Leppert", "Steve Schwartz"]
s.date = "2013-02-09"
s.description = "Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jquery-rails.\n This gem augments the native Rails 3 jQuery-UJS remote form function enabling asynchronous file uploads with little to no modification to your application.\n "
s.email = ["greg@formasfunction.com", "steve@alfajango.com"]
s.extra_rdoc_files = [
"LICENSE",
"README.rdoc"
]
s.files = [
".document",
"Gemfile",
"Gemfile.lock",
"History.rdoc",
"LICENSE",
"README.rdoc",
"Rakefile",
"VERSION_COMPATIBILITY.rdoc",
"lib/generators/remotipart/install/install_generator.rb",
"lib/remotipart.rb",
"lib/remotipart/middleware.rb",
"lib/remotipart/rails.rb",
"lib/remotipart/rails/engine.rb",
"lib/remotipart/rails/railtie.rb",
"lib/remotipart/rails/version.rb",
"lib/remotipart/render_overrides.rb",
"lib/remotipart/request_helper.rb",
"lib/remotipart/view_helper.rb",
"remotipart.gemspec",
"vendor/assets/javascripts/jquery.iframe-transport.js",
"vendor/assets/javascripts/jquery.remotipart.js"
]
s.homepage = "http://opensource.alfajango.com/remotipart/"
s.require_paths = ["lib"]
s.rubygems_version = "1.8.15"
s.summary = "Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jquery-rails."
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q, [">= 0"])
s.add_development_dependency(%q, [">= 0"])
else
s.add_dependency(%q, [">= 0"])
s.add_dependency(%q, [">= 0"])
end
else
s.add_dependency(%q, [">= 0"])
s.add_dependency(%q, [">= 0"])
end
end
ruby-remotipart-1.0.5/vendor/ 0000775 0000000 0000000 00000000000 12115673564 0016171 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/vendor/assets/ 0000775 0000000 0000000 00000000000 12115673564 0017473 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/vendor/assets/javascripts/ 0000775 0000000 0000000 00000000000 12115673564 0022024 5 ustar 00root root 0000000 0000000 ruby-remotipart-1.0.5/vendor/assets/javascripts/jquery.iframe-transport.js 0000664 0000000 0000000 00000022432 12115673564 0027200 0 ustar 00root root 0000000 0000000 // This [jQuery](http://jquery.com/) plugin implements an `