nimboids-spork 0.8.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/Gemfile +6 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +129 -0
  4. data/assets/bootstrap.rb +29 -0
  5. data/bin/spork +20 -0
  6. data/ext/mkrf_conf.rb +26 -0
  7. data/features/at_exit_during_each_run.feature +36 -0
  8. data/features/cucumber_rails_integration.feature +107 -0
  9. data/features/diagnostic_mode.feature +41 -0
  10. data/features/gemfiles/rails3.0/Gemfile +10 -0
  11. data/features/gemfiles/rails3.0/Gemfile.lock +116 -0
  12. data/features/rails_delayed_loading_workarounds.feature +150 -0
  13. data/features/rspec_rails_integration.feature +92 -0
  14. data/features/spork_debugger.feature +108 -0
  15. data/features/steps/general_steps.rb +3 -0
  16. data/features/steps/rails_steps.rb +67 -0
  17. data/features/steps/sandbox_steps.rb +115 -0
  18. data/features/support/background_job.rb +63 -0
  19. data/features/support/bundler_helpers.rb +41 -0
  20. data/features/support/env.rb +105 -0
  21. data/features/unknown_app_framework.feature +42 -0
  22. data/lib/spork.rb +155 -0
  23. data/lib/spork/app_framework.rb +80 -0
  24. data/lib/spork/app_framework/padrino.rb +22 -0
  25. data/lib/spork/app_framework/rails.rb +82 -0
  26. data/lib/spork/app_framework/unknown.rb +6 -0
  27. data/lib/spork/custom_io_streams.rb +25 -0
  28. data/lib/spork/diagnoser.rb +105 -0
  29. data/lib/spork/ext/rails-reloader.rb +14 -0
  30. data/lib/spork/ext/ruby-debug.rb +150 -0
  31. data/lib/spork/forker.rb +71 -0
  32. data/lib/spork/run_strategy.rb +44 -0
  33. data/lib/spork/run_strategy/forking.rb +32 -0
  34. data/lib/spork/run_strategy/magazine.rb +141 -0
  35. data/lib/spork/run_strategy/magazine/magazine_slave.rb +30 -0
  36. data/lib/spork/run_strategy/magazine/magazine_slave_provider.rb +27 -0
  37. data/lib/spork/run_strategy/magazine/ring_server.rb +10 -0
  38. data/lib/spork/runner.rb +90 -0
  39. data/lib/spork/server.rb +76 -0
  40. data/lib/spork/test_framework.rb +167 -0
  41. data/lib/spork/test_framework/cucumber.rb +24 -0
  42. data/lib/spork/test_framework/rspec.rb +14 -0
  43. data/spec/spec_helper.rb +113 -0
  44. data/spec/spork/app_framework/rails_spec.rb +22 -0
  45. data/spec/spork/app_framework/unknown_spec.rb +12 -0
  46. data/spec/spork/app_framework_spec.rb +16 -0
  47. data/spec/spork/diagnoser_spec.rb +105 -0
  48. data/spec/spork/forker_spec.rb +44 -0
  49. data/spec/spork/run_strategy/forking_spec.rb +38 -0
  50. data/spec/spork/runner_spec.rb +50 -0
  51. data/spec/spork/server_spec.rb +15 -0
  52. data/spec/spork/test_framework/cucumber_spec.rb +11 -0
  53. data/spec/spork/test_framework/rspec_spec.rb +10 -0
  54. data/spec/spork/test_framework_shared_examples.rb +23 -0
  55. data/spec/spork/test_framework_spec.rb +90 -0
  56. data/spec/spork_spec.rb +153 -0
  57. data/spec/support/fake_framework.rb +15 -0
  58. data/spec/support/fake_run_strategy.rb +21 -0
  59. metadata +158 -0
@@ -0,0 +1,21 @@
1
+ class FakeRunStrategy < Spork::RunStrategy
2
+ def initialize(*args)
3
+ end
4
+
5
+ def self.available?
6
+ true
7
+ end
8
+
9
+ def run(argv, stderr, stdout)
10
+ sleep(@wait_time || 0.5)
11
+ true
12
+ end
13
+
14
+ def running?
15
+ false
16
+ end
17
+
18
+ def preload
19
+ true
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nimboids-spork
3
+ version: !ruby/object:Gem::Version
4
+ hash: 249
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 8
9
+ - 99
10
+ version: 0.8.99
11
+ platform: ruby
12
+ authors:
13
+ - Tim Harper
14
+ - Donald Parish
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-11-30 00:00:00 +00:00
20
+ default_executable: spork
21
+ dependencies: []
22
+
23
+ description: A forking Drb spec server
24
+ email:
25
+ - timcharper+spork@gmail.com
26
+ executables:
27
+ - spork
28
+ extensions:
29
+ - ext/mkrf_conf.rb
30
+ extra_rdoc_files:
31
+ - MIT-LICENSE
32
+ - README.rdoc
33
+ files:
34
+ - Gemfile
35
+ - README.rdoc
36
+ - MIT-LICENSE
37
+ - lib/spork/app_framework/padrino.rb
38
+ - lib/spork/app_framework/rails.rb
39
+ - lib/spork/app_framework/unknown.rb
40
+ - lib/spork/app_framework.rb
41
+ - lib/spork/custom_io_streams.rb
42
+ - lib/spork/diagnoser.rb
43
+ - lib/spork/ext/rails-reloader.rb
44
+ - lib/spork/ext/ruby-debug.rb
45
+ - lib/spork/forker.rb
46
+ - lib/spork/run_strategy/forking.rb
47
+ - lib/spork/run_strategy/magazine/magazine_slave.rb
48
+ - lib/spork/run_strategy/magazine/magazine_slave_provider.rb
49
+ - lib/spork/run_strategy/magazine/ring_server.rb
50
+ - lib/spork/run_strategy/magazine.rb
51
+ - lib/spork/run_strategy.rb
52
+ - lib/spork/runner.rb
53
+ - lib/spork/server.rb
54
+ - lib/spork/test_framework/cucumber.rb
55
+ - lib/spork/test_framework/rspec.rb
56
+ - lib/spork/test_framework.rb
57
+ - lib/spork.rb
58
+ - assets/bootstrap.rb
59
+ - features/at_exit_during_each_run.feature
60
+ - features/cucumber_rails_integration.feature
61
+ - features/diagnostic_mode.feature
62
+ - features/gemfiles/rails3.0/Gemfile
63
+ - features/gemfiles/rails3.0/Gemfile.lock
64
+ - features/rails_delayed_loading_workarounds.feature
65
+ - features/rspec_rails_integration.feature
66
+ - features/spork_debugger.feature
67
+ - features/steps/general_steps.rb
68
+ - features/steps/rails_steps.rb
69
+ - features/steps/sandbox_steps.rb
70
+ - features/support/background_job.rb
71
+ - features/support/bundler_helpers.rb
72
+ - features/support/env.rb
73
+ - features/unknown_app_framework.feature
74
+ - spec/spec_helper.rb
75
+ - spec/spork/app_framework/rails_spec.rb
76
+ - spec/spork/app_framework/unknown_spec.rb
77
+ - spec/spork/app_framework_spec.rb
78
+ - spec/spork/diagnoser_spec.rb
79
+ - spec/spork/forker_spec.rb
80
+ - spec/spork/run_strategy/forking_spec.rb
81
+ - spec/spork/runner_spec.rb
82
+ - spec/spork/server_spec.rb
83
+ - spec/spork/test_framework/cucumber_spec.rb
84
+ - spec/spork/test_framework/rspec_spec.rb
85
+ - spec/spork/test_framework_shared_examples.rb
86
+ - spec/spork/test_framework_spec.rb
87
+ - spec/spork_spec.rb
88
+ - spec/support/fake_framework.rb
89
+ - spec/support/fake_run_strategy.rb
90
+ - bin/spork
91
+ - ext/mkrf_conf.rb
92
+ has_rdoc: true
93
+ homepage: http://github.com/timcharper/spork
94
+ licenses: []
95
+
96
+ post_install_message:
97
+ rdoc_options:
98
+ - --main
99
+ - README.rdoc
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ hash: 3
108
+ segments:
109
+ - 0
110
+ version: "0"
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: 3
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ requirements: []
121
+
122
+ rubyforge_project: spork
123
+ rubygems_version: 1.3.7
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: spork
127
+ test_files:
128
+ - features/at_exit_during_each_run.feature
129
+ - features/cucumber_rails_integration.feature
130
+ - features/diagnostic_mode.feature
131
+ - features/gemfiles/rails3.0/Gemfile
132
+ - features/gemfiles/rails3.0/Gemfile.lock
133
+ - features/rails_delayed_loading_workarounds.feature
134
+ - features/rspec_rails_integration.feature
135
+ - features/spork_debugger.feature
136
+ - features/steps/general_steps.rb
137
+ - features/steps/rails_steps.rb
138
+ - features/steps/sandbox_steps.rb
139
+ - features/support/background_job.rb
140
+ - features/support/bundler_helpers.rb
141
+ - features/support/env.rb
142
+ - features/unknown_app_framework.feature
143
+ - spec/spec_helper.rb
144
+ - spec/spork/app_framework/rails_spec.rb
145
+ - spec/spork/app_framework/unknown_spec.rb
146
+ - spec/spork/app_framework_spec.rb
147
+ - spec/spork/diagnoser_spec.rb
148
+ - spec/spork/forker_spec.rb
149
+ - spec/spork/run_strategy/forking_spec.rb
150
+ - spec/spork/runner_spec.rb
151
+ - spec/spork/server_spec.rb
152
+ - spec/spork/test_framework/cucumber_spec.rb
153
+ - spec/spork/test_framework/rspec_spec.rb
154
+ - spec/spork/test_framework_shared_examples.rb
155
+ - spec/spork/test_framework_spec.rb
156
+ - spec/spork_spec.rb
157
+ - spec/support/fake_framework.rb
158
+ - spec/support/fake_run_strategy.rb