woopra_rails 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,6 @@ module WoopraRails::Response
8
8
  self.send("#{k}=".to_sym, v)
9
9
  end
10
10
  rescue Exception => e
11
- ::Rails.logger("Woopra Exception: #{e.message}")
12
11
  self.send("success=", 1)
13
12
  end
14
13
 
@@ -1,3 +1,3 @@
1
1
  module WoopraRails
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
data/lib/woopra_rails.rb CHANGED
@@ -26,15 +26,16 @@ module WoopraRails
26
26
  def init
27
27
  begin
28
28
  @env = ::Rails.env if defined? Rails
29
- def dryrun
30
- return @config["dryrun"] == true
31
- end
32
29
  @base_params = "#{@endpoint}?host=#{account}&response=json&timeout=300000"
33
30
  rescue Exception => e
34
31
  puts("Error on init: #{e.message}")
35
32
  end
36
33
  end
37
34
 
35
+ def dryrun
36
+ return @config["dryrun"] == true
37
+ end
38
+
38
39
  def account
39
40
  @config["account"]
40
41
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe WoopraRails do
4
4
  context "post init" do
5
5
  it "should define module instance vars" do
6
- [:@endpoint, :@dryrun, :@config, :@env, :@session, :@base_params].each do |v|
6
+ [:@endpoint, :@dryrun, :@config, :@env, :@base_params].each do |v|
7
7
  WoopraRails.instance_variables.include?(v).should be_true
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woopra_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: