ref2bibtex 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +8 -0
- data/Gemfile.lock +16 -1
- data/README.md +12 -3
- data/Rakefile +3 -1
- data/lib/ref2bibtex/version.rb +1 -1
- data/ref2bibtex.gemspec +1 -0
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9347ef3a44df67822d6b32772740952b9964a487
|
4
|
+
data.tar.gz: 212dc75413f1a0b1f443cb354809d619df77b7ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2932f6e00caaab1aaf60741711f4c85abd8f64a54e1f5766d989e4845bb875858b08e52fe1be3ecc16e70cfb4d59de9ab116c2461b10a89b710481a62727f689
|
7
|
+
data.tar.gz: ae48bf3cb3724165ce0c2508ca0efd598c9520e19b4aa6587d3d9467bd10858856a5691ec2d77f7db10d895f89525d78234b72cd6f5a49a3a110f55a1fca3d34
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ref2bibtex (0.1.
|
4
|
+
ref2bibtex (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
awesome_print (1.7.0)
|
10
10
|
byebug (9.0.6)
|
11
|
+
diff-lcs (1.3)
|
11
12
|
rake (12.0.0)
|
13
|
+
rspec (3.6.0)
|
14
|
+
rspec-core (~> 3.6.0)
|
15
|
+
rspec-expectations (~> 3.6.0)
|
16
|
+
rspec-mocks (~> 3.6.0)
|
17
|
+
rspec-core (3.6.0)
|
18
|
+
rspec-support (~> 3.6.0)
|
19
|
+
rspec-expectations (3.6.0)
|
20
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
+
rspec-support (~> 3.6.0)
|
22
|
+
rspec-mocks (3.6.0)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.6.0)
|
25
|
+
rspec-support (3.6.0)
|
12
26
|
|
13
27
|
PLATFORMS
|
14
28
|
ruby
|
@@ -19,6 +33,7 @@ DEPENDENCIES
|
|
19
33
|
byebug (~> 9.0)
|
20
34
|
rake (~> 12.0)
|
21
35
|
ref2bibtex!
|
36
|
+
rspec
|
22
37
|
|
23
38
|
BUNDLED WITH
|
24
39
|
1.14.6
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# ref2bibtex
|
4
4
|
|
5
|
-
An (almost) single purpose gem wrapping Crossref's API. Pass it a full reference string, get back
|
5
|
+
An (almost) single purpose gem wrapping Crossref's API. Pass it a full reference string, get back BibTeX. Pass it a DOI, get BibTeX.
|
6
6
|
|
7
7
|
# usage
|
8
8
|
|
@@ -42,10 +42,19 @@ If you want a score:
|
|
42
42
|
|
43
43
|
```
|
44
44
|
|
45
|
+
Uses a cutoff against score, below cutoff returns false, set the cutoff:
|
46
|
+
```ruby
|
47
|
+
|
48
|
+
Ref2bibtex.cutoff # => 50
|
49
|
+
Ref2bibtex.cutoff = 10 # => 10
|
50
|
+
Ref2bibtex.reset_cutoff # => 50
|
51
|
+
|
52
|
+
```
|
53
|
+
|
45
54
|
# faq
|
46
55
|
|
47
56
|
## What if there are multiple results?
|
48
|
-
The code is dumb, it takes the first.
|
57
|
+
The code is dumb, it takes the first. You could use the internals to get more results.
|
49
58
|
|
50
59
|
# acknowledgements
|
51
60
|
|
@@ -53,5 +62,5 @@ The Crossref API. Jon Hill, University of York, for his Python version and bring
|
|
53
62
|
|
54
63
|
# license
|
55
64
|
|
56
|
-
NCSA, UI flavor
|
65
|
+
[NCSA, UI flavor](http://opensource.org/licenses/NCSA)
|
57
66
|
|
data/Rakefile
CHANGED
data/lib/ref2bibtex/version.rb
CHANGED
data/ref2bibtex.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ref2bibtex
|
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
|
- Matt Yoder
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Ok, maybe a bit more, you can pass a DOI and get the bibtex string back
|
70
84
|
too.
|
71
85
|
email:
|
@@ -75,6 +89,7 @@ extensions: []
|
|
75
89
|
extra_rdoc_files: []
|
76
90
|
files:
|
77
91
|
- ".gitignore"
|
92
|
+
- ".travis.yml"
|
78
93
|
- Gemfile
|
79
94
|
- Gemfile.lock
|
80
95
|
- LICENSE
|