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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4923cc603a7be145dec5b0cef9680ebefb24914a1edbc7b4cce1e49bbb20a6cc
4
- data.tar.gz: 29e09adc2fa5b7444600ad0174267b673c98b67d32dbae9d4e88eb3fe140cb54
3
+ metadata.gz: 916a399e839a1659d16941826b763aa1b9eb85db6363e17bedd321841d640ab0
4
+ data.tar.gz: ee00e4aab023ad60d7a6af0e0b1a001e799f1fcf91aec9f1f99011c69d53dd44
5
5
  SHA512:
6
- metadata.gz: df3e067372950e605a4e42c85a808b9f4d4d925884fb177c1ef13fed584bf7579b9e54ad1053160e1959f549f5271a297d6dec8bba36b398b6ca0fa58ff53b93
7
- data.tar.gz: 8727ff8bb484708a3c2f8552e1208d8f664ce559718b04d0dac65226e95387eb0343fe4bc50483919851827d221c9c3e94ca6fa470f4e1bf8c7bc3b09e8342dc
6
+ metadata.gz: 68ef7611653242bf7e3aab73bdf5306a37d80573867efbe26cad33c011c38304a8222e4ef09e0f3cde7c7dee50487fc99ebb04ef64fc8d933113250eae53b185
7
+ data.tar.gz: 11dd271fd603d7a99d0d08bb6dc58b7c9627fda790acb2cb6f312d15147600274dccacc2e847e299d0005468fc3238dd97a53dbf80095a2beb58bcd07eb948b1
data/.dockerignore ADDED
@@ -0,0 +1,8 @@
1
+ *.gem
2
+ .bundle
3
+ .config
4
+ .dockerignore
5
+ .github
6
+ .gitignore
7
+ Dockerfile
8
+ Gemfile.lock
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: ['2.6', '2.7', '3.0']
22
+ ruby-version: ['2.7', '3.0', '3.1']
23
23
 
24
24
  steps:
25
25
  - uses: actions/checkout@v2
data/Dockerfile ADDED
@@ -0,0 +1,13 @@
1
+ ARG ruby_version="latest"
2
+
3
+ FROM ruby:${ruby_version}
4
+
5
+ SHELL ["/bin/bash", "-c"]
6
+
7
+ RUN gem install bundler -v '~>2.0'
8
+
9
+ WORKDIR /app
10
+
11
+ COPY . .
12
+
13
+ RUN bundle install
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.3
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.3
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-17 00:00:00.000000000 Z
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