simple-image-uploader 0.1.3 → 0.1.4
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.
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# simple-image-uploader
|
2
2
|
|
3
|
-
simple-image-uploader
|
3
|
+
[](https://codeclimate.com/github/designium/simple-image-uploader)
|
4
|
+
|
5
|
+
simple-image-uploader is a Rails 3 generator that creates a small scaffold class called Image. It enables image upload feature to your web app at no time.
|
4
6
|
|
5
7
|
# Demo
|
6
8
|
|
@@ -6,14 +6,13 @@ module SimpleImageUploader
|
|
6
6
|
def create_image_model
|
7
7
|
generate("model", "image description:string file:string")
|
8
8
|
rake("db:migrate")
|
9
|
+
remove_file "image.rb", "app/models/image.rb"
|
9
10
|
end
|
10
11
|
|
11
12
|
def generate_image_everything
|
12
13
|
# Copy the controllers for user, sessions and password_reset
|
13
14
|
copy_file "images_controller.rb", "app/controllers/images_controller.rb"
|
14
|
-
copy_file "application_controller.rb", "app/controllers/application_controller.rb"
|
15
15
|
copy_file "file_uploader.rb", "app/uploaders/file_uploader.rb"
|
16
|
-
remove_file "image.rb", "app/models/image.rb"
|
17
16
|
copy_file "image.rb", "app/models/image.rb"
|
18
17
|
directory "images", "app/views/images/"
|
19
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-image-uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'simple-image-uploader creates Image scaffold with file upload and
|
15
15
|
removal. It is based on carrierwave and mini-imagegick gems. Image model, controller
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
61
|
+
rubygems_version: 1.8.23
|
62
62
|
signing_key:
|
63
63
|
specification_version: 3
|
64
64
|
summary: simple-image-uploader allows you to upload images to your Rails 3 app immediately
|