configvars_rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/configvars_rails.gemspec
CHANGED
@@ -6,9 +6,10 @@ class ConfigVarsController < ApplicationController
|
|
6
6
|
# around modifying them.
|
7
7
|
before_filter :http_basic_check
|
8
8
|
def http_basic_check
|
9
|
-
authenticate_or_request_with_http_basic
|
9
|
+
authenticate_or_request_with_http_basic(
|
10
|
+
ConfigVar['config_vars.http_realm']) do |user, password|
|
10
11
|
user == ConfigVar['config_vars.http_user'] &&
|
11
|
-
|
12
|
+
password == ConfigVar['config_vars.http_password']
|
12
13
|
end
|
13
14
|
end
|
14
15
|
private :http_basic_check
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Used in the scaffolded ConfigVarsController.
|
2
2
|
ConfigVars.string 'config_vars.http_user', 'config'
|
3
3
|
ConfigVars.string 'config_vars.http_password', 'vars'
|
4
|
+
ConfigVars.string 'config_vars.http_realm', 'Configuration Variables'
|
4
5
|
|
5
6
|
# Example use only. Remove after reading.
|
6
7
|
ConfigVars.string('block_example') { Time.now }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configvars_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|