uuid4 1.3.0 → 1.3.1

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
  SHA1:
3
- metadata.gz: ba42502b36d87ad581c49a75fecd0986f5e7300d
4
- data.tar.gz: c1aa10e23bdeac041883dc68ffc42dfeaf6189b0
3
+ metadata.gz: 11efe2727ba7b8d375004ac8aafcda55dda031ee
4
+ data.tar.gz: 9bbf974ea4e6233ef8325c8eb50cd563b2010691
5
5
  SHA512:
6
- metadata.gz: 894d8c3b4820762cdb81cb6c58ef0ae0a3a22333351d3e16da416a4d64b00b39a92ea74f586b311559d1c2ce46cd9a77a80d42bbf759b082e01b8119dc443dc0
7
- data.tar.gz: 45a20cbd99f390ce85d30ee49d2eba22d773a84f49f67f72923a9f67a359ff5c3dde1a32e25af54cedccbe7916c671ee697b44bb88647a7b1607d72f6f04b59f
6
+ metadata.gz: e9bd8fe35a32c411ba5a6fcfa2eafdd714d406136adf6972455aa2017ed185591f7b02af289bc2526bbf4febd91c183c222588e313b0cad49e19603e444d8092
7
+ data.tar.gz: 64fcf0bf6bb042a8d1986baa2b36d679cb730c4dc81b22dc0cd2393f41f849f22bc2924ed802a467b177be947f45795ef8f0e9c28fff8a3d784cecaad482e0fa
@@ -1,5 +1,12 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
4
+ - 2.3.1
5
+ - 2.2.5
6
+ - 2.1.10
7
+ - jruby-9.1.2.0
8
+ before_install:
9
+ - gem update --system
10
+ - gem install bundler --pre
11
+ - bundler --version
12
+ - bundle --version
@@ -1,9 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.1
4
+
5
+ * Fix incompatibility with Rubies <2.2 introduced in #1
6
+
3
7
  ## 1.3.0
4
8
 
5
9
  * Add `UUID#hash` and `UUID#eql?` for using UUIDs e.g. as hash keys
6
- * Add `UUID.try_convert` returning a UUID or `nil`.
10
+ * Add `UUID.try_convert` returning a UUID or `nil`
7
11
  * Add `UUID.valid?` to validate objects as UUIDs (#1)
8
12
 
9
13
  ## 1.2.1
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ ruby RUBY_VERSION
4
+
3
5
  # Specify your gem's dependencies in uuid4.gemspec
4
6
  gemspec
5
7
 
@@ -125,7 +125,7 @@ class UUID4
125
125
  # Return the result of the first formatter that can decode this value
126
126
  FORMATTERS.lazy.map { |formatter|
127
127
  formatter.decode(value) if formatter.respond_to?(:decode)
128
- }.find(&:itself)
128
+ }.find {|value| !value.nil? }
129
129
  end
130
130
  end
131
131
 
@@ -2,7 +2,7 @@ class UUID4
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid4
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen