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: 7f905d0afdabf434a436e0c2f3e7b5e80742534f
4
- data.tar.gz: 29872116521fdf9f944b3717570190007f9ff759
3
+ metadata.gz: 3d38c2656e3dee67a4f88b3269ff764f3070bbea
4
+ data.tar.gz: 944b361d3fef5157ffe4c8c6895e43c02aec6c24
5
5
  SHA512:
6
- metadata.gz: 2e011f7abdf45b0e50cb2c1637d83ea59c6ed9c3495719412388f695a6f1a8a2d18939eb1e40ce5e9463d4e2367c2bcb60008cde89f012c7e21bea51bdb0c1a6
7
- data.tar.gz: d514e27fd9c1b1590dcacc747da62bde279917951bdd58e0be257eec2031de326d0301fe21036c077f7c81d96e8db4469a224dac20e89264e85e7401ad5253ab
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
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGatekeeperClient
18
- VERSION = "0.0.1"
18
+ VERSION = "0.1.0"
19
19
  end
@@ -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.1
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-10 00:00:00.000000000 Z
14
+ date: 2014-04-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler