brightcontent-pages 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightcontent-pages (2.0.22)
4
+ brightcontent-pages (2.0.23)
5
5
  awesome_nested_set
6
- brightcontent-attachments (= 2.0.22)
7
- brightcontent-core (= 2.0.22)
6
+ brightcontent-attachments (= 2.0.23)
7
+ brightcontent-core (= 2.0.23)
8
8
 
9
9
  PATH
10
10
  remote: ../attachments
11
11
  specs:
12
- brightcontent-attachments (2.0.22)
13
- brightcontent-core (= 2.0.22)
12
+ brightcontent-attachments (2.0.23)
13
+ brightcontent-core (= 2.0.23)
14
14
  jquery-fileupload-rails
15
15
  paperclip
16
16
 
17
17
  PATH
18
18
  remote: ../core
19
19
  specs:
20
- brightcontent-core (2.0.22)
20
+ brightcontent-core (2.0.23)
21
21
  bcrypt-ruby
22
22
  bootstrap-wysihtml5-rails
23
23
  has_scope
@@ -21,6 +21,10 @@ module Brightcontent
21
21
  lft == 1
22
22
  end
23
23
 
24
+ def path
25
+ "/" + slug
26
+ end
27
+
24
28
  def attachment_styles
25
29
  Brightcontent.page_attachment_styles
26
30
  end
@@ -34,6 +34,11 @@ module Brightcontent
34
34
  page = create(:page, name: "About us", parent: homepage).reload
35
35
  page.slug.should eq "homepage/about-us"
36
36
  end
37
+
38
+ it "creates a path for multiple children" do
39
+ about_us = create(:page, name: "About us", parent: homepage)
40
+ create(:page, name: "More", parent: about_us).path.should eq "/homepage/about-us/more"
41
+ end
37
42
  end
38
43
  end
39
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.22
4
+ version: 2.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.22
21
+ version: 2.0.23
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.22
29
+ version: 2.0.23
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: brightcontent-attachments
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.22
37
+ version: 2.0.23
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.22
45
+ version: 2.0.23
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: awesome_nested_set
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  segments:
231
231
  - 0
232
- hash: -4290751379155946945
232
+ hash: 3038559966441324305
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  none: false
235
235
  requirements:
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: -4290751379155946945
241
+ hash: 3038559966441324305
242
242
  requirements: []
243
243
  rubyforge_project:
244
244
  rubygems_version: 1.8.24