dynarex_cron 0.8.2 → 0.8.3

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: 8b46fe417a25c7f3d64c648247901ac10153e79c
4
- data.tar.gz: 1f5b5177336e955a893f18a5e20a6f99cd722e7a
3
+ metadata.gz: fa21b0d344310a7f3bd058fd88478016288d10ab
4
+ data.tar.gz: a1b589f1324c05d35bfde7ed6cd3b81b8797b267
5
5
  SHA512:
6
- metadata.gz: 54c10c78f246cbd62a54d6e87cd14c174cc08fcb56afdadf362456c091764803af3cc76ae6291cab7cbaa76dfc8ee15c3ab6d1a78682f54a81929044156b0656
7
- data.tar.gz: 488c299021c1f31b1e29556225f3e7b2db702d226feef95bee911f197cfa9a4f0342f4f826c1110e2d7c7b695700726451249796b3385625d8c9e0dd95a84262
6
+ metadata.gz: dc2196a5521866d54259a9bd2f997c65a4a1ff48b8334a749ef9f3cc12d1aa204004805e2d3d0e6c843012043f31b2ff3bc3f1a1a708e62d5b42f135acb55acf
7
+ data.tar.gz: a5eb7d932d12f3db30194eebd06148fd5a3c2b0ff1d13c4bc939091048955129515cf5ea515bb038b0bd6d485e68308624e2485ba1dd55fb147bd234b48e6781
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/dynarex_cron.rb CHANGED
@@ -36,8 +36,8 @@ class DynarexCron
36
36
  end
37
37
 
38
38
  @sps_address, @sps_port = opt[:sps_address], opt[:sps_port]
39
-
40
-
39
+ @pub = SPSPub.new address: @sps_address, port: @sps_port
40
+
41
41
  end
42
42
 
43
43
  def start
@@ -67,11 +67,10 @@ class DynarexCron
67
67
  # temporarily unavailable? i.e. 503 Service Temporarily Unavailable
68
68
  begin
69
69
  buffer, _ = RXFHelper.read(@dynarex_file)
70
+ reload_entries buffer if @buffer != buffer
70
71
  rescue
71
72
  puts 'dynarex_cron: warning: ' + ($!).inspect
72
- end
73
-
74
- reload_entries buffer if @buffer != buffer
73
+ end
75
74
 
76
75
  end
77
76
 
@@ -125,8 +124,16 @@ class DynarexCron
125
124
 
126
125
  if h[:cron].to_time.strftime(DF) == datetime then
127
126
 
128
- SPSPub.notice h[:fqm].gsub('!Time',Time.now.strftime("%H:%M")), \
129
- address: @sps_address, port:@sps_port
127
+ begin
128
+
129
+ @pub.notice h[:fqm].gsub('!Time',Time.now.strftime("%H:%M"))
130
+
131
+ rescue
132
+ log 'cron ' + h[:cron].inspect, :info
133
+ log h.inspect + ' : ' + ($!).inspect
134
+ @pub.notice 'jessie: ding'
135
+ end
136
+
130
137
  h[:cron].next # advances the time
131
138
 
132
139
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex_cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE0MTEyNDE3NDY1NloXDTE1MTEyNDE3NDY1NlowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE2MTIxODEyNTg1MFoXDTE3MTIxODEyNTg1MFowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAN+RJExLzsQFbxtOo8MBE3N/a6oZZ1MWH8DEcbuD/FCZKD/sf9nePt6mUN71
19
- yHU/OXsr26hGtwEzMHuOoFZdwah67hIbI0/Pl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NO6QOnV1I2G7tRXcp4lj/lIkPdmkQCDeFriTF8HF216pbFbjhuNKc3E1Bks3UxD
29
- mAyT/WgYZ0oMFhlXhGjnYN/pCl0+Jg/GpMq/QhpzLczrBdds4E8EiOUg1OvSauaH
30
- McZceXPBBeJPivkAlUzWBmWsEO9kAXNKyrauouos4S7Novg5wsFfdzfokzPHCLhE
31
- AYk47T0/8hx1QaR5nU5Db9LztjboHVugHlqfEKWwY2mURuQWP9iCCwiG3T1cC04z
32
- WnpuryTBFz7cvg==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAFcSx0vfR
27
+ VLNEv1Zm4aAg3pkRi71Do+y6keHtBvLeF5UljenC7JPx0H46iAxNqv/6bwiksTxb
28
+ +IZJEaRXIVcaUJFEk9IYSf3ZaijmuCoaQFJq/vR7dB0oaW/BNgmVvMv0xa9L4nQ3
29
+ iamse+N40ZmDhkt7i0h82swMVWTc+txpFZuNvj0gxVy9McbiEBBQDgptaUO00mLh
30
+ tlWlMwHcUP6KQK2/QpJY3TWCMiwN5fNC6a3u5icFKo/zeFfMeq55/OIbdLykHTro
31
+ tsPyW5OuDQXshrgmPt97DD8Btg4Tg5CGwnm0aeVYC/E4PnCMrtQNyPaRwBfvGrF0
32
+ vXqXm6nxDCrL/w==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-11-18 00:00:00.000000000 Z
34
+ date: 2016-12-18 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: chronic_cron
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.8
123
+ rubygems_version: 2.5.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Publishes SimplePubSub messages by reading cron entries from a Dynarex document
metadata.gz.sig CHANGED
@@ -1,4 +1,2 @@
1
- ��DZp���� ;�[$�?DS� t��WG�zX2c�� X"߳�I�ᔴ�
2
- ? ]����<D"\� 7#"��-�ZWEٕ��
3
- ������U��H"9��I�2��Hz�w�t‚
4
- �>�A�d�h�w�(��T��P����g��w��I���f�EdiG7��b$-�ʐ���9Ú��8_\�R����N�����F#�]���V̶�˓>[��4�re��ȴ�Ġ�&�$�8��'�����tzJ%ю�p�
1
+ �2p6��`���cbFΏ~#X
2
+ ㆛������7�����L#x/J��?�J� ͞�]�����.��r�|�B{N�]��֭�Lȹ�B29���@�N0���g��X�ԋ/,�