cbuildgems 0.2.0 → 0.3.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/config_build.rb +9 -9
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e63f89e085031f20d3087052b462508945ccfeec
4
- data.tar.gz: 637e474ad90fd48d65950dff3ef578a536015578
3
+ metadata.gz: 57550715b09432697acbd6e833a13fa3df126e78
4
+ data.tar.gz: 9b4ed795404df99fd179bf9a14508e57fa849d9d
5
5
  SHA512:
6
- metadata.gz: cf9bb33ed8b721fb00accfb9dd0bf725f1f860cd6c467664db16eaccecb5f615f5ba2e3458245c2f245524d08c42f70067061349badd058a31685435e0e3e709
7
- data.tar.gz: ae6bad319b07f31489c20ff80878da50a1784c657db4513776560d036864d8053048128756c8330bee40bce91a5aa1a5746c6875df24c07ec00f13421ea654c5
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 each source path to build_str from src.
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 set_src_paths
61
- @src.each do |i|
62
- if debug_mode
63
- build_str.concat("-g #{i} -o\s")
64
- else
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#@bins
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
@@ -1,3 +1,3 @@
1
1
  module CBuildGems
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbuildgems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ralph Desir(Mav7)