divine 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +2 -1
- data/Rakefile +49 -0
- data/lib/divine/code_generators/code_generator.rb +29 -6
- data/lib/divine/code_generators/java.rb +121 -14
- data/lib/divine/code_generators/javascript.rb +100 -11
- data/lib/divine/code_generators/ruby.rb +89 -4
- data/lib/divine/version.rb +1 -1
- data/test/basic_complex_test/basic_complex_test.rb +34 -0
- data/test/basic_complex_test/java_test/JavaTest.java +96 -0
- data/test/basic_complex_test/java_test/test_babel.java +368 -0
- data/test/basic_complex_test/js_test/js_testBasic.js +58 -0
- data/test/basic_complex_test/js_test/js_testComplex.js +68 -0
- data/test/basic_complex_test/js_test/test_babel.js +523 -0
- data/test/basic_complex_test/ruby_test/ruby_test.rb +68 -0
- data/test/basic_complex_test/ruby_test/test_babel.rb +368 -0
- data/test/binaryTree_test/binaryTree_test.rb +19 -0
- data/test/binaryTree_test/java_test/JavaTest.java +114 -0
- data/test/binaryTree_test/java_test/test_binaryTree.java +301 -0
- data/test/binaryTree_test/js_test/js_test.js +76 -0
- data/test/binaryTree_test/js_test/test_binaryTree.js +447 -0
- data/test/binaryTree_test/ruby_test/ruby_test.rb +68 -0
- data/test/binaryTree_test/ruby_test/test_binaryTree.rb +303 -0
- data/test/complex_test/complex_test.rb +23 -0
- data/test/complex_test/java_test/JavaTest.java +126 -0
- data/test/complex_test/java_test/test_complex.java +331 -0
- data/test/complex_test/js_test/js_test.js +69 -0
- data/test/complex_test/js_test/test_complex.js +478 -0
- data/test/complex_test/ruby_test/ruby_test.rb +55 -0
- data/test/complex_test/ruby_test/test_complex.rb +330 -0
- data/test/ipv6_test/ipv6_test.rb +14 -0
- data/test/ipv6_test/java_test/JavaTest.java +77 -0
- data/test/ipv6_test/java_test/junit.jar +0 -0
- data/test/ipv6_test/java_test/test_ipv6.java +270 -0
- data/test/ipv6_test/js_test/js_test.js +60 -0
- data/test/ipv6_test/js_test/test_ipv6.js +409 -0
- data/test/ipv6_test/ruby_test/ruby_test.rb +42 -0
- data/test/ipv6_test/ruby_test/test_ipv6.rb +267 -0
- data/test/java_lib/junit.jar +0 -0
- data/test/unify_test/java_test/test_unify.java +171 -0
- data/test/unify_test/js_test/js_test.js +56 -0
- data/test/unify_test/js_test/test_unify.js +326 -0
- data/test/unify_test/ruby_test/ruby_test.rb +35 -0
- data/test/unify_test/ruby_test/test_unify.rb +187 -0
- data/test/unify_test/unify_test.rb +17 -0
- metadata +77 -3
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
require 'divine'
|
3
|
+
|
4
|
+
struct 'UnifySer' do
|
5
|
+
#int8 :i8
|
6
|
+
#int32 :i32
|
7
|
+
#int16 :i16
|
8
|
+
string :str
|
9
|
+
#ip_number :ip
|
10
|
+
#binary :guid
|
11
|
+
map :map1, :int8, :int32
|
12
|
+
end
|
13
|
+
|
14
|
+
Divine::CodeGenerator.new.generate(:ruby, file: 'test_unify.rb', module: 'BabelTest', parent_class: "Object")
|
15
|
+
Divine::CodeGenerator.new.generate(:javascript, file: 'test_unify.js')
|
16
|
+
Divine::CodeGenerator.new.generate(:java, file: 'test_unify.java')
|
17
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: divine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: docile
|
@@ -63,6 +63,43 @@ files:
|
|
63
63
|
- lib/divine/code_generators/ruby.rb
|
64
64
|
- lib/divine/dsl.rb
|
65
65
|
- lib/divine/version.rb
|
66
|
+
- test/basic_complex_test/basic_complex_test.rb
|
67
|
+
- test/basic_complex_test/java_test/JavaTest.java
|
68
|
+
- test/basic_complex_test/java_test/test_babel.java
|
69
|
+
- test/basic_complex_test/js_test/js_testBasic.js
|
70
|
+
- test/basic_complex_test/js_test/js_testComplex.js
|
71
|
+
- test/basic_complex_test/js_test/test_babel.js
|
72
|
+
- test/basic_complex_test/ruby_test/ruby_test.rb
|
73
|
+
- test/basic_complex_test/ruby_test/test_babel.rb
|
74
|
+
- test/binaryTree_test/binaryTree_test.rb
|
75
|
+
- test/binaryTree_test/java_test/JavaTest.java
|
76
|
+
- test/binaryTree_test/java_test/test_binaryTree.java
|
77
|
+
- test/binaryTree_test/js_test/js_test.js
|
78
|
+
- test/binaryTree_test/js_test/test_binaryTree.js
|
79
|
+
- test/binaryTree_test/ruby_test/ruby_test.rb
|
80
|
+
- test/binaryTree_test/ruby_test/test_binaryTree.rb
|
81
|
+
- test/complex_test/complex_test.rb
|
82
|
+
- test/complex_test/java_test/JavaTest.java
|
83
|
+
- test/complex_test/java_test/test_complex.java
|
84
|
+
- test/complex_test/js_test/js_test.js
|
85
|
+
- test/complex_test/js_test/test_complex.js
|
86
|
+
- test/complex_test/ruby_test/ruby_test.rb
|
87
|
+
- test/complex_test/ruby_test/test_complex.rb
|
88
|
+
- test/ipv6_test/ipv6_test.rb
|
89
|
+
- test/ipv6_test/java_test/JavaTest.java
|
90
|
+
- test/ipv6_test/java_test/junit.jar
|
91
|
+
- test/ipv6_test/java_test/test_ipv6.java
|
92
|
+
- test/ipv6_test/js_test/js_test.js
|
93
|
+
- test/ipv6_test/js_test/test_ipv6.js
|
94
|
+
- test/ipv6_test/ruby_test/ruby_test.rb
|
95
|
+
- test/ipv6_test/ruby_test/test_ipv6.rb
|
96
|
+
- test/java_lib/junit.jar
|
97
|
+
- test/unify_test/java_test/test_unify.java
|
98
|
+
- test/unify_test/js_test/js_test.js
|
99
|
+
- test/unify_test/js_test/test_unify.js
|
100
|
+
- test/unify_test/ruby_test/ruby_test.rb
|
101
|
+
- test/unify_test/ruby_test/test_unify.rb
|
102
|
+
- test/unify_test/unify_test.rb
|
66
103
|
homepage: https://github.com/franzen/babelphish
|
67
104
|
licenses: []
|
68
105
|
post_install_message:
|
@@ -87,4 +124,41 @@ rubygems_version: 1.8.24
|
|
87
124
|
signing_key:
|
88
125
|
specification_version: 3
|
89
126
|
summary: A simple data serialization generator for java, ruby and javascript
|
90
|
-
test_files:
|
127
|
+
test_files:
|
128
|
+
- test/basic_complex_test/basic_complex_test.rb
|
129
|
+
- test/basic_complex_test/java_test/JavaTest.java
|
130
|
+
- test/basic_complex_test/java_test/test_babel.java
|
131
|
+
- test/basic_complex_test/js_test/js_testBasic.js
|
132
|
+
- test/basic_complex_test/js_test/js_testComplex.js
|
133
|
+
- test/basic_complex_test/js_test/test_babel.js
|
134
|
+
- test/basic_complex_test/ruby_test/ruby_test.rb
|
135
|
+
- test/basic_complex_test/ruby_test/test_babel.rb
|
136
|
+
- test/binaryTree_test/binaryTree_test.rb
|
137
|
+
- test/binaryTree_test/java_test/JavaTest.java
|
138
|
+
- test/binaryTree_test/java_test/test_binaryTree.java
|
139
|
+
- test/binaryTree_test/js_test/js_test.js
|
140
|
+
- test/binaryTree_test/js_test/test_binaryTree.js
|
141
|
+
- test/binaryTree_test/ruby_test/ruby_test.rb
|
142
|
+
- test/binaryTree_test/ruby_test/test_binaryTree.rb
|
143
|
+
- test/complex_test/complex_test.rb
|
144
|
+
- test/complex_test/java_test/JavaTest.java
|
145
|
+
- test/complex_test/java_test/test_complex.java
|
146
|
+
- test/complex_test/js_test/js_test.js
|
147
|
+
- test/complex_test/js_test/test_complex.js
|
148
|
+
- test/complex_test/ruby_test/ruby_test.rb
|
149
|
+
- test/complex_test/ruby_test/test_complex.rb
|
150
|
+
- test/ipv6_test/ipv6_test.rb
|
151
|
+
- test/ipv6_test/java_test/JavaTest.java
|
152
|
+
- test/ipv6_test/java_test/junit.jar
|
153
|
+
- test/ipv6_test/java_test/test_ipv6.java
|
154
|
+
- test/ipv6_test/js_test/js_test.js
|
155
|
+
- test/ipv6_test/js_test/test_ipv6.js
|
156
|
+
- test/ipv6_test/ruby_test/ruby_test.rb
|
157
|
+
- test/ipv6_test/ruby_test/test_ipv6.rb
|
158
|
+
- test/java_lib/junit.jar
|
159
|
+
- test/unify_test/java_test/test_unify.java
|
160
|
+
- test/unify_test/js_test/js_test.js
|
161
|
+
- test/unify_test/js_test/test_unify.js
|
162
|
+
- test/unify_test/ruby_test/ruby_test.rb
|
163
|
+
- test/unify_test/ruby_test/test_unify.rb
|
164
|
+
- test/unify_test/unify_test.rb
|