identifier 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,6 +6,10 @@ Identifier is a Ruby unique identifier generator that wraps the UNIX, Linux and
6
6
 
7
7
  gem install identifier
8
8
 
9
+ == Requirements
10
+
11
+ A UNIX, Linux or Mac OS X system with 'uuidgen' installed and included in the PATH.
12
+
9
13
  == Examples
10
14
 
11
15
  Identifier.generate # "CFAA3C87-38C1-4357-8FA2-D862780736AE"
data/lib/identifier.rb CHANGED
@@ -1,7 +1,13 @@
1
1
  module Identifier
2
2
 
3
3
  def self.generate
4
- `uuidgen`.strip
4
+
5
+ begin
6
+ `uuidgen`.strip
7
+ rescue Errno::ENOENT
8
+ raise "uuidgen not found"
9
+ end
10
+
5
11
  end
6
12
 
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module Identifier
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre