woopra_rails 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -61,6 +61,7 @@ Or install it yourself as:
61
61
  }
62
62
  )
63
63
 
64
+ When running in dev or test where you don't want to record to your production dataset of analytics, set dryrun to true in your woopra.yml. This will return success whenever a call is made, but the request wont be sent.
64
65
 
65
66
  ## Contributing
66
67
 
@@ -11,7 +11,7 @@ module WoopraRails::Response
11
11
  end
12
12
 
13
13
  def success?
14
- return true if self.send(:success) == 1 || @dryrun
14
+ return true if self.send(:success) == 1 || WoopraRails.dryrun
15
15
  return false
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module WoopraRails
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
data/lib/woopra_rails.rb CHANGED
@@ -40,6 +40,10 @@ module WoopraRails
40
40
  @base_params = "#{@endpoint}?host=#{account}&response=json&cookie=#{@session}&timeout=300000"
41
41
  end
42
42
 
43
+ def dryrun
44
+ return @config["dryrun"] == true
45
+ end
46
+
43
47
  def account
44
48
  @config["account"]
45
49
  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.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-02 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler