flakey 0.6.0 → 0.6.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: 5c51d3dd75fc0ce011738d2cdb55de2ba392a86b
4
- data.tar.gz: 3ab08d3a6cb8f7d24313e89e715ca3b9d174efe0
3
+ metadata.gz: a829e52a82f52ed6ef10c92b9bb4af0b9b3c8656
4
+ data.tar.gz: 94796fefca885f2759b0e63a8856db6f0cf51b26
5
5
  SHA512:
6
- metadata.gz: d86f8bed97856ffa01e95e1b68ee8eed18dea787c0d28a520185ba336bc62273d011007e5478b0c783cd14fb214ed3caaf6d738b86a5213849154d24eb316477
7
- data.tar.gz: 005e23576cc0444c71d5cbee8f7b3dae4859628b49d2b11570a2764d89ad7ef91c29224b8f51056a9228167e6df755e8f7137c2be29969c72476c0380842407c
6
+ metadata.gz: 99e9e48c9da00742bbd8cffe5ee9367896e7c6220bd9ad4a407043b280bddd15d837c89fa477187395438789b5695458d6cb4f6ab3303ef69e01ff8f97b9fac1
7
+ data.tar.gz: 3015c31a7b0d0453006e444223088ce28767a80da476ab4d4534e3f4daa237ab81a3e148a6195635461b6f8def8ad17f56477d290e124b1d3b985005942a8322
@@ -4,7 +4,7 @@ module Flakey
4
4
 
5
5
  SHARE_URL = "https://bufferapp.com/add"
6
6
 
7
- def buffer_button(options = {})
7
+ def buffer_button(options = {}, &block)
8
8
  defaults = {
9
9
  url: default_url,
10
10
  label: "Buffer",
@@ -1,3 +1,3 @@
1
1
  module Flakey
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -22,7 +22,18 @@ if (typeof jQuery === "undefined") {
22
22
  $(function(){
23
23
  $('.custom-tweet-button, .facebook-share-button, .flakey-popup').on('click', function(e){
24
24
  e.preventDefault();
25
- openPopup($(e.target).closest('a').attr('href'), 'twitter');
25
+ var opts = {},
26
+ $link = $(e.target).closest('a');
27
+
28
+ if (typeof $link.data('flakey-width') !== "undefined") {
29
+ opts.width = parseFloat($link.data('flakey-width'));
30
+ };
31
+
32
+ if (typeof $link.data('flakey-height') !== "undefined") {
33
+ opts.height = parseFloat($link.data('flakey-height'));
34
+ };
35
+
36
+ openPopup($link.attr('href'), 'share', opts);
26
37
  });
27
38
  });
28
39
  })(jQuery);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flakey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Tuite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2014-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport