ezid 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ezid.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTk2NWU3ZjEzNzVhNzcxYzM0Y2NmNWJlZWE5Y2JmMTM3ZTc4M2NiNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGNiODNhNjZmMGM1MDQzODBmMzg0MDdiODY4ZjQ1MGQ0NDAyOTY2NQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MThmNGQwMzY5NDRlYjBiMjllOWUyZDMzYWQyMzQ2N2U2ZTFlYWRiNjZiZmY3
|
10
|
+
ZDY0OGJiOGZiYmU4YTdkZTY2ODk0MzBmYjhjZGZlMmZlNTBhYzZmNGYyN2M3
|
11
|
+
YWI2ZTY1NDcwZjVkMjc0ODg4MGU4ZmMzMzQyY2EzODg0MmI4YjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzYyMjg5NTI5YWI3YjllYWZhNzc0NjQyYjM2NDExZGY3NGFhM2E0OGVmNmMx
|
14
|
+
MDA4YTkwYzIyMjc4NDY3MjRjMjRmYjgyN2Q1OGY3YjA4ZjUxNzU3Nzg5ZDZj
|
15
|
+
MjFhZGI5NDFmNWE0NGQwMTUxNzgxNDJjZmRlYTg1YWZkM2E4ZTg=
|
data/lib/ezid.rb
CHANGED
@@ -4,6 +4,7 @@ module Ezid
|
|
4
4
|
|
5
5
|
class ApiSession
|
6
6
|
|
7
|
+
|
7
8
|
VERSION = '0.1.0'
|
8
9
|
APIVERSION = 'EZID API, Version 2'
|
9
10
|
|
@@ -16,8 +17,7 @@ module Ezid
|
|
16
17
|
PUBLIC = "public"
|
17
18
|
UNAVAIL = "unavailable"
|
18
19
|
TESTSHOULDER = {SCHEMES[:ark] => '99999/fk4', SCHEMES[:doi] => '10.5072/FK2'}
|
19
|
-
TESTMETADATA = {'_target' => 'http://example.org/opensociety', 'erc.who' => 'Karl
|
20
|
-
r', 'erc.what' => 'The Open Society and Its Enemies', 'erc.when' => '1945'}
|
20
|
+
TESTMETADATA = {'_target' => 'http://example.org/opensociety', 'erc.who' => 'Karl Popper', 'erc.what' => 'The Open Society and Its Enemies', 'erc.when' => '1945'}
|
21
21
|
|
22
22
|
def initialize(username=TESTUSERNAME, password=TESTPASSWORD, scheme=:ark, naa='')
|
23
23
|
if username == TESTUSERNAME
|
@@ -107,7 +107,10 @@ r', 'erc.what' => 'The Open Society and Its Enemies', 'erc.when' => '1945'}
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def set_scheme(scheme)
|
110
|
-
@scheme = scheme
|
110
|
+
@scheme = SCHEMES[scheme]
|
111
|
+
if @test == true
|
112
|
+
@naa = TESTSHOULDER[@scheme]
|
113
|
+
end
|
111
114
|
end
|
112
115
|
|
113
116
|
def set_naa(naa)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2013-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: API client for California Digital Library's EZID service.
|
14
14
|
email: thomas.johnson@oregonstate.edu
|