minimal_state_machine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ class MinimalStateMachineGenerator < Rails::Generators::Base
14
14
  end
15
15
 
16
16
  def create_migration_files
17
- create_migration_file_if_not_exist 'create_states'
17
+ create_migration_file_if_not_exist 'create_msm_states'
18
18
  end
19
19
 
20
20
  private
@@ -0,0 +1,9 @@
1
+ class CreateMsmStates < ActiveRecord::Migration
2
+ def change
3
+ create_table :msm_states do |t|
4
+ t.string :type
5
+ t.references :state_machine, :polymorphic => true
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module MinimalStateMachine
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.authors = ["Matteo Depalo"]
10
10
  gem.email = ["matteodepalo@gmail.com"]
11
11
  gem.description = %q{A state machine for activerecord implemented with the state pattern}
12
- gem.summary = %q{A state machine implemented with the state pattern}
12
+ gem.summary = %q{A state machine}
13
13
  gem.homepage = ""
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal_state_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ files:
90
90
  - Rakefile
91
91
  - db/minimal_state_machine.sqlite3
92
92
  - lib/generators/minimal_state_machine/minimal_state_machine_generator.rb
93
- - lib/generators/minimal_state_machine/templates/create_states.rb
93
+ - lib/generators/minimal_state_machine/templates/create_msm_states.rb
94
94
  - lib/minimal_state_machine.rb
95
95
  - lib/minimal_state_machine/state.rb
96
96
  - lib/minimal_state_machine/version.rb
@@ -120,7 +120,7 @@ rubyforge_project:
120
120
  rubygems_version: 1.8.24
121
121
  signing_key:
122
122
  specification_version: 3
123
- summary: A state machine implemented with the state pattern
123
+ summary: A state machine
124
124
  test_files:
125
125
  - spec/minimal_state_machine_spec.rb
126
126
  - spec/spec_helper.rb
@@ -1,9 +0,0 @@
1
- class CreateStates < ActiveRecord::Migration
2
- def change
3
- create_table :msm_states do |t|
4
- t.string :type
5
- t.references :state_machine, :polymorphic => true
6
- t.timestamps
7
- end
8
- end
9
- end