rails_admin_settings 0.7.2 → 0.7.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: 321055338bf05b6c4d7cfa8743eae2f6c8cc1406
4
- data.tar.gz: 1b98fc48a2dcc4b0024ce4533a6053d320145e91
3
+ metadata.gz: 908dcd24b950848fd0f8b1a5fce547058ee042f7
4
+ data.tar.gz: 549e88df99639d5d23af8c85694a15aee17be356
5
5
  SHA512:
6
- metadata.gz: 19c011ef732f268b147ec99c1b1424944fcea771371af2da8de5d484b6427f9ae30df69bd14614fbda5fea833c2b9f1ab40bff541b94f9a8039cba3d60d8d8a2
7
- data.tar.gz: 8ce812ef0ae98861972d4207a7319fdd1e61cd689dc3bbe97798615d4686de9db5fb4d30a2db9e8f3223fbb8258f39e62c4281993d801064128b5bbdee5ccfaa
6
+ metadata.gz: e9cfe2dd187e70566acebc5d862781e553b85f89fb6ce5c2e1e08ca14a13cd2840b7e839d439ac2d552c2c596c5ca0ec6d20c57e476510b566e73e79b27fc6ea
7
+ data.tar.gz: 99178fd67c8bbf9718b5d3cd29ad4e497638c48bc552b0cdaf9155ef4d94a8161aeb429e6844f9418192923749b875d278233f31cb072b8d83fd823131c06fb6
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "mongoid", github: "mongoid/mongoid", branch: "master"
3
+ gem "mongoid", "~> 4.0.0.beta1"
4
4
 
5
5
  gemspec path: "../"
@@ -20,8 +20,9 @@ module RailsAdminSettings
20
20
  else
21
21
  base.has_mongoid_attached_file(:file, path: "#{File.dirname(__FILE__)}/../../uploads/:filename", url: '/uploads/:filename')
22
22
  end
23
- base.send(:attr_accessor, :delete_file)
24
- base.before_validation { self.file.clear if self.delete_file == '1' }
23
+ if base.respond_to?(:do_not_validate_attachment_file_type)
24
+ base.do_not_validate_attachment_file_type :file
25
+ end
25
26
 
26
27
  Settings.file_uploads_supported = true
27
28
  Settings.file_uploads_engine = :paperclip
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency "safe_yaml", "~> 1.0.0"
32
32
  spec.add_development_dependency "russian_phone", "~> 0.3.2"
33
- spec.add_development_dependency "sanitize", "~> 2.0.3"
33
+ spec.add_development_dependency "sanitize", "~> 2.1.0"
34
34
  spec.add_development_dependency "validates_email_format_of", "~> 1.5.3"
35
35
  spec.add_development_dependency "geocoder", "~> 1.1.6"
36
36
  spec.add_development_dependency "addressable", "~> 2.3.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - ~>
158
158
  - !ruby/object:Gem::Version
159
- version: 2.0.3
159
+ version: 2.1.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ~>
165
165
  - !ruby/object:Gem::Version
166
- version: 2.0.3
166
+ version: 2.1.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: validates_email_format_of
169
169
  requirement: !ruby/object:Gem::Requirement