solrizer 2.2.0 → 3.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,60 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solrizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0.pre1
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Matt Zumwalt
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-08 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: nokogiri
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: om
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 1.5.0
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 1.5.0
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: xml-simple
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: mediashelf-loggable
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,99 +78,113 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: stomp
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: daemons
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: activesupport
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rspec
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ~>
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
- version: '2.0'
133
+ version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ~>
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
- version: '2.0'
141
+ version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: rake
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: yard
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - '>='
163
+ - - ! '>='
144
164
  - !ruby/object:Gem::Version
145
165
  version: '0'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - '>='
171
+ - - ! '>='
151
172
  - !ruby/object:Gem::Version
152
173
  version: '0'
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: RedCloth
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - '>='
179
+ - - ! '>='
158
180
  - !ruby/object:Gem::Version
159
181
  version: '0'
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - '>='
187
+ - - ! '>='
165
188
  - !ruby/object:Gem::Version
166
189
  version: '0'
167
190
  description: Use solrizer to populate solr indexes. You can run solrizer from within
@@ -188,9 +211,10 @@ files:
188
211
  - config/solr_mappings_af_0.1.yml
189
212
  - lib/solrizer.rb
190
213
  - lib/solrizer/common.rb
214
+ - lib/solrizer/default_descriptors.rb
215
+ - lib/solrizer/descriptor.rb
191
216
  - lib/solrizer/extractor.rb
192
217
  - lib/solrizer/field_mapper.rb
193
- - lib/solrizer/field_name_mapper.rb
194
218
  - lib/solrizer/html.rb
195
219
  - lib/solrizer/html/extractor.rb
196
220
  - lib/solrizer/railtie.rb
@@ -213,31 +237,31 @@ files:
213
237
  - spec/units/common_spec.rb
214
238
  - spec/units/extractor_spec.rb
215
239
  - spec/units/field_mapper_spec.rb
216
- - spec/units/field_name_mapper_spec.rb
217
240
  - spec/units/xml_extractor_spec.rb
218
241
  - spec/units/xml_terminology_based_solrizer_spec.rb
219
242
  homepage: http://github.com/projecthydra/solrizer
220
243
  licenses: []
221
- metadata: {}
222
244
  post_install_message:
223
245
  rdoc_options: []
224
246
  require_paths:
225
247
  - lib
226
248
  required_ruby_version: !ruby/object:Gem::Requirement
249
+ none: false
227
250
  requirements:
228
- - - '>='
251
+ - - ! '>='
229
252
  - !ruby/object:Gem::Version
230
253
  version: '0'
231
254
  required_rubygems_version: !ruby/object:Gem::Requirement
255
+ none: false
232
256
  requirements:
233
- - - '>='
257
+ - - ! '>'
234
258
  - !ruby/object:Gem::Version
235
- version: '0'
259
+ version: 1.3.1
236
260
  requirements: []
237
261
  rubyforge_project:
238
- rubygems_version: 2.0.3
262
+ rubygems_version: 1.8.24
239
263
  signing_key:
240
- specification_version: 4
264
+ specification_version: 3
241
265
  summary: A utility for building solr indexes, usually from Fedora repository content
242
266
  with solrizer-fedora extension gem.
243
267
  test_files:
@@ -253,7 +277,6 @@ test_files:
253
277
  - spec/units/common_spec.rb
254
278
  - spec/units/extractor_spec.rb
255
279
  - spec/units/field_mapper_spec.rb
256
- - spec/units/field_name_mapper_spec.rb
257
280
  - spec/units/xml_extractor_spec.rb
258
281
  - spec/units/xml_terminology_based_solrizer_spec.rb
259
282
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d5ebbe1c59eed509159d8d6acf7e208718585efa
4
- data.tar.gz: 5b23df7e426a0735b23c5fa76c8b4c5925c0e7b1
5
- SHA512:
6
- metadata.gz: d1bf476cc82af5533be86f8e2cae26d4a7c085b0adb0194d3674b33143f8228587a7b9c2550cff87b5abff59278e168aa34a88f966296b84930c7f908b2f14f0
7
- data.tar.gz: d71067c6176970fb992ba954bc9cb99b3570b7b874e8ab64109c450b398437c5307003ea4607ac344f78ec0de151bcbaec003074c8a89145dd775065cb2bb8d3
@@ -1,51 +0,0 @@
1
- # Re-Introduced for backwards compatibility
2
- module Solrizer::FieldNameMapper
3
-
4
- # Class Methods -- These methods will be available on classes that include this Module
5
-
6
- module ClassMethods
7
- def mappings
8
- return self.default_field_mapper.mappings
9
- end
10
-
11
- def id_field
12
- return self.default_field_mapper.id_field
13
- end
14
-
15
- # Re-loads solr mappings for the default field mapper's class
16
- # and re-sets the default field mapper to an FieldMapper instance with those mappings.
17
- def load_mappings( config_path=nil)
18
- # Dynamically create a new class?
19
- self.default_field_mapper.class.clear_mappings
20
- self.default_field_mapper.class.send(:include, Solrizer::FieldMapper::Defaults)
21
- self.default_field_mapper.class.load_mappings(config_path) if config_path
22
- self.default_field_mapper = self.default_field_mapper.class.new
23
- end
24
-
25
- def solr_name(field_name, field_type, index_type = :searchable)
26
- self.default_field_mapper.solr_name(field_name, field_type, index_type)
27
- end
28
-
29
- def default_field_mapper
30
- Solrizer.default_field_mapper
31
- end
32
-
33
- def default_field_mapper=(obj)
34
- Solrizer.default_field_mapper = obj
35
- end
36
- end
37
-
38
- # Instance Methods -- These methods will be available on instances of classes that include this module
39
-
40
- attr_accessor :ox_namespaces
41
-
42
- def self.included(klass)
43
- klass.extend(ClassMethods)
44
- end
45
-
46
-
47
- def solr_name(field_name, field_type, index_type = :searchable)
48
- self.class.solr_name(field_name, field_type, index_type)
49
- end
50
-
51
- end
@@ -1,28 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Solrizer::FieldNameMapper do
4
-
5
- before(:all) do
6
- class TestFieldNameMapper
7
- include Solrizer::FieldNameMapper
8
- end
9
- end
10
-
11
- describe "#mappings" do
12
- it "should return at least an id_field value" do
13
- TestFieldNameMapper.id_field.should == "id"
14
- end
15
- end
16
-
17
- describe '#solr_name' do
18
- it "should generate solr field names" do
19
- TestFieldNameMapper.solr_name(:active_fedora_model, :symbol).should == "active_fedora_model_s"
20
- end
21
- end
22
-
23
- describe ".solr_name" do
24
- it "should generate solr field names" do
25
- TestFieldNameMapper.new.solr_name(:active_fedora_model, :symbol).should == "active_fedora_model_s"
26
- end
27
- end
28
- end