inventory-rake 1.5.1 → 1.5.2

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: 9fba723b86f4277762911a44f187733a8b08d1eb
4
- data.tar.gz: 3a5e3322f495c7be3e9d684b86b53b4dd403491c
3
+ metadata.gz: c23c7f63c8bc856aa72d65023e0aff27048c95b4
4
+ data.tar.gz: 0e600bb93c2fec629e001b0ddf656da31d4db5e0
5
5
  SHA512:
6
- metadata.gz: 5b1544b054ce948cc99cda1004ee7abd6599fbbddbf090968ceb6f8e83f1ade441e4691dbfe479680fe168be01347fa80fd081286ed0699a94d3a27ec681b32c
7
- data.tar.gz: d9234f2b6e956c3af13eb28e13193fda888796ed78c386b5c726c19026e72d86b535f0098ae10a7edfeef9f46f9e1a958011986ffbf97d644cb2e2a66d5c3c0a
6
+ metadata.gz: 01eb0bdc6ac6ed6ac2e2e2d8d0a22312af6f03f14f83538c78b8e994bd666b4d2f5889d5875195984ef76ddc0746ca1167e151e6d25b782f8eb96b551b9827c9
7
+ data.tar.gz: 804c182323d4294db92ce92da229ed933af53a3ebdfc7310d57591f3dffc5a5d4e04c5d5b27d0bc03f5f3dab1860c84adafbf7d114a5a48d6ff25f833696d155
@@ -50,7 +50,7 @@ class Inventory::Rake::Tasks::Clean
50
50
  # Defines the task {#name} that’ll delete {#files}.
51
51
  def define
52
52
  task name do
53
- rm files, :force => true
53
+ rm files, :force => true unless files.empty?
54
54
  end
55
55
  end
56
56
 
@@ -93,13 +93,15 @@ class Inventory::Rake::Tasks::Compile
93
93
  end
94
94
  end
95
95
 
96
- clean_name = :"clean:#{extension}"
97
- desc 'Clean files built for extension %s' % extension
98
- task clean_name do
99
- sh 'make -C %s clean' % extension.directory
100
- end
96
+ %w[clean distclean].each do |name|
97
+ clean_name = :"#{name}:#{extension}"
98
+ desc 'Clean files built for extension %s' % extension
99
+ task clean_name do
100
+ sh 'make -C %s %s' % [extension.directory, name] if File.exist? makefile
101
+ end
101
102
 
102
- task :clean => clean_name
103
+ task :"#{name}" => clean_name
104
+ end
103
105
  end
104
106
 
105
107
  task :test => :compile if Rake::Task.task_defined? :test
@@ -33,10 +33,7 @@ class Inventory::Rake::Tasks::Inventory
33
33
  def define
34
34
  desc 'Check that the inventory is correct'
35
35
  task :'inventory:check' => :distclean do
36
- diff = ((Dir[@pattern] -
37
- @inventory.extensions.map(&:source_files) -
38
- @inventory.lib_files -
39
- @inventory.unit_test_files).map{ |e| '%s: file not listed in inventory' % e } +
36
+ diff = ((Dir[@pattern] - @inventory.files).map{ |e| '%s: file not listed in inventory' % e } +
40
37
  @inventory.files.reject{ |e| File.exist? e }.map{ |e| '%s: file listed in inventory does not exist' % e })
41
38
  fail diff.join("\n") unless diff.empty?
42
39
  # TODO: puts 'inventory checks out' if verbose
@@ -3,7 +3,7 @@
3
3
  require 'inventory-1.0'
4
4
 
5
5
  module Inventory::Rake
6
- Version = Inventory.new(1, 5, 1){
6
+ Version = Inventory.new(1, 5, 2){
7
7
  def dependencies
8
8
  super + Inventory::Dependencies.new{
9
9
  development 'inventory-rake-tasks-yard', 1, 3, 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolai Weibull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-11 00:00:00.000000000 Z
11
+ date: 2013-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inventory
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  version: '0'
292
292
  requirements: []
293
293
  rubyforge_project:
294
- rubygems_version: 2.0.0
294
+ rubygems_version: 2.0.3
295
295
  signing_key:
296
296
  specification_version: 4
297
297
  summary: Inventory-Rake provides Rake¹ tasks for your Inventory².