middleman-facebook-pixel 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/middleman-facebook-pixel/extension.rb +8 -0
- data/lib/middleman-facebook-pixel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c590d7cd7e4af915c28829077ce80869087fdc
|
4
|
+
data.tar.gz: 3fe3ba5384a0f57b8cfc831cae927e820714a5c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4da14dd8058eab8c21050cbfe1ad51c2b159b342e214b7cee878df23c5764c34281eb48165c8c5ee0802e2ad2763de5f7cf9b81a112b220d461b2d20cc5538c9
|
7
|
+
data.tar.gz: 37bf3a70ce1c9a9214f9cd52db5573d01b58eb6047184b50e2f7dc4eb1bd131bf2deee05c9177f5321a93839f219d44f3d0a2452cf092341da2b57e25bbeeb8e
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
# middleman-facebook-pixel
|
1
|
+
# middleman-facebook-pixel
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/middleman-facebook-pixel.svg)](https://badge.fury.io/rb/middleman-facebook-pixel)
|
4
|
+
[![Build Status](https://travis-ci.org/xcopy/middleman-facebook-pixel.svg?branch=master)](https://travis-ci.org/xcopy/middleman-facebook-pixel)
|
2
5
|
|
3
6
|
**middleman-facebook-pixel** is a [Middleman](http://middlemanapp.com) extension that generates Facebook Pixel code, and keeps your config in `config.rb`, where it belongs.
|
4
7
|
|
@@ -1,9 +1,17 @@
|
|
1
|
+
require 'active_support/core_ext/object/blank'
|
1
2
|
require 'middleman-facebook-pixel/helpers'
|
2
3
|
|
3
4
|
module Middleman
|
4
5
|
class FacebookPixelExtension < Extension
|
5
6
|
option :id, nil, 'Facebook Pixel ID'
|
6
7
|
|
8
|
+
def after_configuration
|
9
|
+
if options.id.blank?
|
10
|
+
$stderr.puts 'Facebook Pixel: Please specify a property ID'
|
11
|
+
raise ArgumentError, 'No property ID given'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
7
15
|
helpers do
|
8
16
|
include ::Middleman::FacebookPixel::Helpers
|
9
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-facebook-pixel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kairat Jenishev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|