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 CHANGED
@@ -1,4 +1,5 @@
1
1
  .bundle/
2
+ .rspec
2
3
  pkg/
3
4
  spec/dummy/db/*.sqlite3
4
5
  spec/dummy/log/*.log
@@ -0,0 +1,8 @@
1
+ ### 0.9.1 2013-01-02
2
+
3
+ * Ignore `.rspec`
4
+ * Add default value for `twitter:url`
5
+
6
+ ### 0.9.0 2012-12-27
7
+
8
+ * Original release
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
- <% meta({
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"`.
@@ -26,7 +26,10 @@ module Crystal
26
26
  end
27
27
 
28
28
  def default_options
29
- HashWithStringifyKeys.new(:'og:url' => url)
29
+ HashWithStringifyKeys.new(
30
+ :'og:url' => url,
31
+ :'twitter:url' => url
32
+ )
30
33
  end
31
34
 
32
35
  def url
@@ -1,3 +1,3 @@
1
1
  module Crystal
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.1'
3
3
  end
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.0
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: 2012-12-28 00:00:00.000000000 Z
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
- - .rspec
71
+ - CHANGELOG.markdown
72
72
  - Gemfile
73
73
  - Gemfile.lock
74
74
  - Rakefile
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color