middleman-citation 0.3.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +109 -73
- data/lib/middleman-citation.rb +0 -13
- data/lib/middleman-citation/version.rb +1 -1
- data/middleman-citation.gemspec +1 -1
- data/spec/cite_spec.rb +1 -1
- metadata +18 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 286416774bb47fa76c06bd0ad5067eea4b00e7d5
|
4
|
+
data.tar.gz: 27cae4ae86573f3b64bddd540690a1b8ec1d9956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b0c21ac80b93034f8a4833bf9e206f930800bf8d0278dc6b531fb9565a0fdfb66de9b7ba50757362c90899cf97892ba60e6cf910090f0e1f36de1fd2831d03
|
7
|
+
data.tar.gz: 8017a55b8208dba643d399fcdf6d57d641a6699eacbe3c02ff052b43aa530a9f1fc4ec1ef0e0616ef168f33b9c118f3255cc76a399b35368981699e55e93010b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,146 +1,177 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
middleman-citation (0.
|
4
|
+
middleman-citation (0.4.1)
|
5
5
|
bibtex-ruby
|
6
6
|
citeproc-ruby
|
7
7
|
csl-styles
|
8
|
-
middleman-core (~>
|
8
|
+
middleman-core (~> 4)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (4.2.
|
13
|
+
activesupport (4.2.7.1)
|
14
14
|
i18n (~> 0.7)
|
15
15
|
json (~> 1.7, >= 1.7.7)
|
16
16
|
minitest (~> 5.1)
|
17
17
|
thread_safe (~> 0.3, >= 0.3.4)
|
18
18
|
tzinfo (~> 1.1)
|
19
|
-
|
19
|
+
addressable (2.4.0)
|
20
|
+
aruba (0.14.2)
|
20
21
|
childprocess (~> 0.5.6)
|
21
22
|
contracts (~> 0.9)
|
22
23
|
cucumber (>= 1.3.19)
|
23
24
|
ffi (~> 1.9.10)
|
24
25
|
rspec-expectations (>= 2.99)
|
25
26
|
thor (~> 0.19)
|
26
|
-
|
27
|
+
backports (3.6.8)
|
28
|
+
bibtex-ruby (4.4.2)
|
27
29
|
latex-decode (~> 0.0)
|
28
30
|
builder (3.2.2)
|
29
|
-
capybara (2.
|
31
|
+
capybara (2.10.1)
|
32
|
+
addressable
|
30
33
|
mime-types (>= 1.16)
|
31
34
|
nokogiri (>= 1.3.3)
|
32
35
|
rack (>= 1.0.0)
|
33
36
|
rack-test (>= 0.5.4)
|
34
37
|
xpath (~> 2.0)
|
35
|
-
childprocess (0.5.
|
38
|
+
childprocess (0.5.9)
|
36
39
|
ffi (~> 1.0, >= 1.0.11)
|
37
|
-
citeproc (1.0.
|
40
|
+
citeproc (1.0.4)
|
38
41
|
namae (~> 0.8)
|
39
|
-
citeproc-ruby (1.
|
40
|
-
citeproc (
|
41
|
-
csl (~> 1.
|
42
|
-
coderay (1.1.
|
43
|
-
|
44
|
-
|
42
|
+
citeproc-ruby (1.1.5)
|
43
|
+
citeproc (>= 1.0.4, < 2.0)
|
44
|
+
csl (~> 1.4)
|
45
|
+
coderay (1.1.1)
|
46
|
+
concurrent-ruby (1.0.2)
|
47
|
+
contracts (0.13.0)
|
48
|
+
csl (1.4.5)
|
45
49
|
namae (~> 0.7)
|
46
|
-
csl-styles (1.0.1.
|
50
|
+
csl-styles (1.0.1.7)
|
47
51
|
csl (~> 1.0)
|
48
|
-
cucumber (2.
|
52
|
+
cucumber (2.4.0)
|
49
53
|
builder (>= 2.1.2)
|
50
|
-
cucumber-core (~> 1.
|
54
|
+
cucumber-core (~> 1.5.0)
|
55
|
+
cucumber-wire (~> 0.0.1)
|
51
56
|
diff-lcs (>= 1.1.3)
|
52
|
-
|
57
|
+
gherkin (~> 4.0)
|
53
58
|
multi_json (>= 1.7.5, < 2.0)
|
54
59
|
multi_test (>= 0.1.2)
|
55
|
-
cucumber-core (1.
|
56
|
-
|
60
|
+
cucumber-core (1.5.0)
|
61
|
+
gherkin (~> 4.0)
|
62
|
+
cucumber-wire (0.0.1)
|
57
63
|
diff-lcs (1.2.5)
|
64
|
+
dotenv (2.1.1)
|
58
65
|
erubis (2.7.0)
|
59
|
-
|
66
|
+
execjs (2.7.0)
|
67
|
+
fast_blank (1.0.0)
|
68
|
+
fastimage (2.0.0)
|
69
|
+
addressable (~> 2)
|
70
|
+
ffi (1.9.14)
|
60
71
|
formatador (0.2.5)
|
61
|
-
|
62
|
-
guard (2.
|
72
|
+
gherkin (4.0.0)
|
73
|
+
guard (2.14.0)
|
63
74
|
formatador (>= 0.2.4)
|
64
|
-
listen (>= 2.7,
|
75
|
+
listen (>= 2.7, < 4.0)
|
65
76
|
lumberjack (~> 1.0)
|
66
77
|
nenv (~> 0.1)
|
67
78
|
notiffany (~> 0.0)
|
68
79
|
pry (>= 0.9.12)
|
69
80
|
shellany (~> 0.0)
|
70
81
|
thor (>= 0.18.1)
|
71
|
-
guard-
|
82
|
+
guard-compat (1.2.1)
|
83
|
+
guard-rspec (4.7.3)
|
72
84
|
guard (~> 2.1)
|
73
|
-
|
74
|
-
|
75
|
-
|
85
|
+
guard-compat (~> 1.1)
|
86
|
+
rspec (>= 2.99.0, < 4.0)
|
87
|
+
hamster (3.0.0)
|
88
|
+
concurrent-ruby (~> 1.0)
|
89
|
+
hashie (3.4.6)
|
76
90
|
i18n (0.7.0)
|
77
91
|
json (1.8.3)
|
78
92
|
latex-decode (0.2.2)
|
79
93
|
unicode (~> 0.4)
|
80
|
-
listen (3.0.
|
81
|
-
rb-fsevent (>= 0.9.
|
82
|
-
rb-inotify (>= 0.9)
|
83
|
-
lumberjack (1.0.
|
94
|
+
listen (3.0.8)
|
95
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
96
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
97
|
+
lumberjack (1.0.10)
|
98
|
+
memoist (0.15.0)
|
84
99
|
method_source (0.8.2)
|
85
|
-
middleman-core (
|
86
|
-
activesupport (~> 4.
|
100
|
+
middleman-core (4.1.10)
|
101
|
+
activesupport (~> 4.2)
|
102
|
+
addressable (~> 2.3)
|
103
|
+
backports (~> 3.6)
|
87
104
|
bundler (~> 1.1)
|
88
|
-
|
105
|
+
contracts (~> 0.13.0)
|
106
|
+
dotenv
|
89
107
|
erubis
|
90
|
-
|
108
|
+
execjs (~> 2.0)
|
109
|
+
fast_blank
|
110
|
+
fastimage (~> 2.0)
|
111
|
+
hamster (~> 3.0)
|
112
|
+
hashie (~> 3.4)
|
91
113
|
i18n (~> 0.7.0)
|
92
|
-
listen (~> 3.0.
|
93
|
-
|
114
|
+
listen (~> 3.0.0)
|
115
|
+
memoist (~> 0.14)
|
116
|
+
padrino-helpers (~> 0.13.0)
|
117
|
+
parallel
|
94
118
|
rack (>= 1.4.5, < 2.0)
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
119
|
+
sass (>= 3.4)
|
120
|
+
servolux
|
121
|
+
tilt (~> 1.4.1)
|
122
|
+
uglifier (~> 3.0)
|
123
|
+
mime-types (3.1)
|
124
|
+
mime-types-data (~> 3.2015)
|
125
|
+
mime-types-data (3.2016.0521)
|
126
|
+
mini_portile2 (2.1.0)
|
127
|
+
minitest (5.9.1)
|
128
|
+
multi_json (1.12.1)
|
101
129
|
multi_test (0.1.2)
|
102
|
-
namae (0.
|
103
|
-
nenv (0.
|
104
|
-
nokogiri (1.6.
|
105
|
-
|
106
|
-
notiffany (0.
|
130
|
+
namae (0.11.0)
|
131
|
+
nenv (0.3.0)
|
132
|
+
nokogiri (1.6.8.1)
|
133
|
+
mini_portile2 (~> 2.1.0)
|
134
|
+
notiffany (0.1.1)
|
107
135
|
nenv (~> 0.1)
|
108
136
|
shellany (~> 0.0)
|
109
|
-
padrino-helpers (0.
|
137
|
+
padrino-helpers (0.13.3.2)
|
110
138
|
i18n (~> 0.6, >= 0.6.7)
|
111
|
-
padrino-support (= 0.
|
112
|
-
tilt (
|
113
|
-
padrino-support (0.
|
139
|
+
padrino-support (= 0.13.3.2)
|
140
|
+
tilt (>= 1.4.1, < 3)
|
141
|
+
padrino-support (0.13.3.2)
|
114
142
|
activesupport (>= 3.1)
|
115
|
-
|
143
|
+
parallel (1.9.0)
|
144
|
+
pry (0.10.4)
|
116
145
|
coderay (~> 1.1.0)
|
117
146
|
method_source (~> 0.8.1)
|
118
147
|
slop (~> 3.4)
|
119
148
|
rack (1.6.4)
|
120
149
|
rack-test (0.6.3)
|
121
150
|
rack (>= 1.0)
|
122
|
-
rake (
|
123
|
-
rb-fsevent (0.9.
|
124
|
-
rb-inotify (0.9.
|
151
|
+
rake (11.3.0)
|
152
|
+
rb-fsevent (0.9.7)
|
153
|
+
rb-inotify (0.9.7)
|
125
154
|
ffi (>= 0.5.0)
|
126
|
-
rdoc (4.2.
|
155
|
+
rdoc (4.2.2)
|
127
156
|
json (~> 1.4)
|
128
|
-
rspec (3.
|
129
|
-
rspec-core (~> 3.
|
130
|
-
rspec-expectations (~> 3.
|
131
|
-
rspec-mocks (~> 3.
|
132
|
-
rspec-core (3.
|
133
|
-
rspec-support (~> 3.
|
134
|
-
rspec-expectations (3.
|
157
|
+
rspec (3.5.0)
|
158
|
+
rspec-core (~> 3.5.0)
|
159
|
+
rspec-expectations (~> 3.5.0)
|
160
|
+
rspec-mocks (~> 3.5.0)
|
161
|
+
rspec-core (3.5.4)
|
162
|
+
rspec-support (~> 3.5.0)
|
163
|
+
rspec-expectations (3.5.0)
|
135
164
|
diff-lcs (>= 1.2.0, < 2.0)
|
136
|
-
rspec-support (~> 3.
|
137
|
-
rspec-html-matchers (0.
|
165
|
+
rspec-support (~> 3.5.0)
|
166
|
+
rspec-html-matchers (0.8.1)
|
138
167
|
nokogiri (~> 1)
|
139
|
-
rspec (
|
140
|
-
rspec-mocks (3.
|
168
|
+
rspec (>= 3.0.0.a, < 4)
|
169
|
+
rspec-mocks (3.5.0)
|
141
170
|
diff-lcs (>= 1.2.0, < 2.0)
|
142
|
-
rspec-support (~> 3.
|
143
|
-
rspec-support (3.
|
171
|
+
rspec-support (~> 3.5.0)
|
172
|
+
rspec-support (3.5.0)
|
173
|
+
sass (3.4.22)
|
174
|
+
servolux (0.12.0)
|
144
175
|
shellany (0.0.1)
|
145
176
|
slop (3.6.0)
|
146
177
|
thor (0.19.1)
|
@@ -148,17 +179,19 @@ GEM
|
|
148
179
|
tilt (1.4.1)
|
149
180
|
tzinfo (1.2.2)
|
150
181
|
thread_safe (~> 0.1)
|
151
|
-
|
182
|
+
uglifier (3.0.2)
|
183
|
+
execjs (>= 0.3.0, < 3)
|
152
184
|
unicode (0.4.4.2)
|
153
185
|
xpath (2.0.0)
|
154
186
|
nokogiri (~> 1.3)
|
155
|
-
yard (0.
|
187
|
+
yard (0.9.5)
|
156
188
|
|
157
189
|
PLATFORMS
|
158
190
|
ruby
|
159
191
|
|
160
192
|
DEPENDENCIES
|
161
193
|
aruba
|
194
|
+
capybara
|
162
195
|
cucumber
|
163
196
|
guard
|
164
197
|
guard-rspec
|
@@ -169,3 +202,6 @@ DEPENDENCIES
|
|
169
202
|
rspec
|
170
203
|
rspec-html-matchers
|
171
204
|
yard
|
205
|
+
|
206
|
+
BUNDLED WITH
|
207
|
+
1.11.2
|
data/lib/middleman-citation.rb
CHANGED
@@ -46,19 +46,6 @@ module Middleman
|
|
46
46
|
entries.sort { |x, y| y.year.to_i <=> x.year.to_i }.map(&:key)
|
47
47
|
end
|
48
48
|
|
49
|
-
def citation_entry(key)
|
50
|
-
bibtex[key].convert_latex.to_citeproc
|
51
|
-
end
|
52
|
-
|
53
|
-
def citation_formatted(entry)
|
54
|
-
CiteProc.process(entry, :style => cite_style, :format => cite_format)
|
55
|
-
end
|
56
|
-
|
57
|
-
def citation(key)
|
58
|
-
entry = citation_entry(key)
|
59
|
-
citation_formatted(entry)
|
60
|
-
end
|
61
|
-
|
62
49
|
private
|
63
50
|
|
64
51
|
def search_by_author(entries, 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", ["~>
|
27
|
+
spec.add_runtime_dependency "middleman-core", ["~> 4"]
|
28
28
|
end
|
data/spec/cite_spec.rb
CHANGED
@@ -4,7 +4,7 @@ RSpec.describe Citations, "citations" do
|
|
4
4
|
require 'bibtex'
|
5
5
|
bib = BibTeX.open('fixtures/test.bib', :filter => :latex)
|
6
6
|
|
7
|
-
turkay_chi = "Turkay, Cagatay, J. Parulek, N. Reuter, and Helwig Hauser. 2011. “Interactive Visual Analysis of Temporal Cluster Structures.” Computer Graphics Forum 30 (3). Wiley-Blackwell: 711–20. doi:10.1111/j.1467-8659.2011.01920.x.
|
7
|
+
turkay_chi = "Turkay, Cagatay, J. Parulek, N. Reuter, and Helwig Hauser. 2011. “Interactive Visual Analysis of Temporal Cluster Structures.” Computer Graphics Forum 30 (3). Wiley-Blackwell: 711–20. doi:10.1111/j.1467-8659.2011.01920.x."
|
8
8
|
turkay_ieee = "C. Turkay, J. Parulek, N. Reuter, and H. Hauser, “Interactive Visual Analysis of Temporal Cluster Structures,” Computer Graphics Forum, vol. 30, no. 3, pp. 711–720, Jun. 2011."
|
9
9
|
tw_chi = "Torsney-Weir, Thomas, Ahmed Saad, Torsten Möller, Britta Weber, Hans-Christian Hege, Jean-Marc Verbavatz, and Steven Bergner. 2011. “Tuner: Principled Parameter Finding for Image Segmentation Algorithms Using Visual Response Surface Exploration.” IEEE Transactions on Visualization and Computer Graphics 17 (12): 1892–1901."
|
10
10
|
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-citation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
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: 2016-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: citeproc-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: csl-styles
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: middleman-core
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4'
|
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: '
|
68
|
+
version: '4'
|
69
69
|
description: |2
|
70
70
|
A middleman extension that gives helpers for
|
71
71
|
creating citations using citeproc
|
@@ -75,9 +75,9 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
- .gitignore
|
79
|
-
- .rspec
|
80
|
-
- .yardopts
|
78
|
+
- ".gitignore"
|
79
|
+
- ".rspec"
|
80
|
+
- ".yardopts"
|
81
81
|
- Gemfile
|
82
82
|
- Gemfile.lock
|
83
83
|
- Guardfile
|
@@ -103,17 +103,17 @@ require_paths:
|
|
103
103
|
- lib
|
104
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.4.5
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Middleman extension for citeproc
|
@@ -121,4 +121,3 @@ test_files:
|
|
121
121
|
- features/support/env.rb
|
122
122
|
- spec/cite_spec.rb
|
123
123
|
- spec/spec_helper.rb
|
124
|
-
has_rdoc:
|