rsinger-enhanced_marc 0.1.2 → 0.1.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -0,0 +1,81 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{enhanced_marc}
8
+ s.version = "0.1.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Ross Singer"]
12
+ s.date = %q{2009-09-18}
13
+ s.description = %q{A set of enhancements to ruby-marc to make parsing MARC data easier}
14
+ s.email = %q{rossfsinger@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README"
18
+ ]
19
+ s.files = [
20
+ "Changes",
21
+ "LICENSE",
22
+ "README",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "enhanced_marc-0.1.gem",
26
+ "enhanced_marc.gemspec",
27
+ "lib/enhanced_marc.rb",
28
+ "lib/enhanced_marc/book_record.rb",
29
+ "lib/enhanced_marc/book_type.rb",
30
+ "lib/enhanced_marc/computer_record.rb",
31
+ "lib/enhanced_marc/computer_type.rb",
32
+ "lib/enhanced_marc/leader.rb",
33
+ "lib/enhanced_marc/leftovers.rb",
34
+ "lib/enhanced_marc/map_record.rb",
35
+ "lib/enhanced_marc/map_type.rb",
36
+ "lib/enhanced_marc/mixed_record.rb",
37
+ "lib/enhanced_marc/mixed_type.rb",
38
+ "lib/enhanced_marc/reader.rb",
39
+ "lib/enhanced_marc/record.rb",
40
+ "lib/enhanced_marc/record_type.rb",
41
+ "lib/enhanced_marc/score_record.rb",
42
+ "lib/enhanced_marc/score_type.rb",
43
+ "lib/enhanced_marc/serial_record.rb",
44
+ "lib/enhanced_marc/serial_type.rb",
45
+ "lib/enhanced_marc/sound_record.rb",
46
+ "lib/enhanced_marc/sound_type.rb",
47
+ "lib/enhanced_marc/visual_record.rb",
48
+ "lib/enhanced_marc/visual_type.rb",
49
+ "lib/enhanced_marc/xmlreader.rb",
50
+ "pkg/enhanced_marc-0.1.gem",
51
+ "pkg/enhanced_marc-0.1.tgz",
52
+ "pkg/enhanced_marc-0.1.zip",
53
+ "pkg/enhanced_marc-0.1/Changes",
54
+ "pkg/enhanced_marc-0.1/LICENSE",
55
+ "pkg/enhanced_marc-0.1/README",
56
+ "pkg/enhanced_marc-0.1/Rakefile",
57
+ "pkg/enhanced_marc-0.1/test/ts_enhanced_marc.rb",
58
+ "test/ts_enhanced_marc.rb"
59
+ ]
60
+ s.homepage = %q{http://github.com/rsinger/enhanced-marc/tree}
61
+ s.rdoc_options = ["--charset=UTF-8"]
62
+ s.require_paths = ["lib"]
63
+ s.rubygems_version = %q{1.3.5}
64
+ s.summary = %q{A DSL for MARC data}
65
+ s.test_files = [
66
+ "test/ts_enhanced_marc.rb"
67
+ ]
68
+
69
+ if s.respond_to? :specification_version then
70
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
71
+ s.specification_version = 3
72
+
73
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
74
+ s.add_runtime_dependency(%q<marc>, [">= 0"])
75
+ else
76
+ s.add_dependency(%q<marc>, [">= 0"])
77
+ end
78
+ else
79
+ s.add_dependency(%q<marc>, [">= 0"])
80
+ end
81
+ end
@@ -40,7 +40,7 @@ module BookType
40
40
  def is_biography?(human_readable=false)
41
41
  biog_map = {'a'=>'Autobiography', 'b'=>'Individual biography',
42
42
  'c'=>'Collective biography', 'd'=>'Contains biographical information'}
43
- human_readable = lit_map if human_readable
43
+ human_readable = biog_map if human_readable
44
44
  return self.field_parser({:match=>'BKS', :start=>34,:end=>1}, {:match=>/[at]{1}/, :start=>17,:end=>1}, human_readable)
45
45
  end
46
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsinger-enhanced_marc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Singer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-17 00:00:00 -07:00
12
+ date: 2009-09-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -38,6 +38,7 @@ files:
38
38
  - Rakefile
39
39
  - VERSION
40
40
  - enhanced_marc-0.1.gem
41
+ - enhanced_marc.gemspec
41
42
  - lib/enhanced_marc.rb
42
43
  - lib/enhanced_marc/book_record.rb
43
44
  - lib/enhanced_marc/book_type.rb