cirneco 0.9.19 → 0.9.20

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: bbb4edcdea41efe0ff2b79cc59cec84596613f7514347226680219be2c99af77
4
- data.tar.gz: cfa54b244e011053e0bec54a46b8197853f25105428e80748baeb9a933ac48e1
3
+ metadata.gz: 3fb078ecfae4e617adca6f7aaf9b857afe63381868c2d0a4826eb8481838c1af
4
+ data.tar.gz: d3b31bb507169a3979df77ba6f8f8a7add95316b08e25f013a73dcd4a50581ca
5
5
  SHA512:
6
- metadata.gz: 8e9dcc664ceca27fad16afe4b2870e80bbeaf1fb7a78b1fce3468f70cb7ea5a5c6188900825c34ffb29ab7e7e1b40db00e99dfae5fb829939a9b1fd9592e64e3
7
- data.tar.gz: 70932bb422123187baaa8d2210bcf56b93c41df4db1f3165327ad4ca1f2278101bc8ba53074a1758226c9b6224b2bc75c1be704edc0146160ef162e642dc72ab
6
+ metadata.gz: 6834e6c25f262d966538020ff0f5db221dcad6797bff1bab9f494adac257d4f8044b58055a70804a8cd5f710c7f9212614d8c11fd65672cc2d76c9b523d37837
7
+ data.tar.gz: 2454097fa4fe48e6236f3564b0a5f6a191ea4909a2787b15c14f7aa2ee8b32bc98e76ffc346c2fd8637a3e1bef9e87e8e2a1b607436d8404d7ce89328ca5d888
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirneco (0.9.19)
4
+ cirneco (0.9.20)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  base32-url (~> 0.5)
7
7
  bergamasco (~> 0.3)
@@ -6,8 +6,8 @@ require 'time'
6
6
 
7
7
  module Cirneco
8
8
  module Utils
9
- # "ZZZZZZZ" decoded as number
10
- UPPER_LIMIT = 34359738367
9
+ # 32 by the factor of 6
10
+ UPPER_LIMIT = 1073741823
11
11
 
12
12
  def get_dois_by_prefix(prefix, options={})
13
13
  response = get_dois(options)
@@ -1,3 +1,3 @@
1
1
  module Cirneco
2
- VERSION = "0.9.19"
2
+ VERSION = "0.9.20"
3
3
  end
@@ -55,7 +55,7 @@ describe Cirneco::Work, vcr: true, :order => :defined do
55
55
  it 'should get all dois' do
56
56
  response = subject.get_dois(options)
57
57
  dois = response.body["data"]
58
- expect(dois.length).to eq(7)
58
+ expect(dois.length).to eq(9)
59
59
  expect(dois.first).to eq("10.5072/0007-NW90")
60
60
  end
61
61
 
@@ -25,7 +25,7 @@ describe Cirneco::Doi do
25
25
  context "get" do
26
26
  it 'should get all dois' do
27
27
  subject.options = api_options.merge(limit: 3)
28
- expect { subject.get "all" }.to output("10.5072/0007-NW90\n10.5072/079J-XH42\n10.5072/55E5-T5C0\n").to_stdout
28
+ expect { subject.get "all" }.to output("10.5072/0007-NW90\n10.5072/079J-XH42\n10.5072/1-4CWY-2C14\n").to_stdout
29
29
  end
30
30
 
31
31
  it 'should get doi' do
@@ -19,7 +19,7 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
19
19
  it 'should get all dois by prefix' do
20
20
  response = subject.get_dois_by_prefix(prefix, options)
21
21
  dois = response.body["data"]
22
- expect(dois.length).to eq(6)
22
+ expect(dois.length).to eq(8)
23
23
  expect(dois.first).to eq("10.5072/0007-NW90")
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirneco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.19
4
+ version: 0.9.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner