Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 8 commits
  • 6 files changed
  • 1 commit comment
  • 2 contributors
View
3  HISTORY
@@ -1,3 +1,6 @@
+ 1.2.1
+ - Vibes fix for Ruby 1.8.7 and new Rakefile to make building the gem easier
+
1.2.0
- fixes to docs
- added license
View
22 Rakefile
@@ -0,0 +1,22 @@
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "jk-bj"
+ gem.summary = %Q{Minor fork of ahoward/bj}
+ gem.description = %Q{Forked ahoward/bj because the way the bin/bj before_run method interacts with Main's logger= instance menthod breaks in Ruby 1.8.7. Forked again to add missing 'require logger'}
+ gem.email = ["josh.warchol@vibes.com", 'jk@jkraemer.net']
+ gem.homepage = "http://github.com/jkraemer/bj"
+ gem.authors = ["Ara T. Howard", "Joshua Warchol", "Jens Kraemer"]
+ gem.add_dependency 'main', '>= 2.6.0'
+ gem.add_dependency 'systemu', '>= 1.2.0'
+ gem.add_dependency 'orderedhash', '>= 0.0.3'
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Bj (or a dependency) not available."
+ puts $!
+end
+
View
1  VERSION
@@ -0,0 +1 @@
+1.2.3
View
4 bin/bj
@@ -46,7 +46,7 @@ Main {
In addition the background runner process logs all commands run and their
exit_status to a log named using the following convention:
- rails_root/log/bj.#{ HOSTNAME }.#{ RAILS_ENV }.log
+ rails_root/log/bj.\#{ HOSTNAME }.\#{ RAILS_ENV }.log
Bj allows you to submit jobs to multiple databases; for instance, if your
application is running in development mode you may do:
@@ -518,7 +518,7 @@ Main {
end
def before_run
- self.logger = param["log"].value
+ self.logger = param["log"].value if param["log"].given?
Bj.logger = logger
set_rails_root(param["rails_root"].value) if param["rails_root"].given?
set_rails_env(param["rails_env"].value) if param["rails_env"].given?
View
1  lib/bj/logger.rb
@@ -1,3 +1,4 @@
+require 'logger'
class Bj
class Logger < ::Logger
def self.new *a, &b
View
3  rakefile
@@ -1,3 +0,0 @@
-task :foobar do
- puts 42
-end

Showing you all comments on commits in this comparison.

@nilbus

Thanks for all your fixes to bj :-)

Something went wrong with that request. Please try again.