remote_database_cleaner 0.0.1 → 0.0.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dc2ebd291c95cbc8073a0e9ecd2c258a77fc153
|
4
|
+
data.tar.gz: f1c0cfe79c90fb2a7d0bec54f75b3d76bf6bc2f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3f00aeac6f67d0e26402285cb462fa7ad1cec55bdf497bf6459f78cda948844044fdbf15ba6762121ae46dce6e3dc612bcd41239db4ebcbe97d84453408e68e
|
7
|
+
data.tar.gz: a87ece00e9ae1d237b3271ab5440aa0d6f12c16fc9bf26c418c86180c875269c3fe28ba3afc6919aeff4fd5f1cc20f5e369ddad0a3c9f3d854c46adf8e9a380d
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# RemoteDatabaseCleaner
|
2
2
|
|
3
|
-
[database_cleaner](https://github.com/bmabey/database_cleaner) for [
|
3
|
+
[database_cleaner](https://github.com/bmabey/database_cleaner) for [Service Oriented Architecture](http://en.wikipedia.org/wiki/Service-oriented_architecture) (SOA). Clean
|
4
4
|
database remotely when used in conjunction with [remote_database_cleaner_home_rails](https://github.com/tdouce/remote_database_cleaner_home_rails).
|
5
5
|
|
6
6
|
## Getting Started
|
@@ -8,7 +8,7 @@ describe RemoteDatabaseCleaner do
|
|
8
8
|
it 'should be configured with correct defaults' do
|
9
9
|
expect(RemoteDatabaseCleaner.config.home).to eq({:host => nil,
|
10
10
|
:port => nil,
|
11
|
-
:end_point => '/
|
11
|
+
:end_point => '/remote_database_cleaner/home/clean'})
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'should be able to configure with a block' do
|
@@ -13,7 +13,7 @@ describe RemoteDatabaseCleaner::Config do
|
|
13
13
|
default_config = RemoteDatabaseCleaner::Config.new
|
14
14
|
expect(default_config.home).to eq({ :host => nil,
|
15
15
|
:port => nil,
|
16
|
-
:end_point => '/
|
16
|
+
:end_point => '/remote_database_cleaner/home/clean'})
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -30,13 +30,13 @@ describe RemoteDatabaseCleaner::Config do
|
|
30
30
|
it 'should return a url with port if port is configured' do
|
31
31
|
default_config.home[:host] = 'localhost'
|
32
32
|
default_config.home[:port] = 5555
|
33
|
-
expect(default_config.home_url).to eq('http://localhost:5555/
|
33
|
+
expect(default_config.home_url).to eq('http://localhost:5555/remote_database_cleaner/home/clean')
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should return a url without a port if port is not configured' do
|
37
37
|
default_config.home[:host] = 'localhost_no_port'
|
38
38
|
default_config.home[:port] = nil
|
39
|
-
expect(default_config.home_url).to eq('http://localhost_no_port/
|
39
|
+
expect(default_config.home_url).to eq('http://localhost_no_port/remote_database_cleaner/home/clean')
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_database_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tdouce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,4 +123,3 @@ test_files:
|
|
123
123
|
- spec/models/remote_database_cleaner/http_spec.rb
|
124
124
|
- spec/models/remote_database_cleaner_spec.rb
|
125
125
|
- spec/spec_helper.rb
|
126
|
-
has_rdoc:
|