super_simple_admin 0.2.4 → 0.2.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.
data/Changelog CHANGED
File without changes
data/LICENSE CHANGED
File without changes
@@ -95,4 +95,4 @@ These are the ideas I have for improvements. If you feel inspired to help with a
95
95
 
96
96
  h3. Fixes
97
97
 
98
- * Seem to be having trouble specifying :login_failure_message from the config file
98
+ * Seem to be having trouble specifying :login_failure_message from the config file (fixed - 02/14)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -23,7 +23,9 @@ module SuperSimpleAdmin
23
23
  raw_config = File.read(Rails.root.to_s + "/config/admin_config.yml")
24
24
  yml = YAML.load(raw_config)
25
25
  @config.merge! yml["all_environments"].symbolize_keys
26
- @config.merge! yml[Rails.env].symbolize_keys
26
+ if yml[Rails.env]
27
+ @config.merge! yml[Rails.env].symbolize_keys
28
+ end
27
29
  rescue Errno::ENOENT
28
30
  end
29
31
 
@@ -0,0 +1,6 @@
1
+ all_environments:
2
+ password: secret
3
+ unauthorized_message: "You are note authorized to perform this action"
4
+ login_failure_message: "Incorrect password - please try again"
5
+ production:
6
+ password: supersecret
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{super_simple_admin}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["metasoarous"]
@@ -38,6 +38,7 @@ Gem::Specification.new do |s|
38
38
  "spec/rails3/app_root/app/views/layouts/application.html.erb",
39
39
  "spec/rails3/app_root/app/views/sessions/new.html.haml",
40
40
  "spec/rails3/app_root/config.ru",
41
+ "spec/rails3/app_root/config/admin_config.yml",
41
42
  "spec/rails3/app_root/config/application.rb",
42
43
  "spec/rails3/app_root/config/boot.rb",
43
44
  "spec/rails3/app_root/config/database.yml",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_simple_admin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - metasoarous
@@ -93,6 +93,7 @@ files:
93
93
  - spec/rails3/app_root/app/views/layouts/application.html.erb
94
94
  - spec/rails3/app_root/app/views/sessions/new.html.haml
95
95
  - spec/rails3/app_root/config.ru
96
+ - spec/rails3/app_root/config/admin_config.yml
96
97
  - spec/rails3/app_root/config/application.rb
97
98
  - spec/rails3/app_root/config/boot.rb
98
99
  - spec/rails3/app_root/config/database.yml