identifiers 0.1.0 → 0.2.0
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/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/identifiers/pubmed_id.rb +3 -1
- data/spec/identifiers/pubmed_id_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfc37db391d8a0cd5bd16a6cc9b16f7e3a5f224f
|
4
|
+
data.tar.gz: 0d31d7feff4d516d95e9ce2fbbb3fdd576c6ac35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1afa5cfa7a7f74b1e742de7e184b2070a4378e62e7feac8f6eef77cc7607165bb4bf6c50c207dbb67cb9736e05c8e8bcae83b6692f148a0d844c0b627036a996
|
7
|
+
data.tar.gz: 413911a758a18ee91ba69337ed799ac9e8d7a7a98db1cce57c3a4baba05786431c9806c77aa5702dea30a6dd25358f36497965df3677e0dfe224ba0ed4dd47c0
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. This
|
3
3
|
project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [0.2.0] - 2016-11-01
|
6
|
+
### Changed
|
7
|
+
- Strip leading 0s from Pubmed IDs. 0 is no longer a valid Pubmed ID.
|
8
|
+
|
5
9
|
## [0.1.0] - 2016-10-21
|
6
10
|
### Added
|
7
11
|
- Initial release
|
data/README.md
CHANGED
@@ -10,4 +10,12 @@ RSpec.describe Identifiers::PubmedId do
|
|
10
10
|
|
11
11
|
expect(described_class.extract(str)).to be_empty
|
12
12
|
end
|
13
|
+
|
14
|
+
it 'strips leading 0s' do
|
15
|
+
expect(described_class.extract("0000010203\n000456000")).to contain_exactly('10203', '456000')
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'does not consider 0 as a valid Pubmed ID' do
|
19
|
+
expect(described_class.extract("00000000")).to be_empty
|
20
|
+
end
|
13
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identifiers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: urn
|