datasift 3.1.5 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/.yardopts +4 -0
  4. data/CHANGELOG.md +23 -0
  5. data/Gemfile +13 -0
  6. data/README.md +17 -16
  7. data/VERSION +1 -1
  8. data/datasift.gemspec +8 -14
  9. data/examples/account_identity_eg.rb +48 -0
  10. data/examples/account_identity_limit_eg.rb +68 -0
  11. data/examples/account_identity_token_eg.rb +70 -0
  12. data/examples/auth.rb +4 -4
  13. data/examples/core_api_eg.rb +1 -2
  14. data/examples/historics_eg.rb +7 -1
  15. data/examples/pylon_eg.rb +116 -0
  16. data/lib/account.rb +6 -0
  17. data/lib/account_identity.rb +73 -0
  18. data/lib/account_identity_limit.rb +85 -0
  19. data/lib/account_identity_token.rb +86 -0
  20. data/lib/api/api_resource.rb +14 -5
  21. data/lib/cli.rb +306 -132
  22. data/lib/datasift.rb +82 -47
  23. data/lib/errors.rb +21 -5
  24. data/lib/historics.rb +71 -40
  25. data/lib/historics_preview.rb +25 -8
  26. data/lib/managed_source.rb +69 -25
  27. data/lib/managed_source_auth.rb +21 -6
  28. data/lib/managed_source_resource.rb +21 -6
  29. data/lib/push.rb +132 -65
  30. data/lib/pylon.rb +122 -0
  31. data/test/datasift/core_api_test.rb +116 -90
  32. data/test/datasift/historics_preview_api_test.rb +27 -58
  33. data/test/datasift/push_api_test.rb +156 -141
  34. data/test/fixtures/cassettes/core/after_historic_dpu.json +1 -0
  35. data/test/fixtures/cassettes/core/balance_get.json +1 -0
  36. data/test/fixtures/cassettes/core/before_dpu.json +1 -0
  37. data/test/fixtures/cassettes/core/before_historic_dpu.json +1 -0
  38. data/test/fixtures/cassettes/core/compile_success.json +1 -0
  39. data/test/fixtures/cassettes/core/dpu_get_cost.json +1 -0
  40. data/test/fixtures/cassettes/core/dpu_throw_badrequest.json +1 -0
  41. data/test/fixtures/cassettes/core/historic_dpu.json +1 -0
  42. data/test/fixtures/cassettes/core/usage_success.json +1 -0
  43. data/test/fixtures/cassettes/core/validate_invalid_hash.json +1 -0
  44. data/test/fixtures/cassettes/core/validate_success_bool.json +1 -0
  45. data/test/fixtures/cassettes/core/validate_success_hash.json +1 -0
  46. data/test/fixtures/cassettes/preview/before_preview_create.json +1 -0
  47. data/test/fixtures/cassettes/preview/before_preview_get.json +1 -0
  48. data/test/fixtures/cassettes/preview/preview_create_success.json +1 -0
  49. data/test/fixtures/cassettes/preview/preview_get_success.json +1 -0
  50. data/test/fixtures/cassettes/push/after_push_create.json +1 -0
  51. data/test/fixtures/cassettes/push/after_push_get.json +1 -0
  52. data/test/fixtures/cassettes/push/after_push_log.json +1 -0
  53. data/test/fixtures/cassettes/push/after_push_pause.json +1 -0
  54. data/test/fixtures/cassettes/push/after_push_resume.json +1 -0
  55. data/test/fixtures/cassettes/push/after_push_stop.json +1 -0
  56. data/test/fixtures/cassettes/push/after_push_update.json +1 -0
  57. data/test/fixtures/cassettes/push/before_push_create.json +1 -0
  58. data/test/fixtures/cassettes/push/before_push_delete.json +1 -0
  59. data/test/fixtures/cassettes/push/before_push_get.json +1 -0
  60. data/test/fixtures/cassettes/push/before_push_log.json +1 -0
  61. data/test/fixtures/cassettes/push/before_push_pause.json +1 -0
  62. data/test/fixtures/cassettes/push/before_push_resume.json +1 -0
  63. data/test/fixtures/cassettes/push/before_push_stop.json +1 -0
  64. data/test/fixtures/cassettes/push/before_push_update.json +1 -0
  65. data/test/fixtures/cassettes/push/push_create.json +1 -0
  66. data/test/fixtures/cassettes/push/push_delete.json +1 -0
  67. data/test/fixtures/cassettes/push/push_get_by_id.json +1 -0
  68. data/test/fixtures/cassettes/push/push_log_with_id.json +1 -0
  69. data/test/fixtures/cassettes/push/push_pause.json +1 -0
  70. data/test/fixtures/cassettes/push/push_resume.json +1 -0
  71. data/test/fixtures/cassettes/push/push_stop.json +1 -0
  72. data/test/fixtures/cassettes/push/push_update.json +1 -0
  73. data/test/fixtures/cassettes/push/push_validate.json +1 -0
  74. data/test/test_helper.rb +31 -1
  75. metadata +64 -104
  76. data/examples/dynamic_list_eg.rb +0 -74
  77. data/examples/dynamic_list_replace_eg.rb +0 -45
  78. data/lib/dynamic_list.rb +0 -66
  79. data/lib/dynamic_list_replace.rb +0 -45
  80. data/test/fixtures/balance.json +0 -1
  81. data/test/fixtures/compile_csdl_invalid.json +0 -1
  82. data/test/fixtures/compile_csdl_valid.json +0 -1
  83. data/test/fixtures/dpu_valid.json +0 -1
  84. data/test/fixtures/preview_create_valid.json +0 -1
  85. data/test/fixtures/preview_get_running.json +0 -1
  86. data/test/fixtures/preview_get_succeeded.json +0 -1
  87. data/test/fixtures/push_create_valid.json +0 -1
  88. data/test/fixtures/push_get_list_by_hash_valid.json +0 -1
  89. data/test/fixtures/push_get_list_by_historics_id_valid.json +0 -1
  90. data/test/fixtures/push_get_list_valid.json +0 -1
  91. data/test/fixtures/push_get_valid.json +0 -1
  92. data/test/fixtures/push_log_valid.json +0 -1
  93. data/test/fixtures/push_pause_valid.json +0 -1
  94. data/test/fixtures/push_stop_valid.json +0 -1
  95. data/test/fixtures/push_validate_valid.json +0 -1
  96. data/test/fixtures/usage_current.json +0 -1
  97. data/test/fixtures/validate_csdl_invalid.json +0 -1
  98. data/test/fixtures/validate_csdl_valid.json +0 -1
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:37 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8945"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1979"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTozNyIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:37 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:47 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8870"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1969"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTo0NyIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:47 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:47 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8865"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1969"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImY0MjkxYzc1OThkNGJiMzc4NzdmMGE3MDkwMDliNmNhIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5NDcsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTQ3LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:48 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:34 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8958"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1982"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTozNCIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:35 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:35 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8953"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1982"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjFmYmJmMzI4Yzg2YmM4MGJjZjFmOGE4NGUyYjgwNWUzIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzUsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTM1LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:35 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:49 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8844"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1967"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTo0OSIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:50 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:50 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8839"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1967"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImYzNDU1MWE2ZDY4NWY4ZjM1NmFmMDEwYTA5YTgzM2UzIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5NTAsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTUwLCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:51 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:39 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8934"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1978"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTozOSIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:39 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:39 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8929"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1977"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImE4MzA3MmNmMDI0Y2VhYjUyMzQ0ZDk5ODA1ZjFjYjM2Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzksInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTM5LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:40 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:30 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9032"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1986"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTozMCIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:30 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:31 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9027"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1986"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImZjZDViZWJiODVkNzZkYjg0ZWI0MmU4ZmM2MjU2MjZlIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzAsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTMwLCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:31 GMT"},{"request":{"method":"put","uri":"https://api.datasift.com/v1.1/push/pause","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:31 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9026"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1985"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImZjZDViZWJiODVkNzZkYjg0ZWI0MmU4ZmM2MjU2MjZlIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzAsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6InBhdXNlZCIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTMwLCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:31 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:44 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8907"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1972"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTo0NCIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:44 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:44 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8902"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1972"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImI2ZWU3YzVhMDBmMWY4YzQ5YWNhYmFjNGRkZTMyMGRkIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5NDQsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTQ0LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:45 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:31 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9019"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1985"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0wNS0xNCAxNTowNTozMSIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:32 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:32 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9014"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1985"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjJmZTdlYjk1ZmYyNmNlOTk0ZGMyN2M5OWM4YzRmYWQ4Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzIsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTMyLCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:33 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:37 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8940"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1979"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImRkYzhjMTU3ZjYxNmFlZTNhYWExY2ZlNzA2NmJjZWZmIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzcsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTM3LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:38 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"delete","uri":"https://api.datasift.com/v1.1/push/delete?id=f4291c7598d4bb37877f0a709009b6ca","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/x-www-form-urlencoded"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:48 GMT"],"Content-Type":["text/html"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8864"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1969"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:48 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.1/push/get?id=1fbbf328c86bc80bcf1f8a84e2b805e3","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/x-www-form-urlencoded"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:36 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8952"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1981"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjFmYmJmMzI4Yzg2YmM4MGJjZjFmOGE4NGUyYjgwNWUzIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzUsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOjAsImludGVyYWN0aW9uX2NvdW50IjowLCJsb3N0X2RhdGEi\nOmZhbHNlLCJzdGFydCI6MTQzMTYxNTkzNSwiZW5kIjpudWxsfQ==\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:37 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.1/push/log?id=f34551a6d685f8f356af010a09a833e3&order_by=request_time&order_dir=desc&page=1&per_page=20","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/x-www-form-urlencoded"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:50 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8838"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1966"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJjb3VudCI6MCwibG9nX2VudHJpZXMiOltdfQ==\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:51 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.1/push/pause","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:41 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8928"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1977"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImE4MzA3MmNmMDI0Y2VhYjUyMzQ0ZDk5ODA1ZjFjYjM2Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzksInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6InBhdXNlZCIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTM5LCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:41 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.1/push/resume","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:31 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9025"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1985"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImZjZDViZWJiODVkNzZkYjg0ZWI0MmU4ZmM2MjU2MjZlIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzAsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMx\nNjE1OTMwLCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:32 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.1/push/stop","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:45 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8901"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1972"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImI2ZWU3YzVhMDBmMWY4YzQ5YWNhYmFjNGRkZTMyMGRkIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5NDQsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImZpbmlzaGluZyIs\nImxhc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1h\naW5pbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0Ijox\nNDMxNjE1OTQ0LCJlbmQiOjE0MzE2MTU5NDV9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:46 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/update","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["320"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:33 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9009"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1984"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjJmZTdlYjk1ZmYyNmNlOTk0ZGMyN2M5OWM4YzRmYWQ4Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0MzE2MTU5MzIsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOjAsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDMxNjE1\nOTMyLCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:33 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/validate","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["271"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:48 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8854"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1968"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2584"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJtZXNzYWdlIjoiVmFsaWRhdGVkIHN1Y2Nlc3Nm\ndWxseSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:49 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.1/push/validate","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*; q=0.5, application/xml"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.1 Ruby/v3.2.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["271"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 14 May 2015 15:05:49 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.1"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["8849"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1431617916"],"X-Ratelimit-Reset-Ttl":["1968"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"X-Served-By":["ded2587"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJtZXNzYWdlIjoiVmFsaWRhdGVkIHN1Y2Nlc3Nm\ndWxseSJ9\n"},"http_version":null},"recorded_at":"Thu, 14 May 2015 15:05:50 GMT"}],"recorded_with":"VCR 2.9.3"}
data/test/test_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  require 'simplecov'
2
- SimpleCov.start
2
+ SimpleCov.start do
3
+ add_filter "/test/"
4
+ add_filter "/examples/"
5
+ end
3
6
 
4
7
  require 'datasift'
5
8
  require 'minitest'
@@ -9,6 +12,18 @@ require 'minitest/autorun'
9
12
  require 'webmock/minitest'
10
13
  require 'multi_json'
11
14
  require 'ostruct'
15
+ require 'vcr'
16
+
17
+ STATUS = OpenStruct.new(
18
+ valid: 200,
19
+ created: 201,
20
+ accepted: 202,
21
+ no_content: 204,
22
+ bad_request: 400,
23
+ not_found: 404,
24
+ conflict: 409,
25
+ gone: 410
26
+ )
12
27
 
13
28
  def fixture_path
14
29
  File.expand_path('../fixtures', __FILE__)
@@ -17,3 +32,18 @@ end
17
32
  def fixture(file)
18
33
  File.new(fixture_path + '/' + file)
19
34
  end
35
+
36
+ VCR.configure do |c|
37
+ c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures', 'cassettes')
38
+ c.default_cassette_options = {
39
+ record: :new_episodes,
40
+ decode_compressed_response: true,
41
+ serialize_with: :json,
42
+ preserve_exact_body_bytes: true
43
+ }
44
+ c.hook_into :webmock
45
+ c.filter_sensitive_data('<USERNAME:API_KEY>') { |interaction| interaction.request.headers['Authorization'].first }
46
+ c.filter_sensitive_data('<BASE64_STRING>') { |interaction| interaction.request.body }
47
+ end
48
+
49
+ include WebMock::API
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasift
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DataSift
8
+ - Courtney Robinson
9
+ - Jason Dugdale
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
13
+ date: 2015-05-15 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: rest-client
@@ -28,14 +30,14 @@ dependencies:
28
30
  name: multi_json
29
31
  requirement: !ruby/object:Gem::Requirement
30
32
  requirements:
31
- - - ">="
33
+ - - "~>"
32
34
  - !ruby/object:Gem::Version
33
35
  version: '1.7'
34
36
  type: :runtime
35
37
  prerelease: false
36
38
  version_requirements: !ruby/object:Gem::Requirement
37
39
  requirements:
38
- - - ">="
40
+ - - "~>"
39
41
  - !ruby/object:Gem::Version
40
42
  version: '1.7'
41
43
  - !ruby/object:Gem::Dependency
@@ -44,98 +46,28 @@ dependencies:
44
46
  requirements:
45
47
  - - "~>"
46
48
  - !ruby/object:Gem::Version
47
- version: 0.0.4
49
+ version: 0.0.5
48
50
  type: :runtime
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
54
  - - "~>"
53
55
  - !ruby/object:Gem::Version
54
- version: 0.0.4
55
- - !ruby/object:Gem::Dependency
56
- name: rdoc
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: webmock
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.17'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.17'
56
+ version: 0.0.5
83
57
  - !ruby/object:Gem::Dependency
84
- name: shoulda
58
+ name: bundler
85
59
  requirement: !ruby/object:Gem::Requirement
86
60
  requirements:
87
61
  - - "~>"
88
62
  - !ruby/object:Gem::Version
89
- version: '2.11'
63
+ version: '1.0'
90
64
  type: :development
91
65
  prerelease: false
92
66
  version_requirements: !ruby/object:Gem::Requirement
93
67
  requirements:
94
68
  - - "~>"
95
69
  - !ruby/object:Gem::Version
96
- version: '2.11'
97
- - !ruby/object:Gem::Dependency
98
- name: minitest
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '5.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rake
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: simplecov
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
70
+ version: '1.0'
139
71
  description: The official Ruby library for accessing the DataSift API. See http://datasift.com/
140
72
  for full details and to sign up for an account.
141
73
  email:
@@ -146,6 +78,7 @@ extra_rdoc_files: []
146
78
  files:
147
79
  - ".gitignore"
148
80
  - ".travis.yml"
81
+ - ".yardopts"
149
82
  - CHANGELOG.md
150
83
  - Gemfile
151
84
  - LICENSE
@@ -154,22 +87,26 @@ files:
154
87
  - Rakefile
155
88
  - VERSION
156
89
  - datasift.gemspec
90
+ - examples/account_identity_eg.rb
91
+ - examples/account_identity_limit_eg.rb
92
+ - examples/account_identity_token_eg.rb
157
93
  - examples/auth.rb
158
94
  - examples/cli.sh
159
95
  - examples/core_api_eg.rb
160
- - examples/dynamic_list_eg.rb
161
- - examples/dynamic_list_replace_eg.rb
162
96
  - examples/historics_eg.rb
163
97
  - examples/historics_preview_eg.rb
164
98
  - examples/live_stream_eg.rb
165
99
  - examples/managed_source_eg.rb
166
100
  - examples/pull.rb
167
101
  - examples/push_eg.rb
102
+ - examples/pylon_eg.rb
103
+ - lib/account.rb
104
+ - lib/account_identity.rb
105
+ - lib/account_identity_limit.rb
106
+ - lib/account_identity_token.rb
168
107
  - lib/api/api_resource.rb
169
108
  - lib/cli.rb
170
109
  - lib/datasift.rb
171
- - lib/dynamic_list.rb
172
- - lib/dynamic_list_replace.rb
173
110
  - lib/errors.rb
174
111
  - lib/historics.rb
175
112
  - lib/historics_preview.rb
@@ -178,28 +115,50 @@ files:
178
115
  - lib/managed_source_auth.rb
179
116
  - lib/managed_source_resource.rb
180
117
  - lib/push.rb
118
+ - lib/pylon.rb
181
119
  - test/datasift/core_api_test.rb
182
120
  - test/datasift/historics_preview_api_test.rb
183
121
  - test/datasift/push_api_test.rb
184
- - test/fixtures/balance.json
185
- - test/fixtures/compile_csdl_invalid.json
186
- - test/fixtures/compile_csdl_valid.json
187
- - test/fixtures/dpu_valid.json
188
- - test/fixtures/preview_create_valid.json
189
- - test/fixtures/preview_get_running.json
190
- - test/fixtures/preview_get_succeeded.json
191
- - test/fixtures/push_create_valid.json
192
- - test/fixtures/push_get_list_by_hash_valid.json
193
- - test/fixtures/push_get_list_by_historics_id_valid.json
194
- - test/fixtures/push_get_list_valid.json
195
- - test/fixtures/push_get_valid.json
196
- - test/fixtures/push_log_valid.json
197
- - test/fixtures/push_pause_valid.json
198
- - test/fixtures/push_stop_valid.json
199
- - test/fixtures/push_validate_valid.json
200
- - test/fixtures/usage_current.json
201
- - test/fixtures/validate_csdl_invalid.json
202
- - test/fixtures/validate_csdl_valid.json
122
+ - test/fixtures/cassettes/core/after_historic_dpu.json
123
+ - test/fixtures/cassettes/core/balance_get.json
124
+ - test/fixtures/cassettes/core/before_dpu.json
125
+ - test/fixtures/cassettes/core/before_historic_dpu.json
126
+ - test/fixtures/cassettes/core/compile_success.json
127
+ - test/fixtures/cassettes/core/dpu_get_cost.json
128
+ - test/fixtures/cassettes/core/dpu_throw_badrequest.json
129
+ - test/fixtures/cassettes/core/historic_dpu.json
130
+ - test/fixtures/cassettes/core/usage_success.json
131
+ - test/fixtures/cassettes/core/validate_invalid_hash.json
132
+ - test/fixtures/cassettes/core/validate_success_bool.json
133
+ - test/fixtures/cassettes/core/validate_success_hash.json
134
+ - test/fixtures/cassettes/preview/before_preview_create.json
135
+ - test/fixtures/cassettes/preview/before_preview_get.json
136
+ - test/fixtures/cassettes/preview/preview_create_success.json
137
+ - test/fixtures/cassettes/preview/preview_get_success.json
138
+ - test/fixtures/cassettes/push/after_push_create.json
139
+ - test/fixtures/cassettes/push/after_push_get.json
140
+ - test/fixtures/cassettes/push/after_push_log.json
141
+ - test/fixtures/cassettes/push/after_push_pause.json
142
+ - test/fixtures/cassettes/push/after_push_resume.json
143
+ - test/fixtures/cassettes/push/after_push_stop.json
144
+ - test/fixtures/cassettes/push/after_push_update.json
145
+ - test/fixtures/cassettes/push/before_push_create.json
146
+ - test/fixtures/cassettes/push/before_push_delete.json
147
+ - test/fixtures/cassettes/push/before_push_get.json
148
+ - test/fixtures/cassettes/push/before_push_log.json
149
+ - test/fixtures/cassettes/push/before_push_pause.json
150
+ - test/fixtures/cassettes/push/before_push_resume.json
151
+ - test/fixtures/cassettes/push/before_push_stop.json
152
+ - test/fixtures/cassettes/push/before_push_update.json
153
+ - test/fixtures/cassettes/push/push_create.json
154
+ - test/fixtures/cassettes/push/push_delete.json
155
+ - test/fixtures/cassettes/push/push_get_by_id.json
156
+ - test/fixtures/cassettes/push/push_log_with_id.json
157
+ - test/fixtures/cassettes/push/push_pause.json
158
+ - test/fixtures/cassettes/push/push_resume.json
159
+ - test/fixtures/cassettes/push/push_stop.json
160
+ - test/fixtures/cassettes/push/push_update.json
161
+ - test/fixtures/cassettes/push/push_validate.json
203
162
  - test/test_helper.rb
204
163
  homepage: https://github.com/datasift/datasift-ruby
205
164
  licenses:
@@ -213,12 +172,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
172
  requirements:
214
173
  - - ">="
215
174
  - !ruby/object:Gem::Version
216
- version: '0'
175
+ version: 2.0.0
217
176
  required_rubygems_version: !ruby/object:Gem::Requirement
218
177
  requirements:
219
178
  - - ">="
220
179
  - !ruby/object:Gem::Version
221
- version: 1.3.6
180
+ version: 1.3.5
222
181
  requirements: []
223
182
  rubyforge_project:
224
183
  rubygems_version: 2.4.6
@@ -226,3 +185,4 @@ signing_key:
226
185
  specification_version: 4
227
186
  summary: DataSift is a simple wrapper for the DataSift API.
228
187
  test_files: []
188
+ has_rdoc:
@@ -1,74 +0,0 @@
1
- require './auth'
2
-
3
- class DynamicListApi < DataSiftExample
4
- def initialize
5
- super
6
- run
7
- end
8
-
9
- def run
10
- begin
11
-
12
- ##
13
- # Text Dynamic Lists
14
- puts "\nCreating a Dynamic List containing text items"
15
- puts 'Creating a dynamic list: /list/create'
16
- list = @datasift.dynamic_list.create('text', 'My dynamic list')
17
- puts list
18
-
19
- id = list[:data][:id]
20
- items = ['keyword1', 'keyword2']
21
-
22
- puts "\nGet a list of your Dynamic Lists: /list/get"
23
- puts @datasift.dynamic_list.get
24
-
25
- puts "\nAdding items to the dynamic list: #{items}: /list/add"
26
- puts @datasift.dynamic_list.add(id, items)
27
-
28
- csdl = "interaction.content list_any \"#{id}\""
29
- puts "\nCompile the following CSDL using a Dynamic List:"
30
- puts csdl
31
- puts @datasift.compile csdl
32
-
33
- remove_items = ['keyword1']
34
- puts "\nRemoving item #{remove_items} from the dynamic list: /list/remove"
35
- puts @datasift.dynamic_list.remove(id, remove_items)
36
-
37
- puts "\nCheck #{remove_items} has been removed from the list: /list/exists"
38
- puts @datasift.dynamic_list.exists(id, remove_items)
39
-
40
- remaining_item = ['keyword2']
41
- puts "\nCheck #{remaining_item} still exists in the list: /list/exists"
42
- puts @datasift.dynamic_list.exists(id, remaining_item)
43
-
44
- puts "\nDeleting the list: /list/delete"
45
- puts @datasift.dynamic_list.delete id
46
-
47
- ##
48
- # Integer Dynamic Lists
49
- puts "\n --- \nCreating a Dynamic List containing integers"
50
- puts 'Creating a dynamic list: /list/create'
51
- list = @datasift.dynamic_list.create('integer', 'My dynamic integer list')
52
- puts list
53
-
54
- id = list[:data][:id]
55
- items = [11111, 22222, 33333, 44444]
56
-
57
- puts "\nAdding integers to the dynamic list: #{items}: /list/add"
58
- puts @datasift.dynamic_list.add(id, items)
59
-
60
- csdl = "interaction.author.id list_in \"#{id}\""
61
- puts "\nCompile the following CSDL using a Dynamic List:"
62
- puts csdl
63
- puts @datasift.compile csdl
64
-
65
- puts "\nDeleting the list: /list/delete"
66
- puts @datasift.dynamic_list.delete id
67
-
68
- rescue DataSiftError => dse
69
- puts dse.message
70
- end
71
- end
72
- end
73
-
74
- DynamicListApi.new
@@ -1,45 +0,0 @@
1
- require './auth'
2
-
3
- class DynamicListReplaceApi < DataSiftExample
4
- def initialize
5
- super
6
- run
7
- end
8
-
9
- def run
10
- begin
11
-
12
- puts "\nCreating a dynamic list: /list/create"
13
- list = @datasift.dynamic_list.create('text', 'My dynamic list')
14
- puts list
15
-
16
- id = list[:data][:id]
17
-
18
- puts "\nStart a new replace list: /list/replace/start"
19
- replace = @datasift.dynamic_list_replace.start id
20
- puts replace
21
-
22
- puts "\nAbort the list replace: /list/replace/abort"
23
- puts @datasift.dynamic_list_replace.abort replace[:data][:id]
24
-
25
- puts "\nStart a new replace list (again): /list/replace/start"
26
- replace = @datasift.dynamic_list_replace.start id
27
- puts replace
28
-
29
- items = ['keyword1', 'keyword2']
30
- puts "\nAdd items #{items} to replacement list: /list/replace/add"
31
- puts @datasift.dynamic_list_replace.add(replace[:data][:id], items)
32
-
33
- puts "\nCommit the replacement list: /list/replace/commit"
34
- puts @datasift.dynamic_list_replace.commit replace[:data][:id]
35
-
36
- puts "\nCleanup: Delete the list: /list/delete"
37
- puts @datasift.dynamic_list.delete id
38
-
39
- rescue DataSiftError => dse
40
- puts dse.message
41
- end
42
- end
43
- end
44
-
45
- DynamicListReplaceApi.new