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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 107af04022af867c958e4a5fd97f29eb6baedc5c
4
- data.tar.gz: 2c5bb6025324a49ff388155320551d4061a308ed
3
+ metadata.gz: 7e4c80f2f675129ba495c84135384e16955759ee
4
+ data.tar.gz: 9fc59522be038f7ef9ffaba8345c30bd28ed2f3d
5
5
  SHA512:
6
- metadata.gz: 88284fdbd0ac466779c1a583df0fa7be58e3e401f22290166268c612b0357d18346e972a8bf5c623022786c81bb67e23dc383555a69eddf624bcace1f8a3a65d
7
- data.tar.gz: 9ba9b00ac450db8677d71d76feb097c80e095906a5cd6093c696d2cc5f409d87795ebfbaf45574a0d4e909d26dae228e1075bf2a27af027c91429a3594bceb05
6
+ metadata.gz: 1cd03be3e03935d3491ba5498cd2f6898220762bbc6f530ac912d3624896f0249623459d6b21187c4e2c899ac01faf41d3474f19b54a7eba4b7e01a31570a492
7
+ data.tar.gz: 39561d9e5556eac1e329f21618595daf2b4348ee6e662d457a9f295d3e08880d0c3013d25f122ad926656554ee80ccdbab87d573bb6e2335960d71614ddc88f3
data/.gitignore CHANGED
@@ -3,7 +3,5 @@ pkg/*
3
3
  *.sw*
4
4
  .bundle
5
5
  spec/public
6
- .rvmrc
7
- .ruby-version
8
6
  gemfiles/*.lock
9
7
  log/*
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.2)
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.13)
12
- activesupport (= 3.2.13)
11
+ activemodel (3.2.14)
12
+ activesupport (= 3.2.14)
13
13
  builder (~> 3.0.0)
14
- activesupport (3.2.13)
15
- i18n (= 0.6.1)
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.1)
24
+ i18n (0.6.4)
25
25
  json (1.8.0)
26
- method_source (0.8.1)
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.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.3)
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.1)
50
- slop (3.4.5)
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
 
@@ -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
- field field_name unless fields.keys.include?(field_name.to_s)
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
 
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Mongoid
3
- VERSION = "0.6.2"
3
+ VERSION = "0.6.3"
4
4
  end
5
5
  end
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.2
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-07-20 00:00:00.000000000 Z
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.3
161
+ rubygems_version: 2.0.6
161
162
  signing_key:
162
163
  specification_version: 4
163
164
  summary: This fork makes GridFS optional