File: Rakefile

package info (click to toggle)
ruby-os 1.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 136 kB
  • sloc: ruby: 474; makefile: 3
file content (34 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'rubygems' if RUBY_VERSION < '1.9.0'

# HOW TO DEPLOY
# bump VERSION file manually
# rake release seems all messed up, doesn't publish it anyway...
# Don't forget to run rake gemspec with each release! ... I think...
# then manually edit os.gemspec remove duplicatee rspecs, circular dependency on os? HUH?
# # then  gem build os.gemspec
# rake build doesn't work???
# sooo...
# ...gem push os-1.1.2.gem

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "os"
    gem.summary = %Q{Simple and easy way to know if you're on windows or not (reliably), as well as how many bits the OS is, etc.}
    gem.description = %Q{The OS gem allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc"}
    gem.email = "rogerpack2005@gmail.com"
    gem.homepage = "http://github.com/rdp/os"
    gem.authors = ["rdp", "David McCullars"]
    gem.license = "MIT"
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
    # gem.add_development_dependency "fast_require"
    # gem.add_development_dependency "rspec", ">= 2.0"
  end
rescue LoadError => e
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler #{e}"
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec