dynamic_image 0.9.5 → 0.9.6
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.rdoc +1 -1
- data/Rakefile +22 -22
- data/VERSION +1 -1
- data/app/controllers/images_controller.rb +64 -64
- data/app/models/image.rb +187 -187
- data/config/routes.rb +5 -5
- data/dynamic_image.gemspec +30 -36
- data/init.rb +1 -1
- data/lib/binary_storage.rb +16 -16
- data/lib/binary_storage/active_record_extensions.rb +127 -127
- data/lib/binary_storage/blob.rb +100 -100
- data/lib/dynamic_image.rb +54 -54
- data/lib/dynamic_image/active_record_extensions.rb +49 -49
- data/lib/dynamic_image/engine.rb +3 -3
- data/lib/dynamic_image/filterset.rb +72 -72
- data/lib/dynamic_image/helper.rb +102 -102
- data/lib/generators/dynamic_image/USAGE +0 -1
- data/lib/generators/dynamic_image/dynamic_image_generator.rb +27 -27
- metadata +10 -15
- data/test/dynamic_image_test.rb +0 -8
- data/test/test_helper.rb +0 -3
@@ -4,35 +4,35 @@ require 'rails/generators'
|
|
4
4
|
require 'rails/generators/migration'
|
5
5
|
|
6
6
|
class DynamicImageGenerator < Rails::Generators::Base
|
7
|
-
|
8
|
-
|
7
|
+
|
8
|
+
include Rails::Generators::Migration
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
class << self
|
11
|
+
def source_root
|
12
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
13
|
+
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
def next_migration_number(dirname)
|
16
|
+
if ActiveRecord::Base.timestamped_migrations
|
17
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
18
|
+
else
|
19
|
+
"%.3d" % (current_migration_number(dirname) + 1)
|
20
|
+
end
|
21
|
+
end
|
22
22
|
|
23
|
-
|
23
|
+
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
def migrations
|
26
|
+
migration_template 'migrations/create_images.rb', 'db/migrate/create_images.rb'
|
27
|
+
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
end
|
29
|
+
# def manifest
|
30
|
+
# record do |m|
|
31
|
+
# #m.file 'controllers/images_controller.rb', 'app/controllers/images_controller.rb'
|
32
|
+
# #m.file 'models/image.rb', 'app/models/image.rb'
|
33
|
+
# #m.file 'models/binary.rb', 'app/models/binary.rb'
|
34
|
+
# m.file 'migrations/20090909231629_create_binaries.rb', 'db/migrate/20090909231629_create_binaries.rb'
|
35
|
+
# m.file 'migrations/20090909231630_create_images.rb', 'db/migrate/20090909231630_create_images.rb'
|
36
|
+
# end
|
37
|
+
# end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 55
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 6
|
10
|
+
version: 0.9.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Inge J\xC3\xB8rgensen"
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-09-25 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rmagick
|
@@ -82,15 +81,12 @@ files:
|
|
82
81
|
- lib/generators/dynamic_image/dynamic_image_generator.rb
|
83
82
|
- lib/generators/dynamic_image/templates/migrations/create_images.rb
|
84
83
|
- uninstall.rb
|
85
|
-
- test/dynamic_image_test.rb
|
86
|
-
- test/test_helper.rb
|
87
|
-
has_rdoc: true
|
88
84
|
homepage: http://github.com/elektronaut/dynamic_image
|
89
85
|
licenses: []
|
90
86
|
|
91
87
|
post_install_message:
|
92
|
-
rdoc_options:
|
93
|
-
|
88
|
+
rdoc_options: []
|
89
|
+
|
94
90
|
require_paths:
|
95
91
|
- lib
|
96
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -114,10 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
110
|
requirements: []
|
115
111
|
|
116
112
|
rubyforge_project:
|
117
|
-
rubygems_version: 1.
|
113
|
+
rubygems_version: 1.8.24
|
118
114
|
signing_key:
|
119
115
|
specification_version: 3
|
120
116
|
summary: DynamicImage is a rails plugin providing transparent uploading and processing of image files.
|
121
|
-
test_files:
|
122
|
-
|
123
|
-
- test/test_helper.rb
|
117
|
+
test_files: []
|
118
|
+
|
data/test/dynamic_image_test.rb
DELETED
data/test/test_helper.rb
DELETED