comfortable_mexican_sofa 1.0.33 → 1.0.34
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
|
-
1.0.
|
|
1
|
+
1.0.34
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
|
8
|
-
s.version = "1.0.
|
|
8
|
+
s.version = "1.0.34"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
|
12
|
-
s.date = %q{2010-12-
|
|
12
|
+
s.date = %q{2010-12-06}
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
# Comfortable Mexican Sofa initializer. Change defaults to whatever you require
|
|
2
1
|
ComfortableMexicanSofa.configure do |config|
|
|
2
|
+
# Title of the admin area
|
|
3
3
|
config.cms_title = 'ComfortableMexicanSofa'
|
|
4
|
+
|
|
5
|
+
# Module responsible for authentication. You can replace it with your own.
|
|
6
|
+
# It simply needs to have #authenticate method. See http_auth.rb for reference.
|
|
4
7
|
config.authentication = 'ComfortableMexicanSofa::HttpAuth'
|
|
8
|
+
|
|
9
|
+
# Default url to access admin area is http://yourhost/cms-admin/
|
|
10
|
+
# You can change 'cms-admin' to 'admin', for example.
|
|
11
|
+
# config.admin_route_prefix = 'cms-admin'
|
|
12
|
+
|
|
13
|
+
# Path: /cms-admin redirects to /cms-admin/pages but you can change it
|
|
14
|
+
# to something else like:
|
|
15
|
+
# config.admin_route_redirect = '/cms-admin/pages'
|
|
16
|
+
|
|
17
|
+
# Location of YAML files that can be used to render pages instead of pulling
|
|
18
|
+
# data from the database. Not active if not specified.
|
|
19
|
+
# config.seed_data_path = File.expand_path('db/cms_seeds', Rails.root)
|
|
5
20
|
end
|
|
6
21
|
|
|
7
|
-
#
|
|
22
|
+
# Default credentials for ComfortableMexicanSofa::HttpAuth
|
|
8
23
|
ComfortableMexicanSofa::HttpAuth.username = 'username'
|
|
9
|
-
ComfortableMexicanSofa::HttpAuth.password = 'password'
|
|
24
|
+
ComfortableMexicanSofa::HttpAuth.password = 'password'
|
|
25
|
+
|
|
26
|
+
# If you need to inject some html in cms admin views you can define what partial
|
|
27
|
+
# should be rendered into the following areas:
|
|
28
|
+
# ComfortableMexicanSofa::ViewHooks.add(:navigation, '/layouts/admin/navigation')
|
|
29
|
+
# ComfortableMexicanSofa::ViewHooks.add(:html_head, '/layouts/admin/html_head')
|
|
30
|
+
# ComfortableMexicanSofa::ViewHooks.add(:page_form, '/layouts/admin/page_form')
|
data/config/routes.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Rails.application.routes.draw do
|
|
2
2
|
|
|
3
3
|
namespace :cms_admin, :path => ComfortableMexicanSofa.config.admin_route_prefix, :except => :show do
|
|
4
|
-
get '/' => redirect(
|
|
4
|
+
get '/' => redirect(ComfortableMexicanSofa.config.admin_route_redirect)
|
|
5
5
|
resources :pages do
|
|
6
6
|
member do
|
|
7
7
|
match :form_blocks
|
|
@@ -14,12 +14,17 @@ class ComfortableMexicanSofa::Configuration
|
|
|
14
14
|
# You can change 'cms-admin' to 'admin', for example.
|
|
15
15
|
attr_accessor :admin_route_prefix
|
|
16
16
|
|
|
17
|
+
# /cms-admin redirects to /cms-admin/pages but you can change it
|
|
18
|
+
# to something else
|
|
19
|
+
attr_accessor :admin_route_redirect
|
|
20
|
+
|
|
17
21
|
# Configuration defaults
|
|
18
22
|
def initialize
|
|
19
|
-
@cms_title
|
|
20
|
-
@authentication
|
|
21
|
-
@seed_data_path
|
|
22
|
-
@admin_route_prefix
|
|
23
|
+
@cms_title = 'ComfortableMexicanSofa'
|
|
24
|
+
@authentication = 'ComfortableMexicanSofa::HttpAuth'
|
|
25
|
+
@seed_data_path = nil
|
|
26
|
+
@admin_route_prefix = 'cms-admin'
|
|
27
|
+
@admin_route_redirect = "/#{@admin_route_prefix}/pages"
|
|
23
28
|
end
|
|
24
29
|
|
|
25
30
|
end
|
|
@@ -8,6 +8,7 @@ class CmsConfigurationTest < ActiveSupport::TestCase
|
|
|
8
8
|
assert_equal 'ComfortableMexicanSofa::HttpAuth', config.authentication
|
|
9
9
|
assert_equal nil, config.seed_data_path
|
|
10
10
|
assert_equal 'cms-admin', config.admin_route_prefix
|
|
11
|
+
assert_equal '/cms-admin/pages', config.admin_route_redirect
|
|
11
12
|
end
|
|
12
13
|
|
|
13
14
|
def test_initialization_overrides
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: comfortable_mexican_sofa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 83
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 34
|
|
10
|
+
version: 1.0.34
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Oleg Khabarov
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-12-
|
|
19
|
+
date: 2010-12-06 00:00:00 -05:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|