simple_form_fancy_uploads 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -1
- data/lib/simple_form_fancy_uploads/version.rb +1 -1
- metadata +30 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 466d7ee9f3957f6ee543e8254f49111aba22c116
|
4
|
+
data.tar.gz: e1968a2e0236f67312f3ce655338a35cb467107e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 074ab534e7e03b9629e2e57a335faebf567418f528de3c31f1a31264220548c0fbdd59716c57276d71b89c0062ca661e000de08c4ebccfa87d98489493edaddd
|
7
|
+
data.tar.gz: 7eaf1813b0cb97ed9bb2e698cb6a1f885452e78f853c81c1e5aab83a28f6baa63d8e4b2e2538b7ffedfd59df427c8892839511368fa2396db9fb756c406a4430
|
data/README.md
CHANGED
@@ -21,7 +21,8 @@ Simply add `gem 'simple_form_fancy_uploads'` to your `Gemfile` and run `bundle i
|
|
21
21
|
### Usage
|
22
22
|
|
23
23
|
Here's a basic example, as you can see, it's just a matter of specify the input as `:image_preview` or `:attachment_preview`. If using `:image_preview`, you can also specify a `:preview_version => :some_version_name` inside the `:input_html` Hash. This will let you to show a custom version generated with Carrierwave. Nice, isn't it?
|
24
|
-
|
24
|
+
|
25
|
+
If you need to fallback on Carrierwave's `#default_url` method to show a default image defined in your upload class, set `:use_default_url => true` in the options hash.
|
25
26
|
|
26
27
|
```
|
27
28
|
<%= simple_form_for @some_model do |f| %>
|
metadata
CHANGED
@@ -1,49 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_fancy_uploads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrea Pavoni
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 4.0.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: simple_form
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
+
version: 3.0.0
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: carrierwave
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
description: Use simple_form (>= v2.0) custom inputs to get image previews or a link
|
48
56
|
to uploaded file. Save time and code when you need useful file uploads.
|
49
57
|
email:
|
@@ -52,42 +60,35 @@ executables: []
|
|
52
60
|
extensions: []
|
53
61
|
extra_rdoc_files: []
|
54
62
|
files:
|
55
|
-
- lib/simple_form_fancy_uploads/image_preview_input.rb
|
56
63
|
- lib/simple_form_fancy_uploads/attachment_preview_input.rb
|
64
|
+
- lib/simple_form_fancy_uploads/image_preview_input.rb
|
57
65
|
- lib/simple_form_fancy_uploads/version.rb
|
58
|
-
- lib/tasks/simple_form_fancy_uploads_tasks.rake
|
59
66
|
- lib/simple_form_fancy_uploads.rb
|
67
|
+
- lib/tasks/simple_form_fancy_uploads_tasks.rake
|
60
68
|
- MIT-LICENSE
|
61
69
|
- Rakefile
|
62
70
|
- README.md
|
63
71
|
homepage: http://github.com/apeacox/simple_form_fancy_uploads
|
64
72
|
licenses: []
|
73
|
+
metadata: {}
|
65
74
|
post_install_message:
|
66
75
|
rdoc_options: []
|
67
76
|
require_paths:
|
68
77
|
- lib
|
69
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
79
|
requirements:
|
72
|
-
- -
|
80
|
+
- - '>='
|
73
81
|
- !ruby/object:Gem::Version
|
74
82
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: 414739297277227529
|
78
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
84
|
requirements:
|
81
|
-
- -
|
85
|
+
- - '>='
|
82
86
|
- !ruby/object:Gem::Version
|
83
87
|
version: '0'
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
hash: 414739297277227529
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.0.3
|
90
91
|
signing_key:
|
91
|
-
specification_version:
|
92
|
+
specification_version: 4
|
92
93
|
summary: simple_form custom inputs to get image/link previews with file uploads.
|
93
94
|
test_files: []
|