gds-api-adapters 18.11.0 → 19.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d5b0b0637486d62f69c0a5e6771ad5cfeec9ba0
4
- data.tar.gz: 060cf1da1734eb2e625019b0e3ad0aeff5498baf
3
+ metadata.gz: 74bb42454aa30f1970f30520a8c77f578bd4e336
4
+ data.tar.gz: a10fcf027a156dd02d7e80ef31c0a75abbbfc41d
5
5
  SHA512:
6
- metadata.gz: db0e76255b3703c6a09b70c1edddbe6e8b56f2f1123859e8aaa3f58df34cf3dbc1ef0d58e92163b68915a21d04d8a266929013eb8f02ec216d3a53425153b03f
7
- data.tar.gz: 67dcfaaabc039878a97aab433e3882ee361fccde1e1aefb3f4ea6903c90bbeef00c09bf15486860c627c8dcad6361c3bdb5f4d160c4a528921f887e12c238a36
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 rummager_has_new_policies_for_every_organisation(*args)
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)
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '18.11.0'
2
+ VERSION = '19.0.0'
3
3
  end
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: 18.11.0
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-08 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek