Skip to content

Commit d58be03

Browse files
authored
Merge pull request #127 from CDRH/new_release
New release
2 parents 2f5e4a9 + 19b6d36 commit d58be03

8 files changed

Lines changed: 122 additions & 76 deletions

File tree

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.6.6
1+
ruby-2.7.6

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ Versioning](https://semver.org/spec/v2.0.0.html).
2525
### Contributors
2626
-->
2727

28+
## [v1.0.4](https://github.com/CDRH/api/compare/v1.0.3...v1.0.4) - Updates & license
29+
30+
### Changed
31+
- Updated Ruby version, gems (which addresses mimemagic dependency problem), and Puma
32+
- added license
33+
34+
### Added
35+
36+
- Documentation on facets and highlighting
37+
2838
## [v1.0.3](https://github.com/CDRH/api/compare/v1.0.2...v1.0.3) - gem updates
2939

3040
### Changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gem 'rails', '~> 5.2.0'
1111
# Use sqlite3 as the database for Active Record
1212
gem 'sqlite3'
1313
# Use Puma as the app server
14-
gem 'puma', '~> 3.7'
14+
gem 'puma', '>= 5.6'
1515
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
1616
# gem 'jbuilder', '~> 2.5'
1717
# Use Redis adapter to run Action Cable in production

Gemfile.lock

Lines changed: 74 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,120 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (5.2.4.4)
5-
actionpack (= 5.2.4.4)
4+
actioncable (5.2.8)
5+
actionpack (= 5.2.8)
66
nio4r (~> 2.0)
77
websocket-driver (>= 0.6.1)
8-
actionmailer (5.2.4.4)
9-
actionpack (= 5.2.4.4)
10-
actionview (= 5.2.4.4)
11-
activejob (= 5.2.4.4)
8+
actionmailer (5.2.8)
9+
actionpack (= 5.2.8)
10+
actionview (= 5.2.8)
11+
activejob (= 5.2.8)
1212
mail (~> 2.5, >= 2.5.4)
1313
rails-dom-testing (~> 2.0)
14-
actionpack (5.2.4.4)
15-
actionview (= 5.2.4.4)
16-
activesupport (= 5.2.4.4)
14+
actionpack (5.2.8)
15+
actionview (= 5.2.8)
16+
activesupport (= 5.2.8)
1717
rack (~> 2.0, >= 2.0.8)
1818
rack-test (>= 0.6.3)
1919
rails-dom-testing (~> 2.0)
2020
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21-
actionview (5.2.4.4)
22-
activesupport (= 5.2.4.4)
21+
actionview (5.2.8)
22+
activesupport (= 5.2.8)
2323
builder (~> 3.1)
2424
erubi (~> 1.4)
2525
rails-dom-testing (~> 2.0)
2626
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27-
activejob (5.2.4.4)
28-
activesupport (= 5.2.4.4)
27+
activejob (5.2.8)
28+
activesupport (= 5.2.8)
2929
globalid (>= 0.3.6)
30-
activemodel (5.2.4.4)
31-
activesupport (= 5.2.4.4)
32-
activerecord (5.2.4.4)
33-
activemodel (= 5.2.4.4)
34-
activesupport (= 5.2.4.4)
30+
activemodel (5.2.8)
31+
activesupport (= 5.2.8)
32+
activerecord (5.2.8)
33+
activemodel (= 5.2.8)
34+
activesupport (= 5.2.8)
3535
arel (>= 9.0)
36-
activestorage (5.2.4.4)
37-
actionpack (= 5.2.4.4)
38-
activerecord (= 5.2.4.4)
39-
marcel (~> 0.3.1)
40-
activesupport (5.2.4.4)
36+
activestorage (5.2.8)
37+
actionpack (= 5.2.8)
38+
activerecord (= 5.2.8)
39+
marcel (~> 1.0.0)
40+
activesupport (5.2.8)
4141
concurrent-ruby (~> 1.0, >= 1.0.2)
4242
i18n (>= 0.7, < 2)
4343
minitest (~> 5.1)
4444
tzinfo (~> 1.1)
4545
arel (9.0.0)
46-
bootsnap (1.5.1)
47-
msgpack (~> 1.0)
46+
bootsnap (1.11.1)
47+
msgpack (~> 1.2)
4848
builder (3.2.4)
4949
byebug (11.1.3)
50-
concurrent-ruby (1.1.7)
50+
concurrent-ruby (1.1.10)
5151
crass (1.0.6)
5252
domain_name (0.5.20190701)
5353
unf (>= 0.0.5, < 1.0.0)
54-
erubi (1.9.0)
55-
ffi (1.13.1)
56-
globalid (0.4.2)
57-
activesupport (>= 4.2.0)
54+
erubi (1.10.0)
55+
ffi (1.15.5)
56+
globalid (1.0.0)
57+
activesupport (>= 5.0)
5858
http-accept (1.7.0)
59-
http-cookie (1.0.3)
59+
http-cookie (1.0.5)
6060
domain_name (~> 0.5)
61-
i18n (1.8.5)
61+
i18n (1.10.0)
6262
concurrent-ruby (~> 1.0)
6363
listen (3.1.5)
6464
rb-fsevent (~> 0.9, >= 0.9.4)
6565
rb-inotify (~> 0.9, >= 0.9.7)
6666
ruby_dep (~> 1.2)
67-
loofah (2.7.0)
67+
loofah (2.18.0)
6868
crass (~> 1.0.2)
6969
nokogiri (>= 1.5.9)
7070
mail (2.7.1)
7171
mini_mime (>= 0.1.1)
72-
marcel (0.3.3)
73-
mimemagic (~> 0.3.2)
72+
marcel (1.0.2)
7473
method_source (1.0.0)
75-
mime-types (3.3.1)
74+
mime-types (3.4.1)
7675
mime-types-data (~> 3.2015)
77-
mime-types-data (3.2020.1104)
78-
mimemagic (0.3.5)
79-
mini_mime (1.0.2)
80-
mini_portile2 (2.4.0)
81-
minitest (5.14.2)
82-
msgpack (1.3.3)
76+
mime-types-data (3.2022.0105)
77+
mini_mime (1.1.2)
78+
mini_portile2 (2.8.0)
79+
minitest (5.15.0)
80+
msgpack (1.5.1)
8381
netrc (0.11.0)
84-
nio4r (2.5.4)
85-
nokogiri (1.10.10)
86-
mini_portile2 (~> 2.4.0)
87-
puma (3.12.6)
82+
nio4r (2.5.8)
83+
nokogiri (1.13.6)
84+
mini_portile2 (~> 2.8.0)
85+
racc (~> 1.4)
86+
puma (5.6.4)
87+
nio4r (~> 2.0)
88+
racc (1.6.0)
8889
rack (2.2.3)
8990
rack-test (1.1.0)
9091
rack (>= 1.0, < 3)
91-
rails (5.2.4.4)
92-
actioncable (= 5.2.4.4)
93-
actionmailer (= 5.2.4.4)
94-
actionpack (= 5.2.4.4)
95-
actionview (= 5.2.4.4)
96-
activejob (= 5.2.4.4)
97-
activemodel (= 5.2.4.4)
98-
activerecord (= 5.2.4.4)
99-
activestorage (= 5.2.4.4)
100-
activesupport (= 5.2.4.4)
92+
rails (5.2.8)
93+
actioncable (= 5.2.8)
94+
actionmailer (= 5.2.8)
95+
actionpack (= 5.2.8)
96+
actionview (= 5.2.8)
97+
activejob (= 5.2.8)
98+
activemodel (= 5.2.8)
99+
activerecord (= 5.2.8)
100+
activestorage (= 5.2.8)
101+
activesupport (= 5.2.8)
101102
bundler (>= 1.3.0)
102-
railties (= 5.2.4.4)
103+
railties (= 5.2.8)
103104
sprockets-rails (>= 2.0.0)
104105
rails-dom-testing (2.0.3)
105106
activesupport (>= 4.2.0)
106107
nokogiri (>= 1.6)
107-
rails-html-sanitizer (1.3.0)
108+
rails-html-sanitizer (1.4.2)
108109
loofah (~> 2.3)
109-
railties (5.2.4.4)
110-
actionpack (= 5.2.4.4)
111-
activesupport (= 5.2.4.4)
110+
railties (5.2.8)
111+
actionpack (= 5.2.8)
112+
activesupport (= 5.2.8)
112113
method_source
113114
rake (>= 0.8.7)
114115
thor (>= 0.19.0, < 2.0)
115-
rake (13.0.1)
116-
rb-fsevent (0.10.4)
116+
rake (13.0.6)
117+
rb-fsevent (0.11.1)
117118
rb-inotify (0.10.1)
118119
ffi (~> 1.0)
119120
rest-client (2.1.0)
@@ -126,22 +127,22 @@ GEM
126127
spring-watcher-listen (2.0.1)
127128
listen (>= 2.7, < 4.0)
128129
spring (>= 1.2, < 3.0)
129-
sprockets (4.0.2)
130+
sprockets (4.0.3)
130131
concurrent-ruby (~> 1.0)
131132
rack (> 1, < 3)
132-
sprockets-rails (3.2.2)
133-
actionpack (>= 4.0)
134-
activesupport (>= 4.0)
133+
sprockets-rails (3.4.2)
134+
actionpack (>= 5.2)
135+
activesupport (>= 5.2)
135136
sprockets (>= 3.0.0)
136137
sqlite3 (1.4.2)
137-
thor (1.0.1)
138+
thor (1.2.1)
138139
thread_safe (0.3.6)
139-
tzinfo (1.2.8)
140+
tzinfo (1.2.9)
140141
thread_safe (~> 0.1)
141142
unf (0.1.4)
142143
unf_ext
143-
unf_ext (0.0.7.7)
144-
websocket-driver (0.7.3)
144+
unf_ext (0.0.8.1)
145+
websocket-driver (0.7.5)
145146
websocket-extensions (>= 0.1.0)
146147
websocket-extensions (0.1.5)
147148

@@ -152,7 +153,7 @@ DEPENDENCIES
152153
bootsnap
153154
byebug
154155
listen (>= 3.0.5, < 3.2)
155-
puma (~> 3.7)
156+
puma (>= 5.6)
156157
rails (~> 5.2.0)
157158
rest-client (>= 2.1.0.rc1, < 2.2)
158159
spring
@@ -161,4 +162,4 @@ DEPENDENCIES
161162
tzinfo-data
162163

163164
BUNDLED WITH
164-
2.1.4
165+
2.2.26

LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2021 Center for Digital Research in the Humanities, University of Nebraska-Lincoln
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
Apium is an API to access all public Center for Digital Research in the Humanities resources. It is also an invasive weed in Nebraska.
44

55
**[Apium Documentation](docs/README.md)**
6+
7+
This project is licensed under the terms of the [MIT license](LICENSE.md).

config/initializers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Api
22
class Application < Rails::Application
3-
VERSION = "1.0.3"
3+
VERSION = "1.0.4"
44
end
55
end

docs/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Apium is an API to access all public Center for Digital Research in the Humanities resources. It is also an invasive weed in Nebraska.
44

5+
## Overview
6+
7+
The CDRH has the metadata and text of several thousand documents such as letters, posters, novels, and images in an Elasticsearch index. This API is a wrapper around that index which provides convenient ways to search and filter those items.
8+
9+
Below, you can find instructions about basic functionality like [sorting](#sorting), [pagination](#start-and-rows) (start / rows), and selecting the [fields you want to get back](#field-list).
10+
11+
There are a couple features that may need a little bit of an introduction.
12+
13+
__Facets__ provide you a way of combining and counting the values of a field related to a query. For example, if you search for "horse" and get 100 results, a facet on the author name field might tell you that 90 of those results were by Buffalo Bill, 9 from Meriwether Lewis, and 1 from Jane Austen. You can add facets on keyword fields and date fields, but not on text fields.
14+
15+
__Highlights__ are a cool way to preview the results of a text query. For example, if you searched for "horse," highlights might look like "...Oglala Sioux Nation. American Horse was the son of Sitting Bear..." and "...Stout as a horse, affectionate, haughty, electrical..." This preview helps users decide which result is most relevant to them. You can add highlighting to any text field.
16+
17+
518
## item query
619

720
- [Facets](#facets)

0 commit comments

Comments
 (0)