comfortable_mexican_sofa 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.7
1
+ 1.5.8
@@ -1,4 +1,4 @@
1
- <% block_tags = @page.tags(true).select{ |t| t.is_cms_block? } %>
1
+ <% block_tags = @page.tags(true).select{ |t| t.is_cms_block? }.uniq_by{|t| t.label} %>
2
2
 
3
3
  <div id='form_blocks'>
4
4
  <% if block_tags.empty? %>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "comfortable_mexican_sofa"
8
- s.version = "1.5.7"
8
+ s.version = "1.5.8"
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 = "2011-10-05"
12
+ s.date = "2011-10-06"
13
13
  s.description = ""
14
14
  s.email = "oleg@theworkinggroup.ca"
15
15
  s.extra_rdoc_files = [
@@ -162,6 +162,16 @@ class CmsAdmin::PagesControllerTest < ActionController::TestCase
162
162
  assert_response :success
163
163
  end
164
164
 
165
+ def test_get_new_with_repeated_tag
166
+ cms_layouts(:default).update_attribute(:content, '{{cms:page:test_label}}{{cms:page:test_label}}')
167
+ get :new, :site_id => cms_sites(:default)
168
+ assert_response :success
169
+ assert_select "textarea[name='page[blocks_attributes][0][content]'][class='code']"
170
+ assert_select "input[type='hidden'][name='page[blocks_attributes][0][label]'][value='test_label']"
171
+ assert_select "textarea[name='page[blocks_attributes][1][content]'][class='code']", 0
172
+ assert_select "input[type='hidden'][name='page[blocks_attributes][1][label]'][value='test_label']", 0
173
+ end
174
+
165
175
  def test_get_new_as_child_page
166
176
  get :new, :site_id => cms_sites(:default), :parent_id => cms_pages(:default)
167
177
  assert_response :success
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-05 00:00:00.000000000Z
13
+ date: 2011-10-06 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &70320595035360 !ruby/object:Gem::Requirement
17
+ requirement: &70129752951400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70320595035360
25
+ version_requirements: *70129752951400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: active_link_to
28
- requirement: &70320595034880 !ruby/object:Gem::Requirement
28
+ requirement: &70129752950920 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70320595034880
36
+ version_requirements: *70129752950920
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: paperclip
39
- requirement: &70320595034400 !ruby/object:Gem::Requirement
39
+ requirement: &70129752950440 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 2.3.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70320595034400
47
+ version_requirements: *70129752950440
48
48
  description: ''
49
49
  email: oleg@theworkinggroup.ca
50
50
  executables: []
@@ -359,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  segments:
361
361
  - 0
362
- hash: -1509635901179194295
362
+ hash: 3954353601427756033
363
363
  required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  none: false
365
365
  requirements: