attachment_magick 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,10 +14,15 @@ if defined? Mongoid::Document
14
14
 
15
15
  mongo_yml_path = Rails.env.test? ? "#{File.expand_path('../../../../test/dummy/config', __FILE__)}" : "config"
16
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)
17
+
18
+ app.datastore = Dragonfly::DataStorage::MongoDataStore.new
19
+ app.datastore.configure do |c|
20
+ c.host = yaml_file['host'] # defaults to localhost
21
+ c.port = yaml_file['port'] # defaults to mongo default (27017)
22
+ c.database = yaml_file['database'] # defaults to 'dragonfly'
23
+ c.username = yaml_file['username'] # only needed if mongo is running in auth mode
24
+ c.password = yaml_file['password'] # only needed if mongo is running in auth mode
25
+ end
21
26
 
22
27
  app.define_macro_on_include(Mongoid::Document, :image_accessor)
23
28
  end
@@ -1,3 +1,3 @@
1
1
  module AttachmentMagick
2
- VERSION = "0.2.4"
3
- end
2
+ VERSION = "0.2.5"
3
+ end
metadata CHANGED
@@ -1,70 +1,98 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: attachment_magick
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 5
10
+ version: 0.2.5
6
11
  platform: ruby
7
- authors:
8
- - Marco Antônio Singer
12
+ authors:
13
+ - "Marco Ant\xC3\xB4nio Singer"
9
14
  - Carlos Brando
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
- date: 2011-07-29 00:00:00.000000000 -03:00
18
+
19
+ date: 2011-08-05 00:00:00 -03:00
14
20
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
17
23
  name: dragonfly
18
- requirement: &2161457500 !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
19
26
  none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 51
31
+ segments:
32
+ - 0
33
+ - 9
34
+ - 4
23
35
  version: 0.9.4
24
36
  type: :runtime
25
- prerelease: false
26
- version_requirements: *2161457500
27
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
28
39
  name: rack-cache
29
- requirement: &2161457000 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
30
42
  none: false
31
- requirements:
32
- - - ! '>='
33
- - !ruby/object:Gem::Version
34
- version: '1.0'
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 15
47
+ segments:
48
+ - 1
49
+ - 0
50
+ version: "1.0"
35
51
  type: :runtime
36
- prerelease: false
37
- version_requirements: *2161457000
38
- - !ruby/object:Gem::Dependency
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
39
54
  name: jquery-rails
40
- requirement: &2161456540 !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
41
57
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 25
62
+ segments:
63
+ - 0
64
+ - 2
65
+ - 7
45
66
  version: 0.2.7
46
67
  type: :runtime
47
- prerelease: false
48
- version_requirements: *2161456540
49
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
50
70
  name: marcosinger-auto_html
51
- requirement: &2161456080 !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
52
73
  none: false
53
- requirements:
54
- - - ! '>='
55
- - !ruby/object:Gem::Version
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 19
78
+ segments:
79
+ - 1
80
+ - 3
81
+ - 4
56
82
  version: 1.3.4
57
83
  type: :runtime
58
- prerelease: false
59
- version_requirements: *2161456080
84
+ version_requirements: *id004
60
85
  description:
61
- email:
86
+ email:
62
87
  - markaum@gmail.com
63
88
  - eduardobrando@gmail.com
64
89
  executables: []
90
+
65
91
  extensions: []
92
+
66
93
  extra_rdoc_files: []
67
- files:
94
+
95
+ files:
68
96
  - .gitignore
69
97
  - Gemfile
70
98
  - Gemfile.lock
@@ -173,29 +201,38 @@ files:
173
201
  has_rdoc: true
174
202
  homepage: http://github.com/marcosinger/attachment_magick
175
203
  licenses: []
204
+
176
205
  post_install_message:
177
206
  rdoc_options: []
178
- require_paths:
207
+
208
+ require_paths:
179
209
  - lib
180
- required_ruby_version: !ruby/object:Gem::Requirement
210
+ required_ruby_version: !ruby/object:Gem::Requirement
181
211
  none: false
182
- requirements:
183
- - - ! '>='
184
- - !ruby/object:Gem::Version
185
- version: '0'
186
- required_rubygems_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ hash: 3
216
+ segments:
217
+ - 0
218
+ version: "0"
219
+ required_rubygems_version: !ruby/object:Gem::Requirement
187
220
  none: false
188
- requirements:
189
- - - ! '>='
190
- - !ruby/object:Gem::Version
191
- version: '0'
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ hash: 3
225
+ segments:
226
+ - 0
227
+ version: "0"
192
228
  requirements: []
229
+
193
230
  rubyforge_project: attachment_magick
194
231
  rubygems_version: 1.6.2
195
232
  signing_key:
196
233
  specification_version: 3
197
234
  summary: little more magick when you upload image files (with SwfUpload and Dragonfly)
198
- test_files:
235
+ test_files:
199
236
  - test/attachment_magick/controllers/images_controller_test.rb
200
237
  - test/attachment_magick/generators/install_generator_test.rb
201
238
  - test/attachment_magick/generators/migration_generator_test.rb