seo_meta 2.0.0.rc.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/app/models/seo_metum.rb +0 -3
- data/app/views/seo_meta/_form.html.erb +7 -13
- data/db/migrate/20110329222114_create_seo_meta.rb +2 -3
- data/db/migrate/20120518234749_remove_meta_keywords_from_seo_meta.rb +1 -1
- data/lib/seo_meta/instance_methods.rb +5 -8
- data/lib/seo_meta.rb +4 -10
- data/readme.md +4 -4
- data.tar.gz.sig +0 -0
- metadata +54 -30
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b1d2bda2cc89f3ea828b06a1045068b91e90e5934e146eb3feeecf2893945e0a
|
4
|
+
data.tar.gz: 3f5b015b5e3e4a208804ba39dbcfd6bc2914c7d7cd08f23358df465c3a258441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 223dfc1e78797106097b41008a961a9bcc551d23a6c591035e5d01149519ba1bff942dcc91889135ce38f483b68d3e77b03312c4da1a4e4da723b3f0ddacce82
|
7
|
+
data.tar.gz: 69be60925370e61f816ee3b10d9259e2970f2257aa35230a22de805e39aace31d3cdbd94fae68b71c78b61564d711026ebb2b21a89cc036eed7fe10e7e13d518
|
checksums.yaml.gz.sig
ADDED
Binary file
|
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,5 +1,4 @@
|
|
1
|
-
class CreateSeoMeta < ActiveRecord::Migration
|
2
|
-
|
1
|
+
class CreateSeoMeta < ActiveRecord::Migration[4.2]
|
3
2
|
def self.up
|
4
3
|
create_table :seo_meta do |t|
|
5
4
|
t.integer :seo_meta_id
|
@@ -9,7 +8,7 @@ class CreateSeoMeta < ActiveRecord::Migration
|
|
9
8
|
t.string :meta_keywords
|
10
9
|
t.text :meta_description
|
11
10
|
|
12
|
-
t.timestamps
|
11
|
+
t.timestamps :null => false
|
13
12
|
end
|
14
13
|
|
15
14
|
add_index :seo_meta, :id
|
@@ -10,19 +10,16 @@ module SeoMeta
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Allow attributes supplied to override the current seo_meta_attributes.
|
13
|
-
def
|
14
|
-
seo_meta_attributes.merge(
|
13
|
+
def attributes
|
14
|
+
seo_meta_attributes.merge(super)
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
def attributes_equals_with_seo_meta(attributes, *args)
|
17
|
+
def attributes_equals(attributes, *args)
|
20
18
|
seo_meta_attributes.merge(attributes)
|
21
|
-
|
19
|
+
super
|
22
20
|
end
|
23
21
|
|
24
22
|
alias_method :attributes_equals, :attributes=
|
25
|
-
alias_method_chain :attributes_equals, :seo_meta
|
26
23
|
end
|
27
24
|
end
|
28
25
|
end
|
@@ -48,4 +45,4 @@ module SeoMeta
|
|
48
45
|
seo_meta.save
|
49
46
|
end
|
50
47
|
end
|
51
|
-
end
|
48
|
+
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, -> { 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
|
@@ -46,7 +42,5 @@ def is_seo_meta(options = {})
|
|
46
42
|
|
47
43
|
# Delegate both the accessor and setters for the fields to :seo_meta
|
48
44
|
fields = ::SeoMeta.attributes.keys.map{|a| [a, :"#{a}="]}.flatten
|
49
|
-
|
50
|
-
fields << {:to => :seo_meta}
|
51
|
-
delegate *fields
|
45
|
+
delegate *fields, to: :seo_meta
|
52
46
|
end
|
data/readme.md
CHANGED
@@ -15,7 +15,7 @@ for example with `Page`:
|
|
15
15
|
|
16
16
|
```ruby
|
17
17
|
class Page < ActiveRecord::Base
|
18
|
-
|
18
|
+
is_seo_meta
|
19
19
|
end
|
20
20
|
```
|
21
21
|
|
@@ -36,7 +36,7 @@ logic to migrate across your existing data and remove the columns from your mode
|
|
36
36
|
afterward, for example with `Page`:
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
class CreateSeoMeta < ActiveRecord::Migration
|
39
|
+
class CreateSeoMeta < ActiveRecord::Migration[4.2]
|
40
40
|
|
41
41
|
def self.up
|
42
42
|
# ... migration logic from the seo_meta generator ...
|
@@ -110,10 +110,10 @@ from a `form_for` block, for example:
|
|
110
110
|
|
111
111
|
```erb
|
112
112
|
<%= form_for @page do |f| -%>
|
113
|
-
|
113
|
+
<%= render '/seo_meta/form', :form => f %>
|
114
114
|
<% end %>
|
115
115
|
```
|
116
116
|
|
117
117
|
## Anything else?
|
118
118
|
|
119
|
-
Nope, all done!
|
119
|
+
Nope, all done!
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,83 +1,103 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seo_meta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEMjCCApqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhnZW1z
|
14
|
+
L0RDPXAvREM9YXJuZHQvREM9aW8wHhcNMjEwNjIzMDkyNzU2WhcNMjIwNjIzMDky
|
15
|
+
NzU2WjAjMSEwHwYDVQQDDBhnZW1zL0RDPXAvREM9YXJuZHQvREM9aW8wggGiMA0G
|
16
|
+
CSqGSIb3DQEBAQUAA4IB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|
31
|
+
t2jBjYt2ymr1eMWxux6e+N2uKZL4MblHawxvKlI8UHsIiV9xrc4BwlwlbitcvNIL
|
32
|
+
ZykdSlpTJd0Guy92iYjCJMC09tMRUNxiVBwD3jRGSeW9YAPIZGXIcVlm6srIRDjJ
|
33
|
+
o8wB6oOvHAkRXnntOo/4bBDH+ehmgvhh/O/mI+au6C0M430fv+ooH0w08LEXLx1k
|
34
|
+
e17ZNASZffbQRP09MH2GZ2AOlkildTX6looWRforZEZi+qamognrozd3MI5QHi1W
|
35
|
+
UAZUzHLrrFu7gnkFvLVpxOUf4ItOkA==
|
36
|
+
-----END CERTIFICATE-----
|
37
|
+
date: 2021-09-17 00:00:00.000000000 Z
|
12
38
|
dependencies:
|
13
39
|
- !ruby/object:Gem::Dependency
|
14
40
|
name: combustion
|
15
41
|
requirement: !ruby/object:Gem::Requirement
|
16
42
|
requirements:
|
17
|
-
- -
|
43
|
+
- - ">="
|
18
44
|
- !ruby/object:Gem::Version
|
19
45
|
version: '0'
|
20
46
|
type: :development
|
21
47
|
prerelease: false
|
22
48
|
version_requirements: !ruby/object:Gem::Requirement
|
23
49
|
requirements:
|
24
|
-
- -
|
50
|
+
- - ">="
|
25
51
|
- !ruby/object:Gem::Version
|
26
52
|
version: '0'
|
27
53
|
- !ruby/object:Gem::Dependency
|
28
54
|
name: rspec
|
29
55
|
requirement: !ruby/object:Gem::Requirement
|
30
56
|
requirements:
|
31
|
-
- -
|
57
|
+
- - ">="
|
32
58
|
- !ruby/object:Gem::Version
|
33
59
|
version: '0'
|
34
60
|
type: :development
|
35
61
|
prerelease: false
|
36
62
|
version_requirements: !ruby/object:Gem::Requirement
|
37
63
|
requirements:
|
38
|
-
- -
|
64
|
+
- - ">="
|
39
65
|
- !ruby/object:Gem::Version
|
40
66
|
version: '0'
|
41
67
|
- !ruby/object:Gem::Dependency
|
42
68
|
name: sqlite3
|
43
69
|
requirement: !ruby/object:Gem::Requirement
|
44
70
|
requirements:
|
45
|
-
- -
|
71
|
+
- - ">="
|
46
72
|
- !ruby/object:Gem::Version
|
47
73
|
version: '0'
|
48
74
|
type: :development
|
49
75
|
prerelease: false
|
50
76
|
version_requirements: !ruby/object:Gem::Requirement
|
51
77
|
requirements:
|
52
|
-
- -
|
78
|
+
- - ">="
|
53
79
|
- !ruby/object:Gem::Version
|
54
80
|
version: '0'
|
55
81
|
- !ruby/object:Gem::Dependency
|
56
82
|
name: railties
|
57
83
|
requirement: !ruby/object:Gem::Requirement
|
58
84
|
requirements:
|
59
|
-
- -
|
85
|
+
- - ">="
|
60
86
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
87
|
+
version: 5.0.0
|
62
88
|
type: :runtime
|
63
89
|
prerelease: false
|
64
90
|
version_requirements: !ruby/object:Gem::Requirement
|
65
91
|
requirements:
|
66
|
-
- -
|
92
|
+
- - ">="
|
67
93
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
94
|
+
version: 5.0.0
|
69
95
|
description: SEO Meta tags plugin for Ruby on Rails
|
70
|
-
email: p
|
96
|
+
email: gems@p.arndt.io
|
71
97
|
executables: []
|
72
98
|
extensions: []
|
73
99
|
extra_rdoc_files: []
|
74
100
|
files:
|
75
|
-
- lib/generators/seo_meta_generator.rb
|
76
|
-
- lib/seo_meta/instance_methods.rb
|
77
|
-
- lib/seo_meta.rb
|
78
|
-
- lib/tasks/seo_meta.rake
|
79
|
-
- db/migrate/20110329222114_create_seo_meta.rb
|
80
|
-
- db/migrate/20120518234749_remove_meta_keywords_from_seo_meta.rb
|
81
101
|
- app/models/seo_metum.rb
|
82
102
|
- app/views/seo_meta/_form.html.erb
|
83
103
|
- config/locales/bg.yml
|
@@ -105,31 +125,35 @@ files:
|
|
105
125
|
- config/locales/vi.yml
|
106
126
|
- config/locales/zh-CN.yml
|
107
127
|
- config/locales/zh-TW.yml
|
128
|
+
- db/migrate/20110329222114_create_seo_meta.rb
|
129
|
+
- db/migrate/20120518234749_remove_meta_keywords_from_seo_meta.rb
|
130
|
+
- lib/generators/seo_meta_generator.rb
|
131
|
+
- lib/seo_meta.rb
|
132
|
+
- lib/seo_meta/instance_methods.rb
|
133
|
+
- lib/tasks/seo_meta.rake
|
108
134
|
- license.md
|
109
135
|
- readme.md
|
110
|
-
homepage:
|
136
|
+
homepage: https://github.com/parndt/seo_meta
|
111
137
|
licenses:
|
112
138
|
- MIT
|
113
139
|
metadata: {}
|
114
|
-
post_install_message:
|
140
|
+
post_install_message:
|
115
141
|
rdoc_options: []
|
116
142
|
require_paths:
|
117
143
|
- lib
|
118
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
145
|
requirements:
|
120
|
-
- -
|
146
|
+
- - ">="
|
121
147
|
- !ruby/object:Gem::Version
|
122
148
|
version: '0'
|
123
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
150
|
requirements:
|
125
|
-
- -
|
151
|
+
- - ">="
|
126
152
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
153
|
+
version: '0'
|
128
154
|
requirements: []
|
129
|
-
|
130
|
-
|
131
|
-
signing_key:
|
155
|
+
rubygems_version: 3.1.6
|
156
|
+
signing_key:
|
132
157
|
specification_version: 4
|
133
158
|
summary: SEO Meta tags plugin
|
134
159
|
test_files: []
|
135
|
-
has_rdoc:
|
metadata.gz.sig
ADDED
Binary file
|