better-uuid 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/better-uuid/class_methods.rb +1 -1
- data/lib/better-uuid/version.rb +1 -1
- data/spec/better-uuid_spec.rb +2 -2
- metadata +54 -72
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7cc1f661d0a046e34fa349793c94e2bf043f9759
|
4
|
+
data.tar.gz: 43fc67dbf72af772b0db9e0d7603064897bda2d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 39a3e953d8a676bb995fbb0d4b6ca240500c47a1c7d72130239b5aaa45e327eb3f07e007f0a5041542b2457bbb4ac75f51ca9b389724af46cf2156c5badc4f4e
|
7
|
+
data.tar.gz: 0a497661bc07da49eb136bdfdfd2869d20bafd7dfba3718222fba7af1fba3b5ff1122f137075a8a41f415d6a057f8f1965dd076b06b04903c8d2ccfa831d172e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -147,7 +147,7 @@ class BetterUUID
|
|
147
147
|
# A simple GUID parser: just ignores unknown characters and convert
|
148
148
|
# hexadecimal dump into 16-octet object.
|
149
149
|
def parse(obj)
|
150
|
-
str = obj.to_s.sub %r/\Aurn:uuid:/, ''
|
150
|
+
str = obj.dup.to_s.sub %r/\Aurn:uuid:/, ''
|
151
151
|
str.gsub! %r/[^0-9A-Fa-f]/, ''
|
152
152
|
raw = str[0..31].lines.to_a.pack 'H*'
|
153
153
|
ret = new raw
|
data/lib/better-uuid/version.rb
CHANGED
data/spec/better-uuid_spec.rb
CHANGED
@@ -136,7 +136,7 @@ describe BetterUUID do
|
|
136
136
|
|
137
137
|
describe '.to_s' do
|
138
138
|
it { s = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
|
139
|
-
u = BetterUUID.parse
|
139
|
+
u = BetterUUID.parse s
|
140
140
|
expect(u.to_s).to eq(s) }
|
141
141
|
end
|
142
142
|
|
@@ -163,7 +163,7 @@ describe BetterUUID do
|
|
163
163
|
|
164
164
|
describe '.to_i' do
|
165
165
|
it { s = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
|
166
|
-
u = BetterUUID.parse
|
166
|
+
u = BetterUUID.parse s
|
167
167
|
i = 0x6ba7b8109dad11d180b400c04fd430c8
|
168
168
|
expect(u.to_i).to eq(i) }
|
169
169
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: better-uuid
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Barry Allard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
10
|
+
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDOjCCAiKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxiYXJy
|
@@ -29,72 +29,55 @@ cert_chain:
|
|
29
29
|
VqwwfY+Ms3gcCHSERG1X4AFW1zesX+UWcTCwVLtAsuRWQhC8odDSVDWzUfkZmOQt
|
30
30
|
ViIxU1ZphInql7L5g34=
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
date: 2014-04-02 00:00:00 Z
|
34
|
+
dependencies:
|
35
|
+
- !ruby/object:Gem::Dependency
|
35
36
|
name: rake
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
type: :development
|
42
37
|
prerelease: false
|
43
|
-
|
44
|
-
requirements:
|
45
|
-
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
name: rspec
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
38
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- &id002
|
41
|
+
- ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
55
44
|
type: :development
|
45
|
+
version_requirements: *id001
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
56
48
|
prerelease: false
|
57
|
-
|
58
|
-
requirements:
|
59
|
-
-
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: should_not
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- *id002
|
69
52
|
type: :development
|
53
|
+
version_requirements: *id003
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: should_not
|
70
56
|
prerelease: false
|
71
|
-
|
72
|
-
requirements:
|
73
|
-
-
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: absolute_time
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
57
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- *id002
|
83
60
|
type: :development
|
61
|
+
version_requirements: *id004
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: absolute_time
|
84
64
|
prerelease: false
|
85
|
-
|
86
|
-
requirements:
|
87
|
-
-
|
88
|
-
|
89
|
-
|
65
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- *id002
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
90
70
|
description: Sensible UUID library as a gem
|
91
|
-
email:
|
71
|
+
email:
|
92
72
|
- barry.allard@gmail.com
|
93
73
|
executables: []
|
74
|
+
|
94
75
|
extensions: []
|
76
|
+
|
95
77
|
extra_rdoc_files: []
|
96
|
-
|
97
|
-
|
78
|
+
|
79
|
+
files:
|
80
|
+
- .rspec
|
98
81
|
- LICENSE
|
99
82
|
- README.md
|
100
83
|
- Rakefile
|
@@ -113,29 +96,28 @@ files:
|
|
113
96
|
- spec/spec_helper.rb
|
114
97
|
homepage: https://github.com/steakknife/better-uuid
|
115
98
|
licenses: []
|
99
|
+
|
116
100
|
metadata: {}
|
101
|
+
|
117
102
|
post_install_message:
|
118
103
|
rdoc_options: []
|
119
|
-
|
104
|
+
|
105
|
+
require_paths:
|
120
106
|
- lib
|
121
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
requirements:
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '0'
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- *id002
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- *id002
|
131
113
|
requirements: []
|
114
|
+
|
132
115
|
rubyforge_project:
|
133
116
|
rubygems_version: 2.2.2
|
134
117
|
signing_key:
|
135
118
|
specification_version: 4
|
136
119
|
summary: UUID library
|
137
|
-
test_files:
|
120
|
+
test_files:
|
138
121
|
- spec/better-uuid_spec.rb
|
139
122
|
- spec/spec_helper.rb
|
140
|
-
-
|
141
|
-
has_rdoc:
|
123
|
+
- .rspec
|
metadata.gz.sig
CHANGED
Binary file
|