backlog 0.3.0 → 0.3.1

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.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/README.txt +1 -1
  3. data/Rakefile +1 -1
  4. data/bin/backlog +13 -7
  5. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.1 2007-08-02
2
+
3
+ * Improved setup on linux
4
+
1
5
  == 0.3.0 2007-08-02
2
6
 
3
7
  * Improved workflow
data/README.txt CHANGED
@@ -11,7 +11,7 @@ wether you are a single persion or a small or large group.
11
11
  * Install RubyGems
12
12
  * Install PostgreSQL
13
13
  * run <tt>sudo gem install backlog -y</tt>
14
- * run <tt>sudo backlog setup</tt>
14
+ * run <tt>sudo backlog setup_linux</tt>
15
15
  * run <tt>sudo backlog start</tt>
16
16
 
17
17
  === Updates
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ require 'tasks/rails'
11
11
 
12
12
  require 'hoe'
13
13
 
14
- Hoe.new("backlog", '0.3.0') do |p|
14
+ Hoe.new("backlog", '0.3.1') do |p|
15
15
  p.rubyforge_name = "backlog"
16
16
  p.summary = "Application to aid collecting, processing, organizing, reviewing and doing tasks."
17
17
  p.description = p.paragraphs_of('README.txt', 0..-1).join("\n\n")
data/bin/backlog CHANGED
@@ -9,9 +9,9 @@ require 'rubygems'
9
9
  require 'fileutils'
10
10
 
11
11
  APPLICATION = 'backlog'
12
- GEM = Gem::searcher.find(APPLICATION)
13
- if GEM
14
- INSTALL_DIR = "/usr/lib/ruby/gems/1.8/gems/#{APPLICATION}-#{GEM.version}"
12
+
13
+ gem = Gem::searcher.find(APPLICATION)
14
+ INSTALL_DIR = "/usr/lib/ruby/gems/1.8/gems/#{APPLICATION}-#{gem.version}"
15
15
  else
16
16
  INSTALL_DIR = "/usr/local/backlog/current"
17
17
  end
@@ -29,15 +29,21 @@ case ARGV[0]
29
29
  puts `mongrel_rails restart -c #{INSTALL_DIR}`
30
30
  when 'status'
31
31
  puts `ps -ef | grep backlog`
32
- when 'setup'
33
- FileUtils.cp "#{INSTALL_DIR}/bin/#{APPLICATION}_init.d", "/etc/init.d/#{APPLICATION}"
34
- dbs = `su - postgres -c "echo '\\l' | psql postgres"`
32
+ when 'setup_linux'
33
+ current_user = `whoami`
34
+ users = `su - postgres -c "echo '\\du' | psql template1"`
35
+ puts users
36
+ unless users =~ /root/
37
+ puts `su - postgres -c "createuser -dA #{current_user}"`
38
+ end
39
+ dbs = `su - postgres -c "echo '\\l' | psql template1"`
35
40
  puts dbs
36
41
  unless dbs =~ /#{APPLICATION}_production/
37
42
  puts `su - postgres -c "createdb #{APPLICATION}_production"`
38
- Dir.chdir INSTALL_DIR
39
43
  end
44
+ Dir.chdir INSTALL_DIR
40
45
  puts `rake db:migrate RAILS_ENV=production`
46
+ FileUtils.cp "#{INSTALL_DIR}/bin/#{APPLICATION}_init.d", "/etc/init.d/#{APPLICATION}"
41
47
  else
42
48
  puts "Usage: #$0 {start|stop|restart|status|setup}"
43
49
  exit 1
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
6
+ version: 0.3.1
7
7
  date: 2007-08-02 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
@@ -11,7 +11,7 @@ require_paths:
11
11
  email: ryand-ruby@zenspider.com
12
12
  homepage: http://www.zenspider.com/ZSS/Products/backlog/
13
13
  rubyforge_project: backlog
14
- description: == Backlog Welcome to Backlog! Backlog is a tool to help you collect and organize all your tasks, wether you are a single persion or a small or large group. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo backlog stop</tt> * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog start</tt>
14
+ description: == Backlog Welcome to Backlog! Backlog is a tool to help you collect and organize all your tasks, wether you are a single persion or a small or large group. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup_linux</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo backlog stop</tt> * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog start</tt>
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin