serrano 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +17 -17
- data/README.md +3 -1
- data/lib/serrano.rb +2 -2
- data/lib/serrano/version.rb +1 -1
- data/serrano.gemspec +3 -3
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2534dbe1c8771066e2263d50eb52287e2dc0ac3e968097839a8b05c31be35fdc
|
4
|
+
data.tar.gz: 3723eb652195fcb93ad1c08ab40616b78725509bb8d7ab7f69eeda77773fb573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fa11879521f6bf6895323b177f70de75b72daee2b841f46c658f95c12afe72672b80a747290740bddb0bde900e03cc3595c9d00c899709070b29e15b3785b5d
|
7
|
+
data.tar.gz: e58e6ed19721fc8188375bb96a5a6a690f6c72b7e026040427207729f661e22f13171fbf858ccf7ea1cfa1c17fecb1d7feba2a62ac442e27c0d62942c05566d5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.5.4 (2019-11-27)
|
2
|
+
|
3
|
+
* `Serrano.registration_agency` fixed: a change in an internal function caused this function to fail; tests added to prevent this in the future (#106)
|
4
|
+
* bundle update, changes in gemfile.lock
|
5
|
+
|
1
6
|
## 0.5.2 (2019-08-07)
|
2
7
|
|
3
8
|
* fix url encoding (#51)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
serrano (0.5.
|
5
|
-
faraday (
|
4
|
+
serrano (0.5.4)
|
5
|
+
faraday (>= 0.15, < 0.18)
|
6
6
|
faraday_middleware (>= 0.12.2, < 0.14.0)
|
7
7
|
multi_json (~> 1.13, >= 1.13.1)
|
8
8
|
thor (~> 0.20.0)
|
@@ -10,33 +10,33 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.
|
14
|
-
public_suffix (>= 2.0.2, <
|
13
|
+
addressable (2.7.0)
|
14
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
15
|
ast (2.4.0)
|
16
|
-
codecov (0.1.
|
16
|
+
codecov (0.1.16)
|
17
17
|
json
|
18
18
|
simplecov
|
19
19
|
url
|
20
20
|
crack (0.4.3)
|
21
21
|
safe_yaml (~> 1.0.0)
|
22
22
|
docile (1.3.2)
|
23
|
-
faraday (0.
|
23
|
+
faraday (0.17.0)
|
24
24
|
multipart-post (>= 1.2, < 3)
|
25
25
|
faraday_middleware (0.13.1)
|
26
26
|
faraday (>= 0.7.4, < 1.0)
|
27
27
|
hashdiff (1.0.0)
|
28
|
-
jaro_winkler (1.5.
|
28
|
+
jaro_winkler (1.5.4)
|
29
29
|
json (2.2.0)
|
30
|
-
multi_json (1.
|
30
|
+
multi_json (1.14.1)
|
31
31
|
multipart-post (2.1.1)
|
32
|
-
parallel (1.
|
33
|
-
parser (2.6.
|
32
|
+
parallel (1.19.1)
|
33
|
+
parser (2.6.5.0)
|
34
34
|
ast (~> 2.4.0)
|
35
|
-
power_assert (1.1.
|
36
|
-
public_suffix (
|
35
|
+
power_assert (1.1.5)
|
36
|
+
public_suffix (4.0.1)
|
37
37
|
rainbow (3.0.0)
|
38
38
|
rake (12.3.3)
|
39
|
-
rubocop (0.
|
39
|
+
rubocop (0.76.0)
|
40
40
|
jaro_winkler (~> 1.5.1)
|
41
41
|
parallel (~> 1.10)
|
42
42
|
parser (>= 2.6)
|
@@ -45,18 +45,18 @@ GEM
|
|
45
45
|
unicode-display_width (>= 1.4.0, < 1.7)
|
46
46
|
ruby-progressbar (1.10.1)
|
47
47
|
safe_yaml (1.0.5)
|
48
|
-
simplecov (0.17.
|
48
|
+
simplecov (0.17.1)
|
49
49
|
docile (~> 1.1)
|
50
50
|
json (>= 1.8, < 3)
|
51
51
|
simplecov-html (~> 0.10.0)
|
52
52
|
simplecov-html (0.10.2)
|
53
|
-
test-unit (3.3.
|
53
|
+
test-unit (3.3.4)
|
54
54
|
power_assert
|
55
55
|
thor (0.20.3)
|
56
56
|
unicode-display_width (1.6.0)
|
57
57
|
url (0.3.2)
|
58
58
|
vcr (5.0.0)
|
59
|
-
webmock (3.6
|
59
|
+
webmock (3.7.6)
|
60
60
|
addressable (>= 2.3.6)
|
61
61
|
crack (>= 0.3.2)
|
62
62
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -69,7 +69,7 @@ DEPENDENCIES
|
|
69
69
|
codecov (~> 0.1.10)
|
70
70
|
json (~> 2.1)
|
71
71
|
rake (~> 12.3, >= 12.3.1)
|
72
|
-
rubocop (~> 0.
|
72
|
+
rubocop (~> 0.76.0)
|
73
73
|
serrano!
|
74
74
|
simplecov (~> 0.17.0)
|
75
75
|
test-unit (~> 3.2, >= 3.2.7)
|
data/README.md
CHANGED
@@ -15,6 +15,8 @@ Other Crossref API clients:
|
|
15
15
|
- Python: [habanero](https://github.com/sckott/habanero)
|
16
16
|
- R: [rcrossref](https://github.com/ropensci/rcrossref)
|
17
17
|
|
18
|
+
Crossref's API issue tracker: https://gitlab.com/crossref/issues
|
19
|
+
|
18
20
|
## Changes
|
19
21
|
|
20
22
|
For changes see the [Changelog][changelog]
|
@@ -44,7 +46,7 @@ Other methods:
|
|
44
46
|
|
45
47
|
Note about searching:
|
46
48
|
|
47
|
-
You are using the Crossref search API described at https://github.com/CrossRef/rest-api-doc
|
49
|
+
You are using the Crossref search API described at https://github.com/CrossRef/rest-api-doc When you search with query terms, on Crossref servers they are not searching full text, or even abstracts of articles, but only what is available in the data that is returned to you. That is, they search article titles, authors, etc. For some discussion on this, see https://gitlab.com/crossref/issues/issues/101
|
48
50
|
|
49
51
|
Rate limits:
|
50
52
|
|
data/lib/serrano.rb
CHANGED
@@ -111,7 +111,7 @@ require 'rexml/xpath'
|
|
111
111
|
# searching full text, or even abstracts of articles, but only what is
|
112
112
|
# available in the data that is returned to you. That is, they search
|
113
113
|
# article titles, authors, etc. For some discussion on this, see
|
114
|
-
# https://
|
114
|
+
# https://gitlab.com/crossref/issues/issues/101
|
115
115
|
#
|
116
116
|
#
|
117
117
|
# The Polite Pool
|
@@ -541,7 +541,7 @@ module Serrano
|
|
541
541
|
# Serrano.registration_agency(ids: ['10.1007/12080.1874-1746','10.1007/10452.1573-5125', '10.1111/(issn)1442-9993'])
|
542
542
|
def self.registration_agency(ids:, options: nil, verbose: false)
|
543
543
|
Request.new('works', ids, nil, nil, nil,
|
544
|
-
nil, nil, nil, nil, nil, false, true, options, verbose).perform
|
544
|
+
nil, nil, nil, nil, nil, nil, false, true, options, verbose).perform
|
545
545
|
end
|
546
546
|
|
547
547
|
##
|
data/lib/serrano/version.rb
CHANGED
data/serrano.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.version = Serrano::VERSION
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.required_ruby_version = '>= 2.1'
|
12
|
-
s.date = '2019-
|
12
|
+
s.date = '2019-11-27'
|
13
13
|
s.summary = 'Crossref Client'
|
14
14
|
s.description = 'Low Level Ruby Client for the Crossref Search API'
|
15
15
|
s.authors = 'Scott Chamberlain'
|
@@ -27,13 +27,13 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.add_development_dependency 'codecov', '~> 0.1.10'
|
28
28
|
s.add_development_dependency 'json', '~> 2.1'
|
29
29
|
s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
|
30
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
30
|
+
s.add_development_dependency 'rubocop', '~> 0.76.0'
|
31
31
|
s.add_development_dependency 'simplecov', '~> 0.17.0'
|
32
32
|
s.add_development_dependency 'test-unit', '~> 3.2', '>= 3.2.7'
|
33
33
|
s.add_development_dependency 'vcr', '~> 5.0'
|
34
34
|
s.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.1'
|
35
35
|
|
36
|
-
s.add_runtime_dependency 'faraday', '
|
36
|
+
s.add_runtime_dependency 'faraday', '>= 0.15', '< 0.18'
|
37
37
|
s.add_runtime_dependency 'faraday_middleware', '>= 0.12.2', '< 0.14.0'
|
38
38
|
s.add_runtime_dependency 'multi_json', '~> 1.13', '>= 1.13.1'
|
39
39
|
s.add_runtime_dependency 'thor', '~> 0.20.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chamberlain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 0.
|
87
|
+
version: 0.76.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
94
|
+
version: 0.76.0
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: simplecov
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,16 +164,22 @@ dependencies:
|
|
164
164
|
name: faraday
|
165
165
|
requirement: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
|
-
- - "
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.15'
|
170
|
+
- - "<"
|
168
171
|
- !ruby/object:Gem::Version
|
169
|
-
version: 0.
|
172
|
+
version: '0.18'
|
170
173
|
type: :runtime
|
171
174
|
prerelease: false
|
172
175
|
version_requirements: !ruby/object:Gem::Requirement
|
173
176
|
requirements:
|
174
|
-
- - "
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.15'
|
180
|
+
- - "<"
|
175
181
|
- !ruby/object:Gem::Version
|
176
|
-
version: 0.
|
182
|
+
version: '0.18'
|
177
183
|
- !ruby/object:Gem::Dependency
|
178
184
|
name: faraday_middleware
|
179
185
|
requirement: !ruby/object:Gem::Requirement
|