bagit 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bagit.gemspec +2 -1
  2. data/bin/bagit +9 -9
  3. metadata +17 -1
@@ -1,7 +1,7 @@
1
1
 
2
2
  BAGIT_SPEC = Gem::Specification.new do |spec|
3
3
  spec.name = "bagit"
4
- spec.version = '0.3.0'
4
+ spec.version = '0.3.1'
5
5
  spec.summary = "BagIt package generation and validation"
6
6
  spec.description = "Ruby Library and Command Line tools for bagit"
7
7
  spec.email = "johnson.tom@gmail.com"
@@ -9,6 +9,7 @@ BAGIT_SPEC = Gem::Specification.new do |spec|
9
9
  spec.authors = ["Tom Johnson, Francesco Lazzarino"]
10
10
 
11
11
  spec.add_dependency 'validatable', '~> 1.6'
12
+ spec.add_dependency 'docopt', '~> 0.5.0'
12
13
 
13
14
  spec.files = %w(Rakefile README.md LICENSE.txt bagit.gemspec) + Dir["lib/**/*.rb"]
14
15
  spec.executables << 'bagit'
data/bin/bagit CHANGED
@@ -7,13 +7,13 @@ doc = <<DOCOPT
7
7
  BagIt.
8
8
 
9
9
  Usage:
10
- #{__FILE__} add [-f <file>...] [-t <tagfile>...] BAGPATH
11
- #{__FILE__} delete [-f <file>...] [-t <tagfile>...] BAGPATH
12
- #{__FILE__} remove [-t <tagfile>...] BAGPATH
13
- #{__FILE__} validate [-o] BAGPATH
14
- #{__FILE__} manifest [-T] BAGPATH
15
- #{__FILE__} list [--tags | --all] BAGPATH
16
- #{__FILE__} -h | --version
10
+ bagit add [-f <file>...] [-t <tagfile>...] BAGPATH
11
+ bagit delete [-f <file>...] [-t <tagfile>...] BAGPATH
12
+ bagit remove [-t <tagfile>...] BAGPATH
13
+ bagit validate [-o] BAGPATH
14
+ bagit manifest [-T] BAGPATH
15
+ bagit list [--tags | --all] BAGPATH
16
+ bagit -h | --version
17
17
 
18
18
  Options:
19
19
  -h --help Show this help screen.
@@ -29,14 +29,14 @@ DOCOPT
29
29
 
30
30
  # Possible commands for bag-info write
31
31
  #
32
- # #{__FILE__} new [--source-organization <org>] [--organization-address <org-addr>] [--contact-name <contact>]
32
+ # bagit new [--source-organization <org>] [--organization-address <org-addr>] [--contact-name <contact>]
33
33
  # [--contact-phone <phone>] [--contact-email <email>] [--external-description <ext-desc>]
34
34
  # [--external-identifier <ext-id>] [--group-identifier <group-id>] [--count <count>]
35
35
  # [--internal-sender-identifier <sender-id>] [--internal-sender-description <sender-desc>]
36
36
  # [--bag-info-entry <label> <value>] [-f <file>...] [-t <tagfile>...] BAGPATH
37
37
 
38
38
  begin
39
- opts = Docopt::docopt(doc, version: 'BagIt 0.3.0')
39
+ opts = Docopt::docopt(doc, version: 'BagIt 0.3.1')
40
40
 
41
41
  bag = BagIt::Bag.new(opts['BAGPATH'])
42
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bagit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.6'
30
+ - !ruby/object:Gem::Dependency
31
+ name: docopt
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.5.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.5.0
30
46
  description: Ruby Library and Command Line tools for bagit
31
47
  email: johnson.tom@gmail.com
32
48
  executables: