loggly 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/loggly.rb +3 -2
  3. data/loggly.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -10,7 +10,7 @@ class LogglyResque
10
10
  @queue = :loggly
11
11
 
12
12
  def self.perform(klass,message, time=nil)
13
- klass.send(:send_to_loggly, message, time)
13
+ klass.camelize.constantize.send(:send_to_loggly, message, time)
14
14
  end
15
15
  end
16
16
 
@@ -71,8 +71,9 @@ class Loggly
71
71
  # This method behaves the same as record, but uses resque to send the message.
72
72
  #
73
73
  def self.async_record(message, time=nil)
74
+
74
75
  begin
75
- Resque.enqueue(LogglyResque, self, message, time)
76
+ Resque.enqueue(LogglyResque, self.name, message, time)
76
77
  rescue => e
77
78
  puts e
78
79
  puts "There was an error cueing loggly"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{loggly}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ivan Acosta-Rubio"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
7
+ - 4
8
8
  - 0
9
- version: 0.3.0
9
+ version: 0.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Acosta-Rubio