loc_mods 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +46 -1
  3. data/exe/loc-mods +7 -0
  4. data/lib/loc_mods/abstract.rb +2 -2
  5. data/lib/loc_mods/access_condition.rb +2 -2
  6. data/lib/loc_mods/alternative_name.rb +2 -2
  7. data/lib/loc_mods/area.rb +2 -2
  8. data/lib/loc_mods/base_mapper.rb +26 -0
  9. data/lib/loc_mods/cartographic_extension.rb +2 -2
  10. data/lib/loc_mods/cartographics.rb +2 -2
  11. data/lib/loc_mods/city_section.rb +2 -2
  12. data/lib/loc_mods/classification.rb +2 -2
  13. data/lib/loc_mods/cli.rb +153 -0
  14. data/lib/loc_mods/collection.rb +2 -2
  15. data/lib/loc_mods/comparable_mapper.rb +110 -0
  16. data/lib/loc_mods/copy_information.rb +2 -2
  17. data/lib/loc_mods/date.rb +2 -2
  18. data/lib/loc_mods/date_other.rb +2 -2
  19. data/lib/loc_mods/detail.rb +2 -2
  20. data/lib/loc_mods/edition.rb +2 -2
  21. data/lib/loc_mods/enumeration_and_chronology.rb +2 -2
  22. data/lib/loc_mods/extent.rb +2 -2
  23. data/lib/loc_mods/extent_definition.rb +2 -2
  24. data/lib/loc_mods/form.rb +2 -2
  25. data/lib/loc_mods/genre.rb +2 -2
  26. data/lib/loc_mods/geographic_code.rb +2 -2
  27. data/lib/loc_mods/hierarchical_geographic.rb +2 -2
  28. data/lib/loc_mods/hierarchical_part.rb +2 -2
  29. data/lib/loc_mods/holding_simple.rb +2 -2
  30. data/lib/loc_mods/identifier.rb +2 -2
  31. data/lib/loc_mods/item_identifier.rb +2 -2
  32. data/lib/loc_mods/language.rb +2 -2
  33. data/lib/loc_mods/language_term.rb +2 -2
  34. data/lib/loc_mods/location.rb +2 -2
  35. data/lib/loc_mods/name.rb +2 -2
  36. data/lib/loc_mods/name_part.rb +2 -2
  37. data/lib/loc_mods/non_sort.rb +2 -2
  38. data/lib/loc_mods/note.rb +2 -2
  39. data/lib/loc_mods/occupation.rb +2 -2
  40. data/lib/loc_mods/origin_info.rb +2 -2
  41. data/lib/loc_mods/part.rb +2 -2
  42. data/lib/loc_mods/physical_description.rb +2 -2
  43. data/lib/loc_mods/physical_description_note.rb +2 -2
  44. data/lib/loc_mods/physical_location.rb +2 -2
  45. data/lib/loc_mods/place.rb +2 -2
  46. data/lib/loc_mods/place_term.rb +2 -2
  47. data/lib/loc_mods/publisher.rb +2 -2
  48. data/lib/loc_mods/record.rb +2 -2
  49. data/lib/loc_mods/record_content_source.rb +2 -2
  50. data/lib/loc_mods/record_identifier.rb +2 -2
  51. data/lib/loc_mods/record_info.rb +2 -2
  52. data/lib/loc_mods/record_info_note.rb +2 -2
  53. data/lib/loc_mods/region.rb +2 -2
  54. data/lib/loc_mods/related_item.rb +2 -2
  55. data/lib/loc_mods/role.rb +2 -2
  56. data/lib/loc_mods/role_term.rb +2 -2
  57. data/lib/loc_mods/script_term.rb +2 -2
  58. data/lib/loc_mods/string_plus_language.rb +2 -2
  59. data/lib/loc_mods/string_plus_language_plus_authority.rb +2 -2
  60. data/lib/loc_mods/string_plus_language_plus_supplied.rb +2 -2
  61. data/lib/loc_mods/subject.rb +2 -2
  62. data/lib/loc_mods/subject_name.rb +2 -2
  63. data/lib/loc_mods/subject_title_info.rb +2 -2
  64. data/lib/loc_mods/table_of_contents.rb +2 -2
  65. data/lib/loc_mods/target_audience.rb +2 -2
  66. data/lib/loc_mods/temporal.rb +2 -2
  67. data/lib/loc_mods/text.rb +2 -2
  68. data/lib/loc_mods/title_info.rb +2 -2
  69. data/lib/loc_mods/type_of_resource.rb +2 -2
  70. data/lib/loc_mods/url.rb +2 -2
  71. data/lib/loc_mods/version.rb +1 -1
  72. metadata +22 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loc_mods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +125,8 @@ dependencies:
111
125
  description: Library of Congress MODS / MADS parser
112
126
  email:
113
127
  - open.source@ribose.com
114
- executables: []
128
+ executables:
129
+ - loc-mods
115
130
  extensions: []
116
131
  extra_rdoc_files: []
117
132
  files:
@@ -120,16 +135,20 @@ files:
120
135
  - CODE_OF_CONDUCT.md
121
136
  - README.adoc
122
137
  - Rakefile
138
+ - exe/loc-mods
123
139
  - lib/loc_mods.rb
124
140
  - lib/loc_mods/abstract.rb
125
141
  - lib/loc_mods/access_condition.rb
126
142
  - lib/loc_mods/alternative_name.rb
127
143
  - lib/loc_mods/area.rb
144
+ - lib/loc_mods/base_mapper.rb
128
145
  - lib/loc_mods/cartographic_extension.rb
129
146
  - lib/loc_mods/cartographics.rb
130
147
  - lib/loc_mods/city_section.rb
131
148
  - lib/loc_mods/classification.rb
149
+ - lib/loc_mods/cli.rb
132
150
  - lib/loc_mods/collection.rb
151
+ - lib/loc_mods/comparable_mapper.rb
133
152
  - lib/loc_mods/copy_information.rb
134
153
  - lib/loc_mods/date.rb
135
154
  - lib/loc_mods/date_other.rb