goldshark_gem 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -31
- data/Gemfile +1 -1
- data/README.md +14 -7
- data/Rakefile +2 -0
- data/goldshark_gem.gemspec +1 -1
- data/lib/goldshark_gem/tool.rb +2 -1
- data/test/ci_test.rb +1 -1
- data/test/tool_test.rb +14 -0
- metadata +3 -7
- data/test/fixtures/vcr_cassettes/test_channel_intelligence.yml +0 -49
- data/test/fixtures/vcr_cassettes/test_results.yml +0 -687
- data/test/fixtures/vcr_cassettes/test_text.yml +0 -67
- data/test/fixtures/vcr_cassettes/test_tool.yml +0 -68
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://gst.api.igodigital.com/v2_2/7c7a63f6-8bcb-4fee-bc9d-8a2f5e477887/text.json?locale=en
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json;charset=utf-8
|
21
|
-
Date:
|
22
|
-
- Fri, 19 Oct 2012 02:00:41 GMT
|
23
|
-
Server:
|
24
|
-
- Apache/2.2.16 (Amazon)
|
25
|
-
Status:
|
26
|
-
- '200'
|
27
|
-
X-Frame-Options:
|
28
|
-
- sameorigin
|
29
|
-
X-Powered-By:
|
30
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.9
|
31
|
-
X-Xss-Protection:
|
32
|
-
- 1; mode=block
|
33
|
-
Content-Length:
|
34
|
-
- '3289'
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ! '[{"locale":"en","text_title":"","text_value":"Search by model number","text_type":"search_label"},{"locale":"en","text_title":"","text_value":"Find
|
40
|
-
shaving heads that match your shaver","text_type":"welcome_header"},{"locale":"en","text_title":"","text_value":"Or
|
41
|
-
take the step by step guide","text_type":"start_header"},{"locale":"en","text_title":"","text_value":"Start
|
42
|
-
the guide","text_type":"start_button_text"},{"locale":"en","text_title":"","text_value":"Search","text_type":"search_button_text"},{"locale":"en","text_title":"","text_value":"Find
|
43
|
-
shaving heads that match your shaver","text_type":"header_text"},{"locale":"en","text_title":"","text_value":"Start
|
44
|
-
new search","text_type":"restart_text"},{"locale":"en","text_title":"","text_value":"Next
|
45
|
-
question","text_type":"next_button_text"},{"locale":"en","text_title":"","text_value":"Previous
|
46
|
-
question","text_type":"previous_button_text"},{"locale":"en","text_title":"","text_value":"Where
|
47
|
-
to find this icon on my shaver?","text_type":"where_to_find_text"},{"locale":"en","text_title":"","text_value":"Recommendation","text_type":"recommendation_text"},{"locale":"en","text_title":"","text_value":"Matching
|
48
|
-
shavers","text_type":"match_heading"},{"locale":"en","text_title":"Buy Now","text_value":"Buy
|
49
|
-
Now","text_type":"buy_now_text"},{"locale":"en","text_title":"","text_value":"View
|
50
|
-
product details ","text_type":"view_details_text"},{"locale":"en","text_title":"","text_value":"Download
|
51
|
-
leaflet","text_type":"view_leaflet_text"},{"locale":"en","text_title":"","text_value":"Print
|
52
|
-
advice","text_type":"print_text"},{"locale":"en","text_title":"","text_value":"Register
|
53
|
-
to receive a reminder","text_type":"replacement_advice"},{"locale":"en","text_title":"","text_value":"Receive
|
54
|
-
reminder","text_type":"reminder_text"},{"locale":"en","text_title":"","text_value":"Recommended
|
55
|
-
shaver head","text_type":"recommended_shaver_text"},{"locale":"en","text_title":"","text_value":"How
|
56
|
-
to replace your shaver head","text_type":"how_to_replace_text"},{"locale":"en","text_title":"","text_value":"shaving
|
57
|
-
heads","text_type":"shaving_heads"},{"locale":"en","text_title":"","text_value":"Where
|
58
|
-
can I find my model number?","text_type":"where_to_find_model_text"},{"locale":"en","text_title":"","text_value":"Sorry,
|
59
|
-
we found no results for","text_type":"keyword_results_error"},{"locale":"en","text_title":"","text_value":"If
|
60
|
-
you want to try again please check your model number","text_type":"try_search_again_text"},{"locale":"en","text_title":"","text_value":"results
|
61
|
-
for","text_type":"keyword_results"},{"locale":"en","text_title":"","text_value":"Please
|
62
|
-
check your model number or","text_type":"check_model_text"},{"locale":"en","text_title":"","text_value":"results","text_type":"results_text"},{"locale":"en","text_title":"","text_value":"series","text_type":"series_text"},{"locale":"en","text_title":"","text_value":"We
|
63
|
-
cannot offer a package with 2 heads. This package is compatible.","text_type":"no_compatible_text"},{"locale":"en","text_title":"","text_value":"results
|
64
|
-
so far","text_type":"search_results_text"},{"locale":"en","text_title":"","text_value":"Showing","text_type":"showing_text"},{"locale":"en","text_title":"","text_value":"https://pnregistration.harte-hanks.com/Registration.aspx","text_type":"registration_url"}]'
|
65
|
-
http_version:
|
66
|
-
recorded_at: Fri, 19 Oct 2012 02:00:41 GMT
|
67
|
-
recorded_with: VCR 2.2.5
|
@@ -1,68 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://gst.api.igodigital.com/v2_2/7c7a63f6-8bcb-4fee-bc9d-8a2f5e477887/tool.json?locale=en&sid=7c7a63f6-8bcb-4fee-bc9d-8a2f5e477887
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json;charset=utf-8
|
21
|
-
Date:
|
22
|
-
- Fri, 19 Oct 2012 01:58:49 GMT
|
23
|
-
Server:
|
24
|
-
- Apache/2.2.16 (Amazon)
|
25
|
-
Status:
|
26
|
-
- '200'
|
27
|
-
X-Frame-Options:
|
28
|
-
- sameorigin
|
29
|
-
X-Powered-By:
|
30
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
31
|
-
X-Xss-Protection:
|
32
|
-
- 1; mode=block
|
33
|
-
Content-Length:
|
34
|
-
- '4495'
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ! '{"tool_name":"This tool is used for monitoring only --- Philips -
|
40
|
-
Shaver Head Finder","session_id":"7c7a63f6-8bcb-4fee-bc9d-8a2f5e477887","steps":[{"parent_tool_step_id":"0","parent_tool_step_option_id":"0","required":"
|
41
|
-
","sort_order":0,"question_type":"","step_header":"Every year, your blades
|
42
|
-
travel the height of Mt. Everest... 49 times! After such a workout, even the
|
43
|
-
best materials can lose their edge. Retain your razor''s peak performance
|
44
|
-
- replace the heads once a year.","step_name":"Welcome Page","step_title":"Keep
|
45
|
-
a close shave","step_type_name":"Welcome / Info","tool_step_id":"2fdde68c-43e1-4cad-9fdc-cf770fe1dede","selected_options":"","selected_filter_options":null,"image_type":"","":[]},{"parent_tool_step_id":"0","parent_tool_step_option_id":"0","required":"
|
46
|
-
","sort_order":1,"question_type":"radio","step_header":"","step_name":"Shaving
|
47
|
-
Heads","step_title":"How many shaving heads does your shaver have?","step_type_name":"Step
|
48
|
-
Listing (Parent)","tool_step_id":"484282c3-e919-4a07-be83-cc36582491f9","selected_options":"","selected_filter_options":null,"image_type":"jpg","options":[{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":0,"step_option_desc":"","step_option_name":"It
|
49
|
-
has three shaving heads.","step_option_notes":"","tool_step_option_id":"0e1ba264-7ed2-4a85-b9cb-75aa50b2b43c","image_type":"jpg"},{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":1,"step_option_desc":"HQ56/52","step_option_name":"It
|
50
|
-
has two shaving heads.","step_option_notes":"","tool_step_option_id":"876f39dc-3275-4ba5-a0a1-417bfb974fb0","image_type":"jpg"}]},{"parent_tool_step_id":"0","parent_tool_step_option_id":"0","required":"
|
51
|
-
","sort_order":2,"question_type":"radio","step_header":"","step_name":"Nivea
|
52
|
-
Shaver","step_title":"Do You Have a Nivea Shaver?","step_type_name":"Step
|
53
|
-
Listing (Parent)","tool_step_id":"ac5c824d-270f-4581-a4e9-49070fac8650","selected_options":"","selected_filter_options":null,"image_type":"","options":[{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":0,"step_option_desc":"","step_option_name":"I
|
54
|
-
have a Nivea shaver","step_option_notes":"","tool_step_option_id":"1c3d1d63-556d-482d-aaf0-8b3700deb29b","image_type":"jpg"},{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":1,"step_option_desc":"","step_option_name":"I
|
55
|
-
have a different shaver","step_option_notes":"no-image","tool_step_option_id":"31786a9a-be79-422c-b551-ff7d20e62112","image_type":"jpg"}]},{"parent_tool_step_id":"0","parent_tool_step_option_id":"0","required":"
|
56
|
-
","sort_order":3,"question_type":"radio","step_header":"","step_name":"Neck","step_title":"Does
|
57
|
-
your shaver have a ''neck''?","step_type_name":"Step Listing (Parent)","tool_step_id":"ef5f71cd-04d4-42d3-ba93-51282ee82e19","selected_options":"","selected_filter_options":null,"image_type":"","options":[{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":0,"step_option_desc":"","step_option_name":"Yes,
|
58
|
-
the shaving head is on a ''neck''","step_option_notes":"","tool_step_option_id":"0031fade-61db-458d-a189-cad2db67427e","image_type":"jpg"},{"parent_step_option_name":"","parent_tool_step_option_id":"0","sort_order":1,"step_option_desc":"","step_option_name":"No,
|
59
|
-
the shaving head is integrated","step_option_notes":"","tool_step_option_id":"6a95ca9d-e343-4061-a161-7057d9d0e208","image_type":"jpg"}]},{"parent_tool_step_id":"ef5f71cd-04d4-42d3-ba93-51282ee82e19","parent_tool_step_option_id":"0","required":"
|
60
|
-
","sort_order":1000,"question_type":"radio","step_header":"","step_name":"Plastic
|
61
|
-
Color","step_title":"Is the color of the plastic at the back side green? ","step_type_name":"Popup","tool_step_id":"7f8986a5-2e78-4c18-8934-71d37551a462","selected_options":"","selected_filter_options":null,"image_type":"","options":[{"parent_step_option_name":"Yes,
|
62
|
-
the shaving head is on a ''neck''","parent_tool_step_option_id":"0031fade-61db-458d-a189-cad2db67427e","sort_order":0,"step_option_desc":"HQ8/52","step_option_name":"Yes,
|
63
|
-
the back side is green","step_option_notes":"","tool_step_option_id":"419ff79f-14a9-4702-bb05-269b7461e2b4","image_type":"jpg"},{"parent_step_option_name":"Yes,
|
64
|
-
the shaving head is on a ''neck''","parent_tool_step_option_id":"0031fade-61db-458d-a189-cad2db67427e","sort_order":1,"step_option_desc":"HQ56/52
|
65
|
-
","step_option_name":"No, the back side is not green","step_option_notes":"no-image","tool_step_option_id":"29bf4cd7-1504-443f-8541-fee1fe73c921","image_type":"jpg"}]}]}'
|
66
|
-
http_version:
|
67
|
-
recorded_at: Fri, 19 Oct 2012 01:58:49 GMT
|
68
|
-
recorded_with: VCR 2.2.5
|