Permalink
Browse files

move gemspec to external file + bump version

  • Loading branch information...
1 parent 1c27d45 commit 1cb12e3b22202c16a6e189303de6186069c3cfa2 @movitto committed Aug 2, 2012
Showing with 29 additions and 29 deletions.
  1. +3 −29 Rakefile
  2. +26 −0 rjr.gemspec
View
@@ -5,11 +5,6 @@
require 'rdoc/task'
require "rspec/core/rake_task"
-require 'rubygems/package_task'
-
-
-GEM_NAME="rjr"
-PKG_VERSION='0.5.4'
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -37,28 +32,7 @@ Rake::RDocTask.new do |rd|
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
-PKG_FILES = FileList['lib/**/*.rb',
- 'LICENSE', 'Rakefile', 'README.rdoc', 'spec/**/*.rb' ]
-
-SPEC = Gem::Specification.new do |s|
- s.name = GEM_NAME
- s.version = PKG_VERSION
- s.files = PKG_FILES
- s.executables << 'rjr-server'
-
- s.required_ruby_version = '>= 1.8.1'
- s.required_rubygems_version = Gem::Requirement.new(">= 1.3.3")
- s.add_development_dependency('rspec', '~> 1.3.0')
-
- s.author = "Mohammed Morsi"
- s.email = "mo@morsi.org"
- s.date = %q{2012-04-25}
- s.description = %q{Ruby Json Rpc library}
- s.summary = %q{JSON RPC server and client library over amqp, websockets}
- s.homepage = %q{http://github.com/movitto/rjr}
-end
-
-Gem::PackageTask.new(SPEC) do |pkg|
- pkg.need_tar = true
- pkg.need_zip = true
+desc "build the rjr gem"
+task :build do
+ system "gem build rjr.gemspec"
end
View
@@ -0,0 +1,26 @@
+# -*- encoding: utf-8 -*-
+
+GEM_NAME = 'rjr'
+PKG_VERSION = '0.6.1'
+
+PKG_FILES =
+ Dir.glob('{lib,specs}/**/*.rb') + ['LICENSE', 'Rakefile', 'README.rdoc']
+
+
+Gem::Specification.new do |s|
+ s.name = GEM_NAME
+ s.version = PKG_VERSION
+ s.files = PKG_FILES
+ s.executables << 'rjr-server'
+
+ s.required_ruby_version = '>= 1.8.1'
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.3.3")
+ s.add_development_dependency('rspec', '~> 1.3.0')
+
+ s.author = "Mohammed Morsi"
+ s.email = "mo@morsi.org"
+ s.date = %q{2012-08-02}
+ s.description = %q{Ruby Json Rpc library}
+ s.summary = %q{JSON RPC server and client library over amqp, websockets, http, etc}
+ s.homepage = %q{http://github.com/movitto/rjr}
+end

0 comments on commit 1cb12e3

Please sign in to comment.