attachment_magick 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  attachment_magick (0.2.3)
5
- dragonfly (>= 0.9.0)
5
+ dragonfly (>= 0.9.4)
6
6
  jquery-rails (>= 0.2.7)
7
7
  marcosinger-auto_html (>= 1.3.4)
8
8
  rack-cache (>= 1.0)
@@ -59,8 +59,7 @@ GEM
59
59
  ruby-progressbar (>= 0.0.9)
60
60
  columnize (0.3.2)
61
61
  culerity (0.2.15)
62
- dragonfly (0.9.0)
63
- rack
62
+ dragonfly (0.9.4)
64
63
  rack
65
64
  erubis (2.6.6)
66
65
  abstract (>= 1.0.0)
@@ -68,8 +67,8 @@ GEM
68
67
  rake (>= 0.8.7)
69
68
  hpricot (0.8.4)
70
69
  i18n (0.5.0)
71
- jquery-rails (1.0)
72
- rails (~> 3.0)
70
+ jquery-rails (1.0.11)
71
+ railties (~> 3.0)
73
72
  thor (~> 0.14)
74
73
  json_pure (1.5.1)
75
74
  linecache19 (0.5.12)
@@ -93,7 +92,7 @@ GEM
93
92
  nokogiri (1.4.4)
94
93
  polyglot (0.3.1)
95
94
  rack (1.2.2)
96
- rack-cache (1.0.1)
95
+ rack-cache (1.0.2)
97
96
  rack (>= 0.4)
98
97
  rack-mount (0.6.14)
99
98
  rack (>= 1.0.0)
data/README.rdoc CHANGED
@@ -38,7 +38,7 @@ Create a initializer like this (config/initializers/attachment_magick_setup.rb)
38
38
 
39
39
  Add to application.rb
40
40
 
41
- config.middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :images, '/media'
41
+ config.middleware.insert 0, 'Dragonfly::Middleware', :images
42
42
  config.middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
43
43
  :verbose => true,
44
44
  :metastore => "file:#{Rails.root}/tmp/dragonfly/cache/meta",
@@ -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.9.0'
21
+ s.add_dependency 'dragonfly', '>= 0.9.4'
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'
@@ -13,8 +13,11 @@ if defined? Mongoid::Document
13
13
  require 'mongoid'
14
14
 
15
15
  mongo_yml_path = Rails.env.test? ? "#{File.expand_path('../../../../test/dummy/config', __FILE__)}" : "config"
16
- db = YAML.load_file(File.join(mongo_yml_path, 'mongoid.yml'))[Rails.env]['database']
17
- app.datastore = Dragonfly::DataStorage::MongoDataStore.new :database => db
16
+ yaml_file = YAML.load_file(File.join(mongo_yml_path, 'mongoid.yml'))[Rails.env]
17
+ db = yaml_file['database']
18
+ username = yaml_file['username']
19
+ password = yaml_file['password']
20
+ app.datastore = Dragonfly::DataStorage::MongoDataStore.new(:database => db, :username => username, :password => password)
18
21
 
19
22
  app.define_macro_on_include(Mongoid::Document, :image_accessor)
20
23
  end
@@ -1,3 +1,3 @@
1
1
  module AttachmentMagick
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -11,9 +11,9 @@ class AttachmentMagick::ImageTest < ActiveSupport::TestCase
11
11
  @place_image = @place.images.create({:source => 'http://vimeo.com/14074949'})
12
12
 
13
13
  assert_equal %'<iframe src=\"http://player.vimeo.com/video/14074949?title=0&byline=0&portrait=0\" width=\"620\" height=\"465\" frameborder=\"0\"></iframe>', @artist_image.source_to_html
14
- assert_equal 'http://b.vimeocdn.com/ts/937/359/93735969_640.jpg', @artist_image.source_to_image
14
+ assert_equal 'http://b.vimeocdn.com/ts/819/560/81956031_640.jpg', @artist_image.source_to_image
15
15
  assert_equal %'<iframe src=\"http://player.vimeo.com/video/14074949?title=0&byline=0&portrait=0\" width=\"620\" height=\"465\" frameborder=\"0\"></iframe>', @place_image.source_to_html
16
- assert_equal 'http://b.vimeocdn.com/ts/937/359/93735969_640.jpg', @place_image.source_to_image
16
+ assert_equal 'http://b.vimeocdn.com/ts/819/560/81956031_640.jpg', @place_image.source_to_image
17
17
 
18
18
  @artist_image = @artist.images.create({:source => 'http://www.youtube.com/watch?v=FUe83k3t_0s'})
19
19
  @place_image = @place.images.create({:source => 'http://www.youtube.com/watch?v=FUe83k3t_0s'})
metadata CHANGED
@@ -1,74 +1,70 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: attachment_magick
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.4
4
5
  prerelease:
5
- version: 0.2.3
6
6
  platform: ruby
7
- authors:
8
- - "Marco Ant\xC3\xB4nio Singer"
7
+ authors:
8
+ - Marco Antônio Singer
9
9
  - Carlos Brando
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-05-11 00:00:00 -03:00
13
+ date: 2011-07-29 00:00:00.000000000 -03:00
15
14
  default_executable:
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
18
17
  name: dragonfly
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2161457500 !ruby/object:Gem::Requirement
21
19
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: 0.9.0
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: 0.9.4
26
24
  type: :runtime
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: rack-cache
30
25
  prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *2161457500
27
+ - !ruby/object:Gem::Dependency
28
+ name: rack-cache
29
+ requirement: &2161457000 !ruby/object:Gem::Requirement
32
30
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "1.0"
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
37
35
  type: :runtime
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: jquery-rails
41
36
  prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ version_requirements: *2161457000
38
+ - !ruby/object:Gem::Dependency
39
+ name: jquery-rails
40
+ requirement: &2161456540 !ruby/object:Gem::Requirement
43
41
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
47
45
  version: 0.2.7
48
46
  type: :runtime
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: marcosinger-auto_html
52
47
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
48
+ version_requirements: *2161456540
49
+ - !ruby/object:Gem::Dependency
50
+ name: marcosinger-auto_html
51
+ requirement: &2161456080 !ruby/object:Gem::Requirement
54
52
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
58
56
  version: 1.3.4
59
57
  type: :runtime
60
- version_requirements: *id004
58
+ prerelease: false
59
+ version_requirements: *2161456080
61
60
  description:
62
- email:
61
+ email:
63
62
  - markaum@gmail.com
64
63
  - eduardobrando@gmail.com
65
64
  executables: []
66
-
67
65
  extensions: []
68
-
69
66
  extra_rdoc_files: []
70
-
71
- files:
67
+ files:
72
68
  - .gitignore
73
69
  - Gemfile
74
70
  - Gemfile.lock
@@ -177,32 +173,29 @@ files:
177
173
  has_rdoc: true
178
174
  homepage: http://github.com/marcosinger/attachment_magick
179
175
  licenses: []
180
-
181
176
  post_install_message:
182
177
  rdoc_options: []
183
-
184
- require_paths:
178
+ require_paths:
185
179
  - lib
186
- required_ruby_version: !ruby/object:Gem::Requirement
180
+ required_ruby_version: !ruby/object:Gem::Requirement
187
181
  none: false
188
- requirements:
189
- - - ">="
190
- - !ruby/object:Gem::Version
191
- version: "0"
192
- required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
187
  none: false
194
- requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: "0"
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
198
192
  requirements: []
199
-
200
193
  rubyforge_project: attachment_magick
201
- rubygems_version: 1.5.2
194
+ rubygems_version: 1.6.2
202
195
  signing_key:
203
196
  specification_version: 3
204
197
  summary: little more magick when you upload image files (with SwfUpload and Dragonfly)
205
- test_files:
198
+ test_files:
206
199
  - test/attachment_magick/controllers/images_controller_test.rb
207
200
  - test/attachment_magick/generators/install_generator_test.rb
208
201
  - test/attachment_magick/generators/migration_generator_test.rb