gds-api-adapters 18.11.0 → 19.0.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 +4 -4
- data/lib/gds_api/test_helpers/rummager.rb +1 -21
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74bb42454aa30f1970f30520a8c77f578bd4e336
|
|
4
|
+
data.tar.gz: a10fcf027a156dd02d7e80ef31c0a75abbbfc41d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7031ecf415602f3e70c9b37963aa04114f7482d5ba3f5b65ed7fe883acdc70da40631daa985bea7a923cc096d369cb603e24d5915d7a25ef4d6a8cb0b7753d51
|
|
7
|
+
data.tar.gz: 5d9f6a306e719235254b72eba5c3ce24fd0979a70211d270cfb1ef0d766aa762b4ac6af588f75b35cd2e3186acf450f8694665d957c20fb753bdabf8cc6318c3
|
|
@@ -50,22 +50,12 @@ module GdsApi
|
|
|
50
50
|
run_example_query
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
def rummager_has_no_policies_for_any_organisation
|
|
54
|
-
puts "`rummager_has_no_policies_for_any_organisation` has been deprecated in favour of `rummager_has_no_policies_for_any_type`"
|
|
55
|
-
rummager_has_no_policies_for_any_type
|
|
56
|
-
end
|
|
57
|
-
|
|
58
53
|
def rummager_has_no_policies_for_any_type
|
|
59
54
|
stub_request(:get, %r{/unified_search.json})
|
|
60
55
|
.to_return(body: no_search_results_found)
|
|
61
56
|
end
|
|
62
57
|
|
|
63
|
-
def
|
|
64
|
-
puts "`rummager_has_new_policies_for_every_organisation` has been deprecated in favour of `rummager_has_new_policies_for_every_type`"
|
|
65
|
-
rummager_has_new_policies_for_every_type(*args)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def rummager_has_new_policies_for_every_type(options = {})
|
|
58
|
+
def rummager_has_policies_for_every_type(options = {})
|
|
69
59
|
if count = options[:count]
|
|
70
60
|
stub_request(:get, %r{/unified_search.json.*count=#{count}.*})
|
|
71
61
|
.to_return(body: first_n_results(new_policies_results, n: count))
|
|
@@ -75,16 +65,6 @@ module GdsApi
|
|
|
75
65
|
end
|
|
76
66
|
end
|
|
77
67
|
|
|
78
|
-
def rummager_has_old_policies_for_every_organisation(options = {})
|
|
79
|
-
if count = options[:count]
|
|
80
|
-
stub_request(:get, %r{/unified_search.json.*count=#{count}.*})
|
|
81
|
-
.to_return(body: first_n_results(old_policies_results, n: count))
|
|
82
|
-
else
|
|
83
|
-
stub_request(:get, %r{/unified_search.json})
|
|
84
|
-
.to_return(body: old_policies_results)
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
|
|
88
68
|
private
|
|
89
69
|
def stub_request_for(result_set)
|
|
90
70
|
stub_request(:get, /example.com\/unified_search/).to_return(body: result_set)
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gds-api-adapters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 19.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Stewart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: plek
|