closure 1.4.3 → 1.5.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 (70) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +12 -12
  3. data/closure-compiler/README.md +503 -0
  4. data/closure-compiler/compiler.jar +0 -0
  5. data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
  6. data/closure-templates/soyutils.js +1593 -469
  7. data/closure-templates/soyutils_usegoog.js +1105 -223
  8. data/docs/SCRIPT.md +5 -5
  9. data/docs/closure/Closure/BeanShell.html +63 -54
  10. data/docs/closure/Closure/Compiler/Compilation.html +124 -107
  11. data/docs/closure/Closure/Compiler/Error.html +28 -21
  12. data/docs/closure/Closure/Compiler.html +81 -76
  13. data/docs/closure/Closure/FileResponse.html +113 -98
  14. data/docs/closure/Closure/Goog.html +264 -253
  15. data/docs/closure/Closure/Middleware.html +66 -55
  16. data/docs/closure/Closure/Script/NotFound.html +28 -21
  17. data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
  18. data/docs/closure/Closure/Script.html +212 -203
  19. data/docs/closure/Closure/Server.html +100 -90
  20. data/docs/closure/Closure/ShowExceptions.html +63 -52
  21. data/docs/closure/Closure/Sources.html +254 -246
  22. data/docs/closure/Closure/Templates/Error.html +28 -21
  23. data/docs/closure/Closure/Templates.html +88 -80
  24. data/docs/closure/Closure.html +181 -163
  25. data/docs/closure/_index.html +42 -38
  26. data/docs/closure/class_list.html +19 -8
  27. data/docs/closure/css/full_list.css +4 -2
  28. data/docs/closure/css/style.css +68 -51
  29. data/docs/closure/file.LICENSE.html +24 -217
  30. data/docs/closure/file.README.html +54 -47
  31. data/docs/closure/file_list.html +20 -9
  32. data/docs/closure/frames.html +18 -5
  33. data/docs/closure/index.html +54 -47
  34. data/docs/closure/js/app.js +60 -46
  35. data/docs/closure/js/full_list.js +24 -10
  36. data/docs/closure/js/jquery.js +4 -16
  37. data/docs/closure/method_list.html +74 -175
  38. data/docs/closure/top-level-namespace.html +29 -20
  39. data/lib/closure/compiler.rb +32 -42
  40. data/lib/closure/goog.rb +12 -12
  41. data/lib/closure/server.rb +6 -6
  42. data/lib/closure/show_exceptions.rb +15 -12
  43. data/lib/closure/version.rb +1 -1
  44. data/scripts/git.erb +183 -0
  45. data/scripts/hello/compiler.js.erb +2 -2
  46. data/scripts/hello/hello.js +1 -1
  47. data/scripts/hello/index.erb +6 -0
  48. data/scripts/hello/legume.js +12 -7
  49. data/scripts/index.erb +15 -13
  50. data/scripts/modules/compiler.js.erb +3 -3
  51. data/scripts/modules/compiler_build.js +3 -3
  52. data/scripts/modules/compiler_build.map +13 -12159
  53. data/scripts/modules/compiler_build_api.js +1 -1
  54. data/scripts/modules/compiler_build_app.js +74 -71
  55. data/scripts/modules/compiler_build_settings.js +2 -2
  56. data/scripts/modules/index.erb +5 -3
  57. data/scripts/modules/settings.js +1 -1
  58. data/scripts/svn.erb +11 -11
  59. data/scripts/welcome.erb +7 -6
  60. metadata +65 -81
  61. data/closure-compiler/README +0 -292
  62. data/scripts/hello/compiler_build.js +0 -5
  63. data/scripts/hello/compiler_build.map +0 -748
  64. data/scripts/hello/compiler_debug.js +0 -119
  65. data/scripts/modules/compiler_debug.js +0 -6
  66. data/scripts/modules/compiler_debug_api.js +0 -11
  67. data/scripts/modules/compiler_debug_app.js +0 -2414
  68. data/scripts/modules/compiler_debug_settings.js +0 -39
  69. data/scripts/rails/index.erb +0 -46
  70. data/scripts/rails/rails_ujs.js +0 -96
data/scripts/index.erb CHANGED
@@ -1,22 +1,27 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
+ <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
5
+ <meta content="utf-8" http-equiv="encoding">
6
+ <title>Welcome to Closure</title>
4
7
  <style type="text/css" media="screen">
5
- body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
6
- select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}
8
+ html {font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;}
9
+ button,input,optgroup,select,textarea {font-family: sans-serif; font-size: inherit;}
7
10
  </style>
8
11
  </head>
9
12
  <body>
10
13
 
11
14
  <h1>Closure Script</h1>
12
-
13
- <%= render 'svn', :svn_name => 'Closure Library', :svn_path => 'closure-library',
14
- :svn_url => 'http://closure-library.googlecode.com/svn/trunk/' %>
15
+
16
+ <%= render 'git', :git_name => 'Closure Library', :git_path => 'closure-library',
17
+ :git_url => 'https://anon:anon@github.com/google/closure-library.git' %>
15
18
 
16
19
  <p>
17
20
  Only the documentation will work until Closure Library is downloaded.
18
21
  <br />
19
- You may need to manually download Closure Library if Subversion fails.
22
+ Documentation requires kramdown gem to be installed.
23
+ <br />
24
+ You may need to manually download Closure Library if git fails.
20
25
  </p>
21
26
 
22
27
  <ul>
@@ -40,17 +45,14 @@
40
45
  </li>
41
46
  <li>
42
47
  <a href='modules/index'>Modules - Raw</a>
43
- </li>
48
+ </li>
44
49
  <li>
45
50
  <a href='modules/index?build'>Modules - Build</a>
46
- </li>
51
+ </li>
47
52
  <li>
48
53
  <a href='modules/index?debug'>Modules - Debug</a>
49
- </li>
50
- <li>
51
- <a href='rails/index'>Rails 3 unobtrusive</a>
52
- </li>
54
+ </li>
53
55
  </ul>
54
-
56
+
55
57
  </body>
56
58
  </html>
@@ -1,4 +1,4 @@
1
- <%
1
+ <%
2
2
  # The --module option no longer needs a file count if you
3
3
  # use '*' to mean 'everything until the next --module'.
4
4
  # This way everything is automatic when using namespaces.
@@ -6,9 +6,9 @@ args = %w{
6
6
  --summary_detail_level 3
7
7
  --module app:*
8
8
  --ns example.initializer.app
9
- --module api:*:app
9
+ --module api:*:app
10
10
  --ns example.initializer.api
11
- --module settings:*:app
11
+ --module settings:*:app
12
12
  --ns example.initializer.settings
13
13
  }
14
14
 
@@ -1,6 +1,6 @@
1
1
  var MODULE_INFO = {"app": [], "api": ["app"], "settings": ["app"]};
2
2
  var MODULE_URIS = {
3
- "app": ["/modules/compiler_build_app.js?1317431990"],
4
- "api": ["/modules/compiler_build_api.js?1317431990"],
5
- "settings": ["/modules/compiler_build_settings.js?1317431990"]
3
+ "app": ["/modules/compiler_build_app.js?1458503735"],
4
+ "api": ["/modules/compiler_build_api.js?1458503735"],
5
+ "settings": ["/modules/compiler_build_settings.js?1458503735"]
6
6
  };