brm_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/brm_client.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brm_client}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephane Bellity"]
12
- s.date = %q{2010-06-22}
12
+ s.date = %q{2010-07-27}
13
13
  s.description = %q{BRM Event logging client library}
14
14
  s.email = %q{sbellity@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -10,11 +10,11 @@ module BrmClient
10
10
  attr_reader :gateway, :application
11
11
  attr_accessor :facet_id, :user_id
12
12
 
13
- def initialize(application, gateway_options = {}, *opts)
13
+ def initialize(application, gateway_options = {}, opts={})
14
14
  @application = application
15
15
  @options = {
16
16
  :timestamp_format => "timestamp"
17
- }.merge(opts.extract_options! || {})
17
+ }.merge(opts)
18
18
  gateway_type = gateway_options.delete(:type) || "File"
19
19
  gateway_options[:application] ||= application
20
20
  @gateway = BrmClient::Gateway.const_get(gateway_type).new(gateway_options)
@@ -43,8 +43,9 @@ module BrmClient
43
43
  end
44
44
 
45
45
  timestamp = case @options[:timestamp_format]
46
- when "timestamp" then Time.now.to_i * 1000
47
- when "string" then (Time.now.to_i * 1000).to_s
46
+ when "timestamp" then Time.now.to_i
47
+ when "string" then (Time.now.to_i).to_s
48
+ when "time" then Time.now
48
49
  else Time.now
49
50
  end
50
51
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stephane Bellity
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-22 00:00:00 +02:00
17
+ date: 2010-07-27 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency