datahen 0.11.0 → 0.11.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: d6c3a633e605f0c40a8c404f4bb2bb3c2b10aef8e6d7dec88d5a183687c056f0
4
- data.tar.gz: 3d5a46ee42a099cf53d2f24187fb8115d94732cfe656db352e4cf05d31c83bfa
3
+ metadata.gz: 80934b5ed446c59f749866cd5f497ef66f90e5af5509f3cd459d295352e537aa
4
+ data.tar.gz: 7d7c4ebae89f5cbcaa1d56950d6b4c36089c10c20d54ec2e8e11fee6cc81433e
5
5
  SHA512:
6
- metadata.gz: 7bd9f1d9d8a5b8b18e1658318738d75ea570ff4d400c1213eda504d3b2d2effc40c751923097671bc20407f33be80dd5d013f0f354cde714f974267fcf5a79dd
7
- data.tar.gz: 268295cdb7787776216fba2a18d0941162c05caaa6db346e3d39f4a51c03def0ac9209724b8d06b4d21629c007fc31d22cab7f40f8df745fac92513c46736118
6
+ metadata.gz: f1c68e2c7bb7f40e5c40c960d0dc412da03b7bc9f82e4d3b60f08e49fa1a796b34246b547bfb9ae67677aaf15944ff9d00f97dd97fa898309db0ee37864cd2b1
7
+ data.tar.gz: 65f4a182ecc8e9638c1c22c43d03b4487588c112f33e75d85f2ffbee1f29e2d55bf67f861c3b6b34a97ca1014c39a0570c93b8f704c19fe28e7b5266d5a1795a
@@ -159,7 +159,8 @@ module Datahen
159
159
  option :job, :aliases => :j, type: :numeric, desc: 'Set a specific job ID'
160
160
  option :"min-timestamp", type: :string, desc: 'Starting timestamp point in time to query historic stats (inclusive)'
161
161
  option :"max-timestamp", type: :string, desc: 'Ending timestamp point in time to query historic stats (inclusive)'
162
- option :"limit", type: :numeric, desc: 'Limit stats retrieved.'
162
+ option :"limit", type: :numeric, desc: 'Limit stats retrieved'
163
+ option :"order", type: :numeric, desc: 'Order stats by timestamp [DESC]'
163
164
  def history(scraper_name)
164
165
  client = Client::JobStat.new(options)
165
166
  if options[:job]
@@ -54,6 +54,7 @@ module Datahen
54
54
  query[:"min-timestamp"] = opts[:"min-timestamp"]
55
55
  query[:"max-timestamp"] = opts[:"max-timestamp"]
56
56
  query[:limit] = opts[:limit]
57
+ query[:order] = opts[:order]
57
58
 
58
59
  if opts[:query]
59
60
  if opts[:query].is_a?(Hash)
@@ -1,3 +1,3 @@
1
1
  module Datahen
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datahen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parama Danoesubroto