urn 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/urn.rb +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8943094c2abdbd829f57606ac2f651ac1f16944a
4
- data.tar.gz: 2e7adb38f071f23aa5325509ed77c87dc67c2abd
3
+ metadata.gz: c1f64f26329dc83af54f880d096d82ea51d82d63
4
+ data.tar.gz: 7b303594caf4ca5614175b579470689d9dcc4854
5
5
  SHA512:
6
- metadata.gz: f19abc0d935c0e06f933dac8e3aba375c2f841072cdde554539216d2d8b544102934f5df025dcc7276fb5fb389ba5f50cd1310212227ada8ed0ea33c0ae7b729
7
- data.tar.gz: 9a829c8512031bee7061ff5b7a521c66de6026dfa866dd43ce88937aaed832e00d6e7c14b385a262d285ff4d00971b7f89832cba56be1d772060d8e1f90da24e
6
+ metadata.gz: 648c36a28d4828908af24695d39a28d74f92c56a5caafc0b70a6cc268d6caf1079094014cda67dcbaba3e6a855a021dbada5d42bb51aa526dcd061a2017dd3b3
7
+ data.tar.gz: d8808e3775387cfff3f45c6ad36197c22f32bc59e74dc4819a2ef4fc23286c697c0f2eb8086dae9ac33f1d5f680efa20e612a8c845e58cb76b1924f7a0caa44b
@@ -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
+ ## [2.0.1] - 2016-03-24
6
+ ### Fixed
7
+ - `URN()` shortcut works on classes without `Object` as ancestor.
8
+
5
9
  ## [2.0.0] - 2016-03-22
6
10
  ### Changed
7
11
  - Only return `URN` instances for valid `URN`s at creation. Raise `URN::InvalidURNError` otherwise.
@@ -64,6 +68,7 @@ URN(URN('urn:foo:bar'))
64
68
  ### Added
65
69
  - First version with basic implementation.
66
70
 
71
+ [2.0.1]: https://github.com/altmetric/urn/releases/tag/v2.0.1
67
72
  [2.0.0]: https://github.com/altmetric/urn/releases/tag/v2.0.0
68
73
  [1.0.0]: https://github.com/altmetric/urn/releases/tag/v1.0.0
69
74
  [0.1.3]: https://github.com/altmetric/urn/releases/tag/v0.1.3
data/lib/urn.rb CHANGED
@@ -1,5 +1,7 @@
1
- def URN(urn)
2
- URN.new(urn)
1
+ module Kernel
2
+ def URN(urn)
3
+ URN.new(urn)
4
+ end
3
5
  end
4
6
 
5
7
  class URN
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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ana Castro
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-03-22 00:00:00.000000000 Z
13
+ date: 2016-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler