kalibro_gem 0.0.1.rc15 → 0.0.1.rc16
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: bb7949a4cd93d9f81fd8943e89c67886b4419b57
|
4
|
+
data.tar.gz: 84de6557a9a17d7e9a94277a0c52261322fdeac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4422c8c9b7f30e32cfc4ba66961e5bcc937bcf42f866d37d618046fd5c5d8d0c1b37a34e0fab51ac8dc2d634e32eac22f238fa6fd2b778114e177ccd7427e185
|
7
|
+
data.tar.gz: e9f7b88a206f8e995616401a73806dcdff25bb0984121b3acd900223b4f8b1adfabad80ab1cf70ba5d0e64694413e3783e76e066e00ba63ee9e1a99f9fc1d7b3
|
@@ -60,6 +60,14 @@ module KalibroGem
|
|
60
60
|
create_objects_array_from_hash request(:metric_configurations_of, {:configuration_id => configuration_id})[:metric_configuration]
|
61
61
|
end
|
62
62
|
|
63
|
+
def self.exists?(id)
|
64
|
+
begin
|
65
|
+
return true unless find(id).nil?
|
66
|
+
rescue KalibroGem::Errors::RecordNotFound
|
67
|
+
return false
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
63
71
|
private
|
64
72
|
|
65
73
|
def save_params
|
@@ -67,4 +75,4 @@ module KalibroGem
|
|
67
75
|
end
|
68
76
|
end
|
69
77
|
end
|
70
|
-
end
|
78
|
+
end
|
data/lib/kalibro_gem/version.rb
CHANGED
@@ -146,4 +146,28 @@ describe KalibroGem::Entities::MetricConfiguration do
|
|
146
146
|
subject.kalibro_errors.should be_empty
|
147
147
|
end
|
148
148
|
end
|
149
|
-
|
149
|
+
|
150
|
+
describe 'exists?' do
|
151
|
+
subject {FactoryGirl.build(:metric_configuration)}
|
152
|
+
|
153
|
+
context 'when the metric configuration exists' do
|
154
|
+
before :each do
|
155
|
+
KalibroGem::Entities::MetricConfiguration.expects(:find).with(subject.id).returns(subject)
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'should return true' do
|
159
|
+
KalibroGem::Entities::MetricConfiguration.exists?(subject.id).should be_true
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
context 'when the metric configuration does not exist' do
|
164
|
+
before :each do
|
165
|
+
KalibroGem::Entities::MetricConfiguration.expects(:find).with(subject.id).raises(KalibroGem::Errors::RecordNotFound)
|
166
|
+
end
|
167
|
+
|
168
|
+
it 'should return false' do
|
169
|
+
KalibroGem::Entities::MetricConfiguration.exists?(subject.id).should be_false
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.rc16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Morais
|
@@ -15,146 +15,146 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2014-
|
18
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
type: :development
|
28
28
|
prerelease: false
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :development
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.14'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '2.14'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: cucumber
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.3.10
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.3.10
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: mocha
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.0.0
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 1.0.0
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: simplecov
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: factory_girl
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 4.3.0
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 4.3.0
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: coveralls
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: savon
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.3.3
|
139
139
|
type: :runtime
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 2.3.3
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: activesupport
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 4.0.2
|
153
153
|
type: :runtime
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 4.0.2
|
160
160
|
description: KalibroGem is a Ruby gem intended to be an interface for Ruby applications
|
@@ -172,10 +172,10 @@ executables: []
|
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
-
|
175
|
+
- .gitignore
|
176
|
+
- .ruby-gemset
|
177
|
+
- .ruby-version
|
178
|
+
- .travis.yml
|
179
179
|
- AUTHORS
|
180
180
|
- COPYING
|
181
181
|
- COPYING.LESSER
|
@@ -345,17 +345,17 @@ require_paths:
|
|
345
345
|
- lib
|
346
346
|
required_ruby_version: !ruby/object:Gem::Requirement
|
347
347
|
requirements:
|
348
|
-
- -
|
348
|
+
- - '>='
|
349
349
|
- !ruby/object:Gem::Version
|
350
350
|
version: '0'
|
351
351
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
352
352
|
requirements:
|
353
|
-
- -
|
353
|
+
- - '>'
|
354
354
|
- !ruby/object:Gem::Version
|
355
355
|
version: 1.3.1
|
356
356
|
requirements: []
|
357
357
|
rubyforge_project:
|
358
|
-
rubygems_version: 2.
|
358
|
+
rubygems_version: 2.1.11
|
359
359
|
signing_key:
|
360
360
|
specification_version: 4
|
361
361
|
summary: KalibroEntites is a communication interface with the Kalibro service.
|