bagit 0.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bagit.gemspec +0 -0
- data/bin/bagit +12 -8
- data/lib/bagit.rb +0 -0
- data/lib/bagit/bag.rb +0 -0
- data/lib/bagit/fetch.rb +0 -0
- data/lib/bagit/file.rb +0 -0
- data/lib/bagit/info.rb +0 -0
- data/lib/bagit/log.rb +0 -0
- data/lib/bagit/manifest.rb +0 -0
- data/lib/bagit/string.rb +0 -0
- data/lib/bagit/valid.rb +0 -0
- data/lib/bagit/version.rb +1 -1
- data/spec/bagit_spec.rb +0 -0
- data/spec/fetch_spec.rb +0 -0
- data/spec/manifest_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/tag_info_spec.rb +0 -0
- data/spec/tag_spec.rb +0 -0
- data/spec/util/bagit_matchers.rb +0 -0
- data/spec/validation_spec.rb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61e4ebbb4c8128ba09169d18a8cd5f2d65116df
|
4
|
+
data.tar.gz: 31439fd0fb7a12504f52c381d8a50dd7b91cffc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56522faf0dbac8705ec25ca2c8332ace8223eeac23361168b23070c44c78226b402af8488ca0e1b83a76d0ae52e5ec3d9fc533e479337f60298c76f6479a169f
|
7
|
+
data.tar.gz: ec107432518a390e9c5793cf2f0ce7704f06b48bb1fef06e7079ad3cc8a38dca8320422f711e66a90200cd86efedad454f602dd16021a89b94d1b818aa8141c3
|
data/.gitignore
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bagit.gemspec
CHANGED
File without changes
|
data/bin/bagit
CHANGED
@@ -48,16 +48,20 @@ begin
|
|
48
48
|
# commands that don't alter the bag #
|
49
49
|
#####################################
|
50
50
|
if opts['validate']
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
else
|
56
|
-
logger.info(bag.valid?.to_s)
|
57
|
-
end
|
51
|
+
bag = BagIt::Bag.new(opts['BAGPATH'])
|
52
|
+
|
53
|
+
if opts['--oxum']
|
54
|
+
valid = bag.valid_oxum?
|
58
55
|
else
|
59
|
-
|
56
|
+
valid = bag.valid?
|
60
57
|
end
|
58
|
+
|
59
|
+
if valid
|
60
|
+
logger.info(valid)
|
61
|
+
else
|
62
|
+
logger.error("#{valid}: #{bag.errors.full_messages.join(', ')}" )
|
63
|
+
end
|
64
|
+
|
61
65
|
# validation commands MUST NOT change manifest or bag-info files
|
62
66
|
exit
|
63
67
|
end
|
data/lib/bagit.rb
CHANGED
File without changes
|
data/lib/bagit/bag.rb
CHANGED
File without changes
|
data/lib/bagit/fetch.rb
CHANGED
File without changes
|
data/lib/bagit/file.rb
CHANGED
File without changes
|
data/lib/bagit/info.rb
CHANGED
File without changes
|
data/lib/bagit/log.rb
CHANGED
File without changes
|
data/lib/bagit/manifest.rb
CHANGED
File without changes
|
data/lib/bagit/string.rb
CHANGED
File without changes
|
data/lib/bagit/valid.rb
CHANGED
File without changes
|
data/lib/bagit/version.rb
CHANGED
data/spec/bagit_spec.rb
CHANGED
File without changes
|
data/spec/fetch_spec.rb
CHANGED
File without changes
|
data/spec/manifest_spec.rb
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
data/spec/tag_info_spec.rb
CHANGED
File without changes
|
data/spec/tag_spec.rb
CHANGED
File without changes
|
data/spec/util/bagit_matchers.rb
CHANGED
File without changes
|
data/spec/validation_spec.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bagit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson, Francesco Lazzarino, Jamie Little
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: validatable
|