cmsimple 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -2
- data/README.md +14 -0
- data/cmsimple.gemspec +1 -1
- data/lib/cmsimple.rb +2 -2
- data/lib/cmsimple/version.rb +1 -1
- metadata +8 -8
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -41,6 +41,20 @@ You can also tell the helper to render the container by providing the tag: :elem
|
|
41
41
|
<% end %>
|
42
42
|
```
|
43
43
|
|
44
|
+
Templates are located in the app/views/cmsimple/templates directory. Below is an example of what the cmsimple views directory might look like for a simple site.
|
45
|
+
|
46
|
+
```
|
47
|
+
app/views/cmsimple/
|
48
|
+
├── _snippet_list.html.haml
|
49
|
+
├── pages
|
50
|
+
│ └── _form_extras.html.haml
|
51
|
+
└── templates
|
52
|
+
├── generic.html.haml
|
53
|
+
├── home-v1.html.haml
|
54
|
+
├── one-column.html.haml
|
55
|
+
└── two-column.html.haml
|
56
|
+
|
57
|
+
```
|
44
58
|
### Notes
|
45
59
|
|
46
60
|
There are a couple of things to keep in mind as you maintain and augment templates. The first is that you should try to keep regions consistently named. If a user changes the template that they want to use if the regions are not named the same the content will not display in the new template. Of course this isn't always possible, for example the home page template is very different from any of the content templates.
|
data/cmsimple.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
s.add_runtime_dependency "rails", "~> 3.2.1"
|
20
|
-
s.add_runtime_dependency 'jquery-rails'
|
20
|
+
s.add_runtime_dependency 'jquery-rails'
|
21
21
|
s.add_runtime_dependency "mercury-rails"
|
22
22
|
s.add_runtime_dependency "cells", "~> 3.8"
|
23
23
|
s.add_runtime_dependency "carrierwave", "~> 0.5.8"
|
data/lib/cmsimple.rb
CHANGED
@@ -5,8 +5,8 @@ require 'cells'
|
|
5
5
|
require 'carrierwave'
|
6
6
|
require 'dimensions'
|
7
7
|
|
8
|
-
# dependencies we want to reduce the
|
9
|
-
|
8
|
+
# dependencies we want to reduce the need for after codebase stabilizes
|
9
|
+
require 'jquery-rails'
|
10
10
|
require 'spine-rails'
|
11
11
|
require 'haml-rails'
|
12
12
|
require 'haml_coffee_assets'
|
data/lib/cmsimple/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmsimple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-03
|
14
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -34,17 +34,17 @@ dependencies:
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
none: false
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ! '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: '0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
none: false
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: mercury-rails
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -576,7 +576,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
576
576
|
version: '0'
|
577
577
|
segments:
|
578
578
|
- 0
|
579
|
-
hash:
|
579
|
+
hash: 1642143579830653932
|
580
580
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
581
581
|
none: false
|
582
582
|
requirements:
|
@@ -585,7 +585,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
585
585
|
version: '0'
|
586
586
|
segments:
|
587
587
|
- 0
|
588
|
-
hash:
|
588
|
+
hash: 1642143579830653932
|
589
589
|
requirements: []
|
590
590
|
rubyforge_project:
|
591
591
|
rubygems_version: 1.8.23
|