gwt-run 0.1.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.
Files changed (50) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +47 -0
  3. data/bin/gwt +98 -0
  4. data/bin/gwt~ +97 -0
  5. data/bin/jetty-run~ +84 -0
  6. data/lib/gwt-run.rb +21 -0
  7. data/lib/gwt-run.rb~ +1 -0
  8. data/lib/gwt_run.rb +21 -0
  9. data/lib/gwt_run.rb~ +1 -0
  10. data/lib/jetty-run.rb~ +1 -0
  11. data/lib/jetty_run.rb~ +1 -0
  12. data/lib/maven/gwt/Mavenfile +68 -0
  13. data/lib/maven/gwt/Mavenfile~ +62 -0
  14. data/lib/maven/gwt/cli.rb +34 -0
  15. data/lib/maven/gwt/cli.rb~ +14 -0
  16. data/lib/maven/gwt/generator.rb +86 -0
  17. data/lib/maven/gwt/generator.rb~ +62 -0
  18. data/lib/maven/gwt/jetty_project.rb~ +69 -0
  19. data/lib/maven/gwt/layout.rb +51 -0
  20. data/lib/maven/gwt/layout.rb~ +27 -0
  21. data/lib/maven/gwt/pom_magic.rb +74 -0
  22. data/lib/maven/gwt/pom_magic.rb~ +54 -0
  23. data/lib/maven/gwt/rack-web.xml +86 -0
  24. data/lib/maven/gwt/rack-web.xml~ +48 -0
  25. data/lib/maven/gwt/rack_gwt.rb~ +7 -0
  26. data/lib/maven/gwt/rack_project.rb~ +105 -0
  27. data/lib/maven/gwt/rails-web.xml +68 -0
  28. data/lib/maven/gwt/rails-web.xml~ +48 -0
  29. data/lib/maven/gwt/rails_project.rb~ +13 -0
  30. data/lib/maven/gwt/ruby_maven.rb~ +24 -0
  31. data/lib/maven/gwt/templates/Application.java +68 -0
  32. data/lib/maven/gwt/templates/Application.java~ +46 -0
  33. data/lib/maven/gwt/templates/Application.ui.xml +30 -0
  34. data/lib/maven/gwt/templates/Application.ui.xml~ +9 -0
  35. data/lib/maven/gwt/templates/EntryPoint.java +80 -0
  36. data/lib/maven/gwt/templates/EntryPoint.java~ +55 -0
  37. data/lib/maven/gwt/templates/Module.gwt.xml +44 -0
  38. data/lib/maven/gwt/templates/Module.gwt.xml~ +24 -0
  39. data/lib/maven/gwt/templates/ModuleDevelopment.gwt.xml +31 -0
  40. data/lib/maven/gwt/templates/ModuleDevelopment.gwt.xml~ +7 -0
  41. data/lib/maven/gwt/templates/gwt.css +95 -0
  42. data/lib/maven/gwt/templates/index.html +49 -0
  43. data/lib/maven/gwt/templates/index.html~ +29 -0
  44. data/lib/maven/gwt/version.rb +25 -0
  45. data/lib/maven/gwt/version.rb~ +5 -0
  46. data/lib/maven/gwt/web.xml~ +37 -0
  47. data/lib/rack/gwt/rack_gwt.rb~ +7 -0
  48. data/lib/rack/gwt/static.rb +58 -0
  49. data/lib/rack/gwt/static.rb~ +28 -0
  50. metadata +188 -0
@@ -0,0 +1,49 @@
1
+ <!--
2
+ Copyright (C) 2013 Christian Meier
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ -->
21
+ <!DOCTYPE HTML>
22
+ <html>
23
+ <head>
24
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
25
+ <!-- -->
26
+ <!-- Any title is fine -->
27
+ <!-- -->
28
+ <title><%= application_name_humanized %></title>
29
+
30
+ <!-- -->
31
+ <!-- This script loads your compiled module. -->
32
+ <!-- If you add any GWT meta tags, they must -->
33
+ <!-- be added before this line. -->
34
+ <!-- -->
35
+ <script type="text/javascript" language="javascript" src="<%= application_class_name %>/<%= application_class_name %>.nocache.js"></script>
36
+ </head>
37
+
38
+ <!-- -->
39
+ <!-- The body can have arbitrary html, or -->
40
+ <!-- you can leave the body empty if you want -->
41
+ <!-- to create a completely dynamic UI. -->
42
+ <!-- -->
43
+ <body>
44
+
45
+ <!-- OPTIONAL: include this if you want history support -->
46
+ <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
47
+
48
+ </body>
49
+ </html>
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5
+ <!-- -->
6
+ <!-- Any title is fine -->
7
+ <!-- -->
8
+ <title><%= application_name.split( /_/ ).collect{|p| p.capitalize}.join( ' ') %></title>
9
+
10
+ <!-- -->
11
+ <!-- This script loads your compiled module. -->
12
+ <!-- If you add any GWT meta tags, they must -->
13
+ <!-- be added before this line. -->
14
+ <!-- -->
15
+ <script type="text/javascript" language="javascript" src="<%= application_class_name %>/<%= application_class_name %>.nocache.js"></script>
16
+ </head>
17
+
18
+ <!-- -->
19
+ <!-- The body can have arbitrary html, or -->
20
+ <!-- you can leave the body empty if you want -->
21
+ <!-- to create a completely dynamic UI. -->
22
+ <!-- -->
23
+ <body>
24
+
25
+ <!-- OPTIONAL: include this if you want history support -->
26
+ <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
27
+
28
+ </body>
29
+ </html>
@@ -0,0 +1,25 @@
1
+ #
2
+ # Copyright (C) 2013 Christian Meier
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
21
+ module Maven
22
+ module Gwt
23
+ VERSION = '0.1.0'.freeze
24
+ end
25
+ end
@@ -0,0 +1,5 @@
1
+ module Maven
2
+ module Jetty
3
+ VERSION = '0.1.1'.freeze
4
+ end
5
+ end
@@ -0,0 +1,37 @@
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
+ <welcome-file-list>
6
+ <welcome-file>/index.html</welcome-file>
7
+ </welcome-file-list>
8
+
9
+ <context-param>
10
+ <param-name>jruby.max.runtimes</param-name>
11
+ <param-value>1</param-value>
12
+ </context-param>
13
+ <context-param>
14
+ <param-name>jruby.min.runtimes</param-name>
15
+ <param-value>1</param-value>
16
+ </context-param>
17
+
18
+ <filter>
19
+ <filter-name>RackFilter</filter-name>
20
+ <filter-class>org.jruby.rack.RackFilter</filter-class>
21
+ </filter>
22
+ <filter-mapping>
23
+ <filter-name>RackFilter</filter-name>
24
+ <url-pattern>/*</url-pattern>
25
+ </filter-mapping>
26
+
27
+ <listener>
28
+ <listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
29
+ </listener>
30
+ <!--
31
+ <resource-ref>
32
+ <res-ref-name><%= jndi %></res-ref-name>
33
+ <res-type>javax.sql.DataSource</res-type>
34
+ <res-auth>Container</res-auth>
35
+ </resource-ref>
36
+ -->
37
+ </web-app>
@@ -0,0 +1,7 @@
1
+ module Rack
2
+ module Gwt
3
+ class Static < Rack::Static
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,58 @@
1
+ #
2
+ # Copyright (C) 2013 Christian Meier
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in
6
+ # the Software without restriction, including without limitation the rights to
7
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ # the Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
21
+ require 'rack/static'
22
+ require 'date'
23
+
24
+ module Rack
25
+ module Gwt
26
+ class Static < Rack::Static
27
+
28
+ def initialize( app, *gwt_modules )
29
+ if gwt_modules.last.is_a?( Hash )
30
+ gwt_modules.reverse!
31
+ opts = gwt_modules.shift.dup
32
+ gwt_modules.reverse!
33
+ else
34
+ opts = {}
35
+ end
36
+ pathes = gwt_modules.collect { |g| "/#{g}" }
37
+ options = { :root => 'public',
38
+ :index => 'index.html',
39
+ :header_rules => [
40
+ [ /\.css/,
41
+ { 'Content-Type' => 'application/css' } ],
42
+ [ /\.js/,
43
+ { 'Content-Type' => 'application/js' } ],
44
+ [ /\.cache\./,
45
+ { 'Expires' => (Time.now + 365).rfc2822 } ],
46
+ [ /\.nocache\./,
47
+ { 'Expires' => Time.new( 1970 ).rfc2822,
48
+ 'Cache-Control' => 'public, max-age=0, must-revalidate' } ]
49
+ ]
50
+ }
51
+ options.merge!( opts )
52
+ options[ :urls ] = pathes + [ "/#{opts[ :index] }" ]
53
+ super( app, options )
54
+ end
55
+
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,28 @@
1
+ require 'rack/static'
2
+
3
+ module Rack
4
+ module Gwt
5
+ class Static < Rack::Static
6
+
7
+ def initialize( app, *gwt_modules )
8
+ pathes = gwt_modules.collect { |g| "/#{g}" }
9
+ super( app,
10
+ :urls => pathes + [ '/index.html' ],
11
+ :root => 'public',
12
+ :index => 'index.html',
13
+ :header_rules => [
14
+ [ /\.css/,
15
+ { 'Content-Type' => 'application/css' } ],
16
+ [ /\.js/,
17
+ { 'Content-Type' => 'application/js' } ],
18
+ [ /\.cache\./,
19
+ { 'Expires' => (Time.now + 365).rfc2822 } ],
20
+ [ /\.nocache\./,
21
+ { 'Expires' => Time.new( 1970 ).rfc2822,
22
+ 'Cache-Control' => 'public, max-age=0, must-revalidate' } ]
23
+ ] )
24
+ end
25
+
26
+ end
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gwt-run
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Christian Meier
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2013-03-04 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 35
29
+ segments:
30
+ - 10
31
+ - 0
32
+ version: "10.0"
33
+ type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: minitest
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ hash: 23
44
+ segments:
45
+ - 4
46
+ - 6
47
+ version: "4.6"
48
+ type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: cucumber
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ hash: 11
59
+ segments:
60
+ - 1
61
+ - 2
62
+ version: "1.2"
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: copyright-headers
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ~>
72
+ - !ruby/object:Gem::Version
73
+ hash: 15
74
+ segments:
75
+ - 1
76
+ - 0
77
+ version: "1.0"
78
+ type: :development
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: jetty-run
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ hash: 15
89
+ segments:
90
+ - 0
91
+ - 2
92
+ version: "0.2"
93
+ type: :runtime
94
+ version_requirements: *id005
95
+ description: start gwt-shell with rack or rails backend
96
+ email:
97
+ - m.kristian@web.de
98
+ executables:
99
+ - gwt
100
+ extensions: []
101
+
102
+ extra_rdoc_files: []
103
+
104
+ files:
105
+ - bin/gwt
106
+ - bin/jetty-run~
107
+ - bin/gwt~
108
+ - lib/rack/gwt/static.rb
109
+ - lib/rack/gwt/static.rb~
110
+ - lib/rack/gwt/rack_gwt.rb~
111
+ - lib/jetty-run.rb~
112
+ - lib/gwt_run.rb~
113
+ - lib/gwt-run.rb
114
+ - lib/jetty_run.rb~
115
+ - lib/gwt_run.rb
116
+ - lib/gwt-run.rb~
117
+ - lib/maven/gwt/pom_magic.rb
118
+ - lib/maven/gwt/Mavenfile~
119
+ - lib/maven/gwt/cli.rb~
120
+ - lib/maven/gwt/layout.rb
121
+ - lib/maven/gwt/rack-web.xml
122
+ - lib/maven/gwt/version.rb
123
+ - lib/maven/gwt/ruby_maven.rb~
124
+ - lib/maven/gwt/web.xml~
125
+ - lib/maven/gwt/rack_gwt.rb~
126
+ - lib/maven/gwt/rack_project.rb~
127
+ - lib/maven/gwt/jetty_project.rb~
128
+ - lib/maven/gwt/cli.rb
129
+ - lib/maven/gwt/rack-web.xml~
130
+ - lib/maven/gwt/pom_magic.rb~
131
+ - lib/maven/gwt/rails-web.xml
132
+ - lib/maven/gwt/layout.rb~
133
+ - lib/maven/gwt/rails_project.rb~
134
+ - lib/maven/gwt/generator.rb
135
+ - lib/maven/gwt/version.rb~
136
+ - lib/maven/gwt/rails-web.xml~
137
+ - lib/maven/gwt/Mavenfile
138
+ - lib/maven/gwt/templates/index.html~
139
+ - lib/maven/gwt/templates/gwt.css
140
+ - lib/maven/gwt/templates/index.html
141
+ - lib/maven/gwt/templates/EntryPoint.java
142
+ - lib/maven/gwt/templates/Application.ui.xml
143
+ - lib/maven/gwt/templates/Module.gwt.xml
144
+ - lib/maven/gwt/templates/Module.gwt.xml~
145
+ - lib/maven/gwt/templates/Application.java~
146
+ - lib/maven/gwt/templates/Application.ui.xml~
147
+ - lib/maven/gwt/templates/ModuleDevelopment.gwt.xml~
148
+ - lib/maven/gwt/templates/ModuleDevelopment.gwt.xml
149
+ - lib/maven/gwt/templates/EntryPoint.java~
150
+ - lib/maven/gwt/templates/Application.java
151
+ - lib/maven/gwt/generator.rb~
152
+ - MIT-LICENSE
153
+ - README.md
154
+ homepage: http://github.com/mkristian/gwt-run
155
+ licenses:
156
+ - MIT
157
+ post_install_message:
158
+ rdoc_options: []
159
+
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ hash: 3
168
+ segments:
169
+ - 0
170
+ version: "0"
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ hash: 3
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ requirements: []
181
+
182
+ rubyforge_project:
183
+ rubygems_version: 1.8.15
184
+ signing_key:
185
+ specification_version: 3
186
+ summary: run gwt-shell with rack/rails
187
+ test_files: []
188
+