middleman-citation 0.4.1 → 0.4.2
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/Gemfile +1 -0
- data/Gemfile.lock +63 -44
- data/lib/middleman-citation.rb +6 -6
- data/lib/middleman-citation/version.rb +1 -1
- data/middleman-citation.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efc324dd3c7b35e0831c87aa22d919a04c13e836
|
4
|
+
data.tar.gz: 1e241301352b1177dd194d8f7f88d4fb466fad78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09c135dbafcb8c645cad26bce8324e22b90a7686f914f4b7855db76439351ddaecb8ded79810b47b06d75018b19a984cf408724969d4ae9ef4665804031be0c4'
|
7
|
+
data.tar.gz: 032e79fddee12b52c3d1ef01fb7641e2bb74348329c9f4e6a32484eea03fc086013a6768ea4fdbb9bf28cf8681d5f73f0dd24057e4686461e2070643a2a9e043
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
middleman-citation (0.4.
|
4
|
+
middleman-citation (0.4.2)
|
5
5
|
bibtex-ruby
|
6
6
|
citeproc-ruby
|
7
7
|
csl-styles
|
8
|
-
middleman-core (~> 4)
|
8
|
+
middleman-core (~> 4.0)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (
|
13
|
+
activesupport (5.0.1)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
15
|
i18n (~> 0.7)
|
15
|
-
json (~> 1.7, >= 1.7.7)
|
16
16
|
minitest (~> 5.1)
|
17
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
18
17
|
tzinfo (~> 1.1)
|
19
|
-
addressable (2.
|
18
|
+
addressable (2.5.0)
|
19
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
20
20
|
aruba (0.14.2)
|
21
21
|
childprocess (~> 0.5.6)
|
22
22
|
contracts (~> 0.9)
|
@@ -25,10 +25,10 @@ GEM
|
|
25
25
|
rspec-expectations (>= 2.99)
|
26
26
|
thor (~> 0.19)
|
27
27
|
backports (3.6.8)
|
28
|
-
bibtex-ruby (4.4.
|
28
|
+
bibtex-ruby (4.4.3)
|
29
29
|
latex-decode (~> 0.0)
|
30
|
-
builder (3.2.
|
31
|
-
capybara (2.
|
30
|
+
builder (3.2.3)
|
31
|
+
capybara (2.12.0)
|
32
32
|
addressable
|
33
33
|
mime-types (>= 1.16)
|
34
34
|
nokogiri (>= 1.3.3)
|
@@ -37,13 +37,19 @@ GEM
|
|
37
37
|
xpath (~> 2.0)
|
38
38
|
childprocess (0.5.9)
|
39
39
|
ffi (~> 1.0, >= 1.0.11)
|
40
|
-
citeproc (1.0.
|
40
|
+
citeproc (1.0.5)
|
41
41
|
namae (~> 0.8)
|
42
|
-
citeproc-ruby (1.1.
|
42
|
+
citeproc-ruby (1.1.6)
|
43
43
|
citeproc (>= 1.0.4, < 2.0)
|
44
44
|
csl (~> 1.4)
|
45
45
|
coderay (1.1.1)
|
46
|
-
|
46
|
+
coffee-script (2.4.1)
|
47
|
+
coffee-script-source
|
48
|
+
execjs
|
49
|
+
coffee-script-source (1.12.2)
|
50
|
+
compass-import-once (1.0.5)
|
51
|
+
sass (>= 3.2, < 3.5)
|
52
|
+
concurrent-ruby (1.0.4)
|
47
53
|
contracts (0.13.0)
|
48
54
|
csl (1.4.5)
|
49
55
|
namae (~> 0.7)
|
@@ -60,17 +66,17 @@ GEM
|
|
60
66
|
cucumber-core (1.5.0)
|
61
67
|
gherkin (~> 4.0)
|
62
68
|
cucumber-wire (0.0.1)
|
63
|
-
diff-lcs (1.
|
64
|
-
dotenv (2.
|
69
|
+
diff-lcs (1.3)
|
70
|
+
dotenv (2.2.0)
|
65
71
|
erubis (2.7.0)
|
66
72
|
execjs (2.7.0)
|
67
73
|
fast_blank (1.0.0)
|
68
|
-
fastimage (2.0.
|
74
|
+
fastimage (2.0.1)
|
69
75
|
addressable (~> 2)
|
70
|
-
ffi (1.9.
|
76
|
+
ffi (1.9.17)
|
71
77
|
formatador (0.2.5)
|
72
78
|
gherkin (4.0.0)
|
73
|
-
guard (2.14.
|
79
|
+
guard (2.14.1)
|
74
80
|
formatador (>= 0.2.4)
|
75
81
|
listen (>= 2.7, < 4.0)
|
76
82
|
lumberjack (~> 1.0)
|
@@ -84,21 +90,33 @@ GEM
|
|
84
90
|
guard (~> 2.1)
|
85
91
|
guard-compat (~> 1.1)
|
86
92
|
rspec (>= 2.99.0, < 4.0)
|
93
|
+
haml (4.0.7)
|
94
|
+
tilt
|
87
95
|
hamster (3.0.0)
|
88
96
|
concurrent-ruby (~> 1.0)
|
89
|
-
hashie (3.
|
97
|
+
hashie (3.5.1)
|
90
98
|
i18n (0.7.0)
|
91
|
-
|
99
|
+
kramdown (1.13.2)
|
92
100
|
latex-decode (0.2.2)
|
93
101
|
unicode (~> 0.4)
|
94
102
|
listen (3.0.8)
|
95
103
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
96
104
|
rb-inotify (~> 0.9, >= 0.9.7)
|
97
|
-
lumberjack (1.0.
|
105
|
+
lumberjack (1.0.11)
|
98
106
|
memoist (0.15.0)
|
99
107
|
method_source (0.8.2)
|
100
|
-
middleman
|
101
|
-
|
108
|
+
middleman (4.2.1)
|
109
|
+
coffee-script (~> 2.2)
|
110
|
+
compass-import-once (= 1.0.5)
|
111
|
+
haml (>= 4.0.5)
|
112
|
+
kramdown (~> 1.2)
|
113
|
+
middleman-cli (= 4.2.1)
|
114
|
+
middleman-core (= 4.2.1)
|
115
|
+
sass (>= 3.4.0, < 4.0)
|
116
|
+
middleman-cli (4.2.1)
|
117
|
+
thor (>= 0.17.0, < 2.0)
|
118
|
+
middleman-core (4.2.1)
|
119
|
+
activesupport (>= 4.2, < 5.1)
|
102
120
|
addressable (~> 2.3)
|
103
121
|
backports (~> 3.6)
|
104
122
|
bundler (~> 1.1)
|
@@ -115,45 +133,45 @@ GEM
|
|
115
133
|
memoist (~> 0.14)
|
116
134
|
padrino-helpers (~> 0.13.0)
|
117
135
|
parallel
|
118
|
-
rack (>= 1.4.5, <
|
136
|
+
rack (>= 1.4.5, < 3)
|
119
137
|
sass (>= 3.4)
|
120
138
|
servolux
|
121
|
-
tilt (~>
|
139
|
+
tilt (~> 2.0)
|
122
140
|
uglifier (~> 3.0)
|
123
141
|
mime-types (3.1)
|
124
142
|
mime-types-data (~> 3.2015)
|
125
143
|
mime-types-data (3.2016.0521)
|
126
144
|
mini_portile2 (2.1.0)
|
127
|
-
minitest (5.
|
145
|
+
minitest (5.10.1)
|
128
146
|
multi_json (1.12.1)
|
129
147
|
multi_test (0.1.2)
|
130
|
-
namae (0.11.
|
148
|
+
namae (0.11.3)
|
131
149
|
nenv (0.3.0)
|
132
|
-
nokogiri (1.
|
150
|
+
nokogiri (1.7.0.1)
|
133
151
|
mini_portile2 (~> 2.1.0)
|
134
152
|
notiffany (0.1.1)
|
135
153
|
nenv (~> 0.1)
|
136
154
|
shellany (~> 0.0)
|
137
|
-
padrino-helpers (0.13.3.
|
155
|
+
padrino-helpers (0.13.3.3)
|
138
156
|
i18n (~> 0.6, >= 0.6.7)
|
139
|
-
padrino-support (= 0.13.3.
|
157
|
+
padrino-support (= 0.13.3.3)
|
140
158
|
tilt (>= 1.4.1, < 3)
|
141
|
-
padrino-support (0.13.3.
|
159
|
+
padrino-support (0.13.3.3)
|
142
160
|
activesupport (>= 3.1)
|
143
|
-
parallel (1.
|
161
|
+
parallel (1.10.0)
|
144
162
|
pry (0.10.4)
|
145
163
|
coderay (~> 1.1.0)
|
146
164
|
method_source (~> 0.8.1)
|
147
165
|
slop (~> 3.4)
|
148
|
-
|
166
|
+
public_suffix (2.0.5)
|
167
|
+
rack (2.0.1)
|
149
168
|
rack-test (0.6.3)
|
150
169
|
rack (>= 1.0)
|
151
|
-
rake (
|
152
|
-
rb-fsevent (0.9.
|
153
|
-
rb-inotify (0.9.
|
170
|
+
rake (12.0.0)
|
171
|
+
rb-fsevent (0.9.8)
|
172
|
+
rb-inotify (0.9.8)
|
154
173
|
ffi (>= 0.5.0)
|
155
|
-
rdoc (
|
156
|
-
json (~> 1.4)
|
174
|
+
rdoc (5.0.0)
|
157
175
|
rspec (3.5.0)
|
158
176
|
rspec-core (~> 3.5.0)
|
159
177
|
rspec-expectations (~> 3.5.0)
|
@@ -163,28 +181,28 @@ GEM
|
|
163
181
|
rspec-expectations (3.5.0)
|
164
182
|
diff-lcs (>= 1.2.0, < 2.0)
|
165
183
|
rspec-support (~> 3.5.0)
|
166
|
-
rspec-html-matchers (0.
|
184
|
+
rspec-html-matchers (0.9.1)
|
167
185
|
nokogiri (~> 1)
|
168
186
|
rspec (>= 3.0.0.a, < 4)
|
169
187
|
rspec-mocks (3.5.0)
|
170
188
|
diff-lcs (>= 1.2.0, < 2.0)
|
171
189
|
rspec-support (~> 3.5.0)
|
172
190
|
rspec-support (3.5.0)
|
173
|
-
sass (3.4.
|
191
|
+
sass (3.4.23)
|
174
192
|
servolux (0.12.0)
|
175
193
|
shellany (0.0.1)
|
176
194
|
slop (3.6.0)
|
177
|
-
thor (0.19.
|
195
|
+
thor (0.19.4)
|
178
196
|
thread_safe (0.3.5)
|
179
|
-
tilt (
|
197
|
+
tilt (2.0.6)
|
180
198
|
tzinfo (1.2.2)
|
181
199
|
thread_safe (~> 0.1)
|
182
|
-
uglifier (3.0.
|
200
|
+
uglifier (3.0.4)
|
183
201
|
execjs (>= 0.3.0, < 3)
|
184
202
|
unicode (0.4.4.2)
|
185
203
|
xpath (2.0.0)
|
186
204
|
nokogiri (~> 1.3)
|
187
|
-
yard (0.9.
|
205
|
+
yard (0.9.8)
|
188
206
|
|
189
207
|
PLATFORMS
|
190
208
|
ruby
|
@@ -195,6 +213,7 @@ DEPENDENCIES
|
|
195
213
|
cucumber
|
196
214
|
guard
|
197
215
|
guard-rspec
|
216
|
+
middleman (~> 4.0)
|
198
217
|
middleman-citation!
|
199
218
|
pry
|
200
219
|
rake
|
@@ -204,4 +223,4 @@ DEPENDENCIES
|
|
204
223
|
yard
|
205
224
|
|
206
225
|
BUNDLED WITH
|
207
|
-
1.
|
226
|
+
1.14.3
|
data/lib/middleman-citation.rb
CHANGED
@@ -13,9 +13,9 @@ module Middleman
|
|
13
13
|
|
14
14
|
def initialize(app, options_hash={}, &block)
|
15
15
|
super
|
16
|
-
app.
|
17
|
-
app.
|
18
|
-
app.
|
16
|
+
app.config[:bibtex] = BibTeX.open(options.bibtex, :filter => 'latex')
|
17
|
+
app.config[:cite_style] = options.style
|
18
|
+
app.config[:cite_format] = options.format
|
19
19
|
end
|
20
20
|
|
21
21
|
helpers do
|
@@ -24,7 +24,7 @@ module Middleman
|
|
24
24
|
# Params:
|
25
25
|
# +key+:: bibtex key located in the BibTeX file defined in the config
|
26
26
|
def cite_full(key)
|
27
|
-
Citations::cite_full(key, bibtex, cite_style, cite_format)
|
27
|
+
Citations::cite_full(key, config.bibtex, config.cite_style, config.cite_format)
|
28
28
|
end
|
29
29
|
|
30
30
|
# Given a BibTeX citation return a block containing the citation
|
@@ -32,11 +32,11 @@ module Middleman
|
|
32
32
|
# Params:
|
33
33
|
# +key+:: bibtex key located in the BibTeX file defined in the config
|
34
34
|
def cite_inline(key)
|
35
|
-
Citations::cite_inline(key, bibtex, cite_style)
|
35
|
+
Citations::cite_inline(key, config.bibtex, config.cite_style)
|
36
36
|
end
|
37
37
|
|
38
38
|
def citations_search(search_key, author = nil)
|
39
|
-
entries_matching_key = bibtex.query(search_key)
|
39
|
+
entries_matching_key = config.bibtex.query(search_key)
|
40
40
|
entries =
|
41
41
|
if author then
|
42
42
|
search_by_author(entries_matching_key, author)
|
data/middleman-citation.gemspec
CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency "bibtex-ruby"
|
25
25
|
spec.add_runtime_dependency "citeproc-ruby"
|
26
26
|
spec.add_runtime_dependency "csl-styles"
|
27
|
-
spec.add_runtime_dependency "middleman-core", ["~> 4"]
|
27
|
+
spec.add_runtime_dependency "middleman-core", ["~> 4.0"]
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-citation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Torsney-Weir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '4'
|
61
|
+
version: '4.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '4'
|
68
|
+
version: '4.0'
|
69
69
|
description: |2
|
70
70
|
A middleman extension that gives helpers for
|
71
71
|
creating citations using citeproc
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.6.8
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Middleman extension for citeproc
|