kalibro_gatekeeper_client 0.0.1 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d38c2656e3dee67a4f88b3269ff764f3070bbea
|
4
|
+
data.tar.gz: 944b361d3fef5157ffe4c8c6895e43c02aec6c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23504ffbf5cb432e37fc2b548b74ee99fa6712f71656df494c2e4f1daf378a5b8630a47e8ed02da5c7fdcc0dc3fb16a134dd977c0ad6c769a2c5d2494acf7f4
|
7
|
+
data.tar.gz: 9c9da2ac04cd95040d03d0479fcefffaf436d2988bba5a5ae580fe3d170e5223e835e3ba0f52318223934461536fed679146afb4d5297f7ff1eac8fff9c752dc
|
@@ -85,16 +85,17 @@ module KalibroGatekeeperClient
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
def reading
|
89
|
+
@reading ||= KalibroGatekeeperClient::Entities::Reading.find(reading_id)
|
90
|
+
@reading
|
91
|
+
end
|
92
|
+
|
88
93
|
private
|
89
94
|
|
90
95
|
def save_params
|
91
96
|
{range: self.to_hash, metric_configuration_id: self.metric_configuration_id}
|
92
97
|
end
|
93
98
|
|
94
|
-
def reading
|
95
|
-
@reading ||= KalibroGatekeeperClient::Entities::Reading.find(reading_id)
|
96
|
-
@reading
|
97
|
-
end
|
98
99
|
end
|
99
100
|
end
|
100
101
|
end
|
data/spec/entities/range_spec.rb
CHANGED
@@ -67,6 +67,12 @@ describe KalibroGatekeeperClient::Entities::Range do
|
|
67
67
|
returns(reading)
|
68
68
|
end
|
69
69
|
|
70
|
+
context 'reading' do
|
71
|
+
it 'should return the correct reading' do
|
72
|
+
subject.reading.should eq(reading)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
70
76
|
context 'label' do
|
71
77
|
it 'should get the label of the reading' do
|
72
78
|
subject.label.should eq(reading.label)
|
@@ -222,4 +228,4 @@ describe KalibroGatekeeperClient::Entities::Range do
|
|
222
228
|
KalibroGatekeeperClient::Entities::Range.all.should include(subject)
|
223
229
|
end
|
224
230
|
end
|
225
|
-
end
|
231
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_gatekeeper_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Araújo Martinez
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-04-
|
14
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|