ref2bibtex 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f7108348cfed966bb638c38ff3b1056bc418ed6
4
- data.tar.gz: b6553afe9e23c6a65d5c78a7fdc2d493379fc6ea
3
+ metadata.gz: 9347ef3a44df67822d6b32772740952b9964a487
4
+ data.tar.gz: 212dc75413f1a0b1f443cb354809d619df77b7ff
5
5
  SHA512:
6
- metadata.gz: a14d2e3ee16b6fb7e04cc5c6b7900e0734aceb7548bfd0641f644bcba7e73c364b536c264dedd0df33d221d89ba1dabd36eb345ce1ba7c430c139086a0604811
7
- data.tar.gz: d20b75b7ca8d76ffacb1eacb99c037ea99d98d284ceaf86347c530016c263c81dbc887e81020da1ed91c6c8e2d6748bf589a4af7d2f78139c9ac8a6ac7e2d601
6
+ metadata.gz: 2932f6e00caaab1aaf60741711f4c85abd8f64a54e1f5766d989e4845bb875858b08e52fe1be3ecc16e70cfb4d59de9ab116c2461b10a89b710481a62727f689
7
+ data.tar.gz: ae48bf3cb3724165ce0c2508ca0efd598c9520e19b4aa6587d3d9467bd10858856a5691ec2d77f7db10d895f89525d78234b72cd6f5a49a3a110f55a1fca3d34
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ rvm:
3
+ - 2.3.3
4
+ branches:
5
+ only:
6
+ - master
7
+ install:
8
+ - bundle install
data/Gemfile.lock CHANGED
@@ -1,14 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ref2bibtex (0.1.0)
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 bibtex.
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. [http://opensource.org/licenses/NCSA]
65
+ [NCSA, UI flavor](http://opensource.org/licenses/NCSA)
57
66
 
data/Rakefile CHANGED
@@ -1,2 +1,4 @@
1
1
  require "bundler/gem_tasks"
2
-
2
+ require 'rspec/core/rake_task'
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module Ref2bibtex
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/ref2bibtex.gemspec CHANGED
@@ -22,5 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake", "~> 12.0"
23
23
  spec.add_development_dependency "byebug", "~> 9.0"
24
24
  spec.add_development_dependency "awesome_print"
25
+ spec.add_development_dependency "rspec"
25
26
 
26
27
  end
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.0
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