rummageable 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Rummageable
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -83,12 +83,12 @@ class RummageableTest < MiniTest::Unit::TestCase
83
83
  def test_should_post_to_rummageable_host_determined_by_rummager_service_name
84
84
  document = {"title" => "TITLE"}
85
85
  stub_request(:post, "#{API}/documents")
86
- stub_request(:post, "http://whitehall-search.test.alphagov.co.uk/documents")
86
+ stub_request(:post, "http://whitehall-search.test.gov.uk/documents")
87
87
  with_rummager_service_name("whitehall-search") do
88
88
  Rummageable.index(document)
89
89
  end
90
90
  assert_not_requested(:post, "#{API}/documents")
91
- assert_requested(:post, "http://whitehall-search.test.alphagov.co.uk/documents")
91
+ assert_requested(:post, "http://whitehall-search.test.gov.uk/documents")
92
92
  end
93
93
 
94
94
  def test_should_delete_a_document_by_its_link
@@ -133,12 +133,12 @@ class RummageableTest < MiniTest::Unit::TestCase
133
133
  def test_should_delete_to_rummageable_host_determined_by_rummager_service_name
134
134
  link = "http://example.com/foo"
135
135
  stub_request(:delete, "#{API}/documents/http:%2F%2Fexample.com%2Ffoo")
136
- stub_request(:delete, "http://whitehall-search.test.alphagov.co.uk/documents/http:%2F%2Fexample.com%2Ffoo")
136
+ stub_request(:delete, "http://whitehall-search.test.gov.uk/documents/http:%2F%2Fexample.com%2Ffoo")
137
137
  with_rummager_service_name("whitehall-search") do
138
138
  Rummageable.delete(link)
139
139
  end
140
140
  assert_not_requested(:delete, "#{API}/#{API}/documents/http:%2F%2Fexample.com%2Ffoo")
141
- assert_requested(:delete, "http://whitehall-search.test.alphagov.co.uk/documents/http:%2F%2Fexample.com%2Ffoo")
141
+ assert_requested(:delete, "http://whitehall-search.test.gov.uk/documents/http:%2F%2Fexample.com%2Ffoo")
142
142
  end
143
143
 
144
144
  def test_should_defer_to_plek_for_the_location_of_the_rummager_host
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rummageable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.4.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - GovUK Beta Team
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-06-27 00:00:00 Z
13
+ date: 2012-09-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: "0"
44
+ version: 0.5.0
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: *id003
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- hash: 3837460675569533093
108
+ hash: 354247613567923491
109
109
  segments:
110
110
  - 0
111
111
  version: "0"
@@ -114,14 +114,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- hash: 3837460675569533093
117
+ hash: 354247613567923491
118
118
  segments:
119
119
  - 0
120
120
  version: "0"
121
121
  requirements: []
122
122
 
123
123
  rubyforge_project:
124
- rubygems_version: 1.8.12
124
+ rubygems_version: 1.8.24
125
125
  signing_key:
126
126
  specification_version: 3
127
127
  summary: Mediator for apps that want their content to be in the search index