crystalmeta 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG.markdown +8 -0
- data/Readme.markdown +6 -4
- data/lib/crystal/options_for_controller.rb +4 -1
- data/lib/crystal/version.rb +1 -1
- metadata +3 -3
- data/.rspec +0 -1
data/.gitignore
CHANGED
data/CHANGELOG.markdown
ADDED
data/Readme.markdown
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
**Crystalmeta helps you control meta tags through I18n and/or manually. It plays well with [OpenGraph](http://ogp.me/).**
|
1
|
+
**Crystalmeta helps you control meta tags through I18n and/or manually. It plays well with [OpenGraph](http://ogp.me/) and [Twitter Cards](https://dev.twitter.com/docs/cards).**
|
2
2
|
|
3
3
|
It gives you 3 helpers:
|
4
4
|
|
@@ -32,7 +32,7 @@ Returns value for a certain tag:
|
|
32
32
|
Returns all meta tags which names match the pattern. Under the hoods it uses the three-qual to pattern match (like in `Enumerable#grep`).
|
33
33
|
|
34
34
|
```erb
|
35
|
-
<%= meta_tags %>
|
35
|
+
<%= meta_tags /^og:/ %>
|
36
36
|
```
|
37
37
|
|
38
38
|
displays in this case:
|
@@ -102,11 +102,13 @@ You may wish to use a `Proc` in some cases:
|
|
102
102
|
You can interpolate meta tags like this:
|
103
103
|
|
104
104
|
```erb
|
105
|
-
<%
|
105
|
+
<%
|
106
|
+
meta({
|
106
107
|
"og:title" => "The Rock (1996)",
|
107
108
|
"og:site_name" => "IMDb",
|
108
109
|
"head" => "%{og:title} — %{og:site_name}"
|
109
|
-
})
|
110
|
+
})
|
111
|
+
%>
|
110
112
|
```
|
111
113
|
|
112
114
|
`meta_tag :head` will return `"The Rock (1996) — IMDb"`.
|
data/lib/crystal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crystalmeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -68,7 +68,7 @@ extensions: []
|
|
68
68
|
extra_rdoc_files: []
|
69
69
|
files:
|
70
70
|
- .gitignore
|
71
|
-
- .
|
71
|
+
- CHANGELOG.markdown
|
72
72
|
- Gemfile
|
73
73
|
- Gemfile.lock
|
74
74
|
- Rakefile
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|