ezid-client 1.9.3 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +8 -0
- data/.github/workflows/ruby.yml +1 -1
- data/Dockerfile +13 -0
- data/README.md +17 -8
- data/VERSION +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 916a399e839a1659d16941826b763aa1b9eb85db6363e17bedd321841d640ab0
|
4
|
+
data.tar.gz: ee00e4aab023ad60d7a6af0e0b1a001e799f1fcf91aec9f1f99011c69d53dd44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68ef7611653242bf7e3aab73bdf5306a37d80573867efbe26cad33c011c38304a8222e4ef09e0f3cde7c7dee50487fc99ebb04ef64fc8d933113250eae53b185
|
7
|
+
data.tar.gz: 11dd271fd603d7a99d0d08bb6dc58b7c9627fda790acb2cb6f312d15147600274dccacc2e847e299d0005468fc3238dd97a53dbf80095a2beb58bcd07eb948b1
|
data/.dockerignore
ADDED
data/.github/workflows/ruby.yml
CHANGED
data/Dockerfile
ADDED
data/README.md
CHANGED
@@ -128,20 +128,20 @@ See http://ezid.cdlib.org/doc/apidoc.html#parameters. Repeated values should be
|
|
128
128
|
```
|
129
129
|
>> batch_download = Ezid::BatchDownload.new(:csv)
|
130
130
|
=> #<Ezid::BatchDownload format=:csv>
|
131
|
-
|
131
|
+
|
132
132
|
>> batch_download.column = ["_id", "_target"]
|
133
133
|
=> ["_id", "_target"]
|
134
|
-
|
134
|
+
|
135
135
|
>> batch_download.createdAfter = Date.today.to_time
|
136
136
|
=> 2016-02-24 00:00:00 -0500
|
137
|
-
|
137
|
+
|
138
138
|
>> batch_download
|
139
139
|
=> #<Ezid::BatchDownload column=["_id", "_target"] createdAfter=1456290000 format=:csv>
|
140
|
-
|
140
|
+
|
141
141
|
>> batch_download.url
|
142
142
|
I, [2016-02-24T18:03:40.828005 #1084] INFO -- : EZID BatchDownload -- success: http://ezid.cdlib.org/download/4a63401e17.csv.gz
|
143
143
|
=> "http://ezid.cdlib.org/download/4a63401e17.csv.gz"
|
144
|
-
|
144
|
+
|
145
145
|
>> batch_download.file
|
146
146
|
=> /current/working/directory/4a63401e17.csv.gz
|
147
147
|
```
|
@@ -155,13 +155,13 @@ I, [2016-02-24T18:03:40.828005 #1084] INFO -- : EZID BatchDownload -- success:
|
|
155
155
|
```
|
156
156
|
>> require 'ezid/batch'
|
157
157
|
=> true
|
158
|
-
|
158
|
+
|
159
159
|
>> batch = Ezid::Batch.new(:anvl, "spec/fixtures/anvl_batch.txt")
|
160
160
|
=> #<Ezid::Batch:0x007f87a8900308 @format=:anvl, @batch_file="spec/fixtures/anvl_batch.txt">
|
161
|
-
|
161
|
+
|
162
162
|
>> id = batch.first
|
163
163
|
=> #<Ezid::Identifier id=ark:/99999/fk4086hs23>
|
164
|
-
|
164
|
+
|
165
165
|
>> id.target
|
166
166
|
=> "http://example.com"
|
167
167
|
|
@@ -318,6 +318,15 @@ See http://ezid.cdlib.org/doc/apidoc.html#testing-the-api.
|
|
318
318
|
|
319
319
|
In order to run the integration tests successfully, you must supply the password for the test account "apitest" (contact EZID). To run the test suite without the integration tests, use the `rake ci` task.
|
320
320
|
|
321
|
+
## Dockerfile
|
322
|
+
|
323
|
+
A basic Dockerfile is provided based on Docker official Ruby image tags.
|
324
|
+
|
325
|
+
An example building an image with the latest Ruby and running the unit tests:
|
326
|
+
|
327
|
+
$ docker build -t ezid-client .
|
328
|
+
$ docker run --rm -it ezid-client bundle exec rspec ./spec/unit/
|
329
|
+
|
321
330
|
## Contributing
|
322
331
|
|
323
332
|
1. Fork it ( https://github.com/[my-github-username]/ezid-client/fork )
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezid-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -121,9 +121,11 @@ executables: []
|
|
121
121
|
extensions: []
|
122
122
|
extra_rdoc_files: []
|
123
123
|
files:
|
124
|
+
- ".dockerignore"
|
124
125
|
- ".github/workflows/ruby.yml"
|
125
126
|
- ".gitignore"
|
126
127
|
- ".rspec"
|
128
|
+
- Dockerfile
|
127
129
|
- Gemfile
|
128
130
|
- LICENSE.txt
|
129
131
|
- README.md
|