toss-ruby 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/toss-ruby/toss/toss.cpp +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 027743c8f45326ae7aeec59c015ea129691307bc
|
4
|
+
data.tar.gz: 9a226c146a9ccc6e5f7a879c023f05c5f566b6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f4c9acfe67277596893872d3549776bb21cb1e9b3cccfd557fc7fa562217d742c64f86b66ab2ce08968f2d4b50ebe2fe89057a34f3c35e6bb39c5b78c64f28
|
7
|
+
data.tar.gz: 54c0a0bfcfeed1bf032371e029e20bbf68e67631d9bd387484bbd599ab910994ce30e13c0d4403d8dd811b90573fa5a3213409bb8011debd4feca3f71105e90c
|
data/ext/toss-ruby/toss/toss.cpp
CHANGED
@@ -51,6 +51,16 @@ gen_generate_string(VALUE self)
|
|
51
51
|
return rb_str_new2(s->generateString().c_str());
|
52
52
|
}
|
53
53
|
|
54
|
+
static VALUE
|
55
|
+
gen_generate_file(VALUE self, VALUE file)
|
56
|
+
{
|
57
|
+
toss::Generator* s;
|
58
|
+
|
59
|
+
Data_Get_Struct(self, toss::Generator, s);
|
60
|
+
s->generateFile(StringValueCStr(file));
|
61
|
+
return Qnil;
|
62
|
+
}
|
63
|
+
|
54
64
|
void
|
55
65
|
Init_toss()
|
56
66
|
{
|
@@ -61,4 +71,5 @@ Init_toss()
|
|
61
71
|
rb_define_method(cGenerator, "parse_string", (VALUE(*)(...))gen_parse_string, 1);
|
62
72
|
rb_define_method(cGenerator, "generate", (VALUE(*)(...))gen_generate, 0);
|
63
73
|
rb_define_method(cGenerator, "generate_string", (VALUE(*)(...))gen_generate_string, 0);
|
74
|
+
rb_define_method(cGenerator, "generate_file", (VALUE(*)(...))gen_generate_file, 1);
|
64
75
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toss-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nax
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|