liquid_cms 0.2.0.7 → 0.2.0.8
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.rdoc +7 -7
- data/app/helpers/cms/components_helper.rb +1 -1
- data/app/views/cms/shared/_index.html.erb +1 -1
- data/generators/liquid_cms/liquid_cms_generator.rb +7 -5
- data/generators/liquid_cms/templates/public/cms/stylesheets/styles.css +4 -1
- data/lib/liquid_cms/version.rb +1 -1
- data/test/functional/components_controller_test.rb +9 -0
- data/test/rails_app/config/environment.rb +2 -1
- data/test/unit/component_test.rb +8 -0
- metadata +8 -4
data/README.rdoc
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
A context aware CMS Ruby on Rails engine that uses liquid templates.
|
4
4
|
|
5
|
-
If you're using rails 2, use the 0.2.x series of this gem. https://github.com/redlinesoftware/liquid_cms/tree/rails2
|
5
|
+
If you're using rails 2, use the 0.2.x series of this gem (tested with ruby 1.8.7). https://github.com/redlinesoftware/liquid_cms/tree/rails2
|
6
6
|
|
7
|
-
If you're using rails 3, use the 0.3.x series of this gem. https://github.com/redlinesoftware/liquid_cms
|
7
|
+
If you're using rails 3, use the 0.3.x series of this gem (tested with ruby 1.9.2). https://github.com/redlinesoftware/liquid_cms
|
8
8
|
|
9
9
|
{rubygems page}[https://rubygems.org/gems/liquid_cms]
|
10
10
|
|
@@ -12,17 +12,17 @@ See the {wiki page}[http://github.com/redlinesoftware/liquid_cms/wiki] for addit
|
|
12
12
|
|
13
13
|
= Installation
|
14
14
|
|
15
|
-
|
15
|
+
Add it to your config/environment.rb:
|
16
16
|
|
17
|
-
gem
|
17
|
+
config.gem 'liquid_cms', :version => '~> 0.2.0'
|
18
18
|
|
19
|
-
|
19
|
+
Install the gem:
|
20
20
|
|
21
|
-
|
21
|
+
rake gems:install
|
22
22
|
|
23
23
|
Run the generator:
|
24
24
|
|
25
|
-
script/
|
25
|
+
script/generate liquid_cms
|
26
26
|
|
27
27
|
= Configuration
|
28
28
|
|
@@ -6,7 +6,7 @@ module Cms::ComponentsHelper
|
|
6
6
|
|
7
7
|
def component_delete_link(path)
|
8
8
|
full_path = Cms::Component.component_path(@context, path)
|
9
|
-
link_to(
|
9
|
+
link_to(cms_icon('delete.png', :title => 'Delete'), {:controller => 'cms/components', :action => 'destroy', :url => CGI::escape(full_path)}, :confirm => "Are you sure you want to remove '#{full_path}'?")
|
10
10
|
end
|
11
11
|
|
12
12
|
def list_files(path, hidden = false)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path('../lib/insert_commands', __FILE__)
|
2
2
|
|
3
3
|
class LiquidCmsGenerator < Rails::Generator::Base
|
4
4
|
def manifest
|
@@ -46,7 +46,9 @@ class LiquidCmsGenerator < Rails::Generator::Base
|
|
46
46
|
|
47
47
|
# add paperclip to the applications environment.rb file due to some loading issues
|
48
48
|
logger.gem "config.gem 'paperclip'"
|
49
|
-
add_gem m
|
49
|
+
add_gem m, 'paperclip', '~> 2.3.1'
|
50
|
+
logger.gem "config.gem 'simple_form'"
|
51
|
+
add_gem m, 'simple_form', '1.0.4'
|
50
52
|
end
|
51
53
|
end
|
52
54
|
|
@@ -60,12 +62,12 @@ class LiquidCmsGenerator < Rails::Generator::Base
|
|
60
62
|
end
|
61
63
|
end
|
62
64
|
|
63
|
-
def add_gem(m)
|
65
|
+
def add_gem(m, gem, version)
|
64
66
|
sentinel = "end"
|
65
|
-
line = "config.gem '
|
67
|
+
line = "config.gem '#{gem}'"
|
66
68
|
unless File.read(destination_path('config/environment.rb')).include?(line)
|
67
69
|
m.gsub_file 'config/environment.rb', /(#{Regexp.escape(sentinel)}\Z)/mi do |match|
|
68
|
-
"\n\t# liquid_cms dependency\n\t#{line},
|
70
|
+
"\n\t# liquid_cms dependency\n\t#{line}, :version => '#{version}'\n#{sentinel}"
|
69
71
|
end
|
70
72
|
end
|
71
73
|
end
|
@@ -68,7 +68,7 @@ a img {
|
|
68
68
|
margin-top: 0;
|
69
69
|
padding-bottom: 0.3em;
|
70
70
|
}
|
71
|
-
#content
|
71
|
+
#content #intro {
|
72
72
|
padding: 0.5em;
|
73
73
|
text-align: center;
|
74
74
|
background: none repeat scroll 0 0 #CCCCCC;
|
@@ -160,6 +160,9 @@ h2 p.message {
|
|
160
160
|
#cms ul.tree ul {
|
161
161
|
margin-left: 15px;
|
162
162
|
}
|
163
|
+
#cms ul.tree li img.folder:hover {
|
164
|
+
cursor: pointer;
|
165
|
+
}
|
163
166
|
|
164
167
|
.left {
|
165
168
|
float: left;
|
data/lib/liquid_cms/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file
|
2
2
|
|
3
3
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
4
|
-
RAILS_GEM_VERSION = '2.3.
|
4
|
+
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
|
5
5
|
|
6
6
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
7
7
|
require File.join(File.dirname(__FILE__), 'boot')
|
@@ -20,6 +20,7 @@ Rails::Initializer.run do |config|
|
|
20
20
|
# config.gem "sqlite3-ruby", :lib => "sqlite3"
|
21
21
|
# config.gem "aws-s3", :lib => "aws/s3"
|
22
22
|
config.gem 'paperclip', :version => '~> 2.3.1'
|
23
|
+
config.gem 'simple_form', :version => '1.0.4'
|
23
24
|
|
24
25
|
# Only load the plugins named here, in the order given (default is alphabetical).
|
25
26
|
# :all can be used as a placeholder for all plugins not explicitly named
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 79
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.2.0.
|
10
|
+
- 8
|
11
|
+
version: 0.2.0.8
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Andrew Kaspick
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-02-
|
20
|
+
date: 2011-02-17 00:00:00 -06:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -1410,6 +1410,7 @@ files:
|
|
1410
1410
|
- test/fixtures/liquid/layout.liquid
|
1411
1411
|
- test/fixtures/liquid/user_pagination.liquid
|
1412
1412
|
- test/functional/assets_controller_test.rb
|
1413
|
+
- test/functional/components_controller_test.rb
|
1413
1414
|
- test/functional/main_controller_test.rb
|
1414
1415
|
- test/functional/pages_controller_test.rb
|
1415
1416
|
- test/integration/pages_test.rb
|
@@ -1479,6 +1480,7 @@ files:
|
|
1479
1480
|
- test/test_helper.rb
|
1480
1481
|
- test/test_helpers/login_methods.rb
|
1481
1482
|
- test/unit/asset_test.rb
|
1483
|
+
- test/unit/component_test.rb
|
1482
1484
|
- test/unit/page_test.rb
|
1483
1485
|
has_rdoc: true
|
1484
1486
|
homepage: http://rubygems.org/gems/liquid_cms
|
@@ -1524,6 +1526,7 @@ test_files:
|
|
1524
1526
|
- test/fixtures/liquid/layout.liquid
|
1525
1527
|
- test/fixtures/liquid/user_pagination.liquid
|
1526
1528
|
- test/functional/assets_controller_test.rb
|
1529
|
+
- test/functional/components_controller_test.rb
|
1527
1530
|
- test/functional/main_controller_test.rb
|
1528
1531
|
- test/functional/pages_controller_test.rb
|
1529
1532
|
- test/integration/pages_test.rb
|
@@ -1593,4 +1596,5 @@ test_files:
|
|
1593
1596
|
- test/test_helper.rb
|
1594
1597
|
- test/test_helpers/login_methods.rb
|
1595
1598
|
- test/unit/asset_test.rb
|
1599
|
+
- test/unit/component_test.rb
|
1596
1600
|
- test/unit/page_test.rb
|