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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c23c7f63c8bc856aa72d65023e0aff27048c95b4
|
4
|
+
data.tar.gz: 0e600bb93c2fec629e001b0ddf656da31d4db5e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01eb0bdc6ac6ed6ac2e2e2d8d0a22312af6f03f14f83538c78b8e994bd666b4d2f5889d5875195984ef76ddc0746ca1167e151e6d25b782f8eb96b551b9827c9
|
7
|
+
data.tar.gz: 804c182323d4294db92ce92da229ed933af53a3ebdfc7310d57591f3dffc5a5d4e04c5d5b27d0bc03f5f3dab1860c84adafbf7d114a5a48d6ff25f833696d155
|
@@ -93,13 +93,15 @@ class Inventory::Rake::Tasks::Compile
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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
|
-
|
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
|
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.
|
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-
|
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.
|
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².
|