rake-dotnet 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/Rakefile +1 -1
  3. data/lib/rake_dotnet.rb +3 -1
  4. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.12 / 2009-05-01
2
+
3
+ * FIX: Automatically create {project}/Properties directories when generating AssemblyInfo.cs files (git does not version empty directories)
4
+
1
5
  === 0.0.11 / 2009-04-30
2
6
 
3
7
  * FIX: Detect processor architecture from environment variable rather than require user to figure it out and pass it in.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
5
5
  require 'Pathname'
6
6
  require 'rake/clean'
7
7
 
8
- Hoe.new('rake-dotnet', '0.0.11') do |p|
8
+ Hoe.new('rake-dotnet', '0.0.12') do |p|
9
9
  p.author = 'Peter Mounce'
10
10
  p.description = 'Making a .NET build-automation dev\'s life easier, one angle-bracket at a time'
11
11
  p.email = 'pete@neverrunwithscissors.com'
data/lib/rake_dotnet.rb CHANGED
@@ -101,6 +101,8 @@ module Rake
101
101
  def define
102
102
  src_dir_regex = regexify(@src_dir)
103
103
  rule(/#{src_dir_regex}\/[\w\.\d]+\/Properties\/AssemblyInfo.cs/) do |r|
104
+ dir = Pathname.new(r.name).dirname
105
+ mkdir_p dir
104
106
  nextdoor = Pathname.new(r.name + '.template')
105
107
  common = Pathname.new(File.join(@src_dir, 'AssemblyInfo.cs.template'))
106
108
  if (nextdoor.exist?)
@@ -114,7 +116,7 @@ module Rake
114
116
  task :assembly_info do |t|
115
117
  # for each project, invoke the rule
116
118
  Dir.foreach(@src_dir) do |e|
117
- asm_info = File.join(@src_dir, e, 'Properties', 'AssemblyInfo.cs')
119
+ asm_info = File.join(@src_dir, e, 'Properties', 'AssemblyInfo.cs')
118
120
  if is_project e
119
121
  Rake::FileTask[asm_info].invoke
120
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-dotnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter MouncePeter Mounce
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-30 00:00:00 +01:00
12
+ date: 2009-05-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency