Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move gemspec out of Rakefile.

Build gem with `ruby ncurses-ruby.gemspec`.
  • Loading branch information...
commit c3084e3864a27751b56f82b30a30230f810cbe79 1 parent 3bde2dc
@eclubb eclubb authored
Showing with 34 additions and 32 deletions.
  1. +0 −32 Rakefile
  2. +5 −0 lib/ncurses-ruby/version.rb
  3. +29 −0 ncurses-ruby.gemspec
View
32 Rakefile
@@ -1,32 +0,0 @@
-require 'rake/gempackagetask'
-
-SUMMARY = 'This wrapper provides access to the functions, macros, global variables and constants ' +
- 'of the ncurses library. These are mapped to a Ruby Module named "Ncurses": ' +
- 'Functions and external variables are implemented as singleton functions of the Module Ncurses.'
-
-spec = Gem::Specification.new do |s|
- s.name = 'ncurses-ruby'
- s.email = 'eclubb@valcom.com'
- s.author = 'Earle Clubb'
- s.version = '1.2.0'
- s.summary = SUMMARY
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = false
- s.homepage = 'http://github.com/eclubb/ncurses-ruby'
- s.description = SUMMARY
- s.require_paths = ["lib"]
- s.files = Dir.glob("[A-Z]*") + Dir.glob("*.{c,h,rb}") + Dir.glob("{examples,lib}/**/*")
- s.extensions = FileList["ext/**/extconf.rb"]
-end
-
-# add your default gem packing task
-Rake::GemPackageTask.new(spec) do |pkg|
-end
-
-begin
- require 'rake/extensiontask'
-rescue LoadError
- warn "To compile native gems, install rake-compiler (gem install rake-compiler)"
-else
- Rake::ExtensionTask.new('ncurses', spec)
-end
View
5 lib/ncurses-ruby/version.rb
@@ -0,0 +1,5 @@
+module Ncurses
+ module Ruby
+ VERSION = '1.2.0'
+ end
+end
View
29 ncurses-ruby.gemspec
@@ -0,0 +1,29 @@
+# -*- encoding: utf-8 -*-
+
+$:.push File.expand_path('../lib', __FILE__)
+require 'rubygems'
+require 'ncurses-ruby/version'
+
+SUMMARY = 'This wrapper provides access to the functions, macros, global variables and constants ' +
+ 'of the ncurses library. These are mapped to a Ruby Module named "Ncurses": ' +
+ 'Functions and external variables are implemented as singleton functions of the Module Ncurses.'
+
+spec = Gem::Specification.new do |s|
+ s.name = 'ncurses-ruby'
+ s.version = Ncurses::Ruby::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Tobias Herzke', 'Simon Kaczor', 'Earle Clubb']
+ s.email = ['t-peters@users.berlios.de', 'skaczor@cox.net', 'eclubb@valcom.com']
+ s.has_rdoc = false
+ s.homepage = 'http://github.com/eclubb/ncurses-ruby'
+ s.summary = SUMMARY
+ s.description = SUMMARY
+
+ s.require_paths = ['lib']
+ s.files = Dir.glob("[A-Z]*") + Dir.glob("{examples,lib,ext}/**/*")
+ s.extensions = ['ext/ncurses/extconf.rb']
+end
+
+if $0 == __FILE__
+ Gem::Builder.new(spec).build
+end
Please sign in to comment.
Something went wrong with that request. Please try again.