Permalink
Browse files

pulled gemspec into it's own file. added rvmrc file.

  • Loading branch information...
1 parent 8d8e4f3 commit 7eff07aef69ae1b8bea3b1ae01f97b71011760d2 @ericmeyer ericmeyer committed Nov 4, 2011
Showing with 25 additions and 23 deletions.
  1. +1 −0 .rvmrc
  2. +1 −21 Rakefile
  3. +2 −2 lib/statemachine/version.rb
  4. +21 −0 statemachine.gemspec
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm use ruby-1.9.2-p290@statemachine
View
@@ -5,6 +5,7 @@ require 'rake/clean'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'statemachine'
+require "bundler/gem_tasks"
PKG_NAME = "statemachine"
PKG_VERSION = Statemachine::VERSION::STRING
@@ -33,27 +34,6 @@ rd = Rake::RDocTask.new do |rdoc|
end
task :rdoc
-spec = Gem::Specification.new do |s|
- s.name = PKG_NAME
- s.version = PKG_VERSION
- s.summary = Statemachine::VERSION::DESCRIPTION
- s.description = "Statemachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA)."
- s.files = PKG_FILES.to_a
- s.require_path = 'lib'
- s.test_files = Dir.glob('spec/*_spec.rb')
- s.require_path = 'lib'
- s.autorequire = 'statemachine'
- s.author = "Micah Martin"
- s.email = "statemachine-devel@rubyforge.org"
- s.homepage = "http://statemachine.rubyforge.org"
- s.rubyforge_project = "statemachine"
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
-end
-
def egrep(pattern)
Dir['**/*.rb'].each do |fn|
count = 0
@@ -1,8 +1,8 @@
module Statemachine
module VERSION #:nodoc:
unless defined? MAJOR
- MAJOR = 1
- MINOR = 2
+ MAJOR = 2
+ MINOR = 0
TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
View
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "statemachine/version"
+
+Gem::Specification.new do |s|
+ s.name = "statemachine"
+ s.version = Statemachine::VERSION::STRING
+ s.authors = ["'Micah Micah'"]
+ s.email = ["'micah@8thlight.com'"]
+ s.homepage = "http://statemachine.rubyforge.org"
+ s.summary = Statemachine::VERSION::DESCRIPTION
+ s.description = "Statemachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA)."
+
+ s.rubyforge_project = "statemachine"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.autorequire = 'statemachine'
+end

0 comments on commit 7eff07a

Please sign in to comment.