urn 0.1.1 → 0.1.2

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/lib/urn.rb +2 -1
  4. data/urn.gemspec +1 -1
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4108876e6fd28b44eea1701cecfd39313abf2bcd
4
- data.tar.gz: fa3309e729a67c9d665f4ac7a110231e6fb4dec8
3
+ metadata.gz: 1348466631313738939f294d838e6491c1e61ab5
4
+ data.tar.gz: 1f0c592ffa2be75c74c2b3c90117b8ddf577691b
5
5
  SHA512:
6
- metadata.gz: 47c0ee75942fa43c298fd15959e2724d9c77f67f1c6de9f0fc7b7b814aa08bb6f6f9a0336f1501c939e56bc0665d6626077f47863b7e6d45df6ac0f5ad529697
7
- data.tar.gz: d146f326c7ab2c436929423ca869afecef2a3453fe20c7df1cf48bdc4cf937c503c8dbada616e0798730bd352a14f94d5c8f2b7b7c11e5fdfe8d3bdbdc503ad2
6
+ metadata.gz: 79a1f633b18ecb6c74bcd8ada65ca11d1725c30e925b1bbaaf406e0cd2b13fef84898207cda04122554cbb9c5c4a2a07f1d4f70baebfca5cf9d7a15b289eab98
7
+ data.tar.gz: 07a824ef19612a4fd1c6bb603d955c9c303728427149ad280f97dbddb9b369be847dd806cb04e3ec9c48fede5422ac3a7c1fa7ea643a7a8a67e3e95ca5c11a22
@@ -0,0 +1,14 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file. This
3
+ project adheres to [Semantic Versioning](http://semver.org/).
4
+
5
+ ## [0.1.1] git - 2016-03-02
6
+ ### Changed
7
+ - Stricter rules to validate a URN: it does not accept `urn` string as valid namespace identifier.
8
+
9
+ ## [0.1.0] - 2016-03-01
10
+ ### Added
11
+ - First version with basic implementation.
12
+
13
+ [0.1.1]: https://github.com/altmetric/urn/releases/tag/v0.1.1
14
+ [0.1.0]: https://github.com/altmetric/urn/releases/tag/v0.1.0
data/lib/urn.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  class URN
2
- REGEX = /^urn:(?!urn:)[a-z0-9\-]{1,31}:[\S]+$/i
2
+ PATTERN = 'urn:(?!urn:)[a-z0-9\-]{1,31}:[\S]+'.freeze
3
+ REGEX = /^#{PATTERN}$/i
3
4
 
4
5
  attr_reader :urn
5
6
  private :urn
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'urn'
5
- spec.version = '0.1.1'
5
+ spec.version = '0.1.2'
6
6
  spec.authors = ['Ana Castro', 'Jonathan Hernandez']
7
7
  spec.email = ['support@altmetric.com']
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ana Castro
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - Gemfile
67
68
  - LICENSE.txt
68
69
  - README.md