jquery-file-upload 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +81 -7
- data/app/assets/stylesheets/jquery-file-upload.css.scss +3 -0
- data/lib/jquery-file-upload/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1de908c71b884a06c523f4981282cf962e2185f7
|
4
|
+
data.tar.gz: e8220270da7b0bd38408bb9c6e01bea92797d821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc47f23f0e750f679c8abffae3e023b6fc3bdf0393bac2397ed61aa28fd11446a18b20b07efc1dde9cf7dfa82edac93d99d07064f35f3caa70722f2f9433c009
|
7
|
+
data.tar.gz: 9a42abc37d15af4968ef2d7a91b033146684fa3bc170b20aa8ce29ae9a3d5344d24cb78ee60e8ee3e4d3d1d304019dd6e72f7651722f8e57fd1fe88143638a07
|
data/README.md
CHANGED
@@ -1,14 +1,88 @@
|
|
1
1
|
JQuery File Upload
|
2
2
|
=================
|
3
3
|
|
4
|
-
Based off Blueimp's [JQuery File Upload](https://github.com/blueimp/jQuery-File-Upload)
|
4
|
+
Based off Blueimp's [JQuery File Upload](https://github.com/blueimp/jQuery-File-Upload)
|
5
5
|
|
6
|
-
|
6
|
+
|
7
|
+
#### This is very much so a work in progress still.
|
8
|
+
Pre 1.0.0 is all a work in progress and I am committing as I go and as I add features and functionality. Please keep up with the [Full Change Log](https://github.com/mikestephens/jquery-file-upload/wiki/Change-Log) as the change log in the readme will only cover the last 5 releases.
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
gem 'jquery-file-upload-rails'
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install jquery-file-upload-rails
|
23
|
+
|
24
|
+
## Configuration
|
7
25
|
|
8
26
|
Create a new file called `/config/initializers/jquery_file_upload.rb`
|
9
27
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
28
|
+
```ruby
|
29
|
+
JqueryFileUpload.configure do |config|
|
30
|
+
config.video = true | false # For including the video javascript. Default is false.
|
31
|
+
config.audio = true | false # For including the audio javascript. Default is false.
|
32
|
+
config.angular_js = true | false # For including the angular javascript. Default is false.
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
## Usage for Basic Plus UI
|
37
|
+
|
38
|
+
Somewhere in your view require upload and download template
|
39
|
+
|
40
|
+
```haml
|
41
|
+
= render 'jquery_file_upload/basic_plus_ui/upload'
|
42
|
+
= render 'jquery_file_upload/basic_plus_ui/download'
|
43
|
+
```
|
44
|
+
|
45
|
+
And form to upload files, default uploading field is :file attribute, but you can change it with :as param
|
46
|
+
```haml
|
47
|
+
= render 'jquery_file_upload/basic_plus_ui/form', file: Image.new, as: :image
|
48
|
+
```
|
49
|
+
|
50
|
+
On the bottom load jquery libraries
|
51
|
+
```haml
|
52
|
+
= javascript_include_tag 'jquery-file-upload'
|
53
|
+
```
|
54
|
+
|
55
|
+
Or require it in application.js.coffee
|
56
|
+
```coffee
|
57
|
+
#= require jquery-file-upload
|
58
|
+
```
|
59
|
+
|
60
|
+
## Change Log
|
61
|
+
|
62
|
+
##### 0.0.4
|
63
|
+
- **FIXED** Configuration files now actually work and mean something!
|
64
|
+
- **BUG** The way the configuration works is a little bit hacky and I'd like to change it.
|
65
|
+
|
66
|
+
#### 0.0.3
|
67
|
+
- **ADD** Added the homepage option to the `.gemspec` file
|
68
|
+
|
69
|
+
#### 0.0.2
|
70
|
+
- **ADD** Added configuration settings for video, audio, and angular javascript
|
71
|
+
- **BUG** Configuration does not actually set anything
|
72
|
+
- **FIXED** Cleaned up the documentation a bit
|
73
|
+
- **FIXED** Javascript no longer 404s
|
74
|
+
|
75
|
+
#### 0.0.1
|
76
|
+
- Initial commit
|
77
|
+
- **BUG** The javascript 404s
|
78
|
+
|
79
|
+
|
80
|
+
[See the full change log](https://github.com/mikestephens/jquery-file-upload/wiki/Change-Log)
|
81
|
+
|
82
|
+
## Contributing
|
83
|
+
|
84
|
+
1. Fork it
|
85
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
86
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
87
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
88
|
+
5. Create new Pull Request
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-file-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Stephens
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- app/assets/javascripts/jquery-file-upload/jquery.fileupload.js
|
51
51
|
- app/assets/javascripts/jquery-file-upload/jquery.iframe-transport.js
|
52
52
|
- app/assets/javascripts/jquery-file-upload/vendor/jquery.ui.widget.js
|
53
|
+
- app/assets/stylesheets/jquery-file-upload.css.scss
|
53
54
|
- app/assets/stylesheets/jquery-file-upload/jquery.fileupload-noscript.css
|
54
55
|
- app/assets/stylesheets/jquery-file-upload/jquery.fileupload-ui-noscript.css
|
55
56
|
- app/assets/stylesheets/jquery-file-upload/jquery.fileupload-ui.css
|