gsiener-analytical 2.10.0 → 2.10.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.10.0
1
+ 2.10.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gsiener-analytical}
8
- s.version = "2.10.0"
8
+ s.version = "2.10.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Krall", "Nathan Phelps", "Adam Anderson", "Kevin Menard", "Ablyamitov Ablyamit", "Kurt Werle", "Olivier Lauzon"]
12
- s.date = %q{2011-06-24}
12
+ s.date = %q{2011-07-09}
13
13
  s.description = %q{Gem for managing multiple analytics services in your rails app.}
14
14
  s.email = %q{josh@feefighters.com}
15
15
  s.extra_rdoc_files = [
@@ -37,7 +37,7 @@ module Analytical
37
37
  end
38
38
  end
39
39
 
40
- def submit_information
40
+ def track(data)
41
41
  "try {
42
42
  reinvigorate.track(\"#{options[:key]}\");
43
43
  } catch(err) {}"
@@ -36,7 +36,7 @@ module Analytical
36
36
 
37
37
  def identify(id, *args)
38
38
  data = args.first || {}
39
- "tracker.identify(\"#{data[:email]}\",\"#{data[:organization]}\");"
39
+ "tracker.identify(\"#{data[:organization]}\",\"#{data[:email]}\");"
40
40
  end
41
41
 
42
42
  def event(name, *args)
@@ -7,7 +7,7 @@ describe "Analytical::Modules::Mixpanel" do
7
7
  describe 'on initialize' do
8
8
  it 'should set the command_location' do
9
9
  a = Analytical::Modules::Mixpanel.new :parent=>@parent, :js_url_key=>'abc'
10
- a.tracking_command_location.should == :body_append
10
+ a.tracking_command_location.should == :body_prepend
11
11
  end
12
12
  it 'should set the options' do
13
13
  a = Analytical::Modules::Mixpanel.new :parent=>@parent, :js_url_key=>'abc'
@@ -63,9 +63,9 @@ describe "Analytical::Modules::Mixpanel" do
63
63
  @api = Analytical::Modules::Mixpanel.new :parent=>@parent, :js_url_key=>'abcdef'
64
64
  @api.init_javascript(:head_prepend).should == ''
65
65
  @api.init_javascript(:head_append).should == ''
66
- @api.init_javascript(:body_prepend).should == ''
67
- @api.init_javascript(:body_append).should =~ /api\.mixpanel\.com\/site_media\/js\/api\/mixpanel\.js/
68
- @api.init_javascript(:body_append).should =~ /new MixpanelLib\('.*'\)/
66
+ @api.init_javascript(:body_append).should == ''
67
+ @api.init_javascript(:body_prepend).should =~ /api\.mixpanel\.com\/site_media\/js\/api\/mixpanel\.js/
68
+ @api.init_javascript(:body_prepend).should =~ /new MixpanelLib\('.*'\)/
69
69
  end
70
70
  end
71
71
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsiener-analytical
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 10
9
- - 0
10
- version: 2.10.0
9
+ - 1
10
+ version: 2.10.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Krall
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2011-06-24 00:00:00 -04:00
24
+ date: 2011-07-09 00:00:00 -04:00
25
25
  default_executable:
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency