backlog 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.7.5 2007-08-19
2
+
3
+ * Changed gem to work on MacOSX
4
+ * Added missing dependency to "postgres" gem
5
+ * Made the code inline in the gem rdoc
6
+
1
7
  == 0.7.4 2007-08-18
2
8
 
3
9
  * Added missing dependency on gruff and rmagick
data/README.txt CHANGED
@@ -18,14 +18,14 @@ A timekeeping module is also included to track time spent on the different tasks
18
18
  * Install PostgreSQL
19
19
  * Install ImageMagick
20
20
  * run <tt>sudo gem install backlog -y</tt>
21
- * run <tt>sudo backlog setup_linux</tt>
21
+ * run <tt>sudo backlog setup_unix</tt>
22
22
  * run <tt>sudo backlog start</tt>
23
23
 
24
24
  === Updates
25
25
 
26
- * run <tt>sudo backlog stop</tt>
27
26
  * run <tt>sudo gem update -y</tt>
28
- * run <tt>sudo backlog start</tt>
27
+ * run <tt>sudo backlog setup_unix</tt>
28
+ * run <tt>sudo backlog restart</tt>
29
29
 
30
30
  === Configuration
31
31
 
data/Rakefile CHANGED
@@ -23,11 +23,12 @@ Hoe.new("backlog", APP::VERSION) do |p|
23
23
  p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/
24
24
  p.spec_extras = {
25
25
  :files => Dir['**/*'].reject{|file_name| file_name =~ /^(log|pkg|tmp)/},
26
- :rdoc_options => [],
26
+ :rdoc_options => ['--inline-source'],
27
+ :executables => ['backlog'],
27
28
  }
28
29
  p.need_zip = true
29
30
  p.url = 'http://rubyforge.org/projects/backlog/'
30
- p.extra_deps = [['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.9']]
31
+ p.extra_deps = [['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.9'], ['postgres', '>= 0.7.1']]
31
32
  end
32
33
 
33
34
  task :release_and_publish do
data/bin/backlog CHANGED
@@ -1,19 +1,22 @@
1
- #!/usr/bin/ruby -w
1
+ #!/usr/bin/env ruby
2
2
  #
3
3
  # backlog Startup script for the backlog application
4
4
  #
5
5
  # chkconfig: 345 88 12
6
6
  # description: Backlog
7
7
 
8
+ $VERBOSE=true
9
+
8
10
  require 'rubygems'
9
11
  require 'fileutils'
10
12
  require 'ftools'
11
13
  require 'yaml'
14
+ require 'rbconfig'
12
15
 
13
16
  APPLICATION = 'backlog'
14
17
 
15
18
  if gem = Gem::searcher.find(APPLICATION)
16
- INSTALL_DIR = "/usr/lib/ruby/gems/1.8/gems/#{APPLICATION}-#{gem.version}"
19
+ INSTALL_DIR = "#{Gem.dir}/gems/#{APPLICATION}-#{gem.version}"
17
20
  else
18
21
  INSTALL_DIR = "/usr/local/backlog/current"
19
22
  end
@@ -48,7 +51,7 @@ case ARGV[0]
48
51
  puts `mongrel_rails restart -c #{INSTALL_DIR} -P #{PID_FILE}`
49
52
  when 'status'
50
53
  puts `ps -ef | grep backlog`
51
- when 'setup_linux'
54
+ when 'setup_unix'
52
55
  current_user = `whoami`
53
56
  users = `su - postgres -c "echo '\\du' | psql template1"`
54
57
  puts users
@@ -64,10 +67,10 @@ case ARGV[0]
64
67
  Dir.mkdir LOG_DIR unless File.exists? LOG_DIR
65
68
  puts `rake db:migrate RAILS_ENV=production`
66
69
  startup_app = "/etc/init.d/#{APPLICATION}"
67
- `ln -s /usr/bin/#{APPLICATION} #{startup_app}` unless File.exists? startup_app
70
+ `ln -s #{Config::CONFIG['bindir']}/#{APPLICATION} #{startup_app}` unless File.exists? startup_app
68
71
  FileUtils.cp "#{INSTALL_DIR}/etc/#{APPLICATION}.conf", config_file unless File.exists? config_file
69
72
  else
70
- puts "Usage: #$0 {start|stop|restart|status|setup}"
73
+ puts "Usage: #$0 {start|stop|restart|status|setup_unix}"
71
74
  exit 1
72
75
  end
73
76
 
data/lib/backlog ADDED
@@ -0,0 +1 @@
1
+ Marker file to make Gem.searcher.find() find this gem.
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.4
7
- date: 2007-08-18 00:00:00 +02:00
6
+ version: 0.7.5
7
+ date: 2007-08-19 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
10
10
  - lib
11
11
  email: uwe@kubosch.no
12
12
  homepage: http://rubyforge.org/projects/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. A timekeeping module is also included to track time spent on the different tasks. === Backlog is not meant to be * an issue tracker with customer communication. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * Install ImageMagick * 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> === Configuration You can set configuration parameters for backlog using the /etc/backlog.conf file. The format is YAML. Currently only port number is settable. Example: port: 3000"
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. A timekeeping module is also included to track time spent on the different tasks. === Backlog is not meant to be * an issue tracker with customer communication. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * Install ImageMagick * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog restart</tt> === Configuration You can set configuration parameters for backlog using the /etc/backlog.conf file. The format is YAML. Currently only port number is settable. Example: port: 3000"
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -173,6 +173,7 @@ files:
173
173
  - lib/version_from_history.rb
174
174
  - lib/class_table_inheritance.rb
175
175
  - lib/clock.rb
176
+ - lib/backlog
176
177
  - lib/big_decimal_yaml_fix.rb
177
178
  - lib/tasks
178
179
  - lib/tasks/capistrano.rake
@@ -1660,8 +1661,6 @@ files:
1660
1661
  - vendor/rails/actionpack/README
1661
1662
  - Rakefile
1662
1663
  - etc
1663
- - etc/backlog_init.d_kubosch_production
1664
- - etc/backlog
1665
1664
  - etc/backlog.conf
1666
1665
  - Capfile
1667
1666
  - README_LOCALIZATION
@@ -1767,12 +1766,12 @@ files:
1767
1766
  - app/views/periods/_burn_down_chart.rhtml
1768
1767
  test_files:
1769
1768
  - test/test_helper.rb
1770
- rdoc_options: []
1771
-
1769
+ rdoc_options:
1770
+ - --inline-source
1772
1771
  extra_rdoc_files: []
1773
1772
 
1774
- executables: []
1775
-
1773
+ executables:
1774
+ - backlog
1776
1775
  extensions: []
1777
1776
 
1778
1777
  requirements: []
@@ -1796,6 +1795,15 @@ dependencies:
1796
1795
  - !ruby/object:Gem::Version
1797
1796
  version: 1.15.9
1798
1797
  version:
1798
+ - !ruby/object:Gem::Dependency
1799
+ name: postgres
1800
+ version_requirement:
1801
+ version_requirements: !ruby/object:Gem::Version::Requirement
1802
+ requirements:
1803
+ - - ">="
1804
+ - !ruby/object:Gem::Version
1805
+ version: 0.7.1
1806
+ version:
1799
1807
  - !ruby/object:Gem::Dependency
1800
1808
  name: hoe
1801
1809
  version_requirement:
data/etc/backlog DELETED
@@ -1,27 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # backlog Startup script for the backlog application
4
- #
5
- # chkconfig: 345 88 12
6
- # description: Backlog
7
-
8
- # See how we were called.
9
- case "$1" in
10
- start)
11
- mongrel_rails start -p 3000 -e datek_production -c /usr/local/backlog/current -d -m /usr/local/backlog/current/config/mime_types.yaml 1>/usr/local/backlog/current/log/stdout.log 2>/usr/local/backlog/current/log/stderr.log
12
- ;;
13
- stop)
14
- mongrel_rails stop -c /usr/local/backlog/current
15
- ;;
16
- restart)
17
- mongrel_rails restart -c /usr/local/backlog/current
18
- ;;
19
- status)
20
- ps -ef | grep backlog
21
- ;;
22
- *)
23
- echo $"Usage: $prog {start|stop|restart|status}"
24
- exit 1
25
- esac
26
-
27
- exit 0
@@ -1,27 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # backlog Startup script for the backlog application
4
- #
5
- # chkconfig: 345 88 12
6
- # description: Backlog
7
-
8
- # See how we were called.
9
- case "$1" in
10
- start)
11
- mongrel_rails start -p 3000 -e datek_production -c /usr/local/backlog/current -d -m /usr/local/backlog/current/config/mime_types.yaml 1>/usr/local/backlog/current/log/stdout.log 2>/usr/local/backlog/current/log/stderr.log
12
- ;;
13
- stop)
14
- mongrel_rails stop -c /usr/local/backlog/current
15
- ;;
16
- restart)
17
- mongrel_rails restart -c /usr/local/backlog/current
18
- ;;
19
- status)
20
- ps -ef | grep backlog
21
- ;;
22
- *)
23
- echo $"Usage: $prog {start|stop|restart|status}"
24
- exit 1
25
- esac
26
-
27
- exit 0