basecustom 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  class BaseCustom
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/basecustom.rb CHANGED
@@ -13,7 +13,7 @@ class BaseCustom
13
13
  if not array_in.is_a?(Array)
14
14
  raise "Invalid type. Please provide a String or an Array."
15
15
  end
16
- @BASE_PRIMITIVES_ARRAY = array_in
16
+ @BASE_PRIMITIVES_ARRAY = array_in.flatten
17
17
  @BASE_PRIMITIVES_HASH = Hash[@BASE_PRIMITIVES_ARRAY.each_with_index.map {|x,idx| [x, idx]}]
18
18
  end # initialize
19
19
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecustom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel P. Clark / 6ftDan(TM)
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-30 00:00:00 Z
18
+ date: 2012-10-31 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Define any base conversion with any identifier for each value. Let the fun begin!