carrierwave-mongoid 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.travis.yml +1 -0
- data/README.md +85 -21
- data/carrierwave-mongoid.gemspec +3 -3
- data/gemfiles/carrierwave-0.8.gemfile +5 -0
- data/gemfiles/carrierwave-master.gemfile +1 -1
- data/gemfiles/mongoid-3.0.gemfile +1 -0
- data/lib/carrierwave/mongoid/version.rb +1 -1
- data/spec/mongoid_spec.rb +4 -4
- data/spec/spec_helper.rb +9 -9
- data/spec/storage/grid_fs_spec.rb +10 -10
- metadata +43 -36
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
OTEwM2FjYzRhYTA3NWUwMmE5NThiZTc3MDgwMGY3NGIzOGQ3Y2NmNzhmOTQ5
|
10
|
-
OWVjYTgwNzc1NTk3ZjEyM2QxYzNlNTA2ODgyNmYzMmFmYTdlM2E5ZWJhOTdm
|
11
|
-
OTBkNWVjNTZhNmYyZWRhMmE0NmM0M2RiNDk1MTM1NTJlYWM0MGM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTYyOWFlODkwMGFjYWM1NjhmMDdlNDBhNjQ4MTcxNmM3Mzk3ZDFjM2FiNWI3
|
14
|
-
ZDU5YzdlZDVkNzIzNDBiNTA3ZDBjOTMzMDQ0OTAzODExNDI1NWVjNjFjNzM3
|
15
|
-
ZTY0YTFkNzc0YTA4ZGM0YjM4YTViNWEyNTllYjY1YjU3MTRlMzc=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2c4cb70605ad487c0a0bc63a1e56a13aa35972e7
|
4
|
+
data.tar.gz: 290b467324f4e499eceba2a1ee28a7dff4e4cf36
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 550171721afa4e19fa32c87ac862cb80511738111440e0a88c413dc1fbcf83c10a808b5d170a3bf9a2ea22e3e592998cf78a964a7a32cd4988d29c975359f4aa
|
7
|
+
data.tar.gz: 1151676161af15142e4302ee52ac7ea42e164a8b801ddbbb35634ff7e4e82e1ab4c8628a365450b8a240045a0bb2b3ab570f4355025a4f636875a4cc55903c08
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# CarrierWave for Mongoid [![Gem Version](https://badge.fury.io/rb/carrierwave-mongoid.png)](http://badge.fury.io/rb/carrierwave-mongoid) [![Build Status](https://travis-ci.org/
|
1
|
+
# CarrierWave for Mongoid [![Gem Version](https://badge.fury.io/rb/carrierwave-mongoid.png)](http://badge.fury.io/rb/carrierwave-mongoid) [![Build Status](https://travis-ci.org/carrierwaveuploader/carrierwave-mongoid.png?branch=master)](http://travis-ci.org/carrierwaveuploader/carrierwave-mongoid) [![Code Climate](https://codeclimate.com/github/carrierwaveuploader/carrierwave-mongoid.png)](https://codeclimate.com/github/carrierwaveuploader/carrierwave-mongoid)
|
2
2
|
|
3
3
|
This gem adds support for Mongoid and MongoDB's GridFS to
|
4
|
-
[CarrierWave](https://github.com/
|
4
|
+
[CarrierWave](https://github.com/carrierwaveuploader/carrierwave/)
|
5
5
|
|
6
6
|
This functionality used to be part of CarrierWave but has since been extracted
|
7
7
|
into this gem.
|
@@ -27,7 +27,7 @@ gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
|
|
27
27
|
## Getting Started
|
28
28
|
|
29
29
|
Follow the "Getting Started" directions in the main
|
30
|
-
[Carrierwave repository](https://raw.github.com/
|
30
|
+
[Carrierwave repository](https://raw.github.com/carrierwaveuploader/carrierwave/).
|
31
31
|
|
32
32
|
[Suggested] Add the field to your attr_accessor list for mass assignment
|
33
33
|
protection:
|
@@ -55,10 +55,42 @@ class AvatarUploader < CarrierWave::Uploader::Base
|
|
55
55
|
end
|
56
56
|
```
|
57
57
|
|
58
|
+
Bringing it all together, you can also configure Carrierwave to use Mongoid's
|
59
|
+
database connection and default all storage to GridFS. That might look something
|
60
|
+
like this:
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
CarrierWave.configure do |config|
|
64
|
+
config.storage = :grid_fs
|
65
|
+
config.root = Rails.root.join('tmp')
|
66
|
+
config.cache_dir = "uploads"
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
## Serving uploading files
|
71
|
+
|
58
72
|
Since GridFS doesn't make the files available via HTTP, you'll need to stream
|
59
|
-
them yourself.
|
60
|
-
|
61
|
-
|
73
|
+
them yourself. For example, in Rails, you could use the `send_data` method:
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
class UsersController < ApplicationController
|
77
|
+
def avatar
|
78
|
+
content = @user.avatar.read
|
79
|
+
if stale?(etag: content, last_modified: @user.updated_at.utc, public: true)
|
80
|
+
send_data content, type: @user.avatar.file.content_type, disposition: "inline"
|
81
|
+
expires_in 0, public: true
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# and in routes.rb
|
87
|
+
resources :users do
|
88
|
+
get :avatar, on: :member
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
92
|
+
You can optionally tell CarrierWave the URL you will serve your images from,
|
93
|
+
allowing it to generate the correct URL, by setting `grid_fs_access_url`:
|
62
94
|
|
63
95
|
```ruby
|
64
96
|
CarrierWave.configure do |config|
|
@@ -66,18 +98,50 @@ CarrierWave.configure do |config|
|
|
66
98
|
end
|
67
99
|
```
|
68
100
|
|
69
|
-
|
70
|
-
|
71
|
-
|
101
|
+
## Route configuration
|
102
|
+
|
103
|
+
If you follow the instruction to this point, the uploaded images will be
|
104
|
+
stored to GridFS, and you are responsible for serving the images a public
|
105
|
+
endpoint. If you would like to use the `#url` method on the uploaded file, you
|
106
|
+
will need to take some additional steps.
|
107
|
+
|
108
|
+
The `grid_fs_access_url` configuration option is the prefix for the path of
|
109
|
+
the stored file in carrierwave.
|
110
|
+
|
111
|
+
Let's assume that we have a mounted `avatar` uploader on a `User` model and a
|
112
|
+
`GridfsController`. Let's also assume that your uploader definition
|
113
|
+
(i.e. `app/uploaders/avatar_uploader.rb`) defines `store_dir` like this:
|
72
114
|
|
73
115
|
```ruby
|
74
|
-
|
75
|
-
|
76
|
-
config.root = Rails.root.join('tmp')
|
77
|
-
config.cache_dir = "uploads"
|
116
|
+
def store_dir
|
117
|
+
"#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
78
118
|
end
|
79
119
|
```
|
80
120
|
|
121
|
+
If `grid_fs_access_url` (in `config/initializers/carrierwave.rb`) were:
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
config.grid_fs_access_url = '/uploads/grid'
|
125
|
+
```
|
126
|
+
|
127
|
+
You would need to define a route in your `config/routes.rb` like so:
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
match '/uploads/grid/user/avatar/:id/:filename' => 'gridfs#avatar'
|
131
|
+
```
|
132
|
+
|
133
|
+
Now, `user.avatar.url` should return an appropriate url path to use in your
|
134
|
+
views.
|
135
|
+
|
136
|
+
### Different uploaded versions
|
137
|
+
|
138
|
+
If you need to include different versions (e.g. thumbnails), additional routes
|
139
|
+
will help:
|
140
|
+
|
141
|
+
```ruby
|
142
|
+
match '/uploads/grid/user/avatar/:id/:filename' => 'gridfs#thumb_avatar', constraints: { filename: /thumb.*/ }
|
143
|
+
```
|
144
|
+
|
81
145
|
## Version differences
|
82
146
|
|
83
147
|
| Version | Notes |
|
@@ -89,14 +153,14 @@ end
|
|
89
153
|
| ~> 0.2.0 | ([compare][compare-0.2], [dependencies][deps-0.2]) Rails >= 3.2, Mongoid ~> 2.0 |
|
90
154
|
| ~> 0.1.0 | ([compare][compare-0.1], [dependencies][deps-0.1]) Rails <= 3.1 |
|
91
155
|
|
92
|
-
[compare-0.6]: https://github.com/
|
93
|
-
[compare-0.5]: https://github.com/
|
94
|
-
[compare-0.4]: https://github.com/
|
95
|
-
[compare-0.3]: https://github.com/
|
96
|
-
[compare-0.2]: https://github.com/
|
97
|
-
[compare-0.1]: https://github.com/
|
156
|
+
[compare-0.6]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.5.0...v0.6.1
|
157
|
+
[compare-0.5]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.4.0...v0.5.0
|
158
|
+
[compare-0.4]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.3.1...v0.4.0
|
159
|
+
[compare-0.3]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.2.1...v0.3.1
|
160
|
+
[compare-0.2]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.1.7...v0.2.2
|
161
|
+
[compare-0.1]: https://github.com/carrierwaveuploader/carrierwave-mongoid/compare/v0.1.1...v0.1.7
|
98
162
|
|
99
|
-
[deps-0.6]: https://rubygems.org/gems/carrierwave-mongoid/versions/0.6.
|
163
|
+
[deps-0.6]: https://rubygems.org/gems/carrierwave-mongoid/versions/0.6.1
|
100
164
|
[deps-0.5]: https://rubygems.org/gems/carrierwave-mongoid/versions/0.5.0
|
101
165
|
[deps-0.4]: https://rubygems.org/gems/carrierwave-mongoid/versions/0.4.0
|
102
166
|
[deps-0.3]: https://rubygems.org/gems/carrierwave-mongoid/versions/0.3.1
|
@@ -143,4 +207,4 @@ class User
|
|
143
207
|
end
|
144
208
|
```
|
145
209
|
|
146
|
-
You can read more about this [here](https://github.com/
|
210
|
+
You can read more about this [here](https://github.com/carrierwaveuploader/carrierwave/issues#issue/81)
|
data/carrierwave-mongoid.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Jonas Nicklas", "Trevor Turk"]
|
10
10
|
s.email = ["jonas.nicklas@gmail.com"]
|
11
|
-
s.homepage = "https://github.com/
|
11
|
+
s.homepage = "https://github.com/carrierwaveuploader/carrierwave-mongoid"
|
12
12
|
s.summary = %q{Mongoid support for CarrierWave}
|
13
13
|
s.description = %q{Mongoid support for CarrierWave}
|
14
14
|
s.license = "MIT"
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.add_dependency "carrierwave", ["
|
23
|
+
s.add_dependency "carrierwave", [">= 0.8.0", "< 0.10.0"]
|
24
24
|
s.add_dependency "mongoid", [">= 3.0", "< 5.0"]
|
25
25
|
s.add_dependency "mongoid-grid_fs", ["~> 1.3"]
|
26
|
-
s.add_development_dependency "rspec", ["~> 2.
|
26
|
+
s.add_development_dependency "rspec", ["~> 2.14"]
|
27
27
|
s.add_development_dependency "rake", ["~> 10.0"]
|
28
28
|
s.add_development_dependency "mini_magick"
|
29
29
|
s.add_development_dependency "pry"
|
data/spec/mongoid_spec.rb
CHANGED
@@ -126,7 +126,7 @@ describe CarrierWave::Mongoid do
|
|
126
126
|
@doc[:image] = 'test.jpeg'
|
127
127
|
@doc.save!
|
128
128
|
@doc.reload
|
129
|
-
JSON.parse(@doc.to_json({:only => [:_id]})).should == {"_id" => @doc.id.
|
129
|
+
JSON.parse(@doc.to_json({:only => [:_id]})).should == {"_id" => @doc.id.as_json}
|
130
130
|
end
|
131
131
|
|
132
132
|
it "should respect options[:except] when passed to to_json for the serializable hash" do
|
@@ -396,7 +396,7 @@ describe CarrierWave::Mongoid do
|
|
396
396
|
end
|
397
397
|
|
398
398
|
it "should not remove old file if old file had a different path but config is false" do
|
399
|
-
@uploader.stub
|
399
|
+
@uploader.stub(:remove_previously_stored_files_after_update).and_return(false)
|
400
400
|
@doc.image = stub_file('new.jpeg')
|
401
401
|
@doc.save.should be_true
|
402
402
|
File.exists?(public_path('uploads/new.jpeg')).should be_true
|
@@ -456,7 +456,7 @@ describe CarrierWave::Mongoid do
|
|
456
456
|
end
|
457
457
|
|
458
458
|
it "should not remove old file if old file had a different path but config is false" do
|
459
|
-
@embedded_doc.image.stub
|
459
|
+
@embedded_doc.image.stub(:remove_previously_stored_files_after_update).and_return(false)
|
460
460
|
@embedded_doc.image = stub_file('new.jpeg')
|
461
461
|
@embedded_doc.save.should be_true
|
462
462
|
File.exists?(public_path('uploads/new.jpeg')).should be_true
|
@@ -494,7 +494,7 @@ describe CarrierWave::Mongoid do
|
|
494
494
|
end
|
495
495
|
|
496
496
|
it "should not remove old file if old file had a different path but config is false" do
|
497
|
-
@double_embedded_doc.image.stub
|
497
|
+
@double_embedded_doc.image.stub(:remove_previously_stored_files_after_update).and_return(false)
|
498
498
|
@double_embedded_doc.image = stub_file('new.jpeg')
|
499
499
|
@double_embedded_doc.save.should be_true
|
500
500
|
File.exists?(public_path('uploads/new.jpeg')).should be_true
|
data/spec/spec_helper.rb
CHANGED
@@ -35,9 +35,9 @@ module CarrierWave
|
|
35
35
|
t = Tempfile.new(filename)
|
36
36
|
FileUtils.copy_file(file_path(filename), t.path)
|
37
37
|
|
38
|
-
t.stub
|
39
|
-
|
40
|
-
|
38
|
+
t.stub(:local_path => "",
|
39
|
+
:original_filename => filename || fake_name,
|
40
|
+
:content_type => mime_type)
|
41
41
|
|
42
42
|
return t
|
43
43
|
end
|
@@ -59,12 +59,12 @@ module CarrierWave
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
class SIO < StringIO
|
63
|
-
attr_accessor :filename
|
64
|
-
|
65
|
-
def initialize(filename, *args, &block)
|
66
|
-
@filename = filename
|
67
|
-
super(*args, &block)
|
62
|
+
class SIO < StringIO
|
63
|
+
attr_accessor :filename
|
64
|
+
|
65
|
+
def initialize(filename, *args, &block)
|
66
|
+
@filename = filename
|
67
|
+
super(*args, &block)
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -7,7 +7,7 @@ require 'spec_helper'
|
|
7
7
|
shared_examples_for "a GridFS connection" do
|
8
8
|
describe '#store!' do
|
9
9
|
before do
|
10
|
-
@uploader.stub
|
10
|
+
@uploader.stub(:store_path).and_return('uploads/bar.txt')
|
11
11
|
@grid_fs_file = @storage.store!(@file)
|
12
12
|
end
|
13
13
|
|
@@ -49,7 +49,7 @@ shared_examples_for "a GridFS connection" do
|
|
49
49
|
before do
|
50
50
|
@grid.clear
|
51
51
|
@grid['uploads/bar.txt'] = StringIO.new('A test, 1234')
|
52
|
-
@uploader.stub
|
52
|
+
@uploader.stub(:store_path).with('bar.txt').and_return('uploads/bar.txt')
|
53
53
|
@grid_fs_file = @storage.retrieve!('bar.txt')
|
54
54
|
end
|
55
55
|
|
@@ -66,17 +66,17 @@ shared_examples_for "a GridFS connection" do
|
|
66
66
|
end
|
67
67
|
|
68
68
|
it "should return a relative URL path if access_url is set to the root path" do
|
69
|
-
@uploader.stub
|
69
|
+
@uploader.stub(:grid_fs_access_url).and_return("/")
|
70
70
|
@grid_fs_file.url.should == "/uploads/bar.txt"
|
71
71
|
end
|
72
72
|
|
73
73
|
it "should return a URL path if access_url is set to a file path" do
|
74
|
-
@uploader.stub
|
74
|
+
@uploader.stub(:grid_fs_access_url).and_return("/image/show")
|
75
75
|
@grid_fs_file.url.should == "/image/show/uploads/bar.txt"
|
76
76
|
end
|
77
77
|
|
78
78
|
it "should return an absolute URL if access_url is set to an absolute URL" do
|
79
|
-
@uploader.stub
|
79
|
+
@uploader.stub(:grid_fs_access_url).and_return("http://example.com/images/")
|
80
80
|
@grid_fs_file.url.should == "http://example.com/images/uploads/bar.txt"
|
81
81
|
end
|
82
82
|
|
@@ -88,12 +88,12 @@ shared_examples_for "a GridFS connection" do
|
|
88
88
|
|
89
89
|
describe '#retrieve! on a store_dir with leading slash' do
|
90
90
|
before do
|
91
|
-
@uploader.stub
|
91
|
+
@uploader.stub(:store_path).with('bar.txt').and_return('/uploads/bar.txt')
|
92
92
|
@grid_fs_file = @storage.retrieve!('bar.txt')
|
93
93
|
end
|
94
94
|
|
95
95
|
it "should return a relative URL path if access_url is set to the root path" do
|
96
|
-
@uploader.stub
|
96
|
+
@uploader.stub(:grid_fs_access_url).and_return("/")
|
97
97
|
@grid_fs_file.url.should == "/uploads/bar.txt"
|
98
98
|
end
|
99
99
|
end
|
@@ -103,13 +103,13 @@ end
|
|
103
103
|
describe CarrierWave::Storage::GridFS do
|
104
104
|
|
105
105
|
before do
|
106
|
-
@uploader =
|
107
|
-
@uploader.stub
|
106
|
+
@uploader = double('an uploader')
|
107
|
+
@uploader.stub(:grid_fs_access_url).and_return(nil)
|
108
108
|
end
|
109
109
|
|
110
110
|
context "when reusing an existing connection manually" do
|
111
111
|
before do
|
112
|
-
@uploader.stub
|
112
|
+
@uploader.stub(:grid_fs_connection).and_return(@database)
|
113
113
|
|
114
114
|
@grid = ::Mongoid::GridFs
|
115
115
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,112 +9,118 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
name: carrierwave
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - '>='
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 0.8.0
|
21
|
+
- - <
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.10.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
20
26
|
version_requirements: !ruby/object:Gem::Requirement
|
21
27
|
requirements:
|
22
|
-
- -
|
28
|
+
- - '>='
|
23
29
|
- !ruby/object:Gem::Version
|
24
30
|
version: 0.8.0
|
25
|
-
|
26
|
-
|
27
|
-
|
31
|
+
- - <
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
35
|
+
name: mongoid
|
29
36
|
requirement: !ruby/object:Gem::Requirement
|
30
37
|
requirements:
|
31
|
-
- -
|
38
|
+
- - '>='
|
32
39
|
- !ruby/object:Gem::Version
|
33
40
|
version: '3.0'
|
34
41
|
- - <
|
35
42
|
- !ruby/object:Gem::Version
|
36
43
|
version: '5.0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
38
47
|
requirements:
|
39
|
-
- -
|
48
|
+
- - '>='
|
40
49
|
- !ruby/object:Gem::Version
|
41
50
|
version: '3.0'
|
42
51
|
- - <
|
43
52
|
- !ruby/object:Gem::Version
|
44
53
|
version: '5.0'
|
45
|
-
type: :runtime
|
46
|
-
prerelease: false
|
47
|
-
name: mongoid
|
48
54
|
- !ruby/object:Gem::Dependency
|
55
|
+
name: mongoid-grid_fs
|
49
56
|
requirement: !ruby/object:Gem::Requirement
|
50
57
|
requirements:
|
51
58
|
- - ~>
|
52
59
|
- !ruby/object:Gem::Version
|
53
60
|
version: '1.3'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
54
63
|
version_requirements: !ruby/object:Gem::Requirement
|
55
64
|
requirements:
|
56
65
|
- - ~>
|
57
66
|
- !ruby/object:Gem::Version
|
58
67
|
version: '1.3'
|
59
|
-
type: :runtime
|
60
|
-
prerelease: false
|
61
|
-
name: mongoid-grid_fs
|
62
68
|
- !ruby/object:Gem::Dependency
|
69
|
+
name: rspec
|
63
70
|
requirement: !ruby/object:Gem::Requirement
|
64
71
|
requirements:
|
65
72
|
- - ~>
|
66
73
|
- !ruby/object:Gem::Version
|
67
|
-
version: '2.
|
74
|
+
version: '2.14'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
68
77
|
version_requirements: !ruby/object:Gem::Requirement
|
69
78
|
requirements:
|
70
79
|
- - ~>
|
71
80
|
- !ruby/object:Gem::Version
|
72
|
-
version: '2.
|
73
|
-
type: :development
|
74
|
-
prerelease: false
|
75
|
-
name: rspec
|
81
|
+
version: '2.14'
|
76
82
|
- !ruby/object:Gem::Dependency
|
83
|
+
name: rake
|
77
84
|
requirement: !ruby/object:Gem::Requirement
|
78
85
|
requirements:
|
79
86
|
- - ~>
|
80
87
|
- !ruby/object:Gem::Version
|
81
88
|
version: '10.0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
82
91
|
version_requirements: !ruby/object:Gem::Requirement
|
83
92
|
requirements:
|
84
93
|
- - ~>
|
85
94
|
- !ruby/object:Gem::Version
|
86
95
|
version: '10.0'
|
87
|
-
type: :development
|
88
|
-
prerelease: false
|
89
|
-
name: rake
|
90
96
|
- !ruby/object:Gem::Dependency
|
97
|
+
name: mini_magick
|
91
98
|
requirement: !ruby/object:Gem::Requirement
|
92
99
|
requirements:
|
93
|
-
- -
|
100
|
+
- - '>='
|
94
101
|
- !ruby/object:Gem::Version
|
95
102
|
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
96
105
|
version_requirements: !ruby/object:Gem::Requirement
|
97
106
|
requirements:
|
98
|
-
- -
|
107
|
+
- - '>='
|
99
108
|
- !ruby/object:Gem::Version
|
100
109
|
version: '0'
|
101
|
-
type: :development
|
102
|
-
prerelease: false
|
103
|
-
name: mini_magick
|
104
110
|
- !ruby/object:Gem::Dependency
|
111
|
+
name: pry
|
105
112
|
requirement: !ruby/object:Gem::Requirement
|
106
113
|
requirements:
|
107
|
-
- -
|
114
|
+
- - '>='
|
108
115
|
- !ruby/object:Gem::Version
|
109
116
|
version: '0'
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
110
119
|
version_requirements: !ruby/object:Gem::Requirement
|
111
120
|
requirements:
|
112
|
-
- -
|
121
|
+
- - '>='
|
113
122
|
- !ruby/object:Gem::Version
|
114
123
|
version: '0'
|
115
|
-
type: :development
|
116
|
-
prerelease: false
|
117
|
-
name: pry
|
118
124
|
description: Mongoid support for CarrierWave
|
119
125
|
email:
|
120
126
|
- jonas.nicklas@gmail.com
|
@@ -129,6 +135,7 @@ files:
|
|
129
135
|
- README.md
|
130
136
|
- Rakefile
|
131
137
|
- carrierwave-mongoid.gemspec
|
138
|
+
- gemfiles/carrierwave-0.8.gemfile
|
132
139
|
- gemfiles/carrierwave-master.gemfile
|
133
140
|
- gemfiles/mongoid-3.0.gemfile
|
134
141
|
- gemfiles/mongoid-3.1.gemfile
|
@@ -147,7 +154,7 @@ files:
|
|
147
154
|
- spec/mongoid_spec.rb
|
148
155
|
- spec/spec_helper.rb
|
149
156
|
- spec/storage/grid_fs_spec.rb
|
150
|
-
homepage: https://github.com/
|
157
|
+
homepage: https://github.com/carrierwaveuploader/carrierwave-mongoid
|
151
158
|
licenses:
|
152
159
|
- MIT
|
153
160
|
metadata: {}
|
@@ -157,12 +164,12 @@ require_paths:
|
|
157
164
|
- lib
|
158
165
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
166
|
requirements:
|
160
|
-
- -
|
167
|
+
- - '>='
|
161
168
|
- !ruby/object:Gem::Version
|
162
169
|
version: '0'
|
163
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
171
|
requirements:
|
165
|
-
- -
|
172
|
+
- - '>='
|
166
173
|
- !ruby/object:Gem::Version
|
167
174
|
version: '0'
|
168
175
|
requirements: []
|