data_exporter 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 775197d18a4b733e422dfb52baff6f583d0bc35a
4
- data.tar.gz: 56d7a98cca7cdbbfb573bf58d1fae339b9736a20
3
+ metadata.gz: 73d58994f905e03e11355424765b3683588a8c4a
4
+ data.tar.gz: 62f3960006c147bd95e6fb90c856d02f79e26ae2
5
5
  SHA512:
6
- metadata.gz: 9deaec6aaf9f2655eb7345bb5af2b868bb5219333cd287a5f662df700ee1eb646313ef69efecb8eacaf1cb49986b453a24d3c3c79f540a97325589e9844b6599
7
- data.tar.gz: 567eadbc9b09b53391866a432489f8d44c7e0b57de6cc5aa24710cd96d8de70385db3120515a2ed5f1dea9646e09e635904ac03b91daee696e72eb432703d571
6
+ metadata.gz: ae4507a0b7c0c4708264d501c372ad3104c835db663263e1822ec36d1076b77772472f7b01bc008fe66a85a69d2b8499732520824ec6bebc20e64f6f5bc31fdb
7
+ data.tar.gz: 5bee5a9060fd0bf774e13da7b89f77e68a782039ebdad2bf0701b5869d1150a812fd2c01d923fb9a2e70195368c2538522fc186a4c6f5162201e34b4d00d4d8e
data/README.md CHANGED
@@ -45,13 +45,13 @@ end
45
45
  Exporting the data:
46
46
 
47
47
  ```
48
- DataExporter::Exporter.new(example, 'csv').export
48
+ DataExporter::Exporter.new(example, :csv).export
49
49
  ```
50
50
 
51
51
  Exporting the data to a tempfile:
52
52
 
53
53
  ```
54
- DataExporter::Exporter.new(example, 'csv').export_to_tempfile
54
+ DataExporter::Exporter.new(example, :csv).export_to_tempfile
55
55
  ```
56
56
 
57
57
  <br>
@@ -59,6 +59,7 @@ Version History:
59
59
 
60
60
  ```
61
61
  0.1.0: Initial version, only CSV is supported
62
+ 0.1.1: Change format in initializer to symbol instead of string
62
63
  ```
63
64
 
64
65
  ## Installation
@@ -9,14 +9,14 @@ module DataExporter
9
9
 
10
10
  def export
11
11
  case @format
12
- when 'csv'
12
+ when :csv
13
13
  export_to_csv
14
14
  end
15
15
  end
16
16
 
17
17
  def export_to_tempfile
18
18
  case @format
19
- when 'csv'
19
+ when :csv
20
20
  export_to_csv_tempfile
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module DataExporter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - klismannsm