middleman-ogp 1.0.3 → 1.0.4

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: d59dba42be8e5b8512bf6ec22df723f202d2dd40
4
- data.tar.gz: 1f211db3d5f975d00ebe96a8851a83f7baa27b11
3
+ metadata.gz: 1f7a5f4b243909d06f5f4f61011e561be8c440ad
4
+ data.tar.gz: f8bb1f3431ea81b651eb58ed7fa58069520ca22a
5
5
  SHA512:
6
- metadata.gz: 371fffa46683019462bf0969620cfbcbdc0c71951aa53d5dc14192c4e044b4d02e5f1010568efb6d6f1560306c51ec35205972f57a0cfec56fad7ea785898fc4
7
- data.tar.gz: 55985da4cd0415f0b849e699f87601f3c0eb5c901145ca5cef34522107922ca82616cf58893e5b7aa185449a32f244a81db1de3694e371049803adea434dbac9
6
+ metadata.gz: ffae72c9b95445b0660f70ab2160c22584e450ab05fb2fc1651210f7e8c25f87dfe1fee352c489947055da2e3d04e17c636e5f1b60fec94508972988da38f637
7
+ data.tar.gz: dbeac35022a41b1dda2dd9f35ac396c85f358a95aa2dd00b163cdba268612e88a6c49c8a7cb2f6fa0b3d9b7a87c7029abfaf7456c8177a0a762dff6b867f51ce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ 1.0.4
2
+ -----
3
+
4
+ * Data merge order bugfix.
5
+
6
+ 1.0.3
7
+ -----
8
+
9
+ * middleman-blog support.
10
+
1
11
  1.0.2
2
12
  -----
3
13
 
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Middleman-OGP
2
2
  =============
3
3
 
4
- `middleman-opg` is an extension for the [Middleman] static site generator that adds OpenGraph Protocol support.
4
+ `middleman-ogp` is an extension for the [Middleman] static site generator that adds OpenGraph Protocol support.
5
5
 
6
6
 
7
7
  Configuration
@@ -15,7 +15,7 @@ module Middleman
15
15
 
16
16
  helpers do
17
17
  def ogp_tags(&block)
18
- opts = data.page.ogp || {}
18
+ opts = current_resource.data['ogp'] || {}
19
19
  is_blog_article = Middleman::OGP::Helper.blog && respond_to?(:is_blog_article?) && is_blog_article?
20
20
  if is_blog_article
21
21
  opts.deep_merge4!({
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module OGP
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-ogp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi Nagase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core