glebtv-carrierwave-mongoid 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/.ruby-version +1 -0
- data/Gemfile.lock +11 -11
- data/lib/carrierwave/mongoid.rb +3 -1
- data/lib/carrierwave/mongoid/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e4c80f2f675129ba495c84135384e16955759ee
|
4
|
+
data.tar.gz: 9fc59522be038f7ef9ffaba8345c30bd28ed2f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cd03be3e03935d3491ba5498cd2f6898220762bbc6f530ac912d3624896f0249623459d6b21187c4e2c899ac01faf41d3474f19b54a7eba4b7e01a31570a492
|
7
|
+
data.tar.gz: 39561d9e5556eac1e329f21618595daf2b4348ee6e662d457a9f295d3e08880d0c3013d25f122ad926656554ee80ccdbab87d573bb6e2335960d71614ddc88f3
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.0.0-p247
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
glebtv-carrierwave-mongoid (0.6.
|
4
|
+
glebtv-carrierwave-mongoid (0.6.3)
|
5
5
|
carrierwave (~> 0.9.0)
|
6
6
|
mongoid (>= 3.0, < 5.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (3.2.
|
12
|
-
activesupport (= 3.2.
|
11
|
+
activemodel (3.2.14)
|
12
|
+
activesupport (= 3.2.14)
|
13
13
|
builder (~> 3.0.0)
|
14
|
-
activesupport (3.2.
|
15
|
-
i18n (
|
14
|
+
activesupport (3.2.14)
|
15
|
+
i18n (~> 0.6, >= 0.6.4)
|
16
16
|
multi_json (~> 1.0)
|
17
17
|
builder (3.0.4)
|
18
18
|
carrierwave (0.9.0)
|
@@ -21,9 +21,9 @@ GEM
|
|
21
21
|
json (>= 1.7)
|
22
22
|
coderay (1.0.9)
|
23
23
|
diff-lcs (1.2.4)
|
24
|
-
i18n (0.6.
|
24
|
+
i18n (0.6.4)
|
25
25
|
json (1.8.0)
|
26
|
-
method_source (0.8.
|
26
|
+
method_source (0.8.2)
|
27
27
|
mini_magick (3.6.0)
|
28
28
|
subexec (~> 0.2.1)
|
29
29
|
mongoid (3.1.4)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
origin (~> 1.0)
|
33
33
|
tzinfo (~> 0.3.22)
|
34
34
|
moped (1.5.0)
|
35
|
-
multi_json (1.7.
|
35
|
+
multi_json (1.7.8)
|
36
36
|
origin (1.1.0)
|
37
37
|
pry (0.9.12.2)
|
38
38
|
coderay (~> 1.0.5)
|
@@ -43,11 +43,11 @@ GEM
|
|
43
43
|
rspec-core (~> 2.14.0)
|
44
44
|
rspec-expectations (~> 2.14.0)
|
45
45
|
rspec-mocks (~> 2.14.0)
|
46
|
-
rspec-core (2.14.
|
46
|
+
rspec-core (2.14.4)
|
47
47
|
rspec-expectations (2.14.0)
|
48
48
|
diff-lcs (>= 1.1.3, < 2.0)
|
49
|
-
rspec-mocks (2.14.
|
50
|
-
slop (3.4.
|
49
|
+
rspec-mocks (2.14.2)
|
50
|
+
slop (3.4.6)
|
51
51
|
subexec (0.2.3)
|
52
52
|
tzinfo (0.3.37)
|
53
53
|
|
data/lib/carrierwave/mongoid.rb
CHANGED
@@ -12,7 +12,9 @@ module CarrierWave
|
|
12
12
|
#
|
13
13
|
def mount_uploader(column, uploader=nil, options={}, &block)
|
14
14
|
field_name = options[:mount_on] || column
|
15
|
-
|
15
|
+
unless fields.keys.include?(field_name.to_s) || fields.values.map { |f| f.options[:as] }.include?(field_name.to_s)
|
16
|
+
field field_name
|
17
|
+
end
|
16
18
|
|
17
19
|
super
|
18
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glebtv-carrierwave-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GlebTv
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: carrierwave
|
@@ -111,6 +111,7 @@ extra_rdoc_files: []
|
|
111
111
|
files:
|
112
112
|
- .gitignore
|
113
113
|
- .ruby-gemset
|
114
|
+
- .ruby-version
|
114
115
|
- .travis.yml
|
115
116
|
- Gemfile
|
116
117
|
- Gemfile.lock
|
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
158
|
version: '0'
|
158
159
|
requirements: []
|
159
160
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.0.
|
161
|
+
rubygems_version: 2.0.6
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: This fork makes GridFS optional
|