fig_newton 0.14 → 0.15

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: 0bac2bd527eac62e22336c27ec27d0ae9cfd0ed0
4
- data.tar.gz: 1de1a313343e4abd87de938c8960685204a210bf
3
+ metadata.gz: 4da62a7cd8e566070bb9e904667652303d44fdde
4
+ data.tar.gz: 5561c9d2a8a258d17ee2f62a9d8dd070a90d0588
5
5
  SHA512:
6
- metadata.gz: cdc5ffbb811571a31ad94562555cad6c55dd7a0bca7647f0f2f24a237ea029d2e59f090e07f1febfd41f773017de078cfeee5fedbc26d9890c8136091376f122
7
- data.tar.gz: 9b92b8ccb40a7be31359f7e03d5bc8ed905027eaa8c6ef529707a32c5bb93d74fe4a355ae040403b45b708f0e2a23f81a2a0837dc4e2ebac95c65db330204738
6
+ metadata.gz: 8f834ae62dc542578515076adafbc6cb3b86fa3b51881fda192132a705680875e6fc079bd4611e053162d1298cb61fe109668c6607b50c8b88df35557390038a
7
+ data.tar.gz: 44280762d020f9bda76aa62e9ac5d2dda6f951b2169ea5c562c8d92b3e49b87566b3e0a7f135c97e8b5cef42ef545d3ffee69b0d1636a2f90d2e274de8262875
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
3
+ - 2.3
4
+ - 2.4
5
5
 
6
6
 
data/ChangeLog CHANGED
@@ -1,4 +1,8 @@
1
- === Version 0.14 / 2017-3-4
1
+ === Version 0.15 / 2017-03-08
2
+ * Enhancements
3
+ * Added support for Arrays (Thanks TheSpartan1980)
4
+
5
+ === Version 0.14 / 2017-3-4
2
6
  * Enhancements
3
7
  * Added support for Float as value (Thanks Carlos Gutierrez)
4
8
 
@@ -14,3 +14,8 @@ set_flag: true
14
14
  cleared_flag: false
15
15
  my_symbol: :hello_world
16
16
  my_float: 0.25
17
+ my_array:
18
+ - one
19
+ - 2
20
+ - 3.0
21
+ - :four
@@ -50,6 +50,11 @@ Feature: Functionality of the fig_newton gem
50
50
  When I ask for the value for "my_float"
51
51
  Then I should see 0.25
52
52
 
53
+ Scenario: Requesting an Array of values
54
+ Given I have read the configuration file
55
+ When I ask for the value for "my_array"
56
+ Then I should see an array containing "one", 2, 3.0, :four
57
+
53
58
  Scenario: Requesting a true boolean value
54
59
  Given I have read the configuration file
55
60
  When I ask for the value for "set_flag"
@@ -28,6 +28,12 @@ Then (/^I should see :([^\"]*)$/) do |value|
28
28
  expect(@value).to eql value.to_sym
29
29
  end
30
30
 
31
+ Then(/^I should see an array containing "(.*?)", (\d+), (\d+)\.(\d+), :([^\"]*)$/) do |string, int, val1, val2, symbol|
32
+ decimal = val1 + '.' + val2
33
+ array = [string, int.to_i, decimal.to_f, symbol.to_sym]
34
+ expect(@value).to eql(array)
35
+ end
36
+
31
37
  Then (/^I should see true$/) do
32
38
  expect(@value).to be true
33
39
  end
@@ -28,7 +28,7 @@ module FigNewton
28
28
  private
29
29
 
30
30
  def type_known?(value)
31
- known_types = [String, Integer, TrueClass, FalseClass, Symbol, Float]
31
+ known_types = [String, Integer, TrueClass, FalseClass, Symbol, Float, Array]
32
32
  known_types.any? { |type| value.kind_of? type }
33
33
  end
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module FigNewton
2
- VERSION = "0.14"
2
+ VERSION = "0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig_newton
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.14'
4
+ version: '0.15'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-04 00:00:00.000000000 Z
12
+ date: 2017-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yml_reader