rails_admin_settings 0.7.3 → 0.7.4

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: 908dcd24b950848fd0f8b1a5fce547058ee042f7
4
- data.tar.gz: 549e88df99639d5d23af8c85694a15aee17be356
3
+ metadata.gz: 015b9c7212b0472dd83706edcd790c417057b357
4
+ data.tar.gz: 7c73ecbac3122835384cb56e4d39c697a6a676be
5
5
  SHA512:
6
- metadata.gz: e9cfe2dd187e70566acebc5d862781e553b85f89fb6ce5c2e1e08ca14a13cd2840b7e839d439ac2d552c2c596c5ca0ec6d20c57e476510b566e73e79b27fc6ea
7
- data.tar.gz: 99178fd67c8bbf9718b5d3cd29ad4e497638c48bc552b0cdaf9155ef4d94a8161aeb429e6844f9418192923749b875d278233f31cb072b8d83fd823131c06fb6
6
+ metadata.gz: a599a697d23e2e6be8203ba321733b1f5dec8938ffd39cd2664b7c547011118376376e66d543c876cb99432d9da4fd45c7f7de0ee120b73574fe5daf9aef1d67
7
+ data.tar.gz: c34095c9e25a40a7773b0330673cf6ef0418833ec4dbf88614801e2f6232dd650d65cd8daf5c389eff6ec6b975201f8cf0367a11d9fe04afd4f32ceaf7541b5c
@@ -10,8 +10,6 @@ module RailsAdminSettings
10
10
  end
11
11
 
12
12
  RailsAdminSettings::Setting.where(:ns.exists => false).update_all(ns: 'main')
13
- Settings.apply_defaults!(Rails.root.join("config/settings.#{Rails.env.to_s}.yml"))
14
- Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
15
13
  end
16
14
  end
17
15
  end
@@ -21,6 +21,12 @@ namespace :settings do
21
21
  RailsAdminSettings::Dumper.dump(path)
22
22
  puts "dumped settings to #{path}"
23
23
  end
24
+
25
+ desc "Load settings from config/settings.yml without overwriting current values"
26
+ task :load => ['settings:require'] do
27
+ Settings.apply_defaults!(Rails.root.join("config/settings.#{Rails.env.to_s}.yml"))
28
+ Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
29
+ end
24
30
 
25
31
  desc "Delete all settings"
26
32
  task :delete => ['settings:require'] do
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  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.7.3
4
+ version: 0.7.4
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-02-02 00:00:00.000000000 Z
11
+ date: 2014-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid