spreadsheet_architect 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -3
- data/lib/spreadsheet_architect.rb +2 -3
- data/lib/spreadsheet_architect/version.rb +1 -1
- 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: 5a09ba577c1c7cb53b31efd115a3e0d57b046e5f
|
4
|
+
data.tar.gz: b0eb7bd864fb407b2525321eca235ef128871990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a06647631a88d4f8432c074b342d7805e82bd64465738a4df67933ce84fa78b63a1dd7d216cf034a81d2aa79be7beb856f666271b10def6fa1607d5156822e7
|
7
|
+
data.tar.gz: 05c93847437a5a6008eda393af431496fae0beaa29c1b1de3fab706b9ccb38c4c4b4be263a32892b6f81378a6710b165be81438402220cacd09af858de140574
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
---------
|
3
3
|
|
4
|
-
- **March.
|
4
|
+
- **March.20.2016**: 1.2.3
|
5
|
+
- Fix cell type logic
|
6
|
+
- **March.19.2016**: 1.2.2
|
5
7
|
- Make cell type numeric if value is numeric
|
6
|
-
- **March.
|
8
|
+
- **March.13.2016**: 1.2.1
|
7
9
|
- Better error reporting
|
8
10
|
- Fix for Plain ruby models
|
9
|
-
- **March.
|
11
|
+
- **March.10.2016**: 1.2.0
|
10
12
|
- Fix Bug: first row data repeated for all records on custom values
|
11
13
|
- **March.3.2016**: 1.1.0 - Breaking Changes
|
12
14
|
- Move spreadsheet_columns method from the class to the instance
|
@@ -32,9 +32,8 @@ module SpreadsheetArchitect
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.get_type(value, type=nil)
|
35
|
-
#return type
|
36
|
-
|
37
|
-
if value.is_a?(Numeric)
|
35
|
+
#return type if !type.blank?
|
36
|
+
if value.is_a?(Numeric) || [:integer, :float, :decimal].include?(type)
|
38
37
|
type = :float
|
39
38
|
else
|
40
39
|
type = :string
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet_architect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: axlsx
|