my_stuff-fb303 0.0.4 → 0.0.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.
- data/COPYING +13 -0
- data/README.rdoc +36 -0
- data/lib/my_stuff/fb303/proxy_handler.rb +1 -1
- data/lib/my_stuff/fb303/server.rb +2 -1
- data/lib/my_stuff/fb303_server.rb +4 -2
- metadata +23 -29
data/COPYING
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright (c) 2011-present, Fred Emmott <copyright@fredemmott.co.uk>
|
2
|
+
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
= Overview
|
2
|
+
|
3
|
+
This is a basic implementation of fb303 for Ruby.
|
4
|
+
|
5
|
+
= Usage
|
6
|
+
|
7
|
+
See ./examples/server
|
8
|
+
|
9
|
+
= What You Get
|
10
|
+
|
11
|
+
Implementations for:
|
12
|
+
|
13
|
+
* getName
|
14
|
+
* getVersion
|
15
|
+
* getStatus
|
16
|
+
* getStatusDetails
|
17
|
+
* aliveSince
|
18
|
+
* getCounters
|
19
|
+
* getCounter
|
20
|
+
* shutdown
|
21
|
+
* Automatic per-method counters for:
|
22
|
+
* success
|
23
|
+
* exceptions (total)
|
24
|
+
* exceptions (per exception)
|
25
|
+
|
26
|
+
= Getting it
|
27
|
+
|
28
|
+
git clone git://github.com/fredemmott/my_stuff-fb303.git
|
29
|
+
|
30
|
+
or
|
31
|
+
|
32
|
+
gem install my_stuff-fb303
|
33
|
+
|
34
|
+
= Copying
|
35
|
+
|
36
|
+
See the COPYING file.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2011-present Fred Emmott.
|
1
|
+
# Copyright 2011-present Fred Emmott. See COPYING file.
|
2
2
|
|
3
3
|
require 'my_stuff/fb303/proxy_handler'
|
4
4
|
|
@@ -20,6 +20,7 @@ module MyStuff
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def run!
|
23
|
+
handler # load it :)
|
23
24
|
@status = Fb_status::ALIVE
|
24
25
|
@server_thread.join
|
25
26
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
# Copyright 2011-present Fred Emmott.
|
1
|
+
# Copyright 2011-present Fred Emmott. See COPYING file.
|
2
2
|
|
3
|
-
# Compatibility Wrapper
|
3
|
+
# Compatibility Wrapper for 0.0.2 and below.
|
4
|
+
#
|
5
|
+
# Please directly use MyStuff::Fb303::Server instead for new code.
|
4
6
|
require 'my_stuff/fb303/server'
|
5
7
|
|
6
8
|
module MyStuff
|
metadata
CHANGED
@@ -1,57 +1,51 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_stuff-fb303
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.4
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Fred Emmott
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-08-15 00:00:00 Z
|
12
|
+
date: 2011-09-04 00:00:00.000000000Z
|
14
13
|
dependencies: []
|
15
|
-
|
16
14
|
description: Basic implementation of fb303 for Ruby services
|
17
|
-
email:
|
15
|
+
email:
|
18
16
|
- mail@fredemmott.co.uk
|
19
17
|
executables: []
|
20
|
-
|
21
18
|
extensions: []
|
22
|
-
|
23
19
|
extra_rdoc_files: []
|
24
|
-
|
25
|
-
|
26
|
-
-
|
20
|
+
files:
|
21
|
+
- COPYING
|
22
|
+
- README.rdoc
|
27
23
|
- lib/my_stuff/fb303/proxy_handler.rb
|
28
24
|
- lib/my_stuff/fb303/server.rb
|
25
|
+
- lib/my_stuff/fb303_server.rb
|
29
26
|
homepage: https://github.com/fredemmott/my_stuff-fb303
|
30
|
-
licenses:
|
31
|
-
|
27
|
+
licenses:
|
28
|
+
- ISC
|
32
29
|
post_install_message:
|
33
30
|
rdoc_options: []
|
34
|
-
|
35
|
-
require_paths:
|
31
|
+
require_paths:
|
36
32
|
- lib
|
37
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
34
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version:
|
43
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
40
|
none: false
|
45
|
-
requirements:
|
46
|
-
- -
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version:
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
49
45
|
requirements: []
|
50
|
-
|
51
46
|
rubyforge_project:
|
52
47
|
rubygems_version: 1.8.6
|
53
48
|
signing_key:
|
54
49
|
specification_version: 3
|
55
50
|
summary: MyStuff.ws's Ruby fb303 implementation
|
56
51
|
test_files: []
|
57
|
-
|