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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92e9f098043a89c9e81060856e1fc159de5a197b
4
- data.tar.gz: 9854bc585d19353d940405c5bae721f94d649c0e
3
+ metadata.gz: b1c590d7cd7e4af915c28829077ce80869087fdc
4
+ data.tar.gz: 3fe3ba5384a0f57b8cfc831cae927e820714a5c3
5
5
  SHA512:
6
- metadata.gz: 32b28a8f9291b346b94df145a967a6ee4f1e4b58df1985f6594424cdaec6c33a6bd1fe6c1a9f45fa32cb937b72f0e5bd37c8dd0376082eab5a26674677c4dc80
7
- data.tar.gz: 978b951e01c765bbd04dd66840c048df4e3cbf87492563bede026038c8bd16b24163525822807282f8bdd66356d9aedda4b3e8e7403b7d40ac496e9ca119efe7
6
+ metadata.gz: 4da14dd8058eab8c21050cbfe1ad51c2b159b342e214b7cee878df23c5764c34281eb48165c8c5ee0802e2ad2763de5f7cf9b81a112b220d461b2d20cc5538c9
7
+ data.tar.gz: 37bf3a70ce1c9a9214f9cd52db5573d01b58eb6047184b50e2f7dc4eb1bd131bf2deee05c9177f5321a93839f219d44f3d0a2452cf092341da2b57e25bbeeb8e
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- # middleman-facebook-pixel [![Build Status](https://travis-ci.org/xcopy/middleman-facebook-pixel.svg?branch=master)](https://travis-ci.org/xcopy/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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module FacebookPixel
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  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.0
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-20 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core