ceedling 0.16.0 → 0.17.0

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: 0bbc0e24ac717498dcfd29be1f5d3b37892f7235
4
- data.tar.gz: 2cce01afc4ac51d222d48d409cd18af01b818188
3
+ metadata.gz: 3f080a37226ca2bad23bea2e314e7ac3828b4093
4
+ data.tar.gz: 37841e6f0c39ee415bb4607ecea0d5d8278ce8ee
5
5
  SHA512:
6
- metadata.gz: 303937a2c0426d57785ab525cd99f4a6d98865243e847e26d4a1250c9eed1a0c872882cc7f5f64cad20de40eeb9d52c91bf3d3c8b9d245cb648750f2388a8d4c
7
- data.tar.gz: bb4a3b809e65a0589965882b54e7c0262213f36d7f1773757b6e3de91235102fe97b8c72a28ad5776278c354a2bf3fa2c25b49ad8ae6fb3e037222cea3a6ab35
6
+ metadata.gz: 26397b81e50d88ba54f0d9cb8510ea4f164bd34392bdf5af85fb274d6ea03f83bcf22c6a2d236e1bab8f1a13d8aa29097dcfb12101b27d812fc831059cf26827
7
+ data.tar.gz: 26c57f493b4d8b378aa6c40e3df248a3422a00f7ae82e2b87f8daa55e81d4d8203862a44c899534b6e80ea17502d8c74ccfa88890a8133e83a0c8af93368dca2
@@ -170,20 +170,28 @@ class FilePathUtils
170
170
  end
171
171
 
172
172
  def form_preprocessed_mockable_headers_filelist(mocks)
173
- # pathmapping note: "%{#{@configurator.cmock_mock_prefix},}n" replaces mock_prefix with nothing (signified by absence of anything after comma inside replacement brackets)
174
- return (@file_wrapper.instantiate_file_list(mocks)).pathmap("#{@configurator.project_test_preprocess_files_path}/%{#{@configurator.cmock_mock_prefix},}n#{@configurator.extension_header}")
173
+ list = @file_wrapper.instantiate_file_list(mocks)
174
+ headers = list.map do |file|
175
+ module_name = File.basename(file).sub(/^#{@configurator.cmock_mock_prefix}/, '').sub(/\.[a-zA-Z]+$/,'')
176
+ "#{@configurator.project_test_preprocess_files_path}/#{module_name}#{@configurator.extension_header}"
177
+ end
178
+ return headers
175
179
  end
176
180
 
177
181
  def form_mocks_source_filelist(mocks)
178
- return (@file_wrapper.instantiate_file_list(mocks)).pathmap("#{@configurator.cmock_mock_path}/%n#{@configurator.extension_source}")
182
+ list = (@file_wrapper.instantiate_file_list(mocks))
183
+ sources = list.map{|file| "#{@configurator.cmock_mock_path}/#{file}#{@configurator.extension_source}"}
184
+ return sources
179
185
  end
180
186
 
181
187
  def form_test_dependencies_filelist(files)
182
- return (@file_wrapper.instantiate_file_list(files)).pathmap("#{@configurator.project_test_dependencies_path}/%n#{@configurator.extension_dependencies}")
188
+ list = @file_wrapper.instantiate_file_list(files)
189
+ return list.pathmap("#{@configurator.project_test_dependencies_path}/%n#{@configurator.extension_dependencies}")
183
190
  end
184
191
 
185
192
  def form_pass_results_filelist(path, files)
186
- return (@file_wrapper.instantiate_file_list(files)).pathmap("#{path}/%n#{@configurator.extension_testpass}")
193
+ list = @file_wrapper.instantiate_file_list(files)
194
+ return list.pathmap("#{path}/%n#{@configurator.extension_testpass}")
187
195
  end
188
196
 
189
197
  end
@@ -2,8 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.16.0"
6
-
5
+ GEM = "0.17.0"
7
6
  # @private
8
7
  CEEDLING = GEM
9
8
  # @private
@@ -2,7 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.16.0"
5
+ GEM = "0.17.0"
6
6
 
7
7
  # @private
8
8
  CEEDLING = "<%= versions["CEEDLING"] %>"
@@ -19,6 +19,7 @@ class PreprocessinatorFileHandlerTest < Test::Unit::TestCase
19
19
  expected_file = %Q[
20
20
  #include "other_file.h"
21
21
  #include "file.h"
22
+ #include "protobuf.pb-c.h"
22
23
 
23
24
  void foo(void)
24
25
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceedling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Karlesky, Mark VanderVoord
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-15 00:00:00.000000000 Z
13
+ date: 2015-03-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor