forgeos_cms 1.9.2 → 1.9.4
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/README.textile +2 -42
- data/app/controllers/admin/import_controller.rb +1 -1
- data/lib/tasks/install.rake +1 -1
- metadata +7 -7
data/README.textile
CHANGED
|
@@ -2,13 +2,7 @@ h1. ForgeosCMS
|
|
|
2
2
|
|
|
3
3
|
ForgeosCMS is an extension of Ruby on Rails for CMS development
|
|
4
4
|
|
|
5
|
-
VERSION : 1.9.
|
|
6
|
-
|
|
7
|
-
h1. Prerequisites
|
|
8
|
-
|
|
9
|
-
h2. Gem
|
|
10
|
-
|
|
11
|
-
* forgeos_core >= 1.9.2
|
|
5
|
+
VERSION : 1.9.4
|
|
12
6
|
|
|
13
7
|
h2. Install
|
|
14
8
|
|
|
@@ -16,42 +10,8 @@ h2. Install
|
|
|
16
10
|
<pre><code>
|
|
17
11
|
$ rails new my_site -d mysql
|
|
18
12
|
$ cd my_site
|
|
13
|
+
$ rake rails:template LOCATION=https://raw.github.com/webpulser/forgeos_cms/rails3/forgeos_cms_install.rb
|
|
19
14
|
</code></pre>
|
|
20
|
-
# add following gem dependencies to Gemfile :
|
|
21
|
-
<pre><code class="ruby">
|
|
22
|
-
gem 'rmagick'
|
|
23
|
-
gem 'globalize3', '>= 0.1.0'
|
|
24
|
-
gem 'acts-as-taggable-on', '>= 2.0.6'
|
|
25
|
-
gem 'acts_as_list', '>= 0.1.3'
|
|
26
|
-
gem 'acts_as_tree', '>= 0.1.1'
|
|
27
|
-
gem 'bcrypt-ruby', '>= 2.1.4'
|
|
28
|
-
gem 'fastercsv', '>= 1.5.4'
|
|
29
|
-
gem 'haml', '>= 3.1.2'
|
|
30
|
-
gem 'sass', '>= 3.1.4'
|
|
31
|
-
gem 'mime-types', '>= 1.16'
|
|
32
|
-
gem 'thinking-sphinx', '>= 2.0.5'
|
|
33
|
-
gem 'webpulser-habtm_list', '>= 0.1.2'
|
|
34
|
-
gem 'will_paginate', '~> 3.0.pre4'
|
|
35
|
-
gem 'authlogic', '>= 3.0.3'
|
|
36
|
-
gem 'forgeos_core', '>= 1.9.2'
|
|
37
|
-
gem 'acts_as_commentable', '>= 3.0.1'
|
|
38
|
-
gem 'forgeos_cms', '>= 1.9.1'
|
|
39
|
-
</code></pre>
|
|
40
|
-
# mount gems into your config/routes.rb file :
|
|
41
|
-
<pre><code class="ruby">
|
|
42
|
-
mount Forgeos::Core::Engine => '/', :as => 'forgeos_core'
|
|
43
|
-
mount Forgeos::Cms::Engine => '/', :as => 'forgeos_cms'
|
|
44
|
-
</code></pre>
|
|
45
|
-
# Then initialize database :
|
|
46
|
-
<pre><code>
|
|
47
|
-
$ bundle install
|
|
48
|
-
$ rake db:create
|
|
49
|
-
$ rake forgeos_core_engine:install:migrations
|
|
50
|
-
$ rake forgeos_cms_engine:install:migrations
|
|
51
|
-
$ rake db:migrate
|
|
52
|
-
$ rake forgeos:cms:install
|
|
53
|
-
$ rails s
|
|
54
|
-
</code></pre>
|
|
55
15
|
# Then go to localhost:3000/admin and Enjoy !
|
|
56
16
|
|
|
57
17
|
h1. Default settings
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
load File.join(Gem.loaded_specs['forgeos_core'].full_gem_path, 'app', 'controllers', 'admin', 'import_controller.rb')
|
|
2
|
-
|
|
2
|
+
Admin::ImportController.class_eval do
|
|
3
3
|
map_fields :create_page, Page.new.attributes.keys
|
|
4
4
|
map_fields :create_block, Block.new.attributes.keys
|
|
5
5
|
before_filter :cms_models, :only => :index
|
data/lib/tasks/install.rake
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
namespace :forgeos do
|
|
2
2
|
namespace :cms do
|
|
3
3
|
desc "load fixtures and generate forgeos_cms controllers ACLs"
|
|
4
|
-
task :install
|
|
4
|
+
task :install do
|
|
5
5
|
Rake::Task['forgeos:core:fixtures:load'].invoke('forgeos_cms','pages page_translations people menus menu_links menu_link_translations')
|
|
6
6
|
Rake::Task['forgeos:core:generate:acl'].invoke(Gem.loaded_specs['forgeos_cms'].full_gem_path)
|
|
7
7
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forgeos_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 59
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 1.9.
|
|
9
|
+
- 4
|
|
10
|
+
version: 1.9.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Cyril LEPAGNOT
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-
|
|
19
|
+
date: 2011-08-05 00:00:00 +02:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -27,12 +27,12 @@ dependencies:
|
|
|
27
27
|
requirements:
|
|
28
28
|
- - ">="
|
|
29
29
|
- !ruby/object:Gem::Version
|
|
30
|
-
hash:
|
|
30
|
+
hash: 59
|
|
31
31
|
segments:
|
|
32
32
|
- 1
|
|
33
33
|
- 9
|
|
34
|
-
-
|
|
35
|
-
version: 1.9.
|
|
34
|
+
- 4
|
|
35
|
+
version: 1.9.4
|
|
36
36
|
type: :runtime
|
|
37
37
|
version_requirements: *id001
|
|
38
38
|
- !ruby/object:Gem::Dependency
|