warbler 1.2.1 → 1.3.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/Gemfile +8 -5
  2. data/History.txt +5 -0
  3. data/Manifest.txt +43 -23
  4. data/README.txt +67 -26
  5. data/Rakefile +17 -6
  6. data/ext/JarMain.java +147 -0
  7. data/ext/{Main.java → WarMain.java} +4 -4
  8. data/ext/{WarblerWar.java → WarblerJar.java} +79 -13
  9. data/ext/{WarblerWarService.java → WarblerJarService.java} +2 -2
  10. data/lib/warbler/application.rb +9 -9
  11. data/lib/warbler/config.rb +58 -204
  12. data/lib/warbler/gems.rb +2 -2
  13. data/lib/warbler/jar.rb +247 -0
  14. data/lib/warbler/task.rb +28 -60
  15. data/lib/warbler/templates/config.erb +1 -1
  16. data/lib/warbler/templates/rack.erb +1 -1
  17. data/lib/warbler/templates/rails.erb +1 -1
  18. data/lib/warbler/traits/bundler.rb +58 -0
  19. data/lib/warbler/traits/gemspec.rb +64 -0
  20. data/lib/warbler/traits/jar.rb +53 -0
  21. data/lib/warbler/traits/merb.rb +34 -0
  22. data/lib/warbler/traits/nogemspec.rb +41 -0
  23. data/lib/warbler/traits/rack.rb +31 -0
  24. data/lib/warbler/traits/rails.rb +57 -0
  25. data/lib/warbler/traits/war.rb +191 -0
  26. data/lib/warbler/traits.rb +105 -0
  27. data/lib/warbler/version.rb +1 -1
  28. data/lib/warbler/war.rb +1 -247
  29. data/lib/warbler.rb +2 -5
  30. data/lib/warbler_jar.jar +0 -0
  31. data/spec/sample_jar/History.txt +6 -0
  32. data/spec/sample_jar/Manifest.txt +8 -0
  33. data/spec/sample_jar/README.txt +30 -0
  34. data/spec/sample_jar/lib/sample_jar.rb +6 -0
  35. data/spec/sample_jar/sample_jar.gemspec +41 -0
  36. data/spec/sample_jar/test/test_sample_jar.rb +8 -0
  37. data/spec/{sample → sample_war}/app/controllers/application.rb +0 -0
  38. data/spec/{sample → sample_war}/app/helpers/application_helper.rb +0 -0
  39. data/spec/{sample → sample_war}/config/boot.rb +0 -0
  40. data/spec/{sample → sample_war}/config/database.yml +0 -0
  41. data/spec/{sample → sample_war}/config/environment.rb +0 -0
  42. data/spec/{sample → sample_war}/config/environments/development.rb +0 -0
  43. data/spec/{sample → sample_war}/config/environments/production.rb +0 -0
  44. data/spec/{sample → sample_war}/config/environments/test.rb +0 -0
  45. data/spec/{sample → sample_war}/config/initializers/inflections.rb +0 -0
  46. data/spec/{sample → sample_war}/config/initializers/mime_types.rb +0 -0
  47. data/spec/{sample → sample_war}/config/initializers/new_rails_defaults.rb +0 -0
  48. data/spec/{sample → sample_war}/config/routes.rb +0 -0
  49. data/spec/{sample → sample_war}/lib/tasks/utils.rake +0 -0
  50. data/spec/{sample → sample_war}/public/404.html +0 -0
  51. data/spec/{sample → sample_war}/public/422.html +0 -0
  52. data/spec/{sample → sample_war}/public/500.html +0 -0
  53. data/spec/{sample → sample_war}/public/favicon.ico +0 -0
  54. data/spec/{sample → sample_war}/public/index.html +0 -0
  55. data/spec/{sample → sample_war}/public/robots.txt +0 -0
  56. data/spec/spec_helper.rb +40 -0
  57. data/spec/warbler/application_spec.rb +2 -9
  58. data/spec/warbler/config_spec.rb +101 -83
  59. data/spec/warbler/jar_spec.rb +763 -0
  60. data/spec/warbler/task_spec.rb +56 -41
  61. data/spec/warbler/traits_spec.rb +16 -0
  62. data/spec/warbler/war_spec.rb +2 -492
  63. data/warble.rb +36 -32
  64. metadata +57 -35
  65. data/lib/warbler_war.jar +0 -0
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warbler
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ prerelease: true
5
5
  segments:
6
6
  - 1
7
- - 2
8
- - 1
9
- version: 1.2.1
7
+ - 3
8
+ - 0
9
+ - beta1
10
+ version: 1.3.0.beta1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Nick Sieger
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-13 00:00:00 -05:00
18
+ date: 2010-11-11 00:00:00 -06:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -93,10 +94,10 @@ dependencies:
93
94
  prerelease: false
94
95
  type: :development
95
96
  description: |-
96
- Warbler is a gem to make a .war file out of a Rails, Merb, or Rack-based
97
- application. The intent is to provide a minimal, flexible, ruby-like way to
98
- bundle up all of your application files for deployment to a Java application
99
- server.
97
+ Warbler is a gem to make a Java jar or war file out of any Ruby,
98
+ Rails, Merb, or Rack application. Warbler provides a minimal,
99
+ flexible, Ruby-like way to bundle up all of your application files for
100
+ deployment to a Java environment.
100
101
  email: nick@nicksieger.com
101
102
  executables:
102
103
  - warble
@@ -115,44 +116,63 @@ files:
115
116
  - README.txt
116
117
  - Rakefile
117
118
  - bin/warble
118
- - ext/Main.java
119
- - ext/WarblerWar.java
120
- - ext/WarblerWarService.java
119
+ - ext/JarMain.java
120
+ - ext/WarMain.java
121
+ - ext/WarblerJar.java
122
+ - ext/WarblerJarService.java
121
123
  - lib/warbler.rb
122
124
  - lib/warbler/application.rb
123
125
  - lib/warbler/config.rb
124
126
  - lib/warbler/gems.rb
127
+ - lib/warbler/jar.rb
125
128
  - lib/warbler/task.rb
126
129
  - lib/warbler/templates/config.erb
127
130
  - lib/warbler/templates/rack.erb
128
131
  - lib/warbler/templates/rails.erb
132
+ - lib/warbler/traits.rb
133
+ - lib/warbler/traits/bundler.rb
134
+ - lib/warbler/traits/gemspec.rb
135
+ - lib/warbler/traits/jar.rb
136
+ - lib/warbler/traits/merb.rb
137
+ - lib/warbler/traits/nogemspec.rb
138
+ - lib/warbler/traits/rack.rb
139
+ - lib/warbler/traits/rails.rb
140
+ - lib/warbler/traits/war.rb
129
141
  - lib/warbler/version.rb
130
142
  - lib/warbler/war.rb
131
- - lib/warbler_war.jar
132
- - spec/sample/app/controllers/application.rb
133
- - spec/sample/app/helpers/application_helper.rb
134
- - spec/sample/config/boot.rb
135
- - spec/sample/config/database.yml
136
- - spec/sample/config/environment.rb
137
- - spec/sample/config/environments/development.rb
138
- - spec/sample/config/environments/production.rb
139
- - spec/sample/config/environments/test.rb
140
- - spec/sample/config/initializers/inflections.rb
141
- - spec/sample/config/initializers/mime_types.rb
142
- - spec/sample/config/initializers/new_rails_defaults.rb
143
- - spec/sample/config/routes.rb
144
- - spec/sample/lib/tasks/utils.rake
145
- - spec/sample/public/404.html
146
- - spec/sample/public/422.html
147
- - spec/sample/public/500.html
148
- - spec/sample/public/favicon.ico
149
- - spec/sample/public/index.html
150
- - spec/sample/public/robots.txt
143
+ - lib/warbler_jar.jar
144
+ - spec/sample_jar/History.txt
145
+ - spec/sample_jar/Manifest.txt
146
+ - spec/sample_jar/README.txt
147
+ - spec/sample_jar/lib/sample_jar.rb
148
+ - spec/sample_jar/sample_jar.gemspec
149
+ - spec/sample_jar/test/test_sample_jar.rb
150
+ - spec/sample_war/app/controllers/application.rb
151
+ - spec/sample_war/app/helpers/application_helper.rb
152
+ - spec/sample_war/config/boot.rb
153
+ - spec/sample_war/config/database.yml
154
+ - spec/sample_war/config/environment.rb
155
+ - spec/sample_war/config/environments/development.rb
156
+ - spec/sample_war/config/environments/production.rb
157
+ - spec/sample_war/config/environments/test.rb
158
+ - spec/sample_war/config/initializers/inflections.rb
159
+ - spec/sample_war/config/initializers/mime_types.rb
160
+ - spec/sample_war/config/initializers/new_rails_defaults.rb
161
+ - spec/sample_war/config/routes.rb
162
+ - spec/sample_war/lib/tasks/utils.rake
163
+ - spec/sample_war/public/404.html
164
+ - spec/sample_war/public/422.html
165
+ - spec/sample_war/public/500.html
166
+ - spec/sample_war/public/favicon.ico
167
+ - spec/sample_war/public/index.html
168
+ - spec/sample_war/public/robots.txt
151
169
  - spec/spec_helper.rb
152
170
  - spec/warbler/application_spec.rb
153
171
  - spec/warbler/config_spec.rb
154
172
  - spec/warbler/gems_spec.rb
173
+ - spec/warbler/jar_spec.rb
155
174
  - spec/warbler/task_spec.rb
175
+ - spec/warbler/traits_spec.rb
156
176
  - spec/warbler/war_spec.rb
157
177
  - warble.rb
158
178
  - web.xml.erb
@@ -181,11 +201,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
201
  required_rubygems_version: !ruby/object:Gem::Requirement
182
202
  none: false
183
203
  requirements:
184
- - - ">="
204
+ - - ">"
185
205
  - !ruby/object:Gem::Version
186
206
  segments:
187
- - 0
188
- version: "0"
207
+ - 1
208
+ - 3
209
+ - 1
210
+ version: 1.3.1
189
211
  requirements: []
190
212
 
191
213
  rubyforge_project: caldersphere
data/lib/warbler_war.jar DELETED
Binary file