seorel 0.0.4 → 0.0.5
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 +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +8 -5
- data/lib/seorel/controller/params.rb +6 -2
- data/lib/seorel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5415fb78ce39e34eb897b5d3497242b10cf50aaf
|
|
4
|
+
data.tar.gz: ccf9f1f1b2cad13a818550f33be53d9a4c541a75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 772d420512c836c0650335fcf2a3bad82a379d59340949ed7a1fd8f690ee58bb667f02d562150dc49997160749aaaaca5715f8d77874030b5af760c38888d2ed
|
|
7
|
+
data.tar.gz: 6b6577210a6a1049a49ac57e65e0b19edd56c82c1aa0268097369c888cf1651564dd261945b11754e27c0b0f6fa6b76157ef32163efe535c0e72b65fd458c07c
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Ruby on Rails SEO Metatags plugins for ActiveRecord models
|
|
|
11
11
|
`Gemfile.rb`:
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
gem 'seorel', '~> 0.0.
|
|
14
|
+
gem 'seorel', '~> 0.0.5'
|
|
15
15
|
|
|
16
16
|
# the edge version can be had using:
|
|
17
17
|
# gem 'seorel', github: 'dalpo/seorel'
|
|
@@ -103,7 +103,7 @@ class PostsController < ApplicationController
|
|
|
103
103
|
end
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
In case of missing `add_metatags`
|
|
106
|
+
In case of missing `add_metatags` declaration in controller actions, you can define metatags through rails `L10n` library. Simply by defining your locale strings for seorel.
|
|
107
107
|
|
|
108
108
|
For instance `seorel.en.yml`:
|
|
109
109
|
|
|
@@ -127,8 +127,11 @@ Where `posts` and `tags` are controller names, while `history` and `index` are t
|
|
|
127
127
|
|
|
128
128
|
In your layout <head></head> section just call the `render_meta_tags` helper:
|
|
129
129
|
|
|
130
|
-
```
|
|
131
|
-
|
|
130
|
+
```html
|
|
131
|
+
<head>
|
|
132
|
+
<%=render_meta_tags %>
|
|
133
|
+
...
|
|
134
|
+
</head>
|
|
132
135
|
```
|
|
133
136
|
|
|
134
137
|
|
|
@@ -147,7 +150,7 @@ Submitting a Pull Request:
|
|
|
147
150
|
|
|
148
151
|
## This project rocks and uses MIT-LICENSE.
|
|
149
152
|
|
|
150
|
-
Copyright
|
|
153
|
+
Copyright 2014 Andrea Dal Ponte
|
|
151
154
|
|
|
152
155
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
153
156
|
a copy of this software and associated documentation files (the
|
|
@@ -41,9 +41,13 @@ module Seorel
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def i18n_path(key)
|
|
44
|
-
|
|
44
|
+
[
|
|
45
|
+
'seorel',
|
|
46
|
+
controller.class.name.underscore,
|
|
47
|
+
controller.action_name,
|
|
48
|
+
key
|
|
49
|
+
].join('.')
|
|
45
50
|
end
|
|
46
|
-
|
|
47
51
|
end
|
|
48
52
|
end
|
|
49
53
|
end
|
data/lib/seorel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.5
|
|
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: 2014-06-
|
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|