Permalink
Browse files

Gemspec updates, ruby 1.8 fix

  • Loading branch information...
mperham committed Apr 18, 2012
1 parent b923c9e commit f70b6bf273e3f9f7ad92df0fcca21437ebe0e28a
Showing with 4 additions and 3 deletions.
  1. +2 −2 lib/transitions.rb
  2. +2 −1 transitions.gemspec
View
@@ -54,8 +54,8 @@ def state_machine(name = nil, options = {}, &block)
block ? state_machines[name].update(options, &block) : state_machines[name]
end
- def available_states name = :default
- state_machines[name].states.map(&:name).sort
+ def available_states(name = :default)
+ state_machines[name].states.map(&:name).sort_by {|x| x.to_s}
end
def define_state_query_method(state_name)
View
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "bundler", "~> 1"
s.add_development_dependency "test-unit", "~> 2.2"
s.add_development_dependency "mocha"
- s.add_development_dependency "sqlite3-ruby"
+ s.add_development_dependency "rake"
+ s.add_development_dependency "sqlite3"
s.add_development_dependency "activerecord", "~> 3"
s.files = `git ls-files`.split("\n")

0 comments on commit f70b6bf

Please sign in to comment.