From 2990fb2deb7b6d382f75df47313aec70438bb474 Mon Sep 17 00:00:00 2001 From: Zied Nouira Date: Sat, 13 Oct 2012 11:10:55 -0300 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d89ea5f7..c6825903 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +A port to rails gem base on the jquery Form Plugin git repository + +--- + #[jQuery Form Plugin](http://jquery.malsup.com/form/) ##Overview From 9a831c611f9748a40dd2a25f8610655a7f6e9b34 Mon Sep 17 00:00:00 2001 From: Zied Date: Sat, 13 Oct 2012 10:37:04 -0400 Subject: [PATCH 2/2] Creating a gem for jquery form. Initial commit. --- .gitignore | 17 ++++++++++++++ Gemfile | 4 ++++ LICENSE | 22 +++++++++++++++++++ README.md | 2 +- Rakefile | 2 ++ jquery-form-rails.gemspec | 19 ++++++++++++++++ lib/jquery-form-rails.rb | 10 +++++++++ lib/jquery-form-rails/version.rb | 7 ++++++ .../assets/javascripts/jquery.form.js | 0 9 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 Rakefile create mode 100644 jquery-form-rails.gemspec create mode 100644 lib/jquery-form-rails.rb create mode 100644 lib/jquery-form-rails/version.rb rename jquery.form.js => vendor/assets/javascripts/jquery.form.js (100%) 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 c6825903..631694a9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -A port to rails gem base on the jquery Form Plugin git repository +A rails gem that is forked directly from the jquery Form Plugin git repository to make easy updates for future versions. --- 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