bluekai 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/lib/bluekai/category.rb +145 -0
  4. data/lib/bluekai/client.rb +20 -321
  5. data/lib/bluekai/rule.rb +165 -0
  6. data/lib/bluekai/user_data.rb +90 -0
  7. data/lib/bluekai/version.rb +1 -1
  8. data/lib/bluekai.rb +3 -0
  9. data/spec/fixtures/signatures/0e01a80ff1ca77f4fd32b58ff48310168539a9a26e4ef527042b7bab78d4648a +1 -0
  10. data/spec/fixtures/signatures/7fe2b3662915bf82890e1fe870480885e0744b12832569c5d7017a0fc42d5527 +1 -0
  11. data/spec/fixtures/signatures/8cd7ba76199d2b34be042841a2dd69310619dcac0f3dd4f24bae6b5fb5f9e302 +1 -0
  12. data/spec/fixtures/signatures/95768bffa5416007061da13a2a0368e52a4bea3451ac2dfede43f6a6841ac402 +1 -0
  13. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/creates_a_category.yml +10 -10
  14. data/spec/fixtures/vcr_cassettes/Bluekai_Category/lists_4_categories.yml +104 -0
  15. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/reads_a_category_and_its_reach.yml +1616 -1610
  16. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Category}/updates_a_category.yml +9 -9
  17. data/spec/fixtures/vcr_cassettes/Bluekai_Client/lists_Bluekai_taxonomy_nodes.yml +28225 -27370
  18. data/spec/fixtures/vcr_cassettes/Bluekai_Client/performs_a_ping.yml +4 -4
  19. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/creates_a_rule.yml +11 -11
  20. data/spec/fixtures/vcr_cassettes/Bluekai_Rule/lists_10_phint_rules.yml +234 -0
  21. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/reads_a_rule.yml +12 -10
  22. data/spec/fixtures/vcr_cassettes/{Bluekai_Client → Bluekai_Rule}/updates_a_rule.yml +7 -7
  23. data/spec/fixtures/vcr_cassettes/Bluekai_UserData/reads_user_information_given_bkuuid.yml +44 -0
  24. data/spec/lib/bluekai/category_integration_spec.rb +56 -0
  25. data/spec/lib/bluekai/client_integration_spec.rb +1 -141
  26. data/spec/lib/bluekai/client_spec.rb +0 -3
  27. data/spec/lib/bluekai/rule_integration_spec.rb +73 -0
  28. data/spec/lib/bluekai/user_data_integration_spec.rb +12 -0
  29. data/spec/spec_helper.rb +3 -2
  30. data/spec/support/signature_mock.rb +13 -0
  31. metadata +40 -19
  32. data/spec/fixtures/vcr_cassettes/Bluekai_Client/lists_10_phint_rules.yml +0 -194
  33. 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-domain.com/Services/WS/classificationCategories/424251?bksig=6nWdj4cOVG4Cnjm/9qfmjG5MKJ8h446WQKBzT2AP30w=&bkuid=bluekai-api-user-key
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, 08 Apr 2015 10:26:10 GMT
20
+ - Wed, 15 Apr 2015 09:55:40 GMT
21
21
  Set-Cookie:
22
- - JSESSIONID=B2B5C8E137645B87EC6C602FDAF735AC; Path=/Services; HttpOnly
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" : 424251,
34
+ "id" : 424547,
35
35
  "description" : "an example category wohooo",
36
36
  "leaf" : true,
37
37
  "notes" : "",
38
- "parent_id" : 422741,
39
- "created_at" : "2015-04-08 05:21:29-0500",
40
- "updated_at" : "2015-04-08 05:26:10-0500",
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, 08 Apr 2015 10:26:11 GMT
47
+ recorded_at: Wed, 15 Apr 2015 09:55:40 GMT
48
48
  recorded_with: VCR 2.9.3