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 CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: bf1e28e13ece5b54517f75f4dbeb57ae5fb5b9c7
4
- data.tar.gz: 6336da4021c61f05105ddf3c4cfacef1f9f99d7d
5
- SHA512:
6
- metadata.gz: 65c53c292aca251a8f4fb60802aa608c42907b03a1a54b05e78e1cef847ba1996103e9fe9ff510133f11659fda105ada419227e8e1117dfd79a092fe8a2a433a
7
- data.tar.gz: c7a421d5f807749c855ae3c37a3d67ac4d3c97688655ba3a38a2c0c3fc6823bb26fc0160732e45e60bec82bf047baccc6e42aeadef326a90286b36406e2f9599
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
@@ -1,5 +1,5 @@
1
1
  require 'better-uuid/struct'
2
2
 
3
3
  class BetterUUID
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
@@ -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(s)
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(s)
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.1
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
- date: 2014-04-02 00:00:00.000000000 Z
33
- dependencies:
34
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
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
- files:
97
- - ".rspec"
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
- require_paths:
104
+
105
+ require_paths:
120
106
  - lib
121
- required_ruby_version: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- - ".rspec"
141
- has_rdoc:
123
+ - .rspec
metadata.gz.sig CHANGED
Binary file