reso_api 2.0.1 → 2.0.3

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: d07a8c664cda837a170e4faa1f7e038d50bac47d7f7a8364f46d29255d06c1a8
4
- data.tar.gz: a5ec6e603fe65f5c66e59032de39a4f44edfef1ea05d0ae4e92036d626e00e6e
3
+ metadata.gz: d7bef469873dd85e84c9f3d2f7af52ceba4059ff7aa465f34812b3afb0ba90e4
4
+ data.tar.gz: 49c12e55165175f0ace3f5d5ac6766d266d4f808fafa97ed16d2ad3ec108414b
5
5
  SHA512:
6
- metadata.gz: f52bcb068fc30aa51687e087a66171f6d52c79a8e5c786650b5dfed17c9b8a28ef8f8dd68ca03a2be503b1fab61db655a02b039bf840c28c1771bfcfa8920ae6
7
- data.tar.gz: 820f3d1a47c2c9fbc2336d170a50203806a671ac883bd2d4ed3d5968b73e31359e96a339facaf792cd2ffc88fa185cafaa928a8f6ed00b1129246b163c45c352
6
+ metadata.gz: ec41a9e1847690b879c409cdcc6d0ad26ac551f1f7acd79b6c89dca86473a5eeb2570f408f52399b75cf071c75bacc28150d418a745d50876b3f9a72c60cd9fa
7
+ data.tar.gz: b7cfd7e165cc87c85adee37140c582902432a99bdb15ce0cefcc38da34b3364662ef725db69c46d56507e39763d408440a571b80b6ea1c09f0810755ff6331f3
data/Gemfile.lock CHANGED
@@ -9,53 +9,79 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.3)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ activesupport (8.1.2)
13
+ base64
14
+ bigdecimal
15
+ concurrent-ruby (~> 1.0, >= 1.3.1)
16
+ connection_pool (>= 2.2.5)
17
+ drb
14
18
  i18n (>= 1.6, < 2)
19
+ json
20
+ logger (>= 1.4.2)
15
21
  minitest (>= 5.1)
16
- tzinfo (~> 2.0)
22
+ securerandom (>= 0.3)
23
+ tzinfo (~> 2.0, >= 2.0.5)
24
+ uri (>= 0.13.1)
17
25
  base64 (0.3.0)
18
26
  benchmark (0.5.0)
19
27
  bigdecimal (4.0.1)
20
- concurrent-ruby (1.1.10)
21
- diff-lcs (1.5.0)
28
+ concurrent-ruby (1.3.6)
29
+ connection_pool (3.0.2)
30
+ diff-lcs (1.6.2)
22
31
  drb (2.2.3)
23
- faraday (2.3.0)
24
- faraday-net_http (~> 2.0)
25
- ruby2_keywords (>= 0.0.4)
26
- faraday-net_http (2.0.3)
27
- i18n (1.10.0)
32
+ faraday (2.14.1)
33
+ faraday-net_http (>= 2.0, < 3.5)
34
+ json
35
+ logger
36
+ faraday-net_http (3.4.2)
37
+ net-http (~> 0.5)
38
+ hashie (5.1.0)
39
+ logger
40
+ i18n (1.14.8)
28
41
  concurrent-ruby (~> 1.0)
29
- jwt (2.3.0)
42
+ json (2.18.1)
43
+ jwt (3.1.2)
44
+ base64
30
45
  logger (1.7.0)
31
- minitest (5.15.0)
32
- multi_json (1.15.0)
33
- multi_xml (0.6.0)
46
+ minitest (6.0.1)
47
+ prism (~> 1.5)
48
+ multi_xml (0.8.1)
49
+ bigdecimal (>= 3.1, < 5)
34
50
  mutex_m (0.3.0)
35
- oauth2 (1.4.9)
36
- faraday (>= 0.17.3, < 3.0)
37
- jwt (>= 1.0, < 3.0)
38
- multi_json (~> 1.3)
51
+ net-http (0.9.1)
52
+ uri (>= 0.11.1)
53
+ oauth2 (2.0.18)
54
+ faraday (>= 0.17.3, < 4.0)
55
+ jwt (>= 1.0, < 4.0)
56
+ logger (~> 1.2)
39
57
  multi_xml (~> 0.5)
40
- rack (>= 1.2, < 3)
41
- rack (2.2.3.1)
42
- rake (13.0.6)
43
- rspec (3.11.0)
44
- rspec-core (~> 3.11.0)
45
- rspec-expectations (~> 3.11.0)
46
- rspec-mocks (~> 3.11.0)
47
- rspec-core (3.11.0)
48
- rspec-support (~> 3.11.0)
49
- rspec-expectations (3.11.0)
58
+ rack (>= 1.2, < 4)
59
+ snaky_hash (~> 2.0, >= 2.0.3)
60
+ version_gem (~> 1.1, >= 1.1.9)
61
+ prism (1.9.0)
62
+ rack (3.2.4)
63
+ rake (13.3.1)
64
+ rspec (3.13.2)
65
+ rspec-core (~> 3.13.0)
66
+ rspec-expectations (~> 3.13.0)
67
+ rspec-mocks (~> 3.13.0)
68
+ rspec-core (3.13.6)
69
+ rspec-support (~> 3.13.0)
70
+ rspec-expectations (3.13.5)
50
71
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.11.0)
52
- rspec-mocks (3.11.1)
72
+ rspec-support (~> 3.13.0)
73
+ rspec-mocks (3.13.7)
53
74
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.11.0)
55
- rspec-support (3.11.0)
56
- ruby2_keywords (0.0.5)
57
- tzinfo (2.0.4)
75
+ rspec-support (~> 3.13.0)
76
+ rspec-support (3.13.7)
77
+ securerandom (0.4.1)
78
+ snaky_hash (2.0.3)
79
+ hashie (>= 0.1.0, < 6)
80
+ version_gem (>= 1.1.8, < 3)
81
+ tzinfo (2.0.6)
58
82
  concurrent-ruby (~> 1.0)
83
+ uri (1.1.1)
84
+ version_gem (1.1.9)
59
85
 
60
86
  PLATFORMS
61
87
  arm64-darwin-21
data/README.md CHANGED
@@ -373,6 +373,14 @@ For servers that support it, `$ignorenulls` omits empty keys from the response t
373
373
  client.properties(ignorenulls: true)
374
374
  ```
375
375
 
376
+ #### $ignorecase
377
+
378
+ For servers that support it, `$ignorecase` performs case-insensitive filtering. Note that this is not a standard OData parameter and may only be supported by certain providers (e.g. Constellation1).
379
+
380
+ ```ruby
381
+ client.members(filter: "MemberLastName eq 'Smith'", ignorecase: true)
382
+ ```
383
+
376
384
  #### Automatically iterate over all results
377
385
 
378
386
  By passing a block to Media, Member, Office, and Property resource calls, subsequent paginated calls will automatically be made until the whole result set has been traversed. The block provided is executed for each returned object hash. The `batch` option can be used to return the full array of results.
@@ -82,6 +82,7 @@ module RESO
82
82
  "$expand": hash[:expand],
83
83
  "$count": hash[:count].to_s.presence,
84
84
  "$ignorenulls": hash[:ignorenulls].to_s.presence,
85
+ "$ignorecase": hash[:ignorecase].to_s.presence,
85
86
  "$debug": hash[:debug]
86
87
  }.compact
87
88
  if !block.nil?
@@ -114,7 +114,7 @@ module RESO
114
114
  builder.instance_variable_set(:@count_flag, true)
115
115
  builder.instance_variable_set(:@limit_value, 1)
116
116
  response = builder.execute_raw
117
- response['@odata.totalCount'].to_i
117
+ (response['@odata.totalCount'] || response['@odata.count']).to_i
118
118
  end
119
119
 
120
120
  def each(&block)
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund