citeproc-ruby 1.1.10 → 1.1.11

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
  SHA256:
3
- metadata.gz: f4caf473d7f66d78b7f5d080d6abf0a512e0b38c89679a7efdc3d9db558ab027
4
- data.tar.gz: da2e7b9c0ee933b419ed0b518cbef0565189ce01130485a4668f13f2dcc754b2
3
+ metadata.gz: fc9a3e8d561ec467452e803f9781681b1f8dc8256d5b3988de6c2241731e4237
4
+ data.tar.gz: 85c1299b18260716902c6fac5becac9187640d0636bc854d731b615256618d3a
5
5
  SHA512:
6
- metadata.gz: 6ee9e4d2c8d815e6e27238a2a19eb4b44d1eb473a9180bc07ae1f3bb2b1c295a832aa99063d2cf1a70ce62ae4e055a02082ab0876f9972fb4282a8cc1866253e
7
- data.tar.gz: 4461f5e8499dc70cf12fced3843bfd7e4f789de279ceffbfc069b0fcd046850e0ded99962424c61ae33a6036db18755d4a06f5a0f38df984b0d6eed0bc598c20
6
+ metadata.gz: d9949d9d910c903a47151312c4ff25ee4a6d7e4f84ec39dbe64bd488a94930851461dc6a099a398dbe8bc377c17073644c02752a1b91fc23409f4f189b3a48c5
7
+ data.tar.gz: b855d066b7b75b9f6b729d789bd598e3fd09ab179b483a1847b7ba34b456269fc294629f4b0658f73a78bcda4372448a0c025f344b7b2e351b1394ac8af08dd6
data/BSDL CHANGED
@@ -1,7 +1,7 @@
1
1
  CiteProc-Ruby. A Ruby CSL cite processor.
2
2
 
3
3
  Copyright 2012 President and Fellows of Harvard College.
4
- Copyright 2009-2016 Sylvester Keil. All rights reserved.
4
+ Copyright 2009-2020 Sylvester Keil. All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
7
7
  modification, are permitted provided that the following conditions are met:
data/README.md CHANGED
@@ -8,7 +8,6 @@ cite processor, please refer to the documentation of the
8
8
 
9
9
  [![Build Status](https://secure.travis-ci.org/inukshuk/citeproc-ruby.png)](http://travis-ci.org/inukshuk/citeproc-ruby)
10
10
  [![Coverage Status](https://coveralls.io/repos/github/inukshuk/citeproc-ruby/badge.svg?branch=master)](https://coveralls.io/github/inukshuk/citeproc-ruby?branch=master)
11
- [![Dependency Status](https://gemnasium.com/badges/github.com/inukshuk/citeproc-ruby.svg)](https://gemnasium.com/github.com/inukshuk/citeproc-ruby)
12
11
  [![Code Climate](https://codeclimate.com/github/inukshuk/citeproc-ruby/badges/gpa.svg)](https://codeclimate.com/github/inukshuk/citeproc-ruby)
13
12
 
14
13
  Quickstart
@@ -76,6 +75,10 @@ Start rendering you references with any CSL style!
76
75
  # You can also render citations on the fly.
77
76
  cp.render :citation, id: 'knuth', locator: '23'
78
77
  #-> (Knuth, 1968, p. 23)
78
+
79
+ # Pass an array if you want to render multiple citations:
80
+ cp.render :citation, [{ id: 'knuth' }, { id: 'perez' }]
81
+ #-> (Knuth, 1968; Perez, 1989)
79
82
 
80
83
  Documentation
81
84
  -------------
@@ -147,7 +150,7 @@ this project as part of [Google Summer of Code](https://developers.google.com/op
147
150
 
148
151
  Copyright
149
152
  ---------
150
- Copyright 2009-2016 Sylvester Keil. All rights reserved.
153
+ Copyright 2009-2020 Sylvester Keil. All rights reserved.
151
154
 
152
155
  Copyright 2012 President and Fellows of Harvard College.
153
156
 
@@ -60,6 +60,7 @@ module CiteProc
60
60
 
61
61
  def format_page_range!(pages, format)
62
62
  return if pages.nil?
63
+ return pages if pages.empty?
63
64
 
64
65
  dash = translate('page-range-delimiter') || '–' # en-dash
65
66
 
@@ -1,5 +1,5 @@
1
1
  module CiteProc
2
2
  module Ruby
3
- VERSION = '1.1.10'
3
+ VERSION = '1.1.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citeproc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citeproc
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.7.4
106
+ rubygems_version: 3.1.2
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: A Citation Style Language (CSL) cite processor