rocket_cms 0.8.0.pre.5 → 0.8.0.pre.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0278478ead1955bacae88ab8696daad16896750f
4
- data.tar.gz: 5ee8127a336c911cb3bd7795dcf8a617df8f4df6
3
+ metadata.gz: c435abf4bab646d020c211fe4908bd8e871f7fe0
4
+ data.tar.gz: 1715732d78ec2450a345858277dd34bed2e2093d
5
5
  SHA512:
6
- metadata.gz: 79b618f2fb2044f1a60e53aaf6142b530f36c2007da57d7eea374f41da89d8a4a01667d8829f5de2e61654cdda4f4e2bd9a540e1f30342cd653413472931bd29
7
- data.tar.gz: 72a873069c40e607a0f49a9e0b5508143c5bffbdaec6fd97ebf06388de8cafe02c96841235d1bb2b5ff4bf27f9ebb20b8b7064f80547bfddc2f54d4e2712d38b
6
+ metadata.gz: d350328115337170dbca7a427df2af03ab6fa48995c627b527434191327c21597c59c4ce82a192f79033c228c0f74576625af3bcffc9817a0a95fe464f15aced
7
+ data.tar.gz: b6c3936de5887a928ad02b041c8906cf102aae3611480a6f191c4e8e6f63ca5412e72ecd025e21ac87e0be80231036ac4c1b0a17250cf93725ae619541c8562d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.8.0.pre.5)
4
+ rocket_cms (0.8.0.pre.6)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -16,6 +16,7 @@ module Seoable
16
16
  delegate *(LOCALIZED_FIELDS.map {|f| "#{f}_translations=".to_sym }), to: :seo
17
17
  end
18
18
  end
19
+ include RocketCMS::SeoHelpers
19
20
  else
20
21
  include RocketCMS::Models::Seo
21
22
  end
@@ -24,6 +24,7 @@ require 'addressable/uri'
24
24
  require 'turbolinks'
25
25
  require 'simple-navigation'
26
26
 
27
+ require 'rocket_cms/seo_helpers'
27
28
  require 'rocket_cms/configuration'
28
29
  require 'rocket_cms/patch'
29
30
  require 'rocket_cms/admin'
@@ -5,6 +5,7 @@ module RocketCMS
5
5
  include RocketCMS::Model
6
6
  include Enableable
7
7
  include RocketCMS.orm_specific('Seo')
8
+ include RocketCMS::SeoHelpers
8
9
 
9
10
  included do
10
11
  RocketCMS.apply_patches self
@@ -12,13 +13,5 @@ module RocketCMS
12
13
  end
13
14
  end
14
15
  end
15
-
16
- def page_title
17
- title.blank? ? name : title
18
- end
19
-
20
- def get_og_title
21
- og_title.blank? ? name : og_title
22
- end
23
16
  end
24
17
 
@@ -0,0 +1,13 @@
1
+ module RocketCMS
2
+ module SeoHelpers
3
+ extend ActiveSupport::Concern
4
+ def page_title
5
+ title.blank? ? name : title
6
+ end
7
+
8
+ def get_og_title
9
+ og_title.blank? ? name : og_title
10
+ end
11
+ end
12
+ end
13
+
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.8.0.pre.5"
2
+ VERSION = "0.8.0.pre.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.pre.5
4
+ version: 0.8.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
@@ -472,6 +472,7 @@ files:
472
472
  - lib/rocket_cms/models/seo.rb
473
473
  - lib/rocket_cms/patch.rb
474
474
  - lib/rocket_cms/rails_admin_menu.rb
475
+ - lib/rocket_cms/seo_helpers.rb
475
476
  - lib/rocket_cms/simple_form_patch.rb
476
477
  - lib/rocket_cms/tasks.rb
477
478
  - lib/rocket_cms/version.rb