discovery-indexer 0.9.4 → 0.9.5

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: 782083854e48dc2d4eb84129fa0be8220b744d61
4
- data.tar.gz: 2254225e0ae86615d18df5740897befbfa21bee3
3
+ metadata.gz: 4be308adec33e0a3f9d15ba5b9bbb80a32888505
4
+ data.tar.gz: 7a275a1990a43e2411fc60e5fb5b89c4952640f9
5
5
  SHA512:
6
- metadata.gz: adbf9e6bf24966429b5d123188e380ce62b3f2f8a59862828e7fb809e959161bb0f0f8e13a86a8068afad85cc799c969675556c7e2528590f0854b75cc404773
7
- data.tar.gz: 7dec7f7b0bdfd595a977304cd3a3db30a4dfa52d049a12709b40da7b163857d9bb50ff391dc60010a3f22396fdfa4bf6ab88cc53b179d0918a90fe0cc2b0d4a2
6
+ metadata.gz: 9dc25fc9802e51c534613452b47f074a6623b98ec3a121647431bbf80216aa1f27ed1b31b0d847703a797a0ec853b2ea460f4e4cb60862487b151d79a3e09310
7
+ data.tar.gz: 8cab6aafeb05cdc42888addf59092252206f578e3d972e471f1bda7d8734d290c358276b59a9b91f787e10b0a91cea7d54a3304b25c091dad23050c25f0da3a3
@@ -6,13 +6,13 @@ module DiscoveryIndexer
6
6
  # @param [String] druid e.g. ab123cd4567
7
7
  # @param [Stanford::Mods::Record] modsxml represents the MODS xml for the druid
8
8
  # @param [DiscoveryIndexer::Reader::PurlxmlModel] purlxml represents the purlxml model
9
- # @param [Hash] collection_names represents a hash of collection_druid and
10
- # collection_name !{"aa111aa1111"=>"First Collection", "bb123bb1234"=>"Second Collection"}
11
- def initialize(druid, modsxml, purlxml, collection_names={})
9
+ # @param [Hash] collection_data represents a hash of collection_druid and catkey
10
+ # e.g. @collection_data = {'aa00bb0001'=>{:name=>'Test Collection Name',:ckey=>'000001'},'nt028fd5773'=>{:name=>'Revs Institute Archive',:ckey=>'000002'}}
11
+ def initialize(druid, modsxml, purlxml, collection_data={})
12
12
  @druid = druid
13
13
  @modsxml = modsxml
14
14
  @purlxml = purlxml
15
- @collection_names = collection_names
15
+ @collection_data = collection_data
16
16
  end
17
17
 
18
18
  # Create a Hash representing a Solr doc, with all MODS related fields populated.
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DiscoveryIndexer
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discovery-indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed AlSum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
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
28
  name: stanford-mods
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
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
42
  name: retries
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
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
55
  - !ruby/object:Gem::Dependency
56
56
  name: rsolr
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rest-client
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: webmock
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: equivalent-xml
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: This library manages the core operations for the discovery indexing such
@@ -154,7 +154,6 @@ files:
154
154
  - lib/reader/purlxml_parser.rb
155
155
  - lib/reader/purlxml_parser_strict.rb
156
156
  - lib/reader/purlxml_reader.rb
157
- - lib/utilities/extract_sub_targets.rb
158
157
  - lib/version.rb
159
158
  - lib/writer/solr_client.rb
160
159
  - lib/writer/solr_writer.rb
@@ -168,12 +167,12 @@ require_paths:
168
167
  - lib
169
168
  required_ruby_version: !ruby/object:Gem::Requirement
170
169
  requirements:
171
- - - '>='
170
+ - - ">="
172
171
  - !ruby/object:Gem::Version
173
172
  version: '0'
174
173
  required_rubygems_version: !ruby/object:Gem::Requirement
175
174
  requirements:
176
- - - '>='
175
+ - - ">="
177
176
  - !ruby/object:Gem::Version
178
177
  version: '0'
179
178
  requirements: []
@@ -1,13 +0,0 @@
1
- module DiscoveryIndexer
2
- module Utilities
3
- class ExtractSubTargets
4
-
5
- def self.by_name target_name, release_tags
6
- if release_tags.keys.include?(target_name) then
7
- return release_tags[target_name]
8
- end
9
- end
10
-
11
- end
12
- end
13
- end