citeproc 1.0.9 → 1.0.10
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/BSDL +1 -1
- data/README.md +1 -4
- data/lib/citeproc/bibliography.rb +2 -2
- data/lib/citeproc/citation_data.rb +3 -3
- data/lib/citeproc/engine.rb +2 -2
- data/lib/citeproc/item.rb +4 -4
- data/lib/citeproc/names.rb +2 -2
- data/lib/citeproc/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 501c50d7e08b9d1b6de91adb458edc27aea34f20dfe41c976243aa0d165ca659
|
4
|
+
data.tar.gz: e12e11c9b066722f11360eec74fa553165b1f46291632ccf2bc3864a74f322c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4b4f9477bc001296432fc09be50dce66340e098def19ef18291e2c52552239d82d59ea30de4d702950b5aebf20a575e3825d73015037b0d809be1755e8549b0
|
7
|
+
data.tar.gz: 14dace9721b08114419519b3457cec44adf4c36c30c3bfc601716cba26c873ed7321ad21dbe251f0ec54f7d19c501cd8db0ffb98a5bce383f611ef75746fda7d
|
data/BSDL
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Copyright 2012 President and Fellows of Harvard College.
|
2
|
-
Copyright 2009-
|
2
|
+
Copyright 2009-2020 Sylvester Keil. All rights reserved.
|
3
3
|
|
4
4
|
Redistribution and use in source and binary forms, with or without
|
5
5
|
modification, are permitted provided that the following conditions are met:
|
data/README.md
CHANGED
@@ -8,15 +8,12 @@ in the [citeproc-ruby](https://rubygems/gems/citeproc-ruby) gem.
|
|
8
8
|
|
9
9
|
[](http://travis-ci.org/inukshuk/citeproc)
|
10
10
|
[](https://coveralls.io/r/inukshuk/citeproc?branch=master)
|
11
|
-
[](https://gemnasium.com/inukshuk/citeproc)
|
12
11
|
|
13
12
|
[](http://travis-ci.org/inukshuk/citeproc-ruby)
|
14
13
|
[](https://coveralls.io/r/inukshuk/citeproc-ruby?branch=master)
|
15
|
-
[](https://gemnasium.com/inukshuk/citeproc-ruby)
|
16
14
|
|
17
15
|
[](http://travis-ci.org/inukshuk/csl-ruby)
|
18
16
|
[](https://coveralls.io/r/inukshuk/csl-ruby?branch=master)
|
19
|
-
[](https://gemnasium.com/inukshuk/csl-ruby)
|
20
17
|
|
21
18
|
Quickstart
|
22
19
|
----------
|
@@ -135,7 +132,7 @@ this project as part of [Google Summer of Code](https://developers.google.com/op
|
|
135
132
|
|
136
133
|
Copyright
|
137
134
|
---------
|
138
|
-
Copyright 2009-
|
135
|
+
Copyright 2009-2020 Sylvester Keil. All rights reserved.
|
139
136
|
|
140
137
|
Copyright 2012 President and Fellows of Harvard College.
|
141
138
|
|
@@ -169,12 +169,12 @@ module CiteProc
|
|
169
169
|
|
170
170
|
alias update merge
|
171
171
|
|
172
|
-
def each
|
172
|
+
def each(&block)
|
173
173
|
if block_given?
|
174
174
|
if sorted?
|
175
|
-
sorted_items.each(&
|
175
|
+
sorted_items.each(&block)
|
176
176
|
else
|
177
|
-
items.each(&
|
177
|
+
items.each(&block)
|
178
178
|
end
|
179
179
|
|
180
180
|
self
|
data/lib/citeproc/engine.rb
CHANGED
@@ -35,9 +35,9 @@ module CiteProc
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Loads the engine with the given name and returns the engine class.
|
38
|
-
def detect!(name)
|
38
|
+
def detect!(name, &block)
|
39
39
|
load(name)
|
40
|
-
block_given? ? detect(name, &
|
40
|
+
block_given? ? detect(name, &block) : detect(name)
|
41
41
|
end
|
42
42
|
|
43
43
|
# Returns the best available engine class or nil.
|
data/lib/citeproc/item.rb
CHANGED
@@ -165,9 +165,9 @@ module CiteProc
|
|
165
165
|
# @yieldparam field [Symbol] the field name
|
166
166
|
# @yieldparam value [Variable] the value
|
167
167
|
# @return [self,Enumerator] the item or an enumerator if no block is given
|
168
|
-
def each
|
168
|
+
def each(&block)
|
169
169
|
if block_given?
|
170
|
-
attributes.each_pair(&
|
170
|
+
attributes.each_pair(&block)
|
171
171
|
self
|
172
172
|
else
|
173
173
|
to_enum
|
@@ -188,9 +188,9 @@ module CiteProc
|
|
188
188
|
#
|
189
189
|
# @yieldparam value [Variable] the value
|
190
190
|
# @return [self,Enumerator] the item or an enumerator if no block is given
|
191
|
-
def each_value
|
191
|
+
def each_value(&block)
|
192
192
|
if block_given?
|
193
|
-
attributes.each_value(&
|
193
|
+
attributes.each_value(&block)
|
194
194
|
self
|
195
195
|
else
|
196
196
|
enum_for :each_value
|
data/lib/citeproc/names.rb
CHANGED
@@ -689,9 +689,9 @@ module CiteProc
|
|
689
689
|
#
|
690
690
|
# @yieldparam name [Name] a name in the list
|
691
691
|
# @return [self,Enumerator] self or an enumerator if no block is given
|
692
|
-
def each
|
692
|
+
def each(&block)
|
693
693
|
if block_given?
|
694
|
-
names.each(&
|
694
|
+
names.each(&block)
|
695
695
|
self
|
696
696
|
else
|
697
697
|
to_enum
|
data/lib/citeproc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citeproc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: namae
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.7.4
|
79
|
+
rubygems_version: 3.1.2
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: A cite processor interface.
|