answersengine 0.4.0 → 0.4.1
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/answersengine.gemspec +2 -0
- data/lib/answersengine/scraper/executor.rb +5 -5
- data/lib/answersengine/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6abf0aa1f88309da00bf88ad024eed7b7a99b2e5c0a4f63311b42751985bca2
|
4
|
+
data.tar.gz: a3d8c454ed93e08bfadb67f4b4934055cf04025e08a8372617dc86b4b4feb1e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca6e10e1e577f013bb8d72dd2df785362975c9619d2fb93d0ed4b69bac85466ad1a9d172b9c96438aea2682504a06b40e73595b59be3930ed54e9cbf9dbadbe
|
7
|
+
data.tar.gz: 3dccf75a92138fd9f879b128f48f7e1443eac668fa700e2bbbf74e3ae3f4bda93019cac0ee1c9626608594f063ecb5addb3bdb73328792e9d2ecbbeda9f72533
|
data/answersengine.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
19
|
if spec.respond_to?(:metadata)
|
20
20
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
22
|
+
spec.metadata["source_code_uri"] = "https://github.com/answersengine/answersengine"
|
21
23
|
else
|
22
24
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
25
|
"public gem pushes."
|
@@ -99,7 +99,7 @@ module AnswersEngine
|
|
99
99
|
# @param [String] collection ('default') Collection name.
|
100
100
|
# @param [Hash] query ({}) Filters to query.
|
101
101
|
# @param [Integer] page (1) Page number.
|
102
|
-
# @param [Integer] per_page (
|
102
|
+
# @param [Integer] per_page (100) Page size.
|
103
103
|
# @param [Hash] opts ({}) Configuration options.
|
104
104
|
# @option opts [String|nil] :scraper_name (nil) Scraper name to query
|
105
105
|
# from.
|
@@ -121,16 +121,16 @@ module AnswersEngine
|
|
121
121
|
# @example
|
122
122
|
# find_outputs 'my_collection', {}, 1
|
123
123
|
# @example
|
124
|
-
# find_outputs 'my_collection', {}, 1,
|
124
|
+
# find_outputs 'my_collection', {}, 1, 100
|
125
125
|
# @example Find from another scraper by name
|
126
|
-
# find_outputs 'my_collection', {}, 1,
|
126
|
+
# find_outputs 'my_collection', {}, 1, 100, scraper_name: 'my_scraper'
|
127
127
|
# @example Find from another scraper by job_id
|
128
|
-
# find_outputs 'my_collection', {}, 1,
|
128
|
+
# find_outputs 'my_collection', {}, 1, 100, job_id: 123
|
129
129
|
#
|
130
130
|
# @note *opts `:job_id` option is prioritize over `:scraper_name` when
|
131
131
|
# both exists. If none add provided or nil values, then current job
|
132
132
|
# will be used to query instead, this is the defaul behavior.
|
133
|
-
def find_outputs(collection='default', query={}, page=1, per_page=
|
133
|
+
def find_outputs(collection='default', query={}, page=1, per_page=100, opts = {})
|
134
134
|
# Validate parameters out from nil for easier user usage.
|
135
135
|
raise ArgumentError.new("collection needs to be a String") unless collection.is_a?(String)
|
136
136
|
raise ArgumentError.new("query needs to be a Hash, instead of: #{query}") unless query.is_a?(Hash)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: answersengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parama Danoesubroto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -234,6 +234,8 @@ licenses:
|
|
234
234
|
- MIT
|
235
235
|
metadata:
|
236
236
|
allowed_push_host: https://rubygems.org
|
237
|
+
homepage_uri: https://answersengine.com
|
238
|
+
source_code_uri: https://github.com/answersengine/answersengine
|
237
239
|
post_install_message:
|
238
240
|
rdoc_options: []
|
239
241
|
require_paths:
|