refinerycms-pages 2.1.5 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/refinery/admin/page_parts_controller.rb +6 -1
  3. data/app/controllers/refinery/admin/pages_controller.rb +53 -45
  4. data/app/controllers/refinery/pages/admin/preview_controller.rb +12 -3
  5. data/app/controllers/refinery/pages_controller.rb +12 -12
  6. data/app/helpers/refinery/admin/pages_helper.rb +5 -4
  7. data/app/helpers/refinery/pages/content_pages_helper.rb +6 -1
  8. data/app/models/refinery/page.rb +115 -141
  9. data/app/models/refinery/page_part.rb +32 -7
  10. data/app/presenters/refinery/pages/content_presenter.rb +7 -5
  11. data/app/presenters/refinery/pages/menu_presenter.rb +41 -15
  12. data/app/presenters/refinery/pages/page_part_section_presenter.rb +1 -7
  13. data/app/presenters/refinery/pages/section_presenter.rb +2 -6
  14. data/app/views/refinery/admin/pages/_actions.html.erb +4 -13
  15. data/app/views/refinery/admin/pages/_form.html.erb +7 -10
  16. data/app/views/refinery/admin/pages/_form_advanced_options.html.erb +5 -3
  17. data/app/views/refinery/admin/pages/_form_extra_fields_for_more_options.html.erb +1 -0
  18. data/app/views/refinery/admin/pages/_form_new_page_parts.html.erb +8 -0
  19. data/app/views/refinery/admin/pages/_form_page_parts.html.erb +10 -21
  20. data/app/views/refinery/admin/pages/_page.html.erb +31 -31
  21. data/app/views/refinery/admin/pages/_page_part_field.html.erb +2 -1
  22. data/app/views/refinery/admin/pages/_records.html.erb +3 -3
  23. data/app/views/refinery/admin/pages/_save_and_continue_callback.html.erb +1 -0
  24. data/app/views/refinery/admin/pages/index.html.erb +2 -4
  25. data/app/views/refinery/admin/pages_dialogs/link_to.html.erb +1 -1
  26. data/config/locales/bg.yml +1 -2
  27. data/config/locales/ca.yml +85 -0
  28. data/config/locales/cs.yml +13 -3
  29. data/config/locales/da.yml +1 -2
  30. data/config/locales/de.yml +0 -1
  31. data/config/locales/el.yml +41 -29
  32. data/config/locales/en.yml +2 -2
  33. data/config/locales/es.yml +2 -4
  34. data/config/locales/fi.yml +1 -4
  35. data/config/locales/fr.yml +2 -2
  36. data/config/locales/hu.yml +1 -2
  37. data/config/locales/it.yml +15 -16
  38. data/config/locales/ja.yml +1 -3
  39. data/config/locales/ko.yml +1 -4
  40. data/config/locales/lt.yml +1 -3
  41. data/config/locales/lv.yml +0 -2
  42. data/config/locales/nb.yml +1 -4
  43. data/config/locales/nl.yml +1 -2
  44. data/config/locales/pl.yml +1 -13
  45. data/config/locales/pt-BR.yml +1 -3
  46. data/config/locales/pt.yml +1 -2
  47. data/config/locales/rs.yml +1 -3
  48. data/config/locales/ru.yml +8 -5
  49. data/config/locales/sk.yml +1 -2
  50. data/config/locales/sl.yml +1 -3
  51. data/config/locales/sv.yml +1 -3
  52. data/config/locales/tr.yml +1 -2
  53. data/config/locales/uk.yml +1 -5
  54. data/config/locales/vi.yml +1 -3
  55. data/config/locales/zh-CN.yml +1 -4
  56. data/config/locales/zh-TW.yml +1 -3
  57. data/config/routes.rb +16 -16
  58. data/db/migrate/20100913234708_create_refinerycms_pages_schema.rb +28 -11
  59. data/db/migrate/20140105190324_add_custom_slug_to_refinery_pages.rb +20 -0
  60. data/db/migrate/20150130044643_add_slug_to_refinery_page_parts.rb +6 -0
  61. data/db/migrate/20150720155305_update_slug_and_title_in_refinery_page_parts.rb +13 -0
  62. data/db/seeds.rb +42 -36
  63. data/lib/generators/refinery/pages/templates/config/initializers/refinery/pages.rb.erb +12 -0
  64. data/lib/refinery/pages.rb +4 -3
  65. data/lib/refinery/pages/admin/instance_methods.rb +3 -3
  66. data/lib/refinery/pages/configuration.rb +7 -1
  67. data/lib/refinery/pages/engine.rb +19 -18
  68. data/lib/refinery/pages/finder.rb +179 -0
  69. data/lib/refinery/pages/instance_methods.rb +3 -14
  70. data/lib/refinery/pages/tab.rb +2 -2
  71. data/lib/refinery/pages/types.rb +1 -1
  72. data/lib/refinery/pages/url.rb +15 -3
  73. data/license.md +1 -1
  74. data/refinerycms-pages.gemspec +8 -5
  75. data/spec/controllers/refinery/admin/pages_controller_spec.rb +53 -0
  76. data/spec/controllers/refinery/pages_controller_spec.rb +1 -1
  77. data/spec/factories/pages.rb +1 -1
  78. data/spec/features/refinery/admin/pages_spec.rb +274 -290
  79. data/spec/features/refinery/pages_spec.rb +123 -138
  80. data/spec/helpers/refinery/pages/admin/pages_helper_spec.rb +15 -11
  81. data/spec/helpers/refinery/pages/content_pages_helper_spec.rb +11 -11
  82. data/spec/lib/generators/refinery/pages/pages_generator_spec.rb +1 -1
  83. data/spec/lib/pages_spec.rb +2 -2
  84. data/spec/lib/refinery/pages/tab_spec.rb +9 -9
  85. data/spec/lib/refinery/pages/url_spec.rb +12 -12
  86. data/spec/models/refinery/page_finder_spec.rb +72 -0
  87. data/spec/models/refinery/page_menu_spec.rb +107 -0
  88. data/spec/models/refinery/page_meta_data_spec.rb +49 -0
  89. data/spec/models/refinery/page_part_spec.rb +67 -0
  90. data/spec/models/refinery/page_spec.rb +16 -534
  91. data/spec/models/refinery/page_url_spec.rb +320 -0
  92. data/spec/presenters/refinery/pages/content_page_presenter_spec.rb +9 -9
  93. data/spec/presenters/refinery/pages/content_presenter_spec.rb +20 -20
  94. data/spec/presenters/refinery/pages/menu_presenter_spec.rb +44 -6
  95. data/spec/presenters/refinery/pages/page_part_section_presenter_spec.rb +12 -12
  96. data/spec/presenters/refinery/pages/section_presenter_spec.rb +22 -22
  97. data/spec/presenters/refinery/pages/title_section_presenter_spec.rb +4 -4
  98. data/spec/support/refinery/pages/caching_helpers.rb +2 -2
  99. metadata +55 -25
  100. data/app/helpers/refinery/admin/page_parts_helper.rb +0 -6
  101. data/app/helpers/refinery/admin/pages_dialogs_helper.rb +0 -6
  102. data/app/sweepers/refinery/pages/page_sweeper.rb +0 -29
  103. data/lib/refinery/pages/caching.rb +0 -60
  104. data/spec/lib/refinery/pages/caching_spec.rb +0 -90
  105. data/spec/support/refinery/pages/caching.rb +0 -19
@@ -3,10 +3,22 @@ require "spec_helper"
3
3
  module Refinery
4
4
  module Pages
5
5
  describe MenuPresenter do
6
+ let!(:original_mounted_path) { Core.mounted_path }
7
+ let(:mounted_path) { "/" }
8
+
9
+ before do
10
+ allow(Core).to receive(:mounted_path).and_return(mounted_path)
11
+ Rails.application.reload_routes!
12
+ end
13
+
14
+ after do
15
+ allow(Core).to receive(:mounted_path).and_return(original_mounted_path)
16
+ Rails.application.reload_routes!
17
+ end
6
18
 
7
19
  let(:menu_presenter) do
8
20
  menu_items = []
9
- menu_items.stub(:roots)
21
+ allow(menu_items).to receive(:roots)
10
22
 
11
23
  MenuPresenter.new(menu_items, view)
12
24
  end
@@ -19,16 +31,18 @@ module Refinery
19
31
  expect(menu_presenter.menu_tag).to eq(:nav)
20
32
  expect(menu_presenter.list_tag).to eq(:ul)
21
33
  expect(menu_presenter.list_item_tag).to eq(:li)
34
+ expect(menu_presenter.active_css).to eq(:active)
22
35
  expect(menu_presenter.selected_css).to eq(:selected)
23
36
  expect(menu_presenter.first_css).to eq(:first)
24
37
  expect(menu_presenter.last_css).to eq(:last)
38
+ expect(menu_presenter.list_tag_css).to eq("nav")
25
39
  end
26
40
  end
27
41
 
28
42
  describe "#roots" do
29
43
  context "when #roots is configured" do
30
44
  it "returns config.roots" do
31
- menu_presenter.config.stub(:roots).and_return(["one", "two", "three"])
45
+ allow(menu_presenter.config).to receive(:roots).and_return(["one", "two", "three"])
32
46
  expect(menu_presenter.roots).to eq(["one", "two", "three"])
33
47
  end
34
48
  end
@@ -36,7 +50,7 @@ module Refinery
36
50
  context "when #roots isn't configured" do
37
51
  it "returns roots from passed in collection" do
38
52
  menu_items = double()
39
- menu_items.stub(:roots).and_return(["three", "two", "one"])
53
+ allow(menu_items).to receive(:roots).and_return(["three", "two", "one"])
40
54
 
41
55
  menu_presenter = MenuPresenter.new(menu_items, view)
42
56
  expect(menu_presenter.roots).to eq(["three", "two", "one"])
@@ -45,11 +59,35 @@ module Refinery
45
59
  end
46
60
 
47
61
  describe "#to_html" do
62
+ let(:menu_items) {
63
+ Refinery::Menu.new(FactoryGirl.create(:page, :title => "Refinery CMS"))
64
+ }
65
+ let(:menu_presenter) { MenuPresenter.new(menu_items, view) }
48
66
  it "returns menu items wrapped in html" do
49
- menu_items = Refinery::Menu.new(FactoryGirl.create(:page, :title => "Refinery CMS"))
67
+ expect(menu_presenter.to_html).to xml_eq(
68
+ %Q{<nav class="menu clearfix" id="menu"><ul class="nav"><li class="first last"><a href="/refinery-cms">Refinery CMS</a></li></ul></nav>}
69
+ )
70
+ end
50
71
 
51
- menu_presenter = MenuPresenter.new(menu_items, view)
52
- expect(menu_presenter.to_html).to eq(%Q{<nav class="menu clearfix" id="menu"><ul><li class="first last"><a href="/refinery-cms">Refinery CMS</a></li></ul></nav>})
72
+ context "takes mount point into account" do
73
+ let(:mounted_path) { "/subfolder"}
74
+
75
+ it "for normal pages" do
76
+ expect(menu_presenter.to_html).to xml_eq(
77
+ %Q{<nav class="menu clearfix" id="menu"><ul class="nav"><li class="first last"><a href="#{mounted_path}/refinery-cms">Refinery CMS</a></li></ul></nav>}
78
+ )
79
+ end
80
+
81
+ context "when page has a link_url" do
82
+ let(:menu_items) {
83
+ Menu.new(FactoryGirl.create(:page, title: "Home", link_url: "/"))
84
+ }
85
+ it "the menu item URL includes the mounted path" do
86
+ expect(menu_presenter.to_html).to xml_eq(
87
+ %Q{<nav class="menu clearfix" id="menu"><ul class="nav"><li class="first last"><a href="#{mounted_path}">Home</a></li></ul></nav>}
88
+ )
89
+ end
90
+ end
53
91
  end
54
92
  end
55
93
 
@@ -4,31 +4,31 @@ module Refinery
4
4
  module Pages
5
5
  describe PagePartSectionPresenter do
6
6
  it "can be built from a page part" do
7
- part = double(PagePart, :body => 'part_body', :title => 'A Wonderful Page Part')
7
+ part = double(PagePart, :body => 'part_body', :slug => 'a_wonderful_page_part', :title => 'A Wonderful Page Part')
8
8
  section = PagePartSectionPresenter.new(part)
9
- section.fallback_html.should == 'part_body'
10
- section.id.should == :a_wonderful_page_part
9
+ expect(section.fallback_html).to eq('part_body')
10
+ expect(section.id).to eq(:a_wonderful_page_part)
11
11
  end
12
12
 
13
13
  it "marks the body as html safe" do
14
- part = double(PagePart, :body => '<p>part_body</p>', :title => nil)
14
+ part = double(PagePart, :body => '<p>part_body</p>', :slug => nil, :title => nil)
15
15
  section = PagePartSectionPresenter.new(part)
16
- section.fallback_html.should be_html_safe
17
- section.wrapped_html.should == "<section><div class=\"inner\"><p>part_body</p></div></section>"
16
+ expect(section.fallback_html).to be_html_safe
17
+ expect(section.wrapped_html).to xml_eq(%q{<section><div class="inner"><p>part_body</p></div></section>})
18
18
  end
19
19
 
20
20
  it "handles a nil page body" do
21
- part = double(PagePart, :body => nil, :title => nil)
21
+ part = double(PagePart, :body => nil, :slug => nil, :title => nil)
22
22
  section = PagePartSectionPresenter.new(part)
23
- section.fallback_html.should be_nil
24
- section.wrapped_html.should be_nil
25
- section.has_content?.should be_false
23
+ expect(section.fallback_html).to be_nil
24
+ expect(section.wrapped_html).to be_nil
25
+ expect(section.has_content?).to be_falsey
26
26
  end
27
27
 
28
28
  it "has no id if title is nil" do
29
- part = double(PagePart, :body => 'foobar', :title => nil)
29
+ part = double(PagePart, :body => 'foobar', :slug => nil, :title => nil)
30
30
  section = PagePartSectionPresenter.new(part)
31
- section.id.should be_nil
31
+ expect(section.id).to be_nil
32
32
  end
33
33
  end
34
34
  end
@@ -5,79 +5,79 @@ module Refinery
5
5
  describe SectionPresenter do
6
6
  it "can build a css class for when it is not present based on id" do
7
7
  section = SectionPresenter.new(:fallback_html => 'foobar', :id => 'mynode')
8
- section.not_present_css_class.should == 'no_mynode'
8
+ expect(section.not_present_css_class).to eq('no_mynode')
9
9
  end
10
10
 
11
11
  it "allows access to constructor arguments" do
12
12
  section = SectionPresenter.new(:fallback_html => 'foobar', :id => 'mynode', :hidden => true)
13
- section.fallback_html.should == 'foobar'
14
- section.id.should == 'mynode'
15
- section.should be_hidden
13
+ expect(section.fallback_html).to eq('foobar')
14
+ expect(section.id).to eq('mynode')
15
+ expect(section).to be_hidden
16
16
  end
17
17
 
18
18
  it "should be visible if not hidden" do
19
19
  section = SectionPresenter.new(:hidden => false)
20
- section.should be_visible
20
+ expect(section).to be_visible
21
21
  end
22
22
 
23
23
  it "should be not visible if hidden" do
24
24
  section = SectionPresenter.new(:hidden => true)
25
- section.should_not be_visible
25
+ expect(section).not_to be_visible
26
26
  end
27
27
 
28
28
  describe "when building html for a section" do
29
29
  it "wont show a hidden section" do
30
30
  section = SectionPresenter.new(:fallback_html => 'foobar', :hidden => true)
31
- section.has_content?(true).should be_false
32
- section.wrapped_html(true).should be_nil
31
+ expect(section.has_content?(true)).to be_falsey
32
+ expect(section.wrapped_html(true)).to be_nil
33
33
  end
34
34
 
35
35
  it "can be hidden with the hide method" do
36
36
  section = SectionPresenter.new(:fallback_html => 'foobar')
37
37
  section.hide
38
- section.has_content?(true).should be_false
39
- section.wrapped_html(true).should be_nil
38
+ expect(section.has_content?(true)).to be_falsey
39
+ expect(section.wrapped_html(true)).to be_nil
40
40
  end
41
41
 
42
42
  it "will use the specified id" do
43
43
  section = SectionPresenter.new(:fallback_html => 'foobar', :id => 'mynode')
44
- section.has_content?(true).should be_true
45
- section.wrapped_html(true).should == '<section id="mynode"><div class="inner">foobar</div></section>'
44
+ expect(section.has_content?(true)).to be_truthy
45
+ expect(section.wrapped_html(true)).to xml_eq('<section id="mynode"><div class="inner">foobar</div></section>')
46
46
  end
47
47
 
48
48
  describe "if allowed to use fallback html" do
49
49
  it "wont show a section with no fallback or override" do
50
50
  section = SectionPresenter.new
51
- section.has_content?(true).should be_false
52
- section.wrapped_html(true).should be_nil
51
+ expect(section.has_content?(true)).to be_falsey
52
+ expect(section.wrapped_html(true)).to be_nil
53
53
  end
54
54
 
55
55
  it "uses wrapped fallback html" do
56
56
  section = SectionPresenter.new(:fallback_html => 'foobar')
57
- section.has_content?(true).should be_true
58
- section.wrapped_html(true).should == '<section><div class="inner">foobar</div></section>'
57
+ expect(section.has_content?(true)).to be_truthy
58
+ expect(section.wrapped_html(true)).to xml_eq('<section><div class="inner">foobar</div></section>')
59
59
  end
60
60
 
61
61
  it "uses wrapped override html if present" do
62
62
  section = SectionPresenter.new(:fallback_html => 'foobar')
63
63
  section.override_html = 'hello world'
64
- section.has_content?(true).should be_true
65
- section.wrapped_html(true).should == '<section><div class="inner">hello world</div></section>'
64
+ expect(section.has_content?(true)).to be_truthy
65
+ expect(section.wrapped_html(true)).to xml_eq('<section><div class="inner">hello world</div></section>')
66
66
  end
67
67
  end
68
68
 
69
69
  describe "if not allowed to use fallback html" do
70
70
  it "wont show a section with no override" do
71
71
  section = SectionPresenter.new(:fallback_html => 'foobar')
72
- section.has_content?(false).should be_false
73
- section.wrapped_html(false).should be_nil
72
+ expect(section.has_content?(false)).to be_falsey
73
+ expect(section.wrapped_html(false)).to be_nil
74
74
  end
75
75
 
76
76
  it "uses wrapped override html if present" do
77
77
  section = SectionPresenter.new(:fallback_html => 'foobar')
78
78
  section.override_html = 'hello world'
79
- section.has_content?(false).should be_true
80
- section.wrapped_html(false).should == '<section><div class="inner">hello world</div></section>'
79
+ expect(section.has_content?(false)).to be_truthy
80
+ expect(section.wrapped_html(false)).to xml_eq('<section><div class="inner">hello world</div></section>')
81
81
  end
82
82
  end
83
83
  end
@@ -6,14 +6,14 @@ module Refinery
6
6
  describe "when building html for a section" do
7
7
  it "wraps a title section in a title element" do
8
8
  section = TitleSectionPresenter.new(:fallback_html => 'foobar')
9
- section.has_content?(true).should be_true
10
- section.wrapped_html(true).should == '<h1>foobar</h1>'
9
+ expect(section.has_content?(true)).to be_truthy
10
+ expect(section.wrapped_html(true)).to xml_eq('<h1>foobar</h1>')
11
11
  end
12
12
 
13
13
  it "will use the specified id" do
14
14
  section = TitleSectionPresenter.new(:fallback_html => 'foobar', :id => 'mynode')
15
- section.has_content?(true).should be_true
16
- section.wrapped_html(true).should == '<h1 id="mynode">foobar</h1>'
15
+ expect(section.has_content?(true)).to be_truthy
16
+ expect(section.wrapped_html(true)).to xml_eq('<h1 id="mynode">foobar</h1>')
17
17
  end
18
18
  end
19
19
  end
@@ -8,9 +8,9 @@ module CachingHelpers
8
8
  end
9
9
 
10
10
  def cache_page(page)
11
- Refinery::PagesController.any_instance.stub(:refinery_user?).and_return(false)
11
+ allow_any_instance_of(Refinery::PagesController).to receive(:refinery_user?).and_return(false)
12
12
  visit refinery.page_path(page)
13
- Refinery::PagesController.any_instance.unstub(:refinery_user?)
13
+ allow_any_instance_of(Refinery::PagesController).to receive(:refinery_user?).and_call_original
14
14
  end
15
15
 
16
16
  RSpec::Matchers.define :be_cached do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-11-07 00:00:00.000000000 Z
13
+ date: 2015-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: friendly_id
@@ -18,70 +18,76 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.9
21
+ version: 5.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 4.0.9
28
+ version: 5.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: globalize
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 4.0.0
36
+ - - "<"
34
37
  - !ruby/object:Gem::Version
35
- version: 3.1.0
38
+ version: '5.2'
36
39
  type: :runtime
37
40
  prerelease: false
38
41
  version_requirements: !ruby/object:Gem::Requirement
39
42
  requirements:
40
- - - "~>"
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 4.0.0
46
+ - - "<"
41
47
  - !ruby/object:Gem::Version
42
- version: 3.1.0
48
+ version: '5.2'
43
49
  - !ruby/object:Gem::Dependency
44
50
  name: awesome_nested_set
45
51
  requirement: !ruby/object:Gem::Requirement
46
52
  requirements:
47
53
  - - "~>"
48
54
  - !ruby/object:Gem::Version
49
- version: 2.1.3
55
+ version: 3.0.0
50
56
  type: :runtime
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
53
59
  requirements:
54
60
  - - "~>"
55
61
  - !ruby/object:Gem::Version
56
- version: 2.1.3
62
+ version: 3.0.0
57
63
  - !ruby/object:Gem::Dependency
58
64
  name: seo_meta
59
65
  requirement: !ruby/object:Gem::Requirement
60
66
  requirements:
61
67
  - - "~>"
62
68
  - !ruby/object:Gem::Version
63
- version: 1.4.0
69
+ version: 2.0.0.rc.1
64
70
  type: :runtime
65
71
  prerelease: false
66
72
  version_requirements: !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - "~>"
69
75
  - !ruby/object:Gem::Version
70
- version: 1.4.0
76
+ version: 2.0.0.rc.1
71
77
  - !ruby/object:Gem::Dependency
72
78
  name: refinerycms-core
73
79
  requirement: !ruby/object:Gem::Requirement
74
80
  requirements:
75
81
  - - '='
76
82
  - !ruby/object:Gem::Version
77
- version: 2.1.5
83
+ version: 3.0.0
78
84
  type: :runtime
79
85
  prerelease: false
80
86
  version_requirements: !ruby/object:Gem::Requirement
81
87
  requirements:
82
88
  - - '='
83
89
  - !ruby/object:Gem::Version
84
- version: 2.1.5
90
+ version: 3.0.0
85
91
  - !ruby/object:Gem::Dependency
86
92
  name: babosa
87
93
  requirement: !ruby/object:Gem::Requirement
@@ -96,9 +102,23 @@ dependencies:
96
102
  - - "!="
97
103
  - !ruby/object:Gem::Version
98
104
  version: 0.3.6
105
+ - !ruby/object:Gem::Dependency
106
+ name: speakingurl-rails
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.1.2
112
+ type: :runtime
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 1.1.2
99
119
  description: The default content extension of Refinery CMS. This extension handles
100
120
  the administration and display of user-editable pages.
101
- email: info@refinerycms.com
121
+ email: refinerycms@p.arndt.io
102
122
  executables: []
103
123
  extensions: []
104
124
  extra_rdoc_files: []
@@ -108,8 +128,6 @@ files:
108
128
  - app/controllers/refinery/admin/pages_dialogs_controller.rb
109
129
  - app/controllers/refinery/pages/admin/preview_controller.rb
110
130
  - app/controllers/refinery/pages_controller.rb
111
- - app/helpers/refinery/admin/page_parts_helper.rb
112
- - app/helpers/refinery/admin/pages_dialogs_helper.rb
113
131
  - app/helpers/refinery/admin/pages_helper.rb
114
132
  - app/helpers/refinery/pages/content_pages_helper.rb
115
133
  - app/models/refinery/page.rb
@@ -121,11 +139,11 @@ files:
121
139
  - app/presenters/refinery/pages/page_part_section_presenter.rb
122
140
  - app/presenters/refinery/pages/section_presenter.rb
123
141
  - app/presenters/refinery/pages/title_section_presenter.rb
124
- - app/sweepers/refinery/pages/page_sweeper.rb
125
142
  - app/views/refinery/admin/pages/_actions.html.erb
126
143
  - app/views/refinery/admin/pages/_form.html.erb
127
144
  - app/views/refinery/admin/pages/_form_advanced_options.html.erb
128
145
  - app/views/refinery/admin/pages/_form_advanced_options_seo.html.erb
146
+ - app/views/refinery/admin/pages/_form_extra_fields_for_more_options.html.erb
129
147
  - app/views/refinery/admin/pages/_form_fields_after_title.html.erb
130
148
  - app/views/refinery/admin/pages/_form_new_page_parts.html.erb
131
149
  - app/views/refinery/admin/pages/_form_page_parts.html.erb
@@ -143,6 +161,7 @@ files:
143
161
  - app/views/refinery/pages/home.html.erb
144
162
  - app/views/refinery/pages/show.html.erb
145
163
  - config/locales/bg.yml
164
+ - config/locales/ca.yml
146
165
  - config/locales/cs.yml
147
166
  - config/locales/da.yml
148
167
  - config/locales/de.yml
@@ -174,14 +193,17 @@ files:
174
193
  - config/locales/zh-TW.yml
175
194
  - config/routes.rb
176
195
  - db/migrate/20100913234708_create_refinerycms_pages_schema.rb
196
+ - db/migrate/20140105190324_add_custom_slug_to_refinery_pages.rb
197
+ - db/migrate/20150130044643_add_slug_to_refinery_page_parts.rb
198
+ - db/migrate/20150720155305_update_slug_and_title_in_refinery_page_parts.rb
177
199
  - db/seeds.rb
178
200
  - lib/generators/refinery/pages/pages_generator.rb
179
201
  - lib/generators/refinery/pages/templates/config/initializers/refinery/pages.rb.erb
180
202
  - lib/refinery/pages.rb
181
203
  - lib/refinery/pages/admin/instance_methods.rb
182
- - lib/refinery/pages/caching.rb
183
204
  - lib/refinery/pages/configuration.rb
184
205
  - lib/refinery/pages/engine.rb
206
+ - lib/refinery/pages/finder.rb
185
207
  - lib/refinery/pages/instance_methods.rb
186
208
  - lib/refinery/pages/render_options.rb
187
209
  - lib/refinery/pages/tab.rb
@@ -191,6 +213,7 @@ files:
191
213
  - lib/refinerycms-pages.rb
192
214
  - license.md
193
215
  - refinerycms-pages.gemspec
216
+ - spec/controllers/refinery/admin/pages_controller_spec.rb
194
217
  - spec/controllers/refinery/pages_controller_spec.rb
195
218
  - spec/factories/pages.rb
196
219
  - spec/features/refinery/admin/pages_spec.rb
@@ -199,17 +222,20 @@ files:
199
222
  - spec/helpers/refinery/pages/content_pages_helper_spec.rb
200
223
  - spec/lib/generators/refinery/pages/pages_generator_spec.rb
201
224
  - spec/lib/pages_spec.rb
202
- - spec/lib/refinery/pages/caching_spec.rb
203
225
  - spec/lib/refinery/pages/tab_spec.rb
204
226
  - spec/lib/refinery/pages/url_spec.rb
227
+ - spec/models/refinery/page_finder_spec.rb
228
+ - spec/models/refinery/page_menu_spec.rb
229
+ - spec/models/refinery/page_meta_data_spec.rb
230
+ - spec/models/refinery/page_part_spec.rb
205
231
  - spec/models/refinery/page_spec.rb
232
+ - spec/models/refinery/page_url_spec.rb
206
233
  - spec/presenters/refinery/pages/content_page_presenter_spec.rb
207
234
  - spec/presenters/refinery/pages/content_presenter_spec.rb
208
235
  - spec/presenters/refinery/pages/menu_presenter_spec.rb
209
236
  - spec/presenters/refinery/pages/page_part_section_presenter_spec.rb
210
237
  - spec/presenters/refinery/pages/section_presenter_spec.rb
211
238
  - spec/presenters/refinery/pages/title_section_presenter_spec.rb
212
- - spec/support/refinery/pages/caching.rb
213
239
  - spec/support/refinery/pages/caching_helpers.rb
214
240
  homepage: http://refinerycms.com
215
241
  licenses:
@@ -223,7 +249,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
249
  requirements:
224
250
  - - ">="
225
251
  - !ruby/object:Gem::Version
226
- version: '0'
252
+ version: 2.0.0
227
253
  required_rubygems_version: !ruby/object:Gem::Requirement
228
254
  requirements:
229
255
  - - ">="
@@ -231,11 +257,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
257
  version: '0'
232
258
  requirements: []
233
259
  rubyforge_project: refinerycms
234
- rubygems_version: 2.2.2
260
+ rubygems_version: 2.4.5.1
235
261
  signing_key:
236
262
  specification_version: 4
237
263
  summary: Pages extension for Refinery CMS
238
264
  test_files:
265
+ - spec/controllers/refinery/admin/pages_controller_spec.rb
239
266
  - spec/controllers/refinery/pages_controller_spec.rb
240
267
  - spec/factories/pages.rb
241
268
  - spec/features/refinery/admin/pages_spec.rb
@@ -244,15 +271,18 @@ test_files:
244
271
  - spec/helpers/refinery/pages/content_pages_helper_spec.rb
245
272
  - spec/lib/generators/refinery/pages/pages_generator_spec.rb
246
273
  - spec/lib/pages_spec.rb
247
- - spec/lib/refinery/pages/caching_spec.rb
248
274
  - spec/lib/refinery/pages/tab_spec.rb
249
275
  - spec/lib/refinery/pages/url_spec.rb
276
+ - spec/models/refinery/page_finder_spec.rb
277
+ - spec/models/refinery/page_menu_spec.rb
278
+ - spec/models/refinery/page_meta_data_spec.rb
279
+ - spec/models/refinery/page_part_spec.rb
250
280
  - spec/models/refinery/page_spec.rb
281
+ - spec/models/refinery/page_url_spec.rb
251
282
  - spec/presenters/refinery/pages/content_page_presenter_spec.rb
252
283
  - spec/presenters/refinery/pages/content_presenter_spec.rb
253
284
  - spec/presenters/refinery/pages/menu_presenter_spec.rb
254
285
  - spec/presenters/refinery/pages/page_part_section_presenter_spec.rb
255
286
  - spec/presenters/refinery/pages/section_presenter_spec.rb
256
287
  - spec/presenters/refinery/pages/title_section_presenter_spec.rb
257
- - spec/support/refinery/pages/caching.rb
258
288
  - spec/support/refinery/pages/caching_helpers.rb