data_list_converter 0.3.7 → 0.3.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80275550c81de031a235d7800725b12a2a4b9866
4
- data.tar.gz: d08007e6813ca7ca963ae570fd3997a34d563968
3
+ metadata.gz: f357db4b2525dead9375cca320a5830b7fcc73ea
4
+ data.tar.gz: ee1043d9b2f41d5ad41c871e31a3658b2f6ad348
5
5
  SHA512:
6
- metadata.gz: d08c8c22504f2368e39f50c97b0b4ed640be75bd1fafa854f34fe52306af84baa899ac80e742253e49013a76214c374596844a14f005752da15bae67cd3d7800
7
- data.tar.gz: 5dcb6cc6bde6d16d945bade1dfb75b8b613aa93548e53637479c05085d85ba9fa4ae022e45065203d7330a81fec2540d3a288e869c6e1b7578d51a3d2c5f500e
6
+ metadata.gz: 06d419b8f559f1706a258f0f9c57e9062b8c677f4a08e7009a6a6fc24e22ccca21aba5f586c35a7914178fbbabee455e9d98996e7788919776b9dbca01335c48
7
+ data.tar.gz: 42448560dab15937d25c9dfbcedabe3c657030648d454965c7e833c426a7413812a43acb29c82061b67570f7abe8eeceac06117fc75b81039d4c7e787438639b
data/changelog.md CHANGED
@@ -6,6 +6,7 @@ Refactor.
6
6
  - 0.3.2 support xlsx cell format
7
7
  - 0.3.5 add csv_raw type
8
8
  - 0.3.7 add marshal_file type, and load_from_file, save_to_file helper
9
+ - 0.3.8 add raw type
9
10
 
10
11
  ## 0.2
11
12
 
@@ -13,7 +13,7 @@ class DataListConverter
13
13
  options[:filename]
14
14
  end
15
15
 
16
- [:table_data, :multi_sheet_table_data].each do |type|
16
+ [:raw, :table_data, :multi_sheet_table_data].each do |type|
17
17
  self.register_converter(:marshal_file, type) do |input, options|
18
18
  self.marshal_file_to_data(input, options)
19
19
  end
@@ -1,3 +1,3 @@
1
1
  class DataListConverter
2
- VERSION = "0.3.7".freeze
2
+ VERSION = "0.3.8".freeze
3
3
  end
data/test/helper_test.rb CHANGED
@@ -20,7 +20,7 @@ describe DataListConverter do
20
20
  :multi_sheet_table_iterator,
21
21
  :marshal_file,
22
22
  :csv_file, :csv_raw, :xls_file, :xlsx_file,
23
- :records,
23
+ :records, :raw,
24
24
  ].sort
25
25
  )
26
26
  end
data/test/types_test.rb CHANGED
@@ -90,6 +90,10 @@ describe DataListConverter do
90
90
  @c.convert(:marshal_file, :multi_sheet_table_data,
91
91
  {filename: filename},
92
92
  ).must_equal(MULTI_SHEET_TABLE_DATA)
93
+
94
+ data = {a: 12, b: 13}
95
+ @c.convert(:raw, :marshal_file, data, marshal_file: {filename: filename})
96
+ @c.convert(:marshal_file, :raw, {filename: filename}).must_equal(data)
93
97
  ensure
94
98
  FileUtils.rm_f(filename)
95
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_list_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - linjunhalida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-10 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake