uuid4 1.3.2 → 1.3.3

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
- SHA1:
3
- metadata.gz: 2838b2df67b09083a960a562e13dc708e63e75b3
4
- data.tar.gz: 28c816a1b22e1435c0e2ae2b40db018ff8856a6f
2
+ SHA256:
3
+ metadata.gz: 67c1d40498cf9ad1eb42e51596108fadfe39f1cc10d6f3906b477bdea073430b
4
+ data.tar.gz: ec5ecb622d19833be4b4f493a7cf717faa4f93cab583992c57cabdaccc5d4cbe
5
5
  SHA512:
6
- metadata.gz: 6e2d1628b517640f89bff915afcea1dce3439f12b0bea06bbf9a38dcaa3a9720e39039bd828e7c39a92706510a29c33a4f69271f0ab6a351144c05a8610897b4
7
- data.tar.gz: 56b01974ab4875542cce9f17f735c5b82e598d8f1af37f058bed8db172214fee657c2b272b2c37a4cb164f034047e2b6e9a1fd14aac03170f08d01ca5b7e3147
6
+ metadata.gz: '0946bdd018d6f36636f3a6930118423a02f54f028f98d61f47eadcd80171f87ee217045a16b842403177890117ee1adb6d83ccf593c083f7abfeafb765be06da'
7
+ data.tar.gz: 66f5b241a77682810421be6e70fa280d4fa2b564d5d201da387a4c895d156e57e4578e346a7a8a0cbb7bc7c4065e08582ec417f5fa3619984e511cbf31184708
@@ -1,12 +1,8 @@
1
- sudo: false
1
+ dist: xenial
2
2
  language: ruby
3
3
  rvm:
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
4
+ - 2.6.3
5
+ - 2.5.5
6
+ - 2.4.6
7
+ - 2.3.8
8
+ - jruby-9.2.7.0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.3
4
+
5
+ * Fix error message on type errors (#4)
6
+
3
7
  ## 1.3.2
4
8
 
5
9
  * Fix issue when parsing UUIDs (5e47b00)
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ruby RUBY_VERSION
4
-
5
3
  # Specify your gem's dependencies in uuid4.gemspec
6
4
  gemspec
7
5
 
8
6
  gem 'activesupport'
7
+ gem 'rake'
8
+ gem 'rspec', '~> 3.0'
@@ -93,8 +93,8 @@ class UUID4
93
93
  def new(value = nil)
94
94
  if value.nil?
95
95
  super(SecureRandom.uuid.tr('-', '').hex)
96
- elsif (value = try_convert(value))
97
- value
96
+ elsif (uuid = try_convert(value))
97
+ uuid
98
98
  else
99
99
  raise TypeError.new "Invalid UUID: #{value.inspect}"
100
100
  end
@@ -2,7 +2,7 @@ class UUID4
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
 
@@ -20,7 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency 'base62-rb', '~> 0.3.0'
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.12'
24
- spec.add_development_dependency 'rake', '~> 10.0'
25
- spec.add_development_dependency 'rspec', '~> 3.0'
23
+ spec.add_development_dependency 'bundler'
26
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid4
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2019-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base62-rb
@@ -28,44 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.12'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.12'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: '10.0'
33
+ version: '0'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
38
+ - - ">="
67
39
  - !ruby/object:Gem::Version
68
- version: '3.0'
40
+ version: '0'
69
41
  description:
70
42
  email:
71
43
  - jg@altimos.de
@@ -109,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
81
  - !ruby/object:Gem::Version
110
82
  version: '0'
111
83
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.6.6
84
+ rubygems_version: 3.0.3
114
85
  signing_key:
115
86
  specification_version: 4
116
87
  summary: A UUIDv4 support library