notifiably_audited 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDRkMDRlNGU2Nzg4N2ZlZmJiOGM0MjhkNDFkMzY3ODljNDlmMjg1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjBiMWZlMGFhZjY1YjNjNmQzYWUxZmYxNzRiMzY1NzRlMmQxMGMxYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWIwMzI1NWNiZjlmM2ZkMjBlNGJkNmM4NGJmMGVkOWI0NmQwNzMyZDU0ODQ0
|
10
|
+
OTMzY2MxYzcxZGZiNTNlMzg4YjQ0ODQyZThmMTg3MjYzNmI3ZTUxNDM1YmY5
|
11
|
+
YzUwNTQwMWU3YWQ5ZWYyNDU1Y2U3MDliNzdmZGUxNDU5YTkzNDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc5MWYzMGJjOGYwMGJmNmE2NTNkNThiMjRmZDBjMDgyYjcyNWY5YTUyYTFj
|
14
|
+
MzYwMjMzMDkyMWMxODc2MzJmYjIwZDhjYTM5MWM4MjQzNjk4ZjU3YTAzNmUz
|
15
|
+
NmFmODBjYmY5N2FmYmUyMjE4Y2ZkY2UyZDk1MGQwYzNkYjQ5Yzc=
|
data/audited.gemspec
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiably_audited
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- senthil kumar
|
@@ -143,7 +143,6 @@ files:
|
|
143
143
|
- gemfiles/rails30.gemfile
|
144
144
|
- gemfiles/rails31.gemfile
|
145
145
|
- gemfiles/rails32.gemfile
|
146
|
-
- lib/assets/javascripts/private_pub1.js
|
147
146
|
- lib/notifiably_audited-activerecord.rb
|
148
147
|
- lib/notifiably_audited.rb
|
149
148
|
- lib/notifiably_audited/audit.rb
|
@@ -154,6 +153,7 @@ files:
|
|
154
153
|
- lib/notifiably_audited/sweeper.rb
|
155
154
|
- notifiably_audited-1.0.0.gem
|
156
155
|
- notifiably_audited-1.0.1.gem
|
156
|
+
- notifiably_audited-1.0.10.gem
|
157
157
|
- notifiably_audited-1.0.2.gem
|
158
158
|
- notifiably_audited-1.0.3.gem
|
159
159
|
- notifiably_audited-1.0.4.gem
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- notifiably_audited-1.0.9.gem
|
165
165
|
- notifiably_audited-activerecord-1.0.0.gem
|
166
166
|
- notifiably_audited-activerecord-1.0.1.gem
|
167
|
+
- notifiably_audited-activerecord-1.0.10.gem
|
167
168
|
- notifiably_audited-activerecord-1.0.2.gem
|
168
169
|
- notifiably_audited-activerecord-1.0.3.gem
|
169
170
|
- notifiably_audited-activerecord-1.0.4.gem
|
@@ -1,72 +0,0 @@
|
|
1
|
-
function buildPrivatePub(doc) {
|
2
|
-
var self = {
|
3
|
-
connecting: false,
|
4
|
-
fayeClient: null,
|
5
|
-
fayeCallbacks: [],
|
6
|
-
subscriptions: {},
|
7
|
-
subscriptionCallbacks: {},
|
8
|
-
|
9
|
-
faye: function(callback) {
|
10
|
-
if (self.fayeClient) {
|
11
|
-
callback(self.fayeClient);
|
12
|
-
} else {
|
13
|
-
self.fayeCallbacks.push(callback);
|
14
|
-
if (self.subscriptions.server && !self.connecting) {
|
15
|
-
self.connecting = true;
|
16
|
-
var script = doc.createElement("script");
|
17
|
-
script.type = "text/javascript";
|
18
|
-
script.src = self.subscriptions.server + ".js";
|
19
|
-
script.onload = self.connectToFaye;
|
20
|
-
doc.documentElement.appendChild(script);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
},
|
24
|
-
|
25
|
-
connectToFaye: function() {
|
26
|
-
self.fayeClient = new Faye.Client(self.subscriptions.server);
|
27
|
-
self.fayeClient.addExtension(self.fayeExtension);
|
28
|
-
for (var i=0; i < self.fayeCallbacks.length; i++) {
|
29
|
-
self.fayeCallbacks[i](self.fayeClient);
|
30
|
-
};
|
31
|
-
},
|
32
|
-
|
33
|
-
fayeExtension: {
|
34
|
-
outgoing: function(message, callback) {
|
35
|
-
if (message.channel == "/meta/subscribe") {
|
36
|
-
// Attach the signature and timestamp to subscription messages
|
37
|
-
var subscription = self.subscriptions[message.subscription];
|
38
|
-
if (!message.ext) message.ext = {};
|
39
|
-
message.ext.private_pub_signature = subscription.signature;
|
40
|
-
message.ext.private_pub_timestamp = subscription.timestamp;
|
41
|
-
}
|
42
|
-
callback(message);
|
43
|
-
}
|
44
|
-
},
|
45
|
-
|
46
|
-
sign: function(options) {
|
47
|
-
if (!self.subscriptions.server) {
|
48
|
-
self.subscriptions.server = options.server;
|
49
|
-
}
|
50
|
-
self.subscriptions[options.channel] = options;
|
51
|
-
self.faye(function(faye) {
|
52
|
-
faye.subscribe(options.channel, self.handleResponse);
|
53
|
-
});
|
54
|
-
},
|
55
|
-
|
56
|
-
handleResponse: function(message) {
|
57
|
-
if (message.eval) {
|
58
|
-
eval(message.eval);
|
59
|
-
}
|
60
|
-
if (callback = self.subscriptionCallbacks[message.channel]) {
|
61
|
-
callback(message.data, message.channel);
|
62
|
-
}
|
63
|
-
},
|
64
|
-
|
65
|
-
subscribe: function(channel, callback) {
|
66
|
-
self.subscriptionCallbacks[channel] = callback;
|
67
|
-
}
|
68
|
-
};
|
69
|
-
return self;
|
70
|
-
}
|
71
|
-
|
72
|
-
var PrivatePub = buildPrivatePub(document);
|