cuuid 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/Readme.md +2 -0
- data/ext/cuuid/cuuid.c +3 -3
- data/ext/cuuid/extconf.rb +1 -1
- metadata +14 -3
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require "rubygems/package_task"
|
|
3
3
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
s.name = "cuuid"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.2.0"
|
7
7
|
s.author = "Caius Durling"
|
8
8
|
s.email = "caius@emberads.com"
|
9
9
|
s.homepage = "http://github.com/EmberAds/cuuid"
|
@@ -13,6 +13,7 @@ spec = Gem::Specification.new do |s|
|
|
13
13
|
s.extensions = FileList["ext/**/extconf.rb"]
|
14
14
|
|
15
15
|
s.add_development_dependency "rake-compiler"
|
16
|
+
s.add_development_dependency "rspec"
|
16
17
|
s.has_rdoc = false
|
17
18
|
end
|
18
19
|
|
data/Readme.md
CHANGED
data/ext/cuuid/cuuid.c
CHANGED
@@ -10,10 +10,10 @@ void Init_cuuid();
|
|
10
10
|
// Prototype CUUID.generate
|
11
11
|
VALUE method_generate();
|
12
12
|
|
13
|
-
// Define CUUID and the fact it has a class method called
|
13
|
+
// Define CUUID and the fact it has a class method called generate
|
14
14
|
void Init_cuuid() {
|
15
|
-
CUUID = rb_define_module("CUUID");
|
16
15
|
int arg_count = 0;
|
16
|
+
CUUID = rb_define_module("CUUID");
|
17
17
|
rb_define_module_function(CUUID, "generate", method_generate, arg_count);
|
18
18
|
}
|
19
19
|
|
@@ -22,8 +22,8 @@ VALUE method_generate(VALUE self) {
|
|
22
22
|
uuid_t uuid_id;
|
23
23
|
char uuid_str[128];
|
24
24
|
|
25
|
+
// Generate UUID and grab string version of it
|
25
26
|
uuid_generate(uuid_id);
|
26
|
-
|
27
27
|
uuid_unparse(uuid_id, uuid_str);
|
28
28
|
|
29
29
|
// Cast it into a ruby string and return it
|
data/ext/cuuid/extconf.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70211457931560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,18 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70211457931560
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &70211457930640 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70211457930640
|
25
36
|
description:
|
26
37
|
email: caius@emberads.com
|
27
38
|
executables: []
|