attachment_magick 0.2.2 → 0.2.3
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/Gemfile +3 -3
- data/Gemfile.lock +47 -45
- data/README.rdoc +12 -4
- data/attachment_magick.gemspec +1 -1
- data/lib/attachment_magick.rb +0 -1
- data/lib/attachment_magick/railtie.rb +4 -0
- data/lib/attachment_magick/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -1
- metadata +3 -3
data/Gemfile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
source "http://rubygems.org"
|
|
2
2
|
|
|
3
|
-
gem "rails", "3.0.
|
|
3
|
+
gem "rails", "3.0.7"
|
|
4
4
|
gem "capybara", ">= 0.4.0"
|
|
5
5
|
gem "sqlite3-ruby", :require => "sqlite3"
|
|
6
6
|
|
|
7
|
-
gem
|
|
8
|
-
gem
|
|
7
|
+
gem "mongoid", "~> 2.0"
|
|
8
|
+
gem "bson_ext", "~> 1.3"
|
|
9
9
|
gem 'nokogiri'
|
|
10
10
|
gem 'hpricot'
|
|
11
11
|
gem 'colorific'
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
attachment_magick (0.2.
|
|
5
|
-
dragonfly (>= 0.
|
|
4
|
+
attachment_magick (0.2.3)
|
|
5
|
+
dragonfly (>= 0.9.0)
|
|
6
6
|
jquery-rails (>= 0.2.7)
|
|
7
7
|
marcosinger-auto_html (>= 1.3.4)
|
|
8
8
|
rack-cache (>= 1.0)
|
|
@@ -11,32 +11,32 @@ GEM
|
|
|
11
11
|
remote: http://rubygems.org/
|
|
12
12
|
specs:
|
|
13
13
|
abstract (1.0.0)
|
|
14
|
-
actionmailer (3.0.
|
|
15
|
-
actionpack (= 3.0.
|
|
16
|
-
mail (~> 2.2.
|
|
17
|
-
actionpack (3.0.
|
|
18
|
-
activemodel (= 3.0.
|
|
19
|
-
activesupport (= 3.0.
|
|
14
|
+
actionmailer (3.0.7)
|
|
15
|
+
actionpack (= 3.0.7)
|
|
16
|
+
mail (~> 2.2.15)
|
|
17
|
+
actionpack (3.0.7)
|
|
18
|
+
activemodel (= 3.0.7)
|
|
19
|
+
activesupport (= 3.0.7)
|
|
20
20
|
builder (~> 2.1.2)
|
|
21
21
|
erubis (~> 2.6.6)
|
|
22
|
-
i18n (~> 0.
|
|
22
|
+
i18n (~> 0.5.0)
|
|
23
23
|
rack (~> 1.2.1)
|
|
24
|
-
rack-mount (~> 0.6.
|
|
25
|
-
rack-test (~> 0.5.
|
|
24
|
+
rack-mount (~> 0.6.14)
|
|
25
|
+
rack-test (~> 0.5.7)
|
|
26
26
|
tzinfo (~> 0.3.23)
|
|
27
|
-
activemodel (3.0.
|
|
28
|
-
activesupport (= 3.0.
|
|
27
|
+
activemodel (3.0.7)
|
|
28
|
+
activesupport (= 3.0.7)
|
|
29
29
|
builder (~> 2.1.2)
|
|
30
|
-
i18n (~> 0.
|
|
31
|
-
activerecord (3.0.
|
|
32
|
-
activemodel (= 3.0.
|
|
33
|
-
activesupport (= 3.0.
|
|
30
|
+
i18n (~> 0.5.0)
|
|
31
|
+
activerecord (3.0.7)
|
|
32
|
+
activemodel (= 3.0.7)
|
|
33
|
+
activesupport (= 3.0.7)
|
|
34
34
|
arel (~> 2.0.2)
|
|
35
35
|
tzinfo (~> 0.3.23)
|
|
36
|
-
activeresource (3.0.
|
|
37
|
-
activemodel (= 3.0.
|
|
38
|
-
activesupport (= 3.0.
|
|
39
|
-
activesupport (3.0.
|
|
36
|
+
activeresource (3.0.7)
|
|
37
|
+
activemodel (= 3.0.7)
|
|
38
|
+
activesupport (= 3.0.7)
|
|
39
|
+
activesupport (3.0.7)
|
|
40
40
|
archive-tar-minitar (0.5.2)
|
|
41
41
|
arel (2.0.9)
|
|
42
42
|
bson (1.3.0)
|
|
@@ -59,7 +59,8 @@ GEM
|
|
|
59
59
|
ruby-progressbar (>= 0.0.9)
|
|
60
60
|
columnize (0.3.2)
|
|
61
61
|
culerity (0.2.15)
|
|
62
|
-
dragonfly (0.
|
|
62
|
+
dragonfly (0.9.0)
|
|
63
|
+
rack
|
|
63
64
|
rack
|
|
64
65
|
erubis (2.6.6)
|
|
65
66
|
abstract (>= 1.0.0)
|
|
@@ -67,20 +68,21 @@ GEM
|
|
|
67
68
|
rake (>= 0.8.7)
|
|
68
69
|
hpricot (0.8.4)
|
|
69
70
|
i18n (0.5.0)
|
|
70
|
-
jquery-rails (0
|
|
71
|
+
jquery-rails (1.0)
|
|
71
72
|
rails (~> 3.0)
|
|
72
|
-
thor (~> 0.14
|
|
73
|
+
thor (~> 0.14)
|
|
73
74
|
json_pure (1.5.1)
|
|
74
75
|
linecache19 (0.5.12)
|
|
75
76
|
ruby_core_source (>= 0.1.4)
|
|
76
|
-
mail (2.2.
|
|
77
|
+
mail (2.2.19)
|
|
77
78
|
activesupport (>= 2.3.6)
|
|
78
79
|
i18n (>= 0.4.0)
|
|
79
80
|
mime-types (~> 1.16)
|
|
80
81
|
treetop (~> 1.4.8)
|
|
81
|
-
marcosinger-auto_html (1.3.
|
|
82
|
+
marcosinger-auto_html (1.3.5)
|
|
83
|
+
hpricot (>= 0.8.4)
|
|
82
84
|
mime-types (1.16)
|
|
83
|
-
minitest (2.0
|
|
85
|
+
minitest (2.1.0)
|
|
84
86
|
mongo (1.3.0)
|
|
85
87
|
bson (>= 1.3.0)
|
|
86
88
|
mongoid (2.0.1)
|
|
@@ -91,23 +93,23 @@ GEM
|
|
|
91
93
|
nokogiri (1.4.4)
|
|
92
94
|
polyglot (0.3.1)
|
|
93
95
|
rack (1.2.2)
|
|
94
|
-
rack-cache (1.0)
|
|
96
|
+
rack-cache (1.0.1)
|
|
95
97
|
rack (>= 0.4)
|
|
96
98
|
rack-mount (0.6.14)
|
|
97
99
|
rack (>= 1.0.0)
|
|
98
100
|
rack-test (0.5.7)
|
|
99
101
|
rack (>= 1.0)
|
|
100
|
-
rails (3.0.
|
|
101
|
-
actionmailer (= 3.0.
|
|
102
|
-
actionpack (= 3.0.
|
|
103
|
-
activerecord (= 3.0.
|
|
104
|
-
activeresource (= 3.0.
|
|
105
|
-
activesupport (= 3.0.
|
|
102
|
+
rails (3.0.7)
|
|
103
|
+
actionmailer (= 3.0.7)
|
|
104
|
+
actionpack (= 3.0.7)
|
|
105
|
+
activerecord (= 3.0.7)
|
|
106
|
+
activeresource (= 3.0.7)
|
|
107
|
+
activesupport (= 3.0.7)
|
|
106
108
|
bundler (~> 1.0)
|
|
107
|
-
railties (= 3.0.
|
|
108
|
-
railties (3.0.
|
|
109
|
-
actionpack (= 3.0.
|
|
110
|
-
activesupport (= 3.0.
|
|
109
|
+
railties (= 3.0.7)
|
|
110
|
+
railties (3.0.7)
|
|
111
|
+
actionpack (= 3.0.7)
|
|
112
|
+
activesupport (= 3.0.7)
|
|
111
113
|
rake (>= 0.8.7)
|
|
112
114
|
thor (~> 0.14.4)
|
|
113
115
|
rake (0.8.7)
|
|
@@ -119,11 +121,11 @@ GEM
|
|
|
119
121
|
columnize (>= 0.3.1)
|
|
120
122
|
linecache19 (>= 0.5.11)
|
|
121
123
|
ruby-debug-base19 (>= 0.11.19)
|
|
122
|
-
ruby-progressbar (0.0.
|
|
124
|
+
ruby-progressbar (0.0.10)
|
|
123
125
|
ruby_core_source (0.1.5)
|
|
124
126
|
archive-tar-minitar (>= 0.5.2)
|
|
125
127
|
rubyzip (0.9.4)
|
|
126
|
-
selenium-webdriver (0.
|
|
128
|
+
selenium-webdriver (0.2.0)
|
|
127
129
|
childprocess (>= 0.1.7)
|
|
128
130
|
ffi (>= 1.0.7)
|
|
129
131
|
json_pure
|
|
@@ -137,9 +139,9 @@ GEM
|
|
|
137
139
|
thor (0.14.6)
|
|
138
140
|
treetop (1.4.9)
|
|
139
141
|
polyglot (>= 0.3.1)
|
|
140
|
-
tzinfo (0.3.
|
|
142
|
+
tzinfo (0.3.27)
|
|
141
143
|
will_paginate (3.0.pre2)
|
|
142
|
-
xpath (0.1.
|
|
144
|
+
xpath (0.1.4)
|
|
143
145
|
nokogiri (~> 1.3)
|
|
144
146
|
|
|
145
147
|
PLATFORMS
|
|
@@ -147,14 +149,14 @@ PLATFORMS
|
|
|
147
149
|
|
|
148
150
|
DEPENDENCIES
|
|
149
151
|
attachment_magick!
|
|
150
|
-
bson_ext (
|
|
152
|
+
bson_ext (~> 1.3)
|
|
151
153
|
capybara (>= 0.4.0)
|
|
152
154
|
colorific
|
|
153
155
|
hpricot
|
|
154
156
|
mime-types (>= 1.16)
|
|
155
|
-
mongoid (
|
|
157
|
+
mongoid (~> 2.0)
|
|
156
158
|
nokogiri
|
|
157
|
-
rails (= 3.0.
|
|
159
|
+
rails (= 3.0.7)
|
|
158
160
|
ruby-debug19
|
|
159
161
|
simplecov
|
|
160
162
|
sqlite3-ruby
|
data/README.rdoc
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
==
|
|
1
|
+
== Attachment Magick
|
|
2
2
|
|
|
3
|
-
Attachment Magick is a gem to upload images and videos(vimeo) using swfupload.
|
|
3
|
+
Attachment Magick is a gem to upload images and videos(vimeo and youtube) using swfupload.
|
|
4
4
|
Supports Mongoid and ActiveRecord.
|
|
5
5
|
|
|
6
6
|
== Installation
|
|
@@ -16,7 +16,7 @@ After the gem installation, run the generator
|
|
|
16
16
|
|
|
17
17
|
The generator will install swfupload (js and css files) and will create some routes.
|
|
18
18
|
|
|
19
|
-
And if you using ActiveRecord, run this too
|
|
19
|
+
And if you are using ActiveRecord, run this too
|
|
20
20
|
|
|
21
21
|
rails g attachment_magick:migration
|
|
22
22
|
|
|
@@ -91,4 +91,12 @@ For customize your list for images
|
|
|
91
91
|
attachment_magick do
|
|
92
92
|
grid_1 "100x100"
|
|
93
93
|
end
|
|
94
|
-
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
== Credits
|
|
97
|
+
|
|
98
|
+
Author: [Marco Singer](http://github.com/marcosinger)
|
|
99
|
+
Contributors: [Lucas Renan](http://github.com/lucasrenan), [Carlos Brando](http://github.com/carlosbrando)
|
|
100
|
+
|
|
101
|
+
== See in RubyGems.org
|
|
102
|
+
(http://rubygems.org/gems/attachment_magick)
|
data/attachment_magick.gemspec
CHANGED
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
19
|
s.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
s.add_dependency 'dragonfly', '>= 0.
|
|
21
|
+
s.add_dependency 'dragonfly', '>= 0.9.0'
|
|
22
22
|
s.add_dependency 'rack-cache', '>= 1.0'
|
|
23
23
|
s.add_dependency 'jquery-rails', '>= 0.2.7'
|
|
24
24
|
s.add_dependency 'marcosinger-auto_html', '>= 1.3.4'
|
data/lib/attachment_magick.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Dummy
|
|
|
16
16
|
|
|
17
17
|
config.action_view.javascript_expansions[:defaults] = %w(jquery.min rails application)
|
|
18
18
|
|
|
19
|
-
config.middleware.
|
|
19
|
+
config.middleware.insert 0, 'Dragonfly::Middleware', :images
|
|
20
20
|
config.middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
|
|
21
21
|
:verbose => true,
|
|
22
22
|
:metastore => "file:#{Rails.root}/tmp/dragonfly/cache/meta",
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: attachment_magick
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- "Marco Ant\xC3\xB4nio Singer"
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2011-
|
|
14
|
+
date: 2011-05-11 00:00:00 -03:00
|
|
15
15
|
default_executable:
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
@@ -22,7 +22,7 @@ dependencies:
|
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.9.0
|
|
26
26
|
type: :runtime
|
|
27
27
|
version_requirements: *id001
|
|
28
28
|
- !ruby/object:Gem::Dependency
|