ruby-state-machine 0.0.4 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -13,9 +13,14 @@
13
13
  * 1 minor enhancement:
14
14
  * Change ruby-state-mach -> ruby-state-machine
15
15
 
16
- == 0.0.3 2009-08-19
16
+ == 0.0.4 2009-08-19
17
17
 
18
18
  * 1 minor enhancement:
19
19
  * Add missing files
20
20
 
21
+ == 1.0.1 2010-05-03
22
+
23
+ * 1 bug fix:
24
+ * Fix initialize to call super when used on AR models.
25
+
21
26
 
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module RubyStateMachine
5
- VERSION = '0.0.4'
5
+ VERSION = '1.0.1'
6
6
  end
@@ -68,6 +68,12 @@ module StateMachine
68
68
  def initialize(args=nil)
69
69
  @current_state = default_state
70
70
  @event_history = BoundedArray.new
71
+ # Attempt to call super:
72
+ begin
73
+ super(args)
74
+ rescue ArgumentError
75
+ super()
76
+ end
71
77
  #puts "Current state is #{@current_state} #{@current_state.class}"
72
78
  end
73
79
 
data/website/index.txt CHANGED
@@ -39,52 +39,12 @@ h2. How to submit patches
39
39
 
40
40
  Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
41
41
 
42
- TODO - pick SVN or Git instructions
43
-
44
- The trunk repository is <code>svn://rubyforge.org/var/svn/ruby-state-machine/trunk</code> for anonymous access.
45
-
46
- OOOORRRR
47
-
48
- You can fetch the source from either:
49
-
50
- <% if rubyforge_project_id %>
51
-
52
- * rubyforge: "http://rubyforge.org/scm/?group_id=<%= rubyforge_project_id %>":http://rubyforge.org/scm/?group_id=<%= rubyforge_project_id %>
53
-
54
- <pre>git clone git://rubyforge.org/ruby-state-machine.git</pre>
55
-
56
- <% else %>
57
-
58
- * rubyforge: MISSING IN ACTION
59
-
60
- TODO - You can not created a RubyForge project, OR have not run <code>rubyforge config</code>
61
- yet to refresh your local rubyforge data with this projects' id information.
62
-
63
- When you do this, this message will magically disappear!
64
-
65
- Or you can hack website/index.txt and make it all go away!!
66
-
67
- <% end %>
68
-
69
- * github: "http://github.com/GITHUB_USERNAME/ruby-state-machine/tree/master":http://github.com/GITHUB_USERNAME/ruby-state-machine/tree/master
70
-
71
- <pre>git clone git://github.com/GITHUB_USERNAME/ruby-state-machine.git</pre>
72
-
73
-
74
- TODO - add "github_username: username" to ~/.rubyforge/user-config.yml and newgem will reuse it for future projects.
75
-
76
-
77
- * gitorious: "git://gitorious.org/ruby-state-machine/mainline.git":git://gitorious.org/ruby-state-machine/mainline.git
78
-
79
- <pre>git clone git://gitorious.org/ruby-state-machine/mainline.git</pre>
80
-
81
42
  h3. Build and test instructions
82
43
 
83
44
  <pre>cd ruby-state-machine
84
45
  rake test
85
46
  </pre>
86
47
 
87
-
88
48
  h2. License
89
49
 
90
50
  This code is free to use under the terms of the MIT license.
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-state-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 1
9
+ version: 1.0.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - stevenmiers
@@ -9,19 +14,37 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-08-19 00:00:00 -05:00
17
+ date: 2010-05-03 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
- name: hoe
21
+ name: rubyforge
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 0
30
+ - 4
31
+ version: 2.0.4
17
32
  type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: hoe
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
20
38
  requirements:
21
39
  - - ">="
22
40
  - !ruby/object:Gem::Version
23
- version: 2.3.3
24
- version:
41
+ segments:
42
+ - 2
43
+ - 6
44
+ - 0
45
+ version: 2.6.0
46
+ type: :development
47
+ version_requirements: *id002
25
48
  description: FIX (describe your package)
26
49
  email:
27
50
  - steven.miers@gmail.com
@@ -57,6 +80,8 @@ files:
57
80
  - website/template.html.erb
58
81
  has_rdoc: true
59
82
  homepage: http://github.com/#{github_username}/#{project_name}
83
+ licenses: []
84
+
60
85
  post_install_message: PostInstall.txt
61
86
  rdoc_options:
62
87
  - --main
@@ -67,20 +92,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
92
  requirements:
68
93
  - - ">="
69
94
  - !ruby/object:Gem::Version
95
+ segments:
96
+ - 0
70
97
  version: "0"
71
- version:
72
98
  required_rubygems_version: !ruby/object:Gem::Requirement
73
99
  requirements:
74
100
  - - ">="
75
101
  - !ruby/object:Gem::Version
102
+ segments:
103
+ - 0
76
104
  version: "0"
77
- version:
78
105
  requirements: []
79
106
 
80
107
  rubyforge_project: ruby-state-mach
81
- rubygems_version: 1.3.1
108
+ rubygems_version: 1.3.6
82
109
  signing_key:
83
- specification_version: 2
110
+ specification_version: 3
84
111
  summary: FIX (describe your package)
85
112
  test_files:
86
113
  - test/test_helper.rb