bibmarkdown 1.3.2 → 2.0.0

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
- SHA1:
3
- metadata.gz: 0df4e970764535570a81952e27d70a56a0cff35a
4
- data.tar.gz: 5df6756c9a11ec691f56113b10814960cd84130a
2
+ SHA256:
3
+ metadata.gz: a6dd438e73b47846185f43a36f5fd94c49342b489bf20ec559576a2114e8eb5c
4
+ data.tar.gz: 9338be8c1238100be406a61388bbe9850e33d13db28698a2890b60d77377cd5c
5
5
  SHA512:
6
- metadata.gz: 50ac60f3e737b351673e7be05bf9a80c165ef6d42f606813a31c121b2ed96441cedf50303e3d6f204c475cc5821d0409cfb58d507e7ae23fad86bb8721473157
7
- data.tar.gz: 358324c7232f64d0b10f97ec31712d90e51f5772dcec151a153a134d3aa7a6cacb2be991c7a9d477eba733b4333451296b7bfdc422a6145685c1cff0ec993150
6
+ metadata.gz: cce485841eff08454d79b30b4159e05a11c8ecb7f982228feeaa39588e12cde58dc0313b5f73268ab8d50ec12f3ceb6dcfe7f190293d1c8fd99a4456d4e9c025
7
+ data.tar.gz: 3348b5ea3362d7b18b9ff294f7bf695cddd3e93a6338c9ff256dea5e69d7c09daa13e94da48c275000a375f87461104e138cff65c4aab25fdf23e1c862f7e33d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 2.0.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bibmarkdown 1.3.2 ruby lib
5
+ # stub: bibmarkdown 2.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bibmarkdown".freeze
9
- s.version = "1.3.2"
9
+ s.version = "2.0.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Ruben Verborgh".freeze]
14
- s.date = "2018-03-06"
14
+ s.date = "2018-05-22"
15
15
  s.email = "ruben@verborgh.org".freeze
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.md",
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  ]
30
30
  s.homepage = "http://github.com/RubenVerborgh/bibmarkdown".freeze
31
31
  s.licenses = ["MIT".freeze]
32
- s.rubygems_version = "2.6.11".freeze
32
+ s.rubygems_version = "2.7.3".freeze
33
33
  s.summary = "Markdown with BibTeX citations.".freeze
34
34
 
35
35
  if s.respond_to? :specification_version then
@@ -20,7 +20,7 @@ module BibMarkdown
20
20
  # Create the references
21
21
  refs = keys.strip.split(/\s*,\s*/).map {|key| create_reference key }
22
22
  raise "Missing reference key in #{match}" if refs.empty?
23
- reflinks = refs.map{|r| r[:link]}.join ''
23
+ reflinks = create_element :span, "\\[" + (refs.map{|r| r[:link]}.join ", ") + "\\]", class: 'references'
24
24
 
25
25
  # If the anchor text is empty, output reference links
26
26
  if text.empty?
@@ -62,7 +62,7 @@ module BibMarkdown
62
62
 
63
63
  # Assign a reference number and create a link to the reference
64
64
  number = @references.length + 1
65
- link = create_element :a, "\\[#{number}\\]", href: "#ref-#{number}", class: 'reference'
65
+ link = create_element :a, "#{number}", href: "#ref-#{number}"
66
66
 
67
67
  @references[key] = { id: reference_id(key), number: number, url: url, link: link }
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibmarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Verborgh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citeproc-ruby
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.6.11
105
+ rubygems_version: 2.7.3
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Markdown with BibTeX citations.