metamagic 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -28
- data/lib/metamagic/renderer.rb +0 -1
- data/lib/metamagic/version.rb +1 -1
- data/test/link_tag_test.rb +0 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c4ae0f611d5f7dec90907c68faf99e703cc5aa7
|
4
|
+
data.tar.gz: 0fb30052abf1a39809c3a07a83efd461a25cba05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3af05172de70bb573bca5615e28406075594b88233639ee022761632d6e758e03e69736aa8375b16377bcea5141eccdd7b768e3944fa331302779363d8c9b9
|
7
|
+
data.tar.gz: c3318cd1a5a4c700ea5015a47e33776a423ebbea4ddfb747f3184e2c13f3dc666bb432976ade915a66f5d295d0ddbd26cab5183325f3e3fa2857d836bbc4d427
|
data/README.md
CHANGED
@@ -147,34 +147,6 @@ This will generate the following:
|
|
147
147
|
</head>
|
148
148
|
```
|
149
149
|
|
150
|
-
### Canonical links
|
151
|
-
|
152
|
-
For easy setting canonical links, you can use the following:
|
153
|
-
|
154
|
-
```erb
|
155
|
-
<%
|
156
|
-
meta canonical: "http://test.com/page.html"
|
157
|
-
%>
|
158
|
-
```
|
159
|
-
|
160
|
-
Or using the shortcut helper:
|
161
|
-
|
162
|
-
```erb
|
163
|
-
<%
|
164
|
-
canonical "http://test.com/page.html"
|
165
|
-
%>
|
166
|
-
```
|
167
|
-
|
168
|
-
This will generate the following:
|
169
|
-
|
170
|
-
```html
|
171
|
-
<head>
|
172
|
-
...
|
173
|
-
<link href="http://test.com/page.html" rel="canonical" />
|
174
|
-
...
|
175
|
-
</head>
|
176
|
-
```
|
177
|
-
|
178
150
|
### Custom properties
|
179
151
|
|
180
152
|
#### OpenGraph (Facebook)
|
data/lib/metamagic/renderer.rb
CHANGED
data/lib/metamagic/version.rb
CHANGED
data/test/link_tag_test.rb
CHANGED
@@ -12,11 +12,4 @@ class LinkTagTest < ActionView::TestCase
|
|
12
12
|
assert_equal %{<link href="http://test.com/author.html" rel="author" />\n<link href="http://test.com/publisher.html" rel="publisher" />},
|
13
13
|
metamagic
|
14
14
|
end
|
15
|
-
|
16
|
-
test "canonical shortcut helper" do
|
17
|
-
canonical "http://test.com/page.html"
|
18
|
-
|
19
|
-
assert_equal %{<link href="http://test.com/page.html" rel="canonical" />},
|
20
|
-
metamagic
|
21
|
-
end
|
22
15
|
end
|