revs-utils 1.0.20 → 1.0.21
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 +8 -8
- data/Gemfile.lock +2 -2
- data/README.rdoc +1 -0
- data/lib/revs-utils/version.rb +1 -1
- data/lib/revs-utils.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZTI2NDBhNTNmMzBhYzdiY2M5MjM2Y2QzNjVkYzEwNWFjZGRlNWRlMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
N2Q0Y2MzNmM0MWFjNmMyMWViOTU0NGY4NjMyM2Y4MDlkMTUzZWYxOA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ODVmMGMwNjVmZTlmOGZiMDlkZjg3Y2YyODFkODBlNzVhZmZmNzAxZTg3NTlj
|
|
10
|
+
YzhmODE2NTc4ZmIyYTNlNTMwMjIwYmRhODgzNDYxMzY4MTZmZTA5NjQwOGQw
|
|
11
|
+
NjljZjc3Yzg1NTRhZTUxZjlhNjYzOTIyYjMyZTFlNzg2NTIwODE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Mjc1MjMwMjAwN2JiYjNiYzQzZmY1YWRkZGYwOTllZjNhYmE2OWRkYmE5OTZl
|
|
14
|
+
M2YxNmE5MTk1MGM4Mzg5YzZjMGY3ZjQ5NmE3MTI0YzI2YTkyZWNkYzgzYWY3
|
|
15
|
+
MzQ5NWUwZjk5NGQ1Y2VlMThjYmJjZTdlZGYzMTI4MGQ4ZDQyNDE=
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
revs-utils (1.0.
|
|
4
|
+
revs-utils (1.0.21)
|
|
5
5
|
actionpack (~> 3)
|
|
6
6
|
chronic
|
|
7
7
|
countries (= 0.9.2)
|
|
@@ -49,7 +49,7 @@ GEM
|
|
|
49
49
|
rack-test (0.6.3)
|
|
50
50
|
rack (>= 1.0)
|
|
51
51
|
rake (10.1.0)
|
|
52
|
-
rdf (1.1.
|
|
52
|
+
rdf (1.1.15)
|
|
53
53
|
link_header (~> 0.0, >= 0.0.8)
|
|
54
54
|
rest-client (1.6.7)
|
|
55
55
|
mime-types (>= 1.16)
|
data/README.rdoc
CHANGED
|
@@ -24,6 +24,7 @@ Shared methods and functions used by revs-indexer, pre-assembly and bulk metadat
|
|
|
24
24
|
- <b>1.0.12</b> Allow two digit years in year formatting
|
|
25
25
|
- <b>1.0.19</b> Display output showing reasons for validation failures when checking manifests
|
|
26
26
|
- <b>1.0.20</b> Allow for optional metadata columns in the manifest
|
|
27
|
+
- <b>1.0.21</b> Add more information when sourceIDs are not unique
|
|
27
28
|
|
|
28
29
|
== Running tests
|
|
29
30
|
|
data/lib/revs-utils/version.rb
CHANGED
data/lib/revs-utils.rb
CHANGED
|
@@ -118,7 +118,10 @@ module Revs
|
|
|
118
118
|
sources << row[get_manifest_section(REGISTER)['sourceid']]
|
|
119
119
|
end
|
|
120
120
|
result4 = (sources.uniq.size == sources.size)
|
|
121
|
-
|
|
121
|
+
unless result4
|
|
122
|
+
puts "sourceIDs are not all unique"
|
|
123
|
+
puts sources.uniq.map { | e | [sources.count(e), e] }.select { | c, _ | c > 1 }.sort.reverse.map { | c, e | "#{e}: #{c}" } # show all non-unique sourceIDs and their frequency
|
|
124
|
+
end
|
|
122
125
|
return (result1 && result2 && result3 && result4)
|
|
123
126
|
|
|
124
127
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: revs-utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Mangiafico
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: countries
|