iron_hammer 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ $hoe = Hoe.spec 'iron_hammer' do
14
14
  self.rubyforge_name = self.name
15
15
  self.extra_deps = [['rubyzip2','>= 2.0.1'],
16
16
  ['builder', '>= 2.1.2']]
17
- self.version = '1.0.10'
17
+ self.version = '1.0.11'
18
18
  end
19
19
 
20
20
  require 'newgem/tasks'
@@ -34,8 +34,10 @@ module IronHammer
34
34
  end
35
35
 
36
36
  def self.from_project project
37
- Dependency.new :name => project.assembly_name, :version => project.version,
38
- :extension => project.artifacts.first.split('.').last
37
+ unless project.artifacts.empty?
38
+ Dependency.new :name => project.assembly_name, :version => project.version,
39
+ :extension => project.artifacts.first.split('.').last
40
+ end
39
41
  end
40
42
  private
41
43
  def self.get_extension reference
@@ -55,7 +55,7 @@ module IronHammer
55
55
 
56
56
  def dependencies_with_projects projects
57
57
  selected = projects.select {|p| p.is_a?(DllProject) && project_references.include?(p.name)}
58
- dependencies + selected.map {|p| Dependency.from_project p}
58
+ dependencies + selected.map {|p| Dependency.from_project p}.select {|p| !p.nil?}
59
59
  end
60
60
 
61
61
  def package params={}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_hammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mozair Alves do Carmo Junior
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-23 00:00:00 -03:00
13
+ date: 2010-02-24 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency