liquid_cms 0.3.0.5 → 0.3.0.6

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 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
 
@@ -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(delete_icon, {:controller => 'cms/components', :action => 'destroy', :url => CGI::escape(full_path)}, :confirm => "Are you sure you want to remove '#{full_path}'?")
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,3 +1,3 @@
1
- <div class="message shadow curved">
1
+ <div id="intro" class="shadow curved">
2
2
  <p>Add a new page or upload a new asset.</p>
3
3
  </div>
@@ -68,7 +68,7 @@ a img {
68
68
  margin-top: 0;
69
69
  padding-bottom: 0.3em;
70
70
  }
71
- #content .message {
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;
@@ -1,3 +1,3 @@
1
1
  module Cms
2
- VERSION = "0.3.0.5"
2
+ VERSION = "0.3.0.6"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::AssetsControllerTest < ActionController::TestCase
4
4
 
@@ -0,0 +1,9 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+
3
+ class Cms::ComponentsControllerTest < ActionController::TestCase
4
+ def setup
5
+ setup_company_and_login_admin
6
+ end
7
+
8
+ should "add component tests"
9
+ end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::MainControllerTest < ActionController::TestCase
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::PagesControllerTest < ActionController::TestCase
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::PagesTest < ActionController::IntegrationTest
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::AssetTest < ActiveSupport::TestCase
4
4
  # Replace this with your real tests.
@@ -0,0 +1,8 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+
3
+ class Cms::ComponentTest < ActiveSupport::TestCase
4
+ def setup
5
+ end
6
+
7
+ should "add component tests"
8
+ end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class Cms::PageTest < ActiveSupport::TestCase
4
4
  def setup
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid_cms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 93
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 3
9
8
  - 0
10
- - 5
11
- version: 0.3.0.5
9
+ - 6
10
+ version: 0.3.0.6
12
11
  platform: ruby
13
12
  authors:
14
13
  - Andrew Kaspick
@@ -17,7 +16,7 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2011-02-15 00:00:00 -06:00
19
+ date: 2011-02-17 00:00:00 -06:00
21
20
  default_executable:
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
@@ -28,7 +27,6 @@ dependencies:
28
27
  requirements:
29
28
  - - ">="
30
29
  - !ruby/object:Gem::Version
31
- hash: 23
32
30
  segments:
33
31
  - 1
34
32
  - 0
@@ -44,7 +42,6 @@ dependencies:
44
42
  requirements:
45
43
  - - ~>
46
44
  - !ruby/object:Gem::Version
47
- hash: 7
48
45
  segments:
49
46
  - 3
50
47
  - 0
@@ -60,7 +57,6 @@ dependencies:
60
57
  requirements:
61
58
  - - ~>
62
59
  - !ruby/object:Gem::Version
63
- hash: 1
64
60
  segments:
65
61
  - 2
66
62
  - 3
@@ -76,7 +72,6 @@ dependencies:
76
72
  requirements:
77
73
  - - ~>
78
74
  - !ruby/object:Gem::Version
79
- hash: 31
80
75
  segments:
81
76
  - 1
82
77
  - 2
@@ -92,7 +87,6 @@ dependencies:
92
87
  requirements:
93
88
  - - ~>
94
89
  - !ruby/object:Gem::Version
95
- hash: 57
96
90
  segments:
97
91
  - 0
98
92
  - 9
@@ -108,7 +102,6 @@ dependencies:
108
102
  requirements:
109
103
  - - ~>
110
104
  - !ruby/object:Gem::Version
111
- hash: 27
112
105
  segments:
113
106
  - 2
114
107
  - 3
@@ -124,7 +117,6 @@ dependencies:
124
117
  requirements:
125
118
  - - ">="
126
119
  - !ruby/object:Gem::Version
127
- hash: 3
128
120
  segments:
129
121
  - 0
130
122
  version: "0"
@@ -138,7 +130,6 @@ dependencies:
138
130
  requirements:
139
131
  - - ">="
140
132
  - !ruby/object:Gem::Version
141
- hash: 3
142
133
  segments:
143
134
  - 0
144
135
  version: "0"
@@ -152,7 +143,6 @@ dependencies:
152
143
  requirements:
153
144
  - - ~>
154
145
  - !ruby/object:Gem::Version
155
- hash: 27
156
146
  segments:
157
147
  - 1
158
148
  - 3
@@ -168,7 +158,6 @@ dependencies:
168
158
  requirements:
169
159
  - - ~>
170
160
  - !ruby/object:Gem::Version
171
- hash: 33
172
161
  segments:
173
162
  - 2
174
163
  - 10
@@ -1424,6 +1413,7 @@ files:
1424
1413
  - test/fixtures/liquid/layout.liquid
1425
1414
  - test/fixtures/liquid/user_pagination.liquid
1426
1415
  - test/functional/assets_controller_test.rb
1416
+ - test/functional/components_controller_test.rb
1427
1417
  - test/functional/main_controller_test.rb
1428
1418
  - test/functional/pages_controller_test.rb
1429
1419
  - test/integration/pages_test.rb
@@ -1476,6 +1466,7 @@ files:
1476
1466
  - test/test_helper.rb
1477
1467
  - test/test_helpers/login_methods.rb
1478
1468
  - test/unit/asset_test.rb
1469
+ - test/unit/component_test.rb
1479
1470
  - test/unit/page_test.rb
1480
1471
  has_rdoc: true
1481
1472
  homepage: http://rubygems.org/gems/liquid_cms
@@ -1491,7 +1482,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
1491
1482
  requirements:
1492
1483
  - - ">="
1493
1484
  - !ruby/object:Gem::Version
1494
- hash: 3
1495
1485
  segments:
1496
1486
  - 0
1497
1487
  version: "0"
@@ -1500,7 +1490,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1500
1490
  requirements:
1501
1491
  - - ">="
1502
1492
  - !ruby/object:Gem::Version
1503
- hash: 23
1504
1493
  segments:
1505
1494
  - 1
1506
1495
  - 3
@@ -1521,6 +1510,7 @@ test_files:
1521
1510
  - test/fixtures/liquid/layout.liquid
1522
1511
  - test/fixtures/liquid/user_pagination.liquid
1523
1512
  - test/functional/assets_controller_test.rb
1513
+ - test/functional/components_controller_test.rb
1524
1514
  - test/functional/main_controller_test.rb
1525
1515
  - test/functional/pages_controller_test.rb
1526
1516
  - test/integration/pages_test.rb
@@ -1573,4 +1563,5 @@ test_files:
1573
1563
  - test/test_helper.rb
1574
1564
  - test/test_helpers/login_methods.rb
1575
1565
  - test/unit/asset_test.rb
1566
+ - test/unit/component_test.rb
1576
1567
  - test/unit/page_test.rb