backlog 0.17.0 → 0.17.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.
- data/History.txt +10 -3
- data/Rakefile +5 -3
- data/bin/backlog +3 -2
- data/config/environment.rb +1 -1
- data/db/migrate/011_login_sugar.rb +1 -1
- data/vendor/plugins/goldspike/lib/create_war.rb +1 -1
- data/vendor/plugins/goldspike/lib/java_library.rb +2 -2
- data/vendor/plugins/goldspike/lib/packer.rb +12 -13
- data/vendor/plugins/goldspike/lib/run.rb +1 -1
- data/vendor/plugins/goldspike/lib/war_config.rb +4 -4
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
== 0.17.
|
1
|
+
== 0.17.1 2008-01-04
|
2
|
+
|
3
|
+
=== Fixes
|
4
|
+
|
5
|
+
* Fixed bad first-time setup.
|
6
|
+
* Updated to Goldspike 1.4
|
7
|
+
|
8
|
+
== 0.17.0 2008-01-03
|
2
9
|
|
3
10
|
=== Features
|
4
11
|
|
5
|
-
* Started using "Sortable List" instead of
|
12
|
+
* Started using "Sortable List" instead of draggables for tasks for prettier ordering.
|
6
13
|
* Started using client side Ruby. Woohoo!
|
7
|
-
* Made tasks
|
14
|
+
* Made tasks draggable to sprint boxes in the sidebar.
|
8
15
|
|
9
16
|
=== Fixes
|
10
17
|
|
data/Rakefile
CHANGED
@@ -34,6 +34,7 @@ Hoe.new("backlog", APP::VERSION) do |p|
|
|
34
34
|
p.rsync_args = "-av --delete --exclude=wiki*"
|
35
35
|
end
|
36
36
|
|
37
|
+
desc 'Release the application to RubyForge'
|
37
38
|
task :release_all do
|
38
39
|
ENV['VERSION'] = APP::VERSION
|
39
40
|
Rake::Task[:publish_docs].invoke
|
@@ -42,14 +43,15 @@ task :release_all do
|
|
42
43
|
Rake::Task[:post_news].invoke
|
43
44
|
end
|
44
45
|
|
46
|
+
desc 'Release the application as a Java EE WAR file to RubyForge'
|
45
47
|
task :release_war do
|
46
|
-
|
48
|
+
Dir.mkdir 'WEB-INF' unless File.exists? 'WEB-INF'
|
47
49
|
FileUtils.cp 'vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb', 'WEB-INF/web.xml.erb' unless File.exists? 'WEB-INF/web.xml.erb'
|
48
50
|
Rake::Task['war:standalone:create'].invoke
|
49
51
|
war_pkg_file = "pkg/backlog-#{APP::VERSION}.war"
|
50
52
|
if File.exists? 'backlog.war'
|
51
|
-
|
52
|
-
|
53
|
+
FileUtils.makedirs 'pkg'
|
54
|
+
FileUtils.move 'backlog.war', war_pkg_file
|
53
55
|
end
|
54
56
|
if File.exists? war_pkg_file
|
55
57
|
rf = RubyForge.new
|
data/bin/backlog
CHANGED
@@ -27,8 +27,8 @@ else
|
|
27
27
|
end
|
28
28
|
|
29
29
|
config_file = Config::CONFIG["sysconfdir"] + '/backlog.conf'
|
30
|
-
config = {}
|
31
30
|
config = File.open(config_file) {|f| YAML::load(f)} if File.exists? config_file
|
31
|
+
config ||= {}
|
32
32
|
|
33
33
|
LOG_DIR = "#{INSTALL_DIR}/log"
|
34
34
|
PID_FILE = '/var/run/backlog.pid'
|
@@ -129,7 +129,8 @@ when 'setup_unix'
|
|
129
129
|
end
|
130
130
|
Dir.chdir INSTALL_DIR
|
131
131
|
Dir.mkdir LOG_DIR unless File.exists? LOG_DIR
|
132
|
-
|
132
|
+
ENV['RAILS_ENV'] = 'production'
|
133
|
+
puts `rake db:migrate`
|
133
134
|
|
134
135
|
# TODO: provide startup information based on launchd in OS X versions >= 10.4
|
135
136
|
if File.directory? '/etc/init.d'
|
data/config/environment.rb
CHANGED
@@ -21,7 +21,7 @@ if File.exists? APP_CONFIG_FILE
|
|
21
21
|
class Configuration
|
22
22
|
def database_configuration
|
23
23
|
db_conf = YAML::load(ERB.new(IO.read(database_configuration_file)).result)
|
24
|
-
app_conf = YAML::load(ERB.new(IO.read(APP_CONFIG_FILE)).result)
|
24
|
+
app_conf = YAML::load(ERB.new(IO.read(APP_CONFIG_FILE)).result) || {}
|
25
25
|
if db_settings = app_conf['database']
|
26
26
|
puts "Found global database connection settings: #{db_settings.inspect}"
|
27
27
|
db_conf['production'] = db_settings
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class LoginSugar < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
-
create_table :users
|
3
|
+
create_table :users do |t|
|
4
4
|
t.column :login, :string, :limit => 80, :null => false
|
5
5
|
t.column :salted_password, :string, :limit => 40, :null => false
|
6
6
|
t.column :email, :string, :limit => 60, :null => false
|
@@ -78,7 +78,7 @@ module War
|
|
78
78
|
|
79
79
|
def add_configuration_files
|
80
80
|
require 'erb'
|
81
|
-
|
81
|
+
FileUtils.makedirs(File.join(config.staging, 'WEB-INF'))
|
82
82
|
war_file_dir = File.join(config.staging, 'WEB-INF')
|
83
83
|
Dir.foreach(war_file_dir) do |file|
|
84
84
|
output = case file
|
@@ -45,7 +45,7 @@ module War
|
|
45
45
|
|
46
46
|
def install_local(config, file, target_file)
|
47
47
|
return false unless File.exists?(file)
|
48
|
-
|
48
|
+
FileUtils.copy(file, target_file)
|
49
49
|
return true
|
50
50
|
end
|
51
51
|
|
@@ -109,7 +109,7 @@ module War
|
|
109
109
|
@version = version
|
110
110
|
@locations = maven_locations(group, name, version)
|
111
111
|
end
|
112
|
-
|
112
|
+
|
113
113
|
def maven_locations(group, artifact, version, type='jar')
|
114
114
|
WLog.debug("locations for " + group + " " + artifact + " " + version);
|
115
115
|
paths = []
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
require 'util'
|
3
2
|
|
4
3
|
module War
|
@@ -15,7 +14,7 @@ module War
|
|
15
14
|
# File.install is disabled because of a performance problem under JRuby,
|
16
15
|
# without it the task may fail if the original gem files were not writable by the owner
|
17
16
|
#File.install(source, dest, mode)
|
18
|
-
|
17
|
+
FileUtils.copy(source, dest)
|
19
18
|
end
|
20
19
|
|
21
20
|
def copy_tree(files, target, strip_prefix='')
|
@@ -23,10 +22,10 @@ module War
|
|
23
22
|
relative = f[strip_prefix.length, f.length]
|
24
23
|
target_file = File.join(target, relative)
|
25
24
|
if File.directory?(f)
|
26
|
-
|
25
|
+
FileUtils.makedirs(target_file)
|
27
26
|
elsif File.file?(f)
|
28
27
|
WLog.debug " Copying #{f} to #{relative}"
|
29
|
-
|
28
|
+
FileUtils.makedirs(File.dirname(target_file))
|
30
29
|
install(f, target_file)
|
31
30
|
end
|
32
31
|
end
|
@@ -52,7 +51,7 @@ module War
|
|
52
51
|
flags = '-cf'
|
53
52
|
flags += '0' unless compress
|
54
53
|
files_list = files.join(' ')
|
55
|
-
unless system("jar #{flags} #{os_target_file} -C #{os_source_dir} #{files_list}")
|
54
|
+
unless system("jar #{flags} \"#{os_target_file}\" -C \"#{os_source_dir}\" #{files_list}")
|
56
55
|
raise "Error: failed to create archive, error code #{$?}"
|
57
56
|
end
|
58
57
|
end
|
@@ -74,7 +73,7 @@ module War
|
|
74
73
|
|
75
74
|
def install(dir_sym, dir)
|
76
75
|
WLog.debug("assembling files in " + dir + " directory")
|
77
|
-
|
76
|
+
FileUtils.makedirs(dir)
|
78
77
|
WLog.debug("need to assemble #{config.files.select{|k,v| v[:directory] == dir_sym }.size} files")
|
79
78
|
for name, file_info in config.files
|
80
79
|
next unless file_info[:directory] == dir_sym
|
@@ -85,7 +84,7 @@ module War
|
|
85
84
|
if !File.exists?(target) || File.mtime(target) < File.mtime(file_info[:location])
|
86
85
|
WLog.info " adding file #{name}"
|
87
86
|
if File.exists?(file)
|
88
|
-
|
87
|
+
FileUtils.copy(file, target)
|
89
88
|
else
|
90
89
|
WLog.warn "file '#{file}' does not exist"
|
91
90
|
end
|
@@ -105,7 +104,7 @@ module War
|
|
105
104
|
staging = config.staging
|
106
105
|
lib = File.join(staging, 'WEB-INF', 'lib')
|
107
106
|
WLog.debug("assembling files in " + lib + " directory")
|
108
|
-
|
107
|
+
FileUtils.makedirs(lib)
|
109
108
|
WLog.debug("need to assemble #{config.java_libraries.size} libraries")
|
110
109
|
for library in config.java_libraries.values
|
111
110
|
WLog.debug("library to assemble " + library.name )
|
@@ -129,9 +128,9 @@ module War
|
|
129
128
|
# add the gems
|
130
129
|
WLog.info("Packing needed Ruby gems ...")
|
131
130
|
gem_home = File.join(config.staging, 'WEB-INF', 'gems')
|
132
|
-
|
133
|
-
|
134
|
-
|
131
|
+
FileUtils.makedirs(gem_home)
|
132
|
+
FileUtils.makedirs(File.join(gem_home, 'gems'))
|
133
|
+
FileUtils.makedirs(File.join(gem_home, 'specifications'))
|
135
134
|
for gem in config.gem_libraries
|
136
135
|
copy_gem(gem[0], gem[1], gem_home)
|
137
136
|
end
|
@@ -151,7 +150,7 @@ module War
|
|
151
150
|
# copy the specification
|
152
151
|
install(gem.loaded_from, File.join(target_gem_home, 'specifications'), 0644)
|
153
152
|
# copy the files
|
154
|
-
|
153
|
+
FileUtils.makedirs(gem_target)
|
155
154
|
gem_files = Rake::FileList.new(File.join(gem.full_gem_path, '**', '*'))
|
156
155
|
copy_tree(gem_files, gem_target, gem.full_gem_path)
|
157
156
|
# compile the .rb files to .rb.ast.ser
|
@@ -193,7 +192,7 @@ module War
|
|
193
192
|
def add_webapp
|
194
193
|
staging = config.staging
|
195
194
|
WLog.info 'Packing web application ...'
|
196
|
-
|
195
|
+
FileUtils.makedirs(staging)
|
197
196
|
webapp_files = Rake::FileList.new(File.join('.', '**', '*'))
|
198
197
|
webapp_files.exclude(staging)
|
199
198
|
webapp_files.exclude('*.war')
|
@@ -63,7 +63,7 @@ END_OF_WEB_INF_OVERRIDE
|
|
63
63
|
def add_jetty_libraries
|
64
64
|
# Get the Jetty libraries
|
65
65
|
@classpath = []
|
66
|
-
|
66
|
+
FileUtils.makedirs(jetty_tmp)
|
67
67
|
for lib in config.jetty_libraries.values
|
68
68
|
target = File.join(jetty_tmp, lib.file)
|
69
69
|
unless File.exists?(target)
|
@@ -82,7 +82,7 @@ module War
|
|
82
82
|
@jruby_home = ENV['JRUBY_HOME']
|
83
83
|
@maven_local_repository = ENV['MAVEN2_REPO'] # should be in settings.xml, but I need an override
|
84
84
|
@maven_local_repository ||= File.join(home, '.m2', 'repository') if home
|
85
|
-
@maven_remote_repository = 'http://
|
85
|
+
@maven_remote_repository = 'http://repo1.maven.org/maven2'
|
86
86
|
|
87
87
|
# configured war name, defaults to the same as the ruby webapp
|
88
88
|
@name = File.basename(File.expand_path(RAILS_ROOT))
|
@@ -92,8 +92,8 @@ module War
|
|
92
92
|
|
93
93
|
@java_libraries = {}
|
94
94
|
# default java libraries
|
95
|
-
add_library(maven_library('org.jruby', 'jruby-complete', '1.0.
|
96
|
-
add_library(maven_library('org.jruby.extras', 'goldspike', '1.
|
95
|
+
add_library(maven_library('org.jruby', 'jruby-complete', '1.0.3'))
|
96
|
+
add_library(maven_library('org.jruby.extras', 'goldspike', '1.4'))
|
97
97
|
add_library(maven_library('javax.activation', 'activation', '1.1'))
|
98
98
|
add_library(maven_library('commons-pool', 'commons-pool', '1.3'))
|
99
99
|
add_library(maven_library('bouncycastle', 'bcprov-jdk14', '124'))
|
@@ -101,7 +101,7 @@ module War
|
|
101
101
|
# default gems
|
102
102
|
@gem_libraries = {}
|
103
103
|
add_gem('rails', rails_version) unless File.exists?('vendor/rails')
|
104
|
-
add_gem('
|
104
|
+
add_gem('activerecord-jdbc-adapter') if Dir['vendor/{gems/,}{activerecord-jdbc-adapter,ActiveRecord-JDBC}'].empty?
|
105
105
|
|
106
106
|
# default jetty libraries
|
107
107
|
@jetty_libraries = {}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uwe Kubosch
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-01-
|
12
|
+
date: 2008-01-05 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|