rails_admin_settings 0.6.5 → 0.6.7

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: 71d5b091e4c98ce03f6c83d05f0d9d0bddb5943e
4
- data.tar.gz: 8d68636b7c7b276e6a1590ad29fa0c01edde4bb0
3
+ metadata.gz: 8dd5f420a09fedef93f144d32594f4ed3cc17ce5
4
+ data.tar.gz: 9891bdfd3b652b49a70af050e011eb1e1024896c
5
5
  SHA512:
6
- metadata.gz: 440fc5862b70524e11c265c44b5676b11728128165f3b1f8dba738d8bc1220843dc3af58c7fdcff0c5ff57f5da2736f6efdd1065cf6a7edef4d52815925ebe8f
7
- data.tar.gz: 92e113cef2735cbaabd77b289ed8e7e6e2b757fee3405e34cba81cb969239f90b0eb55fc0999d596daa69b4596caf4a73a0ed69961ba992acd57c28c0dc47b1a
6
+ metadata.gz: 79f77c416cdc0a487dec52daa92559404b06427ba74394247e0484955da13240cca749cdeefac5e7807d1a4ca4461751248a9ab95991089633ac4f7f2dab696b
7
+ data.tar.gz: 40e9e21eca9fb161bbff58e628d91e1e527d728bef2b3d0c07314348d1dbf7f4572d6b464aa2796e016609e1afbf892ea13646979dbfaa5ed905d46ffe66128e
@@ -10,6 +10,7 @@ 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"))
13
14
  Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
14
15
  end
15
16
  end
@@ -12,8 +12,12 @@ namespace :settings do
12
12
  end
13
13
 
14
14
  desc "Dump settings to config/settings.yml"
15
- task :dump => ['settings:require'] do
16
- path = Settings.root_file_path.join('config/settings.yml')
15
+ task :dump, [:as_env] => ['settings:require'] do |t, args|
16
+ if args.empty?
17
+ path = Settings.root_file_path.join('config/settings.yml')
18
+ else
19
+ path = Settings.root_file_path.join("config/settings.#{args[:as_env]}.yml")
20
+ end
17
21
  RailsAdminSettings::Dumper.dump(path)
18
22
  puts "dumped settings to #{path}"
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv