take 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39694f73f12e41815aedde7a3ddc493c9f575e9d
4
- data.tar.gz: 8ff2c2902b3bf331aa6da4f0784d8b7895d943fe
3
+ metadata.gz: 30a3eaeb64d8a7145710c1b21b61ef49438c2ce9
4
+ data.tar.gz: 7b6088a71e656c266783e00ccced336c40a6dbef
5
5
  SHA512:
6
- metadata.gz: 8c0d5ea413415e154bf33df4c147b6a06a4cd478bc74d9f93016eccf006fc50167134825a8451a2dedd7babc9a8b7c945de57eae4fac1bc3562e5aff17de6c4f
7
- data.tar.gz: 24c799928ede8aba61bf2204880d663d3264c1fe7ea4f9a33ea8cb70101410846adc42697b52683efef907806a61c154512728eb65b955173ff1295ee075f5bc
6
+ metadata.gz: 0c94995f202f6a12a982ae5eb551382752619111d80545fe0a10a5302eb9c95b934e847cab5ee346dca50b6aa36e6bb7b04d49002b131c2537674bfa864f4fc2
7
+ data.tar.gz: 12248c0b1533fe39e896152c1e8076652801b825e6a066b92d8d595126f3f999fcad96899c50546d0e36f2c2cdfb5df845ffb754590481db4efdbc710e74fb9b
@@ -6,7 +6,6 @@ module Take
6
6
  @parent = parent
7
7
  @groups = [@parent]
8
8
  @options = options
9
- @group_functions = []
10
9
  end
11
10
 
12
11
  def generate
@@ -49,7 +48,7 @@ module Take
49
48
  group.children.select(&:test?).
50
49
  each { |child| walk(child) }
51
50
 
52
- @group_functions << "group_#{group_name}"
51
+ group.children.select(&:group?).each { |child| walk(child) }
53
52
 
54
53
  @output << <<-CODE
55
54
  // group #{group_name}
@@ -63,7 +62,12 @@ CODE
63
62
  map { |child| " test_#{group_name(child)}();" }.
64
63
  join("\n")
65
64
  @output << "\n"
65
+ group.children.select(&:group?).
66
+ each { |child| @output << " group_#{group_name}_" \
67
+ "#{child.name}();\n" }
66
68
  @output << "}\n\n"
69
+
70
+
67
71
  @groups.pop
68
72
  end
69
73
 
@@ -129,7 +133,8 @@ int main()
129
133
 
130
134
  CODE
131
135
 
132
- @group_functions.each { |func| @output << " #{func}();\n" }
136
+ node.children.select(&:group?).
137
+ each { |child| @output << " group_#{child.name}();\n" }
133
138
 
134
139
  @output << <<-CODE
135
140
  output2("\\n\\t" TEXT_COLOR_MAGENTA "RESULT:\\n\\t\\t"
data/lib/take/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Take
2
- VERSION = "0.0.9".freeze
2
+ VERSION = "0.0.10".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: take
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler