ucb_deployer 0.3.1 → 0.3.2

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/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
4
4
  require 'spec/rake/spectask'
5
5
 
6
6
 
7
- Echoe.new('ucb_deployer', '0.3.1') do |p|
7
+ Echoe.new('ucb_deployer', '0.3.2') do |p|
8
8
  p.description = "Tool for deploying Confluence/JIRA war files to tomcat"
9
9
  p.url = "http://ucbrb.rubyforge.org"
10
10
  p.author = "Steven Hansen"
@@ -3,8 +3,7 @@ module UcbDeployer
3
3
  class JiraDeployer < Deployer
4
4
 
5
5
  def initialize(config_file = "#{ENV['HOME']}/config/jira/deploy.yml")
6
- info("Using config file: #{config_file}")
7
- info("")
6
+ debug("Using config file: #{config_file}")
8
7
 
9
8
  load_config(config_file)
10
9
  end
@@ -70,7 +69,7 @@ module UcbDeployer
70
69
  end
71
70
 
72
71
  def web_xml_token()
73
- "appropriate error message for any requests. Basically it locks JIRA. -->"
72
+ "<!--This filter is used to determine is there are any Application Errors before any pages are accessed"
74
73
  end
75
74
 
76
75
  ##
@@ -372,6 +372,7 @@
372
372
  <url-pattern>/*</url-pattern>
373
373
  </filter-mapping>
374
374
 
375
+
375
376
  <!-- THIS MUST REMAIN AS THE TOP FILTER SO THAT THE ENCODING CAN BE SET BEFORE ANYTHING ELSE TOUCHES IT -->
376
377
  <filter-mapping>
377
378
  <filter-name>encoding</filter-name>
@@ -36,11 +36,11 @@ describe UcbDeployer::JiraDeployer do
36
36
  @cdep.config_web_xml
37
37
  File.exists?(@cdep.web_xml).should be_true
38
38
  lines = File.readlines(@cdep.web_xml)
39
- lines.any? { |l| l =~ /<\?xml version="1\.0"\?>/ }.should be_true
40
- lines.any? { |l| l =~ /^<web-app / }.should be_true
41
- lines.any? { |l| l =~ /#{@cdep.cas_server_url}/ }.should be_true
42
- lines.any? { |l| l =~ /#{@cdep.cas_service_url}/ }.should be_true
43
- lines.any? { |l| l =~ /<\/web-app>/ }.should be_true
39
+ lines.grep(/<\?xml version="1\.0"\?>/).should be_true
40
+ lines.grep(/^<web-app /).should be_true
41
+ lines.grep(/#{@cdep.cas_server_url}/).should have(1).record
42
+ lines.grep(/#{@cdep.cas_service_url}/).should have(1).record
43
+ lines.grep(/<\/web-app>/).should be_true
44
44
  end
45
45
  end
46
46
 
@@ -54,10 +54,10 @@ describe UcbDeployer::JiraDeployer do
54
54
  @cdep.config_seraph_config_xml
55
55
  File.exists?(@cdep.seraph_config_xml).should be_true
56
56
  lines = File.readlines(@cdep.seraph_config_xml)
57
- lines.any? { |l| l =~ /<security-config>/ }.should be_true
58
- lines.any? { |l| l =~ /#{Regexp.quote(@cdep.cas_authenticator_class)}/ }.should be_true
59
- lines.any? { |l| l =~ /#{Regexp.quote(@cdep.cas_server_url)}\/logout/ }.should be_true
60
- lines.any? { |l| l =~ /<\/security-config>/ }.should be_true
57
+ lines.grep(/<security-config>/).should be_true
58
+ lines.grep(/#{Regexp.quote(@cdep.cas_authenticator_class)}/).should have(1).record
59
+ lines.grep(/#{Regexp.quote(@cdep.cas_server_url)}\/logout/).should have(1).record
60
+ lines.grep(/<\/security-config>/).should be_true
61
61
  end
62
62
  end
63
63
 
data/ucb_deployer.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_deployer}
5
- s.version = "0.3.1"
5
+ s.version = "0.3.2"
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"]
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen