configvars_rails 0.2.2 → 0.2.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{configvars_rails}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Victor Costan"]
@@ -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 do |user, password|
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
- password == ConfigVar['config_vars.http_password']
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan