state_pattern 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +2 -0
  2. data/README.rdoc +188 -6
  3. data/Rakefile +0 -58
  4. data/examples/rails_2_3_8_button_example/README +243 -0
  5. data/examples/rails_2_3_8_button_example/Rakefile +10 -0
  6. data/examples/rails_2_3_8_button_example/app/controllers/application_controller.rb +2 -0
  7. data/examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb +18 -0
  8. data/examples/rails_2_3_8_button_example/app/helpers/application_helper.rb +3 -0
  9. data/examples/rails_2_3_8_button_example/app/models/button.rb +4 -0
  10. data/examples/rails_2_3_8_button_example/app/models/button/off.rb +7 -0
  11. data/examples/rails_2_3_8_button_example/app/models/button/on.rb +8 -0
  12. data/examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb +9 -0
  13. data/examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb +12 -0
  14. data/examples/rails_2_3_8_button_example/config/boot.rb +110 -0
  15. data/examples/rails_2_3_8_button_example/config/database.yml +22 -0
  16. data/examples/rails_2_3_8_button_example/config/environment.rb +41 -0
  17. data/examples/rails_2_3_8_button_example/config/environments/development.rb +17 -0
  18. data/examples/rails_2_3_8_button_example/config/environments/production.rb +28 -0
  19. data/examples/rails_2_3_8_button_example/config/environments/test.rb +28 -0
  20. data/examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb +7 -0
  21. data/examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb +7 -0
  22. data/examples/rails_2_3_8_button_example/config/initializers/inflections.rb +10 -0
  23. data/examples/rails_2_3_8_button_example/config/initializers/mime_types.rb +5 -0
  24. data/examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb +21 -0
  25. data/examples/rails_2_3_8_button_example/config/initializers/session_store.rb +15 -0
  26. data/examples/rails_2_3_8_button_example/config/locales/en.yml +5 -0
  27. data/examples/rails_2_3_8_button_example/config/routes.rb +4 -0
  28. data/examples/rails_2_3_8_button_example/db/development.sqlite3 +0 -0
  29. data/examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb +13 -0
  30. data/examples/rails_2_3_8_button_example/db/schema.rb +20 -0
  31. data/examples/rails_2_3_8_button_example/db/seeds.rb +7 -0
  32. data/examples/rails_2_3_8_button_example/db/test.sqlite3 +0 -0
  33. data/examples/rails_2_3_8_button_example/doc/README_FOR_APP +2 -0
  34. data/examples/rails_2_3_8_button_example/public/images/rails.png +0 -0
  35. data/examples/rails_2_3_8_button_example/public/javascripts/application.js +2 -0
  36. data/examples/rails_2_3_8_button_example/public/javascripts/controls.js +963 -0
  37. data/examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js +973 -0
  38. data/examples/rails_2_3_8_button_example/public/javascripts/effects.js +1128 -0
  39. data/examples/rails_2_3_8_button_example/public/javascripts/prototype.js +4320 -0
  40. data/examples/rails_2_3_8_button_example/public/javascripts/rails.js +175 -0
  41. data/examples/rails_2_3_8_button_example/script/about +4 -0
  42. data/examples/rails_2_3_8_button_example/script/console +3 -0
  43. data/examples/rails_2_3_8_button_example/script/dbconsole +3 -0
  44. data/examples/rails_2_3_8_button_example/script/destroy +3 -0
  45. data/examples/rails_2_3_8_button_example/script/generate +3 -0
  46. data/examples/rails_2_3_8_button_example/script/performance/benchmarker +3 -0
  47. data/examples/rails_2_3_8_button_example/script/performance/profiler +3 -0
  48. data/examples/rails_2_3_8_button_example/script/plugin +3 -0
  49. data/examples/rails_2_3_8_button_example/script/runner +3 -0
  50. data/examples/rails_2_3_8_button_example/script/server +3 -0
  51. data/examples/rails_3_button_example/Gemfile +31 -0
  52. data/examples/rails_3_button_example/Gemfile.lock +75 -0
  53. data/examples/rails_3_button_example/Rakefile +7 -0
  54. data/examples/rails_3_button_example/app/controllers/application_controller.rb +3 -0
  55. data/examples/rails_3_button_example/app/controllers/buttons_controller.rb +13 -0
  56. data/examples/rails_3_button_example/app/models/button.rb +4 -0
  57. data/examples/rails_3_button_example/app/models/button/off.rb +7 -0
  58. data/examples/rails_3_button_example/app/models/button/on.rb +8 -0
  59. data/examples/rails_3_button_example/app/views/buttons/show.html.erb +9 -0
  60. data/examples/rails_3_button_example/app/views/layouts/application.html.erb +13 -0
  61. data/examples/rails_3_button_example/config.ru +4 -0
  62. data/examples/rails_3_button_example/config/application.rb +42 -0
  63. data/examples/rails_3_button_example/config/boot.rb +13 -0
  64. data/examples/rails_3_button_example/config/database.yml +22 -0
  65. data/examples/rails_3_button_example/config/environment.rb +5 -0
  66. data/examples/rails_3_button_example/config/environments/development.rb +26 -0
  67. data/examples/rails_3_button_example/config/initializers/backtrace_silencers.rb +7 -0
  68. data/examples/rails_3_button_example/config/initializers/inflections.rb +10 -0
  69. data/examples/rails_3_button_example/config/initializers/mime_types.rb +5 -0
  70. data/examples/rails_3_button_example/config/initializers/secret_token.rb +7 -0
  71. data/examples/rails_3_button_example/config/initializers/session_store.rb +8 -0
  72. data/examples/rails_3_button_example/config/locales/en.yml +5 -0
  73. data/examples/rails_3_button_example/config/routes.rb +5 -0
  74. data/examples/rails_3_button_example/db/development.sqlite3 +0 -0
  75. data/examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb +13 -0
  76. data/examples/rails_3_button_example/db/schema.rb +21 -0
  77. data/examples/rails_3_button_example/db/test.sqlite3 +0 -0
  78. data/examples/rails_3_button_example/public/javascripts/application.js +2 -0
  79. data/examples/rails_3_button_example/public/javascripts/prototype.js +6001 -0
  80. data/examples/rails_3_button_example/public/javascripts/rails.js +175 -0
  81. data/examples/rails_3_button_example/public/stylesheets/scaffold.css +56 -0
  82. data/examples/rails_3_button_example/script/rails +6 -0
  83. data/examples/semaphore.rb +58 -0
  84. data/lib/state_pattern.rb +3 -1
  85. data/lib/state_pattern/active_record.rb +44 -0
  86. data/rails/init.rb +3 -0
  87. data/test/state_pattern/active_record/active_record_test.rb +71 -0
  88. data/test/state_pattern/active_record/schema.rb +7 -0
  89. data/test/state_pattern/active_record/test_helper.rb +25 -0
  90. data/test/test_helper.rb +1 -0
  91. metadata +204 -24
  92. data/VERSION +0 -1
  93. data/state_pattern.gemspec +0 -59
@@ -3,6 +3,7 @@ require 'expectations'
3
3
 
4
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
5
  $LOAD_PATH.unshift(File.dirname(__FILE__))
6
+
6
7
  require 'state_pattern'
7
8
  require 'test_class_creation_helper'
8
9
 
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_pattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 3
9
+ - 0
10
+ version: 1.3.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Daniel Cadenas
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-10-12 00:00:00 -02:00
18
+ date: 2010-10-09 00:00:00 -02:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -28,18 +34,102 @@ files:
28
34
  - LICENSE
29
35
  - README.rdoc
30
36
  - Rakefile
31
- - VERSION
32
- - lib/state_pattern.rb
33
- - lib/state_pattern/invalid_transition_exception.rb
34
- - lib/state_pattern/state.rb
35
- - state_pattern.gemspec
36
- - test/arguments_of_event_delegation_test.rb
37
- - test/hook_test.rb
38
- - test/querying_test.rb
39
- - test/state_pattern_test.rb
40
- - test/test_class_creation_helper.rb
41
- - test/test_helper.rb
42
- - test/transition_validations_test.rb
37
+ - rails/init.rb
38
+ - ./lib/state_pattern/active_record.rb
39
+ - ./lib/state_pattern/invalid_transition_exception.rb
40
+ - ./lib/state_pattern/state.rb
41
+ - ./lib/state_pattern.rb
42
+ - ./examples/rails_2_3_8_button_example/app/controllers/application_controller.rb
43
+ - ./examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb
44
+ - ./examples/rails_2_3_8_button_example/app/helpers/application_helper.rb
45
+ - ./examples/rails_2_3_8_button_example/app/models/button/off.rb
46
+ - ./examples/rails_2_3_8_button_example/app/models/button/on.rb
47
+ - ./examples/rails_2_3_8_button_example/app/models/button.rb
48
+ - ./examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb
49
+ - ./examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb
50
+ - ./examples/rails_2_3_8_button_example/config/boot.rb
51
+ - ./examples/rails_2_3_8_button_example/config/database.yml
52
+ - ./examples/rails_2_3_8_button_example/config/environment.rb
53
+ - ./examples/rails_2_3_8_button_example/config/environments/development.rb
54
+ - ./examples/rails_2_3_8_button_example/config/environments/production.rb
55
+ - ./examples/rails_2_3_8_button_example/config/environments/test.rb
56
+ - ./examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb
57
+ - ./examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb
58
+ - ./examples/rails_2_3_8_button_example/config/initializers/inflections.rb
59
+ - ./examples/rails_2_3_8_button_example/config/initializers/mime_types.rb
60
+ - ./examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb
61
+ - ./examples/rails_2_3_8_button_example/config/initializers/session_store.rb
62
+ - ./examples/rails_2_3_8_button_example/config/locales/en.yml
63
+ - ./examples/rails_2_3_8_button_example/config/routes.rb
64
+ - ./examples/rails_2_3_8_button_example/db/development.sqlite3
65
+ - ./examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb
66
+ - ./examples/rails_2_3_8_button_example/db/schema.rb
67
+ - ./examples/rails_2_3_8_button_example/db/seeds.rb
68
+ - ./examples/rails_2_3_8_button_example/db/test.sqlite3
69
+ - ./examples/rails_2_3_8_button_example/doc/README_FOR_APP
70
+ - ./examples/rails_2_3_8_button_example/public/images/rails.png
71
+ - ./examples/rails_2_3_8_button_example/public/javascripts/application.js
72
+ - ./examples/rails_2_3_8_button_example/public/javascripts/controls.js
73
+ - ./examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js
74
+ - ./examples/rails_2_3_8_button_example/public/javascripts/effects.js
75
+ - ./examples/rails_2_3_8_button_example/public/javascripts/prototype.js
76
+ - ./examples/rails_2_3_8_button_example/public/javascripts/rails.js
77
+ - ./examples/rails_2_3_8_button_example/Rakefile
78
+ - ./examples/rails_2_3_8_button_example/README
79
+ - ./examples/rails_2_3_8_button_example/script/about
80
+ - ./examples/rails_2_3_8_button_example/script/console
81
+ - ./examples/rails_2_3_8_button_example/script/dbconsole
82
+ - ./examples/rails_2_3_8_button_example/script/destroy
83
+ - ./examples/rails_2_3_8_button_example/script/generate
84
+ - ./examples/rails_2_3_8_button_example/script/performance/benchmarker
85
+ - ./examples/rails_2_3_8_button_example/script/performance/profiler
86
+ - ./examples/rails_2_3_8_button_example/script/plugin
87
+ - ./examples/rails_2_3_8_button_example/script/runner
88
+ - ./examples/rails_2_3_8_button_example/script/server
89
+ - ./examples/rails_3_button_example/app/controllers/application_controller.rb
90
+ - ./examples/rails_3_button_example/app/controllers/buttons_controller.rb
91
+ - ./examples/rails_3_button_example/app/models/button/off.rb
92
+ - ./examples/rails_3_button_example/app/models/button/on.rb
93
+ - ./examples/rails_3_button_example/app/models/button.rb
94
+ - ./examples/rails_3_button_example/app/views/buttons/show.html.erb
95
+ - ./examples/rails_3_button_example/app/views/layouts/application.html.erb
96
+ - ./examples/rails_3_button_example/config/application.rb
97
+ - ./examples/rails_3_button_example/config/boot.rb
98
+ - ./examples/rails_3_button_example/config/database.yml
99
+ - ./examples/rails_3_button_example/config/environment.rb
100
+ - ./examples/rails_3_button_example/config/environments/development.rb
101
+ - ./examples/rails_3_button_example/config/initializers/backtrace_silencers.rb
102
+ - ./examples/rails_3_button_example/config/initializers/inflections.rb
103
+ - ./examples/rails_3_button_example/config/initializers/mime_types.rb
104
+ - ./examples/rails_3_button_example/config/initializers/secret_token.rb
105
+ - ./examples/rails_3_button_example/config/initializers/session_store.rb
106
+ - ./examples/rails_3_button_example/config/locales/en.yml
107
+ - ./examples/rails_3_button_example/config/routes.rb
108
+ - ./examples/rails_3_button_example/config.ru
109
+ - ./examples/rails_3_button_example/db/development.sqlite3
110
+ - ./examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb
111
+ - ./examples/rails_3_button_example/db/schema.rb
112
+ - ./examples/rails_3_button_example/db/test.sqlite3
113
+ - ./examples/rails_3_button_example/Gemfile
114
+ - ./examples/rails_3_button_example/Gemfile.lock
115
+ - ./examples/rails_3_button_example/log/development.log
116
+ - ./examples/rails_3_button_example/public/javascripts/application.js
117
+ - ./examples/rails_3_button_example/public/javascripts/prototype.js
118
+ - ./examples/rails_3_button_example/public/javascripts/rails.js
119
+ - ./examples/rails_3_button_example/public/stylesheets/scaffold.css
120
+ - ./examples/rails_3_button_example/Rakefile
121
+ - ./examples/rails_3_button_example/script/rails
122
+ - ./examples/semaphore.rb
123
+ - ./test/arguments_of_event_delegation_test.rb
124
+ - ./test/hook_test.rb
125
+ - ./test/querying_test.rb
126
+ - ./test/state_pattern/active_record/active_record_test.rb
127
+ - ./test/state_pattern/active_record/schema.rb
128
+ - ./test/state_pattern/active_record/test_helper.rb
129
+ - ./test/state_pattern_test.rb
130
+ - ./test/test_class_creation_helper.rb
131
+ - ./test/test_helper.rb
132
+ - ./test/transition_validations_test.rb
43
133
  has_rdoc: true
44
134
  homepage: http://github.com/dcadenas/state_pattern
45
135
  licenses: []
@@ -50,29 +140,119 @@ rdoc_options:
50
140
  require_paths:
51
141
  - lib
52
142
  required_ruby_version: !ruby/object:Gem::Requirement
143
+ none: false
53
144
  requirements:
54
145
  - - ">="
55
146
  - !ruby/object:Gem::Version
147
+ hash: 3
148
+ segments:
149
+ - 0
56
150
  version: "0"
57
- version:
58
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
+ none: false
59
153
  requirements:
60
154
  - - ">="
61
155
  - !ruby/object:Gem::Version
156
+ hash: 3
157
+ segments:
158
+ - 0
62
159
  version: "0"
63
- version:
64
160
  requirements: []
65
161
 
66
162
  rubyforge_project: statepattern
67
- rubygems_version: 1.3.3
163
+ rubygems_version: 1.3.7
68
164
  signing_key:
69
165
  specification_version: 3
70
166
  summary: A Ruby state pattern implementation
71
167
  test_files:
72
- - test/arguments_of_event_delegation_test.rb
73
- - test/hook_test.rb
74
- - test/querying_test.rb
75
- - test/state_pattern_test.rb
76
- - test/test_class_creation_helper.rb
77
- - test/test_helper.rb
78
- - test/transition_validations_test.rb
168
+ - ./examples/rails_2_3_8_button_example/app/controllers/application_controller.rb
169
+ - ./examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb
170
+ - ./examples/rails_2_3_8_button_example/app/helpers/application_helper.rb
171
+ - ./examples/rails_2_3_8_button_example/app/models/button/off.rb
172
+ - ./examples/rails_2_3_8_button_example/app/models/button/on.rb
173
+ - ./examples/rails_2_3_8_button_example/app/models/button.rb
174
+ - ./examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb
175
+ - ./examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb
176
+ - ./examples/rails_2_3_8_button_example/config/boot.rb
177
+ - ./examples/rails_2_3_8_button_example/config/database.yml
178
+ - ./examples/rails_2_3_8_button_example/config/environment.rb
179
+ - ./examples/rails_2_3_8_button_example/config/environments/development.rb
180
+ - ./examples/rails_2_3_8_button_example/config/environments/production.rb
181
+ - ./examples/rails_2_3_8_button_example/config/environments/test.rb
182
+ - ./examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb
183
+ - ./examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb
184
+ - ./examples/rails_2_3_8_button_example/config/initializers/inflections.rb
185
+ - ./examples/rails_2_3_8_button_example/config/initializers/mime_types.rb
186
+ - ./examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb
187
+ - ./examples/rails_2_3_8_button_example/config/initializers/session_store.rb
188
+ - ./examples/rails_2_3_8_button_example/config/locales/en.yml
189
+ - ./examples/rails_2_3_8_button_example/config/routes.rb
190
+ - ./examples/rails_2_3_8_button_example/db/development.sqlite3
191
+ - ./examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb
192
+ - ./examples/rails_2_3_8_button_example/db/schema.rb
193
+ - ./examples/rails_2_3_8_button_example/db/seeds.rb
194
+ - ./examples/rails_2_3_8_button_example/db/test.sqlite3
195
+ - ./examples/rails_2_3_8_button_example/doc/README_FOR_APP
196
+ - ./examples/rails_2_3_8_button_example/public/images/rails.png
197
+ - ./examples/rails_2_3_8_button_example/public/javascripts/application.js
198
+ - ./examples/rails_2_3_8_button_example/public/javascripts/controls.js
199
+ - ./examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js
200
+ - ./examples/rails_2_3_8_button_example/public/javascripts/effects.js
201
+ - ./examples/rails_2_3_8_button_example/public/javascripts/prototype.js
202
+ - ./examples/rails_2_3_8_button_example/public/javascripts/rails.js
203
+ - ./examples/rails_2_3_8_button_example/Rakefile
204
+ - ./examples/rails_2_3_8_button_example/README
205
+ - ./examples/rails_2_3_8_button_example/script/about
206
+ - ./examples/rails_2_3_8_button_example/script/console
207
+ - ./examples/rails_2_3_8_button_example/script/dbconsole
208
+ - ./examples/rails_2_3_8_button_example/script/destroy
209
+ - ./examples/rails_2_3_8_button_example/script/generate
210
+ - ./examples/rails_2_3_8_button_example/script/performance/benchmarker
211
+ - ./examples/rails_2_3_8_button_example/script/performance/profiler
212
+ - ./examples/rails_2_3_8_button_example/script/plugin
213
+ - ./examples/rails_2_3_8_button_example/script/runner
214
+ - ./examples/rails_2_3_8_button_example/script/server
215
+ - ./examples/rails_3_button_example/app/controllers/application_controller.rb
216
+ - ./examples/rails_3_button_example/app/controllers/buttons_controller.rb
217
+ - ./examples/rails_3_button_example/app/models/button/off.rb
218
+ - ./examples/rails_3_button_example/app/models/button/on.rb
219
+ - ./examples/rails_3_button_example/app/models/button.rb
220
+ - ./examples/rails_3_button_example/app/views/buttons/show.html.erb
221
+ - ./examples/rails_3_button_example/app/views/layouts/application.html.erb
222
+ - ./examples/rails_3_button_example/config/application.rb
223
+ - ./examples/rails_3_button_example/config/boot.rb
224
+ - ./examples/rails_3_button_example/config/database.yml
225
+ - ./examples/rails_3_button_example/config/environment.rb
226
+ - ./examples/rails_3_button_example/config/environments/development.rb
227
+ - ./examples/rails_3_button_example/config/initializers/backtrace_silencers.rb
228
+ - ./examples/rails_3_button_example/config/initializers/inflections.rb
229
+ - ./examples/rails_3_button_example/config/initializers/mime_types.rb
230
+ - ./examples/rails_3_button_example/config/initializers/secret_token.rb
231
+ - ./examples/rails_3_button_example/config/initializers/session_store.rb
232
+ - ./examples/rails_3_button_example/config/locales/en.yml
233
+ - ./examples/rails_3_button_example/config/routes.rb
234
+ - ./examples/rails_3_button_example/config.ru
235
+ - ./examples/rails_3_button_example/db/development.sqlite3
236
+ - ./examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb
237
+ - ./examples/rails_3_button_example/db/schema.rb
238
+ - ./examples/rails_3_button_example/db/test.sqlite3
239
+ - ./examples/rails_3_button_example/Gemfile
240
+ - ./examples/rails_3_button_example/Gemfile.lock
241
+ - ./examples/rails_3_button_example/log/development.log
242
+ - ./examples/rails_3_button_example/public/javascripts/application.js
243
+ - ./examples/rails_3_button_example/public/javascripts/prototype.js
244
+ - ./examples/rails_3_button_example/public/javascripts/rails.js
245
+ - ./examples/rails_3_button_example/public/stylesheets/scaffold.css
246
+ - ./examples/rails_3_button_example/Rakefile
247
+ - ./examples/rails_3_button_example/script/rails
248
+ - ./examples/semaphore.rb
249
+ - ./test/arguments_of_event_delegation_test.rb
250
+ - ./test/hook_test.rb
251
+ - ./test/querying_test.rb
252
+ - ./test/state_pattern/active_record/active_record_test.rb
253
+ - ./test/state_pattern/active_record/schema.rb
254
+ - ./test/state_pattern/active_record/test_helper.rb
255
+ - ./test/state_pattern_test.rb
256
+ - ./test/test_class_creation_helper.rb
257
+ - ./test/test_helper.rb
258
+ - ./test/transition_validations_test.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.2.0
@@ -1,59 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{state_pattern}
5
- s.version = "1.2.0"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Daniel Cadenas"]
9
- s.date = %q{2009-10-12}
10
- s.email = %q{dcadenas@gmail.com}
11
- s.extra_rdoc_files = [
12
- "LICENSE",
13
- "README.rdoc"
14
- ]
15
- s.files = [
16
- ".document",
17
- ".gitignore",
18
- "LICENSE",
19
- "README.rdoc",
20
- "Rakefile",
21
- "VERSION",
22
- "lib/state_pattern.rb",
23
- "lib/state_pattern/invalid_transition_exception.rb",
24
- "lib/state_pattern/state.rb",
25
- "state_pattern.gemspec",
26
- "test/arguments_of_event_delegation_test.rb",
27
- "test/hook_test.rb",
28
- "test/querying_test.rb",
29
- "test/state_pattern_test.rb",
30
- "test/test_class_creation_helper.rb",
31
- "test/test_helper.rb",
32
- "test/transition_validations_test.rb"
33
- ]
34
- s.homepage = %q{http://github.com/dcadenas/state_pattern}
35
- s.rdoc_options = ["--charset=UTF-8"]
36
- s.require_paths = ["lib"]
37
- s.rubyforge_project = %q{statepattern}
38
- s.rubygems_version = %q{1.3.3}
39
- s.summary = %q{A Ruby state pattern implementation}
40
- s.test_files = [
41
- "test/arguments_of_event_delegation_test.rb",
42
- "test/hook_test.rb",
43
- "test/querying_test.rb",
44
- "test/state_pattern_test.rb",
45
- "test/test_class_creation_helper.rb",
46
- "test/test_helper.rb",
47
- "test/transition_validations_test.rb"
48
- ]
49
-
50
- if s.respond_to? :specification_version then
51
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
- s.specification_version = 3
53
-
54
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
- else
56
- end
57
- else
58
- end
59
- end