street_lights 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +1 -0
  2. data/README.rdoc +43 -11
  3. data/VERSION +1 -1
  4. data/street_lights.gemspec +4 -1
  5. metadata +27 -13
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ source "http://rubygems.org"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
+ gem "isna", ">= 0"
8
9
  group :development do
9
10
  gem "shoulda", ">= 0"
10
11
  gem "rdoc", "~> 3.12"
data/README.rdoc CHANGED
@@ -1,16 +1,48 @@
1
1
  = street_lights
2
2
 
3
- Description goes here.
4
-
5
- == Contributing to street_lights
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
3
+ Watch your app as street lights.
4
+
5
+ Imagine a semaphore that shows each worker in a web app, busy in red, and available in green.
6
+
7
+ == Philosophy
8
+
9
+ The gem provides a class that follows the rack interface, so basically
10
+ all you need to do is include the gem, and add the 'StreetLights'
11
+ constant to your rack stack.
12
+
13
+ The rack, would simple create files each would be named with the
14
+ current worker's Process.id, in the file we would have the same pid
15
+ wrapped in fancy ansi.
16
+
17
+ unix-watch shell command is neat, the problem there is that most
18
+ distros have old versions of watch that escape ansi. and we loose all
19
+ the neat coloring feature.
20
+
21
+ So Additionally I'll be bundling an executable called 'street_lights'
22
+ that would do what 'watch' does but with ansi.
23
+
24
+ While all these is true, the whole thing is meant for debugging and
25
+ having a simple visual idea on how saturated an app could be.
26
+
27
+ Specially when running heavy and or stressing processes at peak hours.
28
+
29
+ Right now, it does some file writting which might not be the best and
30
+ most performant way, but it would give you an idea of what is going
31
+ on. I might change this to a unix-socket or something into the future.
32
+
33
+ Should work, with anything, thing, web-brick, unicorn, synatra and all
34
+ those.
35
+
36
+ Sorry windows users!
37
+
38
+ Hope you find it useful :)
39
+
40
+ == Usage
41
+
42
+ require 'rubygems'
43
+ require 'street_lights'
44
+
45
+ my_rack_stack << StreetLights
14
46
 
15
47
  == Copyright
16
48
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{street_lights}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kazuyoshi tlacaelel"]
@@ -39,12 +39,14 @@ Gem::Specification.new do |s|
39
39
  s.specification_version = 3
40
40
 
41
41
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ s.add_runtime_dependency(%q<isna>, [">= 0"])
42
43
  s.add_development_dependency(%q<shoulda>, [">= 0"])
43
44
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
44
45
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
45
46
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
46
47
  s.add_development_dependency(%q<rcov>, [">= 0"])
47
48
  else
49
+ s.add_dependency(%q<isna>, [">= 0"])
48
50
  s.add_dependency(%q<shoulda>, [">= 0"])
49
51
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
50
52
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -52,6 +54,7 @@ Gem::Specification.new do |s|
52
54
  s.add_dependency(%q<rcov>, [">= 0"])
53
55
  end
54
56
  else
57
+ s.add_dependency(%q<isna>, [">= 0"])
55
58
  s.add_dependency(%q<shoulda>, [">= 0"])
56
59
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
60
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: street_lights
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - kazuyoshi tlacaelel
@@ -19,9 +19,9 @@ date: 2012-12-17 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
22
+ type: :runtime
23
23
  prerelease: false
24
- name: shoulda
24
+ name: isna
25
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
@@ -35,8 +35,22 @@ dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  type: :development
37
37
  prerelease: false
38
- name: rdoc
38
+ name: shoulda
39
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ requirement: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ type: :development
51
+ prerelease: false
52
+ name: rdoc
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
40
54
  none: false
41
55
  requirements:
42
56
  - - ~>
@@ -46,12 +60,12 @@ dependencies:
46
60
  - 3
47
61
  - 12
48
62
  version: "3.12"
49
- requirement: *id002
63
+ requirement: *id003
50
64
  - !ruby/object:Gem::Dependency
51
65
  type: :development
52
66
  prerelease: false
53
67
  name: bundler
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
68
+ version_requirements: &id004 !ruby/object:Gem::Requirement
55
69
  none: false
56
70
  requirements:
57
71
  - - ~>
@@ -62,12 +76,12 @@ dependencies:
62
76
  - 0
63
77
  - 0
64
78
  version: 1.0.0
65
- requirement: *id003
79
+ requirement: *id004
66
80
  - !ruby/object:Gem::Dependency
67
81
  type: :development
68
82
  prerelease: false
69
83
  name: jeweler
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
84
+ version_requirements: &id005 !ruby/object:Gem::Requirement
71
85
  none: false
72
86
  requirements:
73
87
  - - ~>
@@ -78,12 +92,12 @@ dependencies:
78
92
  - 8
79
93
  - 3
80
94
  version: 1.8.3
81
- requirement: *id004
95
+ requirement: *id005
82
96
  - !ruby/object:Gem::Dependency
83
97
  type: :development
84
98
  prerelease: false
85
99
  name: rcov
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
100
+ version_requirements: &id006 !ruby/object:Gem::Requirement
87
101
  none: false
88
102
  requirements:
89
103
  - - ">="
@@ -92,7 +106,7 @@ dependencies:
92
106
  segments:
93
107
  - 0
94
108
  version: "0"
95
- requirement: *id005
109
+ requirement: *id006
96
110
  description: Imagine a semaphore that shows each worker in a web app, busy in red, and available in green.
97
111
  email: kazu.dev@gmail.com
98
112
  executables: []