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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b85de42aa16bc47ea1cd759d8939a958ed6ee9db
4
- data.tar.gz: 477272f56be8a37bca586f2c02e8a03c194a4a3f
3
+ metadata.gz: 2c6ad6b4cb1f49fe2d8c2fb682fdf3919a5da5a2
4
+ data.tar.gz: 3e16dab9318786a036bd499b90a37d0f2c4a8191
5
5
  SHA512:
6
- metadata.gz: b7a09aceaccf45a6aa402c25bc90a4429f5565e5880f9fc87c6ea80cc7ae970d83e4cd23ae7661abc07622d61185df4f9e5208141543e8b5e943d490a97a7656
7
- data.tar.gz: 80577ea501628768bc492f517af01abc0a22c71ee5a3267cef5e4be21dbcb2c2d0b30147d21981ad1d0051344ff5528cfb2b4c0212cff55705366b1217a217db
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].to_a
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
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGem
18
- VERSION = "0.0.2"
18
+ VERSION = "0.0.3"
19
19
  end
@@ -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.2
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-04-10 00:00:00.000000000 Z
18
+ date: 2014-05-29 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler