biburi 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 +4 -4
- data/CHANGELOG.mediawiki +3 -0
- data/README.md +9 -4
- data/biburi.gemspec +1 -1
- data/lib/biburi/driver/coins.rb +5 -0
- data/lib/biburi/version.rb +1 -1
- data/spec/biburi_spec.rb +17 -14
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 165e6a2ce63d42e9a77299c2f7a6e30e6f38503d
|
4
|
+
data.tar.gz: 0ec64145575f7149de48c6140922db8d8a0f4a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f20403a06b68047c18512ded9f341ff51e4f57d15aa44f6be8debe3edd15f28e50a0a22e1c0dd56b86b656ca72c9dd5f4d7a9b5f767bc3bd2911778d67f62e
|
7
|
+
data.tar.gz: 8609ef325985de3ba7a943af44115b7cd0a5fc2ad53f160f34dc3d36d4056facbcfa7badaabb6d025d8612a1e238db9c13f75bcabc9879389898309d0a340b28
|
data/CHANGELOG.mediawiki
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= BibURI Changelog =
|
2
2
|
|
3
|
+
* 0.1.1 (January 27, 2014)
|
4
|
+
** Fixed a minor bug: COinS genres we can't figure out will be given to BibTeX as '@misc'.
|
5
|
+
|
3
6
|
* 0.1.0 (October 4, 2013)
|
4
7
|
** MAJOR CHANGE: lookup() now returns a single BibTeX::Entry object, instead of an Array. One driver supports lookup_all() to return all entries.
|
5
8
|
|
data/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/biburi.png)](http://badge.fury.io/rb/biburi)
|
4
4
|
[![Continuous Integration Status][1]][2]
|
5
5
|
[![Coverage Status][3]][4]
|
6
|
-
[![
|
6
|
+
[![CodeClimate][5]][6]
|
7
|
+
[![Dependency Status][7]][8]
|
7
8
|
|
8
9
|
This is a gem to extract BibTeX information for URIs which refer to bibliographic
|
9
10
|
resources, such as DOIs, Biodiversity Heritage Library links, and others.
|
@@ -11,6 +12,7 @@ resources, such as DOIs, Biodiversity Heritage Library links, and others.
|
|
11
12
|
Currently, BibURI supports the following types of data:
|
12
13
|
|
13
14
|
- DOIs (via CrossRef)
|
15
|
+
- Any web page containing one or more [COinS](http://ocoins.info/) spans.
|
14
16
|
|
15
17
|
## Installation
|
16
18
|
|
@@ -32,7 +34,8 @@ BibURI mainly works out of a single method:
|
|
32
34
|
|
33
35
|
require 'biburi'
|
34
36
|
|
35
|
-
|
37
|
+
entry = BibURI::lookup('doi:10.1038/171737a0')
|
38
|
+
# => [#<BibTeX::Entry identifiers = info:doi/http://dx.doi.org/10.1038/171737a0 http://dx.doi.org/10.1038/171737a0, journal = Nature, pages = 737--738, author = WATSON, J. D. and CRICK, F. H. C., date = 1953, year = 1953, title = Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid, volume = 171, number = 4356, url = http://dx.doi.org/10.1038/171737a0, doi = 10.1038/171737a0>]
|
36
39
|
|
37
40
|
Full documentation is [available online at RubyDoc.org](http://rubydoc.org/github/gaurav/biburi/master/frames).
|
38
41
|
|
@@ -48,5 +51,7 @@ Full documentation is [available online at RubyDoc.org](http://rubydoc.org/githu
|
|
48
51
|
[2]: http://travis-ci.org/gaurav/biburi
|
49
52
|
[3]: https://coveralls.io/repos/gaurav/biburi/badge.png?branch=master
|
50
53
|
[4]: https://coveralls.io/r/gaurav/biburi?branch=master
|
51
|
-
[5]: https://
|
52
|
-
[6]: https://
|
54
|
+
[5]: https://codeclimate.com/github/gaurav/biburi.png?branch=master
|
55
|
+
[6]: https://codeclimate.com/github/gaurav/biburi?branch=master
|
56
|
+
[7]: https://gemnasium.com/gaurav/biburi.png
|
57
|
+
[8]: https://gemnasium.com/gaurav/biburi
|
data/biburi.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rspec", "~> 2.14.1"
|
24
24
|
spec.add_development_dependency "coveralls", "~> 0.7.0"
|
25
25
|
|
26
|
-
spec.add_runtime_dependency 'bibtex-ruby', '~>
|
26
|
+
spec.add_runtime_dependency 'bibtex-ruby', '~> 3.1.1'
|
27
27
|
spec.add_runtime_dependency 'nokogiri', '~> 1.6.0'
|
28
28
|
end
|
data/lib/biburi/driver/coins.rb
CHANGED
@@ -163,6 +163,11 @@ module BibURI::Driver::COinS
|
|
163
163
|
bibentry.type = "inproceedings"
|
164
164
|
elsif genre == 'report' then
|
165
165
|
bibentry.type = "techreport"
|
166
|
+
else
|
167
|
+
# Default to misc.
|
168
|
+
# There is a COinS genre called 'unknown'
|
169
|
+
# which comes here, too.
|
170
|
+
bibentry.type = "misc"
|
166
171
|
end
|
167
172
|
|
168
173
|
# Journal title: title, jtitle
|
data/lib/biburi/version.rb
CHANGED
data/spec/biburi_spec.rb
CHANGED
@@ -62,42 +62,43 @@ describe BibURI do
|
|
62
62
|
|
63
63
|
it "should be able to do COinS lookups" do
|
64
64
|
queries = {
|
65
|
-
"http://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-
|
65
|
+
"http://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-formatio/" =>
|
66
66
|
BibTeX::Entry.new(
|
67
67
|
:type => 'article',
|
68
|
-
:identifiers => "info:doi/10.1130/2008.2435(07).\nhttp://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-
|
69
|
-
:journal => "
|
68
|
+
:identifiers => "info:doi/10.1130/2008.2435(07).\nhttp://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-formatio/",
|
69
|
+
:journal => "GSA Special Papers",
|
70
70
|
:pages => "105",
|
71
|
-
:author => "Kinchloe Roberts, A and Smith, D
|
71
|
+
:author => "Kinchloe Roberts, A and Smith, D.M. and Guralnick, R.P. and Cushing, P.E. and Krieger, J.",
|
72
72
|
:date => "2008",
|
73
73
|
:year => "2008",
|
74
74
|
:title => "An outline morphometric approach to identifying fossil spiders: A preliminary examination from the Florissant Formation",
|
75
75
|
:volume => "435",
|
76
76
|
:number => "303",
|
77
|
-
:url => "http://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-
|
77
|
+
:url => "http://www.mendeley.com/research/outline-morphometric-approach-identifying-fossil-spiders-preliminary-examination-florissant-formatio/",
|
78
78
|
:doi => "10.1130/2008.2435(07)." # This is wrong though
|
79
79
|
),
|
80
80
|
"http://www.mendeley.com/catalog/big-questions-biodiversity-informatics/" =>
|
81
81
|
BibTeX::Entry.new(
|
82
|
-
:type => '
|
82
|
+
:type => 'misc',
|
83
83
|
:identifiers => "info:doi/10.1080/14772001003739369\nhttp://www.mendeley.com/catalog/big-questions-biodiversity-informatics/",
|
84
|
-
:journal => "
|
84
|
+
:journal => "",
|
85
85
|
:pages => "159--168",
|
86
|
-
:author => "Peterson, A Townsend and Knapp, Sandra and Guralnick, Robert and Soberón, Jorge and Holder, Mark T",
|
86
|
+
:author => "Peterson, A. Townsend and Knapp, Sandra and Guralnick, Robert and Soberón, Jorge and Holder, Mark T.",
|
87
87
|
:date => "2010",
|
88
88
|
:year => "2010",
|
89
89
|
:title => "The big questions for biodiversity informatics",
|
90
90
|
:volume => "8",
|
91
91
|
:number => "2",
|
92
|
-
:issn => "
|
92
|
+
:issn => "1477-2000",
|
93
|
+
:isbn => "1477-2000",
|
93
94
|
:url => "http://www.mendeley.com/catalog/big-questions-biodiversity-informatics/",
|
94
95
|
:doi => "10.1080/14772001003739369"
|
95
96
|
),
|
96
97
|
"http://www.mendeley.com/catalog/biodiversity-informatics-automated-approaches-documenting-global-biodiversity-patterns-processes/" =>
|
97
98
|
BibTeX::Entry.new(
|
98
99
|
:type => 'article',
|
99
|
-
:identifiers => "info:pmid/19129210\nhttp://www.mendeley.com/catalog/biodiversity-informatics-automated-approaches-documenting-global-biodiversity-patterns-processes/",
|
100
|
-
:journal => "Bioinformatics",
|
100
|
+
:identifiers => "info:doi/10.1093/bioinformatics/btn659\ninfo:pmid/19129210\nhttp://www.mendeley.com/catalog/biodiversity-informatics-automated-approaches-documenting-global-biodiversity-patterns-processes/",
|
101
|
+
:journal => "Bioinformatics (Oxford, England)",
|
101
102
|
:pages => "421--428",
|
102
103
|
:author => "Guralnick, Robert and Hill, Andrew",
|
103
104
|
:date => "2009",
|
@@ -105,20 +106,22 @@ describe BibURI do
|
|
105
106
|
:title => "Biodiversity informatics: automated approaches for documenting global biodiversity patterns and processes.",
|
106
107
|
:volume => "25",
|
107
108
|
:number => "4",
|
108
|
-
:
|
109
|
+
:issn => "1367-4811",
|
110
|
+
:isbn => "1367-4803",
|
111
|
+
:url => "http://www.mendeley.com/catalog/biodiversity-informatics-automated-approaches-documenting-global-biodiversity-patterns-processes/",
|
112
|
+
:doi => "10.1093/bioinformatics/btn659"
|
109
113
|
),
|
110
114
|
"http://www.mendeley.com/research/hs-2-w-estern-o-ffshoots-1500-2001-australia-canada-new-zealand-united-states/" =>
|
111
115
|
BibTeX::Entry.new(
|
112
116
|
:type => 'article',
|
113
117
|
:identifiers => "http://www.mendeley.com/research/hs-2-w-estern-o-ffshoots-1500-2001-australia-canada-new-zealand-united-states/",
|
114
|
-
:journal => "
|
118
|
+
:journal => "",
|
115
119
|
:pages => "71--90",
|
116
120
|
:author => "Offshoots, Western",
|
117
121
|
:date => "2001",
|
118
122
|
:year => "2001",
|
119
123
|
:title => "HS – 2 : W ESTERN O FFSHOOTS : 1500 – 2001 ( Australia , Canada , New Zealand , and the United States )",
|
120
124
|
:volume => "2001",
|
121
|
-
:isbn => "9264022619",
|
122
125
|
:url => "http://www.mendeley.com/research/hs-2-w-estern-o-ffshoots-1500-2001-australia-canada-new-zealand-united-states/"
|
123
126
|
),
|
124
127
|
"http://www.citeulike.org/user/bjbraams/article/12683220" =>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biburi
|
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
|
- Gaurav Vaidya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 3.1.1
|
76
76
|
type: :runtime
|
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:
|
82
|
+
version: 3.1.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: nokogiri
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|