solrmarc_wrapper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source :rubygems
2
2
 
3
- # Please see solrmarc_wrapper.gemspec for this gem's dependencies
3
+ # See solrmarc_wrapper.gemspec for this gem's dependencies
4
4
  gemspec
data/LICENSE CHANGED
@@ -1,22 +1,5 @@
1
- Copyright (c) 2012 Naomi Dushay
1
+ Copyright (c) 20XX-2012. The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
2
2
 
3
- MIT License
3
+ Redistribution and use of this distribution in source and binary forms, with or without modification, are permitted provided that: The above copyright notice and this permission notice appear in all copies and supporting documentation; The name, identifiers, and trademarks of The Board of Trustees of the Leland Stanford Junior University are not used in advertising or publicity without the express prior written permission of The Board of Trustees of the Leland Stanford Junior University; Recipients acknowledge that this distribution is made available as a research courtesy, "as is", potentially with defects, without any obligation on the part of The Board of Trustees of the Leland Stanford Junior University to provide support, services, or repair;
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5
+ THE BOARD OF TRUSTEES OF THE LELAND STANFORD JUNIOR UNIVERSITY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE BOARD OF TRUSTEES OF THE LELAND STANFORD JUNIOR UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
data/README.rdoc CHANGED
@@ -29,6 +29,8 @@ Example: this retrieves the full marc record stored in the Solr index, runs it
29
29
 
30
30
  == Contributing
31
31
 
32
+ See also the wiki page for committers: https://github.com/solrmarc/solrmarc_wrapper/wiki/For-Committers
33
+
32
34
  1. Fork it
33
35
  2. Create your feature branch (`git checkout -b my-new-feature`)
34
36
  3. Commit your changes (`git commit -am 'Added some feature'`)
data/config/settings.yml CHANGED
@@ -9,14 +9,14 @@ prod:
9
9
  dev:
10
10
  solrmarc_dist_dir: your_solrmarc_dist_dir
11
11
  solrmarc_conf_props_file: your_solrmarc_config.properties
12
- solr_url: http://127.0.0.1:8983/solr/dev
12
+ solr_url: http://127.0.0.1:8984/solr/dev
13
13
  log_level: info
14
14
 
15
15
  # settings for continuous integration
16
16
  ci:
17
17
  solrmarc_dist_dir: solrmarc/dist
18
18
  solrmarc_conf_props_file: sw_config.properties
19
- solr_url: http://127.0.0.1:8983/solr/test
19
+ solr_url: http://127.0.0.1:8984/solr/test
20
20
  log_level: info
21
21
 
22
22
  # add:
@@ -11,16 +11,18 @@ class SolrmarcWrapper
11
11
 
12
12
  # @param solrmarc_dist_dir distribution directory of SolrMarc build
13
13
  # @param solrmarc_conf_props_fname the name of the xx_config.properties file for SolrMarc, relative to solrmarc_dist_dir
14
- # @param
14
+ # @param solr_url the base url of a running Solr server
15
+ # @param log_level level of Logger messages to output; defaults to Logger::INFO
16
+ # @param log_file file to receive Logger output; defaults to STDERR
15
17
  # solr_url base url of the solr instance
16
18
  def initialize(solrmarc_dist_dir, config_props_fname, solr_url, log_level=Logger::INFO, log_file=STDERR)
17
19
  if not defined? JRUBY_VERSION
18
20
  raise "SolrmarcWrapper only runs under jruby"
19
21
  end
20
- load_solrmarc(solrmarc_dist_dir)
21
- setup_solr_reindexer(solr_url, config_props_fname)
22
22
  @logger = Logger.new(log_file)
23
23
  @logger.level = log_level
24
+ load_solrmarc(solrmarc_dist_dir)
25
+ setup_solr_reindexer(solr_url, config_props_fname)
24
26
  end
25
27
 
26
28
  # retrieves the full marc rec
@@ -1,3 +1,3 @@
1
1
  class SolrmarcWrapper
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/tasks/doc.rake CHANGED
@@ -11,7 +11,7 @@ namespace :sm_wrap do
11
11
  YARD::Rake::YardocTask.new(:doc) do |yt|
12
12
  yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
13
13
  [ File.join(project_root, 'README.rdoc') ]
14
- yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'crez-sw-ingest Documentation']
14
+ yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'Solrmarc_Wrapper Documentation']
15
15
  end
16
16
  rescue LoadError
17
17
  desc "Generate YARD Documentation"
data/lib/tasks/spec.rake CHANGED
@@ -10,7 +10,7 @@ namespace :sm_wrap do
10
10
  :jetty_home => test_jetty_dir,
11
11
  :solr_home => test_jetty_dir + '/solr',
12
12
  :java_opts => "-Dsolr.data.dir=" + test_jetty_dir + "/solr/test/data",
13
- :jetty_port => 8983,
13
+ :jetty_port => 8984,
14
14
  :startup_wait => 25
15
15
  })
16
16
  error = Jettywrapper.wrap(jetty_params) do
@@ -1 +1 @@
1
- curl "http://localhost:8983/solr/test/update?commit=true" -H "Content-Type: text/xml" --data-binary @spec/fixtures/add_solrdoc_bare666.xml
1
+ curl "http://localhost:8984/solr/test/update?commit=true" -H "Content-Type: text/xml" --data-binary @spec/fixtures/add_solrdoc_bare666.xml
@@ -1 +1 @@
1
- curl "http://localhost:8983/solr/test/update?commit=true" -H "Content-Type: application/xml" --data-binary '<delete><query>*:*</query></delete>'
1
+ curl "http://localhost:8984/solr/test/update?commit=true" -H "Content-Type: application/xml" --data-binary '<delete><query>*:*</query></delete>'
data/spec/solr/solr.xml CHANGED
@@ -1,21 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
2
  <!--
20
3
  All (relative) paths are relative to the installation path
21
4
  persistent: Save changes made via the API to this file
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: solrmarc_wrapper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Naomi Dushay
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-17 00:00:00.000000000Z
12
+ date: 2012-04-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake