dango_generator 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
data/dango_generator.rb
CHANGED
@@ -21,6 +21,10 @@ class DangoGenerator < Rails::Generator::NamedBase
|
|
21
21
|
m.directory 'dango/server'
|
22
22
|
m.template "dango/server/99_dango_server.rb" , "dango/server/99_dango_server.rb"
|
23
23
|
|
24
|
+
# dangoのclient_swf
|
25
|
+
m.directory 'dango/client_swf'
|
26
|
+
m.template "dango/client_swf/DangoConfig.as" , "dango/client_swf/DangoConfig.as"
|
27
|
+
|
24
28
|
# dangoコンフィグ
|
25
29
|
m.directory 'dango/config'
|
26
30
|
%w(
|
@@ -47,7 +51,7 @@ class DangoGenerator < Rails::Generator::NamedBase
|
|
47
51
|
m.template "as3/org/rubyforge/dango/#{as3_file}", "dango/client_swf/org/rubyforge/dango/#{as3_file}"
|
48
52
|
end
|
49
53
|
|
50
|
-
# as3corelib
|
54
|
+
# http://code.google.com/p/as3corelib/のインポート
|
51
55
|
%w(
|
52
56
|
as3corelib-readme.txt
|
53
57
|
as3corelib-license.txt
|
@@ -83,15 +87,15 @@ class DangoGenerator < Rails::Generator::NamedBase
|
|
83
87
|
com/adobe/webapis/URLLoaderBase.as
|
84
88
|
com/adobe/webapis/events/ServiceEvent.as
|
85
89
|
).each do |as3corelib_file|
|
86
|
-
puts as3corelib_file
|
87
90
|
m.directory File.dirname("dango/client_swf/#{as3corelib_file}")
|
88
91
|
m.template "as3/#{as3corelib_file}", "dango/client_swf/#{as3corelib_file}"
|
89
92
|
end
|
90
93
|
|
91
|
-
puts "completed to initialize dango"
|
92
94
|
end
|
93
95
|
end
|
94
96
|
|
97
|
+
puts "completed to dango_generator"
|
98
|
+
|
95
99
|
end # end manifest
|
96
100
|
|
97
101
|
attr_accessor :controller_class_name
|
@@ -63,7 +63,7 @@ package org.rubyforge.dango {
|
|
63
63
|
is_debug = true;
|
64
64
|
|
65
65
|
var policy_file_protocol:String = config.policy_file_protocol;
|
66
|
-
var policy_file_port:uint = config.policy_file_port;
|
66
|
+
// var policy_file_port:uint = config.policy_file_port;
|
67
67
|
var policy_file_path:String = config.policy_file_path;
|
68
68
|
|
69
69
|
|
@@ -94,12 +94,14 @@ package org.rubyforge.dango {
|
|
94
94
|
trace("registered event handling.");
|
95
95
|
|
96
96
|
// ポリシーファイルの読み込み
|
97
|
-
|
98
|
-
|
99
|
-
//
|
100
|
-
|
101
|
-
|
102
|
-
|
97
|
+
if(policy_file_protocol){
|
98
|
+
var url_load_policy_file:String;
|
99
|
+
// url_load_policy_file = "xmlsocket://" + server_host + ":" + server_port;
|
100
|
+
// url_load_policy_file = "http://aiarebaba.hi-fi-net.com/crossdomain.xml";
|
101
|
+
url_load_policy_file = "http://" + server_host + policy_file_path;
|
102
|
+
trace("url_load_policy_file=" + url_load_policy_file);
|
103
|
+
Security.loadPolicyFile(url_load_policy_file);
|
104
|
+
}
|
103
105
|
|
104
106
|
// 接続
|
105
107
|
try{
|
@@ -0,0 +1,13 @@
|
|
1
|
+
package {
|
2
|
+
public class DangoConfig {
|
3
|
+
public var server_host:String = "localhost";
|
4
|
+
// public var server_host:String = "192.168.1.31";
|
5
|
+
public var server_port:uint = 15000;
|
6
|
+
public var debug:Boolean = true;
|
7
|
+
|
8
|
+
public var policy_file_protocol:String = "http";
|
9
|
+
public var policy_file_port:uint = 80;
|
10
|
+
public var policy_file_path:String = "/crossdomain.xml";
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
@@ -4,6 +4,9 @@ server:
|
|
4
4
|
max_connections: 200
|
5
5
|
log_file: log/dango_development.log
|
6
6
|
log_level: DEBUG
|
7
|
+
log_max_size: 100000000
|
8
|
+
log_shift_age: 99
|
9
|
+
gserver_log_file: log/dango_gserver_development.log
|
7
10
|
shared_database_manager: MemoryStore
|
8
11
|
backdoor_host: "127.0.0.1"
|
9
12
|
thread_sync: true # trueにすると各スレッドが同時動作しなくなる。falseの場合は自分で排他処理を書く場合
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dango_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ""
|
6
6
|
authors:
|
7
7
|
- Keisuke Minami
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- templates/lib/dango_tester_client.rb
|
33
33
|
- templates/tasks/dango.rake
|
34
34
|
- templates/dango/server/99_dango_server.rb
|
35
|
+
- templates/dango/client_swf/DangoConfig.as
|
35
36
|
- templates/dango/config/development.yml
|
36
37
|
- templates/dango/config/test.yml
|
37
38
|
- templates/dango/config/production.yml
|