jekyll-pubmed 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/jekyll-pubmed.gemspec +0 -1
- data/lib/jekyll-pubmed.rb +2 -1
- data/lib/jekyll-pubmed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 114bc880bbbb7d9d37ebba84dcadb9297c1cf748
|
4
|
+
data.tar.gz: d26b2bd0a6b9ae22f41fd3a6c8853383f5c1486b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d530ac43cd2b2e4b50beab95e206c452806a1f9726ca1910500d0b468ee8364aee1c5242384dc140f70dcfabca53d583d1fe1dc46003739db6c65044cbfa4a1
|
7
|
+
data.tar.gz: 73ed4cd8e3d7019b5e87fe4da4368ddd8a7d31c2084843c6235b3542d15c5ebdb6b4e3d5def7a5bed5ed9b5cd04cafcc189dbad155e819ff70df0f30bfc953e3
|
data/.gitignore
CHANGED
data/jekyll-pubmed.gemspec
CHANGED
@@ -22,6 +22,5 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake", "~> 10"
|
23
23
|
spec.add_development_dependency "rspec", "~> 3.5"
|
24
24
|
spec.add_development_dependency 'hash-joiner', "~> 0.0"
|
25
|
-
#spec.add_development_dependency 'open-uri', "0"
|
26
25
|
spec.add_development_dependency 'crack', "~> 0.4"
|
27
26
|
end
|
data/lib/jekyll-pubmed.rb
CHANGED
@@ -6,6 +6,7 @@ require 'hash-joiner'
|
|
6
6
|
require 'open-uri'
|
7
7
|
require 'crack'
|
8
8
|
require 'pp'
|
9
|
+
require 'uri'
|
9
10
|
|
10
11
|
module Jekyll
|
11
12
|
class Jekyll_Pubmed < Jekyll::Generator
|
@@ -23,7 +24,7 @@ module Jekyll
|
|
23
24
|
config.each do |d|
|
24
25
|
begin
|
25
26
|
target = site.data[d['data']]
|
26
|
-
search_term = d['term']
|
27
|
+
search_term = URI.escape(d['term'])
|
27
28
|
file_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=#{search_term}&format=json"
|
28
29
|
source = JSON.load(open(file_url))
|
29
30
|
if target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-pubmed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gokul Wimalanathan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|