ucb_deployer 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'echoe'
4
4
  require 'spec/rake/spectask'
5
5
 
6
- Echoe.new('ucb_deployer', '0.1.4') do |p|
6
+ Echoe.new('ucb_deployer', '0.1.5') do |p|
7
7
  p.description = "Tool for deploying (Java/JRuby) war files to tomcat"
8
8
  p.url = "http://ucbrb.rubyforge.org"
9
9
  p.author = "Steven Hansen"
@@ -80,10 +80,14 @@ module UcbDeployer
80
80
  "com.atlassian.seraph.auth.DefaultAuthenticator"
81
81
  end
82
82
 
83
- def entityengine_xml_token()
83
+ def entityengine_xml_db_token()
84
84
  "field-type-name=\"hsql\""
85
85
  end
86
86
 
87
+ def entityengine_xml_schema_token()
88
+ "schema-name=\"PUBLIC\""
89
+ end
90
+
87
91
  def seraph_config_xml_logout_url_token()
88
92
  "/secure/Logout!default.jspa"
89
93
  end
@@ -100,6 +104,10 @@ module UcbDeployer
100
104
  "field-type-name=\"postgres72\""
101
105
  end
102
106
 
107
+ def entityengine_schema()
108
+ "schema-name=\"jira_app\""
109
+ end
110
+
103
111
  ##
104
112
  # Updates the jira web.xml file with the soulwing (CAS library)
105
113
  # authentication configuration
@@ -128,11 +136,16 @@ module UcbDeployer
128
136
  ee_xml = File.readlines(self.entityengine_xml)
129
137
 
130
138
  ee_xml = ee_xml.map do |line|
131
- if m = /(#{Regexp.quote(entityengine_xml_token)})/.match(line)
139
+ if m = /(#{Regexp.quote(entityengine_xml_db_token)})/.match(line)
132
140
  debug(m[0])
133
141
  new_str = "#{m.pre_match}#{entityengine_db}#{m.post_match}"
134
142
  debug(new_str)
135
143
  new_str
144
+ elsif m = /(#{Regexp.quote(entityengine_xml_schema_token)})/.match(line)
145
+ debug(m[0])
146
+ new_str = "#{m.pre_match}#{entityengine_schema}#{m.post_match}"
147
+ debug(new_str)
148
+ new_str
136
149
  else
137
150
  line
138
151
  end
@@ -71,6 +71,7 @@ describe UcbDeployer::JiraDeployer do
71
71
  lines = File.readlines(@cdep.entityengine_xml)
72
72
  lines.any? { |l| l =~ /<entity-config>/ }.should be_true
73
73
  lines.any? { |l| l =~ /#{Regexp.quote(@cdep.entityengine_db)}/ }.should be_true
74
+ lines.any? { |l| l =~ /#{Regexp.quote(@cdep.entityengine_schema)}/ }.should be_true
74
75
  lines.any? { |l| l =~ /<\/entity-config>/ }.should be_true
75
76
  end
76
77
  end
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.1.4"
5
+ s.version = "0.1.5"
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen