zfben_rails_rake 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  require 'rainbow'
2
2
  def sys cmd
3
- STDOUT.puts cmd.color(:black).background(:white)
3
+ STDOUT.print (cmd + "\n").color(:black).background(:white)
4
4
  system cmd
5
5
  end
6
6
 
7
7
  def err msg
8
- STDOUT.puts msg.color(:yellow).background(:red)
8
+ STDOUT.print (msg + "\n").color(:yellow).background(:red)
9
9
  exit!
10
10
  end
@@ -1,7 +1,7 @@
1
1
  namespace :unicorn do
2
2
  desc 'start server'
3
3
  task :start, [:env, :config] do |task, args|
4
- args = { :env => 'development', :config => 'unicorn.rb' }.merge args.to_hash
4
+ args = { :env => 'production', :config => 'unicorn.rb' }.merge args.to_hash
5
5
  cmd = 'unicorn_rails'
6
6
  cmd << ' -c ' << args[:config] if File.exists?(File.join(Rails.root, args[:config]))
7
7
  cmd << ' -E ' << args[:env]
@@ -1,3 +1,3 @@
1
1
  module ZfbenRailsRake
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: zfben_rails_rake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.12
5
+ version: 0.0.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-03 00:00:00 +08:00
13
+ date: 2011-08-05 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency