ezid 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ezid.rb +6 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDRiY2EzZmQ5ZjU5OTEwNTc2ZGUwZGY0YjNkNDI4ZGRiYjBiYTAyYg==
4
+ NTk2NWU3ZjEzNzVhNzcxYzM0Y2NmNWJlZWE5Y2JmMTM3ZTc4M2NiNQ==
5
5
  data.tar.gz: !binary |-
6
- OTgxZjQ0Y2Y0MWRhMDllZWZjY2YwOTliZjAxMzQxZDEzMTcwZTMzMw==
6
+ ZGNiODNhNjZmMGM1MDQzODBmMzg0MDdiODY4ZjQ1MGQ0NDAyOTY2NQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzYxYWE2MjlmZWQwODRmZGRkNjUzNWM2NDgxYjcyMzBiZjY0YWQwMjk2YjNm
10
- NDAxODhkMDBlNjkxODBhNjU3MGI1ZTAxNThlMzMwZWRmNDM3OTU0OTIxNDk0
11
- M2I4NmJiM2VjZTY0YTQxOWZkMjk4ZGJjYjM3OTA0NTIyNDgyYmI=
9
+ MThmNGQwMzY5NDRlYjBiMjllOWUyZDMzYWQyMzQ2N2U2ZTFlYWRiNjZiZmY3
10
+ ZDY0OGJiOGZiYmU4YTdkZTY2ODk0MzBmYjhjZGZlMmZlNTBhYzZmNGYyN2M3
11
+ YWI2ZTY1NDcwZjVkMjc0ODg4MGU4ZmMzMzQyY2EzODg0MmI4YjM=
12
12
  data.tar.gz: !binary |-
13
- MDUyMTI1YWM4MGQ3YTU2NzkxY2RmZmE0MTg2NzI5MmYxNjI2NWI3NDVkYzdi
14
- MGY4OTAwNzgzZjcwOTIxY2EyNDFmY2Y3NDE5MzQyMWQ5YjFlNTQxMWY5ZmI5
15
- YjExOGJjNzRmOTRhYjExZmZiNTk0NGEyZWUzYzc1MzgyMjk4YzQ=
13
+ YzYyMjg5NTI5YWI3YjllYWZhNzc0NjQyYjM2NDExZGY3NGFhM2E0OGVmNmMx
14
+ MDA4YTkwYzIyMjc4NDY3MjRjMjRmYjgyN2Q1OGY3YjA4ZjUxNzU3Nzg5ZDZj
15
+ MjFhZGI5NDFmNWE0NGQwMTUxNzgxNDJjZmRlYTg1YWZkM2E4ZTg=
@@ -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 Poppe\
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.0
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: 2012-09-21 00:00:00.000000000 Z
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