seo_meta 2.0.1 → 3.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4a6e7e50ed8cd054a81fa01ae92b80118fd303
|
4
|
+
data.tar.gz: f8a86e484a33f9fe9863e51bfe8bcd7994ddead7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b59f088b0d3d6010bd3a619d1f38493dba1c64b620e87614cad9806972c7f74338bdee8af5c0b4aa2622725831aca0e655ba9d5abbbeddb92915a69dec116d
|
7
|
+
data.tar.gz: a347a677a54365d500202d1f9266958b399493a1d58d93d122ec96ff05163d621d285fcf874b584a20b6a6f1cf4a305c8896d7c8a160a27595127349d1f4cf92
|
data/app/models/seo_metum.rb
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
<h2><%= t('seo', :
|
2
|
-
<div class=
|
3
|
-
|
4
|
-
|
5
|
-
<%= refinery_help_tag t('seo_override_title_help', :scope => 'seo_meta.form')%>
|
6
|
-
</span>
|
7
|
-
<%= form.text_field :browser_title, :class => 'widest' %>
|
1
|
+
<h2><%= t('seo', scope: 'seo_meta.form') %></h2>
|
2
|
+
<div class="field">
|
3
|
+
<%= form.label :browser_title, t('seo_override_title', scope: 'seo_meta.form') %>
|
4
|
+
<%= form.text_field :browser_title, class: 'widest', placeholder: t('seo_override_title_help', scope: 'seo_meta.form') %>
|
8
5
|
</div>
|
9
|
-
<div class=
|
10
|
-
|
11
|
-
|
12
|
-
<%= refinery_help_tag t('meta_description_help', :scope => 'seo_meta.form') %>
|
13
|
-
</span>
|
14
|
-
<%= form.text_area :meta_description, :class => 'widest', :rows => 7 %>
|
6
|
+
<div class="field">
|
7
|
+
<%= form.label :meta_description, t('meta_description_title', scope: 'seo_meta.form') %>
|
8
|
+
<%= form.text_area :meta_description, class: 'widest', rows: 7, placeholder: t('meta_description_help', scope: 'seo_meta.form') %>
|
15
9
|
</div>
|
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
class CreateSeoMeta < ActiveRecord::Migration[4.2]; end
|
3
|
-
else
|
4
|
-
class CreateSeoMeta < ActiveRecord::Migration; end
|
5
|
-
end
|
6
|
-
|
7
|
-
CreateSeoMeta.class_eval do
|
1
|
+
class CreateSeoMeta < ActiveRecord::Migration[4.2]
|
8
2
|
def self.up
|
9
3
|
create_table :seo_meta do |t|
|
10
4
|
t.integer :seo_meta_id
|
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration[4.2]; end
|
3
|
-
else
|
4
|
-
class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration; end
|
5
|
-
end
|
6
|
-
|
7
|
-
RemoveMetaKeywordsFromSeoMeta.class_eval do
|
1
|
+
class RemoveMetaKeywordsFromSeoMeta < ActiveRecord::Migration[4.2]
|
8
2
|
def up
|
9
3
|
remove_column :seo_meta, :meta_keywords
|
10
4
|
end
|
data/lib/seo_meta.rb
CHANGED
@@ -12,7 +12,7 @@ module SeoMeta
|
|
12
12
|
end
|
13
13
|
|
14
14
|
class Engine < ::Rails::Engine
|
15
|
-
engine_name 'seo_meta'
|
15
|
+
engine_name 'seo_meta'
|
16
16
|
end
|
17
17
|
|
18
18
|
autoload :InstanceMethods, File.expand_path('../seo_meta/instance_methods', __FILE__)
|
@@ -27,15 +27,11 @@ def is_seo_meta(options = {})
|
|
27
27
|
:dependent => :destroy
|
28
28
|
}.merge(options.slice(:class_name, :foreign_key, :dependent))
|
29
29
|
|
30
|
-
|
31
|
-
has_one :seo_meta, proc { where(:seo_meta_type => self.name) }, has_one_options
|
32
|
-
else
|
33
|
-
has_one :seo_meta, {:conditions => {:seo_meta_type => self.name}}.merge(has_one_options)
|
34
|
-
end
|
30
|
+
has_one :seo_meta, proc { where(:seo_meta_type => self.name) }, has_one_options
|
35
31
|
|
36
32
|
# Let SeoMetum know about the base
|
37
33
|
::SeoMetum.send :belongs_to, self.name.underscore.gsub('/', '_').to_sym,
|
38
|
-
:
|
34
|
+
class_name: self.name, optional: true
|
39
35
|
|
40
36
|
# Include the instance methods.
|
41
37
|
self.send :include, ::SeoMeta::InstanceMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seo_meta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combustion
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 5.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 5.0.0
|
69
69
|
description: SEO Meta tags plugin for Ruby on Rails
|
70
70
|
email: p@arndt.io
|
71
71
|
executables: []
|