rails_admin_settings 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/lib/rails_admin_settings/uploads.rb +3 -3
- data/lib/rails_admin_settings/version.rb +1 -1
- metadata +2 -3
- data/gemfiles/mongoid-3.0.gemfile +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: daf283cef242208c445d469dfa8b3608cbbef8a1
|
|
4
|
+
data.tar.gz: 7f8b0fa36cba674dddea4b6ab1e626701057bd28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87550cd78de0107a324dcce90b8094ad8787eb1336ca76709ec703273432f4e5b968e2bc806adcaec7386dafeeb90152cb2acda84f5476d72ab2ebd019154cac
|
|
7
|
+
data.tar.gz: 1a28c1b482f2b65e56a98f089bb2c64643c55998047567a0e8ca5e1bfb36935aadb36045907a8375a581c9098dc75354bdfa3ad344c4f79bef3afc93e923e46a
|
data/.travis.yml
CHANGED
|
@@ -10,11 +10,10 @@ rvm:
|
|
|
10
10
|
- jruby-19mode
|
|
11
11
|
|
|
12
12
|
env:
|
|
13
|
-
- "UPLOADS=paperclip"
|
|
14
|
-
- "UPLOADS=carrierwave"
|
|
13
|
+
- "UPLOADS=paperclip"
|
|
14
|
+
- "UPLOADS=carrierwave"
|
|
15
15
|
|
|
16
16
|
gemfile:
|
|
17
17
|
- Gemfile
|
|
18
|
-
- gemfiles/mongoid-3.0.gemfile
|
|
19
18
|
- gemfiles/mongoid-3.1.gemfile
|
|
20
19
|
- gemfiles/mongoid-4.0.gemfile
|
|
@@ -5,7 +5,7 @@ module RailsAdminSettings
|
|
|
5
5
|
def self.included(base)
|
|
6
6
|
# carrierwave
|
|
7
7
|
if base.respond_to?(:mount_uploader)
|
|
8
|
-
puts "[rails_admin_settings] CarrierWave detected"
|
|
8
|
+
# puts "[rails_admin_settings] CarrierWave detected"
|
|
9
9
|
# base.field(:file, type: String)
|
|
10
10
|
base.mount_uploader(:file, RailsAdminSettings::Uploads::CarrierWave)
|
|
11
11
|
Settings.file_uploads_supported = true
|
|
@@ -13,7 +13,7 @@ module RailsAdminSettings
|
|
|
13
13
|
# paperclip
|
|
14
14
|
elsif Mongoid.const_defined?('Paperclip')
|
|
15
15
|
base.send(:include, Mongoid::Paperclip)
|
|
16
|
-
puts "[rails_admin_settings] PaperClip detected"
|
|
16
|
+
# puts "[rails_admin_settings] PaperClip detected"
|
|
17
17
|
base.field(:file, type: String)
|
|
18
18
|
if defined?(Rails)
|
|
19
19
|
base.has_mongoid_attached_file(:file)
|
|
@@ -26,7 +26,7 @@ module RailsAdminSettings
|
|
|
26
26
|
Settings.file_uploads_supported = true
|
|
27
27
|
Settings.file_uploads_engine = :paperclip
|
|
28
28
|
else
|
|
29
|
-
puts "[rails_admin_settings] Uploads disabled"
|
|
29
|
+
# puts "[rails_admin_settings] Uploads disabled"
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
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.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gleb Tv
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mongoid
|
|
@@ -254,7 +254,6 @@ files:
|
|
|
254
254
|
- app/views/rails_admin/main/_setting_value.html.haml
|
|
255
255
|
- config/locales/en.rails_admin_settings.yml
|
|
256
256
|
- config/locales/ru.rails_admin_settings.yml
|
|
257
|
-
- gemfiles/mongoid-3.0.gemfile
|
|
258
257
|
- gemfiles/mongoid-3.1.gemfile
|
|
259
258
|
- gemfiles/mongoid-4.0.gemfile
|
|
260
259
|
- lib/rails_admin_settings.rb
|