ambethia-bj 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/HISTORY +80 -0
  2. data/LICENSE +1 -0
  3. data/README +318 -0
  4. data/Rakefile +20 -0
  5. data/TODO +53 -0
  6. data/VERSION +1 -0
  7. data/bin/bj +692 -0
  8. data/bj.gemspec +150 -0
  9. data/init.rb +1 -0
  10. data/install.rb +214 -0
  11. data/lib/bj.rb +85 -0
  12. data/lib/bj/api.rb +164 -0
  13. data/lib/bj/bj.rb +72 -0
  14. data/lib/bj/errors.rb +4 -0
  15. data/lib/bj/joblist.rb +112 -0
  16. data/lib/bj/logger.rb +50 -0
  17. data/lib/bj/runner.rb +330 -0
  18. data/lib/bj/stdext.rb +86 -0
  19. data/lib/bj/table.rb +426 -0
  20. data/lib/bj/util.rb +133 -0
  21. data/plugin/HISTORY +3 -0
  22. data/plugin/README +142 -0
  23. data/plugin/Rakefile +22 -0
  24. data/plugin/init.rb +33 -0
  25. data/plugin/install.rb +95 -0
  26. data/plugin/script/bj +55 -0
  27. data/plugin/tasks/bj_tasks.rake +4 -0
  28. data/plugin/test/bj_test.rb +8 -0
  29. data/plugin/uninstall.rb +1 -0
  30. data/spec/bj.rb +80 -0
  31. data/spec/helper.rb +85 -0
  32. data/spec/rails_root/README +256 -0
  33. data/spec/rails_root/Rakefile +10 -0
  34. data/spec/rails_root/app/controllers/application.rb +15 -0
  35. data/spec/rails_root/app/helpers/application_helper.rb +3 -0
  36. data/spec/rails_root/config/boot.rb +109 -0
  37. data/spec/rails_root/config/database.yml +23 -0
  38. data/spec/rails_root/config/environment.rb +67 -0
  39. data/spec/rails_root/config/environments/development.rb +17 -0
  40. data/spec/rails_root/config/environments/production.rb +22 -0
  41. data/spec/rails_root/config/environments/test.rb +22 -0
  42. data/spec/rails_root/config/initializers/inflections.rb +10 -0
  43. data/spec/rails_root/config/initializers/mime_types.rb +5 -0
  44. data/spec/rails_root/config/initializers/new_rails_defaults.rb +15 -0
  45. data/spec/rails_root/config/routes.rb +41 -0
  46. data/spec/rails_root/db/development.sqlite3 +0 -0
  47. data/spec/rails_root/db/migrate/20080909151517_bj_migration0.rb +8 -0
  48. data/spec/rails_root/db/schema.rb +62 -0
  49. data/spec/rails_root/doc/README_FOR_APP +2 -0
  50. data/spec/rails_root/log/development.log +141 -0
  51. data/spec/rails_root/log/production.log +0 -0
  52. data/spec/rails_root/log/server.log +0 -0
  53. data/spec/rails_root/log/test.log +0 -0
  54. data/spec/rails_root/public/404.html +30 -0
  55. data/spec/rails_root/public/422.html +30 -0
  56. data/spec/rails_root/public/500.html +30 -0
  57. data/spec/rails_root/public/dispatch.cgi +10 -0
  58. data/spec/rails_root/public/dispatch.fcgi +24 -0
  59. data/spec/rails_root/public/dispatch.rb +10 -0
  60. data/spec/rails_root/public/favicon.ico +0 -0
  61. data/spec/rails_root/public/images/rails.png +0 -0
  62. data/spec/rails_root/public/index.html +274 -0
  63. data/spec/rails_root/public/javascripts/application.js +2 -0
  64. data/spec/rails_root/public/javascripts/controls.js +963 -0
  65. data/spec/rails_root/public/javascripts/dragdrop.js +972 -0
  66. data/spec/rails_root/public/javascripts/effects.js +1120 -0
  67. data/spec/rails_root/public/javascripts/prototype.js +4225 -0
  68. data/spec/rails_root/public/robots.txt +5 -0
  69. data/spec/rails_root/script/about +3 -0
  70. data/spec/rails_root/script/bj +679 -0
  71. data/spec/rails_root/script/console +3 -0
  72. data/spec/rails_root/script/dbconsole +3 -0
  73. data/spec/rails_root/script/destroy +3 -0
  74. data/spec/rails_root/script/generate +3 -0
  75. data/spec/rails_root/script/performance/benchmarker +3 -0
  76. data/spec/rails_root/script/performance/profiler +3 -0
  77. data/spec/rails_root/script/performance/request +3 -0
  78. data/spec/rails_root/script/plugin +3 -0
  79. data/spec/rails_root/script/process/inspector +3 -0
  80. data/spec/rails_root/script/process/reaper +3 -0
  81. data/spec/rails_root/script/process/spawner +3 -0
  82. data/spec/rails_root/script/runner +3 -0
  83. data/spec/rails_root/script/server +3 -0
  84. data/spec/rails_root/test/test_helper.rb +38 -0
  85. data/todo.yml +23 -0
  86. metadata +184 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/request'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class Test::Unit::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
@@ -0,0 +1,23 @@
1
+
2
+
3
+ todo:
4
+
5
+ - handle the timezone issue
6
+
7
+ - fix docs regarding the number of runners that get automatically spawned
8
+
9
+ - deal with text vs. varchar?
10
+
11
+ - fix the command-line submission
12
+
13
+ - make setting up via notickle easier
14
+
15
+ - make crontab setup easier
16
+
17
+
18
+
19
+ done:
20
+
21
+ - move from attributes.rb to fattr.rb
22
+
23
+
metadata ADDED
@@ -0,0 +1,184 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ambethia-bj
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.1
5
+ platform: ruby
6
+ authors:
7
+ - Ara T. Howard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-23 00:00:00 -07:00
13
+ default_executable: bj
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: main
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.6.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: systemu
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: orderedhash
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.0.3
44
+ version:
45
+ description: Backgroundjob (Bj) is a brain dead simple, zero admin, background priority queue for Rails.
46
+ email: ara.t.howard@gmail.com
47
+ executables:
48
+ - bj
49
+ extensions: []
50
+
51
+ extra_rdoc_files:
52
+ - LICENSE
53
+ - README
54
+ files:
55
+ - HISTORY
56
+ - LICENSE
57
+ - README
58
+ - Rakefile
59
+ - TODO
60
+ - VERSION
61
+ - bin/bj
62
+ - bj.gemspec
63
+ - init.rb
64
+ - install.rb
65
+ - lib/bj.rb
66
+ - lib/bj/api.rb
67
+ - lib/bj/bj.rb
68
+ - lib/bj/errors.rb
69
+ - lib/bj/joblist.rb
70
+ - lib/bj/logger.rb
71
+ - lib/bj/runner.rb
72
+ - lib/bj/stdext.rb
73
+ - lib/bj/table.rb
74
+ - lib/bj/util.rb
75
+ - plugin/HISTORY
76
+ - plugin/README
77
+ - plugin/Rakefile
78
+ - plugin/init.rb
79
+ - plugin/install.rb
80
+ - plugin/script/bj
81
+ - plugin/tasks/bj_tasks.rake
82
+ - plugin/test/bj_test.rb
83
+ - plugin/uninstall.rb
84
+ - spec/bj.rb
85
+ - spec/helper.rb
86
+ - spec/rails_root/README
87
+ - spec/rails_root/Rakefile
88
+ - spec/rails_root/app/controllers/application.rb
89
+ - spec/rails_root/app/helpers/application_helper.rb
90
+ - spec/rails_root/config/boot.rb
91
+ - spec/rails_root/config/database.yml
92
+ - spec/rails_root/config/environment.rb
93
+ - spec/rails_root/config/environments/development.rb
94
+ - spec/rails_root/config/environments/production.rb
95
+ - spec/rails_root/config/environments/test.rb
96
+ - spec/rails_root/config/initializers/inflections.rb
97
+ - spec/rails_root/config/initializers/mime_types.rb
98
+ - spec/rails_root/config/initializers/new_rails_defaults.rb
99
+ - spec/rails_root/config/routes.rb
100
+ - spec/rails_root/db/development.sqlite3
101
+ - spec/rails_root/db/migrate/20080909151517_bj_migration0.rb
102
+ - spec/rails_root/db/schema.rb
103
+ - spec/rails_root/doc/README_FOR_APP
104
+ - spec/rails_root/log/development.log
105
+ - spec/rails_root/log/production.log
106
+ - spec/rails_root/log/server.log
107
+ - spec/rails_root/log/test.log
108
+ - spec/rails_root/public/404.html
109
+ - spec/rails_root/public/422.html
110
+ - spec/rails_root/public/500.html
111
+ - spec/rails_root/public/dispatch.cgi
112
+ - spec/rails_root/public/dispatch.fcgi
113
+ - spec/rails_root/public/dispatch.rb
114
+ - spec/rails_root/public/favicon.ico
115
+ - spec/rails_root/public/images/rails.png
116
+ - spec/rails_root/public/index.html
117
+ - spec/rails_root/public/javascripts/application.js
118
+ - spec/rails_root/public/javascripts/controls.js
119
+ - spec/rails_root/public/javascripts/dragdrop.js
120
+ - spec/rails_root/public/javascripts/effects.js
121
+ - spec/rails_root/public/javascripts/prototype.js
122
+ - spec/rails_root/public/robots.txt
123
+ - spec/rails_root/script/about
124
+ - spec/rails_root/script/bj
125
+ - spec/rails_root/script/console
126
+ - spec/rails_root/script/dbconsole
127
+ - spec/rails_root/script/destroy
128
+ - spec/rails_root/script/generate
129
+ - spec/rails_root/script/performance/benchmarker
130
+ - spec/rails_root/script/performance/profiler
131
+ - spec/rails_root/script/performance/request
132
+ - spec/rails_root/script/plugin
133
+ - spec/rails_root/script/process/inspector
134
+ - spec/rails_root/script/process/reaper
135
+ - spec/rails_root/script/process/spawner
136
+ - spec/rails_root/script/runner
137
+ - spec/rails_root/script/server
138
+ - spec/rails_root/test/test_helper.rb
139
+ - todo.yml
140
+ has_rdoc: false
141
+ homepage:
142
+ licenses:
143
+ post_install_message:
144
+ rdoc_options:
145
+ - --charset=UTF-8
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: "0"
153
+ version:
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: "0"
159
+ version:
160
+ requirements: []
161
+
162
+ rubyforge_project:
163
+ rubygems_version: 1.3.5
164
+ signing_key:
165
+ specification_version: 3
166
+ summary: Backgroundjob (Bj) is a brain dead simple, zero admin, background priority queue for Rails.
167
+ test_files:
168
+ - spec/bj.rb
169
+ - spec/helper.rb
170
+ - spec/rails_root/app/controllers/application.rb
171
+ - spec/rails_root/app/helpers/application_helper.rb
172
+ - spec/rails_root/config/boot.rb
173
+ - spec/rails_root/config/environment.rb
174
+ - spec/rails_root/config/environments/development.rb
175
+ - spec/rails_root/config/environments/production.rb
176
+ - spec/rails_root/config/environments/test.rb
177
+ - spec/rails_root/config/initializers/inflections.rb
178
+ - spec/rails_root/config/initializers/mime_types.rb
179
+ - spec/rails_root/config/initializers/new_rails_defaults.rb
180
+ - spec/rails_root/config/routes.rb
181
+ - spec/rails_root/db/migrate/20080909151517_bj_migration0.rb
182
+ - spec/rails_root/db/schema.rb
183
+ - spec/rails_root/public/dispatch.rb
184
+ - spec/rails_root/test/test_helper.rb