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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/toss-ruby/toss/toss.cpp +11 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fea97bcdd75d56ae0819aa02d3cd81cbc9cbbf0
4
- data.tar.gz: bd8c427fc75851a746ba9c009c57e3aba7ff5c5f
3
+ metadata.gz: 027743c8f45326ae7aeec59c015ea129691307bc
4
+ data.tar.gz: 9a226c146a9ccc6e5f7a879c023f05c5f566b6f0
5
5
  SHA512:
6
- metadata.gz: 7d96f9d8899936b52a5fd4454891b1875cf9f19a5b497d1a2106cbe1235936b0dc162c48e6cc6ad5d3f34c81a960b22250967071695f4e56d3a8b561bb2016e4
7
- data.tar.gz: 9e997a6832f12f0f0bdb02b50a307b0a862773883c6bfc014d64ec8d86ab0309680a61df05cd6cc0062b961821aca092c9618fb8877682482d82bb67e7552dcf
6
+ metadata.gz: d1f4c9acfe67277596893872d3549776bb21cb1e9b3cccfd557fc7fa562217d742c64f86b66ab2ce08968f2d4b50ebe2fe89057a34f3c35e6bb39c5b78c64f28
7
+ data.tar.gz: 54c0a0bfcfeed1bf032371e029e20bbf68e67631d9bd387484bbd599ab910994ce30e13c0d4403d8dd811b90573fa5a3213409bb8011debd4feca3f71105e90c
@@ -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.1.0
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-22 00:00:00.000000000 Z
11
+ date: 2014-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake