refinerycms-pages 1.0.11 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. data/app/controllers/refinery/admin/page_parts_controller.rb +26 -0
  2. data/app/controllers/refinery/admin/pages_controller.rb +77 -0
  3. data/app/controllers/refinery/admin/pages_dialogs_controller.rb +91 -0
  4. data/app/controllers/refinery/page_sweeper.rb +29 -0
  5. data/app/controllers/refinery/pages_controller.rb +103 -0
  6. data/app/helpers/refinery/pages/content_pages_helper.rb +26 -0
  7. data/app/helpers/refinery/pages_helper.rb +4 -0
  8. data/app/models/refinery/page.rb +467 -0
  9. data/app/models/refinery/page_part.rb +33 -0
  10. data/app/presenters/refinery/page_presenter.rb +7 -0
  11. data/app/views/admin/pages/_sortable_list.html.erb +7 -4
  12. data/app/views/{admin → refinery/admin}/pages/_actions.html.erb +5 -4
  13. data/app/views/refinery/admin/pages/_form.html.erb +63 -0
  14. data/app/views/{admin → refinery/admin}/pages/_form_advanced_options.html.erb +35 -16
  15. data/app/views/refinery/admin/pages/_form_advanced_options_seo.html.erb +3 -0
  16. data/app/views/{admin → refinery/admin}/pages/_form_fields_after_title.html.erb +0 -0
  17. data/app/views/{admin → refinery/admin}/pages/_form_new_page_parts.html.erb +5 -7
  18. data/app/views/{admin → refinery/admin}/pages/_form_page_parts.html.erb +19 -11
  19. data/app/views/{admin → refinery/admin}/pages/_locale_picker.html.erb +3 -3
  20. data/app/views/refinery/admin/pages/_page.html.erb +48 -0
  21. data/app/views/{admin → refinery/admin}/pages/_page_part_field.html.erb +1 -1
  22. data/app/views/refinery/admin/pages/_records.html.erb +14 -0
  23. data/app/views/refinery/admin/pages/_sortable_list.html.erb +4 -0
  24. data/app/views/refinery/admin/pages/children.html.erb +1 -0
  25. data/app/views/refinery/admin/pages/edit.html.erb +1 -0
  26. data/app/views/refinery/admin/pages/index.html.erb +9 -0
  27. data/app/views/refinery/admin/pages/new.html.erb +1 -0
  28. data/app/views/refinery/admin/pages_dialogs/_page_link.html.erb +20 -0
  29. data/app/views/{admin → refinery/admin}/pages_dialogs/link_to.html.erb +31 -36
  30. data/app/views/refinery/pages/home.html.erb +1 -0
  31. data/app/views/refinery/pages/show.html.erb +1 -0
  32. data/config/locales/bg.yml +81 -73
  33. data/config/locales/cs.yml +71 -72
  34. data/config/locales/da.yml +69 -72
  35. data/config/locales/de.yml +69 -72
  36. data/config/locales/el.yml +70 -72
  37. data/config/locales/en.yml +88 -73
  38. data/config/locales/es.yml +70 -73
  39. data/config/locales/fi.yml +70 -73
  40. data/config/locales/fr.yml +69 -72
  41. data/config/locales/it.yml +92 -89
  42. data/config/locales/ja.yml +72 -0
  43. data/config/locales/ko.yml +83 -0
  44. data/config/locales/lt.yml +71 -73
  45. data/config/locales/lv.yml +71 -74
  46. data/config/locales/nb.yml +69 -72
  47. data/config/locales/nl.yml +68 -71
  48. data/config/locales/pl.yml +70 -73
  49. data/config/locales/pt-BR.yml +70 -73
  50. data/config/locales/pt-PT.yml +75 -0
  51. data/config/locales/rs.yml +69 -72
  52. data/config/locales/ru.yml +77 -96
  53. data/config/locales/sk.yml +69 -72
  54. data/config/locales/sl.yml +68 -71
  55. data/config/locales/sv.yml +69 -72
  56. data/config/locales/vi.yml +69 -72
  57. data/config/locales/zh-CN.yml +75 -72
  58. data/config/locales/zh-TW.yml +69 -72
  59. data/config/routes.rb +10 -5
  60. data/db/migrate/20100913234708_create_refinerycms_pages_schema.rb +49 -43
  61. data/db/seeds.rb +41 -0
  62. data/lib/generators/refinery/pages/pages_generator.rb +21 -0
  63. data/lib/generators/refinery/pages/templates/config/initializers/refinery/pages.rb.erb +44 -0
  64. data/lib/refinery/pages/admin/instance_methods.rb +10 -8
  65. data/lib/refinery/pages/configuration.rb +44 -0
  66. data/lib/refinery/pages/content_page_presenter.rb +33 -0
  67. data/lib/refinery/pages/content_presenter.rb +56 -0
  68. data/lib/refinery/pages/engine.rb +73 -0
  69. data/lib/refinery/pages/instance_methods.rb +12 -26
  70. data/lib/refinery/pages/page_part_section_presenter.rb +19 -0
  71. data/lib/refinery/pages/section_presenter.rb +69 -0
  72. data/lib/{pages/tabs.rb → refinery/pages/tab.rb} +0 -0
  73. data/lib/refinery/pages/title_section_presenter.rb +14 -0
  74. data/lib/refinery/pages/type.rb +17 -0
  75. data/lib/refinery/pages/types.rb +32 -0
  76. data/lib/refinery/pages.rb +55 -0
  77. data/lib/refinerycms-pages.rb +1 -61
  78. data/refinerycms-pages.gemspec +17 -118
  79. data/spec/factories/pages.rb +5 -0
  80. data/spec/helpers/refinery/pages/content_pages_helper_spec.rb +44 -0
  81. data/spec/lib/generators/refinery/pages/pages_generator_spec.rb +29 -0
  82. data/spec/lib/pages/content_page_presenter_spec.rb +43 -0
  83. data/spec/lib/pages/content_presenter_spec.rb +97 -0
  84. data/spec/lib/pages/page_part_section_presenter_spec.rb +35 -0
  85. data/spec/lib/pages/section_presenter_spec.rb +86 -0
  86. data/spec/lib/pages/title_section_presenter_spec.rb +21 -0
  87. data/spec/lib/pages_spec.rb +26 -0
  88. data/spec/models/refinery/page_spec.rb +415 -0
  89. data/spec/requests/refinery/admin/pages_spec.rb +581 -0
  90. data/spec/requests/refinery/pages_spec.rb +302 -0
  91. metadata +162 -153
  92. data/app/controllers/admin/page_parts_controller.rb +0 -24
  93. data/app/controllers/admin/pages_controller.rb +0 -68
  94. data/app/controllers/admin/pages_dialogs_controller.rb +0 -85
  95. data/app/controllers/pages_controller.rb +0 -33
  96. data/app/helpers/pages_helper.rb +0 -2
  97. data/app/models/page.rb +0 -391
  98. data/app/models/page_part.rb +0 -29
  99. data/app/presenters/page_presenter.rb +0 -7
  100. data/app/views/admin/pages/_form.html.erb +0 -61
  101. data/app/views/admin/pages/_form_advanced_options_seo.html.erb +0 -4
  102. data/app/views/admin/pages/_page.html.erb +0 -33
  103. data/app/views/admin/pages/_records.html.erb +0 -14
  104. data/app/views/admin/pages/edit.html.erb +0 -1
  105. data/app/views/admin/pages/index.html.erb +0 -11
  106. data/app/views/admin/pages/new.html.erb +0 -1
  107. data/app/views/admin/pages_dialogs/_page_link.html.erb +0 -14
  108. data/app/views/pages/home.html.erb +0 -1
  109. data/app/views/pages/show.html.erb +0 -1
  110. data/config/locales/jp.yml +0 -75
  111. data/config/locales/lolcat.yml +0 -76
  112. data/db/migrate/20101214040815_translate_page_plugin.rb +0 -29
  113. data/db/migrate/20101216194133_remove_cached_slug_from_pages.rb +0 -11
  114. data/db/migrate/20110307025652_translate_custom_title_on_pages.rb +0 -26
  115. data/db/migrate/20110314213540_remove_translated_fields_from_pages.rb +0 -13
  116. data/db/migrate/20110329080451_create_seo_meta.rb +0 -89
  117. data/db/seeds/pages.rb +0 -42
  118. data/features/manage_pages.feature +0 -48
  119. data/features/step_definitions/page_steps.rb +0 -72
  120. data/features/support/paths.rb +0 -28
  121. data/features/translate_pages.feature +0 -40
  122. data/features/visit_pages.feature +0 -68
  123. data/lib/gemspec.rb +0 -40
  124. data/lib/generators/refinerycms_pages_generator.rb +0 -8
  125. data/lib/pages/marketable_routes.rb +0 -12
  126. data/spec/models/page_spec.rb +0 -235
@@ -0,0 +1,302 @@
1
+ # encoding: utf-8
2
+ require 'spec_helper'
3
+
4
+ module Refinery
5
+ describe 'page frontend' do
6
+ let(:home_page) { FactoryGirl.create(:page, :title => 'Home', :link_url => '/') }
7
+ let(:about_page) { FactoryGirl.create(:page, :title => 'About') }
8
+ let(:draft_page) { FactoryGirl.create(:page, :title => 'Draft', :draft => true) }
9
+ before(:each) do
10
+ # So that we can use Refinery.
11
+ Refinery::PagesController.any_instance.stub(:refinery_user_required?).and_return(false)
12
+
13
+ # Stub the menu pages we're expecting
14
+ Refinery::Page.stub(:fast_menu).and_return([home_page, about_page])
15
+ end
16
+
17
+ def standard_page_menu_items_exist?
18
+ within('.menu') do
19
+ page.should have_content(home_page.title)
20
+ page.should have_content(about_page.title)
21
+ page.should_not have_content(draft_page.title)
22
+ end
23
+ end
24
+
25
+ describe 'when marketable urls are' do
26
+ describe 'enabled' do
27
+ before { Refinery::Pages.stub(:marketable_urls).and_return(true) }
28
+
29
+ it 'shows the homepage' do
30
+ Refinery::PagesController.any_instance.stub(:find_page).and_return(:home_page)
31
+ visit '/'
32
+
33
+ standard_page_menu_items_exist?
34
+ end
35
+
36
+ it 'shows a show page' do
37
+ Refinery::PagesController.any_instance.stub(:find_page).and_return(:about_page)
38
+ visit refinery.page_path(about_page)
39
+
40
+ standard_page_menu_items_exist?
41
+ end
42
+ end
43
+
44
+ describe 'disabled' do
45
+ before { Refinery::Pages.stub(:marketable_urls).and_return(false) }
46
+
47
+ it 'shows the homepage' do
48
+ Refinery::PagesController.any_instance.stub(:find_page).and_return(:home_page)
49
+ visit '/'
50
+
51
+ standard_page_menu_items_exist?
52
+ end
53
+
54
+ it 'does not route to /about for About page' do
55
+ refinery.page_path(about_page).should =~ %r{/pages/about$}
56
+ end
57
+
58
+ it 'shows the about page' do
59
+ Refinery::PagesController.any_instance.stub(:find_page).and_return(:about_page)
60
+ visit refinery.page_path(about_page)
61
+
62
+ standard_page_menu_items_exist?
63
+ end
64
+ end
65
+ end
66
+
67
+ describe 'title set (without menu title or browser title)' do
68
+ before(:each) { visit '/about' }
69
+
70
+ it "shows title at the top of the page" do
71
+ find("#body_content_title").text.should == about_page.title
72
+ end
73
+
74
+ it "uses title in the menu" do
75
+ find(".selected").text.strip.should == about_page.title
76
+ end
77
+
78
+ it "uses title in browser title" do
79
+ find("title").should have_content(about_page.title)
80
+ end
81
+ end
82
+
83
+ describe 'when menu_title is' do
84
+ let(:page_mt) { FactoryGirl.create(:page, :title => 'Company News') }
85
+
86
+ before(:each) do
87
+ Refinery::Page.stub(:fast_menu).and_return([page_mt])
88
+ end
89
+
90
+ describe 'set' do
91
+ before do
92
+ page_mt.menu_title = "News"
93
+ page_mt.save
94
+ end
95
+
96
+ it 'shows the menu_title in the menu' do
97
+ visit '/news'
98
+
99
+ find(".selected").text.strip.should == page_mt.menu_title
100
+ end
101
+
102
+ it "does not effect browser title and page title" do
103
+ visit "/news"
104
+
105
+ find("title").should have_content(page_mt.title)
106
+ find("#body_content_title").text.should == page_mt.title
107
+ end
108
+ end
109
+
110
+ describe 'set and then unset' do
111
+ before do
112
+ page_mt.menu_title = "News"
113
+ page_mt.save
114
+ page_mt.menu_title = ""
115
+ page_mt.save
116
+ end
117
+
118
+ it 'the friendly_id and menu are reverted to match the title' do
119
+ visit '/company-news'
120
+
121
+ current_path.should == '/company-news'
122
+ find(".selected").text.strip.should == page_mt.title
123
+ end
124
+ end
125
+ end
126
+
127
+ describe 'when browser_title is set' do
128
+ let(:page_bt) { FactoryGirl.create(:page, :title => 'About Us', :browser_title => 'About Our Company') }
129
+ before(:each) do
130
+ Refinery::Page.stub(:fast_menu).and_return([page_bt])
131
+ end
132
+ it 'should have the browser_title in the title tag' do
133
+ visit '/about-us'
134
+
135
+ page.find("title").text == page_bt.title
136
+ end
137
+
138
+ it 'should not effect page title and menu title' do
139
+ visit '/about-us'
140
+
141
+ find("#body_content_title").text.should == page_bt.title
142
+ find(".selected").text.strip.should == page_bt.title
143
+ end
144
+ end
145
+
146
+ describe 'custom_slug' do
147
+ let(:page_cs) { FactoryGirl.create(:page, :title => 'About Us') }
148
+ before(:each) do
149
+ Refinery::Page.stub(:fast_menu).and_return([page_cs])
150
+ end
151
+
152
+ describe 'not set' do
153
+ it 'makes friendly_id from title' do
154
+ visit '/about-us'
155
+
156
+ current_path.should == '/about-us'
157
+ end
158
+ end
159
+
160
+ describe 'set' do
161
+ before do
162
+ page_cs.custom_slug = "about-custom"
163
+ page_cs.save
164
+ end
165
+
166
+ it 'should make and use a new friendly_id' do
167
+ visit '/about-custom'
168
+
169
+ current_path.should == '/about-custom'
170
+ end
171
+ end
172
+
173
+ describe 'set and unset' do
174
+ before do
175
+ page_cs.custom_slug = "about-custom"
176
+ page_cs.save
177
+ page_cs.custom_slug = ""
178
+ page_cs.save
179
+ page_cs.reload
180
+ end
181
+ end
182
+ end
183
+
184
+ # Following specs are converted from one of the cucumber features.
185
+ # Maybe we should clean up this spec file a bit...
186
+ describe "home page" do
187
+ it "succeeds" do
188
+ visit "/"
189
+
190
+ within ".selected" do
191
+ page.should have_content(home_page.title)
192
+ end
193
+ page.should have_content(about_page.title)
194
+ end
195
+ end
196
+
197
+ describe "content page" do
198
+ it "succeeds" do
199
+ visit "/about"
200
+
201
+ page.should have_content(home_page.title)
202
+ within ".selected > a" do
203
+ page.should have_content(about_page.title)
204
+ end
205
+ end
206
+ end
207
+
208
+ describe "submenu page" do
209
+ let(:submenu_page) {
210
+ FactoryGirl.create(:page, :title => 'Sample Submenu', :parent_id => about_page.id)
211
+ }
212
+
213
+ before(:each) do
214
+ Refinery::Page.stub(:fast_menu).and_return([home_page, submenu_page, about_page.reload].sort_by(&:lft))
215
+ end
216
+
217
+ it "succeeds" do
218
+ visit refinery.url_for(submenu_page.url)
219
+ page.should have_content(home_page.title)
220
+ page.should have_content(about_page.title)
221
+ within ".selected * > .selected a" do
222
+ page.should have_content(submenu_page.title)
223
+ end
224
+ end
225
+ end
226
+
227
+ describe "special characters title" do
228
+ let(:special_page) { FactoryGirl.create(:page, :title => 'ä ö ü spéciål chåråctÉrs') }
229
+ before(:each) do
230
+ Refinery::Page.stub(:fast_menu).and_return([home_page, about_page, special_page])
231
+ end
232
+
233
+ it "succeeds" do
234
+ visit refinery.url_for(special_page.url)
235
+
236
+ page.should have_content(home_page.title)
237
+ page.should have_content(about_page.title)
238
+ within ".selected > a" do
239
+ page.should have_content(special_page.title)
240
+ end
241
+ end
242
+ end
243
+
244
+ describe "special characters title as submenu page" do
245
+ let(:special_page) { FactoryGirl.create(:page, :title => 'ä ö ü spéciål chåråctÉrs',
246
+ :parent_id => about_page.id) }
247
+
248
+ before(:each) do
249
+ Refinery::Page.stub(:fast_menu).and_return([home_page, special_page, about_page.reload].sort_by(&:lft))
250
+ end
251
+
252
+ it "succeeds" do
253
+ visit refinery.url_for(special_page.url)
254
+
255
+ page.should have_content(home_page.title)
256
+ page.should have_content(about_page.title)
257
+ within ".selected * > .selected a" do
258
+ page.should have_content(special_page.title)
259
+ end
260
+ end
261
+ end
262
+
263
+ describe "hidden page" do
264
+ let(:hidden_page) { FactoryGirl.create(:page, :title => "Hidden", :show_in_menu => false) }
265
+
266
+ before(:each) do
267
+ Refinery::Page.stub(:fast_menu).and_return([home_page, about_page])
268
+ end
269
+
270
+ it "succeeds" do
271
+ visit refinery.page_path(hidden_page)
272
+
273
+ page.should have_content(home_page.title)
274
+ page.should have_content(about_page.title)
275
+ page.should have_content(hidden_page.title)
276
+ within "nav" do
277
+ page.should have_no_content(hidden_page.title)
278
+ end
279
+ end
280
+ end
281
+
282
+ describe "skip to first child" do
283
+ let(:child_page) { FactoryGirl.create(:page, :title => "Child Page", :parent_id => about_page.id)}
284
+ before(:each) do
285
+ child_page
286
+ about = about_page.reload
287
+ about.skip_to_first_child = true
288
+ about.save!
289
+
290
+ Refinery::Page.stub(:fast_menu).and_return([home_page, about, child_page].sort_by(&:lft))
291
+ end
292
+
293
+ it "succeeds" do
294
+ visit "/about"
295
+
296
+ within ".selected * > .selected a" do
297
+ page.should have_content(child_page.title)
298
+ end
299
+ end
300
+ end
301
+ end
302
+ end
metadata CHANGED
@@ -1,150 +1,129 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-pages
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.11
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
5
  prerelease:
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 0
10
+ version: 2.0.0
6
11
  platform: ruby
7
- authors:
8
- - Resolve Digital
12
+ authors:
9
13
  - Philip Arndt
14
+ - "U\xC4\xA3is Ozols"
10
15
  - David Jones
11
16
  - Steven Heidel
12
- - Uģis Ozols
13
17
  autorequire:
14
18
  bindir: bin
15
19
  cert_chain: []
16
- date: 2012-05-18 00:00:00.000000000 Z
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: refinerycms-core
20
- requirement: !ruby/object:Gem::Requirement
21
- none: false
22
- requirements:
23
- - - '='
24
- - !ruby/object:Gem::Version
25
- version: 1.0.11
26
- type: :runtime
20
+
21
+ date: 2011-10-12 00:00:00 Z
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
27
24
  prerelease: false
28
- version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 1.0.11
34
- - !ruby/object:Gem::Dependency
35
- name: activerecord
36
- requirement: !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
37
26
  none: false
38
- requirements:
27
+ requirements:
39
28
  - - ~>
40
- - !ruby/object:Gem::Version
41
- version: 3.0.10
42
- type: :runtime
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
- requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- version: 3.0.10
50
- - !ruby/object:Gem::Dependency
51
- name: friendly_id_globalize3
52
- requirement: !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ~>
56
- - !ruby/object:Gem::Version
57
- version: 3.2.1
29
+ - !ruby/object:Gem::Version
30
+ hash: 11
31
+ segments:
32
+ - 2
33
+ - 1
34
+ - 0
35
+ version: 2.1.0
36
+ version_requirements: *id001
37
+ name: awesome_nested_set
58
38
  type: :runtime
39
+ - !ruby/object:Gem::Dependency
59
40
  prerelease: false
60
- version_requirements: !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ~>
64
- - !ruby/object:Gem::Version
65
- version: 3.2.1
66
- - !ruby/object:Gem::Dependency
67
- name: globalize3
68
- requirement: !ruby/object:Gem::Requirement
41
+ requirement: &id002 !ruby/object:Gem::Requirement
69
42
  none: false
70
- requirements:
43
+ requirements:
71
44
  - - ~>
72
- - !ruby/object:Gem::Version
73
- version: 0.2.0.beta4
45
+ - !ruby/object:Gem::Version
46
+ hash: 31
47
+ segments:
48
+ - 1
49
+ - 2
50
+ - 0
51
+ version: 1.2.0
52
+ version_requirements: *id002
53
+ name: seo_meta
74
54
  type: :runtime
55
+ - !ruby/object:Gem::Dependency
75
56
  prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- none: false
78
- requirements:
79
- - - ~>
80
- - !ruby/object:Gem::Version
81
- version: 0.2.0.beta4
82
- - !ruby/object:Gem::Dependency
83
- name: awesome_nested_set
84
- requirement: !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
85
58
  none: false
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: '2.0'
59
+ requirements:
60
+ - - "="
61
+ - !ruby/object:Gem::Version
62
+ hash: 15
63
+ segments:
64
+ - 2
65
+ - 0
66
+ - 0
67
+ version: 2.0.0
68
+ version_requirements: *id003
69
+ name: refinerycms-core
90
70
  type: :runtime
71
+ - !ruby/object:Gem::Dependency
91
72
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
93
74
  none: false
94
- requirements:
95
- - - ~>
96
- - !ruby/object:Gem::Version
97
- version: '2.0'
98
- - !ruby/object:Gem::Dependency
99
- name: seo_meta
100
- requirement: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
103
- - - ~>
104
- - !ruby/object:Gem::Version
105
- version: '1.1'
75
+ requirements:
76
+ - - "!="
77
+ - !ruby/object:Gem::Version
78
+ hash: 31
79
+ segments:
80
+ - 0
81
+ - 3
82
+ - 6
83
+ version: 0.3.6
84
+ version_requirements: *id004
85
+ name: babosa
106
86
  type: :runtime
107
- prerelease: false
108
- version_requirements: !ruby/object:Gem::Requirement
109
- none: false
110
- requirements:
111
- - - ~>
112
- - !ruby/object:Gem::Version
113
- version: '1.1'
114
- description: The default content engine of Refinery CMS. This engine handles the administration
115
- and display of user-editable pages.
87
+ description: The default content extension of Refinery CMS. This extension handles the administration and display of user-editable pages.
116
88
  email: info@refinerycms.com
117
89
  executables: []
90
+
118
91
  extensions: []
92
+
119
93
  extra_rdoc_files: []
120
- files:
121
- - app/controllers/admin/page_parts_controller.rb
122
- - app/controllers/admin/pages_controller.rb
123
- - app/controllers/admin/pages_dialogs_controller.rb
124
- - app/controllers/pages_controller.rb
125
- - app/helpers/pages_helper.rb
126
- - app/models/page.rb
127
- - app/models/page_part.rb
128
- - app/presenters/page_presenter.rb
129
- - app/views/admin/pages/_actions.html.erb
130
- - app/views/admin/pages/_form.html.erb
131
- - app/views/admin/pages/_form_advanced_options.html.erb
132
- - app/views/admin/pages/_form_advanced_options_seo.html.erb
133
- - app/views/admin/pages/_form_fields_after_title.html.erb
134
- - app/views/admin/pages/_form_new_page_parts.html.erb
135
- - app/views/admin/pages/_form_page_parts.html.erb
136
- - app/views/admin/pages/_locale_picker.html.erb
137
- - app/views/admin/pages/_page.html.erb
138
- - app/views/admin/pages/_page_part_field.html.erb
139
- - app/views/admin/pages/_records.html.erb
94
+
95
+ files:
96
+ - app/controllers/refinery/admin/page_parts_controller.rb
97
+ - app/controllers/refinery/admin/pages_controller.rb
98
+ - app/controllers/refinery/admin/pages_dialogs_controller.rb
99
+ - app/controllers/refinery/page_sweeper.rb
100
+ - app/controllers/refinery/pages_controller.rb
101
+ - app/helpers/refinery/pages/content_pages_helper.rb
102
+ - app/helpers/refinery/pages_helper.rb
103
+ - app/models/refinery/page.rb
104
+ - app/models/refinery/page_part.rb
105
+ - app/presenters/refinery/page_presenter.rb
140
106
  - app/views/admin/pages/_sortable_list.html.erb
141
- - app/views/admin/pages/edit.html.erb
142
- - app/views/admin/pages/index.html.erb
143
- - app/views/admin/pages/new.html.erb
144
- - app/views/admin/pages_dialogs/_page_link.html.erb
145
- - app/views/admin/pages_dialogs/link_to.html.erb
146
- - app/views/pages/home.html.erb
147
- - app/views/pages/show.html.erb
107
+ - app/views/refinery/admin/pages/_actions.html.erb
108
+ - app/views/refinery/admin/pages/_form.html.erb
109
+ - app/views/refinery/admin/pages/_form_advanced_options.html.erb
110
+ - app/views/refinery/admin/pages/_form_advanced_options_seo.html.erb
111
+ - app/views/refinery/admin/pages/_form_fields_after_title.html.erb
112
+ - app/views/refinery/admin/pages/_form_new_page_parts.html.erb
113
+ - app/views/refinery/admin/pages/_form_page_parts.html.erb
114
+ - app/views/refinery/admin/pages/_locale_picker.html.erb
115
+ - app/views/refinery/admin/pages/_page.html.erb
116
+ - app/views/refinery/admin/pages/_page_part_field.html.erb
117
+ - app/views/refinery/admin/pages/_records.html.erb
118
+ - app/views/refinery/admin/pages/_sortable_list.html.erb
119
+ - app/views/refinery/admin/pages/children.html.erb
120
+ - app/views/refinery/admin/pages/edit.html.erb
121
+ - app/views/refinery/admin/pages/index.html.erb
122
+ - app/views/refinery/admin/pages/new.html.erb
123
+ - app/views/refinery/admin/pages_dialogs/_page_link.html.erb
124
+ - app/views/refinery/admin/pages_dialogs/link_to.html.erb
125
+ - app/views/refinery/pages/home.html.erb
126
+ - app/views/refinery/pages/show.html.erb
148
127
  - config/locales/bg.yml
149
128
  - config/locales/cs.yml
150
129
  - config/locales/da.yml
@@ -155,14 +134,15 @@ files:
155
134
  - config/locales/fi.yml
156
135
  - config/locales/fr.yml
157
136
  - config/locales/it.yml
158
- - config/locales/jp.yml
159
- - config/locales/lolcat.yml
137
+ - config/locales/ja.yml
138
+ - config/locales/ko.yml
160
139
  - config/locales/lt.yml
161
140
  - config/locales/lv.yml
162
141
  - config/locales/nb.yml
163
142
  - config/locales/nl.yml
164
143
  - config/locales/pl.yml
165
144
  - config/locales/pt-BR.yml
145
+ - config/locales/pt-PT.yml
166
146
  - config/locales/rs.yml
167
147
  - config/locales/ru.yml
168
148
  - config/locales/sk.yml
@@ -173,51 +153,80 @@ files:
173
153
  - config/locales/zh-TW.yml
174
154
  - config/routes.rb
175
155
  - db/migrate/20100913234708_create_refinerycms_pages_schema.rb
176
- - db/migrate/20101214040815_translate_page_plugin.rb
177
- - db/migrate/20101216194133_remove_cached_slug_from_pages.rb
178
- - db/migrate/20110307025652_translate_custom_title_on_pages.rb
179
- - db/migrate/20110314213540_remove_translated_fields_from_pages.rb
180
- - db/migrate/20110329080451_create_seo_meta.rb
181
- - db/seeds/pages.rb
182
- - features/manage_pages.feature
183
- - features/step_definitions/page_steps.rb
184
- - features/support/paths.rb
185
- - features/translate_pages.feature
186
- - features/visit_pages.feature
187
- - lib/gemspec.rb
188
- - lib/generators/refinerycms_pages_generator.rb
189
- - lib/pages/marketable_routes.rb
190
- - lib/pages/tabs.rb
156
+ - db/seeds.rb
157
+ - lib/generators/refinery/pages/pages_generator.rb
158
+ - lib/generators/refinery/pages/templates/config/initializers/refinery/pages.rb.erb
159
+ - lib/refinery/pages.rb
191
160
  - lib/refinery/pages/admin/instance_methods.rb
161
+ - lib/refinery/pages/configuration.rb
162
+ - lib/refinery/pages/content_page_presenter.rb
163
+ - lib/refinery/pages/content_presenter.rb
164
+ - lib/refinery/pages/engine.rb
192
165
  - lib/refinery/pages/instance_methods.rb
166
+ - lib/refinery/pages/page_part_section_presenter.rb
167
+ - lib/refinery/pages/section_presenter.rb
168
+ - lib/refinery/pages/tab.rb
169
+ - lib/refinery/pages/title_section_presenter.rb
170
+ - lib/refinery/pages/type.rb
171
+ - lib/refinery/pages/types.rb
193
172
  - lib/refinerycms-pages.rb
194
173
  - license.md
195
174
  - refinerycms-pages.gemspec
196
- - spec/models/page_spec.rb
175
+ - spec/factories/pages.rb
176
+ - spec/helpers/refinery/pages/content_pages_helper_spec.rb
177
+ - spec/lib/generators/refinery/pages/pages_generator_spec.rb
178
+ - spec/lib/pages/content_page_presenter_spec.rb
179
+ - spec/lib/pages/content_presenter_spec.rb
180
+ - spec/lib/pages/page_part_section_presenter_spec.rb
181
+ - spec/lib/pages/section_presenter_spec.rb
182
+ - spec/lib/pages/title_section_presenter_spec.rb
183
+ - spec/lib/pages_spec.rb
184
+ - spec/models/refinery/page_spec.rb
185
+ - spec/requests/refinery/admin/pages_spec.rb
186
+ - spec/requests/refinery/pages_spec.rb
197
187
  homepage: http://refinerycms.com
198
- licenses:
188
+ licenses:
199
189
  - MIT
200
190
  post_install_message:
201
191
  rdoc_options: []
202
- require_paths:
192
+
193
+ require_paths:
203
194
  - lib
204
- required_ruby_version: !ruby/object:Gem::Requirement
195
+ required_ruby_version: !ruby/object:Gem::Requirement
205
196
  none: false
206
- requirements:
207
- - - ! '>='
208
- - !ruby/object:Gem::Version
209
- version: '0'
210
- required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ hash: 3
201
+ segments:
202
+ - 0
203
+ version: "0"
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
205
  none: false
212
- requirements:
213
- - - ! '>='
214
- - !ruby/object:Gem::Version
215
- version: '0'
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ hash: 3
210
+ segments:
211
+ - 0
212
+ version: "0"
216
213
  requirements: []
214
+
217
215
  rubyforge_project: refinerycms
218
- rubygems_version: 1.8.22
216
+ rubygems_version: 1.8.17
219
217
  signing_key:
220
218
  specification_version: 3
221
- summary: Pages engine for Refinery CMS
222
- test_files: []
223
- has_rdoc:
219
+ summary: Pages extension for Refinery CMS
220
+ test_files:
221
+ - spec/factories/pages.rb
222
+ - spec/helpers/refinery/pages/content_pages_helper_spec.rb
223
+ - spec/lib/generators/refinery/pages/pages_generator_spec.rb
224
+ - spec/lib/pages/content_page_presenter_spec.rb
225
+ - spec/lib/pages/content_presenter_spec.rb
226
+ - spec/lib/pages/page_part_section_presenter_spec.rb
227
+ - spec/lib/pages/section_presenter_spec.rb
228
+ - spec/lib/pages/title_section_presenter_spec.rb
229
+ - spec/lib/pages_spec.rb
230
+ - spec/models/refinery/page_spec.rb
231
+ - spec/requests/refinery/admin/pages_spec.rb
232
+ - spec/requests/refinery/pages_spec.rb