seorel 0.0.3 → 0.0.4
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.
- checksums.yaml +5 -13
- data/README.md +1 -0
- data/lib/seorel/controller/params.rb +3 -3
- data/lib/seorel/helper.rb +1 -1
- data/lib/seorel/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NGJlMGIzMmUxZmIyOGRhYWJmMWU1MjcxYjc0MGY5Yjg2OTU2YTA5OA==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: cf3bf757b5bf13fd137edb87e734837451d9e994
|
|
4
|
+
data.tar.gz: 98b1da8db40a988ae5959502b92e236a1058b2e7
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
YWU2Y2IzYzAzYTA0ODc0NTcwZjNlNWQxMWY5MmU4MjAzMTMwNTEzOWFiNDIz
|
|
11
|
-
MWE5Y2I5ZmQxYTUxM2ZlZTYyOTRhZDI5MzFjOWQ1ODBjOTA5MGU=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
Yzg2MWVjYjcyZTViZjhhMDdiN2UxZjY5OTBhNDhhZDE4MTIxNTRhNzdkZDEy
|
|
14
|
-
ODA5MmRjN2QwODA2Y2E1NGU0NGQ2ZmQwODFjOWFmZTJlM2U1YTQ0NTcyNjU2
|
|
15
|
-
MWZmNDFmOTJlMGZiNjg2M2Y2NzU1NWZhNGVlNTg4NGZjMzkzZGM=
|
|
6
|
+
metadata.gz: 4b30ffc96f6987c6aa40dd17f5415d4b173ace9957aae5c096d3c98eee5993769026a81febe3c94623d87e1eef3e2a65e06195c451e0c13e56655b9a60b8c961
|
|
7
|
+
data.tar.gz: c2d6fc5c0a744b9ab5b7aea01ea8402571e12c4629a063179712cb15c2c00c474e39006e899ef7556bba62678f62a4d600ad37a5dcad991a3741c2e703dae0a4
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Ruby on Rails SEO Metatags plugins for ActiveRecord models
|
|
4
4
|
|
|
5
5
|
[](http://badge.fury.io/rb/seorel)
|
|
6
|
+
[](https://codeclimate.com/github/dalpo/seorel)
|
|
6
7
|
|
|
7
8
|
## Rails Setup
|
|
8
9
|
|
|
@@ -15,15 +15,15 @@ module Seorel
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def full_title
|
|
18
|
-
[default_options.prepend_title, self.title, default_options.append_title].compact.join
|
|
18
|
+
[default_options.prepend_title, self.title, default_options.append_title].compact.join.html_safe
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def title
|
|
22
|
-
config.title || I18n.t(i18n_path(:title), default: default_options.default_title)
|
|
22
|
+
(config.title || I18n.t(i18n_path(:title), default: default_options.default_title)).html_safe
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def description
|
|
26
|
-
config.description || I18n.t(i18n_path(:description), default: default_options.default_description)
|
|
26
|
+
(config.description || I18n.t(i18n_path(:description), default: default_options.default_description)).html_safe
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def image
|
data/lib/seorel/helper.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Seorel
|
|
|
27
27
|
def render_twitter_cards
|
|
28
28
|
[
|
|
29
29
|
content_tag(:meta, nil, name: 'twitter:card', content: 'summary'),
|
|
30
|
-
content_tag(:meta, nil, name: 'twitter:url', content:
|
|
30
|
+
content_tag(:meta, nil, name: 'twitter:url', content: request.url),
|
|
31
31
|
content_tag(:meta, nil, name: 'twitter:title', content: seorel_params.full_title),
|
|
32
32
|
content_tag(:meta, nil, name: 'twitter:description', content: seorel_params.description),
|
|
33
33
|
content_tag(:meta, nil, name: 'twitter:image', content: seorel_params.image)
|
data/lib/seorel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seorel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrea Dal Ponte
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '3.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.2'
|
|
27
27
|
description: Easy management of SEO Metatags for your ActiveRecord models
|
|
@@ -31,14 +31,18 @@ executables: []
|
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
|
33
33
|
files:
|
|
34
|
+
- MIT-LICENSE
|
|
35
|
+
- README.md
|
|
36
|
+
- Rakefile
|
|
34
37
|
- app/models/seorel/seorel.rb
|
|
35
38
|
- config/locales/en.seorel.yml
|
|
36
39
|
- config/locales/it.seorel.yml
|
|
37
40
|
- config/routes.rb
|
|
38
41
|
- db/migrate/20120822091543_create_seorel_seorels.rb
|
|
42
|
+
- lib/generators/seorel/USAGE
|
|
39
43
|
- lib/generators/seorel/config_generator.rb
|
|
40
44
|
- lib/generators/seorel/templates/seorel_config.rb
|
|
41
|
-
- lib/
|
|
45
|
+
- lib/seorel.rb
|
|
42
46
|
- lib/seorel/config.rb
|
|
43
47
|
- lib/seorel/controller/class_methods.rb
|
|
44
48
|
- lib/seorel/controller/instance_methods.rb
|
|
@@ -50,16 +54,15 @@ files:
|
|
|
50
54
|
- lib/seorel/model/instance_methods.rb
|
|
51
55
|
- lib/seorel/seorelify.rb
|
|
52
56
|
- lib/seorel/version.rb
|
|
53
|
-
- lib/seorel.rb
|
|
54
57
|
- lib/tasks/seorel_tasks.rake
|
|
55
|
-
-
|
|
56
|
-
- Rakefile
|
|
57
|
-
- README.md
|
|
58
|
+
- test/dummy/README.rdoc
|
|
59
|
+
- test/dummy/Rakefile
|
|
58
60
|
- test/dummy/app/assets/javascripts/application.js
|
|
59
61
|
- test/dummy/app/assets/stylesheets/application.css
|
|
60
62
|
- test/dummy/app/controllers/application_controller.rb
|
|
61
63
|
- test/dummy/app/helpers/application_helper.rb
|
|
62
64
|
- test/dummy/app/views/layouts/application.html.erb
|
|
65
|
+
- test/dummy/config.ru
|
|
63
66
|
- test/dummy/config/application.rb
|
|
64
67
|
- test/dummy/config/boot.rb
|
|
65
68
|
- test/dummy/config/database.yml
|
|
@@ -75,13 +78,10 @@ files:
|
|
|
75
78
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
76
79
|
- test/dummy/config/locales/en.yml
|
|
77
80
|
- test/dummy/config/routes.rb
|
|
78
|
-
- test/dummy/config.ru
|
|
79
81
|
- test/dummy/public/404.html
|
|
80
82
|
- test/dummy/public/422.html
|
|
81
83
|
- test/dummy/public/500.html
|
|
82
84
|
- test/dummy/public/favicon.ico
|
|
83
|
-
- test/dummy/Rakefile
|
|
84
|
-
- test/dummy/README.rdoc
|
|
85
85
|
- test/dummy/script/rails
|
|
86
86
|
- test/fixtures/seorel/seorels.yml
|
|
87
87
|
- test/integration/navigation_test.rb
|
|
@@ -98,17 +98,17 @@ require_paths:
|
|
|
98
98
|
- lib
|
|
99
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- -
|
|
101
|
+
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
|
106
|
-
- -
|
|
106
|
+
- - ">="
|
|
107
107
|
- !ruby/object:Gem::Version
|
|
108
108
|
version: '0'
|
|
109
109
|
requirements: []
|
|
110
110
|
rubyforge_project:
|
|
111
|
-
rubygems_version: 2.
|
|
111
|
+
rubygems_version: 2.2.2
|
|
112
112
|
signing_key:
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: Ruby on Rails SEO Metatags engine for ActiveRecord models
|