anystyle 1.3.9 → 1.3.10

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: 1656aafb3fd578939cd556f7fac495d1b4c7790a0dc815df9410d0fb194ba93b
4
- data.tar.gz: 60721caf8f3a81941f203012a1e5d8730dab701f1dbbb4752af1be6a6081b70f
3
+ metadata.gz: 343cf64d257daef49fc22589107aa0840861c5b97598578e493eef3b13fbbe7f
4
+ data.tar.gz: 479618ea4b41d8e63e54a6978cb1287e86b47933e749883437a11d779306591b
5
5
  SHA512:
6
- metadata.gz: 4b37d2f088b145172a37eceff8d2f724db00bcd62a528fc2ae7360d79c611e6809f3d2b51ee522ca5d698b6ab78a170187ebaa7de07757cbef3e3680a5fe5f19
7
- data.tar.gz: 39a8ea7d54a70496245f08a2565ea0be3d10a98e04c3bd7ea955dffdbf5c47f91c49ebf5059580765b31290808922fa374f7edb274b11ac5586ec8b5d93b1c73
6
+ metadata.gz: fec1d2fb9ec504aadc7900fb717b1b90e9e23519a241e1c47c187ca963fb69a9b57f054ec1ab73d6f5b43d89a4816d66a3b39302a105e2d51b069914aede1646
7
+ data.tar.gz: e2b9733a74bdd8a09543ab9e847b996571d724e4f0ac8e983faf651c711e3c13e7b9fa8b50684a6afa5af626f29d55820db9f868322bc44166c36806cddeb2e7
data/README.md CHANGED
@@ -151,10 +151,20 @@ You can check out a copy of the latest code using Git:
151
151
  $ git clone https://github.com/inukshuk/anystyle.git
152
152
 
153
153
  If you've found a bug or have a question, please open an issue on the
154
- [AnyStyle issue tracker](http://github.com/inukshuk/anystyle/issues).
154
+ [AnyStyle issue tracker](https://github.com/inukshuk/anystyle/issues).
155
155
  Or, for extra credit, clone the AnyStyle repository, write a failing
156
156
  example, fix the bug and submit a pull request.
157
157
 
158
+ Credits
159
+ -------
160
+ AnyStyle is a volunteer effort and we encourage you
161
+ to join us! Over the years our main contributors have been:
162
+
163
+ * [Alex Fenton](https://github.com/a-fent)
164
+ * [Sylvester Keil](https://github.com/inukshuk)
165
+ * [Johannes Krtek](https://github.com/flachware)
166
+ * [Ilja Srna](https://github.com/namyra)
167
+
158
168
  License
159
169
  -------
160
170
  Copyright 2011-2020 Sylvester Keil. All rights reserved.
@@ -19,7 +19,9 @@ module AnyStyle
19
19
  ensure
20
20
  if empty?
21
21
  populate!
22
- ::Marshal.dump(db, File.open(options[:path], 'wb'))
22
+ if File.writable?(options[:path])
23
+ ::Marshal.dump(db, File.open(options[:path], 'wb'))
24
+ end
23
25
  end
24
26
  end
25
27
  end
@@ -4,7 +4,7 @@ module AnyStyle
4
4
  attr_reader :idx, :seq
5
5
 
6
6
  def initialize(idx: :idx, seq: :seq, **opts)
7
- super(opts)
7
+ super(**opts)
8
8
  @idx, @seq = idx, seq
9
9
  end
10
10
 
@@ -87,12 +87,12 @@ module AnyStyle
87
87
  expand Wapiti::Dataset.new([input])
88
88
  when String
89
89
  if !input.tainted? && input.length < 1024 && File.exists?(input)
90
- expand Wapiti::Dataset.open(input, opts)
90
+ expand Wapiti::Dataset.open(input, **opts)
91
91
  else
92
- expand Wapiti::Dataset.parse(input, opts)
92
+ expand Wapiti::Dataset.parse(input, **opts)
93
93
  end
94
94
  else
95
- expand Wapiti::Dataset.parse(input, opts)
95
+ expand Wapiti::Dataset.parse(input, **opts)
96
96
  end
97
97
  end
98
98
  end
@@ -207,7 +207,7 @@ module AnyStyle
207
207
  opts[:separator] ||= options[:separator]
208
208
  opts[:delimiter] ||= options[:delimiter]
209
209
  input = input.join("\n") if input.is_a?(Array) && input[0].is_a?(String)
210
- super(input, opts)
210
+ super(input, **opts)
211
211
  end
212
212
  end
213
213
  end
@@ -1,3 +1,3 @@
1
1
  module AnyStyle
2
- VERSION = '1.3.9'.freeze
2
+ VERSION = '1.3.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anystyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.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: 2019-12-20 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: bibtex-ruby
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.0.6
191
+ rubygems_version: 3.1.2
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Smart and fast bibliography parser.