librevox 0.8 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/lib/librevox.rb +4 -0
  4. data/librevox.gemspec +2 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14a0e655fcf9650313c68ffcc4a0e2863a32135b
4
- data.tar.gz: 5605f7a4d07e93d47f1620ce1e2f50a3a87dc755
3
+ metadata.gz: bd5fb73b0c4d3d5dd99e256085c49e840611a762
4
+ data.tar.gz: 364478435791f591df41e4e7b0023fca780c1201
5
5
  SHA512:
6
- metadata.gz: 82bc2349155291668c68e85e13aa40c02ff063cc2e60c2c6ad3dfd37480e188253620117ac6301f1a112667c3fb6912a9f7d320363419b673d198f43dac6ba52
7
- data.tar.gz: 4a7a0c9eeca5e5e5c9805518f71711a602dbe0dd15959011542ebb9895c49a87ab1f5ee586762bddd63f68c19d248dede85eb91067051bd00b207d0b912f8ec7
6
+ metadata.gz: 2f26366de352dfc65892bcab398e340319d2b5cf8958d357966c8cbd2640dda221def062c07c6a725bba8c9ecc06a1a8039183eb92233189a28644f9c66362aa
7
+ data.tar.gz: f9cc41b1c2e8bff8a780cc654e8875f6acedffce2a16b0b9c8963fcaa82069fa758565a1177aa43880681efe00493d2bdbcefe1ba608e5b4e69e4368132ed694
data/README.md CHANGED
@@ -149,6 +149,20 @@ is most likely sufficient:
149
149
  end
150
150
  end
151
151
 
152
+ ## Configuration
153
+
154
+ By default Librevox uses the `Logger` class from the Ruby standard library. You
155
+ can configure the path to the log file and the log level through `Librevox.options`:
156
+
157
+ Librevox.options[:log_file] = "my_log_file.log"
158
+ Librevox.options[:log_level] = Logger::DEBUG
159
+
160
+ ## Rotating logs
161
+
162
+ If you start Librevox with `Librevox.start`, the log file will be reopened if you
163
+ send `SIGHUP` to the Librevox process. This makes it easy to rotate logs with the
164
+ standard `logrotate(1)`.
165
+
152
166
  ## Using `Librevox::CommandSocket`
153
167
 
154
168
  Librevox also ships with a CommandSocket class, which allows you to connect
@@ -17,6 +17,10 @@ module Librevox
17
17
  @logger ||= logger!
18
18
  end
19
19
 
20
+ def self.logger= logger
21
+ @logger = logger
22
+ end
23
+
20
24
  def self.logger!
21
25
  logger = Logger.new(options[:log_file])
22
26
  logger.level = options[:log_level]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "librevox"
3
- s.version = "0.8"
4
- s.date = "2014-03-20"
3
+ s.version = "0.9"
4
+ s.date = "2014-04-03"
5
5
  s.summary = "Ruby library for interacting with FreeSWITCH."
6
6
  s.email = "harry@vangberg.name"
7
7
  s.homepage = "http://github.com/vangberg/librevox"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librevox
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Vangberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine