pinboard_api 0.7.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/.travis.yml +2 -1
  2. data/README.md +26 -6
  3. data/lib/core_ext/blank.rb +26 -0
  4. data/lib/pinboard_api.rb +8 -2
  5. data/lib/pinboard_api/exceptions.rb +5 -0
  6. data/lib/pinboard_api/post.rb +54 -40
  7. data/lib/pinboard_api/request_utils.rb +22 -0
  8. data/lib/pinboard_api/tag.rb +10 -8
  9. data/lib/pinboard_api/version.rb +1 -1
  10. data/spec/core_ext/blank_spec.rb +19 -0
  11. data/spec/exceptions_spec.rb +7 -0
  12. data/spec/pinboard_api_spec.rb +9 -6
  13. data/spec/post_spec.rb +124 -42
  14. data/spec/support/pinboard_configuration.rb +1 -0
  15. data/spec/support/request_utils_spec.rb +29 -0
  16. data/spec/support/vcr.rb +13 -3
  17. data/spec/tag_spec.rb +15 -13
  18. data/spec/user_spec.rb +1 -5
  19. data/spec/vcr_cassettes/posts/all/custom_count.json +1 -0
  20. data/spec/vcr_cassettes/posts/all/custom_tag.json +1 -0
  21. data/spec/vcr_cassettes/posts/all/custom_times.json +1 -0
  22. data/spec/vcr_cassettes/posts/all/default_values.json +1 -0
  23. data/spec/vcr_cassettes/posts/all/not_found.json +1 -0
  24. data/spec/vcr_cassettes/posts/all/with_meta.json +1 -0
  25. data/spec/vcr_cassettes/posts/create.json +1 -0
  26. data/spec/vcr_cassettes/posts/dates/custom_tag.json +1 -0
  27. data/spec/vcr_cassettes/posts/dates/default_values.json +1 -0
  28. data/spec/vcr_cassettes/posts/delete/unsuccessful_class.json +1 -0
  29. data/spec/vcr_cassettes/posts/destroy/successful_class.json +1 -0
  30. data/spec/vcr_cassettes/posts/destroy/successful_instance.json +1 -0
  31. data/spec/vcr_cassettes/posts/destroy/unsuccessful_instance.json +1 -0
  32. data/spec/vcr_cassettes/posts/find/found.json +1 -0
  33. data/spec/vcr_cassettes/posts/find/not_found.json +1 -0
  34. data/spec/vcr_cassettes/posts/recent/custom_count.json +1 -0
  35. data/spec/vcr_cassettes/posts/recent/custom_tag.json +1 -0
  36. data/spec/vcr_cassettes/posts/recent/default_values.json +1 -0
  37. data/spec/vcr_cassettes/posts/save.json +1 -0
  38. data/spec/vcr_cassettes/posts/suggest.json +1 -0
  39. data/spec/vcr_cassettes/posts/update.json +1 -0
  40. data/spec/vcr_cassettes/tags/all.json +1 -0
  41. data/spec/vcr_cassettes/tags/destroy/successful_class.json +1 -0
  42. data/spec/vcr_cassettes/tags/destroy/successful_instance.json +1 -0
  43. data/spec/vcr_cassettes/tags/destroy/unsuccessful_class.json +1 -0
  44. data/spec/vcr_cassettes/tags/destroy/unsuccessful_instance.json +1 -0
  45. data/spec/vcr_cassettes/tags/find/found.json +1 -0
  46. data/spec/vcr_cassettes/tags/find/not_found.json +1 -0
  47. data/spec/vcr_cassettes/tags/rename/successful.json +1 -0
  48. data/spec/vcr_cassettes/tags/rename/unsuccessful.json +1 -0
  49. data/spec/vcr_cassettes/user/secret.json +1 -0
  50. metadata +73 -58
  51. data/spec/fixtures/vcr_cassettes/posts/all/custom_count.json +0 -1
  52. data/spec/fixtures/vcr_cassettes/posts/all/custom_tag.json +0 -1
  53. data/spec/fixtures/vcr_cassettes/posts/all/custom_times.json +0 -1
  54. data/spec/fixtures/vcr_cassettes/posts/all/default_values.json +0 -1
  55. data/spec/fixtures/vcr_cassettes/posts/all/not_found.json +0 -1
  56. data/spec/fixtures/vcr_cassettes/posts/dates/custom_tag.json +0 -1
  57. data/spec/fixtures/vcr_cassettes/posts/dates/default_values.json +0 -1
  58. data/spec/fixtures/vcr_cassettes/posts/delete/unsuccessful_class.json +0 -1
  59. data/spec/fixtures/vcr_cassettes/posts/destroy/successful_class.json +0 -1
  60. data/spec/fixtures/vcr_cassettes/posts/destroy/successful_instance.json +0 -1
  61. data/spec/fixtures/vcr_cassettes/posts/destroy/unsuccessful_instance.json +0 -1
  62. data/spec/fixtures/vcr_cassettes/posts/find/found.json +0 -1
  63. data/spec/fixtures/vcr_cassettes/posts/find/not_found.json +0 -1
  64. data/spec/fixtures/vcr_cassettes/posts/recent/custom_count.json +0 -1
  65. data/spec/fixtures/vcr_cassettes/posts/recent/custom_tag.json +0 -1
  66. data/spec/fixtures/vcr_cassettes/posts/recent/default_values.json +0 -1
  67. data/spec/fixtures/vcr_cassettes/posts/suggest.json +0 -1
  68. data/spec/fixtures/vcr_cassettes/posts/update.json +0 -1
  69. data/spec/fixtures/vcr_cassettes/tags/all.json +0 -1
  70. data/spec/fixtures/vcr_cassettes/tags/destroy/successful_class.json +0 -1
  71. data/spec/fixtures/vcr_cassettes/tags/destroy/successful_instance.json +0 -1
  72. data/spec/fixtures/vcr_cassettes/tags/destroy/unsuccessful_class.json +0 -1
  73. data/spec/fixtures/vcr_cassettes/tags/destroy/unsuccessful_instance.json +0 -1
  74. data/spec/fixtures/vcr_cassettes/tags/find/found.json +0 -1
  75. data/spec/fixtures/vcr_cassettes/tags/find/not_found.json +0 -1
  76. data/spec/fixtures/vcr_cassettes/tags/rename/successful.json +0 -1
  77. data/spec/fixtures/vcr_cassettes/tags/rename/unsuccessful.json +0 -1
  78. data/spec/fixtures/vcr_cassettes/user/secret.json +0 -1

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.