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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20a2ab14fd3b94de5314f42db4bd136c846439ec469536c1f81eff599d47773f
4
- data.tar.gz: b6a2ddded0041d6ae7ca23f93de114adad73398a277905f6e0b4c9699c2c3d90
3
+ metadata.gz: 501c50d7e08b9d1b6de91adb458edc27aea34f20dfe41c976243aa0d165ca659
4
+ data.tar.gz: e12e11c9b066722f11360eec74fa553165b1f46291632ccf2bc3864a74f322c8
5
5
  SHA512:
6
- metadata.gz: 54b1fd589e6d2c789857b0a62587998b5545a4fb81f22ef3b31e85c688f4320ade9c883414858fa12cf7b57352970ddf8135792964bdd626e07332ed2cfdf955
7
- data.tar.gz: 7b7252e7a1a0687f0921e8d3b3570f9d7977a170ab2942c4646f0781344840d32520f251aa54fb42bd36bdd84f3d32cd4ddcd6a41895f8ec64d0fc0d03fadef1
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-2014 Sylvester Keil. All rights reserved.
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
  [![Build Status](https://secure.travis-ci.org/inukshuk/citeproc.svg)](http://travis-ci.org/inukshuk/citeproc)
10
10
  [![Coverage Status](https://coveralls.io/repos/inukshuk/citeproc/badge.svg?branch=master)](https://coveralls.io/r/inukshuk/citeproc?branch=master)
11
- [![Dependency Status](https://gemnasium.com/inukshuk/citeproc.svg)](https://gemnasium.com/inukshuk/citeproc)
12
11
 
13
12
  [![Build Status](https://secure.travis-ci.org/inukshuk/citeproc-ruby.svg)](http://travis-ci.org/inukshuk/citeproc-ruby)
14
13
  [![Coverage Status](https://coveralls.io/repos/inukshuk/citeproc-ruby/badge.svg?branch=master)](https://coveralls.io/r/inukshuk/citeproc-ruby?branch=master)
15
- [![Dependency Status](https://gemnasium.com/inukshuk/citeproc-ruby.svg)](https://gemnasium.com/inukshuk/citeproc-ruby)
16
14
 
17
15
  [![Build Status](https://secure.travis-ci.org/inukshuk/csl-ruby.svg)](http://travis-ci.org/inukshuk/csl-ruby)
18
16
  [![Coverage Status](https://coveralls.io/repos/inukshuk/csl-ruby/badge.svg?branch=master)](https://coveralls.io/r/inukshuk/csl-ruby?branch=master)
19
- [![Dependency Status](https://gemnasium.com/inukshuk/csl-ruby.svg)](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-2016 Sylvester Keil. All rights reserved.
135
+ Copyright 2009-2020 Sylvester Keil. All rights reserved.
139
136
 
140
137
  Copyright 2012 President and Fellows of Harvard College.
141
138
 
@@ -212,9 +212,9 @@ module CiteProc
212
212
  join
213
213
  end
214
214
 
215
- def each
215
+ def each(&block)
216
216
  if block_given?
217
- references.each(&Proc.new)
217
+ references.each(&block)
218
218
  self
219
219
  else
220
220
  to_enum
@@ -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(&Proc.new)
175
+ sorted_items.each(&block)
176
176
  else
177
- items.each(&Proc.new)
177
+ items.each(&block)
178
178
  end
179
179
 
180
180
  self
@@ -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, &Proc.new) : 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.
@@ -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(&Proc.new)
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(&Proc.new)
193
+ attributes.each_value(&block)
194
194
  self
195
195
  else
196
196
  enum_for :each_value
@@ -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(&Proc.new)
694
+ names.each(&block)
695
695
  self
696
696
  else
697
697
  to_enum
@@ -1,3 +1,3 @@
1
1
  module CiteProc
2
- VERSION = '1.0.9'.freeze
2
+ VERSION = '1.0.10'.freeze
3
3
  end
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.9
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: 2018-03-01 00:00:00.000000000 Z
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
- rubyforge_project:
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.