diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..d87d4be6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..d7da1ea3 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in jquery-form-rails.gemspec +gemspec diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..c8ca3cb6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The jQuery Form plugin is dual licensed under the MIT and GPL licenses. + +MIT License + +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. diff --git a/README.md b/README.md index d89ea5f7..631694a9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +A rails gem that is forked directly from the jquery Form Plugin git repository to make easy updates for future versions. + +--- + #[jQuery Form Plugin](http://jquery.malsup.com/form/) ##Overview diff --git a/Rakefile b/Rakefile new file mode 100644 index 00000000..f57ae68a --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +#!/usr/bin/env rake +require "bundler/gem_tasks" diff --git a/jquery-form-rails.gemspec b/jquery-form-rails.gemspec new file mode 100644 index 00000000..0a6a6323 --- /dev/null +++ b/jquery-form-rails.gemspec @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- +require File.expand_path('../lib/jquery-form-rails/version', __FILE__) + +Gem::Specification.new do |gem| + gem.authors = ["Mike Alsup"] + gem.description = %q{The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX.} + gem.summary = %q{jQuery Form Plugin} + gem.homepage = "https://github.com/malsup/form" + + gem.files = `git ls-files`.split($\) + gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + gem.name = "jquery-form-rails" + gem.require_paths = ["lib"] + gem.version = Jquery::Form::Rails::VERSION + + gem.required_ruby_version = ">= 1.9.3" + gem.add_dependency "jquery-rails" +end diff --git a/lib/jquery-form-rails.rb b/lib/jquery-form-rails.rb new file mode 100644 index 00000000..694f9982 --- /dev/null +++ b/lib/jquery-form-rails.rb @@ -0,0 +1,10 @@ +require "jquery-form-rails/version" + +module Jquery + module Form + module Rails + class Engine < ::Rails::Engine + end + end + end +end diff --git a/lib/jquery-form-rails/version.rb b/lib/jquery-form-rails/version.rb new file mode 100644 index 00000000..e0ff681c --- /dev/null +++ b/lib/jquery-form-rails/version.rb @@ -0,0 +1,7 @@ +module Jquery + module Form + module Rails + VERSION = "3.18" + end + end +end diff --git a/jquery.form.js b/vendor/assets/javascripts/jquery.form.js similarity index 100% rename from jquery.form.js rename to vendor/assets/javascripts/jquery.form.js