cistern 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cistern/service.rb +21 -7
- data/lib/cistern/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e2a073ec9812c931fb912227d9ad1c2b90e2f3e
|
4
|
+
data.tar.gz: aedb93e04e22e42d386c9608f3b18bdc18d3987e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff0f6baa544d2bad3f19eb81b2bc7aa45dc65c8ceecbf3c7b13858143fdc4d3f7c97c8c768af925731a3529ae350eb75891d6169305a35ce7e3b0e1cb2ada14
|
7
|
+
data.tar.gz: 6d2bf4ed911387a1d2ab0f544092b628a646086e11f3a966d368a9bab8b393fb6dd6f22d0573b09dee81f9f6a50406a2eea3e03adf93b0b94c1aed4dca6d0138
|
data/lib/cistern/service.rb
CHANGED
@@ -48,23 +48,37 @@ class Cistern::Service
|
|
48
48
|
|
49
49
|
klass::Mock.send(:include, klass::Collections)
|
50
50
|
klass::Mock.send(:extend, Cistern::WaitFor)
|
51
|
-
klass::Mock.send(:extend, Cistern::Data)
|
52
51
|
klass::Mock.timeout_error = klass::Timeout
|
52
|
+
|
53
|
+
klass::Mock.send(:extend, Cistern::Data)
|
54
|
+
|
53
55
|
klass::Real.send(:include, klass::Collections)
|
54
56
|
klass::Real.send(:extend, Cistern::WaitFor)
|
55
57
|
klass::Real.timeout_error = klass::Timeout
|
56
58
|
end
|
57
59
|
|
58
|
-
def collection_path(collection_path)
|
59
|
-
|
60
|
+
def collection_path(collection_path = nil)
|
61
|
+
if collection_path
|
62
|
+
@collection_path = collection_path
|
63
|
+
else
|
64
|
+
@collection_path
|
65
|
+
end
|
60
66
|
end
|
61
67
|
|
62
|
-
def model_path(model_path)
|
63
|
-
|
68
|
+
def model_path(model_path = nil)
|
69
|
+
if model_path
|
70
|
+
@model_path = model_path
|
71
|
+
else
|
72
|
+
@model_path
|
73
|
+
end
|
64
74
|
end
|
65
75
|
|
66
|
-
def request_path(request_path)
|
67
|
-
|
76
|
+
def request_path(request_path = nil)
|
77
|
+
if request_path
|
78
|
+
@request_path = request_path
|
79
|
+
else
|
80
|
+
@request_path
|
81
|
+
end
|
68
82
|
end
|
69
83
|
|
70
84
|
def collections
|
data/lib/cistern/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cistern
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: API client framework extracted from Fog
|
14
14
|
email:
|
@@ -85,4 +85,3 @@ test_files:
|
|
85
85
|
- spec/singular_spec.rb
|
86
86
|
- spec/spec_helper.rb
|
87
87
|
- spec/wait_for_spec.rb
|
88
|
-
has_rdoc:
|