mongoid-paperclip 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,9 +73,11 @@ module Mongoid
73
73
 
74
74
  ##
75
75
  # Include Paperclip and Paperclip::Glue for compatibility
76
- include ::Paperclip
77
- include ::Paperclip::Glue
78
-
76
+ unless self.ancestors.include?(::Paperclip)
77
+ include ::Paperclip
78
+ include ::Paperclip::Glue
79
+ end
80
+
79
81
  ##
80
82
  # Invoke Paperclip's #has_attached_file method and passes in the
81
83
  # arguments specified by the user that invoked Mongoid::Paperclip#has_mongoid_attached_file
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |gem|
4
4
 
5
5
  gem.name = 'mongoid-paperclip'
6
- gem.version = '0.0.5'
6
+ gem.version = '0.0.6'
7
7
  gem.platform = Gem::Platform::RUBY
8
8
  gem.authors = 'Michael van Rooijen'
9
9
  gem.email = 'meskyanichi@gmail.com'
metadata CHANGED
@@ -1,69 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongoid-paperclip
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
4
5
  prerelease:
5
- version: 0.0.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Michael van Rooijen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-25 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: paperclip
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70268852719080 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
18
+ requirements:
22
19
  - - ~>
23
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
24
21
  version: 2.3.6
25
22
  type: :runtime
26
- version_requirements: *id001
27
- description: Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM for MongoDB.
23
+ prerelease: false
24
+ version_requirements: *70268852719080
25
+ description: Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM
26
+ for MongoDB.
28
27
  email: meskyanichi@gmail.com
29
28
  executables: []
30
-
31
29
  extensions: []
32
-
33
30
  extra_rdoc_files: []
34
-
35
- files:
31
+ files:
36
32
  - .gitignore
37
33
  - README.md
38
34
  - lib/mongoid_paperclip.rb
39
35
  - mongoid-paperclip.gemspec
40
- has_rdoc: true
41
36
  homepage: https://github.com/meskyanichi/mongoid-paperclip
42
37
  licenses: []
43
-
44
38
  post_install_message:
45
39
  rdoc_options: []
46
-
47
- require_paths:
40
+ require_paths:
48
41
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
42
+ required_ruby_version: !ruby/object:Gem::Requirement
50
43
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
55
- required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
49
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
61
54
  requirements: []
62
-
63
55
  rubyforge_project:
64
- rubygems_version: 1.6.2
56
+ rubygems_version: 1.8.6
65
57
  signing_key:
66
58
  specification_version: 3
67
- summary: Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM for MongoDB.
59
+ summary: Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM for
60
+ MongoDB.
68
61
  test_files: []
69
-