havior 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/generators/havior/install_generator.rb +1 -1
- data/lib/generators/havior/templates/haviors/controller.rb.erb +1 -1
- data/lib/havior/version.rb +1 -1
- data/test/dummy/Gemfile.lock +1 -1
- data/test/dummy/app/haviors/misc/fanyj/fanyj_controller.rb +6 -0
- data/test/dummy/app/haviors/misc/fanyj/haxe/Fanyj.hx +18 -0
- data/test/dummy/app/haviors/misc/fanyj/model.rb +15 -0
- data/test/dummy/app/haviors/misc/fanyj/routes.rb +5 -0
- data/test/dummy/app/haviors/misc/fanyj/views/fanyj.html.erb +1 -0
- data/test/dummy/app/haviors/misc/fanyjkk/fanyjkk_controller.rb +6 -0
- data/test/dummy/app/haviors/misc/fanyjkk/haxe/Fanyjkk.hx +18 -0
- data/test/dummy/app/haviors/misc/fanyjkk/model.rb +15 -0
- data/test/dummy/app/haviors/misc/fanyjkk/routes.rb +5 -0
- data/test/dummy/app/haviors/misc/fanyjkk/views/fanyjkk.html.erb +1 -0
- data/test/dummy/app/haviors/misc/foo/foo_controller.rb +12 -0
- data/test/dummy/app/haviors/misc/foo/haxe/Foo.hx +26 -0
- data/test/dummy/app/haviors/misc/foo/model.rb +15 -0
- data/test/dummy/app/haviors/misc/foo/routes.rb +7 -0
- data/test/dummy/app/haviors/misc/foo/views/foo.html.erb +1 -0
- data/test/dummy/app/haviors/misc/todo/haxe/Todo.hx +4 -20
- data/test/dummy/app/haviors/misc/todo/routes.rb +1 -5
- data/test/dummy/app/haviors/misc/todo/todo_controller.rb +3 -15
- data/test/dummy/haxe/havior.hxml +21 -0
- data/test/dummy/log/development.log +44 -0
- data/test/dummy/public/javascripts/misc/fanyj/fanyj.js +0 -0
- data/test/dummy/public/javascripts/misc/fanyjkk/fanyjkk.js +0 -0
- data/test/dummy/public/javascripts/misc/foo/foo.js +0 -0
- data/test/dummy/public/javascripts/misc/todo/todo.js +0 -206
- data/test/dummy/public/stylesheets/misc/fanyj/fanyj.css +0 -0
- data/test/dummy/public/stylesheets/misc/fanyjkk/fanyjkk.css +0 -0
- data/test/dummy/public/stylesheets/misc/foo/foo.css +0 -0
- metadata +43 -4
- data/lib/havior/routes.rb +0 -12
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06ee0bf9c0305ce353772e603fffe7d2513cf056
|
|
4
|
+
data.tar.gz: e4925a01d3dcccb2fffb7b0ba8f1c17d511aaee4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e15a22b41a6f095b50987ed2dcd7d014150503f7a4e39697f139995cb0539f81911520c9b7fd7d532b6fcba18fac8cf1a72ba091426822fa1a7c854054b3c1e8
|
|
7
|
+
data.tar.gz: 2a1ed3160f8ebcec96119185206ec0c7f9e022552fea5c6340ad86f85cdf837ffae9f43975bab94ad85c3f41cea5b02a36ba6ae04d23938830e33fe22270f2a4
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class <%= @module_name %>::<%= @class_name %>Controller < ApplicationController
|
|
2
2
|
|
|
3
3
|
<% @actions.each do |name,method| %>
|
|
4
|
-
# <%= method.upcase %> /havior/<%= @file_path %>/<%=
|
|
4
|
+
# <%= method.upcase %> /havior/<%= @file_path %>/<%= name %>
|
|
5
5
|
def <%= name %>
|
|
6
6
|
render json: { result: "success",
|
|
7
7
|
message: "`<%= @module_name %>::<%= @class_name %>#<%= name %>`" }
|
data/lib/havior/version.rb
CHANGED
data/test/dummy/Gemfile.lock
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#Fanyj
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#Fanyjkk
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import jQuery.*;
|
|
2
|
+
|
|
3
|
+
class Foo extends Havior {
|
|
4
|
+
public static function main(){
|
|
5
|
+
Havior.start("misc/foo");
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
public override function onLoad(){
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// ff@get
|
|
12
|
+
addCallback("ff@get", function(data){
|
|
13
|
+
/// TODO
|
|
14
|
+
this.getDOM().html("ff@get:" + data.message);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// sendAsync("ff@get", {} );
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#Foo
|
|
@@ -8,32 +8,16 @@ class Todo extends Havior {
|
|
|
8
8
|
public override function onLoad(){
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
addCallback("
|
|
11
|
+
// ggg@get
|
|
12
|
+
addCallback("ggg@get", function(data){
|
|
13
13
|
/// TODO
|
|
14
|
-
this.getDOM().html("
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// add@post
|
|
18
|
-
addCallback("add@post", function(data){
|
|
19
|
-
/// TODO
|
|
20
|
-
this.getDOM().html("add@post:" + data.message);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// del@get
|
|
24
|
-
addCallback("del@get", function(data){
|
|
25
|
-
/// TODO
|
|
26
|
-
this.getDOM().html("del@get:" + data.message);
|
|
14
|
+
this.getDOM().html("ggg@get:" + data.message);
|
|
27
15
|
});
|
|
28
16
|
|
|
29
17
|
|
|
30
18
|
|
|
31
19
|
|
|
32
|
-
sendAsync("
|
|
33
|
-
|
|
34
|
-
// sendAsync("add@post", {} );
|
|
35
|
-
|
|
36
|
-
// sendAsync("del@get", {} );
|
|
20
|
+
// sendAsync("ggg@get", {} );
|
|
37
21
|
|
|
38
22
|
}
|
|
39
23
|
}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
class Misc::Todo::TodoController < ApplicationController
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
# GET /havior/misc/todo/todo/
|
|
5
|
-
def
|
|
4
|
+
# GET /havior/misc/todo/todo/ggg
|
|
5
|
+
def ggg
|
|
6
6
|
render json: { result: "success",
|
|
7
|
-
message: "`Misc::Todo::Todo#
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
# POST /havior/misc/todo/todo/add
|
|
11
|
-
def add
|
|
12
|
-
render json: { result: "success",
|
|
13
|
-
message: "`Misc::Todo::Todo#add`" }
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# GET /havior/misc/todo/todo/del
|
|
17
|
-
def del
|
|
18
|
-
render json: { result: "success",
|
|
19
|
-
message: "`Misc::Todo::Todo#del`" }
|
|
7
|
+
message: "`Misc::Todo::Todo#ggg`" }
|
|
20
8
|
end
|
|
21
9
|
|
|
22
10
|
|
data/test/dummy/haxe/havior.hxml
CHANGED
|
@@ -5,3 +5,24 @@
|
|
|
5
5
|
-cp app/haviors/misc/todo/haxe
|
|
6
6
|
-main Todo
|
|
7
7
|
-js public/javascripts/misc/todo/todo.js
|
|
8
|
+
|
|
9
|
+
--next
|
|
10
|
+
-lib JQueryExtern
|
|
11
|
+
-cp haxe/lib
|
|
12
|
+
-cp app/haviors/misc/foo/haxe
|
|
13
|
+
-main Foo
|
|
14
|
+
-js public/javascripts/misc/foo/foo.js
|
|
15
|
+
|
|
16
|
+
--next
|
|
17
|
+
-lib JQueryExtern
|
|
18
|
+
-cp haxe/lib
|
|
19
|
+
-cp app/haviors/misc/fanyj/haxe
|
|
20
|
+
-main Fanyj
|
|
21
|
+
-js public/javascripts/misc/fanyj/fanyj.js
|
|
22
|
+
|
|
23
|
+
--next
|
|
24
|
+
-lib JQueryExtern
|
|
25
|
+
-cp haxe/lib
|
|
26
|
+
-cp app/haviors/misc/fanyjkk/haxe
|
|
27
|
+
-main Fanyjkk
|
|
28
|
+
-js public/javascripts/misc/fanyjkk/fanyjkk.js
|
|
@@ -94,3 +94,47 @@ Started GET "/assets/application-79e1233a68e5fdd328d8a2ea17ddef8a.js?body=1" for
|
|
|
94
94
|
Started GET "/havior/misc/todo/list" for ::1 at 2015-02-10 16:57:52 +0900
|
|
95
95
|
Processing by Misc::Todo::TodoController#list as */*
|
|
96
96
|
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Started GET "/" for ::1 at 2015-02-10 17:30:25 +0900
|
|
100
|
+
Processing by TopController#index as HTML
|
|
101
|
+
Rendered top/index.html.erb within layouts/application (10.6ms)
|
|
102
|
+
Completed 500 Internal Server Error in 16ms
|
|
103
|
+
|
|
104
|
+
ActionView::Template::Error (undefined method `haviors' for #<#<Class:0x007f85b64c0e08>:0x007f85b64c9620>):
|
|
105
|
+
1: <h1>Top#index</h1>
|
|
106
|
+
2: <p>Find me in app/views/top/index.html.erb</p>
|
|
107
|
+
3:
|
|
108
|
+
4: <%= haviors do |h| %>
|
|
109
|
+
5: <%= h.destribute "misc/todo" %>
|
|
110
|
+
6: <% end %>
|
|
111
|
+
app/views/top/index.html.erb:4:in `_app_views_top_index_html_erb___1154601895020603385_70106116000980'
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_source.erb (5.4ms)
|
|
115
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_trace.html.erb (2.5ms)
|
|
116
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_request_and_response.html.erb (1.1ms)
|
|
117
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.9ms)
|
|
118
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/template_error.html.erb within rescues/layout (30.5ms)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
Started GET "/" for ::1 at 2015-02-10 17:30:25 +0900
|
|
122
|
+
Processing by TopController#index as HTML
|
|
123
|
+
Rendered top/index.html.erb within layouts/application (8.7ms)
|
|
124
|
+
Completed 500 Internal Server Error in 11ms
|
|
125
|
+
|
|
126
|
+
ActionView::Template::Error (undefined method `haviors' for #<#<Class:0x007f85b64c0e08>:0x007f85b6ba2488>):
|
|
127
|
+
1: <h1>Top#index</h1>
|
|
128
|
+
2: <p>Find me in app/views/top/index.html.erb</p>
|
|
129
|
+
3:
|
|
130
|
+
4: <%= haviors do |h| %>
|
|
131
|
+
5: <%= h.destribute "misc/todo" %>
|
|
132
|
+
6: <% end %>
|
|
133
|
+
app/views/top/index.html.erb:4:in `_app_views_top_index_html_erb___1154601895020603385_70106116000980'
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_source.erb (5.1ms)
|
|
137
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_trace.html.erb (2.0ms)
|
|
138
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_request_and_response.html.erb (0.7ms)
|
|
139
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.7ms)
|
|
140
|
+
Rendered /usr/local/rvm/gems/ruby-2.1.2@rails_view_component/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/template_error.html.erb within rescues/layout (22.0ms)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
(function () { "use strict";
|
|
2
|
-
var $hxClasses = {};
|
|
3
|
-
function $extend(from, fields) {
|
|
4
|
-
function Inherit() {} Inherit.prototype = from; var proto = new Inherit();
|
|
5
|
-
for (var name in fields) proto[name] = fields[name];
|
|
6
|
-
if( fields.toString !== Object.prototype.toString ) proto.toString = fields.toString;
|
|
7
|
-
return proto;
|
|
8
|
-
}
|
|
9
|
-
var Havior = function(id) {
|
|
10
|
-
this.callbacks = new haxe.ds.StringMap();
|
|
11
|
-
this.id = id;
|
|
12
|
-
this.dom = new $("#" + id);
|
|
13
|
-
};
|
|
14
|
-
$hxClasses["Havior"] = Havior;
|
|
15
|
-
Havior.__name__ = true;
|
|
16
|
-
Havior.start = function(name,pos) {
|
|
17
|
-
Havior.com_name = name;
|
|
18
|
-
var klass = Type.resolveClass(pos.className);
|
|
19
|
-
var class_name = StringTools.replace(name,"/","-");
|
|
20
|
-
var coms = new $(".havior-" + class_name);
|
|
21
|
-
var _g = 0;
|
|
22
|
-
while(_g < coms.length) {
|
|
23
|
-
var com = coms[_g];
|
|
24
|
-
++_g;
|
|
25
|
-
var id = new $(com).attr("id");
|
|
26
|
-
var c = Type.createInstance(klass,[id]);
|
|
27
|
-
c.onLoad();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
Havior.prototype = {
|
|
31
|
-
onLoad: function() {
|
|
32
|
-
}
|
|
33
|
-
,getId: function() {
|
|
34
|
-
return this.id;
|
|
35
|
-
}
|
|
36
|
-
,getDOM: function() {
|
|
37
|
-
return this.dom;
|
|
38
|
-
}
|
|
39
|
-
,addCallback: function(route,func) {
|
|
40
|
-
if(!this.callbacks.exists(route)) {
|
|
41
|
-
var value = new Array();
|
|
42
|
-
this.callbacks.set(route,value);
|
|
43
|
-
}
|
|
44
|
-
this.callbacks.get(route).push(func);
|
|
45
|
-
}
|
|
46
|
-
,callCallback: function(route,data) {
|
|
47
|
-
if(this.callbacks.exists(route)) {
|
|
48
|
-
var _g = 0;
|
|
49
|
-
var _g1 = this.callbacks.get(route);
|
|
50
|
-
while(_g < _g1.length) {
|
|
51
|
-
var func = _g1[_g];
|
|
52
|
-
++_g;
|
|
53
|
-
func(data);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
,children: function(selector) {
|
|
58
|
-
return new $("#" + this.getId() + " ,#" + this.getId() + " *").children(selector);
|
|
59
|
-
}
|
|
60
|
-
,getParams: function() {
|
|
61
|
-
return this.getDOM().data();
|
|
62
|
-
}
|
|
63
|
-
,getParam: function(name) {
|
|
64
|
-
return Reflect.field(this.getParams(),name);
|
|
65
|
-
}
|
|
66
|
-
,getParamNames: function() {
|
|
67
|
-
return Reflect.fields($bind(this,this.getParams));
|
|
68
|
-
}
|
|
69
|
-
,sendAsync: function(route,params) {
|
|
70
|
-
var _g = this;
|
|
71
|
-
var xs = route.split("@");
|
|
72
|
-
var action = xs[0];
|
|
73
|
-
var method = xs[1];
|
|
74
|
-
var url = "/havior/" + Havior.com_name + "/" + action;
|
|
75
|
-
var callback = function(data,status,xhr) {
|
|
76
|
-
_g.callCallback(route,data);
|
|
77
|
-
};
|
|
78
|
-
var query;
|
|
79
|
-
switch(method) {
|
|
80
|
-
case "get":
|
|
81
|
-
query = $.get(url,params,callback);
|
|
82
|
-
break;
|
|
83
|
-
case "post":
|
|
84
|
-
query = $.post(url,params,callback);
|
|
85
|
-
break;
|
|
86
|
-
default:
|
|
87
|
-
query = $.post(url,params,callback);
|
|
88
|
-
}
|
|
89
|
-
query.fail(function(e) {
|
|
90
|
-
console.log("ERROR:" + e);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var IMap = function() { };
|
|
95
|
-
$hxClasses["IMap"] = IMap;
|
|
96
|
-
IMap.__name__ = true;
|
|
97
|
-
var Reflect = function() { };
|
|
98
|
-
$hxClasses["Reflect"] = Reflect;
|
|
99
|
-
Reflect.__name__ = true;
|
|
100
|
-
Reflect.field = function(o,field) {
|
|
101
|
-
try {
|
|
102
|
-
return o[field];
|
|
103
|
-
} catch( e ) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
Reflect.fields = function(o) {
|
|
108
|
-
var a = [];
|
|
109
|
-
if(o != null) {
|
|
110
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
111
|
-
for( var f in o ) {
|
|
112
|
-
if(f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o,f)) a.push(f);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return a;
|
|
116
|
-
};
|
|
117
|
-
var StringTools = function() { };
|
|
118
|
-
$hxClasses["StringTools"] = StringTools;
|
|
119
|
-
StringTools.__name__ = true;
|
|
120
|
-
StringTools.replace = function(s,sub,by) {
|
|
121
|
-
return s.split(sub).join(by);
|
|
122
|
-
};
|
|
123
|
-
var Todo = function(id) {
|
|
124
|
-
Havior.call(this,id);
|
|
125
|
-
};
|
|
126
|
-
$hxClasses["Todo"] = Todo;
|
|
127
|
-
Todo.__name__ = true;
|
|
128
|
-
Todo.main = function() {
|
|
129
|
-
Havior.start("misc/todo",{ fileName : "Todo.hx", lineNumber : 5, className : "Todo", methodName : "main"});
|
|
130
|
-
};
|
|
131
|
-
Todo.__super__ = Havior;
|
|
132
|
-
Todo.prototype = $extend(Havior.prototype,{
|
|
133
|
-
onLoad: function() {
|
|
134
|
-
var _g = this;
|
|
135
|
-
this.addCallback("list@get",function(data) {
|
|
136
|
-
_g.getDOM().html("list@get:" + data.message);
|
|
137
|
-
});
|
|
138
|
-
this.addCallback("add@post",function(data1) {
|
|
139
|
-
_g.getDOM().html("add@post:" + data1.message);
|
|
140
|
-
});
|
|
141
|
-
this.addCallback("del@get",function(data2) {
|
|
142
|
-
_g.getDOM().html("del@get:" + data2.message);
|
|
143
|
-
});
|
|
144
|
-
this.sendAsync("list@get",{ });
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
var Type = function() { };
|
|
148
|
-
$hxClasses["Type"] = Type;
|
|
149
|
-
Type.__name__ = true;
|
|
150
|
-
Type.resolveClass = function(name) {
|
|
151
|
-
var cl = $hxClasses[name];
|
|
152
|
-
if(cl == null || !cl.__name__) return null;
|
|
153
|
-
return cl;
|
|
154
|
-
};
|
|
155
|
-
Type.createInstance = function(cl,args) {
|
|
156
|
-
var _g = args.length;
|
|
157
|
-
switch(_g) {
|
|
158
|
-
case 0:
|
|
159
|
-
return new cl();
|
|
160
|
-
case 1:
|
|
161
|
-
return new cl(args[0]);
|
|
162
|
-
case 2:
|
|
163
|
-
return new cl(args[0],args[1]);
|
|
164
|
-
case 3:
|
|
165
|
-
return new cl(args[0],args[1],args[2]);
|
|
166
|
-
case 4:
|
|
167
|
-
return new cl(args[0],args[1],args[2],args[3]);
|
|
168
|
-
case 5:
|
|
169
|
-
return new cl(args[0],args[1],args[2],args[3],args[4]);
|
|
170
|
-
case 6:
|
|
171
|
-
return new cl(args[0],args[1],args[2],args[3],args[4],args[5]);
|
|
172
|
-
case 7:
|
|
173
|
-
return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);
|
|
174
|
-
case 8:
|
|
175
|
-
return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]);
|
|
176
|
-
default:
|
|
177
|
-
throw "Too many arguments";
|
|
178
|
-
}
|
|
179
|
-
return null;
|
|
180
|
-
};
|
|
181
|
-
var haxe = {};
|
|
182
|
-
haxe.ds = {};
|
|
183
|
-
haxe.ds.StringMap = function() {
|
|
184
|
-
this.h = { };
|
|
185
|
-
};
|
|
186
|
-
$hxClasses["haxe.ds.StringMap"] = haxe.ds.StringMap;
|
|
187
|
-
haxe.ds.StringMap.__name__ = true;
|
|
188
|
-
haxe.ds.StringMap.__interfaces__ = [IMap];
|
|
189
|
-
haxe.ds.StringMap.prototype = {
|
|
190
|
-
set: function(key,value) {
|
|
191
|
-
this.h["$" + key] = value;
|
|
192
|
-
}
|
|
193
|
-
,get: function(key) {
|
|
194
|
-
return this.h["$" + key];
|
|
195
|
-
}
|
|
196
|
-
,exists: function(key) {
|
|
197
|
-
return this.h.hasOwnProperty("$" + key);
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
var $_, $fid = 0;
|
|
201
|
-
function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $fid++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; o.hx__closures__[m.__id__] = f; } return f; }
|
|
202
|
-
String.__name__ = true;
|
|
203
|
-
$hxClasses.Array = Array;
|
|
204
|
-
Array.__name__ = true;
|
|
205
|
-
Todo.main();
|
|
206
|
-
})();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: havior
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takeshi Kojima
|
|
@@ -61,7 +61,6 @@ files:
|
|
|
61
61
|
- lib/havior/builder.rb
|
|
62
62
|
- lib/havior/helper.rb
|
|
63
63
|
- lib/havior/model.rb
|
|
64
|
-
- lib/havior/routes.rb
|
|
65
64
|
- lib/havior/version.rb
|
|
66
65
|
- lib/tasks/havior_tasks.rake
|
|
67
66
|
- test/dummy/Gemfile
|
|
@@ -74,6 +73,21 @@ files:
|
|
|
74
73
|
- test/dummy/app/assets/stylesheets/top.scss
|
|
75
74
|
- test/dummy/app/controllers/application_controller.rb
|
|
76
75
|
- test/dummy/app/controllers/top_controller.rb
|
|
76
|
+
- test/dummy/app/haviors/misc/fanyj/fanyj_controller.rb
|
|
77
|
+
- test/dummy/app/haviors/misc/fanyj/haxe/Fanyj.hx
|
|
78
|
+
- test/dummy/app/haviors/misc/fanyj/model.rb
|
|
79
|
+
- test/dummy/app/haviors/misc/fanyj/routes.rb
|
|
80
|
+
- test/dummy/app/haviors/misc/fanyj/views/fanyj.html.erb
|
|
81
|
+
- test/dummy/app/haviors/misc/fanyjkk/fanyjkk_controller.rb
|
|
82
|
+
- test/dummy/app/haviors/misc/fanyjkk/haxe/Fanyjkk.hx
|
|
83
|
+
- test/dummy/app/haviors/misc/fanyjkk/model.rb
|
|
84
|
+
- test/dummy/app/haviors/misc/fanyjkk/routes.rb
|
|
85
|
+
- test/dummy/app/haviors/misc/fanyjkk/views/fanyjkk.html.erb
|
|
86
|
+
- test/dummy/app/haviors/misc/foo/foo_controller.rb
|
|
87
|
+
- test/dummy/app/haviors/misc/foo/haxe/Foo.hx
|
|
88
|
+
- test/dummy/app/haviors/misc/foo/model.rb
|
|
89
|
+
- test/dummy/app/haviors/misc/foo/routes.rb
|
|
90
|
+
- test/dummy/app/haviors/misc/foo/views/foo.html.erb
|
|
77
91
|
- test/dummy/app/haviors/misc/todo/haxe/Todo.hx
|
|
78
92
|
- test/dummy/app/haviors/misc/todo/model.rb
|
|
79
93
|
- test/dummy/app/haviors/misc/todo/routes.rb
|
|
@@ -116,8 +130,14 @@ files:
|
|
|
116
130
|
- test/dummy/public/422.html
|
|
117
131
|
- test/dummy/public/500.html
|
|
118
132
|
- test/dummy/public/favicon.ico
|
|
133
|
+
- test/dummy/public/javascripts/misc/fanyj/fanyj.js
|
|
134
|
+
- test/dummy/public/javascripts/misc/fanyjkk/fanyjkk.js
|
|
135
|
+
- test/dummy/public/javascripts/misc/foo/foo.js
|
|
119
136
|
- test/dummy/public/javascripts/misc/todo/todo.js
|
|
120
137
|
- test/dummy/public/robots.txt
|
|
138
|
+
- test/dummy/public/stylesheets/misc/fanyj/fanyj.css
|
|
139
|
+
- test/dummy/public/stylesheets/misc/fanyjkk/fanyjkk.css
|
|
140
|
+
- test/dummy/public/stylesheets/misc/foo/foo.css
|
|
121
141
|
- test/dummy/public/stylesheets/misc/todo/todo.css
|
|
122
142
|
- test/dummy/test/controllers/top_controller_test.rb
|
|
123
143
|
- test/dummy/test/test_helper.rb
|
|
@@ -143,7 +163,6 @@ files:
|
|
|
143
163
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
|
144
164
|
- test/dummy/tmp/cache/assets/development/sprockets/fe9f4bf7a4d033c8ec226c659ceba27e
|
|
145
165
|
- test/dummy/tmp/cache/assets/development/sprockets/ffa538b8e1d908ed228e70f373c3aa00
|
|
146
|
-
- test/dummy/tmp/pids/server.pid
|
|
147
166
|
- test/havior_test.rb
|
|
148
167
|
- test/test_helper.rb
|
|
149
168
|
homepage: https://github.com/tatkeshi/havior
|
|
@@ -177,6 +196,21 @@ test_files:
|
|
|
177
196
|
- test/dummy/app/assets/stylesheets/top.scss
|
|
178
197
|
- test/dummy/app/controllers/application_controller.rb
|
|
179
198
|
- test/dummy/app/controllers/top_controller.rb
|
|
199
|
+
- test/dummy/app/haviors/misc/fanyj/fanyj_controller.rb
|
|
200
|
+
- test/dummy/app/haviors/misc/fanyj/haxe/Fanyj.hx
|
|
201
|
+
- test/dummy/app/haviors/misc/fanyj/model.rb
|
|
202
|
+
- test/dummy/app/haviors/misc/fanyj/routes.rb
|
|
203
|
+
- test/dummy/app/haviors/misc/fanyj/views/fanyj.html.erb
|
|
204
|
+
- test/dummy/app/haviors/misc/fanyjkk/fanyjkk_controller.rb
|
|
205
|
+
- test/dummy/app/haviors/misc/fanyjkk/haxe/Fanyjkk.hx
|
|
206
|
+
- test/dummy/app/haviors/misc/fanyjkk/model.rb
|
|
207
|
+
- test/dummy/app/haviors/misc/fanyjkk/routes.rb
|
|
208
|
+
- test/dummy/app/haviors/misc/fanyjkk/views/fanyjkk.html.erb
|
|
209
|
+
- test/dummy/app/haviors/misc/foo/foo_controller.rb
|
|
210
|
+
- test/dummy/app/haviors/misc/foo/haxe/Foo.hx
|
|
211
|
+
- test/dummy/app/haviors/misc/foo/model.rb
|
|
212
|
+
- test/dummy/app/haviors/misc/foo/routes.rb
|
|
213
|
+
- test/dummy/app/haviors/misc/foo/views/foo.html.erb
|
|
180
214
|
- test/dummy/app/haviors/misc/todo/haxe/Todo.hx
|
|
181
215
|
- test/dummy/app/haviors/misc/todo/model.rb
|
|
182
216
|
- test/dummy/app/haviors/misc/todo/routes.rb
|
|
@@ -221,8 +255,14 @@ test_files:
|
|
|
221
255
|
- test/dummy/public/422.html
|
|
222
256
|
- test/dummy/public/500.html
|
|
223
257
|
- test/dummy/public/favicon.ico
|
|
258
|
+
- test/dummy/public/javascripts/misc/fanyj/fanyj.js
|
|
259
|
+
- test/dummy/public/javascripts/misc/fanyjkk/fanyjkk.js
|
|
260
|
+
- test/dummy/public/javascripts/misc/foo/foo.js
|
|
224
261
|
- test/dummy/public/javascripts/misc/todo/todo.js
|
|
225
262
|
- test/dummy/public/robots.txt
|
|
263
|
+
- test/dummy/public/stylesheets/misc/fanyj/fanyj.css
|
|
264
|
+
- test/dummy/public/stylesheets/misc/fanyjkk/fanyjkk.css
|
|
265
|
+
- test/dummy/public/stylesheets/misc/foo/foo.css
|
|
226
266
|
- test/dummy/public/stylesheets/misc/todo/todo.css
|
|
227
267
|
- test/dummy/Rakefile
|
|
228
268
|
- test/dummy/README.rdoc
|
|
@@ -250,6 +290,5 @@ test_files:
|
|
|
250
290
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
|
251
291
|
- test/dummy/tmp/cache/assets/development/sprockets/fe9f4bf7a4d033c8ec226c659ceba27e
|
|
252
292
|
- test/dummy/tmp/cache/assets/development/sprockets/ffa538b8e1d908ed228e70f373c3aa00
|
|
253
|
-
- test/dummy/tmp/pids/server.pid
|
|
254
293
|
- test/havior_test.rb
|
|
255
294
|
- test/test_helper.rb
|
data/lib/havior/routes.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
19705
|