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 CHANGED
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
3
3
  gem 'rails', '>=3.0.1'
4
4
  gem 'sqlite3-ruby', :require => 'sqlite3'
5
5
  gem 'active_link_to', '>=0.0.6'
6
- gem 'paperclip', '>=2.3.3'
6
+ gem 'paperclip', '>=2.3.5'
7
7
  gem 'mime-types', :require => 'mime/types'
8
8
 
9
9
  group :test do
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.4)
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.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.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.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.6
1
+ 1.0.7
@@ -1,4 +1,7 @@
1
- class CmsAdmin::BaseController < ApplicationController
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
- <%= hook :navigation %>
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.6"
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-26}
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.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.3"])
218
+ s.add_runtime_dependency(%q<paperclip>, [">= 2.3.5"])
219
219
  else
220
- s.add_dependency(%q<rails>, [">= 3.0.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.3"])
222
+ s.add_dependency(%q<paperclip>, [">= 2.3.5"])
223
223
  end
224
224
  else
225
- s.add_dependency(%q<rails>, [">= 3.0.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.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
- unless tag.ancestors.member?(tag)
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
@@ -16,7 +16,7 @@ module ComfortableMexicanSofa::ViewMethods
16
16
  end
17
17
 
18
18
  # Injects some content somewhere inside cms admin area
19
- def hook(name)
19
+ def cms_hook(name)
20
20
  ComfortableMexicanSofa::ViewHooks.render(name, self)
21
21
  end
22
22
  end
@@ -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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- version: 1.0.6
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-26 00:00:00 -04:00
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: 7
28
+ hash: 5
29
29
  segments:
30
30
  - 3
31
31
  - 0
32
- - 0
33
- version: 3.0.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: 5
60
+ hash: 9
61
61
  segments:
62
62
  - 2
63
63
  - 3
64
- - 3
65
- version: 2.3.3
64
+ - 5
65
+ version: 2.3.5
66
66
  type: :runtime
67
67
  name: paperclip
68
68
  prerelease: false