twingly-search 5.1.2 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci-build-and-install-gem.yml +21 -0
  3. data/.github/workflows/ci.yml +27 -0
  4. data/CHANGELOG.md +58 -0
  5. data/README.md +18 -7
  6. data/examples/find_all_posts_mentioning_github.rb +8 -2
  7. data/lib/twingly/livefeed.rb +2 -0
  8. data/lib/twingly/livefeed/client.rb +5 -3
  9. data/lib/twingly/livefeed/error.rb +6 -1
  10. data/lib/twingly/livefeed/parser.rb +6 -3
  11. data/lib/twingly/livefeed/post.rb +34 -4
  12. data/lib/twingly/livefeed/result.rb +13 -9
  13. data/lib/twingly/livefeed/version.rb +3 -1
  14. data/lib/twingly/search.rb +2 -0
  15. data/lib/twingly/search/client.rb +4 -2
  16. data/lib/twingly/search/error.rb +12 -2
  17. data/lib/twingly/search/parser.rb +6 -3
  18. data/lib/twingly/search/post.rb +34 -4
  19. data/lib/twingly/search/query.rb +10 -3
  20. data/lib/twingly/search/result.rb +11 -5
  21. data/lib/twingly/search/version.rb +3 -1
  22. data/profiler/fixtures/vcr_cassettes/blog_livefeed_100.yml +43 -0
  23. data/profiler/fixtures/vcr_cassettes/blog_search_100.yml +43 -0
  24. data/profiler/profile_helper.rb +18 -0
  25. data/profiler/profile_livefeed.rb +21 -0
  26. data/profiler/profile_search.rb +23 -0
  27. data/spec/client_spec.rb +3 -3
  28. data/spec/error_spec.rb +4 -0
  29. data/spec/fixtures/unauthenticated_api_key_result.xml +3 -0
  30. data/spec/fixtures/unauthorized_api_key_result.xml +3 -3
  31. data/spec/fixtures/vcr_cassettes/search_for_spotify_on_sv_blogs.yml +1301 -565
  32. data/spec/livefeed/client_spec.rb +2 -2
  33. data/spec/livefeed/error_spec.rb +1 -0
  34. data/spec/livefeed/parser_spec.rb +3 -3
  35. data/spec/livefeed/post_spec.rb +47 -0
  36. data/spec/livefeed/result_spec.rb +22 -8
  37. data/spec/parser_spec.rb +11 -3
  38. data/spec/post_spec.rb +48 -0
  39. data/spec/query_spec.rb +6 -6
  40. data/spec/result_spec.rb +20 -6
  41. data/twingly-search-api-ruby.gemspec +8 -6
  42. metadata +60 -20
  43. data/.travis.yml +0 -21
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- before_install:
4
- - gem update bundler
5
- cache: bundler
6
- rvm:
7
- - 2.1
8
- - 2.2
9
- - 2.3.0
10
- - 2.4.0
11
- - jruby-9.0.0.0
12
- notifications:
13
- email: false
14
- hipchat:
15
- on_success: never
16
- on_failure: change
17
- template:
18
- - '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (<a href="%{build_url}">Details</a>/<a href="%{compare_url}">Change view</a>)'
19
- format: html
20
- rooms:
21
- secure: KU2mE9mcqvBczfiCTgTsgMmJPyW02AH/0Rzcli7oj3HVbiHGw8t5JlBQWYROF5TPht0kFhGkiwVPl6HUt/VAGxOIBsOp+/8MXR6aK5FkdIw6g8DMKlDjm9a2QijOT9rvat5bZ3l6hm3snojgkI3s9pLKmLq9l+KalAsPcevwKAQ=