loggr-rb 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ module Loggr
44
44
  end
45
45
 
46
46
  class Event
47
- attr_accessor :text, :source, :link, :data, :value, :tags, :geo, :datatype
47
+ attr_accessor :text, :source, :user, :link, :data, :value, :tags, :geo, :datatype
48
48
  end
49
49
 
50
50
  class FluentEvent
@@ -91,6 +91,15 @@ module Loggr
91
91
  self.source(sprintf(fmt, args))
92
92
  end
93
93
 
94
+ def user(text)
95
+ @event.user = self.assign_w_macros(text, @event.user)
96
+ return self
97
+ end
98
+
99
+ def userf(fmt, *args)
100
+ self.user(sprintf(fmt, args))
101
+ end
102
+
94
103
  def link(text)
95
104
  @event.link = self.assign_w_macros(text, @event.link)
96
105
  return self
@@ -1,3 +1,3 @@
1
1
  module Loggr
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 5
9
- version: 1.0.5
8
+ - 6
9
+ version: 1.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Loggr.net
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-23 00:00:00 -04:00
17
+ date: 2011-07-25 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -55,7 +55,6 @@ files:
55
55
  - lib/loggr-rb/http.rb
56
56
  - lib/loggr-rb/catcher.rb
57
57
  - lib/tasks/loggr_tasks.rake
58
- - lib/tasks/exceptional_tasks.rake
59
58
  - rails/init.rb
60
59
  - init.rb
61
60
  - install.rb
@@ -1,11 +0,0 @@
1
- namespace :exceptional do
2
- desc 'Send a test exception to Exceptional.'
3
- task :test => :environment do
4
- unless Exceptional::Config.api_key.blank?
5
- puts "Sending test exception to Exceptional."
6
- require "exceptional/integration/tester"
7
- Exceptional::Integration.test
8
- puts "Done."
9
- end
10
- end
11
- end