Skip to content

Commit 48f8bc8

Browse files
committed
Initial add of primo gem.
1 parent b700e74 commit 48f8bc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+22667
-3
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: ruby
2+
rvm:
3+
- 1.9.3
4+
- jruby-19mode # JRuby (1.9)
5+
before_script:
6+
- mysql -e 'create database umlaut3_test;'
7+
- cd test/dummy && RAILS_ENV=test bundle exec rake --trace db:schema:load db:migrate && cd ../../

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source "https://rubygems.org"
2+
3+
# Declare your gem's dependencies in umlaut.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
6+
gemspec
7+
8+
# gem "umlaut", :git => "git://github.com/team-umlaut/umlaut.git", :branch => "separate_primo_gem"
9+
gem "umlaut", :path => "/Users/dalton/Documents/workspace/umlaut/umlaut3"
10+
# Add coveralls for testing.
11+
gem "coveralls", "~> 0.6.0", :require => false, :group => :test

Gemfile.lock

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
PATH
2+
remote: .
3+
specs:
4+
umlaut-primo (0.0.1)
5+
exlibris-primo (~> 1.0.7)
6+
rake (~> 10.0.3)
7+
require_all (~> 1.2.1)
8+
9+
PATH
10+
remote: /Users/dalton/Documents/workspace/umlaut/umlaut3
11+
specs:
12+
umlaut (3.0.4)
13+
confstruct (~> 0.2)
14+
ensure_valid_encoding
15+
htmlentities
16+
isbn
17+
jquery-rails
18+
marc (>= 0.5.0, < 1.1)
19+
multi_json
20+
nokogiri (~> 1.5.3)
21+
openurl (>= 0.4.0)
22+
rails (~> 3.2.5)
23+
24+
GEM
25+
remote: https://rubygems.org/
26+
specs:
27+
actionmailer (3.2.12)
28+
actionpack (= 3.2.12)
29+
mail (~> 2.4.4)
30+
actionpack (3.2.12)
31+
activemodel (= 3.2.12)
32+
activesupport (= 3.2.12)
33+
builder (~> 3.0.0)
34+
erubis (~> 2.7.0)
35+
journey (~> 1.0.4)
36+
rack (~> 1.4.5)
37+
rack-cache (~> 1.2)
38+
rack-test (~> 0.6.1)
39+
sprockets (~> 2.2.1)
40+
activemodel (3.2.12)
41+
activesupport (= 3.2.12)
42+
builder (~> 3.0.0)
43+
activerecord (3.2.12)
44+
activemodel (= 3.2.12)
45+
activesupport (= 3.2.12)
46+
arel (~> 3.0.2)
47+
tzinfo (~> 0.3.29)
48+
activeresource (3.2.12)
49+
activemodel (= 3.2.12)
50+
activesupport (= 3.2.12)
51+
activesupport (3.2.12)
52+
i18n (~> 0.6)
53+
multi_json (~> 1.0)
54+
addressable (2.3.3)
55+
akami (1.2.0)
56+
gyoku (>= 0.4.0)
57+
nokogiri (>= 1.4.0)
58+
arel (3.0.2)
59+
builder (3.0.4)
60+
colorize (0.5.8)
61+
confstruct (0.2.5)
62+
coveralls (0.6.2)
63+
colorize
64+
multi_json (~> 1.3)
65+
rest-client
66+
simplecov (>= 0.7)
67+
thor
68+
crack (0.3.2)
69+
ensure_valid_encoding (0.5.3)
70+
erubis (2.7.0)
71+
exlibris-primo (1.0.7)
72+
activesupport (~> 3.2.0)
73+
iso-639 (~> 0.1.0)
74+
json (~> 1.7.5)
75+
nokogiri (~> 1.5.3)
76+
rake (~> 10.0.3)
77+
require_all (~> 1.2.1)
78+
savon (~> 1.2.0)
79+
gyoku (0.4.6)
80+
builder (>= 2.1.2)
81+
hike (1.2.1)
82+
htmlentities (4.3.1)
83+
httpi (1.1.1)
84+
rack
85+
i18n (0.6.4)
86+
isbn (2.0.9)
87+
iso-639 (0.1.0)
88+
journey (1.0.4)
89+
jquery-rails (2.2.1)
90+
railties (>= 3.0, < 5.0)
91+
thor (>= 0.14, < 2.0)
92+
json (1.7.7)
93+
mail (2.4.4)
94+
i18n (>= 0.4.0)
95+
mime-types (~> 1.16)
96+
treetop (~> 1.4.8)
97+
marc (0.5.0)
98+
mime-types (1.21)
99+
multi_json (1.6.1)
100+
mysql2 (0.3.11)
101+
nokogiri (1.5.6)
102+
nori (1.1.5)
103+
openurl (0.4.2)
104+
ensure_valid_encoding
105+
marc
106+
polyglot (0.3.3)
107+
rack (1.4.5)
108+
rack-cache (1.2)
109+
rack (>= 0.4)
110+
rack-ssl (1.3.3)
111+
rack
112+
rack-test (0.6.2)
113+
rack (>= 1.0)
114+
rails (3.2.12)
115+
actionmailer (= 3.2.12)
116+
actionpack (= 3.2.12)
117+
activerecord (= 3.2.12)
118+
activeresource (= 3.2.12)
119+
activesupport (= 3.2.12)
120+
bundler (~> 1.0)
121+
railties (= 3.2.12)
122+
railties (3.2.12)
123+
actionpack (= 3.2.12)
124+
activesupport (= 3.2.12)
125+
rack-ssl (~> 1.3.2)
126+
rake (>= 0.8.7)
127+
rdoc (~> 3.4)
128+
thor (>= 0.14.6, < 2.0)
129+
rake (10.0.3)
130+
rdoc (3.12.2)
131+
json (~> 1.4)
132+
require_all (1.2.1)
133+
rest-client (1.6.7)
134+
mime-types (>= 1.16)
135+
savon (1.2.0)
136+
akami (~> 1.2.0)
137+
builder (>= 2.1.2)
138+
gyoku (~> 0.4.5)
139+
httpi (~> 1.1.0)
140+
nokogiri (>= 1.4.0)
141+
nori (~> 1.1.0)
142+
wasabi (~> 2.5.0)
143+
simplecov (0.7.1)
144+
multi_json (~> 1.0)
145+
simplecov-html (~> 0.7.1)
146+
simplecov-html (0.7.1)
147+
sprockets (2.2.2)
148+
hike (~> 1.2)
149+
multi_json (~> 1.0)
150+
rack (~> 1.0)
151+
tilt (~> 1.1, != 1.3.0)
152+
thor (0.17.0)
153+
tilt (1.3.4)
154+
treetop (1.4.12)
155+
polyglot
156+
polyglot (>= 0.3.1)
157+
tzinfo (0.3.36)
158+
vcr (2.4.0)
159+
wasabi (2.5.1)
160+
httpi (~> 1.0)
161+
nokogiri (>= 1.4.0)
162+
webmock (1.9.3)
163+
addressable (>= 2.2.7)
164+
crack (>= 0.3.2)
165+
166+
PLATFORMS
167+
ruby
168+
169+
DEPENDENCIES
170+
coveralls (~> 0.6.0)
171+
jquery-rails (~> 2.2.1)
172+
mysql2 (~> 0.3.11)
173+
rdoc
174+
umlaut!
175+
umlaut-primo!
176+
vcr (~> 2.4.0)
177+
webmock (~> 1.9.0)

MIT-LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2013 Scot Dalton
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
umlaut-primo-service
2-
====================
1+
# Umlaut Primo
2+
[![Gem Version](https://badge.fury.io/rb/umlaut-primo.png)](http://badge.fury.io/rb/umlaut-primo)
3+
[![Build Status](https://api.travis-ci.org/team-umlaut/umlaut-primo.png?branch=master)](https://travis-ci.org/team-umlaut/umlaut-primo)
4+
[![Dependency Status](https://gemnasium.com/team-umlaut/umlaut-primo.png)](https://gemnasium.com/team-umlaut/umlaut-primo)
5+
[![Code Climate](https://codeclimate.com/github/team-umlaut/umlaut-primo.png)](https://codeclimate.com/github/team-umlaut/umlaut-primo)
6+
[![Coverage Status](https://coveralls.io/repos/team-umlaut/umlaut-primo/badge.png?branch=master)](https://coveralls.io/r/team-umlaut/umlaut-primo)
37

4-
Umlaut service to provide fulltext, holdings, etc. from the Primo discovery solution
8+
Umlaut service to provide full text service responses, holdings, etc. from the Primo discovery solution.
9+
10+
## Usage
11+
12+
Needs to be added after Umlaut

Rakefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env rake
2+
begin
3+
require 'bundler/setup'
4+
rescue LoadError
5+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6+
end
7+
begin
8+
require 'rdoc/task'
9+
rescue LoadError
10+
require 'rdoc/rdoc'
11+
require 'rake/rdoctask'
12+
RDoc::Task = Rake::RDocTask
13+
end
14+
15+
RDoc::Task.new(:rdoc) do |rdoc|
16+
rdoc.rdoc_dir = 'rdoc'
17+
rdoc.title = 'Umlaut Primo Service Adaptor'
18+
rdoc.options << '--line-numbers'
19+
rdoc.rdoc_files.include('README.rdoc')
20+
rdoc.rdoc_files.include('lib/**/*.rb')
21+
end
22+
23+
Bundler::GemHelper.install_tasks
24+
25+
require 'rake/testtask'
26+
27+
Rake::TestTask.new(:test) do |t|
28+
t.libs << 'lib'
29+
t.libs << 'test'
30+
t.test_files = FileList['test/*_test.rb',
31+
'test/**/*_test.rb', 'test/**/**/*_test.rb']
32+
t.verbose = false
33+
end
34+
35+
task :default => :test

lib/umlaut_primo.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "require_all"
2+
require_all "#{File.dirname(__FILE__)}/umlaut_primo/"

0 commit comments

Comments
 (0)