Skip to content

Commit

Permalink
support rubygems-test
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Feb 3, 2011
1 parent 09d95f1 commit bd7c5b6
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
Empty file added .gemtest
Empty file.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -13,6 +13,9 @@ tmtags
## VIM
*.swp

## RUBINIUS
*.rbc

## PROJECT::GENERAL
coverage
rdoc
Expand Down
5 changes: 1 addition & 4 deletions Gemfile
@@ -1,6 +1,3 @@
source :rubygems

group :dev do
gem 'rake'
gem 'rspec', '>=2'
end
gemspec
7 changes: 7 additions & 0 deletions Gemfile.lock
@@ -1,3 +1,8 @@
PATH
remote: .
specs:
clipboard (0.9.5)

GEM
remote: http://rubygems.org/
specs:
Expand All @@ -13,8 +18,10 @@ GEM
rspec-mocks (2.4.0)

PLATFORMS
java
ruby

DEPENDENCIES
clipboard!
rake
rspec (>= 2)
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -2,6 +2,7 @@ require 'rake'
require 'rake/rdoctask'
require 'fileutils'

task :test => :spec
task :default => :spec
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
Expand All @@ -13,7 +14,7 @@ def gemspec
end

desc "Build the gem"
task :gem=>:gemspec do
task :gem => :gemspec do
sh "gem build clipboard.gemspec"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
Expand Down
2 changes: 2 additions & 0 deletions clipboard.gemspec
Expand Up @@ -15,4 +15,6 @@ Gem::Specification.new do |s|
s.requirements = ["On Linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip"]
s.requirements << ["On Windows, you need the ffi gem."]
s.files = Dir.glob(%w[{lib,spec}/**/*.rb [A-Z]* [A-Z]*.rdoc]) + %w{clipboard.gemspec}
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '>=2'
end
2 changes: 2 additions & 0 deletions spec/clipboard_spec.rb
@@ -1,3 +1,5 @@
# Please note: cannot test, if it really accesses your platform clipboard.

require File.expand_path('spec/spec_helper')

$os = RbConfig::CONFIG['host_os']
Expand Down

0 comments on commit bd7c5b6

Please sign in to comment.