mead 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -67,7 +67,11 @@ module Mead
67
67
  end
68
68
 
69
69
  def strip_zeros(num)
70
- num.sub(/^0+/,'')
70
+ if num == '000'
71
+ '0'
72
+ else
73
+ num.sub(/^0+/,'')
74
+ end
71
75
  end
72
76
 
73
77
  def split_page
data/mead.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{mead}
8
- s.version = "0.1.1"
7
+ s.name = "mead"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jason Ronallo"]
12
- s.date = %q{2011-07-08}
13
- s.description = %q{Extract identifiers and metadata from EAD XML.}
14
- s.email = %q{jronallo@gmail.com}
12
+ s.date = "2012-01-27"
13
+ s.description = "Extract identifiers and metadata from EAD XML."
14
+ s.email = "jronallo@gmail.com"
15
15
  s.executables = ["mead2barcode", "meadbfv", "emv", "automead", "ead2meads"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
@@ -67,11 +67,11 @@ Gem::Specification.new do |s|
67
67
  "test/test_validations.rb",
68
68
  "watchr.rb"
69
69
  ]
70
- s.homepage = %q{http://github.com/jronallo/mead}
70
+ s.homepage = "http://github.com/jronallo/mead"
71
71
  s.licenses = ["MIT"]
72
72
  s.require_paths = ["lib"]
73
- s.rubygems_version = %q{1.6.2}
74
- s.summary = %q{Extract identifiers and metadata from EAD XML.}
73
+ s.rubygems_version = "1.8.10"
74
+ s.summary = "Extract identifiers and metadata from EAD XML."
75
75
  s.test_files = [
76
76
  "test/helper.rb",
77
77
  "test/test_barcode.rb",
@@ -74,6 +74,11 @@ class TestMeadValidations < Test::Unit::TestCase
74
74
  mead = Mead::Identifier.new('mc00240-003-bx0068-fr002-001', @loc_mc00240).extract
75
75
  assert mead.valid?
76
76
  end
77
+
78
+ should 'show mc00240-003-bx0068-fr002-000 to be a valid mead' do
79
+ mead = Mead::Identifier.new('mc00240-003-bx0068-fr002-000', @loc_mc00240).extract
80
+ assert mead.valid?
81
+ end
77
82
 
78
83
  end
79
84
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mead
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Ronallo
@@ -15,12 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-08 00:00:00 -04:00
19
- default_executable:
18
+ date: 2012-01-27 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
26
24
  - - ~>
@@ -32,11 +30,11 @@ dependencies:
32
30
  - 0
33
31
  version: 1.5.0
34
32
  name: nokogiri
35
- version_requirements: *id001
36
33
  prerelease: false
37
- - !ruby/object:Gem::Dependency
38
34
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ requirement: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
38
  none: false
41
39
  requirements:
42
40
  - - ">="
@@ -46,11 +44,11 @@ dependencies:
46
44
  - 0
47
45
  version: "0"
48
46
  name: json
49
- version_requirements: *id002
50
47
  prerelease: false
51
- - !ruby/object:Gem::Dependency
52
48
  type: :runtime
53
- requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirement: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
52
  none: false
55
53
  requirements:
56
54
  - - ">="
@@ -60,11 +58,11 @@ dependencies:
60
58
  - 0
61
59
  version: "0"
62
60
  name: trollop
63
- version_requirements: *id003
64
61
  prerelease: false
65
- - !ruby/object:Gem::Dependency
66
62
  type: :runtime
67
- requirement: &id004 !ruby/object:Gem::Requirement
63
+ requirement: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
66
  none: false
69
67
  requirements:
70
68
  - - ">="
@@ -74,11 +72,11 @@ dependencies:
74
72
  - 0
75
73
  version: "0"
76
74
  name: fastercsv
77
- version_requirements: *id004
78
75
  prerelease: false
76
+ type: :runtime
77
+ requirement: *id004
79
78
  - !ruby/object:Gem::Dependency
80
- type: :development
81
- requirement: &id005 !ruby/object:Gem::Requirement
79
+ version_requirements: &id005 !ruby/object:Gem::Requirement
82
80
  none: false
83
81
  requirements:
84
82
  - - ">="
@@ -88,11 +86,11 @@ dependencies:
88
86
  - 0
89
87
  version: "0"
90
88
  name: rmagick
91
- version_requirements: *id005
92
89
  prerelease: false
93
- - !ruby/object:Gem::Dependency
94
90
  type: :development
95
- requirement: &id006 !ruby/object:Gem::Requirement
91
+ requirement: *id005
92
+ - !ruby/object:Gem::Dependency
93
+ version_requirements: &id006 !ruby/object:Gem::Requirement
96
94
  none: false
97
95
  requirements:
98
96
  - - ">="
@@ -102,11 +100,11 @@ dependencies:
102
100
  - 0
103
101
  version: "0"
104
102
  name: shoulda
105
- version_requirements: *id006
106
103
  prerelease: false
107
- - !ruby/object:Gem::Dependency
108
104
  type: :development
109
- requirement: &id007 !ruby/object:Gem::Requirement
105
+ requirement: *id006
106
+ - !ruby/object:Gem::Dependency
107
+ version_requirements: &id007 !ruby/object:Gem::Requirement
110
108
  none: false
111
109
  requirements:
112
110
  - - ~>
@@ -118,11 +116,11 @@ dependencies:
118
116
  - 0
119
117
  version: 1.0.0
120
118
  name: bundler
121
- version_requirements: *id007
122
119
  prerelease: false
123
- - !ruby/object:Gem::Dependency
124
120
  type: :development
125
- requirement: &id008 !ruby/object:Gem::Requirement
121
+ requirement: *id007
122
+ - !ruby/object:Gem::Dependency
123
+ version_requirements: &id008 !ruby/object:Gem::Requirement
126
124
  none: false
127
125
  requirements:
128
126
  - - ~>
@@ -134,11 +132,11 @@ dependencies:
134
132
  - 1
135
133
  version: 1.5.1
136
134
  name: jeweler
137
- version_requirements: *id008
138
135
  prerelease: false
139
- - !ruby/object:Gem::Dependency
140
136
  type: :development
141
- requirement: &id009 !ruby/object:Gem::Requirement
137
+ requirement: *id008
138
+ - !ruby/object:Gem::Dependency
139
+ version_requirements: &id009 !ruby/object:Gem::Requirement
142
140
  none: false
143
141
  requirements:
144
142
  - - ">="
@@ -148,11 +146,11 @@ dependencies:
148
146
  - 0
149
147
  version: "0"
150
148
  name: rcov
151
- version_requirements: *id009
152
149
  prerelease: false
153
- - !ruby/object:Gem::Dependency
154
150
  type: :development
155
- requirement: &id010 !ruby/object:Gem::Requirement
151
+ requirement: *id009
152
+ - !ruby/object:Gem::Dependency
153
+ version_requirements: &id010 !ruby/object:Gem::Requirement
156
154
  none: false
157
155
  requirements:
158
156
  - - ~>
@@ -164,11 +162,11 @@ dependencies:
164
162
  - 8
165
163
  version: 1.2.8
166
164
  name: reek
167
- version_requirements: *id010
168
165
  prerelease: false
169
- - !ruby/object:Gem::Dependency
170
166
  type: :development
171
- requirement: &id011 !ruby/object:Gem::Requirement
167
+ requirement: *id010
168
+ - !ruby/object:Gem::Dependency
169
+ version_requirements: &id011 !ruby/object:Gem::Requirement
172
170
  none: false
173
171
  requirements:
174
172
  - - ~>
@@ -180,11 +178,11 @@ dependencies:
180
178
  - 0
181
179
  version: 2.1.0
182
180
  name: roodi
183
- version_requirements: *id011
184
181
  prerelease: false
185
- - !ruby/object:Gem::Dependency
186
182
  type: :development
187
- requirement: &id012 !ruby/object:Gem::Requirement
183
+ requirement: *id011
184
+ - !ruby/object:Gem::Dependency
185
+ version_requirements: &id012 !ruby/object:Gem::Requirement
188
186
  none: false
189
187
  requirements:
190
188
  - - ">="
@@ -194,11 +192,11 @@ dependencies:
194
192
  - 0
195
193
  version: "0"
196
194
  name: fakeweb
197
- version_requirements: *id012
198
195
  prerelease: false
199
- - !ruby/object:Gem::Dependency
200
196
  type: :development
201
- requirement: &id013 !ruby/object:Gem::Requirement
197
+ requirement: *id012
198
+ - !ruby/object:Gem::Dependency
199
+ version_requirements: &id013 !ruby/object:Gem::Requirement
202
200
  none: false
203
201
  requirements:
204
202
  - - ">="
@@ -208,8 +206,9 @@ dependencies:
208
206
  - 0
209
207
  version: "0"
210
208
  name: ruby-debug
211
- version_requirements: *id013
212
209
  prerelease: false
210
+ type: :development
211
+ requirement: *id013
213
212
  description: Extract identifiers and metadata from EAD XML.
214
213
  email: jronallo@gmail.com
215
214
  executables:
@@ -272,7 +271,6 @@ files:
272
271
  - test/test_ua110_041.rb
273
272
  - test/test_validations.rb
274
273
  - watchr.rb
275
- has_rdoc: true
276
274
  homepage: http://github.com/jronallo/mead
277
275
  licenses:
278
276
  - MIT
@@ -302,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
300
  requirements: []
303
301
 
304
302
  rubyforge_project:
305
- rubygems_version: 1.6.2
303
+ rubygems_version: 1.8.10
306
304
  signing_key:
307
305
  specification_version: 3
308
306
  summary: Extract identifiers and metadata from EAD XML.