gds-api-adapters 7.22.1 → 7.22.2
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.
- data/lib/gds_api/test_helpers/need_api.rb +9 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +3 -3
@@ -31,6 +31,15 @@ module GdsApi
|
|
31
31
|
stub_request(:get, url).to_return(status: 200, body: body.to_json, headers: {})
|
32
32
|
end
|
33
33
|
|
34
|
+
def need_api_has_needs_for_search(search_term, needs)
|
35
|
+
url = NEED_API_ENDPOINT + "/needs?q=#{search_term}"
|
36
|
+
|
37
|
+
body = response_base.merge(
|
38
|
+
"results" => needs
|
39
|
+
)
|
40
|
+
stub_request(:get, url).to_return(status: 200, body: body.to_json, headers: {})
|
41
|
+
end
|
42
|
+
|
34
43
|
def need_api_has_needs(needs)
|
35
44
|
url = NEED_API_ENDPOINT + "/needs"
|
36
45
|
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.22.
|
4
|
+
version: 7.22.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -340,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
340
340
|
version: '0'
|
341
341
|
segments:
|
342
342
|
- 0
|
343
|
-
hash:
|
343
|
+
hash: -3851561303277841732
|
344
344
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
345
|
none: false
|
346
346
|
requirements:
|
@@ -349,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: '0'
|
350
350
|
segments:
|
351
351
|
- 0
|
352
|
-
hash:
|
352
|
+
hash: -3851561303277841732
|
353
353
|
requirements: []
|
354
354
|
rubyforge_project:
|
355
355
|
rubygems_version: 1.8.23
|