Skip to content

Commit

Permalink
updated gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jul 6, 2014
1 parent 7a06af8 commit 3750f41
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion enju_leaf.gemspec
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["spec/**/*"] - Dir["spec/dummy/log/*"] - Dir["spec/dummy/solr/{data,pids}/*"]

s.add_dependency "rails", "~> 3.2.19"
s.add_dependency "enju_biblio", "~> 0.1.0.pre53"
s.add_dependency "enju_biblio", "~> 0.1.0.pre54"
s.add_dependency "enju_library", "~> 0.1.0.pre33"
s.add_dependency "enju_manifestation_viewer", "~> 0.1.0.pre13"
s.add_dependency "redcarpet"
Expand Down
46 changes: 24 additions & 22 deletions spec/support/resque.rb
Expand Up @@ -3,28 +3,30 @@
REDIS_PID = "#{Rails.root}/tmp/pids/redis-test.pid"
REDIS_CACHE_PATH = "#{Rails.root}/tmp/cache/"

config.before(:suite) do
redis_options = {
"daemonize" => 'yes',
"pidfile" => REDIS_PID,
"port" => 9736,
"timeout" => 300,
"save 900" => 1,
"save 300" => 1,
"save 60" => 10000,
"dbfilename" => "dump.rdb",
"dir" => REDIS_CACHE_PATH,
"loglevel" => "debug",
"logfile" => "stdout",
"databases" => 16
}.map { |k, v| "#{k} #{v}" }.join("\n")
`echo '#{redis_options}' | redis-server -`
end
unless ENV["TRAVIS"]
config.before(:suite) do
redis_options = {
"daemonize" => 'yes',
"pidfile" => REDIS_PID,
"port" => 9736,
"timeout" => 300,
"save 900" => 1,
"save 300" => 1,
"save 60" => 10000,
"dbfilename" => "dump.rdb",
"dir" => REDIS_CACHE_PATH,
"loglevel" => "debug",
"logfile" => "stdout",
"databases" => 16
}.map { |k, v| "#{k} #{v}" }.join("\n")
`echo '#{redis_options}' | redis-server -`
end

config.after(:suite) do
%x{
cat #{REDIS_PID} | xargs kill -QUIT
rm -f #{REDIS_CACHE_PATH}dump.rdb
}
config.after(:suite) do
%x{
cat #{REDIS_PID} | xargs kill -QUIT
rm -f #{REDIS_CACHE_PATH}dump.rdb
}
end
end
end

0 comments on commit 3750f41

Please sign in to comment.