flakey 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a829e52a82f52ed6ef10c92b9bb4af0b9b3c8656
4
- data.tar.gz: 94796fefca885f2759b0e63a8856db6f0cf51b26
3
+ metadata.gz: fdaa0852e52677cbc342060527c5c57ce03249e9
4
+ data.tar.gz: a8482a3dbddbf9b9895963b37f2106fbed04f31b
5
5
  SHA512:
6
- metadata.gz: 99e9e48c9da00742bbd8cffe5ee9367896e7c6220bd9ad4a407043b280bddd15d837c89fa477187395438789b5695458d6cb4f6ab3303ef69e01ff8f97b9fac1
7
- data.tar.gz: 3015c31a7b0d0453006e444223088ce28767a80da476ab4d4534e3f4daa237ab81a3e148a6195635461b6f8def8ad17f56477d290e124b1d3b985005942a8322
6
+ metadata.gz: 703a7508b1567ce45c8de3e9a64cf5a9d373f7b28094357ce9c190f762b8dc12cf94273dfe73cb97e6cb0da4a37c34012c14eca77d5e55ce97f8d0a058acd115
7
+ data.tar.gz: bed81739f31e57756eb30c40a8f0cbee21d895d954e18a98e1f0f1e770014ce3f724e46f9b1c391ad2db5e76cd02792c3f42b65bee3a4423a423aea894d12480
@@ -145,7 +145,7 @@ module Flakey
145
145
  via: Flakey.configuration.tweet_via
146
146
  }
147
147
  settings = defaults.merge(options)
148
- url = "#{SHARE_URL}?url=#{CGI.escape settings[:url]}"
148
+ url = "https://twitter.com/intent/tweet?url=#{CGI.escape settings[:url]}"
149
149
 
150
150
  %w[text hashtags related via].each do |url_key|
151
151
  if settings.has_key?(url_key.to_sym) && settings[url_key.to_sym] != ''
@@ -1,3 +1,3 @@
1
1
  module Flakey
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -16,7 +16,7 @@ if (typeof jQuery === "undefined") {
16
16
  var top = ($(window).height() - height) / 2;
17
17
  var opts = "status=1,width=" + width + ',height=' + height + ',top=' + top + ',left=' + left;
18
18
 
19
- window.open(url, name, opts)
19
+ return window.open(url, name, opts);
20
20
  };
21
21
 
22
22
  $(function(){
@@ -33,7 +33,7 @@ if (typeof jQuery === "undefined") {
33
33
  opts.height = parseFloat($link.data('flakey-height'));
34
34
  };
35
35
 
36
- openPopup($link.attr('href'), 'share', opts);
36
+ var win = openPopup($link.attr('href'), 'share', opts);
37
37
  });
38
38
  });
39
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.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Tuite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-04 00:00:00.000000000 Z
11
+ date: 2014-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport