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 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.1.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
@@ -12,6 +12,8 @@ Or if you've required `"cuuid/uuid"` then you can just do
12
12
 
13
13
  ## Installation
14
14
 
15
+ It'll work out the box on OS X. Ubuntu requires `uuid-dev` apt package installing.
16
+
15
17
  Rubygem install:
16
18
 
17
19
  gem install cuuid
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 uuid1
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
@@ -1,5 +1,5 @@
1
1
  require 'mkmf'
2
2
 
3
3
  dir_config("cuuid")
4
-
4
+ have_library("uuid") if RUBY_PLATFORM[/linux/i]
5
5
  create_makefile("cuuid")
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.1.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: &70201584539920 !ruby/object:Gem::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: *70201584539920
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: []