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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c4ae58a9fee7fe1faa0d1767c140011f289dea2548b21947f36478f7ced12b4
4
- data.tar.gz: 73de6016759e004a8dfac05af9cd84a82eef9b71cddf87a6f677437ff3af84e1
3
+ metadata.gz: 6419a28e5a23582528cce4cc385fa4e0545e78f566b52aa1c742579bd61c291c
4
+ data.tar.gz: 20dfcbf990c5ada28b751affd313f6ab5fd6a53e97888a26e839a345907a16bf
5
5
  SHA512:
6
- metadata.gz: 313d30ccd6bab1d07658aaa9b8c44ae5c644cb3d3657ed304dbbccfb2ce628c003c58fea69fde234b13e27a60f7859209c5762d5e76c4fa3d587dd910f93a464
7
- data.tar.gz: 2a80e78687f2d89925d59d73d25bebf945c8737fadb9c8414cec7a7a2d0d77bea2f81c0f297c3a843514e36be0819d40c96b5225a14bc7a7770e69decf0ae60e
6
+ metadata.gz: 0d05d94ef258ea160415c5b1f7c9916b49bb0c37efbd1402ff2a4e37d8617bd1e7919681cf70cd579abbf33faaacf3c42623281f9f56c7926a917397e47a48bf
7
+ data.tar.gz: ff26b4c5cd0163dfe6ff2efd30f76e0fb7359ef6c1f3fb55ba374c9e2c8a4a1b99f6a92c045e25ce8f5bf07222f09da1bbf97b9ba01fe50040a3098845960865
data/.gitignore CHANGED
@@ -51,4 +51,5 @@ build-iPhoneSimulator/
51
51
 
52
52
  *.iml
53
53
  .idea/
54
- .travis.yml
54
+ .travis.yml
55
+ .byebug_history
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- csv_composer (1.0.2)
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.16.0
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
 
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "bundler", "~> 1.14"
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "minitest", "~> 5.0"
36
+ spec.add_development_dependency "byebug"
36
37
  end
@@ -2,7 +2,9 @@ module CsvComposer
2
2
  class Base
3
3
 
4
4
  def compose(items, opts = {})
5
- content = write(items, opts)
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
@@ -1,3 +1,3 @@
1
1
  module CsvComposer
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
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.3
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-03-14 00:00:00.000000000 Z
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
- rubyforge_project:
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