seorel 0.0.4 → 0.0.5

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: cf3bf757b5bf13fd137edb87e734837451d9e994
4
- data.tar.gz: 98b1da8db40a988ae5959502b92e236a1058b2e7
3
+ metadata.gz: 5415fb78ce39e34eb897b5d3497242b10cf50aaf
4
+ data.tar.gz: ccf9f1f1b2cad13a818550f33be53d9a4c541a75
5
5
  SHA512:
6
- metadata.gz: 4b30ffc96f6987c6aa40dd17f5415d4b173ace9957aae5c096d3c98eee5993769026a81febe3c94623d87e1eef3e2a65e06195c451e0c13e56655b9a60b8c961
7
- data.tar.gz: c2d6fc5c0a744b9ab5b7aea01ea8402571e12c4629a063179712cb15c2c00c474e39006e899ef7556bba62678f62a4d600ad37a5dcad991a3741c2e703dae0a4
6
+ metadata.gz: 772d420512c836c0650335fcf2a3bad82a379d59340949ed7a1fd8f690ee58bb667f02d562150dc49997160749aaaaca5715f8d77874030b5af760c38888d2ed
7
+ data.tar.gz: 6b6577210a6a1049a49ac57e65e0b19edd56c82c1aa0268097369c888cf1651564dd261945b11754e27c0b0f6fa6b76157ef32163efe535c0e72b65fd458c07c
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 Andrea Dal Ponte
1
+ Copyright 2014 Andrea Dal Ponte
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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.3'
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` for controller actions, you can define metatags through rails `L10n` library by defining your locale strings for seorel.
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 &lt;head&gt;&lt;/head&gt; section just call the `render_meta_tags` helper:
129
129
 
130
- ```ruby
131
- <%=render_meta_tags %>
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 2013 Andrea Dal Ponte
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
- "seorel.#{controller.controller_name}.#{controller.action_name}.#{key}"
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
@@ -1,3 +1,3 @@
1
1
  module Seorel
2
- VERSION = "0.0.4"
2
+ VERSION = '0.0.5'
3
3
  end
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
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-05 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails