alchemy-api-rb 0.5.2 → 0.5.3

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/lib/alchemy-api/version.rb +1 -1
  3. data/lib/alchemy_api.rb +1 -1
  4. data/spec/alchemy_api_spec.rb +2 -2
  5. data/spec/vcr_cassettes/author_basic_html_json_search.yml +1 -1
  6. data/spec/vcr_cassettes/author_basic_url_json_search.yml +1 -1
  7. data/spec/vcr_cassettes/category_basic_text_json_search.yml +1 -1
  8. data/spec/vcr_cassettes/category_basic_url_json_search.yml +1 -1
  9. data/spec/vcr_cassettes/concept_basic_html_json_search.yml +1 -1
  10. data/spec/vcr_cassettes/concept_basic_text_json_search.yml +1 -1
  11. data/spec/vcr_cassettes/concept_basic_url_json_search.yml +1 -1
  12. data/spec/vcr_cassettes/entity_basic_html_json_search.yml +1 -1
  13. data/spec/vcr_cassettes/entity_basic_text_json_search.yml +1 -1
  14. data/spec/vcr_cassettes/entity_basic_url_json_search.yml +1 -1
  15. data/spec/vcr_cassettes/image_tagging_basic_url_json_search.yml +1 -1
  16. data/spec/vcr_cassettes/keyword_basic_html_json_search.yml +1 -1
  17. data/spec/vcr_cassettes/keyword_basic_text_json_search.yml +1 -1
  18. data/spec/vcr_cassettes/keyword_basic_url_json_search.yml +1 -1
  19. data/spec/vcr_cassettes/language_basic_html_json_search.yml +1 -1
  20. data/spec/vcr_cassettes/language_basic_text_json_search.yml +1 -1
  21. data/spec/vcr_cassettes/language_basic_url_json_search.yml +1 -1
  22. data/spec/vcr_cassettes/relation_basic_html_json_search.yml +1 -1
  23. data/spec/vcr_cassettes/relation_basic_text_json_search.yml +1 -1
  24. data/spec/vcr_cassettes/relation_basic_url_json_search.yml +1 -1
  25. data/spec/vcr_cassettes/sentiment_basic_html_json_search.yml +1 -1
  26. data/spec/vcr_cassettes/sentiment_basic_text_json_search.yml +1 -1
  27. data/spec/vcr_cassettes/sentiment_basic_url_json_search.yml +1 -1
  28. data/spec/vcr_cassettes/sentiment_targeted_html_json_search.yml +1 -1
  29. data/spec/vcr_cassettes/sentiment_targeted_text_json_search.yml +1 -1
  30. data/spec/vcr_cassettes/sentiment_targeted_url_json_search.yml +1 -1
  31. data/spec/vcr_cassettes/text_basic_html_json_search.yml +1 -1
  32. data/spec/vcr_cassettes/text_basic_url_json_search.yml +1 -1
  33. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baaa83a6ce076cd3d93dc314a06718d54446e79c
4
- data.tar.gz: 086b672fe89899b91f12018a5f71266ad8833fff
3
+ metadata.gz: 5947e1c39193afb380390949a140d77ad47b2560
4
+ data.tar.gz: 7d507ef3ae947730dedf9c7969adf2bbec5c701b
5
5
  SHA512:
6
- metadata.gz: c024274cb86f7965470269f9da27f6f6d28cf3aaebef73298184f6db051ff896ec8d894f5fbd039721479833ebd9b27f12ae00be4939f4ffdc238a54e3211dee
7
- data.tar.gz: 63de79ceb158ed9de1e7b0373dc5222bc1c8b755d84b389e1afd46c28e0ebf9a2ff5933c7a3668a10b2b55c1a4d60b6ec6148685fbab990e55fdf0cc2c8a6c46
6
+ metadata.gz: c96aed8ce6d1770a399d722438742ab0268e0fbb41469f422edc0d34952699ce7c876c0e95c98f28351a98a641abae7489ae75de519d10b81a16ccfff28f76dc
7
+ data.tar.gz: 213975afa00c3d1f68579c82bbcea016060e4e3c2d306f5169d6cda2de0d8360fcf96465f64d3926ccc9da62743626d6f5a837de33379f0a858e629e0d6b51c7
@@ -1,3 +1,3 @@
1
1
  module AlchemyAPI
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -16,7 +16,7 @@ require 'alchemy-api/taxonomy'
16
16
  require 'alchemy-api/image_tagging'
17
17
 
18
18
  module AlchemyAPI
19
- BASE_URL = 'http://access.alchemyapi.com/calls/'
19
+ BASE_URL = 'https://access.alchemyapi.com/calls/'
20
20
 
21
21
  def self.config
22
22
  Config
@@ -3,8 +3,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
3
3
  describe AlchemyAPI do
4
4
  subject { AlchemyAPI }
5
5
 
6
- it 'knows the alchemy api url' do
7
- AlchemyAPI::BASE_URL.must_be :==, 'http://access.alchemyapi.com/calls/'
6
+ it 'knows the secure alchemy api url' do
7
+ AlchemyAPI::BASE_URL.must_be :==, 'https://access.alchemyapi.com/calls/'
8
8
  end
9
9
 
10
10
  it 'allows you to set the key directly' do
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetAuthor
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetAuthor
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large, by Joe Smith</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetAuthor
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetAuthor
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://blog.alchemyapi.com/&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetCategory
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetCategory
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=lorem ipsum&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetCategory
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetCategory
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com/&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedConcepts
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedConcepts
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetRankedConcepts
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetRankedConcepts
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetRankedConcepts
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetRankedConcepts
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemy.com&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedNamedEntities
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedNamedEntities
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.google.com&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetRankedImageKeywords
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetRankedImageKeywords
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://demo1.alchemyapi.com/images/vision/emaxfpo.jpg&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedKeywords
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedKeywords
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>foo bar</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetRankedKeywords
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetRankedKeywords
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=lorem ipsum&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetRankedKeywords
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetRankedKeywords
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.google.com&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetLanguage
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetLanguage
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Lorem ipsum dolor sit amet.</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetLanguage
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetLanguage
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=Lorem ipsum dolor sit amet.&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetLanguage
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetLanguage
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com/&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetRelations
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetRelations
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetRelations
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetRelations
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetRelations
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetRelations
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemy.com&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetTextSentiment
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetTextSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>Alchemy is cool</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetTextSentiment
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetTextSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=Alchemy is cool&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetTextSentiment
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetTextSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetTargetedSentiment
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetTargetedSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>AlchemyAPI is cool</body></html>&target=alchemyapi&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/text/TextGetTargetedSentiment
5
+ uri: https://access.alchemyapi.com/calls/text/TextGetTargetedSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&text=AlchemyAPI is cool&target=alchemyapi&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetTargetedSentiment
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetTargetedSentiment
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com&target=alchemyapi&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/html/HTMLGetText
5
+ uri: https://access.alchemyapi.com/calls/html/HTMLGetText
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&html=<html><body>foo bar</body></html>&outputMode=json
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://access.alchemyapi.com/calls/url/URLGetText
5
+ uri: https://access.alchemyapi.com/calls/url/URLGetText
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: apikey=ALCHEMY_KEY&url=http://www.google.com&outputMode=json
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-api-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday