bibsonomy-jekyll 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/lib/bibsonomy-jekyll.rb +6 -8
- metadata +1 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6611e5be6910d3d1a55387b3feb2f66cb1ebdd7
|
4
|
+
data.tar.gz: 8999768f6d2a60bf105f488bdec776c05518890a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d072c52ae009533a1556905732f93654e22f26ca8072c50150f8c8f4f1612bf6a46689f8b982725379be54f262bf11a7900bbc963548ccb77a5892e118d250cf
|
7
|
+
data.tar.gz: eb5edb8ea9230b8a8cae9fef5c631e14af9811907abd1bcd882d9187c7d92731f04d5d83588b331266fb1ea6f80b2d10950ad5f6b0e08970bcbb18ce4fb7a768
|
data/lib/bibsonomy-jekyll.rb
CHANGED
@@ -12,7 +12,7 @@ require 'bibsonomy/csl'
|
|
12
12
|
# GROUPING is either "user" or "group" and specifies the type of NAME
|
13
13
|
# NAME is the name of the group or user
|
14
14
|
# TAG1 ... TAGN are tags
|
15
|
-
# COUNT is an integer, the number of posts to return
|
15
|
+
# COUNT is an integer, the number of posts to return
|
16
16
|
#
|
17
17
|
# Changes:
|
18
18
|
# 2017-05-31 (rja)
|
@@ -32,19 +32,17 @@ module Jekyll
|
|
32
32
|
# everything else are the tags
|
33
33
|
@tags = parts
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
def render(context)
|
37
37
|
site = context.registers[:site]
|
38
38
|
|
39
39
|
# user name and API key for BibSonomy
|
40
|
-
bib_config = site.config['bibsonomy']
|
41
|
-
|
42
|
-
api_key = bib_config['apikey']
|
43
|
-
csl = BibSonomy::CSL.new(user_name, api_key)
|
40
|
+
bib_config = site.config['bibsonomy']
|
41
|
+
csl = BibSonomy::CSL.new(bib_config['user'], bib_config['apikey'])
|
44
42
|
|
45
43
|
# target directory for PDF documents
|
46
44
|
csl.pdf_dir = bib_config['document_directory']
|
47
|
-
|
45
|
+
|
48
46
|
# CSL style for rendering
|
49
47
|
csl.style = bib_config['style']
|
50
48
|
|
@@ -52,7 +50,7 @@ module Jekyll
|
|
52
50
|
|
53
51
|
# set date to now
|
54
52
|
context.registers[:page]["date"] = Time.new
|
55
|
-
|
53
|
+
|
56
54
|
return html
|
57
55
|
end
|
58
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibsonomy-jekyll
|
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
|
- Robert Jäschke
|
@@ -58,34 +58,6 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rdoc
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rspec
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '3.0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '3.0'
|
89
61
|
description: Enables rendering of posts from BibSonomy with a Jekyll tag.
|
90
62
|
email: jaeschke@l3s.de
|
91
63
|
executables: []
|