revs-utils 1.0.9 → 1.0.10
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 +4 -2
- data/README.rdoc +1 -0
- data/lib/revs-utils/version.rb +1 -1
- data/lib/revs-utils.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQxZWMzYTlmNTI0NzM1ZDRmZWU0MmYzZWI5ZmJhMzVkMjJhMzU0Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODRiMDc1MWFjOGFiNmZlYTVmOTQyYjZhOGM1YmZiOWM2MzRhZDMzMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2E0ZWQ2NWYzMDVjOWYzNDJhYjMwYTllODYyYWVlY2ZmN2E5YmVhZjc5ZDU1
|
10
|
+
NTMwYTZiYTc4YWJkNTFmM2E5ZDMwY2JjNjQ5MWMyZDdjNzJiYTBiMGQ3ODg0
|
11
|
+
MDA4NjQ0MzUzZDJkODMwNjY5NjhjMzBhZTIwNWUzN2EyMGFiOTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Njk0MzJhODhkMTA4YjU0MmVkZDNjMmRjZTI1MGYxZGU1YmFhMTI5ODg1Yzgx
|
14
|
+
MjVjNTEwMmFjYmQ2NzBkOGM3MjU5NDIzNGNjOTdjYWZmNTFlMjBjMjFlNDhi
|
15
|
+
Y2NlNTQ3ZWUzM2RlMzc3NmE0OTg5NTM1Y2EyYmUzZTgzMmFlYWU=
|
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.10)
|
5
5
|
actionpack (~> 3)
|
6
6
|
countries (= 0.9.2)
|
7
7
|
rdf
|
@@ -35,6 +35,7 @@ GEM
|
|
35
35
|
hike (1.2.3)
|
36
36
|
i18n (0.7.0)
|
37
37
|
journey (1.0.4)
|
38
|
+
link_header (0.0.8)
|
38
39
|
lyberteam-gems-devel (1.0.1)
|
39
40
|
rake (>= 0.8.7)
|
40
41
|
rest-client
|
@@ -46,7 +47,8 @@ GEM
|
|
46
47
|
rack-test (0.6.3)
|
47
48
|
rack (>= 1.0)
|
48
49
|
rake (10.1.0)
|
49
|
-
rdf (1.1.
|
50
|
+
rdf (1.1.7)
|
51
|
+
link_header (~> 0.0, >= 0.0.8)
|
50
52
|
rest-client (1.6.7)
|
51
53
|
mime-types (>= 1.16)
|
52
54
|
rspec (2.14.1)
|
data/README.rdoc
CHANGED
@@ -19,6 +19,7 @@ Shared methods and functions used by revs-indexer, pre-assembly and bulk metadat
|
|
19
19
|
- <b>1.0.7</b> Label column needs to be there but does not need to have a value to register
|
20
20
|
- <b>1.0.8</b> Update clean_collection_name method to deal with other possible names
|
21
21
|
- <b>1.0.9</b> Add more common format corrections
|
22
|
+
- <b>1.0.10</b> Update valid for metadata method so it is not sensitive to blank or uppercase columns
|
22
23
|
|
23
24
|
== Running tests
|
24
25
|
|
data/lib/revs-utils/version.rb
CHANGED
data/lib/revs-utils.rb
CHANGED
@@ -99,7 +99,7 @@ module Revs
|
|
99
99
|
#Pass this function a CSV file and it will return true if the proper headers are there and each entry has the required fields filled in.
|
100
100
|
def valid_for_metadata(file_path)
|
101
101
|
file = read_csv_with_headers(file_path)
|
102
|
-
file_headers=file[0].keys
|
102
|
+
file_headers=file[0].keys.reject(&:blank?).collect(&:downcase)
|
103
103
|
#The file doesn't need to have all the metadata values, it just can't have headers that aren't used for metadata or registration
|
104
104
|
if file_headers.include?('date') && file_headers.include?('year') # can't have both date and year
|
105
105
|
return false
|
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.10
|
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-01-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: countries
|