radiant-basic_page_auth-extension 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,7 +27,7 @@ gem install radiant-basic_page_auth-extension
27
27
  Include the gem in your environment.rb :
28
28
 
29
29
  ```
30
- config.gem 'radiant-basic_page_auth-extension', :version => '~> 1.0.0'
30
+ config.gem 'radiant-basic_page_auth-extension', :version => '~> 1.0.1'
31
31
  ```
32
32
 
33
33
  Run the update task :
@@ -1,5 +1,5 @@
1
1
  module RadiantBasicPageAuthExtension
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  SUMMARY = %q{HTTP Basic Authentication for Radiant CMS}
4
4
  DESCRIPTION = %{Protect a page's contents with HTTP Basic Authentication.}
5
5
  URL = "https://github.com/jsntv200/radiant-basic_page_auth-extension"
@@ -2,6 +2,7 @@ module RadiantBasicPageAuthExtension
2
2
  module Page
3
3
  def self.included(base)
4
4
  base.instance_eval {
5
+ attr_accessor_with_default :authenticated, false
5
6
  include InstanceMethods
6
7
  }
7
8
  end
@@ -19,6 +19,7 @@ module RadiantBasicPageAuthExtension
19
19
  end
20
20
  end
21
21
 
22
+ page.authenticated = true
22
23
  process_page_without_basic_auth(page)
23
24
  else
24
25
  request_http_basic_authentication(page.basic_auth_realm)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-basic_page_auth-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Taylor
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-29 00:00:00 +10:00
18
+ date: 2011-08-04 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -43,7 +43,7 @@ has_rdoc: true
43
43
  homepage: https://github.com/jsntv200/radiant-basic_page_auth-extension
44
44
  licenses: []
45
45
 
46
- post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-basic_page_auth-extension', :version => '~> 1.0.0'\n "
46
+ post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-basic_page_auth-extension', :version => '~> 1.0.1'\n "
47
47
  rdoc_options: []
48
48
 
49
49
  require_paths: