ucb_deployer 0.2.1 → 0.3.0

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/spec/spec_helper.rb CHANGED
@@ -32,6 +32,7 @@ Spec::Runner.configure do |config|
32
32
  "#{dir}/confluence/src/confluence/WEB-INF/classes")
33
33
 
34
34
  # setup jira build dir
35
+ FileUtils.mkdir_p("#{dir}/jira/src/webapp/images")
35
36
  FileUtils.mkdir_p("#{dir}/jira/src/webapp/WEB-INF/classes")
36
37
  FileUtils.mkdir_p("#{dir}/jira/src/edit-webapp/WEB-INF/classes")
37
38
  FileUtils.mkdir_p("#{dir}/jira/src/webapp/WEB-INF/lib")
@@ -43,6 +43,19 @@ describe UcbDeployer::ConfluenceDeployer do
43
43
  end
44
44
  end
45
45
 
46
+ describe "#config_xwork_xml" do
47
+ it "should create and configure the xwork.xml file" do
48
+ @cdep.build_dir = test_build_dir
49
+
50
+ @cdep.config_xwork_xml
51
+ File.exists?(@cdep.xwork_xml).should be_true
52
+ lines = File.readlines(@cdep.xwork_xml)
53
+ lines.any? { |l| l =~ /<xwork>/ }.should be_true
54
+ lines.any? { |l| l =~ /#{@cdep.cas_server_url}\/logout/ }.should be_true
55
+ lines.any? { |l| l =~ /<\/xwork>/ }.should be_true
56
+ end
57
+ end
58
+
46
59
 
47
60
  describe "#config_seraph_config_xml" do
48
61
  it "should configure the soulwing (CAS) authenticator in seraph_config.xml" do
@@ -56,7 +56,7 @@ describe UcbDeployer::JiraDeployer do
56
56
  lines = File.readlines(@cdep.seraph_config_xml)
57
57
  lines.any? { |l| l =~ /<security-config>/ }.should be_true
58
58
  lines.any? { |l| l =~ /#{Regexp.quote(@cdep.cas_authenticator_class)}/ }.should be_true
59
- lines.any? { |l| l =~ /#{Regexp.quote(@cdep.cas_logout_url)}/ }.should be_true
59
+ lines.any? { |l| l =~ /#{Regexp.quote(@cdep.cas_server_url)}\/logout/ }.should be_true
60
60
  lines.any? { |l| l =~ /<\/security-config>/ }.should be_true
61
61
  end
62
62
  end
@@ -94,6 +94,14 @@ describe UcbDeployer::JiraDeployer do
94
94
  end
95
95
  end
96
96
 
97
+ describe "#config_ist_banner" do
98
+ it "should place ist_banner.jpg in webapps" do
99
+ @cdep.build_dir = test_build_dir()
100
+ @cdep.config_ist_banner()
101
+ File.exists?("#{@cdep.build_dir}/src/webapp/images/ist_banner.jpg").should be_true
102
+ end
103
+ end
104
+
97
105
  describe "#reshuffle_jars" do
98
106
  it "should work" do
99
107
  @cdep.build_dir = test_build_dir()
data/ucb_deployer.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_deployer}
5
- s.version = "0.2.1"
5
+ s.version = "0.3.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen"]
9
- s.date = %q{2010-12-06}
9
+ s.date = %q{2010-12-10}
10
10
  s.default_executable = %q{ucb_deploy}
11
11
  s.description = %q{Tool for deploying Confluence/JIRA war files to tomcat}
12
12
  s.email = %q{runner@berkeley.edu}
13
13
  s.executables = ["ucb_deploy"]
14
14
  s.extra_rdoc_files = ["README.md", "TODO.md", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb"]
15
- s.files = ["Manifest", "README.md", "Rakefile", "TODO.md", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/jira_cas_web.xml", "resources/soulwing-casclient-0.5.3.jar", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/bad_deploy.yml", "spec/fixtures/jira/deploy.yml", "spec/fixtures/jira/entityengine.xml", "spec/fixtures/jira/jira-application.properties", "spec/fixtures/jira/seraph-config.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
15
+ s.files = ["Manifest", "README.md", "Rakefile", "TODO.md", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/ist_banner.jpg", "resources/jira_cas_web.xml", "resources/soulwing-casclient-0.5.3-1.jar", "resources/xwork.xml", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/bad_deploy.yml", "spec/fixtures/jira/deploy.yml", "spec/fixtures/jira/entityengine.xml", "spec/fixtures/jira/jira-application.properties", "spec/fixtures/jira/seraph-config.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
16
16
  s.homepage = %q{http://ucbrb.rubyforge.org}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ucb_deployer", "--main", "README.md"]
18
18
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-06 00:00:00 -08:00
18
+ date: 2010-12-10 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -43,8 +43,10 @@ files:
43
43
  - lib/ucb_deployer/deployer.rb
44
44
  - lib/ucb_deployer/jira_deployer.rb
45
45
  - resources/confluence_cas_web.xml
46
+ - resources/ist_banner.jpg
46
47
  - resources/jira_cas_web.xml
47
- - resources/soulwing-casclient-0.5.3.jar
48
+ - resources/soulwing-casclient-0.5.3-1.jar
49
+ - resources/xwork.xml
48
50
  - spec/fixtures/confluence/bad_deploy.yml
49
51
  - spec/fixtures/confluence/confluence-init.properties
50
52
  - spec/fixtures/confluence/deploy.yml
Binary file