nail_polish 0.2.6 → 0.2.7

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: eb99e0ed36d22ea73bd7d1adefe6a7761b352ce1
4
- data.tar.gz: 15306c6b03975c3562fc6f3158298e44938f52c8
3
+ metadata.gz: 7955cdb3f80ddae3d629fb44f3e4b22be84f990c
4
+ data.tar.gz: d5cb304d76ac53cc4588c9dad9eda3ac1922c84d
5
5
  SHA512:
6
- metadata.gz: fef3dd7d58bcd1d924f02b1ecb6ae2055d34ccd2dea0d4dea1c7e237a8aee288f3ad6bd03435d56409197f1199af983482ec24086205c43f6481d1281be63305
7
- data.tar.gz: 1d58bcd96212a35041f8f19551b789060c72016b5c003b83ea0e2a463883c0447268d4b0d69313b44ec927b1e4c64c42b8c51cbc95dfd37be0e4778c3023daf5
6
+ metadata.gz: 0bf85b469da728a770801c2c79757933f25399992ed88d919296a2916cc064cea6bccbfc20f47007feeb019f97100209beeaceb6389b55a6bf8c1dcca848bc9d
7
+ data.tar.gz: c1762b6198186a7fbe6a0aa6ee5c8fdc1961da5c10bc6f6ad531fd71c053a5415969b8d12391518f3e8b6a709d1877f09d9d8ce3f5bb05a75da793401083ae4a
@@ -11,11 +11,13 @@ _.extend(NailPolish.GlobalPublisherAdder.prototype, {
11
11
  wrapComplete: function (callback) {
12
12
  return function(xhr, status) {
13
13
  // call the original callback
14
- callback && callback(xhr, status);
14
+ if (callback) {
15
+ callback(xhr, status);
16
+ }
15
17
 
16
18
  // extract the JSON data
17
-
18
- response = xhr.response || "{}"
19
+
20
+ response = xhr.response || xhr.responseText || "{}"
19
21
  var data = JSON.parse(response);
20
22
  var publisher = NailPolish.Events;
21
23
 
@@ -1,3 +1,3 @@
1
1
  module NailPolish
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nail_polish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kane Baccigalupi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-14 00:00:00.000000000 Z
13
+ date: 2014-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails