comfortable_mexican_sofa 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/app/controllers/cms_admin/base_controller.rb +4 -1
- data/app/views/layouts/cms_admin.html.erb +1 -1
- data/comfortable_mexican_sofa.gemspec +8 -8
- data/lib/comfortable_mexican_sofa/cms_tag.rb +1 -6
- data/lib/comfortable_mexican_sofa/view_methods.rb +1 -1
- data/test/unit/cms_tag_test.rb +0 -8
- metadata +10 -10
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
mime-types
|
48
48
|
treetop (>= 1.4.5)
|
49
49
|
mime-types (1.16)
|
50
|
-
paperclip (2.3.
|
50
|
+
paperclip (2.3.5)
|
51
51
|
activerecord
|
52
52
|
activesupport
|
53
53
|
polyglot (0.3.1)
|
@@ -85,6 +85,6 @@ DEPENDENCIES
|
|
85
85
|
active_link_to (>= 0.0.6)
|
86
86
|
jeweler (>= 1.4.0)
|
87
87
|
mime-types
|
88
|
-
paperclip (>= 2.3.
|
88
|
+
paperclip (>= 2.3.5)
|
89
89
|
rails (>= 3.0.1)
|
90
90
|
sqlite3-ruby
|
data/Rakefile
CHANGED
@@ -16,9 +16,9 @@ begin
|
|
16
16
|
gem.email = 'oleg@theworkinggroup.ca'
|
17
17
|
gem.homepage = 'http://github.com/theworkinggroup/comfortable-mexican-sofa'
|
18
18
|
gem.authors = ['Oleg Khabarov', 'The Working Group Inc']
|
19
|
-
gem.add_dependency('rails', '>=3.0.
|
19
|
+
gem.add_dependency('rails', '>=3.0.1')
|
20
20
|
gem.add_dependency('active_link_to', '>=0.0.6')
|
21
|
-
gem.add_dependency('paperclip', '>=2.3.
|
21
|
+
gem.add_dependency('paperclip', '>=2.3.5')
|
22
22
|
end
|
23
23
|
Jeweler::GemcutterTasks.new
|
24
24
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
@@ -1,4 +1,7 @@
|
|
1
|
-
class CmsAdmin::BaseController <
|
1
|
+
class CmsAdmin::BaseController < ActionController::Base
|
2
|
+
|
3
|
+
protect_from_forgery
|
4
|
+
|
2
5
|
# Authentication module must have #authenticate method
|
3
6
|
include ComfortableMexicanSofa.config.authentication.to_s.constantize
|
4
7
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<%= active_link_to 'Layouts', cms_admin_layouts_path %>
|
17
17
|
<%= active_link_to 'Pages', cms_admin_pages_path %>
|
18
18
|
<%= active_link_to 'Snippets', cms_admin_snippets_path %>
|
19
|
-
<%=
|
19
|
+
<%= cms_hook :navigation %>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
<div class='right_column'>
|
@@ -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.7"
|
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-10-
|
12
|
+
s.date = %q{2010-10-27}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -213,18 +213,18 @@ Gem::Specification.new do |s|
|
|
213
213
|
s.specification_version = 3
|
214
214
|
|
215
215
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
216
|
-
s.add_runtime_dependency(%q<rails>, [">= 3.0.
|
216
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.1"])
|
217
217
|
s.add_runtime_dependency(%q<active_link_to>, [">= 0.0.6"])
|
218
|
-
s.add_runtime_dependency(%q<paperclip>, [">= 2.3.
|
218
|
+
s.add_runtime_dependency(%q<paperclip>, [">= 2.3.5"])
|
219
219
|
else
|
220
|
-
s.add_dependency(%q<rails>, [">= 3.0.
|
220
|
+
s.add_dependency(%q<rails>, [">= 3.0.1"])
|
221
221
|
s.add_dependency(%q<active_link_to>, [">= 0.0.6"])
|
222
|
-
s.add_dependency(%q<paperclip>, [">= 2.3.
|
222
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.5"])
|
223
223
|
end
|
224
224
|
else
|
225
|
-
s.add_dependency(%q<rails>, [">= 3.0.
|
225
|
+
s.add_dependency(%q<rails>, [">= 3.0.1"])
|
226
226
|
s.add_dependency(%q<active_link_to>, [">= 0.0.6"])
|
227
|
-
s.add_dependency(%q<paperclip>, [">= 2.3.
|
227
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.5"])
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
@@ -42,11 +42,6 @@ module CmsTag
|
|
42
42
|
"#{self.class.name.underscore}_#{self.label}"
|
43
43
|
end
|
44
44
|
|
45
|
-
# Equality check. Content doesn't matter. Tag identifier does.
|
46
|
-
def ==(tag)
|
47
|
-
self.identifier == tag.identifier
|
48
|
-
end
|
49
|
-
|
50
45
|
# Ancestors of this tag constructed during rendering process.
|
51
46
|
def ancestors
|
52
47
|
node, nodes = self, []
|
@@ -91,7 +86,7 @@ private
|
|
91
86
|
if tag_signature
|
92
87
|
if tag = self.initialize_tag(cms_page, tag_signature)
|
93
88
|
tag.parent = parent_tag if parent_tag
|
94
|
-
|
89
|
+
if tag.ancestors.select{|a| a.identifier == tag.identifier}.blank?
|
95
90
|
cms_page.cms_tags << tag
|
96
91
|
self.process_content(cms_page, tag.render, tag)
|
97
92
|
end
|
data/test/unit/cms_tag_test.rb
CHANGED
@@ -138,12 +138,4 @@ class CmsTagTest < ActiveSupport::TestCase
|
|
138
138
|
), page.content
|
139
139
|
assert_equal 6, page.cms_tags.size
|
140
140
|
end
|
141
|
-
|
142
|
-
def test_tag_equality
|
143
|
-
tag_1 = CmsTag::PageText.new(:label => 'new_text', :content => 'content')
|
144
|
-
tag_2 = CmsTag::FieldText.new(:label => 'new_text', :content => 'content')
|
145
|
-
tag_3 = CmsTag::PageText.new(:label => 'new_text', :content => 'other content')
|
146
|
-
assert_not_equal tag_1, tag_2
|
147
|
-
assert_equal tag_1, tag_3
|
148
|
-
end
|
149
141
|
end
|
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: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 7
|
10
|
+
version: 1.0.7
|
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-10-
|
19
|
+
date: 2010-10-27 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 5
|
29
29
|
segments:
|
30
30
|
- 3
|
31
31
|
- 0
|
32
|
-
-
|
33
|
-
version: 3.0.
|
32
|
+
- 1
|
33
|
+
version: 3.0.1
|
34
34
|
type: :runtime
|
35
35
|
name: rails
|
36
36
|
prerelease: false
|
@@ -57,12 +57,12 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
hash:
|
60
|
+
hash: 9
|
61
61
|
segments:
|
62
62
|
- 2
|
63
63
|
- 3
|
64
|
-
-
|
65
|
-
version: 2.3.
|
64
|
+
- 5
|
65
|
+
version: 2.3.5
|
66
66
|
type: :runtime
|
67
67
|
name: paperclip
|
68
68
|
prerelease: false
|