serrano 0.2.0 → 0.2.2

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
  SHA1:
3
- metadata.gz: ce96cb27ec2070ee612d0b85d29949b441d552a4
4
- data.tar.gz: 90791e525778c083fb7e57d445a5596a2ffbf7a4
3
+ metadata.gz: 32c4cb864541c2f1441be0bd2161097b4e83ea9f
4
+ data.tar.gz: 9c627b7c38c955d093d7301fa9d6625c36060e52
5
5
  SHA512:
6
- metadata.gz: dc0937a45f90e0c3d01581149fa09a21cb0a3f4c669181404b0317a553d184e8d4d0a816cb7a1b30e9a373ff1eefea1082a531308f863b3f09f17644d8dcaa27
7
- data.tar.gz: e36b25922967b65c48bd92656c8db58359987dfae0380025043201edb8527e56098f44e3c4f3c78048276780abda2a7b276f4c860580d34774d4b598528a5961
6
+ metadata.gz: c66c60a03ba54da5b0badd192d27d54a22eb99942d06eec4c53cb07b8d0f289b7e4ba7e39e6987a0908d0cebba15701750f1bf29c470fd70bf061936103ce65c
7
+ data.tar.gz: 33f82dcde4acbe822c9a274f461f27bcdf3d0d48009566bd56879d660f5be9222f2c0b05fb0d0a91452690fc772ba780a46d64344e9c7e8e528b09718406f6ae
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  rvm:
3
4
  - 2.1.8
4
5
  - 2.2.4
6
+ script:
7
+ bundle exec rake test TESTOPTS="-v"
@@ -1,3 +1,9 @@
1
+ ## 0.2.2 (2016-06-07)
2
+
3
+ * Fixed bug in `content_negotation` in which a length 1 array of DOIs was
4
+ failing (#29)
5
+ * Added more tests to the test suite
6
+
1
7
  ## 0.2.0 (2016-03-07)
2
8
 
3
9
  * Added error classes to fail more gracefully, adapted from instagram gem (#4)
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- serrano (0.2.0)
5
- faraday (~> 0.9.1)
4
+ serrano (0.2.2)
5
+ faraday (~> 0.9.2)
6
6
  faraday_middleware (~> 0.10.0)
7
- multi_json (~> 1.0)
8
- thor (~> 0.19)
7
+ multi_json (~> 1.12.1)
8
+ thor (~> 0.19.1)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- codecov (0.1.1)
13
+ codecov (0.1.4)
14
14
  json
15
15
  simplecov
16
16
  url
@@ -20,16 +20,16 @@ GEM
20
20
  faraday_middleware (0.10.0)
21
21
  faraday (>= 0.7.4, < 0.10)
22
22
  json (1.8.3)
23
- multi_json (1.11.2)
23
+ multi_json (1.12.1)
24
24
  multipart-post (2.0.0)
25
- power_assert (0.2.4)
26
- rake (10.4.2)
27
- simplecov (0.10.0)
25
+ power_assert (0.3.0)
26
+ rake (11.1.2)
27
+ simplecov (0.11.2)
28
28
  docile (~> 1.1.0)
29
29
  json (~> 1.8)
30
30
  simplecov-html (~> 0.10.0)
31
31
  simplecov-html (0.10.0)
32
- test-unit (3.1.3)
32
+ test-unit (3.1.9)
33
33
  power_assert
34
34
  thor (0.19.1)
35
35
  url (0.3.2)
@@ -38,13 +38,13 @@ PLATFORMS
38
38
  ruby
39
39
 
40
40
  DEPENDENCIES
41
- bundler (~> 1.6)
42
- codecov (~> 0.1)
41
+ bundler (~> 1.12.5)
42
+ codecov (~> 0.1.4)
43
43
  json (~> 1.8, >= 1.8.3)
44
- rake (~> 10.4)
44
+ rake (~> 11.1.2)
45
45
  serrano!
46
- simplecov (~> 0.10)
47
- test-unit (~> 3.1)
46
+ simplecov (~> 0.11.2)
47
+ test-unit (~> 3.1.9)
48
48
 
49
49
  BUNDLED WITH
50
- 1.10.6
50
+ 1.12.5
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2015 Scott Chamberlain
1
+ Copyright (C) 2016 Scott Chamberlain
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
data/README.md CHANGED
@@ -4,6 +4,7 @@ serrano
4
4
  [![gem version](https://img.shields.io/gem/v/serrano.svg)](https://rubygems.org/gems/serrano)
5
5
  [![Build Status](https://api.travis-ci.org/sckott/serrano.png)](https://travis-ci.org/sckott/serrano)
6
6
  [![codecov.io](http://codecov.io/github/sckott/serrano/coverage.svg?branch=master)](http://codecov.io/github/sckott/serrano?branch=master)
7
+ [![DOI](https://zenodo.org/badge/2600/sckott/serrano.svg)](https://zenodo.org/badge/latestdoi/2600/sckott/serrano)
7
8
 
8
9
  `serrano` is a low level client for Crossref APIs
9
10
 
@@ -36,6 +36,9 @@ module Serrano
36
36
  end
37
37
 
38
38
  if self.ids.length == 1
39
+ if self.ids.class == Array
40
+ self.ids = self.ids[0]
41
+ end
39
42
  return make_request(self.ids, self.format, self.style, self.locale)
40
43
  else
41
44
  coll = []
@@ -1,3 +1,3 @@
1
1
  module Serrano
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = Serrano::VERSION
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.required_ruby_version = '>= 2.0'
11
- s.date = '2016-03-07'
11
+ s.date = '2016-06-07'
12
12
  s.summary = "Crossref Client"
13
13
  s.description = "Low Level Ruby Client for the Crossref Search API"
14
14
  s.authors = "Scott Chamberlain"
@@ -22,15 +22,15 @@ Gem::Specification.new do |s|
22
22
  s.bindir = 'bin'
23
23
  s.executables = ['serrano']
24
24
 
25
- s.add_development_dependency "bundler", '~> 1.6'
26
- s.add_development_dependency "rake", '~> 10.4'
27
- s.add_development_dependency "test-unit", '~> 3.1'
28
- s.add_development_dependency "simplecov", '~> 0.10'
29
- s.add_development_dependency "codecov", '~> 0.1'
25
+ s.add_development_dependency "bundler", '~> 1.12.5'
26
+ s.add_development_dependency "rake", '~> 11.1.2'
27
+ s.add_development_dependency "test-unit", '~> 3.1.9'
28
+ s.add_development_dependency "simplecov", '~> 0.11.2'
29
+ s.add_development_dependency "codecov", '~> 0.1.4'
30
30
  s.add_development_dependency 'json', '~> 1.8', '>= 1.8.3'
31
31
 
32
- s.add_runtime_dependency 'faraday', '~> 0.9.1'
32
+ s.add_runtime_dependency 'faraday', '~> 0.9.2'
33
33
  s.add_runtime_dependency 'faraday_middleware', '~> 0.10.0'
34
- s.add_runtime_dependency 'thor', '~> 0.19'
35
- s.add_runtime_dependency 'multi_json', '~> 1.0'
34
+ s.add_runtime_dependency 'thor', '~> 0.19.1'
35
+ s.add_runtime_dependency 'multi_json', '~> 1.12.1'
36
36
  end
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.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chamberlain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: 1.12.5
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: 1.12.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.4'
33
+ version: 11.1.2
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.4'
40
+ version: 11.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.1'
47
+ version: 3.1.9
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.1'
54
+ version: 3.1.9
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.10'
61
+ version: 0.11.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.10'
68
+ version: 0.11.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: codecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.1'
75
+ version: 0.1.4
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.1'
82
+ version: 0.1.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.9.1
109
+ version: 0.9.2
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: 0.9.1
116
+ version: 0.9.2
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: faraday_middleware
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -134,28 +134,28 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.19'
137
+ version: 0.19.1
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0.19'
144
+ version: 0.19.1
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: multi_json
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '1.0'
151
+ version: 1.12.1
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '1.0'
158
+ version: 1.12.1
159
159
  description: Low Level Ruby Client for the Crossref Search API
160
160
  email: myrmecocystus@gmail.com
161
161
  executables:
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubyforge_project:
212
- rubygems_version: 2.4.5.1
212
+ rubygems_version: 2.6.2
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Crossref Client