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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 428b4bf83ea70b30f3a336b496d5830cbc53d9b0
4
- data.tar.gz: f2d4296f5dea07a3bde200a4580f638d99df47d6
3
+ metadata.gz: 114bc880bbbb7d9d37ebba84dcadb9297c1cf748
4
+ data.tar.gz: d26b2bd0a6b9ae22f41fd3a6c8853383f5c1486b
5
5
  SHA512:
6
- metadata.gz: 38abdd71dec8136bb581bed1361e41888f5f4bf82b57de1dc344effef546683eef60333eddf6aa026387c2f416b6ad1e4503b88b6ab948339c2016362bf6743b
7
- data.tar.gz: 8305854a775b35f499872346381399aac46da22e617fbbda81b7615d879355a75f585007f50da8749d3d9cb61894d22befeee81c9aed7de2a076ede76778fb5b
6
+ metadata.gz: 1d530ac43cd2b2e4b50beab95e206c452806a1f9726ca1910500d0b468ee8364aee1c5242384dc140f70dcfabca53d583d1fe1dc46003739db6c65044cbfa4a1
7
+ data.tar.gz: 73ed4cd8e3d7019b5e87fe4da4368ddd8a7d31c2084843c6235b3542d15c5ebdb6b4e3d5def7a5bed5ed9b5cd04cafcc189dbad155e819ff70df0f30bfc953e3
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  vendor
11
+ *gem
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Jekyll_Pubmed
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll