zss 0.2.0 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3cc50db4db8b982f79b85954265a191f92994b8
4
- data.tar.gz: 3a140a07037992c73f53872a4684604b0500645c
3
+ metadata.gz: b6209d59b210fc8bd7e64ed36f5fca6642c40f61
4
+ data.tar.gz: cf82318a2842a97b3d8ac7199e665b29820a6eaa
5
5
  SHA512:
6
- metadata.gz: 433fe48debfcf3991d99d49e195de568b30f4a404b74aa6ea3a7ee6261ee2505d1d33bb713a1570eea0a526e406872a5f1588a4c2358c85e1df65ff77340419a
7
- data.tar.gz: 73f90c97b364059f96a2bc44f84ea28d421638fe389b6547d58bcb7d8c39d4d050407ab6e810a442adfbacac5e6eb0ca54de37a77d045af396dbaf61db2612aa
6
+ metadata.gz: eee1a5348aae779968829771172d51b8c085e328816f8317b253984b5c565227522d4c05c39aa3d60e56c4533efdad04661a9b3ef81bdfb3130cc674dfc05193
7
+ data.tar.gz: 3939c3e70096ce5f5ecfe47a72b986c21a8202d970ceb189b97cfda6a68c35c01cb35044b259fae882b1c9520778320c8a63fab560bf931ba3c435b014ea7f64
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zss (0.2.0)
4
+ zss (0.2.5)
5
5
  activesupport (~> 4.1)
6
6
  daemons (~> 1.1)
7
7
  em-zeromq (~> 0.5)
@@ -13,13 +13,19 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (4.1.4)
16
+ activesupport (4.1.6)
17
17
  i18n (~> 0.6, >= 0.6.9)
18
18
  json (~> 1.7, >= 1.7.7)
19
19
  minitest (~> 5.1)
20
20
  thread_safe (~> 0.1)
21
21
  tzinfo (~> 1.1)
22
+ airbrake (4.1.0)
23
+ builder
24
+ multi_json
25
+ builder (3.2.2)
22
26
  bump (0.5.0)
27
+ celluloid (0.15.2)
28
+ timers (~> 1.1.0)
23
29
  codeclimate-test-reporter (0.3.0)
24
30
  simplecov (>= 0.7.1, < 1.0.0)
25
31
  coderay (1.1.0)
@@ -36,13 +42,15 @@ GEM
36
42
  ffi-rzmq-core (>= 1.0.1)
37
43
  ffi-rzmq-core (1.0.3)
38
44
  ffi (~> 1.9)
39
- hashie (3.2.0)
45
+ hashie (3.3.1)
40
46
  i18n (0.6.11)
41
47
  json (1.8.1)
42
- logger_facade (0.1.0)
48
+ logger_facade (0.2.0)
49
+ airbrake (~> 4.0)
43
50
  hashie (~> 3.2)
51
+ sucker_punch (~> 1.1)
44
52
  method_source (0.8.2)
45
- minitest (5.4.0)
53
+ minitest (5.4.2)
46
54
  msgpack (0.5.8)
47
55
  multi_json (1.10.1)
48
56
  pry (0.10.0)
@@ -68,8 +76,11 @@ GEM
68
76
  simplecov-html (~> 0.8.0)
69
77
  simplecov-html (0.8.0)
70
78
  slop (3.6.0)
79
+ sucker_punch (1.2.1)
80
+ celluloid (~> 0.15.2)
71
81
  thread_safe (0.3.4)
72
- tzinfo (1.2.1)
82
+ timers (1.1.0)
83
+ tzinfo (1.2.2)
73
84
  thread_safe (~> 0.1)
74
85
 
75
86
  PLATFORMS
data/lib/zss/errors.json CHANGED
@@ -31,6 +31,22 @@
31
31
  "userMessage": "The content you requested was not found.",
32
32
  "errorCode": 404
33
33
  }
34
+ },
35
+ "409": {
36
+ "code": 409,
37
+ "body": {
38
+ "developerMessage": "There is a conflict with the resource you are trying to access.",
39
+ "userMessage": "You cannot perform this action on the current resource due to a conflict.",
40
+ "errorCode": 409
41
+ }
42
+ },
43
+ "410": {
44
+ "code": 410,
45
+ "body": {
46
+ "developerMessage": "The resource is no longer available and will not be available again.",
47
+ "userMessage": "The content you request is no longer available.",
48
+ "errorCode": 410
49
+ }
34
50
  },
35
51
  "429": {
36
52
  "code": 429,
data/lib/zss/runner.rb CHANGED
@@ -24,8 +24,17 @@ module ZSS
24
24
  puts "Starting #{proc_name}:\n\tPID: #{pid_path}\n\tLOGS: #{log_path}"
25
25
 
26
26
  Daemons.run_proc proc_name, daemon_opts do
27
- daemon = ZSS::ServiceRegister.get_service
27
+ daemon = if ZSS::ServiceRegister.respond_to?(:get_services)
28
+ daemons = ZSS::ServiceRegister.get_services
29
+ daemons.find { |daemon| daemon.sid.downcase == proc_name }
30
+ else
31
+ ZSS::ServiceRegister.get_service
32
+ end
28
33
 
34
+ if daemon.nil?
35
+ puts "Daemon #{proc_name} not found!"
36
+ exit 1
37
+ end
29
38
  puts "Started #{proc_name} daemon..."
30
39
  daemon.run
31
40
 
data/lib/zss/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ZSS
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Januário
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler