crunchbase4 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/crunchbase/utilities/search_query_parameters.rb +7 -1
- data/lib/crunchbase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e94aa6bd2ebe2d92291b2566572e4436e65c9562ee8425d26b50917e926f2f
|
4
|
+
data.tar.gz: e44770e8b5d92ecbc2a9deda44007d51aaf63038ffaf2127b1e58852b07b5d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d808d02e7619ffaba3990f79d989974361d6233d6fdebd8260cfc6eaed68bf34477d761a919defa0346e5aad9b1b1b9810752316d879a3fcc1cbeb599faea0d
|
7
|
+
data.tar.gz: 66dbd1d99bb4c0c052a511264e2e424f26ff09ff4d1d7bc3a9abb57748561a5c13c99823677843555fafd9ad24f0c41fc518fb0223aebc3a63d06f249984d0ba
|
data/Gemfile.lock
CHANGED
@@ -27,7 +27,13 @@ module Crunchbase
|
|
27
27
|
# after_id should be the uuid of the last item in the current page. May not be provided simultaneously with before_id.
|
28
28
|
def query_parameters(args)
|
29
29
|
order_field_ids = args[:order_field_ids] || ['updated_at']
|
30
|
-
order_conditions = order_field_ids.map
|
30
|
+
order_conditions = order_field_ids.map do |field_id|
|
31
|
+
{
|
32
|
+
'field_id' => field_id,
|
33
|
+
'sort' => (args[:sort] || 'desc'),
|
34
|
+
'nulls' => 'last'
|
35
|
+
}
|
36
|
+
end
|
31
37
|
|
32
38
|
params = {
|
33
39
|
'field_ids' => default_field_ids + (args[:field_ids] || []).uniq,
|
data/lib/crunchbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crunchbase4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Encore Shao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|