cevennes 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2610da4dd8944295878072ffaef9e6c2633bd09
4
- data.tar.gz: ecd79885f7e7e0b811c1b6bb6a909802389e8e8e
3
+ metadata.gz: 47a07afbca693213e60ab7a4b7547cbe96d7130c
4
+ data.tar.gz: cdc88ef22c41b30b458c08701c5c4a8a2d5fbffb
5
5
  SHA512:
6
- metadata.gz: 1fb2549ac3c6f76724ba434de5f9eac493f877ce016d19ea2c57f44ef1921366b2e5dc20996138e109a8475c7a8115d3b185fa65298c7f5deb0efca4b5096547
7
- data.tar.gz: d8fbf42fb5f78eb3f5f4d47fbb3de3f1eff5186ccd762585fb9013a9649b587cda46268ce70bb628ff3f56376735d85c3bf57b817261a0bb06fe9cd894f60cbc
6
+ metadata.gz: 368a3167ddfc08eacad5ca460f7712439afa2681c759bd76a1f4e295e20ae579b2f8ba58f2580403d792c6c8d003946ea54b46b1c8ddab0a0125609307804a70
7
+ data.tar.gz: cb24233d1269a45673a312d865394a3003515fb669db7fec4b998caa64beab620c02b56dd7c87a9f3061ac328842083e4652de0be6cfdbb1fc939fcaaa7e1b10
data/CHANGELOG.md CHANGED
@@ -2,7 +2,12 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
- ## cevennes 0.11.0 released 2018-09-06
5
+ ## cevennes 0.13.0 released 2018-09-07
6
+
7
+ - Trim cells and keys
8
+
9
+
10
+ ## cevennes 0.12.0 released 2018-09-06
6
11
 
7
12
  - Fail with IndexError on missing id in CSV old or new
8
13
 
data/cevennes.gemspec CHANGED
@@ -19,7 +19,13 @@ Diffs CSVs by lines, focusing on a single ID
19
19
  }.strip
20
20
 
21
21
  s.metadata = {
22
- 'changelog_uri' => s.homepage + '/blob/master/CHANGELOG.md'
22
+ 'changelog_uri' => s.homepage + '/blob/master/CHANGELOG.md',
23
+ 'documentation_uri' => s.homepage,
24
+ 'bug_tracker_uri' => s.homepage + '/issues',
25
+ #'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/floraison',
26
+ 'homepage_uri' => s.homepage,
27
+ 'source_code_uri' => s.homepage,
28
+ #'wiki_uri' => s.homepage + '/wiki',
23
29
  }
24
30
 
25
31
  #s.files = `git ls-files`.split("\n")
data/lib/cevennes.rb CHANGED
@@ -4,7 +4,7 @@ require 'csv'
4
4
 
5
5
  module Cevennes
6
6
 
7
- VERSION = '0.12.0'
7
+ VERSION = '0.13.0'
8
8
 
9
9
  class << self
10
10
 
@@ -44,10 +44,15 @@ module Cevennes
44
44
 
45
45
  protected
46
46
 
47
+ def strip(row)
48
+
49
+ row.collect { |cell| cell.is_a?(String) ? cell.strip : cell }
50
+ end
51
+
47
52
  def hash(version, id, csv)
48
53
 
49
54
  csva = ::CSV.parse(reencode(csv))
50
- .each_with_index.collect { |row, i| [ 1 + i, row ] }
55
+ .each_with_index.collect { |row, i| [ 1 + i, strip(row) ] }
51
56
  .reject { |i, row| row.compact.empty? }
52
57
  .drop_while { |i, row| ! row.include?(id) }
53
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cevennes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -43,6 +43,10 @@ licenses:
43
43
  - MIT
44
44
  metadata:
45
45
  changelog_uri: http://github.com/jmettraux/cevennes/blob/master/CHANGELOG.md
46
+ documentation_uri: http://github.com/jmettraux/cevennes
47
+ bug_tracker_uri: http://github.com/jmettraux/cevennes/issues
48
+ homepage_uri: http://github.com/jmettraux/cevennes
49
+ source_code_uri: http://github.com/jmettraux/cevennes
46
50
  post_install_message:
47
51
  rdoc_options: []
48
52
  require_paths: