kalibro_gem 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kalibro_gem/entities/base_tool.rb +5 -3
- data/lib/kalibro_gem/version.rb +1 -1
- data/spec/entities/base_tool_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c6ad6b4cb1f49fe2d8c2fb682fdf3919a5da5a2
|
4
|
+
data.tar.gz: 3e16dab9318786a036bd499b90a37d0f2c4a8191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6af1499cf774612bb8d8ac88c02977fbb8e2f4834418dadbee7401c5adccd236e7afdb60d85f8777426da4f38866edae9e4ce4cb0ef401c0d60dc824ed04283
|
7
|
+
data.tar.gz: 6eea311731c168b0d7302de0ca421c582a90cd1d4e1a5d0989ce45758a2b00fcd04c33d888ebcc2086fedd69c7a3761d6c1e34549fd70979b57a1a44770942d4
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# it under the terms of the GNU General Public License as published by
|
6
6
|
# the Free Software Foundation, either version 3 of the License, or
|
7
7
|
# (at your option) any later version.
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
@@ -40,9 +40,11 @@ module KalibroGem
|
|
40
40
|
raise KalibroGem::Errors::RecordNotFound
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def self.all_names
|
45
|
-
request(:all_base_tool_names)[:base_tool_name]
|
45
|
+
base_tool_name = request(:all_base_tool_names)[:base_tool_name]
|
46
|
+
return [base_tool_name] if base_tool_name.is_a?(String)
|
47
|
+
return base_tool_name.to_a
|
46
48
|
end
|
47
49
|
|
48
50
|
def self.all
|
data/lib/kalibro_gem/version.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# it under the terms of the GNU General Public License as published by
|
6
6
|
# the Free Software Foundation, either version 3 of the License, or
|
7
7
|
# (at your option) any later version.
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
@@ -75,7 +75,7 @@ describe KalibroGem::Entities::BaseTool do
|
|
75
75
|
expects(:request).
|
76
76
|
with(:all_base_tool_names).
|
77
77
|
returns({:base_tool_name => [base_tool.name, another_base_tool.name]})
|
78
|
-
|
78
|
+
|
79
79
|
KalibroGem::Entities::BaseTool.
|
80
80
|
expects(:request).
|
81
81
|
with(:get_base_tool, {:base_tool_name => base_tool.name}).
|
@@ -152,11 +152,11 @@ describe KalibroGem::Entities::BaseTool do
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
end
|
155
|
-
|
155
|
+
|
156
156
|
describe 'metric' do
|
157
157
|
subject { FactoryGirl.build(:base_tool) }
|
158
158
|
let(:metric) { subject.supported_metrics.first }
|
159
|
-
|
159
|
+
|
160
160
|
it 'should return nil with an inexistent name' do
|
161
161
|
subject.metric("fake name").should be_nil
|
162
162
|
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.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Morais
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2014-
|
18
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|