bluekai 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/bluekai/category.rb +145 -0
- data/lib/bluekai/client.rb +20 -321
- data/lib/bluekai/rule.rb +165 -0
- data/lib/bluekai/user_data.rb +90 -0
- data/lib/bluekai/version.rb +1 -1
- data/lib/bluekai.rb +3 -0
- data/spec/fixtures/signatures/0e01a80ff1ca77f4fd32b58ff48310168539a9a26e4ef527042b7bab78d4648a +1 -0
- data/spec/fixtures/signatures/7fe2b3662915bf82890e1fe870480885e0744b12832569c5d7017a0fc42d5527 +1 -0
- data/spec/fixtures/signatures/8cd7ba76199d2b34be042841a2dd69310619dcac0f3dd4f24bae6b5fb5f9e302 +1 -0
- data/spec/fixtures/signatures/95768bffa5416007061da13a2a0368e52a4bea3451ac2dfede43f6a6841ac402 +1 -0
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/creates_a_category.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Bluekai_Category/lists_4_categories.yml +104 -0
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/reads_a_category_and_its_reach.yml +1616 -1610
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/updates_a_category.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Bluekai_Client/lists_Bluekai_taxonomy_nodes.yml +28225 -27370
- data/spec/fixtures/vcr_cassettes/Bluekai_Client/performs_a_ping.yml +4 -4
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/creates_a_rule.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Bluekai_Rule/lists_10_phint_rules.yml +234 -0
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/reads_a_rule.yml +12 -10
- data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/updates_a_rule.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bluekai_UserData/reads_user_information_given_bkuuid.yml +44 -0
- data/spec/lib/bluekai/category_integration_spec.rb +56 -0
- data/spec/lib/bluekai/client_integration_spec.rb +1 -141
- data/spec/lib/bluekai/client_spec.rb +0 -3
- data/spec/lib/bluekai/rule_integration_spec.rb +73 -0
- data/spec/lib/bluekai/user_data_integration_spec.rb +12 -0
- data/spec/spec_helper.rb +3 -2
- data/spec/support/signature_mock.rb +13 -0
- metadata +40 -19
- data/spec/fixtures/vcr_cassettes/Bluekai_Client/lists_10_phint_rules.yml +0 -194
- data/spec/fixtures/vcr_cassettes/Bluekai_Client/lists_4_categories.yml +0 -3569
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://bluekai
|
5
|
+
uri: https://services.bluekai.com/Services/WS/classificationCategories/424547?bksig=PcRmnygfAQ2726R%2BkEJekFp5rmBboLgbhbcxrq3iCfQ=&bkuid=bluekai-api-user-key
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"description":"an example category wohooo","name":"Test Category 321"}'
|
@@ -17,9 +17,9 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
- Wed,
|
20
|
+
- Wed, 15 Apr 2015 09:55:40 GMT
|
21
21
|
Set-Cookie:
|
22
|
-
- JSESSIONID=
|
22
|
+
- JSESSIONID=86DB25C279E04F63A95A386ECAAF42F7; Path=/Services; HttpOnly
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Cneonction:
|
@@ -31,18 +31,18 @@ http_interactions:
|
|
31
31
|
string: |-
|
32
32
|
{
|
33
33
|
"name" : "Test Category 321",
|
34
|
-
"id" :
|
34
|
+
"id" : 424547,
|
35
35
|
"description" : "an example category wohooo",
|
36
36
|
"leaf" : true,
|
37
37
|
"notes" : "",
|
38
|
-
"parent_id" :
|
39
|
-
"created_at" : "2015-04-
|
40
|
-
"updated_at" : "2015-04-
|
41
|
-
"navigation_only" : false,
|
38
|
+
"parent_id" : 417811,
|
39
|
+
"created_at" : "2015-04-09 04:59:47-0500",
|
40
|
+
"updated_at" : "2015-04-15 04:55:40-0500",
|
42
41
|
"analytics_excluded" : false,
|
43
42
|
"mutex_children" : false,
|
43
|
+
"navigation_only" : false,
|
44
44
|
"rules" : [ ]
|
45
45
|
}
|
46
46
|
http_version:
|
47
|
-
recorded_at: Wed,
|
47
|
+
recorded_at: Wed, 15 Apr 2015 09:55:40 GMT
|
48
48
|
recorded_with: VCR 2.9.3
|