inventory-rake 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require 'lookout/rake-3.0'
4
-
5
3
  $:.unshift File.expand_path('../lib', __FILE__)
6
4
  require 'inventory/rake-1.0'
7
5
 
@@ -10,4 +8,8 @@ Inventory::Rake::Tasks.define Inventory::Rake::Version, :gem => proc{ |_, s|
10
8
  s.email = 'now@bitwi.se'
11
9
  s.homepage = 'https://github.com/now/inventory-rake'
12
10
  }
13
- Lookout::Rake::Tasks::Test.new
11
+
12
+ Inventory::Rake::Tasks.unless_installing_dependencies do
13
+ require 'lookout/rake-3.0'
14
+ Lookout::Rake::Tasks::Test.new
15
+ end
@@ -15,5 +15,13 @@ module Inventory::Rake::Tasks
15
15
  Inventory.new(:inventory => inventory)
16
16
  Gem.new(:inventory => inventory, &(options.fetch(:gem, proc{ })))
17
17
  end
18
+
19
+ def unless_installing_dependencies
20
+ yield if (%w'deps:install
21
+ deps:install:user
22
+ gem:deps:install
23
+ gem:deps:install:user' &
24
+ Rake.application.top_level_tasks).empty?
25
+ end
18
26
  end
19
27
  end
@@ -3,9 +3,11 @@
3
3
  require 'inventory-1.0'
4
4
 
5
5
  module Inventory::Rake
6
- Version = Inventory.new(1, 2, 0){
6
+ Version = Inventory.new(1, 3, 0){
7
7
  def dependencies
8
8
  super + Inventory::Dependencies.new{
9
+ development 'lookout', 3, 0, 0
10
+ development 'lookout-rake', 3, 0, 0
9
11
  optional 'rake', 0, 9, 2
10
12
  }
11
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-26 00:00:00.000000000 Z
12
+ date: 2012-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inventory
16
- requirement: &16233528 !ruby/object:Gem::Requirement
16
+ requirement: &3960924 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,32 @@ dependencies:
21
21
  version: '1.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16233528
24
+ version_requirements: *3960924
25
+ - !ruby/object:Gem::Dependency
26
+ name: lookout
27
+ requirement: &3960240 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *3960240
36
+ - !ruby/object:Gem::Dependency
37
+ name: lookout-rake
38
+ requirement: &3959652 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *3959652
25
47
  - !ruby/object:Gem::Dependency
26
48
  name: rake
27
- requirement: &16231944 !ruby/object:Gem::Requirement
49
+ requirement: &3959232 !ruby/object:Gem::Requirement
28
50
  none: false
29
51
  requirements:
30
52
  - - ~>
@@ -32,7 +54,7 @@ dependencies:
32
54
  version: 0.9.2
33
55
  type: :runtime
34
56
  prerelease: false
35
- version_requirements: *16231944
57
+ version_requirements: *3959232
36
58
  description: ! " Inventory-Rake\n\n Inventory-Rake
37
59
  provides Rake tasks for your Inventory¹. This includes\n cleaning tasks, gem generation,
38
60
  testing, installation, uninstallation, and\n pushing, and inventory content checking.\n\n¹