traject_umich_format 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a1b3c0500bb377df78ef5d7dc372ad5c2759f0b
4
- data.tar.gz: 2d84aa166bdf99f10e18ac3b5029a0392cb529f9
3
+ metadata.gz: ce0ed23c157bbc3e4f0c9e4c94c97a076ce29d5a
4
+ data.tar.gz: 8d6b2c24efb05a09eb947c97b654f06c37178788
5
5
  SHA512:
6
- metadata.gz: f3a4710ea2c9d25861b6f366bec46c6184b53d5d50bbe4e8d5278819f49b0408e24ef6564949d5ad70eca1fc7ecee01bd920810a5eec50023cf4de91c4a83abe
7
- data.tar.gz: fbeab98ec1044296d564fc6d962b079e01f53f64a71d56b6960016fee7db51d2210497a1e6a79d8c38c4f1a5cec5a1bd8c6484df9df8cdec0fa56820b81c2401
6
+ metadata.gz: bfc932b3fef6beb05d976257d897a5e260c1326fef529f830af2b7a57e6688ec8d4ee5bae0e5fc96256c737c95f4b0784e057b6de5747e8d301feebd0d9dae82
7
+ data.tar.gz: e27bddc6f23778001bd6aae543e93f9247bae63d2ea40992d721991f472c9bf398a8eb9ebeb672dcef5ace444c693acd288b33803760b33020c057a351b46d81
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.3.0 / 2017-04-13
2
+
3
+ * Call `uniq` on the list of formats before it's returned, since _serial_ can sometimes come
4
+ from two non-mutually-exclusive places. Thanks to @timothyprettyman.
5
+
1
6
  ### 0.2.0 / 2013-11-13
2
7
 
3
8
  * Make LP format detection more liberal (thank you for pull request, @jrochkind)
@@ -44,7 +44,7 @@ module Traject::UMichFormat::Macros
44
44
  tmap = Traject::TranslationMap.new('umich/format')
45
45
  ->(record, acc, context) do
46
46
  context.clipboard[:umich_format_obj] ||= Traject::UMichFormat.new(record)
47
- acc.concat context.clipboard[:umich_format_obj].format_and_types.map{|x| tmap[x]}
47
+ acc.concat context.clipboard[:umich_format_obj].format_and_types.map{|x| tmap[x]}.uniq
48
48
  end
49
49
  end
50
50
 
@@ -1,5 +1,5 @@
1
1
  module Traject
2
2
  class UMichFormat
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,67 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traject_umich_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Dueber
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: bundler
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
- - - '>='
17
+ - - ">="
17
18
  - !ruby/object:Gem::Version
18
19
  version: '0'
19
- name: bundler
20
- prerelease: false
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: rake
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: rake
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: yard
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - '>='
45
+ - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
- name: yard
48
- prerelease: false
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: The algorithm used by the University of Michigan University Library to determine format (book, serial, etc.) and type (audio, video, conference, etc.) from a (ruby marc) MARC record
55
+ description: The algorithm used by the University of Michigan University Library to
56
+ determine format (book, serial, etc.) and type (audio, video, conference, etc.)
57
+ from a (ruby marc) MARC record
56
58
  email: bill@dueber.com
57
59
  executables: []
58
60
  extensions: []
59
61
  extra_rdoc_files: []
60
62
  files:
61
- - .document
62
- - .gitignore
63
- - .travis.yml
64
- - .yardopts
63
+ - ".document"
64
+ - ".gitignore"
65
+ - ".travis.yml"
66
+ - ".yardopts"
65
67
  - ChangeLog.md
66
68
  - Gemfile
67
69
  - LICENSE.txt
@@ -89,24 +91,24 @@ homepage: https://github.com/billdueber/traject_umich_format#readme
89
91
  licenses:
90
92
  - MIT
91
93
  metadata: {}
92
- post_install_message:
94
+ post_install_message:
93
95
  rdoc_options: []
94
96
  require_paths:
95
97
  - lib
96
98
  required_ruby_version: !ruby/object:Gem::Requirement
97
99
  requirements:
98
- - - '>='
100
+ - - ">="
99
101
  - !ruby/object:Gem::Version
100
102
  version: '0'
101
103
  required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
- - - '>='
105
+ - - ">="
104
106
  - !ruby/object:Gem::Version
105
107
  version: '0'
106
108
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.1.9
109
- signing_key:
109
+ rubyforge_project:
110
+ rubygems_version: 2.6.8
111
+ signing_key:
110
112
  specification_version: 4
111
113
  summary: Extract the format and type from a MARC record, the UMich way
112
114
  test_files:
@@ -120,4 +122,3 @@ test_files:
120
122
  - spec/spec_support/video_dvd_rom.mrc
121
123
  - spec/version_spec.rb
122
124
  - spec/video_spec.rb
123
- has_rdoc: