Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Testing with macaddr 1.4.0

  • Loading branch information...
commit ef1505e34d3ba19e77269218922a5454e2b3e71b 1 parent de0efda
@assaf assaf authored
Showing with 19 additions and 54 deletions.
  1. +2 −0  .gitignore
  2. +1 −1  .rvmrc
  3. +4 −2 Gemfile.lock
  4. +12 −51 bin/uuid
View
2  .gitignore
@@ -1,2 +1,4 @@
+.bundle
*.swp
/html
+*.gem
View
2  .rvmrc
@@ -1,3 +1,3 @@
export RUBYOPT="rubygems"
export RUBYLIB="."
-rvm 1.9.2@uuid
+rvm 1.9.2
View
6 Gemfile.lock
@@ -1,15 +1,17 @@
PATH
remote: .
specs:
- uuid (2.3.2)
+ uuid (2.3.3)
macaddr (~> 1.0)
GEM
remote: http://rubygems.org/
specs:
- macaddr (1.0.0)
+ macaddr (1.4.0)
+ systemu (~> 2.2.0)
mocha (0.9.12)
rake (0.8.7)
+ systemu (2.2.0)
yard (0.6.7)
PLATFORMS
View
63 bin/uuid
@@ -1,55 +1,16 @@
#!/usr/bin/env ruby
-require "uuid"
-require "optparse"
+#
+# This file was generated by Bundler.
+#
+# The application 'uuid' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
-address = nil
-count = 1
-format = :default
-server = false
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
-opts = OptionParser.new("", 24, ' ') do |opts|
- opts.banner = "Usage: #{File.basename($0)} [options]"
+require 'rubygems'
+require 'bundler/setup'
- opts.separator "\nOptions:"
- opts.on("-s", "--socket {HOST:PORT|PATH}",
- "communicate on HOST:PORT or PATH (default: #{UUID::SOCKET_NAME})") do |value|
- address = value
- end
-
- opts.on("-S", "--server", "run as a server") do |value|
- server = value ? true : false
- end
-
- opts.on("-F", "--format {FORMAT}", "UUID format (client only)") do |value|
- format = value.to_sym
- end
-
- opts.on("-C", "--count {COUNT}", "returns give number of UUIDs") do |value|
- count = value.to_i
- end
-
- opts.on("-h", "--help", "Show this message") do
- puts opts.to_s.gsub(/^.*DEPRECATED.*$/s, '')
- exit
- end
-
- opts.on("-v", "--version", "Show version") do
- puts "UUID v#{UUID::VERSION}"
- exit
- end
-
- opts.parse! ARGV
-end
-
-
-if server
- $stdout << "Starting UUID server on #{address}\n"
- UUID::Server.new.listen(address || UUID::SOCKET_NAME)
-else
- UUID.server = address if address
- $stdout << UUID.generate(format)
- (count - 1).times do
- $stdout.putc "\n"
- $stdout << UUID.generate(format)
- end
-end
+load Gem.bin_path('uuid', 'uuid')
Please sign in to comment.
Something went wrong with that request. Please try again.