Skip to content

Commit 757e575

Browse files
author
Chris Park
committed
Merge branch 'develop'
2 parents 9ccee18 + 2d3c2be commit 757e575

22 files changed

+101
-191
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
[![Build Status](https://travis-ci.org/rosette-api/ruby.svg?branch=develop)](https://travis-ci.org/rosette-api/ruby)
22

3-
Ruby client binding for Rosette API
4-
==================================
3+
# Ruby client binding for Rosette API #
54
See the wiki for more information.
65

7-
Installation
8-
------------
6+
## Installation ##
97

108
`gem install rosette_api`
119

12-
Basic Usage
13-
-----------
10+
## Docker ##
11+
A Docker image for running the examples against the compiled source library is available on Docker Hub.
12+
13+
Command: `docker run -e API_KEY=api-key -v "<binding root directory>:/source" rosetteapi/docker-ruby`
14+
15+
Additional environment settings:
16+
`-e ALT_URL=<alternative URL>`
17+
`-e FILENAME=<single filename>`
18+
19+
## Basic Usage ##
1420

1521
See [examples](examples)
1622

17-
API Documentation
18-
-----------------
23+
## API Documentation ##
1924

2025
See [documentation](http://rosette-api.github.io/ruby)
2126

22-
Additional Information
23-
----------------------
27+
## Additional Information ##
2428

2529
Visit [Rosette API site](https://developer.rosette.com)

docker/Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

docker/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docker/run_ruby.sh

Lines changed: 0 additions & 102 deletions
This file was deleted.

examples/categories.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
categories_url_data = 'http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/'
11+
categories_url_data = "http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/"
1212
params = DocumentParameters.new(content_uri: categories_url_data)
1313
response = rosette_api.get_categories(params)
1414
puts JSON.pretty_generate(response)

examples/entities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
entities_text_data = 'Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS'
11+
entities_text_data = "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS"
1212
params = DocumentParameters.new(content: entities_text_data, genre: 'social-media')
1313
response = rosette_api.get_entities(params)
1414
puts JSON.pretty_generate(response)

examples/entities_linked.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
entities_linked_text_data = 'Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.'
11+
entities_linked_text_data = "Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon."
1212
params = DocumentParameters.new(content: entities_linked_text_data, genre: 'social-media')
1313
response = rosette_api.get_entities(params, true)
1414
puts JSON.pretty_generate(response)

examples/language.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
language_data = 'Por favor Señorita, says the man.?'
11+
language_data = "Por favor Señorita, says the man."
1212
params = DocumentParameters.new(content: language_data)
1313
params.custom_headers = { 'X-RosetteAPI-App'=> 'ruby-app'}
1414
response = rosette_api.get_language(params)

examples/morphology_complete.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
morphology_complete_data = 'The quick brown fox jumped over the lazy dog. Yes he did.'
11+
morphology_complete_data = "The quick brown fox jumped over the lazy dog. Yes he did."
1212
params = DocumentParameters.new(content: morphology_complete_data)
1313
response = rosette_api.get_morphology_complete(params)
1414
puts JSON.pretty_generate(response)

examples/morphology_compound-components.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rosette_api = RosetteAPI.new(api_key, url)
99
end
1010

11-
morphology_compound_components_data = 'Rechtsschutzversicherungsgesellschaften'
11+
morphology_compound_components_data = "Rechtsschutzversicherungsgesellschaften"
1212
params = DocumentParameters.new(content: morphology_compound_components_data)
1313
response = rosette_api.get_compound_components(params)
1414
puts JSON.pretty_generate(response)

0 commit comments

Comments
 (0)