cbuildgems 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config_build.rb +9 -9
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57550715b09432697acbd6e833a13fa3df126e78
|
4
|
+
data.tar.gz: 9b4ed795404df99fd179bf9a14508e57fa849d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e846171c4161c85359178fc3138f341287a6040584048b638ea8762b3b8eafa0f722c99d29b5b91c7f8ed23f7f3a3d17152f828b004e12c9282591ccee122d
|
7
|
+
data.tar.gz: cf12abdf0c1f46d7b386acf91f6d97c29874fa1d6c81ecf41023f55e758317a5bbf2fd1f3776315ddb777bb63b04d68aaed28104002a7e19d611684ca491106f
|
data/lib/config_build.rb
CHANGED
@@ -16,6 +16,7 @@ module CBuildGems
|
|
16
16
|
# whatever is in the code block.
|
17
17
|
#
|
18
18
|
# @param key [String] complier_opts key to test.
|
19
|
+
# @yield [] Actions to follow .
|
19
20
|
# @return [Nil]
|
20
21
|
def if_include(key)
|
21
22
|
yield if @complier_opts.keys.include?(key)
|
@@ -52,18 +53,17 @@ module CBuildGems
|
|
52
53
|
nil
|
53
54
|
end
|
54
55
|
|
55
|
-
# Sets
|
56
|
+
# Sets a source path to build_str from src.
|
56
57
|
#
|
58
|
+
# @param src_index [Fixnum] the source in the src array.
|
57
59
|
# @return [Nil]
|
58
60
|
# @see Build#src
|
59
61
|
# @see #build_str
|
60
|
-
def
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
build_str.concat("#{i} -o\s")
|
66
|
-
end
|
62
|
+
def set_src_path(src_index)
|
63
|
+
if debug_mode
|
64
|
+
build_str.concat("-g #{@src[src_index]} -o\s")
|
65
|
+
else
|
66
|
+
build_str.concat("#{@src[src_index]} -o\s")
|
67
67
|
end
|
68
68
|
|
69
69
|
nil
|
@@ -73,7 +73,7 @@ module CBuildGems
|
|
73
73
|
#
|
74
74
|
# @param bins_index [Fixnum] the binary in the bins array.
|
75
75
|
# @return [Nil]
|
76
|
-
# @see Build
|
76
|
+
# @see Build#bins
|
77
77
|
# @see #build_str
|
78
78
|
def set_output(bins_index)
|
79
79
|
build_str.concat("#{@bins[bins_index]}\s")
|
data/lib/version.rb
CHANGED