sps-ftpd-driver 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/sps-ftpd-driver.rb +12 -2
- metadata +23 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4af49ccc490d6c08c1f95c4a998bae0bfc5ef64
|
4
|
+
data.tar.gz: 89246c940618b782bc92105fab20b5e0571c03d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a3595d419aa730a8ee0abd827b4f41ae7b8ea2939f4cdf44c137fa3d19c7fa6624a598d8fb666282378ff85f876415bf9c7f07517b0af705fe6501686c4707c
|
7
|
+
data.tar.gz: a737721e2e020369d5efe1dd8174411fcb228b82d41aeddef4feeef80d63df8e5ca884c3f92bd8a435b8443be39187ed948f27a3c0d1356fb065a0e13883f27f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/sps-ftpd-driver.rb
CHANGED
@@ -19,6 +19,12 @@ class SpsFtpdDriver
|
|
19
19
|
@sps_host = opt[:host]
|
20
20
|
@sps_port = opt[:port]
|
21
21
|
@times = between_times
|
22
|
+
|
23
|
+
Thread.new do
|
24
|
+
sp = SPSSubPing.new host: @sps_host, port: @sps_port, \
|
25
|
+
identifier: 'SPSFtpdDriver'
|
26
|
+
sp.start
|
27
|
+
end
|
22
28
|
end
|
23
29
|
|
24
30
|
def authenticate(user, password)
|
@@ -40,7 +46,11 @@ class SpsFtpdDriver
|
|
40
46
|
|
41
47
|
if @times.empty? or ChronicBetween.new(@times).within?(Time.now) then
|
42
48
|
message = "%s: uploaded file %s" % [@sps_topic, ftp_path]
|
43
|
-
|
49
|
+
begin
|
50
|
+
SPSPub.notice message, address: @sps_host, port: @sps_port
|
51
|
+
rescue
|
52
|
+
puts 'sps-ftp-driver: warning: unable to publish SPS notice ' + ($!).inspect
|
53
|
+
end
|
44
54
|
end
|
45
55
|
super(ftp_path, contents)
|
46
56
|
end
|
@@ -59,4 +69,4 @@ if __FILE__ == $0 then
|
|
59
69
|
puts "Server listening on port #{server.bound_port}"
|
60
70
|
gets
|
61
71
|
|
62
|
-
end
|
72
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sps-ftpd-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
L5SoXP1OGK+13Vzbp3QpVqbsqp8+9wP8njUUl5tBQ9I85WDOp1gBRmN7fsErk2Pc
|
32
32
|
8me5hqJrn3ECIQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ftpd
|
@@ -93,6 +93,26 @@ dependencies:
|
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 0.2.21
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: sps-sub-ping
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.1'
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 0.1.0
|
106
|
+
type: :runtime
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0.1'
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 0.1.0
|
96
116
|
description:
|
97
117
|
email: james@r0bertson.co.uk
|
98
118
|
executables: []
|
@@ -120,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
140
|
version: '0'
|
121
141
|
requirements: []
|
122
142
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.4.6
|
124
144
|
signing_key:
|
125
145
|
specification_version: 4
|
126
146
|
summary: Uses the ftpd gem to publish a SimplePubSub notice whenever a file is uploaded.
|
metadata.gz.sig
CHANGED
Binary file
|