datasift 3.7.2 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/datasift.gemspec +6 -3
- data/lib/api/api_resource.rb +1 -1
- data/lib/datasift.rb +53 -16
- data/lib/errors.rb +8 -0
- data/lib/live_stream.rb +7 -7
- data/lib/pylon.rb +59 -26
- data/lib/tasks.rb +51 -0
- data/lib/version.rb +3 -0
- metadata +5 -83
- data/.gitignore +0 -12
- data/.rubocop.yml +0 -12
- data/.rubocop_todo.yml +0 -497
- data/.travis.yml +0 -17
- data/Gemfile +0 -15
- data/LICENSE +0 -19
- data/MIGRATING_TO_V.3.0.0.md +0 -262
- data/Rakefile +0 -10
- data/VERSION +0 -1
- data/examples/account_eg.rb +0 -33
- data/examples/account_identity_eg.rb +0 -50
- data/examples/account_identity_limit_eg.rb +0 -72
- data/examples/account_identity_token_eg.rb +0 -73
- data/examples/auth.rb +0 -55
- data/examples/cli.sh +0 -155
- data/examples/core_api_eg.rb +0 -50
- data/examples/historics_eg.rb +0 -66
- data/examples/historics_preview_eg.rb +0 -31
- data/examples/ingestion/twitter_gnip_batch_eg.rb +0 -61
- data/examples/live_stream_eg.rb +0 -92
- data/examples/managed_source_fb_eg.rb +0 -129
- data/examples/managed_source_ig_eg.rb +0 -126
- data/examples/pull.rb +0 -47
- data/examples/push_eg.rb +0 -51
- data/examples/pylon/pylon_api_v1.2_eg.rb +0 -166
- data/examples/pylon/pylon_api_v1.3_eg.rb +0 -201
- data/test/datasift/account/account_api_test.rb +0 -35
- data/test/datasift/core_api_test.rb +0 -179
- data/test/datasift/historics_preview_api_test.rb +0 -56
- data/test/datasift/odp/batch_upload_test.rb +0 -52
- data/test/datasift/push_api_test.rb +0 -238
- data/test/fixtures/cassettes/account/usage/default.json +0 -1
- data/test/fixtures/cassettes/account/usage/invalid.json +0 -1
- data/test/fixtures/cassettes/account/usage/valid_params.json +0 -1
- data/test/fixtures/cassettes/core/after_historic_dpu.json +0 -1
- data/test/fixtures/cassettes/core/balance_get.json +0 -1
- data/test/fixtures/cassettes/core/before_dpu.json +0 -1
- data/test/fixtures/cassettes/core/before_historic_dpu.json +0 -1
- data/test/fixtures/cassettes/core/compile_success.json +0 -1
- data/test/fixtures/cassettes/core/dpu_get_cost.json +0 -1
- data/test/fixtures/cassettes/core/dpu_throw_badrequest.json +0 -1
- data/test/fixtures/cassettes/core/historic_dpu.json +0 -1
- data/test/fixtures/cassettes/core/usage_success.json +0 -1
- data/test/fixtures/cassettes/core/validate_invalid_hash.json +0 -1
- data/test/fixtures/cassettes/core/validate_success_bool.json +0 -1
- data/test/fixtures/cassettes/core/validate_success_hash.json +0 -1
- data/test/fixtures/cassettes/odp/batch/after_upload.json +0 -1
- data/test/fixtures/cassettes/odp/batch/before_upload.json +0 -1
- data/test/fixtures/cassettes/odp/batch/upload_failure_no_source.json +0 -1
- data/test/fixtures/cassettes/odp/batch/upload_success.json +0 -1
- data/test/fixtures/cassettes/preview/before_preview_create.json +0 -1
- data/test/fixtures/cassettes/preview/before_preview_get.json +0 -1
- data/test/fixtures/cassettes/preview/preview_create_success.json +0 -1
- data/test/fixtures/cassettes/preview/preview_get_success.json +0 -1
- data/test/fixtures/cassettes/push/after_push_create.json +0 -1
- data/test/fixtures/cassettes/push/after_push_get.json +0 -1
- data/test/fixtures/cassettes/push/after_push_log.json +0 -1
- data/test/fixtures/cassettes/push/after_push_pause.json +0 -1
- data/test/fixtures/cassettes/push/after_push_resume.json +0 -1
- data/test/fixtures/cassettes/push/after_push_stop.json +0 -1
- data/test/fixtures/cassettes/push/after_push_update.json +0 -1
- data/test/fixtures/cassettes/push/before_push_create.json +0 -1
- data/test/fixtures/cassettes/push/before_push_delete.json +0 -1
- data/test/fixtures/cassettes/push/before_push_get.json +0 -1
- data/test/fixtures/cassettes/push/before_push_log.json +0 -1
- data/test/fixtures/cassettes/push/before_push_pause.json +0 -1
- data/test/fixtures/cassettes/push/before_push_resume.json +0 -1
- data/test/fixtures/cassettes/push/before_push_stop.json +0 -1
- data/test/fixtures/cassettes/push/before_push_update.json +0 -1
- data/test/fixtures/cassettes/push/push_create.json +0 -1
- data/test/fixtures/cassettes/push/push_delete.json +0 -1
- data/test/fixtures/cassettes/push/push_get_by_id.json +0 -1
- data/test/fixtures/cassettes/push/push_log_with_id.json +0 -1
- data/test/fixtures/cassettes/push/push_pause.json +0 -1
- data/test/fixtures/cassettes/push/push_resume.json +0 -1
- data/test/fixtures/cassettes/push/push_stop.json +0 -1
- data/test/fixtures/cassettes/push/push_update.json +0 -1
- data/test/fixtures/cassettes/push/push_validate.json +0 -1
- data/test/fixtures/data/fake_gnip_tweets.json +0 -10
- data/test/test_helper.rb +0 -49
data/lib/tasks.rb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
module DataSift
|
2
|
+
#
|
3
|
+
# Class for accessing DataSift's Tasks API
|
4
|
+
class Task < DataSift::ApiResource
|
5
|
+
# Creates a Task; this call requires use of an identity API key
|
6
|
+
#
|
7
|
+
# @param service [String] Service you wish to create a Task for
|
8
|
+
# @param type [String] Type of Task to be run
|
9
|
+
# @param subscription_id [String] Subscription ID as returned by /pylon/start
|
10
|
+
# @param name [String] Human identifier for this Task
|
11
|
+
# @param parameters [Hash] Object representing the parameters for the Task type
|
12
|
+
# @return [Object] API reponse object
|
13
|
+
def create(service:, type:, subscription_id:, name:, parameters:)
|
14
|
+
DataSift.request(:POST, "pylon/#{service}/task", @config, {
|
15
|
+
type: type,
|
16
|
+
subscription_id: subscription_id,
|
17
|
+
name: name,
|
18
|
+
parameters: parameters
|
19
|
+
})
|
20
|
+
end
|
21
|
+
|
22
|
+
# Gets a single task by ID; this call requires use of the identity API key associated with the
|
23
|
+
# Task requested
|
24
|
+
#
|
25
|
+
# @param service [String] Service of the Task you wish to return
|
26
|
+
# @param type [String] (Optional) Type of Task to be run (Default: 'analysis')
|
27
|
+
# @param id [String] ID of the Task you wish to return
|
28
|
+
# @return [Object] API reponse object
|
29
|
+
def get(service:, type: 'analysis', id:)
|
30
|
+
DataSift.request(:GET, "pylon/#{service}/task/#{type}/#{id}", @config)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Gets a list of all current Tasks on the service. This call may be accessed using either a
|
34
|
+
# main or identity-level API key.
|
35
|
+
#
|
36
|
+
# @param service [String] Search Tasks by Service
|
37
|
+
# @param type [String] (Optional) Type of Task to be run (Default: 'analysis')
|
38
|
+
# @param per_page [Integer] (Optional) How many Tasks should be returned per page of results
|
39
|
+
# @param page [Integer] (Optional) Which page of results to return
|
40
|
+
# @param status [String] (Optional) Filter by Tasks on Status
|
41
|
+
# @return [Object] API reponse object
|
42
|
+
def list(service:, type: 'analysis', **opts)
|
43
|
+
params = {}
|
44
|
+
params[:per_page] = opts[:per_page] if opts.key?(:per_page)
|
45
|
+
params[:page] = opts[:page] if opts.key?(:page)
|
46
|
+
params[:status] = opts[:status] if opts.key?(:status)
|
47
|
+
|
48
|
+
DataSift.request(:GET, "pylon/#{service}/task/#{type}", @config, params)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datasift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DataSift
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -82,36 +82,10 @@ executables: []
|
|
82
82
|
extensions: []
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
|
-
- ".gitignore"
|
86
|
-
- ".rubocop.yml"
|
87
|
-
- ".rubocop_todo.yml"
|
88
|
-
- ".travis.yml"
|
89
85
|
- ".yardopts"
|
90
86
|
- CHANGELOG.md
|
91
|
-
- Gemfile
|
92
|
-
- LICENSE
|
93
|
-
- MIGRATING_TO_V.3.0.0.md
|
94
87
|
- README.md
|
95
|
-
- Rakefile
|
96
|
-
- VERSION
|
97
88
|
- datasift.gemspec
|
98
|
-
- examples/account_eg.rb
|
99
|
-
- examples/account_identity_eg.rb
|
100
|
-
- examples/account_identity_limit_eg.rb
|
101
|
-
- examples/account_identity_token_eg.rb
|
102
|
-
- examples/auth.rb
|
103
|
-
- examples/cli.sh
|
104
|
-
- examples/core_api_eg.rb
|
105
|
-
- examples/historics_eg.rb
|
106
|
-
- examples/historics_preview_eg.rb
|
107
|
-
- examples/ingestion/twitter_gnip_batch_eg.rb
|
108
|
-
- examples/live_stream_eg.rb
|
109
|
-
- examples/managed_source_fb_eg.rb
|
110
|
-
- examples/managed_source_ig_eg.rb
|
111
|
-
- examples/pull.rb
|
112
|
-
- examples/push_eg.rb
|
113
|
-
- examples/pylon/pylon_api_v1.2_eg.rb
|
114
|
-
- examples/pylon/pylon_api_v1.3_eg.rb
|
115
89
|
- lib/account.rb
|
116
90
|
- lib/account_identity.rb
|
117
91
|
- lib/account_identity_limit.rb
|
@@ -129,60 +103,8 @@ files:
|
|
129
103
|
- lib/odp.rb
|
130
104
|
- lib/push.rb
|
131
105
|
- lib/pylon.rb
|
132
|
-
-
|
133
|
-
-
|
134
|
-
- test/datasift/historics_preview_api_test.rb
|
135
|
-
- test/datasift/odp/batch_upload_test.rb
|
136
|
-
- test/datasift/push_api_test.rb
|
137
|
-
- test/fixtures/cassettes/account/usage/default.json
|
138
|
-
- test/fixtures/cassettes/account/usage/invalid.json
|
139
|
-
- test/fixtures/cassettes/account/usage/valid_params.json
|
140
|
-
- test/fixtures/cassettes/core/after_historic_dpu.json
|
141
|
-
- test/fixtures/cassettes/core/balance_get.json
|
142
|
-
- test/fixtures/cassettes/core/before_dpu.json
|
143
|
-
- test/fixtures/cassettes/core/before_historic_dpu.json
|
144
|
-
- test/fixtures/cassettes/core/compile_success.json
|
145
|
-
- test/fixtures/cassettes/core/dpu_get_cost.json
|
146
|
-
- test/fixtures/cassettes/core/dpu_throw_badrequest.json
|
147
|
-
- test/fixtures/cassettes/core/historic_dpu.json
|
148
|
-
- test/fixtures/cassettes/core/usage_success.json
|
149
|
-
- test/fixtures/cassettes/core/validate_invalid_hash.json
|
150
|
-
- test/fixtures/cassettes/core/validate_success_bool.json
|
151
|
-
- test/fixtures/cassettes/core/validate_success_hash.json
|
152
|
-
- test/fixtures/cassettes/odp/batch/after_upload.json
|
153
|
-
- test/fixtures/cassettes/odp/batch/before_upload.json
|
154
|
-
- test/fixtures/cassettes/odp/batch/upload_failure_no_source.json
|
155
|
-
- test/fixtures/cassettes/odp/batch/upload_success.json
|
156
|
-
- test/fixtures/cassettes/preview/before_preview_create.json
|
157
|
-
- test/fixtures/cassettes/preview/before_preview_get.json
|
158
|
-
- test/fixtures/cassettes/preview/preview_create_success.json
|
159
|
-
- test/fixtures/cassettes/preview/preview_get_success.json
|
160
|
-
- test/fixtures/cassettes/push/after_push_create.json
|
161
|
-
- test/fixtures/cassettes/push/after_push_get.json
|
162
|
-
- test/fixtures/cassettes/push/after_push_log.json
|
163
|
-
- test/fixtures/cassettes/push/after_push_pause.json
|
164
|
-
- test/fixtures/cassettes/push/after_push_resume.json
|
165
|
-
- test/fixtures/cassettes/push/after_push_stop.json
|
166
|
-
- test/fixtures/cassettes/push/after_push_update.json
|
167
|
-
- test/fixtures/cassettes/push/before_push_create.json
|
168
|
-
- test/fixtures/cassettes/push/before_push_delete.json
|
169
|
-
- test/fixtures/cassettes/push/before_push_get.json
|
170
|
-
- test/fixtures/cassettes/push/before_push_log.json
|
171
|
-
- test/fixtures/cassettes/push/before_push_pause.json
|
172
|
-
- test/fixtures/cassettes/push/before_push_resume.json
|
173
|
-
- test/fixtures/cassettes/push/before_push_stop.json
|
174
|
-
- test/fixtures/cassettes/push/before_push_update.json
|
175
|
-
- test/fixtures/cassettes/push/push_create.json
|
176
|
-
- test/fixtures/cassettes/push/push_delete.json
|
177
|
-
- test/fixtures/cassettes/push/push_get_by_id.json
|
178
|
-
- test/fixtures/cassettes/push/push_log_with_id.json
|
179
|
-
- test/fixtures/cassettes/push/push_pause.json
|
180
|
-
- test/fixtures/cassettes/push/push_resume.json
|
181
|
-
- test/fixtures/cassettes/push/push_stop.json
|
182
|
-
- test/fixtures/cassettes/push/push_update.json
|
183
|
-
- test/fixtures/cassettes/push/push_validate.json
|
184
|
-
- test/fixtures/data/fake_gnip_tweets.json
|
185
|
-
- test/test_helper.rb
|
106
|
+
- lib/tasks.rb
|
107
|
+
- lib/version.rb
|
186
108
|
homepage: https://github.com/datasift/datasift-ruby
|
187
109
|
licenses:
|
188
110
|
- BSD
|
@@ -203,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
125
|
version: 1.3.5
|
204
126
|
requirements: []
|
205
127
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.6.
|
128
|
+
rubygems_version: 2.6.11
|
207
129
|
signing_key:
|
208
130
|
specification_version: 4
|
209
131
|
summary: DataSift is a simple wrapper for the DataSift API.
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
data/.rubocop_todo.yml
DELETED
@@ -1,497 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2016-07-20 18:43:01 +0100 using RuboCop version 0.41.2.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 8
|
10
|
-
Lint/IneffectiveAccessModifier:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/datasift.rb'
|
13
|
-
|
14
|
-
# Offense count: 1
|
15
|
-
Lint/RescueException:
|
16
|
-
Exclude:
|
17
|
-
- 'lib/datasift.rb'
|
18
|
-
|
19
|
-
# Offense count: 1
|
20
|
-
Lint/ShadowedException:
|
21
|
-
Exclude:
|
22
|
-
- 'lib/datasift.rb'
|
23
|
-
|
24
|
-
# Offense count: 5
|
25
|
-
# Cop supports --auto-correct.
|
26
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
27
|
-
Lint/UnusedBlockArgument:
|
28
|
-
Exclude:
|
29
|
-
- 'examples/live_stream_eg.rb'
|
30
|
-
- 'lib/datasift.rb'
|
31
|
-
|
32
|
-
# Offense count: 1
|
33
|
-
Lint/UselessAccessModifier:
|
34
|
-
Exclude:
|
35
|
-
- 'lib/datasift.rb'
|
36
|
-
|
37
|
-
# Offense count: 4
|
38
|
-
Lint/UselessAssignment:
|
39
|
-
Exclude:
|
40
|
-
- 'examples/tmp.rb'
|
41
|
-
- 'lib/datasift.rb'
|
42
|
-
- 'test/datasift/odp/batch_upload_test.rb'
|
43
|
-
|
44
|
-
# Offense count: 34
|
45
|
-
Metrics/AbcSize:
|
46
|
-
Max: 183
|
47
|
-
|
48
|
-
# Offense count: 5
|
49
|
-
# Configuration parameters: CountComments.
|
50
|
-
Metrics/ClassLength:
|
51
|
-
Max: 167
|
52
|
-
|
53
|
-
# Offense count: 19
|
54
|
-
Metrics/CyclomaticComplexity:
|
55
|
-
Max: 15
|
56
|
-
|
57
|
-
# Offense count: 40
|
58
|
-
# Configuration parameters: CountComments.
|
59
|
-
Metrics/MethodLength:
|
60
|
-
Max: 161
|
61
|
-
|
62
|
-
# Offense count: 1
|
63
|
-
# Configuration parameters: CountComments.
|
64
|
-
Metrics/ModuleLength:
|
65
|
-
Max: 250
|
66
|
-
|
67
|
-
# Offense count: 10
|
68
|
-
# Configuration parameters: CountKeywordArgs.
|
69
|
-
Metrics/ParameterLists:
|
70
|
-
Max: 8
|
71
|
-
|
72
|
-
# Offense count: 10
|
73
|
-
Metrics/PerceivedComplexity:
|
74
|
-
Max: 16
|
75
|
-
|
76
|
-
# Offense count: 63
|
77
|
-
# Cop supports --auto-correct.
|
78
|
-
# Configuration parameters: MaxKeyValuePairs.
|
79
|
-
Performance/RedundantMerge:
|
80
|
-
Exclude:
|
81
|
-
- 'examples/auth.rb'
|
82
|
-
- 'examples/pylon/pylon_api_v1.2_eg.rb'
|
83
|
-
- 'examples/pylon/pylon_api_v1.3_eg.rb'
|
84
|
-
- 'lib/account.rb'
|
85
|
-
- 'lib/account_identity.rb'
|
86
|
-
- 'lib/account_identity_limit.rb'
|
87
|
-
- 'lib/account_identity_token.rb'
|
88
|
-
- 'lib/cli.rb'
|
89
|
-
- 'lib/datasift.rb'
|
90
|
-
- 'lib/historics_preview.rb'
|
91
|
-
- 'lib/managed_source.rb'
|
92
|
-
- 'lib/push.rb'
|
93
|
-
- 'lib/pylon.rb'
|
94
|
-
|
95
|
-
# Offense count: 1
|
96
|
-
# Cop supports --auto-correct.
|
97
|
-
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
98
|
-
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
99
|
-
Style/AlignHash:
|
100
|
-
Exclude:
|
101
|
-
- 'lib/datasift.rb'
|
102
|
-
|
103
|
-
# Offense count: 7
|
104
|
-
# Cop supports --auto-correct.
|
105
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
106
|
-
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
107
|
-
Style/AlignParameters:
|
108
|
-
Exclude:
|
109
|
-
- 'lib/datasift.rb'
|
110
|
-
- 'test/datasift/core_api_test.rb'
|
111
|
-
|
112
|
-
# Offense count: 3
|
113
|
-
# Cop supports --auto-correct.
|
114
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
115
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
116
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
117
|
-
# FunctionalMethods: let, let!, subject, watch
|
118
|
-
# IgnoredMethods: lambda, proc, it
|
119
|
-
Style/BlockDelimiters:
|
120
|
-
Exclude:
|
121
|
-
- 'lib/api/api_resource.rb'
|
122
|
-
- 'lib/datasift.rb'
|
123
|
-
|
124
|
-
# Offense count: 18
|
125
|
-
# Cop supports --auto-correct.
|
126
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
127
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
128
|
-
Style/BracesAroundHashParameters:
|
129
|
-
Exclude:
|
130
|
-
- 'lib/datasift.rb'
|
131
|
-
- 'lib/live_stream.rb'
|
132
|
-
- 'lib/managed_source.rb'
|
133
|
-
- 'lib/push.rb'
|
134
|
-
|
135
|
-
# Offense count: 22
|
136
|
-
# Cop supports --auto-correct.
|
137
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
|
138
|
-
# SupportedStyles: case, end
|
139
|
-
Style/CaseIndentation:
|
140
|
-
Exclude:
|
141
|
-
- 'examples/account_eg.rb'
|
142
|
-
- 'examples/account_identity_eg.rb'
|
143
|
-
- 'examples/account_identity_limit_eg.rb'
|
144
|
-
- 'examples/account_identity_token_eg.rb'
|
145
|
-
- 'examples/core_api_eg.rb'
|
146
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
147
|
-
- 'examples/live_stream_eg.rb'
|
148
|
-
|
149
|
-
# Offense count: 1
|
150
|
-
# Cop supports --auto-correct.
|
151
|
-
Style/ColonMethodCall:
|
152
|
-
Exclude:
|
153
|
-
- 'examples/live_stream_eg.rb'
|
154
|
-
|
155
|
-
# Offense count: 9
|
156
|
-
# Cop supports --auto-correct.
|
157
|
-
Style/CommentIndentation:
|
158
|
-
Exclude:
|
159
|
-
- 'examples/account_eg.rb'
|
160
|
-
- 'examples/account_identity_eg.rb'
|
161
|
-
- 'examples/account_identity_limit_eg.rb'
|
162
|
-
- 'examples/account_identity_token_eg.rb'
|
163
|
-
- 'examples/core_api_eg.rb'
|
164
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
165
|
-
- 'examples/live_stream_eg.rb'
|
166
|
-
- 'examples/pull.rb'
|
167
|
-
|
168
|
-
# Offense count: 19
|
169
|
-
Style/Documentation:
|
170
|
-
Enabled: false
|
171
|
-
|
172
|
-
# Offense count: 7
|
173
|
-
# Cop supports --auto-correct.
|
174
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
175
|
-
# SupportedStyles: empty, nil, both
|
176
|
-
Style/EmptyElse:
|
177
|
-
Exclude:
|
178
|
-
- 'examples/account_eg.rb'
|
179
|
-
- 'examples/account_identity_eg.rb'
|
180
|
-
- 'examples/account_identity_limit_eg.rb'
|
181
|
-
- 'examples/account_identity_token_eg.rb'
|
182
|
-
- 'examples/core_api_eg.rb'
|
183
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
184
|
-
- 'examples/live_stream_eg.rb'
|
185
|
-
|
186
|
-
# Offense count: 1
|
187
|
-
# Cop supports --auto-correct.
|
188
|
-
Style/EmptyLines:
|
189
|
-
Exclude:
|
190
|
-
- 'examples/tmp.rb'
|
191
|
-
|
192
|
-
# Offense count: 2
|
193
|
-
# Cop supports --auto-correct.
|
194
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
195
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
196
|
-
Style/EmptyLinesAroundBlockBody:
|
197
|
-
Exclude:
|
198
|
-
- 'test/datasift/core_api_test.rb'
|
199
|
-
- 'test/datasift/push_api_test.rb'
|
200
|
-
|
201
|
-
# Offense count: 2
|
202
|
-
# Cop supports --auto-correct.
|
203
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
204
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
205
|
-
Style/EmptyLinesAroundClassBody:
|
206
|
-
Exclude:
|
207
|
-
- 'examples/live_stream_eg.rb'
|
208
|
-
- 'lib/live_stream.rb'
|
209
|
-
|
210
|
-
# Offense count: 2
|
211
|
-
# Cop supports --auto-correct.
|
212
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
213
|
-
Style/ExtraSpacing:
|
214
|
-
Exclude:
|
215
|
-
- 'examples/live_stream_eg.rb'
|
216
|
-
- 'lib/datasift.rb'
|
217
|
-
|
218
|
-
# Offense count: 131
|
219
|
-
# Cop supports --auto-correct.
|
220
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
221
|
-
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
|
222
|
-
Style/HashSyntax:
|
223
|
-
Exclude:
|
224
|
-
- 'Rakefile'
|
225
|
-
- 'lib/cli.rb'
|
226
|
-
- 'lib/datasift.rb'
|
227
|
-
- 'lib/historics.rb'
|
228
|
-
- 'lib/historics_preview.rb'
|
229
|
-
- 'lib/live_stream.rb'
|
230
|
-
- 'lib/managed_source.rb'
|
231
|
-
- 'lib/push.rb'
|
232
|
-
|
233
|
-
# Offense count: 3
|
234
|
-
# Cop supports --auto-correct.
|
235
|
-
# Configuration parameters: MaxLineLength.
|
236
|
-
Style/IfUnlessModifier:
|
237
|
-
Exclude:
|
238
|
-
- 'lib/cli.rb'
|
239
|
-
- 'lib/datasift.rb'
|
240
|
-
- 'lib/live_stream.rb'
|
241
|
-
|
242
|
-
# Offense count: 2
|
243
|
-
# Cop supports --auto-correct.
|
244
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
245
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
246
|
-
Style/IndentHash:
|
247
|
-
Exclude:
|
248
|
-
- 'examples/auth.rb'
|
249
|
-
- 'lib/live_stream.rb'
|
250
|
-
|
251
|
-
# Offense count: 3
|
252
|
-
# Cop supports --auto-correct.
|
253
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
254
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
255
|
-
Style/Lambda:
|
256
|
-
Exclude:
|
257
|
-
- 'examples/live_stream_eg.rb'
|
258
|
-
- 'examples/pull.rb'
|
259
|
-
- 'lib/live_stream.rb'
|
260
|
-
|
261
|
-
# Offense count: 6
|
262
|
-
# Cop supports --auto-correct.
|
263
|
-
Style/LeadingCommentSpace:
|
264
|
-
Exclude:
|
265
|
-
- 'examples/core_api_eg.rb'
|
266
|
-
- 'examples/live_stream_eg.rb'
|
267
|
-
- 'examples/pull.rb'
|
268
|
-
- 'examples/tmp.rb'
|
269
|
-
|
270
|
-
# Offense count: 1
|
271
|
-
# Cop supports --auto-correct.
|
272
|
-
Style/LineEndConcatenation:
|
273
|
-
Exclude:
|
274
|
-
- 'lib/datasift.rb'
|
275
|
-
|
276
|
-
# Offense count: 2
|
277
|
-
# Cop supports --auto-correct.
|
278
|
-
Style/MethodCallParentheses:
|
279
|
-
Exclude:
|
280
|
-
- 'examples/pull.rb'
|
281
|
-
- 'examples/push_eg.rb'
|
282
|
-
|
283
|
-
# Offense count: 1
|
284
|
-
# Cop supports --auto-correct.
|
285
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
286
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
287
|
-
Style/MethodDefParentheses:
|
288
|
-
Exclude:
|
289
|
-
- 'lib/live_stream.rb'
|
290
|
-
|
291
|
-
# Offense count: 2
|
292
|
-
Style/MultilineTernaryOperator:
|
293
|
-
Exclude:
|
294
|
-
- 'lib/cli.rb'
|
295
|
-
|
296
|
-
# Offense count: 1
|
297
|
-
# Cop supports --auto-correct.
|
298
|
-
Style/MutableConstant:
|
299
|
-
Exclude:
|
300
|
-
- 'lib/datasift.rb'
|
301
|
-
|
302
|
-
# Offense count: 5
|
303
|
-
# Cop supports --auto-correct.
|
304
|
-
Style/NegatedIf:
|
305
|
-
Exclude:
|
306
|
-
- 'lib/datasift.rb'
|
307
|
-
- 'lib/managed_source.rb'
|
308
|
-
|
309
|
-
# Offense count: 1
|
310
|
-
# Cop supports --auto-correct.
|
311
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
312
|
-
# SupportedStyles: skip_modifier_ifs, always
|
313
|
-
Style/Next:
|
314
|
-
Exclude:
|
315
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
316
|
-
|
317
|
-
# Offense count: 2
|
318
|
-
# Cop supports --auto-correct.
|
319
|
-
Style/NilComparison:
|
320
|
-
Exclude:
|
321
|
-
- 'lib/api/api_resource.rb'
|
322
|
-
- 'lib/live_stream.rb'
|
323
|
-
|
324
|
-
# Offense count: 11
|
325
|
-
# Cop supports --auto-correct.
|
326
|
-
Style/NumericLiterals:
|
327
|
-
MinDigits: 16
|
328
|
-
|
329
|
-
# Offense count: 1
|
330
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
331
|
-
# NamePrefix: is_, has_, have_
|
332
|
-
# NamePrefixBlacklist: is_, has_, have_
|
333
|
-
# NameWhitelist: is_a?
|
334
|
-
Style/PredicateName:
|
335
|
-
Exclude:
|
336
|
-
- 'spec/**/*'
|
337
|
-
- 'lib/datasift.rb'
|
338
|
-
|
339
|
-
# Offense count: 6
|
340
|
-
# Cop supports --auto-correct.
|
341
|
-
Style/PreferredHashMethods:
|
342
|
-
Exclude:
|
343
|
-
- 'lib/api/api_resource.rb'
|
344
|
-
- 'lib/live_stream.rb'
|
345
|
-
|
346
|
-
# Offense count: 14
|
347
|
-
# Cop supports --auto-correct.
|
348
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
349
|
-
# SupportedStyles: compact, exploded
|
350
|
-
Style/RaiseArgs:
|
351
|
-
Exclude:
|
352
|
-
- 'lib/api/api_resource.rb'
|
353
|
-
- 'lib/datasift.rb'
|
354
|
-
- 'lib/live_stream.rb'
|
355
|
-
|
356
|
-
# Offense count: 13
|
357
|
-
# Cop supports --auto-correct.
|
358
|
-
Style/RedundantBegin:
|
359
|
-
Exclude:
|
360
|
-
- 'examples/account_eg.rb'
|
361
|
-
- 'examples/account_identity_eg.rb'
|
362
|
-
- 'examples/account_identity_limit_eg.rb'
|
363
|
-
- 'examples/account_identity_token_eg.rb'
|
364
|
-
- 'examples/core_api_eg.rb'
|
365
|
-
- 'examples/historics_eg.rb'
|
366
|
-
- 'examples/historics_preview_eg.rb'
|
367
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
368
|
-
- 'examples/live_stream_eg.rb'
|
369
|
-
- 'examples/pull.rb'
|
370
|
-
- 'examples/push_eg.rb'
|
371
|
-
- 'examples/pylon/pylon_api_v1.2_eg.rb'
|
372
|
-
- 'examples/pylon/pylon_api_v1.3_eg.rb'
|
373
|
-
|
374
|
-
# Offense count: 4
|
375
|
-
# Cop supports --auto-correct.
|
376
|
-
Style/RescueEnsureAlignment:
|
377
|
-
Exclude:
|
378
|
-
- 'examples/managed_source_ig_eg.rb'
|
379
|
-
- 'examples/pylon/pylon_api_v1.2_eg.rb'
|
380
|
-
- 'examples/pylon/pylon_api_v1.3_eg.rb'
|
381
|
-
- 'examples/tmp.rb'
|
382
|
-
|
383
|
-
# Offense count: 44
|
384
|
-
# Cop supports --auto-correct.
|
385
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
386
|
-
# SupportedStyles: only_raise, only_fail, semantic
|
387
|
-
Style/SignalException:
|
388
|
-
Exclude:
|
389
|
-
- 'examples/pull.rb'
|
390
|
-
- 'lib/account_identity.rb'
|
391
|
-
- 'lib/account_identity_limit.rb'
|
392
|
-
- 'lib/account_identity_token.rb'
|
393
|
-
- 'lib/datasift.rb'
|
394
|
-
- 'lib/managed_source.rb'
|
395
|
-
- 'lib/odp.rb'
|
396
|
-
- 'lib/pylon.rb'
|
397
|
-
|
398
|
-
# Offense count: 3
|
399
|
-
# Cop supports --auto-correct.
|
400
|
-
Style/SpaceAfterComma:
|
401
|
-
Exclude:
|
402
|
-
- 'examples/live_stream_eg.rb'
|
403
|
-
- 'examples/pylon/pylon_api_v1.3_eg.rb'
|
404
|
-
- 'lib/cli.rb'
|
405
|
-
|
406
|
-
# Offense count: 1
|
407
|
-
# Cop supports --auto-correct.
|
408
|
-
Style/SpaceAfterMethodName:
|
409
|
-
Exclude:
|
410
|
-
- 'lib/live_stream.rb'
|
411
|
-
|
412
|
-
# Offense count: 1
|
413
|
-
# Cop supports --auto-correct.
|
414
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
415
|
-
# SupportedStyles: space, no_space
|
416
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
417
|
-
Exclude:
|
418
|
-
- 'lib/datasift.rb'
|
419
|
-
|
420
|
-
# Offense count: 10
|
421
|
-
# Cop supports --auto-correct.
|
422
|
-
# Configuration parameters: AllowForAlignment.
|
423
|
-
Style/SpaceAroundOperators:
|
424
|
-
Exclude:
|
425
|
-
- 'examples/live_stream_eg.rb'
|
426
|
-
- 'lib/datasift.rb'
|
427
|
-
|
428
|
-
# Offense count: 1
|
429
|
-
# Cop supports --auto-correct.
|
430
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
431
|
-
# SupportedStyles: space, no_space
|
432
|
-
Style/SpaceBeforeBlockBraces:
|
433
|
-
Exclude:
|
434
|
-
- 'examples/pull.rb'
|
435
|
-
|
436
|
-
# Offense count: 14
|
437
|
-
# Cop supports --auto-correct.
|
438
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
439
|
-
# SupportedStyles: space, no_space, compact
|
440
|
-
Style/SpaceInsideHashLiteralBraces:
|
441
|
-
Exclude:
|
442
|
-
- 'examples/pull.rb'
|
443
|
-
- 'lib/managed_source.rb'
|
444
|
-
- 'lib/push.rb'
|
445
|
-
- 'lib/pylon.rb'
|
446
|
-
|
447
|
-
# Offense count: 3
|
448
|
-
# Cop supports --auto-correct.
|
449
|
-
Style/SpaceInsideParens:
|
450
|
-
Exclude:
|
451
|
-
- 'lib/datasift.rb'
|
452
|
-
|
453
|
-
# Offense count: 28
|
454
|
-
# Cop supports --auto-correct.
|
455
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
456
|
-
# SupportedStyles: single_quotes, double_quotes
|
457
|
-
Style/StringLiterals:
|
458
|
-
Exclude:
|
459
|
-
- 'Gemfile'
|
460
|
-
- 'examples/account_eg.rb'
|
461
|
-
- 'examples/account_identity_eg.rb'
|
462
|
-
- 'examples/account_identity_limit_eg.rb'
|
463
|
-
- 'examples/account_identity_token_eg.rb'
|
464
|
-
- 'examples/ingestion/twitter_gnip_batch_eg.rb'
|
465
|
-
- 'examples/pylon/pylon_api_v1.2_eg.rb'
|
466
|
-
- 'examples/pylon/pylon_api_v1.3_eg.rb'
|
467
|
-
- 'examples/tmp.rb'
|
468
|
-
- 'lib/api/api_resource.rb'
|
469
|
-
- 'lib/datasift.rb'
|
470
|
-
- 'test/datasift/core_api_test.rb'
|
471
|
-
- 'test/datasift/odp/batch_upload_test.rb'
|
472
|
-
|
473
|
-
# Offense count: 3
|
474
|
-
# Cop supports --auto-correct.
|
475
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
476
|
-
# SupportedStyles: comma, consistent_comma, no_comma
|
477
|
-
Style/TrailingCommaInLiteral:
|
478
|
-
Exclude:
|
479
|
-
- 'examples/auth.rb'
|
480
|
-
- 'examples/tmp.rb'
|
481
|
-
|
482
|
-
# Offense count: 3
|
483
|
-
# Cop supports --auto-correct.
|
484
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
|
485
|
-
# SupportedStyles: percent, brackets
|
486
|
-
Style/WordArray:
|
487
|
-
Exclude:
|
488
|
-
- 'lib/cli.rb'
|
489
|
-
|
490
|
-
# Offense count: 6
|
491
|
-
# Cop supports --auto-correct.
|
492
|
-
Style/ZeroLengthPredicate:
|
493
|
-
Exclude:
|
494
|
-
- 'lib/api/api_resource.rb'
|
495
|
-
- 'lib/cli.rb'
|
496
|
-
- 'lib/datasift.rb'
|
497
|
-
- 'lib/managed_source.rb'
|