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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7955cdb3f80ddae3d629fb44f3e4b22be84f990c
|
4
|
+
data.tar.gz: d5cb304d76ac53cc4588c9dad9eda3ac1922c84d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/nail_polish/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|