dango_generator 0.0.39 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/dango_generator.rb CHANGED
@@ -1,15 +1,29 @@
1
1
  require "open-uri"
2
2
 
3
3
  class DangoGenerator < Rails::Generator::NamedBase
4
- def manifest
4
+ # ~ 引数・オプションの解釈と初期化 ~
5
+ # def initialize(runtime_args, runtime_options = {})
6
+ #p runtime_args
7
+ # super
8
+ # end
9
+
10
+ def manifest
5
11
  record do |m|
6
12
 
13
+ # p methods
14
+ # p instance_variables
15
+ # p name
16
+ # p class_name
17
+
7
18
  # dangoの初期設定
8
- if name == "init"
19
+ # if class_name == "init"
9
20
 
10
21
  # 起動スクリプト
11
22
  m.template "script/dango_server" , "script/dango_server"
12
23
 
24
+ # crossdomain.xml
25
+ m.template "public/crossdomain.xml" , "public/crossdomain.xml"
26
+
13
27
  # vendorプラグイン
14
28
  m.directory 'vendor/plugins/dango/lib'
15
29
  m.template "lib/dango_monitor_client.rb" , "vendor/plugins/dango/lib/dango_monitor_client.rb"
@@ -91,10 +105,10 @@ class DangoGenerator < Rails::Generator::NamedBase
91
105
  m.template "as3/#{as3corelib_file}", "dango/client_swf/#{as3corelib_file}"
92
106
  end
93
107
 
94
- end
108
+ # end
95
109
  end
96
110
 
97
- puts "completed to dango_generator"
111
+ # puts "completed to dango_generator"
98
112
 
99
113
  end # end manifest
100
114
 
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0"?>
2
+ <cross-domain-policy>
3
+ <allow-access-from domain="*" />
4
+ </cross-domain-policy>
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.39
4
+ version: 0.1.0
5
5
  platform: ""
6
6
  authors:
7
7
  - Keisuke Minami
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2007-12-01 00:00:00 +09:00
12
+ date: 2007-12-08 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -31,6 +31,7 @@ files:
31
31
  - templates/lib/dango_monitor_client.rb
32
32
  - templates/lib/dango_tester_client.rb
33
33
  - templates/tasks/dango.rake
34
+ - templates/public/crossdomain.xml
34
35
  - templates/dango/server/99_dango_server.rb
35
36
  - templates/dango/client_swf/DangoConfig.as
36
37
  - templates/dango/config/development.yml