locality-uuid 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/locality-uuid.rb +1 -1
- data/locality-uuid.gemspec +5 -5
- data/spec/lib/locality-uuid_spec.rb +6 -0
- metadata +32 -33
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NGJjYzBkMWY2NDUyZDViOGY4NTM1NTA3OWZiYzE2MmMzMWEzMGVkN2VjOTMx
|
10
|
-
NDEwYmU1NzYyOTUyZGQwNmIxYjk4MmFiODM0MzEzMTFmZDM5OTg1YjdlZTcy
|
11
|
-
ODIwODhhMWUxMTBhZmVmNDNlNjdmOTg4ZGJkZTlhOWQwMzJmZTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzY0OTRhYTkxN2M5MjIwNWQ2NmFmZmY1ZGUyNTY2Y2FkZTRhNDIwMTdmZDA2
|
14
|
-
MGM5YmFmMzFlMjk4YjVlZTQ0ZjI5MTM3ZDNjMzZkOGIwYWYzMzFjY2FkNzEz
|
15
|
-
OTkyZTcxZDk2NDU2NmMzNzM3YWUzNjNhY2ZhM2M5M2RjMDE3OTU=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 68e94aca1b377ecaf7935a69c8e6f0ee319f0fb6
|
4
|
+
data.tar.gz: 94316fdeffd8431efbc779b234f7b8eadec06a40
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 17bd5d6520eeb49e3d35de5fc2b271d952dd9261b09dfbeae1327c948438276a67dcb7b71542a75dc90da88a3bdb0340f2c51bb46eb271c96d64d1da42375f66
|
7
|
+
data.tar.gz: 6a6dbb5e896c1913fa658c9931ca0f4bbc0b88e75e06549733ec449fcecbc9ac1a3fd65f183914e1f794e2609408915e008723257bc20fd7e15103776595a3f7
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@ Locality UUID (vB) Ruby
|
|
2
2
|
=======================
|
3
3
|
|
4
4
|
This is a UUID class intended to help control data locality when inserting into a distributed data
|
5
|
-
system, such as MongoDB or HBase. There is also [a Java implementation](groupon/locality-uuid.java).
|
5
|
+
system, such as MongoDB or HBase. There is also [a Java implementation](http://github.com/groupon/locality-uuid.java).
|
6
6
|
This version does not conform to any external standard or spec. Developed at Groupon in Palo Alto
|
7
7
|
by Peter Bakkum and Michael Craig.
|
8
8
|
|
data/lib/locality-uuid.rb
CHANGED
data/locality-uuid.gemspec
CHANGED
@@ -33,11 +33,11 @@
|
|
33
33
|
require File.expand_path('../lib/locality-uuid.rb', __FILE__)
|
34
34
|
|
35
35
|
Gem::Specification.new do |gem|
|
36
|
-
gem.add_development_dependency 'mocha'
|
37
|
-
gem.add_development_dependency 'rspec'
|
38
|
-
gem.add_development_dependency 'autotest-standalone'
|
39
|
-
gem.add_runtime_dependency 'macaddr'
|
40
|
-
gem.add_runtime_dependency '
|
36
|
+
gem.add_development_dependency 'mocha', '~> 1.1'
|
37
|
+
gem.add_development_dependency 'rspec', '~> 3.2'
|
38
|
+
gem.add_development_dependency 'autotest-standalone', '~> 4.5'
|
39
|
+
gem.add_runtime_dependency 'macaddr', '~> 1.7'
|
40
|
+
gem.add_runtime_dependency 'concurrent-ruby', '~> 0.8'
|
41
41
|
|
42
42
|
gem.authors = ["Peter Bakkum"]
|
43
43
|
gem.bindir = 'bin'
|
@@ -31,6 +31,12 @@
|
|
31
31
|
require 'spec_helper'
|
32
32
|
require 'locality-uuid'
|
33
33
|
|
34
|
+
RSpec.configure do |config|
|
35
|
+
config.expect_with :rspec do |c|
|
36
|
+
c.syntax = [:should, :expect]
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
34
40
|
describe UUID do
|
35
41
|
it 'should have the correct structure' do
|
36
42
|
r = /^[0-9a-zA-Z]{8}\-[0-9a-zA-Z]{4}\-b[0-9a-zA-Z]{3}\-[0-9a-zA-Z]{4}\-0[0-9a-zA-Z]{11}$/
|
metadata
CHANGED
@@ -1,85 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locality-uuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bakkum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mocha
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: autotest-standalone
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '4.5'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '4.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: macaddr
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.7'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: concurrent-ruby
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.8'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.8'
|
83
83
|
description: This is a UUID class intended to help control data locality when inserting
|
84
84
|
into a distributed data system, such as MongoDB or HBase. There is also a Java implementation.
|
85
85
|
This version does not conform to any external standard or spec. Developed at Groupon
|
@@ -93,41 +93,40 @@ extra_rdoc_files:
|
|
93
93
|
- README.md
|
94
94
|
- LICENSE.md
|
95
95
|
files:
|
96
|
-
-
|
96
|
+
- ".rspec"
|
97
|
+
- Gemfile
|
97
98
|
- LICENSE.md
|
99
|
+
- README.md
|
100
|
+
- bin/locality-uuid
|
101
|
+
- lib/locality-uuid.rb
|
98
102
|
- locality-uuid.gemspec
|
99
|
-
- Gemfile
|
100
|
-
- .rspec
|
101
103
|
- spec/lib/locality-uuid_spec.rb
|
102
104
|
- spec/spec_helper.rb
|
103
|
-
- lib/locality-uuid.rb
|
104
|
-
- bin/locality-uuid
|
105
105
|
homepage: http://github.com/groupon/locality-uuid.rb
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata: {}
|
109
109
|
post_install_message:
|
110
110
|
rdoc_options:
|
111
|
-
- --charset=UTF-8
|
111
|
+
- "--charset=UTF-8"
|
112
112
|
require_paths:
|
113
113
|
- lib
|
114
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- -
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: 1.3.6
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.2.2
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: UUID for data locality in distributed systems.
|
130
130
|
test_files:
|
131
131
|
- spec/lib/locality-uuid_spec.rb
|
132
132
|
- spec/spec_helper.rb
|
133
|
-
has_rdoc:
|