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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2515f220abb2835bf815a55a62382f6929e32a2629fda0cc7504f49704ef984
4
- data.tar.gz: f898220e6b2dc947316915531c6ffc6faa7011de27f1a574d92f832984d85d8c
3
+ metadata.gz: f6abf0aa1f88309da00bf88ad024eed7b7a99b2e5c0a4f63311b42751985bca2
4
+ data.tar.gz: a3d8c454ed93e08bfadb67f4b4934055cf04025e08a8372617dc86b4b4feb1e7
5
5
  SHA512:
6
- metadata.gz: d8a750d0d2c7099b3e8d46a39d0a5f0b874296491a5ade11d6a56c8ca7611011f7d156e39e785b19bf0c735d109bf494c20738d14db2f6aa114668422485cf32
7
- data.tar.gz: 0bd4e8cf8fbdec06a034769635272ff4f295d3741704930bf0f0209f7cf055ba267080cc61f65f139e760484dc4dda5984d3d6ad8066b16f42d46b1deb1df00b
6
+ metadata.gz: 3ca6e10e1e577f013bb8d72dd2df785362975c9619d2fb93d0ed4b69bac85466ad1a9d172b9c96438aea2682504a06b40e73595b59be3930ed54e9cbf9dbadbe
7
+ data.tar.gz: 3dccf75a92138fd9f879b128f48f7e1443eac668fa700e2bbbf74e3ae3f4bda93019cac0ee1c9626608594f063ecb5addb3bdb73328792e9d2ecbbeda9f72533
@@ -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 (30) Page size.
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, 30
124
+ # find_outputs 'my_collection', {}, 1, 100
125
125
  # @example Find from another scraper by name
126
- # find_outputs 'my_collection', {}, 1, 30, scraper_name: 'my_scraper'
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, 30, job_id: 123
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=30, opts = {})
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)
@@ -1,3 +1,3 @@
1
1
  module AnswersEngine
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-21 00:00:00.000000000 Z
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: