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 +4 -4
- data/CHANGELOG.md +6 -1
- data/cevennes.gemspec +7 -1
- data/lib/cevennes.rb +7 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47a07afbca693213e60ab7a4b7547cbe96d7130c
|
4
|
+
data.tar.gz: cdc88ef22c41b30b458c08701c5c4a8a2d5fbffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 368a3167ddfc08eacad5ca460f7712439afa2681c759bd76a1f4e295e20ae579b2f8ba58f2580403d792c6c8d003946ea54b46b1c8ddab0a0125609307804a70
|
7
|
+
data.tar.gz: cb24233d1269a45673a312d865394a3003515fb669db7fec4b998caa64beab620c02b56dd7c87a9f3061ac328842083e4652de0be6cfdbb1fc939fcaaa7e1b10
|
data/CHANGELOG.md
CHANGED
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.
|
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.
|
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-
|
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:
|