Skip to content

Commit f9bfb4f

Browse files
committed
first commit
0 parents  commit f9bfb4f

21 files changed

+2524
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.gem
2+
.bundle
3+
Gemfile.lock
4+
pkg/*

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "http://rubygems.org"
2+
3+
# Specify your gem's dependencies in jquery-fileupload-rails.gemspec
4+
gemspec

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# jQuery File Upload for Rails 3.1 Asset Pipeline
2+
3+
[jQuery-File-Plugin](https://github.com/blueimp/jQuery-File-Upload) is a file upload plugin written by [Sebastian Tschan](https://github.com/blueimp). jQuery File Upload features multiple file selection, drag&drop support, progress bars and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing.
4+
5+
jquery-fileupload-rails is a library that integrates jQuery File Upload for Rails 3.1 Asset Pipeline.
6+
7+
jquery-fileupload-rails is currently using jQuery-File-Plugin version 6.5.5.
8+
9+
## Installing Gem
10+
11+
gem "jquery-fileupload-rails"
12+
13+
## Using the javascripts
14+
15+
Require jquery-fileupload in your app/assets/application.js file.
16+
17+
//= require jquery-fileupload
18+
19+
The snippet above will add the following js files to your mainfest file.
20+
21+
//=require jquery-fileupload/vendor/jquery.ui.widget
22+
//=require jquery-fileupload/jquery.iframe-transport
23+
//=require jquery-fileupload/jquery.fileupload
24+
//=require jquery-fileupload/jquery.fileupload-ip
25+
//=require jquery-fileupload/jquery.fileupload-ui
26+
//=require jquery-fileupload/locale
27+
28+
## Using the stylesheet
29+
30+
Require the stylesheet file to app/assets/stylesheets/application.css
31+
32+
*= require jquery.fileupload-ui
33+
34+
## Changelog
35+
<ul>
36+
<li>Released gem v.0.1.0</li>
37+
</ul>
38+
39+
## Thanks
40+
Thanks [Sebastian Tschan](https://github.com/blueimp) for writing an awesome file upload plugin [jQuery-File-Plugin](https://github.com/blueimp/jQuery-File-Upload)
41+
42+
## License
43+
Copyright (c) 2012 Tors Dalid
44+
45+
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:
46+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
47+
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.

Rakefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env rake
2+
require 'bundler'
3+
Bundler::GemHelper.install_tasks
4+
5+
desc "Bundle the gem"
6+
task :bundle do
7+
sh('bundle install')
8+
sh 'gem build *.gemspec'
9+
sh 'gem install *.gem'
10+
sh 'rm *.gem'
11+
end
12+
13+
task(:default).clear
14+
task :default => :bundle
15+

jquery-fileupload-rails.gemspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- encoding: utf-8 -*-
2+
$:.push File.expand_path("../lib", __FILE__)
3+
require "jquery/fileupload/rails/version"
4+
5+
Gem::Specification.new do |s|
6+
s.name = "jquery-fileupload-rails"
7+
s.version = JQuery::FileUpload::Rails::VERSION
8+
s.authors = ["Tors Dalid"]
9+
s.email = ["cletedalid@gmail.com"]
10+
s.homepage = "https://github.com/tors/jquery-fileupload-rails"
11+
s.summary = %q{jQuery File Upload for Rails 3.1 Asset Pipeline}
12+
s.description = %q{jQuery File Upload by Sebastian Tschan integrated for Rails 3.1 Asset Pipeline}
13+
14+
s.rubyforge_project = "jquery-fileupload-rails"
15+
16+
s.files = Dir["lib/**/*"] + Dir["vendor/**/*"] + ["Rakefile", "README.md"]
17+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19+
s.require_paths = ["lib"]
20+
21+
s.add_dependency 'railties', '>= 3.1'
22+
s.add_dependency 'actionpack', '>= 3.1'
23+
s.add_development_dependency 'rails', '>= 3.1'
24+
end

lib/jquery-fileupload-rails.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module JQuery
2+
module FileUpload
3+
module Rails
4+
require 'jquery/fileupload/rails/engine' if defined?(Rails)
5+
end
6+
end
7+
end
8+
require 'jquery/fileupload/rails/upload' if defined?(Rails)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module JQuery
2+
module FileUpload
3+
module Rails
4+
class Engine < ::Rails::Engine
5+
end
6+
end
7+
end
8+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "jquery/fileupload/rails/engine"
2+
require "jquery/fileupload/rails/version"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module JQuery
2+
module FileUpload
3+
module Rails
4+
VERSION = "0.0.1"
5+
end
6+
end
7+
end

vendor/assets/images/loading.gif

3.81 KB
Loading

0 commit comments

Comments
 (0)