news_scraper 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 608b90149fbc8977b1fc3b42c923557b128ad4df
4
- data.tar.gz: 0e0914d81488d9630234860b3a9e732a1471158a
3
+ metadata.gz: 57a6f16ef706e81ca7b75243bb36f9ec1379d5a8
4
+ data.tar.gz: 3fadddd7447047c6222fa4e4b8b0a93f47e07aad
5
5
  SHA512:
6
- metadata.gz: 1e344051f216c10b320b324db5dbaeccaa9f034a1bd2d94f1905ea8797ed6389d4780db125bcd354dd553bc0279f75aecc507f5de91d30eb6d00098474e69173
7
- data.tar.gz: 1823fe68329a466385e16dd224d49633c122afec26d6c71cd66d9b428888e81e68a73dfc78133a995ad0a9885248ae03389f2d9b3b192b4d514970bc385990b6
6
+ metadata.gz: 947c61d446e7ae91c3465f096e87f5048f8ff491acac2a55bbb0f29e0d4a77da3e236e9a131fc4dc4f5a6fbde2b585038cca46f5c56cabc7d5539511ce7b69e6
7
+ data.tar.gz: 42b3ce459db585e4648f5d1df383944468936640ffde803d4c6dd4fbe073e3ceb25a70d471ba04b43055a62f0d2142bae0ba3a483564dcce382757e7caf942f9
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  *.gem
11
- coverage
11
+ coverage
12
+ .rubocop-*
data/.rubocop.yml CHANGED
@@ -1,96 +1,2 @@
1
- AllCops:
2
- TargetRubyVersion: 2.2
3
-
4
- ClassLength:
5
- Max: 500
6
-
7
- ModuleLength:
8
- Max: 500
9
-
10
- Rails:
11
- Enabled: false
12
-
13
- Lint/AssignmentInCondition:
14
- Enabled: false
15
-
16
- Style/Documentation:
17
- Enabled: false
18
-
19
- Style/MultilineOperationIndentation:
20
- Enabled: true
21
-
22
- Style/AlignParameters:
23
- EnforcedStyle: with_fixed_indentation
24
-
25
- Style/FirstParameterIndentation:
26
- EnforcedStyle: consistent
27
-
28
- Style/TrailingCommaInLiteral:
29
- Enabled: false
30
-
31
- Style/TrailingCommaInArguments:
32
- Enabled: false
33
-
34
- Style/SignalException:
35
- EnforcedStyle: only_raise
36
-
37
- Style/NumericLiterals:
38
- Enabled: true
39
-
40
- Style/CaseIndentation:
41
- IndentWhenRelativeTo: end
42
-
43
- Style/IndentHash:
44
- EnforcedStyle: consistent
45
-
46
- Style/WordArray:
47
- Enabled: true
48
-
49
- Style/ModuleFunction:
50
- Enabled: false
51
-
52
- Style/RaiseArgs:
53
- EnforcedStyle: compact
54
-
55
- Metrics/AbcSize:
56
- Enabled: false
57
-
58
- Metrics/CyclomaticComplexity:
59
- Enabled: false
60
-
61
- Style/StringLiterals:
62
- Enabled: false
63
-
64
- Metrics/LineLength:
65
- Max: 120
66
-
67
- Metrics/ClassLength:
68
- Enabled: false
69
-
70
- Metrics/MethodLength:
71
- Enabled: false
72
-
73
- Metrics/ParameterLists:
74
- Max: 5
75
- CountKeywordArgs: false
76
-
77
- Metrics/PerceivedComplexity:
78
- Enabled: false
79
-
80
- Lint/EndAlignment:
81
- AlignWith: variable
82
-
83
- Style/FrozenStringLiteralComment:
84
- Enabled: false
85
-
86
- Style/Alias:
87
- EnforcedStyle: prefer_alias_method
88
-
89
- Style/MutableConstant:
90
- Enabled: true
91
-
92
- Performance/Casecmp:
93
- Enabled: true
94
-
95
- Style/GuardClause:
96
- Enabled: true
1
+ inherit_from:
2
+ - https://news-scraper.github.io/styles/docs/rubocop.yml
@@ -33,7 +33,7 @@ module NewsScraper
33
33
  set :long_words_threshold, 15
34
34
  set :ignore_case, true
35
35
  end
36
- text.keywords.top(5).collect(&:text)
36
+ text.keywords.top(5).collect(&:text).join(',')
37
37
  end
38
38
 
39
39
  def stopwords(url, payload)
@@ -1,3 +1,3 @@
1
1
  module NewsScraper
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: news_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Wu