zeus 0.2.0 → 0.2.1

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.
data/README.md CHANGED
@@ -10,10 +10,6 @@ Zeus preloads your app so that your normal development tasks such as `console`,
10
10
 
11
11
  Because waiting 25 seconds sucks, but waiting 0.4 seconds doesn't.
12
12
 
13
- ## When?
14
-
15
- Soon? You can use Zeus now, but don't expect it to be perfect. I'm working hard on it.
16
-
17
13
  ## Requirements
18
14
 
19
15
  Pretty specific:
@@ -34,14 +30,6 @@ Run the project initializer.
34
30
 
35
31
  zeus init
36
32
 
37
- ## Upgrading from initial release
38
-
39
- Since zeus is super-brand-new, the config file format changed already.
40
-
41
- gem install zeus
42
- rm .zeus.rb
43
- zeus init
44
-
45
33
  ## Usage
46
34
 
47
35
  Start the server:
@@ -55,7 +55,7 @@ BANNER
55
55
  else
56
56
  # this is super non-generic. problem for future-burke.
57
57
  project_tasks = self.class.instance_variable_get("@tasks").
58
- reject{|k,_|['init', 'start', 'help'].include?(k)}.values.uniq
58
+ reject{|k,_|['initialize', 'version', 'init', 'start', 'help'].include?(k)}.values.uniq
59
59
 
60
60
  tasks = project_tasks.map { |task|
61
61
  " zeus %-14s # %s" % [task.method_name, task.desc]
@@ -1,8 +1,6 @@
1
1
  require 'json'
2
2
  require 'socket'
3
3
 
4
- require 'zeus/process'
5
-
6
4
  module Zeus
7
5
  class Server
8
6
 
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -32,7 +32,6 @@ files:
32
32
  - lib/zeus/cli.rb
33
33
  - lib/zeus/client.rb
34
34
  - lib/zeus/dsl.rb
35
- - lib/zeus/process.rb
36
35
  - lib/zeus/server.rb
37
36
  - lib/zeus/server/acceptor.rb
38
37
  - lib/zeus/server/acceptor_registration_monitor.rb
@@ -1,26 +0,0 @@
1
- module Process
2
-
3
- def self.killall_descendants(sig, base=Process.pid)
4
- descendants(base).each do |pid|
5
- begin
6
- Process.kill(sig, pid)
7
- rescue Errno::ESRCH
8
- end
9
- end
10
- end
11
-
12
- def self.pids_to_ppids
13
- Hash[*`ps -eo pid,ppid`.scan(/\d+/).map(&:to_i)]
14
- end
15
-
16
- def self.descendants(base=Process.pid)
17
- descendants = Hash.new{|ht,k| ht[k]=[k]}
18
-
19
- pids_to_ppids.each do |pid,ppid|
20
- descendants[ppid] << descendants[pid]
21
- end
22
-
23
- descendants[base].flatten - [base]
24
- end
25
- end
26
-