cskit 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: 54b61172da1e6b1de7a0ce4965d4719291eb8d08
4
- data.tar.gz: 9d32a03328acfa3c7b6210e1f3f25ce7401f3760
3
+ metadata.gz: d3ab45f7e14fce23d015c99e0803c25134914aca
4
+ data.tar.gz: d502b886c3249ab8f658aaf063522fb6fea3141a
5
5
  SHA512:
6
- metadata.gz: 85b1a4e42f3d0582e022195c9c9e02efea87eb2115a327387c03ee3f8fff85dadd077980a5c4156665844494c7566fb832df48b57c41088224669f2f7087a7eb
7
- data.tar.gz: 4463be21b3ccd6d5793843a3e0874aae3169747d6a3b8d3e17d0975f3d8016a2e0ade6d036461223f57de41aa80038392d8551ade516efca56b81c8399d61ab2
6
+ metadata.gz: 4d5871ae93e6a57bb2eb925048e5c93bcaf8fafe6f5c5db169fd1600bd17cfa1f8c0f738f4113c87516055625b18c789ea674bd2ec6fc3e391534e0dcd048c92
7
+ data.tar.gz: c34db65a0bffe46df8779291fe1beefcbcc0287ba7936677a34d72b4cc9de07353b6cb3ffe3a1582a3e94fce92264af255f90e4b98d6bb714ef9fae0ef797150
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.2.1
2
+
3
+ * Avoid adding an ending line number in Science and Health citations when the start
4
+ and end line are the same (i.e. they reference a paragraph).
5
+
1
6
  == 1.2.0
2
7
 
3
8
  * Fix several citation parsing issues.
@@ -21,10 +21,10 @@ module CSKit
21
21
 
22
22
  Line = Struct.new(:start, :finish, :starter, :terminator) do
23
23
  def to_s
24
- str = if finish
25
- "#{start}-#{finish}"
26
- else
24
+ str = if start == finish
27
25
  start.to_s
26
+ else
27
+ "#{start}-#{finish}"
28
28
  end
29
29
 
30
30
  str << ' (only)' if only?
data/lib/cskit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module CSKit
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cskit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-18 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json