Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
rvm:
- 1.8.7
- 1.9.2
- 1.9.2
- 2.0.0
- 2.1.9
- 2.2.5
- 2.3.1
gemfile:
- Gemfile
- Gemfile
env:
notifications:
recipients:
Expand Down
10 changes: 1 addition & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
source "https://rubygems.org"
gemspec

group :development do
gem "rake"
gem "yard"
end

group :test do
gem "mocha"
end
gemspec
25 changes: 17 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,27 @@ PATH
GEM
remote: https://rubygems.org/
specs:
macaddr (1.6.7)
macaddr (1.7.1)
systemu (~> 2.6.2)
mocha (0.9.12)
rake (0.8.7)
systemu (2.6.4)
yard (0.6.7)
metaclass (0.0.4)
mocha (1.2.0)
metaclass (~> 0.0.1)
power_assert (0.3.1)
rake (10.5.0)
systemu (2.6.5)
test-unit (3.1.9)
power_assert
yard (0.6.8)

PLATFORMS
ruby

DEPENDENCIES
mocha
rake
mocha (~> 1.2.0)
rake (~> 10.5.0)
test-unit (~> 3.1.8)
uuid!
yard
yard (~> 0.6.7)

BUNDLED WITH
1.13.3
21 changes: 5 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
require 'rake/testtask'
#require 'rake/rdoctask'


spec = Gem::Specification.load(File.expand_path("uuid.gemspec", File.dirname(__FILE__)))

desc "Default Task"
task :default => :test

task default: :test

desc "Run all test cases"
Rake::TestTask.new do |test|
test.verbose = true
test.test_files = ['test/*.rb']
test.warning = true
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/*.rb']
t.verbose = true
end

# Create the documentation.
#Rake::RDocTask.new do |rdoc|
# rdoc.rdoc_files.include "README.rdoc", "lib/**/*.rb"
# rdoc.options = spec.rdoc_options
#end



desc "Push new release to rubyforge and git tag"
task :push do
sh "git push"
Expand Down
4 changes: 2 additions & 2 deletions test/test-uuid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# Copyright:: Copyright (c) 2005-2008 Assaf Arkin, Eric Hodel
# License:: MIT and/or Creative Commons Attribution-ShareAlike

require 'test/unit'
require 'rubygems'
require 'test/unit'
require 'mocha/test_unit'
require 'uuid'
require 'mocha'

class TestUUID < Test::Unit::TestCase

Expand Down
7 changes: 6 additions & 1 deletion uuid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ EOF
'--webcvs' << 'http://github.com/assaf/uuid'
s.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']

s.add_dependency 'macaddr', ['~>1.0']
s.add_dependency 'macaddr', '~> 1.0'

s.add_development_dependency 'rake', '~> 10.5.0'
s.add_development_dependency 'test-unit', '~> 3.1.8'
s.add_development_dependency 'mocha', '~> 1.2.0'
s.add_development_dependency 'yard', '~> 0.6.7'
end