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 +7 -0
- data/goldshark_gem.gemspec +1 -1
- data/lib/goldshark_gem/tool.rb +5 -1
- metadata +2 -2
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
|
data/goldshark_gem.gemspec
CHANGED
data/lib/goldshark_gem/tool.rb
CHANGED
@@ -158,7 +158,11 @@ module GS
|
|
158
158
|
if @source.nil?
|
159
159
|
source = ''
|
160
160
|
else
|
161
|
-
|
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
|
+
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-
|
12
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|