fulfil-io 0.4.7 → 0.4.8

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
  SHA256:
3
- metadata.gz: 21d5119cc38db9e9a414775dcfc9b37d53ca5fa3ff05218c4ae81bbc912d0695
4
- data.tar.gz: a4bf8e9ae17a2993c1a3644d298e39f71c78b1eddc40f6bb20d35bdb25ad1ba5
3
+ metadata.gz: 2ee812b819341ca5960284540853594c9ec4ec07735f75672913cbdce1e7bf72
4
+ data.tar.gz: 01f68a856b317a9ccc00946bac7ce06e638e9d016bf075a7e4130d17420f7c8a
5
5
  SHA512:
6
- metadata.gz: b1fc2fe57cb22c234b12ffe3c0182030baa3be525971eaa7a2f21470e36f5ef9f6957919ba3675574c1159c79ff3b40f28b11167927ce8f852e70fed667f01b3
7
- data.tar.gz: 1406056b1b4f566163829b91dd96822c1705286528581567f74d1c383146652a10e0788fd1b80bab81fa79088a32a65440c72483f70fc8c22ae073e9115f19fa
6
+ metadata.gz: cb6a91114dea84e8c578f96ab2599ad03c036fc3222bf4b494f8cd32f79944b744660a2c0e4c7c45602e05e28f651eb6a6786a51e591950e04e36b291b3755a3
7
+ data.tar.gz: 7d107fba6190bafa996da7cb9f081089d64d7d8bc1f1cbf2506e30b310e789b2567669b84208dc807456372e1330ebce5ac701b762f4d0c95b38551de18daf83
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.8
2
+
3
+ * Feature: Allow more params with InteractiveReport.
4
+
1
5
  ## 0.4.7
2
6
 
3
7
  * Bugfix: Accidentally removed the model parameter from the URL.
@@ -5,13 +5,20 @@ module Fulfil
5
5
  @report = report
6
6
  end
7
7
 
8
- def execute(start_date:, end_date:)
8
+ def execute(**params)
9
+ body = {}
10
+
11
+ params.each do |key, value|
12
+ body[key] = if value.is_a?(Date)
13
+ serialize_date(value)
14
+ else
15
+ value
16
+ end
17
+ end
18
+
9
19
  @client.interactive_report(
10
20
  endpoint: report_url,
11
- body: [{
12
- start_date: serialize_date(start_date),
13
- end_date: serialize_date(end_date)
14
- }]
21
+ body: [body]
15
22
  )
16
23
  end
17
24
 
@@ -30,4 +37,4 @@ module Fulfil
30
37
  }
31
38
  end
32
39
  end
33
- end
40
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fulfil
4
- VERSION = '0.4.7'
4
+ VERSION = '0.4.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulfil-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moore