fathom_api 0.1.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd1fb1ed59645e003831fb90b389245f3eae70c42aab53a3e810880396960073
4
- data.tar.gz: 9dca1f450bdadfb8fbb913210a3a6cb2409cfd3355f92c0289c3bb3ec081cf4d
3
+ metadata.gz: 2f5fb64e963c720488054fef8bb3f7ed01bc0773546215f36a5d70189ac3272b
4
+ data.tar.gz: af494ca88974437fbd5b1e7c821ac41d75775b713d8f515b86148c46859adf4c
5
5
  SHA512:
6
- metadata.gz: 3deac641b6283efb87b284c1f4c80f360e5b2e3ab0eac061cf9599de059ba104f4dfb8c246895fd2b1242281411e774d9e76146e8b09560f2399b6b2804f6797
7
- data.tar.gz: 12b9b2bba5a6e9e72766503aa0eeec5fb6698623df763a9b148883382c11659c4334299026970133abb5301ac1b7c23e9e6ef806d65ad0233c830262ad585109
6
+ metadata.gz: ef334d4d5856b8cb7f5b069ff34474bf87a95d002541c99f3edfc91e486aef3b46d65f17ccf77037a3bace841233498a005f16809763c89168f64dabca48d145
7
+ data.tar.gz: 9d2d3ae828fdfdd91d3f33bcfe1f131ad8c63e96d5c687465376f5188dea485d9dc797b04b0c6fb7f3bc360cdef51bba2b8f2a7e30af3d7c37c4cc338a3445ad
data/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.2.0] - 2022-05-26
10
+
11
+ ### Changed
12
+
13
+ - Update the Aggregations endpoint to automatically call `.to_json` when using Filters if needed. Thanks @joemasilotti!
14
+ - Bump version to 0.2.0
15
+
16
+ ## [0.1.2] - 2021-08-23
17
+
18
+ ### Added
19
+
20
+ - Previous stable release of the ruby gem for the Fathom API.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fathom_api (0.1.2)
4
+ fathom_api (0.2.0)
5
5
  faraday (~> 1.7)
6
6
  faraday_middleware (~> 1.1)
7
7
 
@@ -9,26 +9,30 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
- faraday (1.7.0)
12
+ faraday (1.10.0)
13
13
  faraday-em_http (~> 1.0)
14
14
  faraday-em_synchrony (~> 1.0)
15
15
  faraday-excon (~> 1.1)
16
- faraday-httpclient (~> 1.0.1)
16
+ faraday-httpclient (~> 1.0)
17
+ faraday-multipart (~> 1.0)
17
18
  faraday-net_http (~> 1.0)
18
- faraday-net_http_persistent (~> 1.1)
19
+ faraday-net_http_persistent (~> 1.0)
19
20
  faraday-patron (~> 1.0)
20
21
  faraday-rack (~> 1.0)
21
- multipart-post (>= 1.2, < 3)
22
+ faraday-retry (~> 1.0)
22
23
  ruby2_keywords (>= 0.0.4)
23
24
  faraday-em_http (1.0.0)
24
25
  faraday-em_synchrony (1.0.0)
25
26
  faraday-excon (1.1.0)
26
27
  faraday-httpclient (1.0.1)
28
+ faraday-multipart (1.0.3)
29
+ multipart-post (>= 1.2, < 3)
27
30
  faraday-net_http (1.0.1)
28
31
  faraday-net_http_persistent (1.2.0)
29
32
  faraday-patron (1.0.0)
30
33
  faraday-rack (1.0.0)
31
- faraday_middleware (1.1.0)
34
+ faraday-retry (1.0.3)
35
+ faraday_middleware (1.2.0)
32
36
  faraday (~> 1.0)
33
37
  minitest (5.14.4)
34
38
  multipart-post (2.1.1)
@@ -62,6 +66,7 @@ GEM
62
66
 
63
67
  PLATFORMS
64
68
  x86_64-darwin-20
69
+ x86_64-darwin-21
65
70
  x86_64-linux
66
71
 
67
72
  DEPENDENCIES
@@ -71,4 +76,4 @@ DEPENDENCIES
71
76
  standard
72
77
 
73
78
  BUNDLED WITH
74
- 2.2.25
79
+ 2.2.33
@@ -2,8 +2,17 @@ module Fathom
2
2
  class AggregationsResource < Resource
3
3
  # TODO: Ensure this works properly
4
4
  def list(entity_id:, entity:, aggregates:, **params)
5
- get_request("aggregations", params: params.merge(entity_id: entity_id,
6
- entity: entity, aggregates: aggregates))
5
+ filters = params.delete(:filters) || {}
6
+ filters = filters.to_json if filters.is_a?(Hash)
7
+
8
+ params.merge!(
9
+ entity_id: entity_id,
10
+ entity: entity,
11
+ aggregates: aggregates,
12
+ filters: filters
13
+ )
14
+
15
+ get_request("aggregations", params: params)
7
16
  end
8
17
  end
9
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fathom
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fathom_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Fomera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".github/workflows/main.yml"
49
49
  - ".gitignore"
50
+ - CHANGELOG.md
50
51
  - CODE_OF_CONDUCT.md
51
52
  - Gemfile
52
53
  - Gemfile.lock
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
93
  - !ruby/object:Gem::Version
93
94
  version: '0'
94
95
  requirements: []
95
- rubygems_version: 3.2.3
96
+ rubygems_version: 3.2.32
96
97
  signing_key:
97
98
  specification_version: 4
98
99
  summary: A gem for using the Fathom API