cistern 0.9.1 → 0.9.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: 9f248cb091a6313cee4f42390b45755120759d22
4
- data.tar.gz: f91fa47b5dc99d4db1ec9f84f798882e2ef3231c
3
+ metadata.gz: 6e2a073ec9812c931fb912227d9ad1c2b90e2f3e
4
+ data.tar.gz: aedb93e04e22e42d386c9608f3b18bdc18d3987e
5
5
  SHA512:
6
- metadata.gz: 07c1776f56bbb673648409b4a1ba8b51ef36c90acb67634e7892703bc8dc894fac33aa23c4a48734dbbebf75e5932d612176ec5a6816c8f4092dd46f68f9baf2
7
- data.tar.gz: 4e4b03ea861eb4151dcd8a033e3c9a511f24b90a3d29363ed6f203e19c417772bf0671469956693db576b139636ecad2889a02734fefeb2e395d72dfec5a7138
6
+ metadata.gz: 1ff0f6baa544d2bad3f19eb81b2bc7aa45dc65c8ceecbf3c7b13858143fdc4d3f7c97c8c768af925731a3529ae350eb75891d6169305a35ce7e3b0e1cb2ada14
7
+ data.tar.gz: 6d2bf4ed911387a1d2ab0f544092b628a646086e11f3a966d368a9bab8b393fb6dd6f22d0573b09dee81f9f6a50406a2eea3e03adf93b0b94c1aed4dca6d0138
@@ -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
- @collection_path = collection_path
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
- @model_path = model_path
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
- @request_path = request_path
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
@@ -1,3 +1,3 @@
1
1
  module Cistern
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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.1
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-12 00:00:00.000000000 Z
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: