woopra_rails 1.1.3 → 1.1.5

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.
@@ -1,7 +1,7 @@
1
1
  module WoopraRails
2
2
  class << self
3
3
  def identify(name="", email="")
4
- session = "woopra_rails-#{Digest::MD5.hexdigest("#{user_email} #{user_name}")}" rescue ""
4
+ session = "woopra_rails-#{Digest::MD5.hexdigest("#{name} #{email}")}" rescue ""
5
5
  ::Rails.logger.debug "Session: #{session}"
6
6
  name = begin
7
7
  URI::encode name
@@ -16,7 +16,7 @@ module WoopraRails
16
16
  end
17
17
 
18
18
  action = "&cookie=#{session}&cv_name=#{name}&cv_email=#{email}"
19
- ::Rails.logger.debug("User info: #{@name.inspect}, #{@email.inspect}")
19
+ ::Rails.logger.debug("User info: #{name.inspect}, #{email.inspect}")
20
20
  issue_request(action)
21
21
  end
22
22
 
@@ -44,7 +44,7 @@ module WoopraRails
44
44
  rescue
45
45
  ""
46
46
  end
47
- action = "&cookie=#{session}&cv_name=#{name}&cv_email=#{email}&ce_name=#{event_name}"
47
+ action = "&cookie=#{session}&cv_name=#{user_name}&cv_email=#{user_email}&ce_name=#{event_name}"
48
48
 
49
49
  args.each do |k,v|
50
50
  action += "&ce_#{k}=#{URI::encode v.to_s}"
@@ -1,3 +1,3 @@
1
1
  module WoopraRails
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.5"
3
3
  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.3
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: