rake-builder 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rake/builder.rb CHANGED
@@ -334,9 +334,12 @@ module Rake
334
334
  File.basename(@target)
335
335
  end
336
336
 
337
+ def target_path
338
+ target.sub(/^\.\//, '') # Remove current directory from name
339
+ end
340
+
337
341
  def label
338
- label = target.sub(/^\.\//, '') # Remove current directory from name
339
- label.gsub(%r(\.), '_')
342
+ target_path.gsub(%r(\.), '_')
340
343
  end
341
344
 
342
345
  # Source files found in source_search_paths
@@ -27,11 +27,11 @@ module Rake; class Builder; module Presenters; module MakefileAm
27
27
  end
28
28
 
29
29
  def programs_list
30
- 'bin_PROGRAMS = ' + programs.map(&:label).join(' ') + "\n\n"
30
+ 'bin_PROGRAMS = ' + programs.map(&:target_path).join(' ') + "\n\n"
31
31
  end
32
32
 
33
33
  def libraries_list
34
- 'lib_LIBRARIES = ' + libraries.map(&:label).join(' ') + "\n\n"
34
+ 'lib_LIBRARIES = ' + libraries.map(&:target_path).join(' ') + "\n\n"
35
35
  end
36
36
 
37
37
  def program_sections
@@ -3,7 +3,7 @@ module Rake
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
@@ -10,8 +10,8 @@ describe Rake::Builder::Presenters::MakefileAm::BuilderCollectionPresenter do
10
10
  end
11
11
 
12
12
  context '#to_s' do
13
- let(:program_builder) { stub('Rake::Builder', :label => 'the_program', :is_library? => false) }
14
- let(:library_builder) { stub('Rake::Builder', :label => 'the_library', :is_library? => true) }
13
+ let(:program_builder) { stub('Rake::Builder', :label => 'the_program', :target_path => 'the_program', :is_library? => false) }
14
+ let(:library_builder) { stub('Rake::Builder', :label => 'the_library', :target_path => 'the_library', :is_library? => true) }
15
15
  let(:builders) { [program_builder, library_builder] }
16
16
 
17
17
  subject { Rake::Builder::Presenters::MakefileAm::BuilderCollectionPresenter.new(builders) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 3806419148437936099
158
+ hash: -1324937626880016465
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: 3806419148437936099
167
+ hash: -1324937626880016465
168
168
  requirements: []
169
169
  rubyforge_project: nowarning
170
170
  rubygems_version: 1.8.23.2