glebtv-carrierwave-mongoid 0.7.0 → 0.8.0

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: 5e1bca5dfb3392fd94d0b2a8e9f6bce23e6fbe28
4
- data.tar.gz: 9b54fcc0f39bc7868eef019eac4f13526d676e46
3
+ metadata.gz: e49a595e689f8192fa11d468acf7633009c00ea0
4
+ data.tar.gz: 795c3bd449d3e97c7373a158ea244ab7f703dfda
5
5
  SHA512:
6
- metadata.gz: a0556f211d51b45f9fad88b21c2b1a5a2e831d406360a53879ef0aba9f6150f8ac194d4c17e7702aee0d04eb862b6d621310b9b30da78c281268056e282339e3
7
- data.tar.gz: 71987c56d274d9179415f6b6714f166f1028806c8a3901293bdaf432704571c69a52d052a4f5cf6dc29395adc835f209d5b8194005aab2f99ecb0f4de18f8e5d
6
+ metadata.gz: 7b9d51c811e0d24fb60a7e42e1a66e7cabaebbd6db607d10e5aa837c807383ecaf6fadefd5ff0279994750359eb35dd9c148ce9c0d7685e015fff86633e9b4bd
7
+ data.tar.gz: d2c510e43b61ca8abb4a1a9beff384ef9d13f43a1ed6891fd43cef5c98fe9b4b24ff6bfdc82ec0125e1e123d7574b9ec773b4921583d3b21fb2e5be47d74c8f1
@@ -1 +1 @@
1
- ruby-2.0.0-p247
1
+ 2.1.1
@@ -4,8 +4,18 @@ notifications:
4
4
  email: false
5
5
 
6
6
  language: ruby
7
+ cache: bundler
7
8
  rvm:
8
9
  - 1.9.3
9
10
  - 2.0.0
10
- - 2.1.0
11
+ - 2.1.1
12
+ - jruby-19mode
11
13
 
14
+ gemfile:
15
+ - Gemfile
16
+ - gemfiles/carrierwave-0.8.gemfile
17
+ - gemfiles/carrierwave-0.9.gemfile
18
+ - gemfiles/carrierwave-master.gemfile
19
+ - gemfiles/mongoid-3.0.gemfile
20
+ - gemfiles/mongoid-3.1.gemfile
21
+ - gemfiles/mongoid-4.0.gemfile
@@ -1,68 +1,57 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- glebtv-carrierwave-mongoid (0.7.0)
5
- carrierwave (~> 0.9.0)
6
- mongoid (~> 4.0.0.alpha1)
4
+ glebtv-carrierwave-mongoid (0.8.0)
5
+ carrierwave (>= 0.8.0, < 0.11.0)
6
+ mongoid (>= 3.0, < 5.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activemodel (4.0.3)
12
- activesupport (= 4.0.3)
13
- builder (~> 3.1.0)
14
- activesupport (4.0.3)
11
+ activemodel (3.2.17)
12
+ activesupport (= 3.2.17)
13
+ builder (~> 3.0.0)
14
+ activesupport (3.2.17)
15
15
  i18n (~> 0.6, >= 0.6.4)
16
- minitest (~> 4.2)
17
- multi_json (~> 1.3)
18
- thread_safe (~> 0.1)
19
- tzinfo (~> 0.3.37)
20
- atomic (1.1.14)
21
- bson (2.2.0)
22
- builder (3.1.4)
23
- carrierwave (0.9.0)
16
+ multi_json (~> 1.0)
17
+ builder (3.0.4)
18
+ carrierwave (0.10.0)
24
19
  activemodel (>= 3.2.0)
25
20
  activesupport (>= 3.2.0)
26
21
  json (>= 1.7)
22
+ mime-types (>= 1.16)
27
23
  coderay (1.1.0)
28
- connection_pool (1.2.0)
29
24
  diff-lcs (1.2.5)
30
25
  i18n (0.6.9)
31
26
  json (1.8.1)
32
27
  method_source (0.8.2)
28
+ mime-types (2.2)
33
29
  mini_magick (3.7.0)
34
30
  subexec (~> 0.2.1)
35
- minitest (4.7.5)
36
- mongoid (4.0.0.beta1)
37
- activemodel (>= 4.0.0)
38
- moped (~> 2.0.beta6)
39
- origin (~> 2.1)
40
- tzinfo (>= 0.3.37)
41
- moped (2.0.0.beta6)
42
- bson (~> 2.2)
43
- connection_pool (~> 1.2)
44
- optionable (~> 0.2.0)
45
- multi_json (1.8.4)
46
- optionable (0.2.0)
47
- origin (2.1.0)
31
+ mongoid (3.1.6)
32
+ activemodel (~> 3.2)
33
+ moped (~> 1.4)
34
+ origin (~> 1.0)
35
+ tzinfo (~> 0.3.29)
36
+ moped (1.5.2)
37
+ multi_json (1.9.2)
38
+ origin (1.1.0)
48
39
  pry (0.9.12.6)
49
40
  coderay (~> 1.0)
50
41
  method_source (~> 0.8)
51
42
  slop (~> 3.4)
52
- rake (10.1.1)
43
+ rake (10.3.0)
53
44
  rspec (2.14.1)
54
45
  rspec-core (~> 2.14.0)
55
46
  rspec-expectations (~> 2.14.0)
56
47
  rspec-mocks (~> 2.14.0)
57
- rspec-core (2.14.7)
48
+ rspec-core (2.14.8)
58
49
  rspec-expectations (2.14.5)
59
50
  diff-lcs (>= 1.1.3, < 2.0)
60
- rspec-mocks (2.14.5)
61
- slop (3.4.7)
51
+ rspec-mocks (2.14.6)
52
+ slop (3.5.0)
62
53
  subexec (0.2.3)
63
- thread_safe (0.1.3)
64
- atomic
65
- tzinfo (0.3.38)
54
+ tzinfo (0.3.39)
66
55
 
67
56
  PLATFORMS
68
57
  ruby
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Fork with OPTIONAL gridfs
2
2
 
3
+ [![Build Status](https://travis-ci.org/glebtv/carrierwave-mongoid.svg)](https://travis-ci.org/glebtv/carrierwave-mongoid)
4
+ [![Dependency Status](https://www.versioneye.com/user/projects/534e86f5fe0d07a8e100033a/badge.png)](https://www.versioneye.com/user/projects/534e86f5fe0d07a8e100033a)
5
+ [![Gem Version](https://badge.fury.io/rb/glebtv-carrierwave-mongoid.svg)](http://badge.fury.io/rb/glebtv-carrierwave-mongoid)
6
+
3
7
  # CarrierWave for Mongoid
4
8
 
5
9
  See upstream for details: https://github.com/carrierwaveuploader/carrierwave-mongoid
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "carrierwave", "~> 0.8.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "carrierwave", "~> 0.9.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "carrierwave", github: "carrierwaveuploader/carrierwave", branch: "master"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "mongoid", github: "mongoid/mongoid", branch: "3.0.0-stable"
4
+ gem "activemodel", "~> 3.2"
5
+
6
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "mongoid", github: "mongoid/mongoid", branch: "3.1.0-stable"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "mongoid-grid_fs", github: "ahoward/mongoid-grid_fs", branch: "master"
4
+ gem "mongoid", github: "mongoid/mongoid", branch: "master"
5
+
6
+ gemspec path: "../"
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency "mongoid", '~> 4.0.0.alpha1'
22
- s.add_dependency "carrierwave", '~> 0.9.0'
21
+ s.add_dependency "mongoid", [">= 3.0", "< 5.0"]
22
+ s.add_dependency "carrierwave", [">= 0.8.0", "< 0.11.0"]
23
23
 
24
24
  s.add_development_dependency "rspec"
25
25
  s.add_development_dependency "rake"
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Mongoid
3
- VERSION = "0.7.0"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
@@ -196,17 +196,15 @@ describe CarrierWave::Mongoid do
196
196
  end
197
197
 
198
198
  it "should use I18n for integrity error messages" do
199
- @doc.valid?
200
- @doc.errors[:image].should == ['is not of an allowed file type']
201
-
202
- change_locale_and_store_translations(:pt, :mongoid => {
203
- :errors => {
204
- :messages => {
205
- :carrierwave_integrity_error => 'tipo de imagem não permitido.'
206
- }
207
- }
208
- }) do
209
- @doc.should_not be_valid
199
+ translations = { mongoid: { errors: { messages: { carrierwave_integrity_error: 'is not of an allowed file type' }}}}
200
+ change_locale_and_store_translations(:en, translations) do
201
+ @doc.valid?
202
+ @doc.errors[:image].should == ['is not of an allowed file type']
203
+ end
204
+
205
+ translations = { mongoid: { errors: { messages: { carrierwave_integrity_error: 'tipo de imagem não permitido.' }}}}
206
+ change_locale_and_store_translations(:pt, translations) do
207
+ @doc.valid?
210
208
  @doc.errors[:image].should == ['tipo de imagem não permitido.']
211
209
  end
212
210
  end
@@ -224,17 +222,15 @@ describe CarrierWave::Mongoid do
224
222
  end
225
223
 
226
224
  it "should use I18n for processing error messages" do
227
- @doc.valid?
228
- @doc.errors[:image].should == ['failed to be processed']
229
-
230
- change_locale_and_store_translations(:pt, :mongoid => {
231
- :errors => {
232
- :messages => {
233
- :carrierwave_processing_error => 'falha ao processar imagem.'
234
- }
235
- }
236
- }) do
237
- @doc.should_not be_valid
225
+ translations = { mongoid: { errors: { messages: { carrierwave_processing_error: 'failed to be processed' }}}}
226
+ change_locale_and_store_translations(:en, translations) do
227
+ @doc.valid?
228
+ @doc.errors[:image].should == ['failed to be processed']
229
+ end
230
+
231
+ translations = { mongoid: { errors: { messages: { carrierwave_processing_error: 'falha ao processar imagem.' }}}}
232
+ change_locale_and_store_translations(:pt, translations) do
233
+ @doc.valid?
238
234
  @doc.errors[:image].should == ['falha ao processar imagem.']
239
235
  end
240
236
  end
@@ -290,7 +286,7 @@ describe CarrierWave::Mongoid do
290
286
  @doc.save.should be_true
291
287
  @doc.reload
292
288
  @doc.image.should be_blank
293
- @doc.image_identifier.should == ''
289
+ @doc.image_identifier.should be_blank
294
290
  end
295
291
 
296
292
  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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
@@ -10,90 +10,102 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-19 00:00:00.000000000 Z
13
+ date: 2014-04-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.0.alpha1
21
+ version: '3.0'
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '5.0'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
- - - ~>
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
32
+ - - "<"
27
33
  - !ruby/object:Gem::Version
28
- version: 4.0.0.alpha1
34
+ version: '5.0'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: carrierwave
31
37
  requirement: !ruby/object:Gem::Requirement
32
38
  requirements:
33
- - - ~>
39
+ - - ">="
34
40
  - !ruby/object:Gem::Version
35
- version: 0.9.0
41
+ version: 0.8.0
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: 0.11.0
36
45
  type: :runtime
37
46
  prerelease: false
38
47
  version_requirements: !ruby/object:Gem::Requirement
39
48
  requirements:
40
- - - ~>
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 0.8.0
52
+ - - "<"
41
53
  - !ruby/object:Gem::Version
42
- version: 0.9.0
54
+ version: 0.11.0
43
55
  - !ruby/object:Gem::Dependency
44
56
  name: rspec
45
57
  requirement: !ruby/object:Gem::Requirement
46
58
  requirements:
47
- - - '>='
59
+ - - ">="
48
60
  - !ruby/object:Gem::Version
49
61
  version: '0'
50
62
  type: :development
51
63
  prerelease: false
52
64
  version_requirements: !ruby/object:Gem::Requirement
53
65
  requirements:
54
- - - '>='
66
+ - - ">="
55
67
  - !ruby/object:Gem::Version
56
68
  version: '0'
57
69
  - !ruby/object:Gem::Dependency
58
70
  name: rake
59
71
  requirement: !ruby/object:Gem::Requirement
60
72
  requirements:
61
- - - '>='
73
+ - - ">="
62
74
  - !ruby/object:Gem::Version
63
75
  version: '0'
64
76
  type: :development
65
77
  prerelease: false
66
78
  version_requirements: !ruby/object:Gem::Requirement
67
79
  requirements:
68
- - - '>='
80
+ - - ">="
69
81
  - !ruby/object:Gem::Version
70
82
  version: '0'
71
83
  - !ruby/object:Gem::Dependency
72
84
  name: mini_magick
73
85
  requirement: !ruby/object:Gem::Requirement
74
86
  requirements:
75
- - - '>='
87
+ - - ">="
76
88
  - !ruby/object:Gem::Version
77
89
  version: '0'
78
90
  type: :development
79
91
  prerelease: false
80
92
  version_requirements: !ruby/object:Gem::Requirement
81
93
  requirements:
82
- - - '>='
94
+ - - ">="
83
95
  - !ruby/object:Gem::Version
84
96
  version: '0'
85
97
  - !ruby/object:Gem::Dependency
86
98
  name: pry
87
99
  requirement: !ruby/object:Gem::Requirement
88
100
  requirements:
89
- - - '>='
101
+ - - ">="
90
102
  - !ruby/object:Gem::Version
91
103
  version: '0'
92
104
  type: :development
93
105
  prerelease: false
94
106
  version_requirements: !ruby/object:Gem::Requirement
95
107
  requirements:
96
- - - '>='
108
+ - - ">="
97
109
  - !ruby/object:Gem::Version
98
110
  version: '0'
99
111
  description: This fork makes GridFS optional
@@ -103,15 +115,21 @@ executables: []
103
115
  extensions: []
104
116
  extra_rdoc_files: []
105
117
  files:
106
- - .gitignore
107
- - .ruby-gemset
108
- - .ruby-version
109
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".ruby-gemset"
120
+ - ".ruby-version"
121
+ - ".travis.yml"
110
122
  - Gemfile
111
123
  - Gemfile.lock
112
124
  - LICENSE
113
125
  - README.md
114
126
  - Rakefile
127
+ - gemfiles/carrierwave-0.8.gemfile
128
+ - gemfiles/carrierwave-0.9.gemfile
129
+ - gemfiles/carrierwave-master.gemfile
130
+ - gemfiles/mongoid-3.0.gemfile
131
+ - gemfiles/mongoid-3.1.gemfile
132
+ - gemfiles/mongoid-4.0.gemfile
115
133
  - glebtv-carrierwave-mongoid.gemspec
116
134
  - lib/carrierwave/mongoid.rb
117
135
  - lib/carrierwave/mongoid/version.rb
@@ -138,17 +156,17 @@ require_paths:
138
156
  - lib
139
157
  required_ruby_version: !ruby/object:Gem::Requirement
140
158
  requirements:
141
- - - '>='
159
+ - - ">="
142
160
  - !ruby/object:Gem::Version
143
161
  version: '0'
144
162
  required_rubygems_version: !ruby/object:Gem::Requirement
145
163
  requirements:
146
- - - '>='
164
+ - - ">="
147
165
  - !ruby/object:Gem::Version
148
166
  version: '0'
149
167
  requirements: []
150
168
  rubyforge_project:
151
- rubygems_version: 2.2.1
169
+ rubygems_version: 2.2.2
152
170
  signing_key:
153
171
  specification_version: 4
154
172
  summary: This fork makes GridFS optional