scribe-rb 2.2.1.rc1 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -1
- data/scribe-rb.gemspec +2 -2
- metadata +16 -18
data/README.md
CHANGED
@@ -114,7 +114,7 @@ thread that does not block Scribe.
|
|
114
114
|
An example usage:
|
115
115
|
|
116
116
|
```ruby
|
117
|
-
handler = FacebookService::QueuedLogMessageHandler("My Scribe Handler")
|
117
|
+
handler = FacebookService::QueuedLogMessageHandler.new("My Scribe Handler")
|
118
118
|
handler.message_limit = 100000 # accept up to 100000 messages at a time; if set to nil (default), there is no limit
|
119
119
|
|
120
120
|
Thread.new do
|
@@ -128,6 +128,18 @@ server = Thrift::SimpleServer.new(processor, transport, transportFactory, protoc
|
|
128
128
|
server.serve
|
129
129
|
```
|
130
130
|
|
131
|
+
#### Custom Queue Implementation
|
132
|
+
|
133
|
+
A custom queue object (e.g., [circular_queue](https://github.com/alindeman/circular_queue))
|
134
|
+
can be specified by passing a `:queue` option to the constructor.
|
135
|
+
|
136
|
+
```ruby
|
137
|
+
handler = FacebookService::QueuedLogMessageHandler.new("My Scribe Handler",
|
138
|
+
:queue => CircularQueue.new(50000))
|
139
|
+
```
|
140
|
+
|
141
|
+
The custom queue object must respond to the `push` and `size` messages.
|
142
|
+
|
131
143
|
## Hat Tips
|
132
144
|
|
133
145
|
* [Installing and Using Scribe with Ruby on Mac OS](http://kpumuk.info/development/installing-and-using-scribe-with-ruby-on-mac-os/)
|
data/scribe-rb.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "scribe-rb"
|
6
|
-
s.version = "2.2.1
|
6
|
+
s.version = "2.2.1"
|
7
7
|
s.authors = ["Andy Lindeman"]
|
8
8
|
s.email = ["andy@highgroove.com"]
|
9
9
|
s.homepage = "http://github.com/highgroove/scribe-rb"
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
18
|
-
s.add_dependency "thrift", "~>0.7
|
18
|
+
s.add_dependency "thrift", "~>0.7"
|
19
19
|
|
20
20
|
s.add_development_dependency "rake"
|
21
21
|
s.add_development_dependency "rspec", "~>2.6.0"
|
metadata
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scribe-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.1
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.1
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andy Lindeman
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thrift
|
16
|
-
requirement: &
|
16
|
+
requirement: &70101056564040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.7
|
21
|
+
version: '0.7'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70101056564040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70101056563540 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70101056563540
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70101056562860 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.6.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70101056562860
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: timecop
|
49
|
-
requirement: &
|
49
|
+
requirement: &70101056562360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70101056562360
|
58
58
|
description: Everything you need to build a Ruby producer/client or consumer/server
|
59
59
|
of Scribe messages
|
60
60
|
email:
|
@@ -96,18 +96,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- - ! '>='
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
hash: -4061094456783987370
|
102
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
100
|
none: false
|
104
101
|
requirements:
|
105
|
-
- - ! '
|
102
|
+
- - ! '>='
|
106
103
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
104
|
+
version: '0'
|
108
105
|
requirements: []
|
109
106
|
rubyforge_project:
|
110
|
-
rubygems_version: 1.8.
|
107
|
+
rubygems_version: 1.8.15
|
111
108
|
signing_key:
|
112
109
|
specification_version: 3
|
113
110
|
summary: Generated scribe and fb303 bindings for Ruby packed into a gem
|
@@ -116,3 +113,4 @@ test_files:
|
|
116
113
|
- spec/lib/extras/non_strict_binary_protocol_factory_spec.rb
|
117
114
|
- spec/lib/extras/queued_log_message_handler_spec.rb
|
118
115
|
- spec/spec_helper.rb
|
116
|
+
has_rdoc:
|