goldshark_gem 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -45,6 +45,13 @@ If the tool\_config.yml file is missing or you are not developing in the Rails e
45
45
  texts.tool_guid('132424324')
46
46
  texts.locale('en')
47
47
 
48
+ ###Define Tool Source
49
+
50
+ When a Guided Selling tool powers both web and mobile, or guided selling and guided search. Defining a souce may be required by the client. To define a souce just do:
51
+
52
+ gs.source('web') or
53
+ gs.source('mobile')
54
+
48
55
  ###Retrieve the 'gs' object variables
49
56
 
50
57
  gs.tool_guid or texts.tool_guid
@@ -15,5 +15,5 @@ Gem::Specification.new do |s|
15
15
  s.add_dependency 'activesupport'
16
16
  s.add_dependency 'libxml-ruby'
17
17
  s.require_paths = ["lib"]
18
- s.version = '0.2.4'
18
+ s.version = '0.2.5'
19
19
  end
@@ -158,7 +158,11 @@ module GS
158
158
  if @source.nil?
159
159
  source = ''
160
160
  else
161
- source = "&source=#{@source}"
161
+ if @session_id.nil?
162
+ source = "?source=#{source}"
163
+ else
164
+ source = "&source=#{@source}"
165
+ end
162
166
  end
163
167
  if @session_id.nil?
164
168
  uri = URI.parse("#{@url}/#{@tool_guid}/record_event/#{event_name}.json#{source}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goldshark_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
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: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport