Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made file structure more conventional

  • Loading branch information...
commit a00e931476d4cdf5b24c0a8338f89df95211fe20 1 parent 6423da2
slagyr authored
View
3  CHANGES
@@ -1,6 +1,9 @@
= StateMachine Changelog
== Version 0.0.1
+
+0.0.0 didn't seem to work as a gem so maybe this one will.
+
* nothing really, just playing with rake and release configuration
== Version 0.0.0
View
15 LICENSE
@@ -0,0 +1,15 @@
+Copyright (C) 2006 Micah Martin
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
View
8 Rakefile
@@ -14,8 +14,8 @@ load File.dirname(__FILE__) + '/tasks/failing_examples_with_html.rake'
load File.dirname(__FILE__) + '/tasks/verify_rcov.rake'"
PKG_NAME = "statemachine"
-PKG_VERSION = "0.0.1"
-PKG_TAG = "0_0_1"
+PKG_VERSION = StateMachine::VERSION::STRING
+PKG_TAG = StateMachine::VERSION::TAG
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
PKG_FILES = FileList[
'[A-Z]*',
@@ -29,7 +29,7 @@ task :default => :spec
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--diff','--color']
+# t.spec_opts = ['--diff','--color']
# t.rcov = true
# t.rcov_dir = 'doc/output/coverage'
# t.rcov_opts = ['--exclude', 'spec\/spec,bin\/spec']"
@@ -165,6 +165,6 @@ task :publish_packages => [:verify_user, :verify_password, :package] do
xf.user_name = ENV['RUBYFORGE_USER']
xf.password = ENV['RUBYFORGE_PASSWORD']
xf.files = release_files.to_a
- xf.release_name = "StateMachine #{PKG_VERSION}"
+ xf.release_name = "statemachine #{PKG_VERSION}"
end
end
View
2  lib/statemachine.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/state_machine'
+require 'statemachine/state_machine'
View
0  lib/proc_calling.rb → lib/statemachine/proc_calling.rb
File renamed without changes
View
2  lib/state.rb → lib/statemachine/state.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/proc_calling'
+require 'statemachine/proc_calling'
module StateMachine
View
8 lib/state_machine.rb → lib/statemachine/state_machine.rb
@@ -1,7 +1,7 @@
-require File.dirname(__FILE__) + '/state'
-require File.dirname(__FILE__) + '/super_state'
-require File.dirname(__FILE__) + '/transition'
-require File.dirname(__FILE__) + '/proc_calling'
+require 'statemachine/state'
+require 'statemachine/super_state'
+require 'statemachine/transition'
+require 'statemachine/proc_calling'
module StateMachine
View
0  lib/super_state.rb → lib/statemachine/super_state.rb
File renamed without changes
View
2  lib/transition.rb → lib/statemachine/transition.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/proc_calling'
+require 'statemachine/proc_calling'
module StateMachine
View
17 lib/statemachine/version.rb
@@ -0,0 +1,17 @@
+module StateMachine
+ module VERSION
+ unless defined? MAJOR
+ MAJOR = 0
+ MINOR = 0
+ TINY = 2
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
+
+ NAME = "StateMachine"
+ URL = "http://statemachine.rubyforge.org/"
+
+ DESCRIPTION = "#{NAME}-#{STRING} - State Machine Library for Ruby\n#{URL}"
+ end
+ end
+end
View
3  runAllTests
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-spec spec/*
View
3  spec/spec_helper.rb
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + '/../lib/state_machine'
+$:.unshift('lib')
+require 'statemachine'
def check_transition(transition, origin_id, destination_id, event, action)
transition.should_not_be nil
View
2  spec/transition_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../lib/state_machine'
+require File.dirname(__FILE__) + '/spec_helper'
context "Transition Calculating Exits and Entries" do
Please sign in to comment.
Something went wrong with that request. Please try again.