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.
- data/lib/woopra_rails/response.rb +0 -1
- data/lib/woopra_rails/version.rb +1 -1
- data/lib/woopra_rails.rb +4 -3
- data/spec/lib/woopra_rails_spec.rb +1 -1
- metadata +1 -1
data/lib/woopra_rails/version.rb
CHANGED
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, :@
|
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
|