Skip to content

Commit 77ed5df

Browse files
committed
Merge branch 'develop'
2 parents 6cf7d50 + d3b12f1 commit 77ed5df

21 files changed

+58
-108
lines changed

.rubocop_todo.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-11-04 18:38:39 +0000 using RuboCop version 0.76.0.
3+
# on 2019-11-07 23:26:30 +0000 using RuboCop version 0.76.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -39,8 +39,16 @@ Metrics/ParameterLists:
3939
Metrics/PerceivedComplexity:
4040
Max: 8
4141

42+
# Offense count: 3
43+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
44+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
45+
Naming/FileName:
46+
Exclude:
47+
- 'examples/morphology_compound-components.rb'
48+
- 'examples/morphology_han-readings.rb'
49+
- 'examples/morphology_parts-of-speech.rb'
50+
4251
# Offense count: 10
43-
# Rubocop not hip to RDoc directives.
4452
Style/CommentedKeyword:
4553
Exclude:
4654
- 'lib/address_parameter.rb'
@@ -76,9 +84,9 @@ Style/IfUnlessModifier:
7684
Style/RaiseArgs:
7785
EnforcedStyle: compact
7886

79-
# Offense count: 15
87+
# Offense count: 25
8088
# Cop supports --auto-correct.
8189
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
8290
# URISchemes: http, https
8391
Metrics/LineLength:
84-
Max: 208
92+
Max: 772

examples/address_similarity.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
state: 'DC',
1919
post_code: '20500'
2020
)
21-
address2 = AddressParameter.new(
22-
house_number: '160',
23-
road: 'Pennsilvana Avenue',
24-
city: 'Washington',
25-
state: 'D.C.',
26-
post_code: '20500'
27-
)
21+
address2 = '160 Pennsilvana Avenue, Washington, D.C., 20500'
2822
params = AddressSimilarityParameters.new(address1, address2)
2923
response = rosette_api.get_address_similarity(params)
3024
puts JSON.pretty_generate(response)

examples/categories.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
categories_url_data =
14-
'https://onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-' \
15-
'begins-filming-in-boston-in-june/'
13+
categories_url_data = 'https://onlocationvacations.com/2018/02/06/downton-abbey-exhibition-extended-april-2-nyc/'
1614
begin
1715
params = DocumentParameters.new(content_uri: categories_url_data)
1816
response = rosette_api.get_categories(params)

examples/entities.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
entities_text_data = 'The Securities and Exchange Commission today ' \
14-
'announced the leadership of the agency\'s trial unit. Bridget Fitzpatrick ' \
15-
'has been named Chief Litigation Counsel of the SEC and David Gottesman ' \
16-
'will continue to serve as the agency\'s Deputy Chief Litigation Counsel. ' \
17-
'Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as ' \
18-
'Co-Acting Chief Litigation Counsel. In that role, they were jointly ' \
19-
'responsible for supervising the trial unit at the agency\'s Washington ' \
20-
'D.C. headquarters as well as coordinating with litigators in the SEC\'s ' \
21-
'11 regional offices around the country.'
13+
entities_text_data = 'The Securities and Exchange Commission today announced the leadership of the agency\'s trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC and David Gottesman will continue to serve as the agency\'s Deputy Chief Litigation Counsel. Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as Co-Acting Chief Litigation Counsel. In that role, they were jointly responsible for supervising the trial unit at the agency\'s Washington D.C. headquarters as well as coordinating with litigators in the SEC\'s 11 regional offices around the country.'
2214
begin
2315
params = DocumentParameters.new(content: entities_text_data,
2416
genre: 'social-media')

examples/language_multilingual.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
language_multilingual_data = 'On Thursday, as protesters gathered in ' \
14-
'Washington D.C., the United States Federal Communications Commission ' \
15-
'under Chairman Ajit Pai voted 3-2 to overturn a 2015 decision, commonly ' \
16-
'called Net Neutrality, that forbade Internet service providers (ISPs) ' \
17-
'such as Verizon, Comcast, and AT&T from blocking individual websites or ' \
18-
'charging websites or customers more for faster load times. Quatre ' \
19-
'femmes ont été nommées au Conseil de rédaction de la loi du Qatar. Jeudi, ' \
20-
'le décret royal du Qatar a annoncé que 28 nouveaux membres ont été nommés ' \
21-
'pour le Conseil de la Choura du pays. ذكرت مصادر أمنية يونانية، أن 9 موقوفين من منظمة \"د هـ ك ب ج\" الذين كانت قد أوقفتهم الشرطة اليونانية في وقت سابق كانوا يخططون لاغتيال الرئيس التركي رجب طيب أردوغان.'
13+
language_multilingual_data = 'On Thursday, as protesters gathered in Washington D.C., the United States Federal Communications Commission under Chairman Ajit Pai voted 3-2 to overturn a 2015 decision, commonly called Net Neutrality, that forbade Internet service providers (ISPs) such as Verizon, Comcast, and AT&T from blocking individual websites or charging websites or customers more for faster load times. Quatre femmes ont été nommées au Conseil de rédaction de la loi du Qatar. Jeudi, le décret royal du Qatar a annoncé que 28 nouveaux membres ont été nommés pour le Conseil de la Choura du pays. ذكرت مصادر أمنية يونانية، أن 9 موقوفين من منظمة \"د هـ ك ب ج\" الذين كانت قد أوقفتهم الشرطة اليونانية في وقت سابق كانوا يخططون لاغتيال الرئيس التركي رجب طيب أردوغان.'
2214

2315
begin
2416
params = DocumentParameters.new(content: language_multilingual_data)

examples/morphology_complete.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_complete_data = 'The quick brown fox jumped over the lazy ' \
14-
'dog. 👍🏾 Yes he did. B)'
13+
morphology_complete_data = 'The quick brown fox jumped over the lazy dog. 👍🏾 Yes he did. B)'
1514
begin
1615
params = DocumentParameters.new(content: morphology_complete_data)
1716
response = rosette_api.get_morphology_complete(params)
File renamed without changes.

examples/morphology_lemmas.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_lemmas_data =
14-
'The fact is that the geese just went back to get a rest and I\'m not ' \
15-
'banking on their return soon'
13+
morphology_lemmas_data = 'The fact is that the geese just went back to get a rest and I\'m not banking on their return soon'
1614
begin
1715
params = DocumentParameters.new(content: morphology_lemmas_data)
1816
response = rosette_api.get_lemmas(params)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_parts_of_speech_data =
14-
'The fact is that the geese just went back to get a rest and I\'m not ' \
15-
'banking on their return soon'
13+
morphology_parts_of_speech_data = 'The fact is that the geese just went back to get a rest and I\'m not banking on their return soon'
1614
begin
1715
params = DocumentParameters.new(content: morphology_parts_of_speech_data)
1816
response = rosette_api.get_parts_of_speech(params)

0 commit comments

Comments
 (0)