take 0.0.9 → 0.0.10
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/take/unit/generator.rb +8 -3
- data/lib/take/version.rb +1 -1
- 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: 30a3eaeb64d8a7145710c1b21b61ef49438c2ce9
|
4
|
+
data.tar.gz: 7b6088a71e656c266783e00ccced336c40a6dbef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c94995f202f6a12a982ae5eb551382752619111d80545fe0a10a5302eb9c95b934e847cab5ee346dca50b6aa36e6bb7b04d49002b131c2537674bfa864f4fc2
|
7
|
+
data.tar.gz: 12248c0b1533fe39e896152c1e8076652801b825e6a066b92d8d595126f3f999fcad96899c50546d0e36f2c2cdfb5df845ffb754590481db4efdbc710e74fb9b
|
data/lib/take/unit/generator.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
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.
|
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-
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|