web_app_builder 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.idea/misc.xml +3 -0
- data/.idea/web_app_builder.iml +9 -2
- data/.idea/workspace.xml +390 -58
- data/Gemfile +4 -0
- data/Warfile +22 -0
- data/config/templates/META-INF/context.xml +26 -0
- data/config/templates/WEB-INF/jboss-web.xml +9 -0
- data/config/templates/WEB-INF/web.xml +45 -0
- data/config/templates/postgres-ds.xml +37 -0
- data/lib/web_app_builder/version.rb +1 -1
- data/lib/web_app_builder/web_app_builder.rb +63 -74
- data/lib/web_app_builder.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/web_app_builder_spec.rb +24 -0
- data/web_app_builder.gemspec +4 -0
- metadata +76 -3
data/Gemfile
CHANGED
data/Warfile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#rails_env = "development"
|
2
|
+
rails_env = "production"
|
3
|
+
|
4
|
+
ant_home = ENV['ANT_HOME'] || "#{ENV['HOME']}/apache-ant-1.8.3"
|
5
|
+
|
6
|
+
project_name = "web_app_builder_test"
|
7
|
+
|
8
|
+
#jndi_name = "rails_app_tmpl_#{rails_env}"
|
9
|
+
#jndi_resource_name = 'jdbc/rails_app_tmpl'
|
10
|
+
|
11
|
+
gems_to_reject = %w(bundler)
|
12
|
+
|
13
|
+
groups_to_reject = %w(test)
|
14
|
+
groups_to_reject << 'development' unless %w(development staging).include? rails_env.to_sym
|
15
|
+
|
16
|
+
author = "Alexander Shvets"
|
17
|
+
|
18
|
+
#additional_java_jars = ["#{ENV['DB_DRIVERS_DIR']}/ojdbc6.jar"]
|
19
|
+
|
20
|
+
templates_dir = "config/templates"
|
21
|
+
|
22
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Context>
|
3
|
+
<!-- Specify a JDBC datasource -->
|
4
|
+
|
5
|
+
<Resource name="<%= config[:jndi_resource_name] %>"
|
6
|
+
auth="Container"
|
7
|
+
type="javax.sql.DataSource"
|
8
|
+
driverClassName="<%= config[:db_driver_class] %>"
|
9
|
+
url="<%= config[:db_url] %>"
|
10
|
+
username="<%= config[:db_username] %>" password="<%= config[:db_password] %>"
|
11
|
+
maxActive="20" maxIdle="10" maxWait="-1"
|
12
|
+
validationQuery="select dummy from dual"
|
13
|
+
/>
|
14
|
+
|
15
|
+
<!--factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"-->
|
16
|
+
<!--org.postgresql.Driver-->
|
17
|
+
<!--com.mysql.jdbc.Driver-->
|
18
|
+
<!--oracle.jdbc.OracleDriver-->
|
19
|
+
<!--dbc:oracle:thin:@127.0.0.1:1521:mysid-->
|
20
|
+
|
21
|
+
<!-- Specify the security realm and location of the users file
|
22
|
+
<Realm className="org.apache.catalina.realm.MemoryRealm"
|
23
|
+
pathname="/tomcat/webapps/ROOT/WEB-INF/users.xml" />
|
24
|
+
-->
|
25
|
+
</Context>
|
26
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<jboss-web>
|
3
|
+
<resource-ref>
|
4
|
+
<res-ref-name><%= config[:jndi_resource_name] %></res-ref-name>
|
5
|
+
<jndi-name>java:/<%= config[:jndi_name] %></jndi-name>
|
6
|
+
<res-type>javax.sql.DataSource</res-type>
|
7
|
+
</resource-ref>
|
8
|
+
</jboss-web>
|
9
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!DOCTYPE web-app PUBLIC
|
2
|
+
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
3
|
+
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
4
|
+
<web-app>
|
5
|
+
|
6
|
+
<context-param>
|
7
|
+
<param-name>public.root</param-name>
|
8
|
+
<param-value>/</param-value>
|
9
|
+
</context-param>
|
10
|
+
|
11
|
+
<context-param>
|
12
|
+
<param-name>rails.env</param-name>
|
13
|
+
<param-value><%= config[:rails_env] %></param-value>
|
14
|
+
</context-param>
|
15
|
+
|
16
|
+
<context-param>
|
17
|
+
<param-name>jruby.min.runtimes</param-name>
|
18
|
+
<param-value>10</param-value>
|
19
|
+
</context-param>
|
20
|
+
|
21
|
+
<context-param>
|
22
|
+
<param-name>jruby.max.runtimes</param-name>
|
23
|
+
<param-value>10</param-value>
|
24
|
+
</context-param>
|
25
|
+
|
26
|
+
<filter>
|
27
|
+
<filter-name>RackFilter</filter-name>
|
28
|
+
<filter-class>org.jruby.rack.RackFilter</filter-class>
|
29
|
+
</filter>
|
30
|
+
<filter-mapping>
|
31
|
+
<filter-name>RackFilter</filter-name>
|
32
|
+
<url-pattern>/*</url-pattern>
|
33
|
+
</filter-mapping>
|
34
|
+
|
35
|
+
<listener>
|
36
|
+
<listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
|
37
|
+
</listener>
|
38
|
+
|
39
|
+
<resource-ref>
|
40
|
+
<res-ref-name><%= config[:jndi_resource_name] %></res-ref-name>
|
41
|
+
<res-type>javax.sql.DataSource</res-type>
|
42
|
+
<res-auth>Container</res-auth>
|
43
|
+
</resource-ref>
|
44
|
+
|
45
|
+
</web-app>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
|
3
|
+
<!-- ===================================================================== -->
|
4
|
+
<!-- -->
|
5
|
+
<!-- JBoss Server Configuration -->
|
6
|
+
<!-- -->
|
7
|
+
<!-- ===================================================================== -->
|
8
|
+
|
9
|
+
<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource -->
|
10
|
+
<!-- $Id: postgres-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
|
11
|
+
<!-- ==================================================================== -->
|
12
|
+
<!-- Datasource config for Postgres -->
|
13
|
+
<!-- ==================================================================== -->
|
14
|
+
|
15
|
+
|
16
|
+
<datasources>
|
17
|
+
<local-tx-datasource>
|
18
|
+
<jndi-name><%= config[:jndi_name] %></jndi-name>
|
19
|
+
<connection-url><%= config[:db_url] %></connection-url>
|
20
|
+
<driver-class>org.postgresql.Driver</driver-class>
|
21
|
+
<user-name><%= config[:db_username] %></user-name>
|
22
|
+
<password><%= config[:db_password] %></password>
|
23
|
+
<!-- sql to call when connection is created. Can be anything, select 1 is valid for PostgreSQL
|
24
|
+
<new-connection-sql>select 1</new-connection-sql>
|
25
|
+
-->
|
26
|
+
|
27
|
+
<!-- sql to call on an existing pooled connection when it is obtained from pool. Can be anything, select 1 is valid for PostgreSQL
|
28
|
+
<check-valid-connection-sql>select 1</check-valid-connection-sql>
|
29
|
+
-->
|
30
|
+
|
31
|
+
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
|
32
|
+
<metadata>
|
33
|
+
<type-mapping>PostgreSQL 9.1.3</type-mapping>
|
34
|
+
</metadata>
|
35
|
+
</local-tx-datasource>
|
36
|
+
|
37
|
+
</datasources>
|
@@ -3,24 +3,21 @@ require 'meta_methods'
|
|
3
3
|
|
4
4
|
require 'file_utils/file_utils'
|
5
5
|
require 'zip_dsl/zip_dsl'
|
6
|
+
require 'zip_dsl/zip_writer'
|
6
7
|
require 'directory_builder'
|
7
8
|
|
8
9
|
class WebAppBuilder
|
9
10
|
include MetaMethods
|
10
11
|
include FileUtils
|
11
12
|
|
12
|
-
JRUBY_JARS_VERSION = Gem.loaded_specs["jruby-jars"].version
|
13
|
-
JRUBY_RACK_VERSION = Gem.loaded_specs["jruby-rack"].version
|
14
|
-
JRUBY_OPENSSL_VERSION = Gem.loaded_specs["jruby-openssl"].version
|
15
|
-
BOUNCY_CASTLE_JAVA_VERSION = Gem.loaded_specs["bouncy-castle-java"].version
|
16
|
-
|
17
13
|
WARFILE_NAME = "Warfile"
|
18
14
|
|
19
|
-
attr_reader :
|
15
|
+
attr_reader :build_dir, :basedir, :config
|
20
16
|
|
21
|
-
def initialize basedir,
|
22
|
-
@basedir = basedir
|
17
|
+
def initialize build_dir, basedir, gemset_name
|
23
18
|
@build_dir = build_dir
|
19
|
+
@basedir = File.expand_path(basedir)
|
20
|
+
@gemset_name = gemset_name
|
24
21
|
end
|
25
22
|
|
26
23
|
def configure
|
@@ -36,27 +33,14 @@ class WebAppBuilder
|
|
36
33
|
def prepare
|
37
34
|
create_directory build_dir
|
38
35
|
|
39
|
-
process_templates
|
40
|
-
|
41
|
-
puts "RAILS_ENV: #{config[:rails_env]}"
|
36
|
+
process_templates "#@basedir/#{config[:templates_dir]}"
|
42
37
|
end
|
43
38
|
|
44
39
|
def war
|
45
40
|
configure
|
46
41
|
|
47
42
|
gems = bundler_gems
|
48
|
-
|
49
|
-
# binding
|
50
|
-
build_dir = @build_dir
|
51
|
-
gem_home = gem_home()
|
52
|
-
global_gem_home = global_gem_home()
|
53
|
-
config = @config
|
54
|
-
ruby_home = ruby_home()
|
55
|
-
included_global_gems = included_global_gems()
|
56
|
-
included_global_specs = included_global_specs()
|
57
|
-
included_gems = included_gems(gems)
|
58
|
-
included_specs = included_specs(gems)
|
59
|
-
jars = jars(gems)
|
43
|
+
global_gem_home = global_gem_home(@gemset_name)
|
60
44
|
|
61
45
|
manifest = <<-TEXT
|
62
46
|
Built-By: web_app_builder
|
@@ -73,15 +57,18 @@ Created-By: #{config[:author]}
|
|
73
57
|
directory :from_dir => "lib", :to_dir => "WEB-INF/lib", :filter => "*.rb"
|
74
58
|
directory :from_dir => "vendor", :to_dir => "WEB-INF/vendor"
|
75
59
|
|
76
|
-
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems
|
60
|
+
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems(gems)
|
77
61
|
directory :from_dir => "#{gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
78
|
-
:filter => included_specs
|
79
|
-
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems",
|
80
|
-
|
62
|
+
:filter => included_specs(gems)
|
63
|
+
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems",
|
64
|
+
:filter => included_global_gems(gems)
|
65
|
+
directory :from_dir => "#{global_gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
66
|
+
:filter => included_global_specs(gems)
|
81
67
|
|
82
|
-
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{
|
68
|
+
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{gem_version(gems, "jruby-openssl")}/lib/shared",
|
83
69
|
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
84
|
-
directory :from_dir => "#{global_gem_home}/gems/bouncy-castle-java-#{
|
70
|
+
directory :from_dir => "#{global_gem_home}/gems/bouncy-castle-java-#{gem_version(gems,
|
71
|
+
"bouncy-castle-java-jars")}/lib",
|
85
72
|
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
86
73
|
directory :from_dir => "#{ruby_home}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
87
74
|
|
@@ -91,15 +78,18 @@ Created-By: #{config[:author]}
|
|
91
78
|
|
92
79
|
directory :to_dir => "WEB-INF/log"
|
93
80
|
|
94
|
-
directory :from_dir => "#{gem_home}/gems/jruby-rack-#{
|
95
|
-
|
81
|
+
directory :from_dir => "#{gem_home}/gems/jruby-rack-#{gem_version(gems, "jruby-rack")}/lib",
|
82
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
83
|
+
directory :from_dir => "#{gem_home}/gems/jruby-jars-#{gem_version(gems, "jruby-jars")}/lib",
|
84
|
+
:to_dir => "WEB-INF/lib",
|
85
|
+
:filter => "*.jar"
|
96
86
|
|
97
|
-
jars.each do |jar|
|
87
|
+
jars(gems).each do |jar|
|
98
88
|
file :name => jar, :to_dir => "WEB-INF/lib"
|
99
89
|
end
|
100
90
|
|
101
|
-
file :name => "Gemfile", :to_dir => "WEB-INF"
|
102
|
-
file :name => "Gemfile.lock", :to_dir => "WEB-INF"
|
91
|
+
file :name => "#{basedir}/Gemfile", :to_dir => "WEB-INF"
|
92
|
+
file :name => "#{basedir}/Gemfile.lock", :to_dir => "WEB-INF"
|
103
93
|
|
104
94
|
directory :from_dir => "public"
|
105
95
|
|
@@ -114,19 +104,9 @@ Created-By: #{config[:author]}
|
|
114
104
|
|
115
105
|
gems = bundler_gems
|
116
106
|
|
117
|
-
|
118
|
-
build_dir = @build_dir
|
119
|
-
gem_home = gem_home()
|
120
|
-
global_gem_home = global_gem_home()
|
121
|
-
config = @config
|
122
|
-
ruby_home = ruby_home()
|
123
|
-
included_global_gems = included_global_gems()
|
124
|
-
included_global_specs = included_global_specs()
|
125
|
-
included_gems = included_gems(gems)
|
126
|
-
included_specs = included_specs(gems)
|
127
|
-
jars = jars(gems)
|
107
|
+
global_gem_home = global_gem_home(@gemset_name)
|
128
108
|
|
129
|
-
builder = DirectoryBuilder.new to_dir
|
109
|
+
builder = DirectoryBuilder.new to_dir, basedir
|
130
110
|
|
131
111
|
builder.build do
|
132
112
|
directory :from_dir => "#{build_dir}/WEB-INF", :to_dir => "WEB-INF"
|
@@ -137,13 +117,15 @@ Created-By: #{config[:author]}
|
|
137
117
|
directory :from_dir => "lib", :to_dir => "WEB-INF/lib", :filter => "*.rb"
|
138
118
|
directory :from_dir => "vendor", :to_dir => "WEB-INF/vendor"
|
139
119
|
|
140
|
-
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems
|
120
|
+
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems(gems)
|
141
121
|
directory :from_dir => "#{gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
142
|
-
:filter => included_specs
|
143
|
-
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems",
|
144
|
-
|
122
|
+
:filter => included_specs(gems)
|
123
|
+
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems",
|
124
|
+
:filter => included_global_gems(gems)
|
125
|
+
directory :from_dir => "#{global_gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
126
|
+
:filter => included_global_specs(gems)
|
145
127
|
|
146
|
-
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{
|
128
|
+
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{gem_version(gems, "jruby-openssl")}/lib/shared",
|
147
129
|
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
148
130
|
directory :from_dir => "#{global_gem_home}/gems/bouncy-castle-java-#{BOUNCY_CASTLE_JAVA_VERSION}/lib",
|
149
131
|
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
@@ -153,54 +135,58 @@ Created-By: #{config[:author]}
|
|
153
135
|
file :name => jar, :to_dir => "WEB-INF/lib"
|
154
136
|
end if config[:additional_java_jars]
|
155
137
|
|
156
|
-
|
157
|
-
|
158
|
-
directory :from_dir => "#{gem_home}/gems/jruby-
|
159
|
-
|
138
|
+
directory :from_dir => "#{gem_home}/gems/jruby-rack-#{gem_version(gems, "jruby-rack")}/lib",
|
139
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
140
|
+
directory :from_dir => "#{gem_home}/gems/jruby-jars-#{gem_version(gems, "jruby-jars")}/lib",
|
141
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
160
142
|
|
161
|
-
jars.each do |jar|
|
143
|
+
jars(gems).each do |jar|
|
162
144
|
file :name => jar, :to_dir => "WEB-INF/lib"
|
163
145
|
end
|
164
146
|
|
165
|
-
file :name => "Gemfile", :to_dir => "WEB-INF"
|
166
|
-
file :name => "Gemfile.lock", :to_dir => "WEB-INF"
|
147
|
+
file :name => "#{basedir}/Gemfile", :to_dir => "WEB-INF"
|
148
|
+
file :name => "#{basedir}/Gemfile.lock", :to_dir => "WEB-INF"
|
167
149
|
|
168
150
|
directory :from_dir => "public"
|
169
|
-
|
170
|
-
#content :name => "MANIFEST.MF", :to_dir => "META-INF", :source => manifest
|
171
151
|
end
|
172
152
|
end
|
173
153
|
|
174
|
-
def process_templates
|
154
|
+
def process_templates dir
|
175
155
|
configure
|
176
156
|
|
177
|
-
|
157
|
+
with_dir(dir) do |entry_name|
|
178
158
|
if entry_name == "META-INF"
|
179
|
-
|
180
|
-
new_content =
|
159
|
+
with_dir("#{dir}/META-INF") do |entry_name2|
|
160
|
+
new_content = execute_template("#{dir}/META-INF/#{entry_name2}", binding)
|
181
161
|
|
182
162
|
create_directory "#{build_dir}/META-INF/"
|
183
163
|
|
184
164
|
write_content_to_file new_content, "#{build_dir}/META-INF/#{entry_name2}"
|
185
165
|
end
|
186
166
|
elsif entry_name == "WEB-INF"
|
187
|
-
|
188
|
-
new_content =
|
167
|
+
with_dir("#{dir}/WEB-INF") do |entry_name2|
|
168
|
+
new_content = execute_template("#{dir}/WEB-INF/#{entry_name2}", binding)
|
189
169
|
|
190
170
|
create_directory "#{build_dir}/WEB-INF/"
|
191
171
|
|
192
172
|
write_content_to_file new_content, "#{build_dir}/WEB-INF/#{entry_name2}"
|
193
173
|
end
|
194
174
|
else
|
195
|
-
new_content =
|
175
|
+
new_content = execute_template("#{dir}/#{entry_name}", binding)
|
196
176
|
|
197
177
|
write_content_to_file new_content, "#{build_dir}/#{entry_name}"
|
198
178
|
end
|
199
|
-
end
|
179
|
+
end if File.exist?(dir)
|
200
180
|
end
|
201
181
|
|
202
182
|
private
|
203
183
|
|
184
|
+
def gem_version gems, name
|
185
|
+
gem = gems.find {|gem| gem.name == name }
|
186
|
+
|
187
|
+
gem.nil? ? nil : gem.version
|
188
|
+
end
|
189
|
+
|
204
190
|
def ruby_home
|
205
191
|
ENV['MY_RUBY_HOME']
|
206
192
|
end
|
@@ -209,16 +195,19 @@ Created-By: #{config[:author]}
|
|
209
195
|
ENV['GEM_HOME']
|
210
196
|
end
|
211
197
|
|
212
|
-
def global_gem_home
|
213
|
-
gem_home.gsub(
|
198
|
+
def global_gem_home gemset_name
|
199
|
+
gem_home.gsub(gemset_name, 'global')
|
214
200
|
end
|
215
201
|
|
216
|
-
def included_global_gems
|
217
|
-
"jruby-openssl-#{
|
202
|
+
def included_global_gems gems
|
203
|
+
"jruby-openssl-#{gem_version(gems, 'jruby-openssl')}/**/*, bouncy-castle-java-#{gem_version(gems,
|
204
|
+
'bouncy-castle-java-jars')}/**/*"
|
218
205
|
end
|
219
206
|
|
220
|
-
def included_global_specs
|
221
|
-
"jruby-openssl-#{
|
207
|
+
def included_global_specs gems
|
208
|
+
"jruby-openssl-#{gem_version(gems, 'jruby-openssl')}.gemspec, bouncy-castle-java-#{gem_version(gems,
|
209
|
+
'bouncy-castle-java-jars')}
|
210
|
+
.gemspec"
|
222
211
|
end
|
223
212
|
|
224
213
|
def included_gems gems
|
data/lib/web_app_builder.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
$: << File.expand_path(File.dirname(__FILE__) + '/../lib')
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
require 'web_app_builder'
|
4
|
+
|
5
|
+
describe WebAppBuilder do
|
6
|
+
|
7
|
+
let(:basedir) { File.expand_path("#{File.dirname(__FILE__)}/..") }
|
8
|
+
|
9
|
+
subject { WebAppBuilder.new("#{basedir}/build", basedir, "web_app_builder") }
|
10
|
+
|
11
|
+
before do
|
12
|
+
subject.clean
|
13
|
+
subject.prepare
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should create new zip file with files at particular folder" do
|
17
|
+
subject.war
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should create new exploded directory with files" do
|
21
|
+
subject.war_exploded
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
data/web_app_builder.gemspec
CHANGED
@@ -19,6 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_runtime_dependency "meta_methods", [">= 0"]
|
20
20
|
spec.add_runtime_dependency "file_utils", [">= 0"]
|
21
21
|
spec.add_runtime_dependency "zip_dsl", [">= 0"]
|
22
|
+
spec.add_runtime_dependency "jruby-jars", [">= 0"]
|
23
|
+
spec.add_runtime_dependency "jruby-rack", [">= 0"]
|
24
|
+
spec.add_runtime_dependency "jruby-openssl", [">= 0"]
|
25
|
+
spec.add_runtime_dependency "bouncy-castle-java", [">= 0"]
|
22
26
|
spec.add_development_dependency "gemspec_deps_gen", [">= 0"]
|
23
27
|
spec.add_development_dependency "gemcutter", [">= 0"]
|
24
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_app_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -75,6 +75,70 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: jruby-jars
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: jruby-rack
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: jruby-openssl
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: bouncy-castle-java
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
78
142
|
- !ruby/object:Gem::Dependency
|
79
143
|
name: gemspec_deps_gen
|
80
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,9 +195,16 @@ files:
|
|
131
195
|
- LICENSE
|
132
196
|
- README.md
|
133
197
|
- Rakefile
|
198
|
+
- Warfile
|
199
|
+
- config/templates/META-INF/context.xml
|
200
|
+
- config/templates/WEB-INF/jboss-web.xml
|
201
|
+
- config/templates/WEB-INF/web.xml
|
202
|
+
- config/templates/postgres-ds.xml
|
134
203
|
- lib/web_app_builder.rb
|
135
204
|
- lib/web_app_builder/version.rb
|
136
205
|
- lib/web_app_builder/web_app_builder.rb
|
206
|
+
- spec/spec_helper.rb
|
207
|
+
- spec/web_app_builder_spec.rb
|
137
208
|
- web_app_builder.gemspec
|
138
209
|
- web_app_builder.gemspec.erb
|
139
210
|
homepage: http://github.com/shvets/web_app_builder
|
@@ -161,4 +232,6 @@ signing_key:
|
|
161
232
|
specification_version: 3
|
162
233
|
summary: Class that helps to keep database credentials for rails application in private
|
163
234
|
place
|
164
|
-
test_files:
|
235
|
+
test_files:
|
236
|
+
- spec/spec_helper.rb
|
237
|
+
- spec/web_app_builder_spec.rb
|