global_uid 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/gemfiles/rails2mysql2.gemfile.lock +65 -0
- data/global_uid.gemspec +3 -2
- data/lib/global_uid/active_record_extension.rb +1 -3
- data/lib/global_uid.rb +1 -1
- data/test/global_uid_test.rb +4 -0
- metadata +4 -3
@@ -0,0 +1,65 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/osheroff/mysql2.git
|
3
|
+
revision: a1ab7bae6252746c68677ad7a0d362e385dcd446
|
4
|
+
ref: a1ab7ba
|
5
|
+
specs:
|
6
|
+
mysql2 (0.2.18)
|
7
|
+
|
8
|
+
PATH
|
9
|
+
remote: /Users/ben/src/global_uid
|
10
|
+
specs:
|
11
|
+
global_uid (1.2.6)
|
12
|
+
activerecord
|
13
|
+
activesupport
|
14
|
+
|
15
|
+
GEM
|
16
|
+
remote: http://rubygems.org/
|
17
|
+
specs:
|
18
|
+
activerecord (2.3.14)
|
19
|
+
activesupport (= 2.3.14)
|
20
|
+
activesupport (2.3.14)
|
21
|
+
appraisal (0.4.1)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
columnize (0.3.6)
|
25
|
+
debugger (1.1.1)
|
26
|
+
columnize (>= 0.3.1)
|
27
|
+
debugger-linecache (~> 1.1)
|
28
|
+
debugger-ruby_core_source (~> 1.1)
|
29
|
+
debugger-linecache (1.1.1)
|
30
|
+
debugger-ruby_core_source (>= 1.1.1)
|
31
|
+
debugger-ruby_core_source (1.1.1)
|
32
|
+
linecache (0.46)
|
33
|
+
rbx-require-relative (> 0.0.4)
|
34
|
+
metaclass (0.0.1)
|
35
|
+
mocha (0.10.5)
|
36
|
+
metaclass (~> 0.0.1)
|
37
|
+
mysql (2.8.1)
|
38
|
+
rake (0.9.2.2)
|
39
|
+
rbx-require-relative (0.0.9)
|
40
|
+
ruby-debug (0.10.4)
|
41
|
+
columnize (>= 0.1)
|
42
|
+
ruby-debug-base (~> 0.10.4.0)
|
43
|
+
ruby-debug-base (0.10.4)
|
44
|
+
linecache (>= 0.3)
|
45
|
+
shoulda (3.0.1)
|
46
|
+
shoulda-context (~> 1.0.0)
|
47
|
+
shoulda-matchers (~> 1.0.0)
|
48
|
+
shoulda-context (1.0.0)
|
49
|
+
shoulda-matchers (1.0.0)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
activerecord (= 2.3.14)
|
56
|
+
appraisal
|
57
|
+
bundler
|
58
|
+
debugger
|
59
|
+
global_uid!
|
60
|
+
mocha
|
61
|
+
mysql (= 2.8.1)
|
62
|
+
mysql2!
|
63
|
+
rake
|
64
|
+
ruby-debug
|
65
|
+
shoulda
|
data/global_uid.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'global_uid'
|
16
|
-
s.version = '1.3.
|
17
|
-
s.date = '2012-
|
16
|
+
s.version = '1.3.1'
|
17
|
+
s.date = '2012-10-24'
|
18
18
|
s.rubyforge_project = 'global_uid'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -70,6 +70,7 @@ Gem::Specification.new do |s|
|
|
70
70
|
Rakefile
|
71
71
|
gemfiles/rails2.gemfile
|
72
72
|
gemfiles/rails2.gemfile.lock
|
73
|
+
gemfiles/rails2mysql2.gemfile.lock
|
73
74
|
gemfiles/rails3.gemfile
|
74
75
|
gemfiles/rails3.gemfile.lock
|
75
76
|
global_uid.gemspec
|
@@ -22,9 +22,7 @@ module GlobalUid
|
|
22
22
|
return
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
# "||=" allows for more flexibility and more correct behavior (crashing) upon EBCAK
|
27
|
-
self.id ||= global_uid
|
25
|
+
self.id = global_uid
|
28
26
|
end
|
29
27
|
|
30
28
|
module ClassMethods
|
data/lib/global_uid.rb
CHANGED
data/test/global_uid_test.rb
CHANGED
@@ -248,6 +248,10 @@ class GlobalUIDTest < ActiveSupport::TestCase
|
|
248
248
|
assert res.size == 10
|
249
249
|
res += GlobalUid::Base.get_many_uids_for_class(WithGlobalUID, 10)
|
250
250
|
assert res.uniq.size == 20
|
251
|
+
# starting value of 1 with a step of 5, so we should get 6,11,16...
|
252
|
+
res.each_with_index do |val, i|
|
253
|
+
assert_equal val, ((i + 1) * 5) + 1
|
254
|
+
end
|
251
255
|
end
|
252
256
|
end
|
253
257
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_uid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- Rakefile
|
153
153
|
- gemfiles/rails2.gemfile
|
154
154
|
- gemfiles/rails2.gemfile.lock
|
155
|
+
- gemfiles/rails2mysql2.gemfile.lock
|
155
156
|
- gemfiles/rails3.gemfile
|
156
157
|
- gemfiles/rails3.gemfile.lock
|
157
158
|
- global_uid.gemspec
|
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
184
|
version: 1.3.6
|
184
185
|
requirements: []
|
185
186
|
rubyforge_project: global_uid
|
186
|
-
rubygems_version: 1.8.
|
187
|
+
rubygems_version: 1.8.24
|
187
188
|
signing_key:
|
188
189
|
specification_version: 2
|
189
190
|
summary: GUID
|