disguise 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -48,12 +48,8 @@ Disguise can run in two modes. The first is the default which let's an administ
48
48
  via the built in admin interface. The second looks at the url of the incoming request and matches it to a theme.
49
49
  To enable this second mode create an initializer in /config/initializers/disguise.rb and enter the following contents:
50
50
 
51
- USE_DOMAIN_FOR_THEMES = true
51
+ Disguise::USE_DOMAIN_FOR_THEMES = true
52
52
 
53
- == Tests
54
- Tests require the gem installed before running. In addition, if you change any of the code
55
- you will need to run rake install before testing.
56
-
57
53
  == Copyright
58
54
 
59
55
  Copyright (c) 2009 Justin Ball. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -4,7 +4,7 @@ class DomainTheme < ActiveRecord::Base
4
4
 
5
5
  class << self
6
6
  def use_domain_themes?
7
- USE_DOMAIN_FOR_THEMES
7
+ Disguise::USE_DOMAIN_FOR_THEMES
8
8
  end
9
9
 
10
10
  def get_theme(request)
data/disguise.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{disguise}
5
- s.version = "0.3.1"
5
+ s.version = "0.3.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
data/lib/disguise.rb CHANGED
@@ -5,4 +5,5 @@ I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb
5
5
  module Disguise
6
6
  THEME_PATH = 'themes'
7
7
  THEME_FULL_BASE_PATH = File.join(RAILS_ROOT, THEME_PATH)
8
+ USE_DOMAIN_FOR_THEMES = false
8
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disguise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball