csv_composer 1.0.3 → 1.0.4
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 +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +4 -2
- data/README.md +1 -1
- data/csv_composer.gemspec +1 -0
- data/lib/csv_composer/base.rb +8 -2
- data/lib/csv_composer/version.rb +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6419a28e5a23582528cce4cc385fa4e0545e78f566b52aa1c742579bd61c291c
|
4
|
+
data.tar.gz: 20dfcbf990c5ada28b751affd313f6ab5fd6a53e97888a26e839a345907a16bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d05d94ef258ea160415c5b1f7c9916b49bb0c37efbd1402ff2a4e37d8617bd1e7919681cf70cd579abbf33faaacf3c42623281f9f56c7926a917397e47a48bf
|
7
|
+
data.tar.gz: ff26b4c5cd0163dfe6ff2efd30f76e0fb7359ef6c1f3fb55ba374c9e2c8a4a1b99f6a92c045e25ce8f5bf07222f09da1bbf97b9ba01fe50040a3098845960865
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
csv_composer (1.0.
|
4
|
+
csv_composer (1.0.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
byebug (11.0.1)
|
9
10
|
minitest (5.10.3)
|
10
11
|
rake (10.5.0)
|
11
12
|
|
@@ -14,9 +15,10 @@ PLATFORMS
|
|
14
15
|
|
15
16
|
DEPENDENCIES
|
16
17
|
bundler (~> 1.14)
|
18
|
+
byebug
|
17
19
|
csv_composer!
|
18
20
|
minitest (~> 5.0)
|
19
21
|
rake (~> 10.0)
|
20
22
|
|
21
23
|
BUNDLED WITH
|
22
|
-
1.
|
24
|
+
1.17.2
|
data/README.md
CHANGED
@@ -71,7 +71,7 @@ both header and item processor that you can use when overriding them.
|
|
71
71
|
|
72
72
|
## Development
|
73
73
|
|
74
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
74
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
75
75
|
|
76
76
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
77
77
|
|
data/csv_composer.gemspec
CHANGED
data/lib/csv_composer/base.rb
CHANGED
@@ -2,7 +2,9 @@ module CsvComposer
|
|
2
2
|
class Base
|
3
3
|
|
4
4
|
def compose(items, opts = {})
|
5
|
-
content =
|
5
|
+
content = separator_metadata
|
6
|
+
content += write(items, opts)
|
7
|
+
|
6
8
|
export(content, opts)
|
7
9
|
end
|
8
10
|
|
@@ -29,6 +31,10 @@ module CsvComposer
|
|
29
31
|
def export(content, opts = {})
|
30
32
|
exporter.new.export(content, opts)
|
31
33
|
end
|
34
|
+
|
35
|
+
def separator_metadata
|
36
|
+
"sep=,\n"
|
37
|
+
end
|
32
38
|
|
33
39
|
end
|
34
|
-
end
|
40
|
+
end
|
data/lib/csv_composer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Smulevici
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: Easy and generic csv writer and exporter
|
56
70
|
email:
|
57
71
|
- jsmulevici@twistbioscience.com
|
@@ -100,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
114
|
- !ruby/object:Gem::Version
|
101
115
|
version: '0'
|
102
116
|
requirements: []
|
103
|
-
|
104
|
-
rubygems_version: 2.7.8
|
117
|
+
rubygems_version: 3.0.3
|
105
118
|
signing_key:
|
106
119
|
specification_version: 4
|
107
120
|
summary: csv exporter
|