closure 1.1.692 → 1.2.701
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.
- data/README.md +0 -13
- data/closure-library/alltests.js +1 -1
- data/closure-library/closure/goog/debug/reflect.js +5 -1
- data/closure-library/closure/goog/deps.js +7 -0
- data/closure-library/closure/goog/i18n/messageformat.js +4 -1
- data/closure-library/closure/goog/i18n/messageformat_test.html +11 -0
- data/closure-library/closure/goog/math/vec3.js +0 -19
- data/closure-library/closure/goog/messaging/portcaller.js +150 -0
- data/closure-library/closure/goog/messaging/portcaller_test.html +66 -0
- data/closure-library/closure/goog/messaging/portnetwork.js +78 -0
- data/closure-library/closure/goog/messaging/portnetwork_test.html +64 -0
- data/closure-library/closure/goog/messaging/portoperator.js +196 -0
- data/closure-library/closure/goog/messaging/portoperator_test.html +112 -0
- data/closure-library/closure/goog/messaging/testdata/portchannel_inner.html +28 -0
- data/closure-library/closure/goog/messaging/testdata/portnetwork_inner.html +35 -0
- data/closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js +33 -0
- data/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js +33 -0
- data/closure-library/closure/goog/testing/functionmock.js +1 -1
- data/closure-library/closure/goog/testing/messaging/mockmessageport.js +85 -0
- data/closure-library/closure/goog/testing/messaging/mockportnetwork.js +64 -0
- data/closure-library/closure/goog/tweak/tweak.js +1 -1
- data/closure-library/closure/goog/ui/advancedtooltip.js +1 -2
- data/closure-library/closure/goog/ui/filteredmenu.js +2 -2
- data/closure-library/closure/goog/ui/menubutton.js +6 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query.js +9 -4
- data/closure.gemspec +1 -2
- data/config.ru +4 -4
- data/lib/closure.rb +3 -1
- data/lib/closure/compiler.rb +11 -24
- data/lib/closure/goog.rb +37 -16
- data/lib/closure/middleware.rb +2 -2
- data/lib/closure/script.rb +12 -4
- data/lib/closure/server.rb +3 -1
- data/lib/closure/show_exceptions.rb +63 -0
- data/lib/closure/sources.rb +22 -6
- data/lib/closure/templates.rb +2 -2
- data/lib/closure/version.rb +1 -1
- data/scripts/demos/compiler.build +1 -0
- data/scripts/demos/compiler.debug +24 -0
- data/scripts/demos/compiler.js.erb +22 -0
- data/scripts/demos/compiler.map +114 -0
- data/scripts/demos/googly.erb +19 -0
- data/scripts/demos/googly.js +24 -0
- data/scripts/demos/helloworld.erb +24 -0
- data/scripts/demos/index.erb +29 -0
- data/scripts/demos/{externs_jquery.js → jquery.js} +0 -0
- data/scripts/demos/rails_ujs.erb +38 -0
- data/scripts/{examples/rails/ujs.js → demos/rails_ujs.js} +0 -0
- data/scripts/externs/jquery-ui.externs +10 -0
- data/scripts/externs/jquery.externs +4 -0
- data/scripts/{demos/externs_jquery.externs → externs/jquery_1_4_2.externs} +1 -1
- data/scripts/index.erb +19 -0
- metadata +36 -24
- data/scripts/demos/compile.js.erb +0 -8
- data/scripts/demos/compile.out +0 -1
- data/scripts/demos/compiler.haml +0 -17
- data/scripts/demos/compiler.js +0 -12
- data/scripts/demos/externs.haml +0 -16
- data/scripts/demos/externs.js.erb +0 -8
- data/scripts/demos/externs.out +0 -1
- data/scripts/demos/externs_jquerytest.js +0 -11
- data/scripts/demos/helloworld.haml +0 -15
- data/scripts/demos/index.haml +0 -21
- data/scripts/demos/rails_ujs.haml +0 -24
- data/scripts/favicon.ico +0 -0
- data/scripts/index.haml +0 -14
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta content='authenticity_token' name='csrf-param'>
|
5
|
+
<meta content='cf50faa3fe97702ca1ae<=?' name='csrf-token'>
|
6
|
+
<script src='<%= goog.base_js %>'></script>
|
7
|
+
<script type='text/javascript'>
|
8
|
+
//<![CDATA[
|
9
|
+
goog.require('rails.ujs');
|
10
|
+
//]]>
|
11
|
+
</script>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<ul>
|
15
|
+
<li>
|
16
|
+
<a data-confirm='Are you sure?' href='?'>a data-confirm</a>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<a data-remote='true' href='?'>a data-remote</a>
|
20
|
+
</li>
|
21
|
+
<li>
|
22
|
+
<a data-method='DELETE' href='?'>a data-method</a>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<a data-confirm='Seriously?' data-remote='true' href='?'>a data-confirm data-remote</a>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<form action='?' data-remote='true' method='post'>
|
29
|
+
<fieldset>
|
30
|
+
<label for='name'>Name:</label>
|
31
|
+
<input class='text' name='name' type='text'>
|
32
|
+
<input class='button' type='submit' value='Send'>
|
33
|
+
</fieldset>
|
34
|
+
</form>
|
35
|
+
</li>
|
36
|
+
</ul>
|
37
|
+
</body>
|
38
|
+
</html>
|
File without changes
|
data/scripts/index.erb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<body>
|
4
|
+
<h1>Closure Script</h1>
|
5
|
+
<ul>
|
6
|
+
<li>
|
7
|
+
<a href='/demos/index'>Closure Script Demos</a>
|
8
|
+
</li>
|
9
|
+
<li>
|
10
|
+
<a href='/docs/closure'>Closure Script Docs</a>
|
11
|
+
<a href='/docs/closure/frames'>(frames)</a>
|
12
|
+
</li>
|
13
|
+
|
14
|
+
<li>
|
15
|
+
<a href='/goog/demos/index'>Closure Library Demos</a>
|
16
|
+
</li>
|
17
|
+
</ul>
|
18
|
+
</body>
|
19
|
+
</html>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1381
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 2
|
9
|
+
- 701
|
10
|
+
version: 1.2.701
|
11
11
|
platform: ruby
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-10 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -873,9 +873,19 @@ files:
|
|
873
873
|
- closure-library/closure/goog/messaging/messaging_test.html
|
874
874
|
- closure-library/closure/goog/messaging/multichannel.js
|
875
875
|
- closure-library/closure/goog/messaging/multichannel_test.html
|
876
|
+
- closure-library/closure/goog/messaging/portcaller.js
|
877
|
+
- closure-library/closure/goog/messaging/portcaller_test.html
|
876
878
|
- closure-library/closure/goog/messaging/portchannel.js
|
877
879
|
- closure-library/closure/goog/messaging/portchannel_test.html
|
880
|
+
- closure-library/closure/goog/messaging/portnetwork.js
|
881
|
+
- closure-library/closure/goog/messaging/portnetwork_test.html
|
882
|
+
- closure-library/closure/goog/messaging/portoperator.js
|
883
|
+
- closure-library/closure/goog/messaging/portoperator_test.html
|
884
|
+
- closure-library/closure/goog/messaging/testdata/portchannel_inner.html
|
878
885
|
- closure-library/closure/goog/messaging/testdata/portchannel_worker.js
|
886
|
+
- closure-library/closure/goog/messaging/testdata/portnetwork_inner.html
|
887
|
+
- closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js
|
888
|
+
- closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js
|
879
889
|
- closure-library/closure/goog/module/abstractmoduleloader.js
|
880
890
|
- closure-library/closure/goog/module/basemodule.js
|
881
891
|
- closure-library/closure/goog/module/basemoduleloader.js
|
@@ -1105,6 +1115,8 @@ files:
|
|
1105
1115
|
- closure-library/closure/goog/testing/loosemock_test.html
|
1106
1116
|
- closure-library/closure/goog/testing/messaging/mockmessagechannel.js
|
1107
1117
|
- closure-library/closure/goog/testing/messaging/mockmessageevent.js
|
1118
|
+
- closure-library/closure/goog/testing/messaging/mockmessageport.js
|
1119
|
+
- closure-library/closure/goog/testing/messaging/mockportnetwork.js
|
1108
1120
|
- closure-library/closure/goog/testing/mock.js
|
1109
1121
|
- closure-library/closure/goog/testing/mock_test.html
|
1110
1122
|
- closure-library/closure/goog/testing/mockclassfactory.js
|
@@ -1505,39 +1517,39 @@ files:
|
|
1505
1517
|
- lib/closure/sass.rb
|
1506
1518
|
- lib/closure/script.rb
|
1507
1519
|
- lib/closure/server.rb
|
1520
|
+
- lib/closure/show_exceptions.rb
|
1508
1521
|
- lib/closure/sources.rb
|
1509
1522
|
- lib/closure/templates.rb
|
1510
1523
|
- lib/closure/version.rb
|
1511
|
-
- scripts/demos/
|
1512
|
-
- scripts/demos/
|
1513
|
-
- scripts/demos/compiler.
|
1514
|
-
- scripts/demos/compiler.
|
1524
|
+
- scripts/demos/compiler.build
|
1525
|
+
- scripts/demos/compiler.debug
|
1526
|
+
- scripts/demos/compiler.js.erb
|
1527
|
+
- scripts/demos/compiler.map
|
1515
1528
|
- scripts/demos/deps.js.erb
|
1516
|
-
- scripts/demos/
|
1517
|
-
- scripts/demos/
|
1518
|
-
- scripts/demos/
|
1519
|
-
- scripts/demos/externs_jquery.externs
|
1520
|
-
- scripts/demos/externs_jquery.js
|
1521
|
-
- scripts/demos/externs_jquerytest.js
|
1522
|
-
- scripts/demos/helloworld.haml
|
1529
|
+
- scripts/demos/googly.erb
|
1530
|
+
- scripts/demos/googly.js
|
1531
|
+
- scripts/demos/helloworld.erb
|
1523
1532
|
- scripts/demos/helloworld.js
|
1524
1533
|
- scripts/demos/helloworld.soy
|
1525
|
-
- scripts/demos/index.
|
1526
|
-
- scripts/demos/
|
1527
|
-
- scripts/
|
1528
|
-
- scripts/
|
1534
|
+
- scripts/demos/index.erb
|
1535
|
+
- scripts/demos/jquery.js
|
1536
|
+
- scripts/demos/rails_ujs.erb
|
1537
|
+
- scripts/demos/rails_ujs.js
|
1538
|
+
- scripts/externs/jquery-ui.externs
|
1539
|
+
- scripts/externs/jquery.externs
|
1540
|
+
- scripts/externs/jquery_1_4_2.externs
|
1529
1541
|
- scripts/fixtures/_partial.haml
|
1530
1542
|
- scripts/fixtures/erb.html.erb
|
1531
1543
|
- scripts/fixtures/haml.haml
|
1532
1544
|
- scripts/fixtures/html.html
|
1533
1545
|
- scripts/fixtures/route_js.js.erb
|
1534
|
-
- scripts/index.
|
1546
|
+
- scripts/index.erb
|
1535
1547
|
- test/beanshell_test.rb
|
1536
1548
|
- test/server_test.rb
|
1537
1549
|
- test/sources_test.rb
|
1538
1550
|
- test/test_helper.rb
|
1539
1551
|
has_rdoc: true
|
1540
|
-
homepage:
|
1552
|
+
homepage: http://www.closure-script.com/
|
1541
1553
|
licenses: []
|
1542
1554
|
|
1543
1555
|
post_install_message:
|
@@ -1567,7 +1579,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1567
1579
|
requirements: []
|
1568
1580
|
|
1569
1581
|
rubyforge_project:
|
1570
|
-
rubygems_version: 1.
|
1582
|
+
rubygems_version: 1.5.0
|
1571
1583
|
signing_key:
|
1572
1584
|
specification_version: 3
|
1573
1585
|
summary: Closure Script for Google Closure Compiler, Library, and Templates.
|
data/scripts/demos/compile.out
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
window.run_test=function(){document.write("PASS: The code in test.js ran.")};
|
data/scripts/demos/compiler.haml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
- if params.has_key? 'build'
|
5
|
-
%script{:src => 'compile.js'}
|
6
|
-
- else
|
7
|
-
%script{:src => goog.base_js}
|
8
|
-
:javascript
|
9
|
-
goog.require('googly.demos.compiler');
|
10
|
-
%body
|
11
|
-
- if params.has_key? 'build'
|
12
|
-
%p (build mode)
|
13
|
-
- else
|
14
|
-
%p (require mode)
|
15
|
-
:javascript
|
16
|
-
run_test();
|
17
|
-
|
data/scripts/demos/compiler.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
goog.provide('googly.demos.compiler');
|
2
|
-
|
3
|
-
googly.demos.compiler = function() {
|
4
|
-
|
5
|
-
document.write('P' + 'A' + 'S' + 'S' + ': The code in test.js ran.')
|
6
|
-
}
|
7
|
-
|
8
|
-
goog.exportProperty(window, 'run_test', googly.demos.compiler);
|
9
|
-
|
10
|
-
var f= function(){
|
11
|
-
this.demonstrates = 'warnings and errors in the Javascript console';
|
12
|
-
}
|
data/scripts/demos/externs.haml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%script{:src => 'externs_jquery.js'}
|
5
|
-
- if params.has_key? 'build'
|
6
|
-
%script{:src => 'externs.js'}
|
7
|
-
- else
|
8
|
-
%script{:src => goog.base_js}
|
9
|
-
:javascript
|
10
|
-
goog.require('googly.jquerytest');
|
11
|
-
|
12
|
-
%body
|
13
|
-
.jqtest
|
14
|
-
Should not see this.
|
15
|
-
:javascript
|
16
|
-
run_test();
|
data/scripts/demos/externs.out
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
window.run_test=function(){document.write("The code ran.");$(".jqtest").hide()};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%script{:src => goog.base_js}
|
5
|
-
:javascript
|
6
|
-
goog.require('googly.demos.soy.helloworld');
|
7
|
-
%body
|
8
|
-
:javascript
|
9
|
-
// Exercise the .helloWorld template
|
10
|
-
document.write(googly.demos.soy.helloworld.helloWorld());
|
11
|
-
// Exercise the .helloName template
|
12
|
-
document.write('<hr>' + googly.demos.soy.helloworld.helloName({name: 'Ana'}));
|
13
|
-
// Exercise the .helloNames template
|
14
|
-
document.write('<hr>' + googly.demos.soy.helloworld.helloNames(
|
15
|
-
{name: 'Ana', additionalNames: ['Bob', 'Cid', 'Dee']}));
|
data/scripts/demos/index.haml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%title Closure Script Demos
|
5
|
-
%body
|
6
|
-
%h1 Closure Script Demos
|
7
|
-
%ul
|
8
|
-
%li
|
9
|
-
%a(href='compiler') Require Test
|
10
|
-
%li
|
11
|
-
%a(href='compiler?build') Compiler Test
|
12
|
-
%li
|
13
|
-
%a(href='deps.js') Alternate deps
|
14
|
-
%li
|
15
|
-
%a(href='helloworld') Soy helloworld
|
16
|
-
%li
|
17
|
-
%a(href='rails_ujs') Rails unobtrusive javascript
|
18
|
-
%li
|
19
|
-
%a(href='externs') Experimental goog.provide() in externs - require
|
20
|
-
%li
|
21
|
-
%a(href='externs?build') Experimental goog.provide() in externs - build
|
@@ -1,24 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%meta(name="csrf-param" content="authenticity_token")
|
5
|
-
%meta(name="csrf-token" content="cf50faa3fe97702ca1ae<=?")
|
6
|
-
%script{:src => goog.base_js}
|
7
|
-
:javascript
|
8
|
-
goog.require('rails.ujs');
|
9
|
-
%body
|
10
|
-
%ul
|
11
|
-
%li
|
12
|
-
%a(href="?" data-confirm="Are you sure?")a data-confirm
|
13
|
-
%li
|
14
|
-
%a(href="?" data-remote="true")a data-remote
|
15
|
-
%li
|
16
|
-
%a(href="?" data-method="DELETE")a data-method
|
17
|
-
%li
|
18
|
-
%a(href="?" data-confirm="Seriously?" data-remote="true")a data-confirm data-remote
|
19
|
-
%li
|
20
|
-
%form(action = "?" method = "post" data-remote="true")
|
21
|
-
%fieldset
|
22
|
-
%label{:for => "name"} Name:
|
23
|
-
%input{:type => "text", :name => "name", :class => "text"}
|
24
|
-
%input{:type => "submit", :value => "Send", :class => "button"}
|
data/scripts/favicon.ico
DELETED
Binary file
|
data/scripts/index.haml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%title Closure Script Development Home
|
5
|
-
%link(rel="shortcut icon" href="/favicon.ico")
|
6
|
-
%body
|
7
|
-
%h1 Closure Script
|
8
|
-
%ul
|
9
|
-
%li
|
10
|
-
%a(href='/demos/index') Closure Script Demos
|
11
|
-
%li
|
12
|
-
%a(href='/docs/closure') Closure Script Docs (YARD)
|
13
|
-
%li
|
14
|
-
%a(href='/goog/demos/index') Closure Library Demos
|