easyxdm-rails 0.0.4 → 0.0.5

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.
@@ -0,0 +1,55 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta http-equiv="CACHE-CONTROL" content="PUBLIC"/>
6
+ <meta http-equiv="EXPIRES" content="Sat, 01 Jan 2050 00:00:00 GMT"/>
7
+ </head>
8
+ <body>
9
+ <script type="text/javascript">
10
+
11
+ function sendMessage(message, url){
12
+ window.setTimeout(function(){
13
+ window.name = message;
14
+ location.href = url + "," + encodeURIComponent(location.protocol + "//" + location.host + location.pathname);
15
+ }, 0);
16
+ }
17
+
18
+ if (location.hash) {
19
+ if (location.hash.substring(1, 2) === "_") {
20
+ var channel, url, hash = location.href.substring(location.href.indexOf("#") + 3), indexOf = hash.indexOf(",");
21
+ if (indexOf == -1) {
22
+ channel = hash;
23
+ }
24
+ else {
25
+ channel = hash.substring(0, indexOf);
26
+ url = decodeURIComponent(hash.substring(indexOf + 1));
27
+ }
28
+ switch (location.hash.substring(2, 3)) {
29
+ case "2":
30
+ // NameTransport local
31
+ window.parent.parent.easyXDM.Fn.get(channel)(window.name);
32
+ location.href = url + "#_4" + channel + ",";
33
+ break;
34
+ case "3":
35
+ // NameTransport remote
36
+ var guest = window.parent.frames["easyXDM_" + channel + "_provider"];
37
+ if (!guest) {
38
+ throw new Error("unable to reference window");
39
+ }
40
+ guest.easyXDM.Fn.get(channel)(window.name);
41
+ location.href = url + "#_4" + channel + ",";
42
+ break;
43
+ case "4":
44
+ // NameTransport idle
45
+ var fn = window.parent.easyXDM.Fn.get(channel + "_load");
46
+ if (fn) {
47
+ fn();
48
+ }
49
+ break;
50
+ }
51
+ }
52
+ }
53
+ </script>
54
+ </body>
55
+ </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easyxdm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -103,6 +103,16 @@ files:
103
103
  - lib/easyxdm-rails/version.rb
104
104
  - lib/easyxdm-rails.rb
105
105
  - lib/tasks/easyxdm-rails_tasks.rake
106
+ - vendor/assets/javascripts/cors/index.html
107
+ - vendor/assets/javascripts/easyXDM.debug.js
108
+ - vendor/assets/javascripts/easyXDM.js
109
+ - vendor/assets/javascripts/easyXDM.min.js
110
+ - vendor/assets/javascripts/easyxdm.swf
111
+ - vendor/assets/javascripts/easyXDM.Widgets.debug.js
112
+ - vendor/assets/javascripts/easyXDM.Widgets.js
113
+ - vendor/assets/javascripts/easyXDM.Widgets.min.js
114
+ - vendor/assets/javascripts/json2.js
115
+ - vendor/assets/javascripts/name.html
106
116
  - MIT-LICENSE
107
117
  - Rakefile
108
118
  - README.md
@@ -120,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
130
  version: '0'
121
131
  segments:
122
132
  - 0
123
- hash: 1113510086132534461
133
+ hash: -948853527300552642
124
134
  required_rubygems_version: !ruby/object:Gem::Requirement
125
135
  none: false
126
136
  requirements:
@@ -129,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
139
  version: '0'
130
140
  segments:
131
141
  - 0
132
- hash: 1113510086132534461
142
+ hash: -948853527300552642
133
143
  requirements: []
134
144
  rubyforge_project:
135
145
  rubygems_version: 1.8.24