Permalink
Browse files

updated contributors, not 'etc', but real people :)

  • Loading branch information...
1 parent f12ccb4 commit bc529dae7d6e3c5ecd6676493d9aa50ac76bc7bc @haf haf committed Oct 24, 2011
Showing with 28 additions and 15 deletions.
  1. +10 −2 albacore.gemspec
  2. +18 −13 lib/albacore/assemblyinfo.rb
View
@@ -5,10 +5,18 @@
Gem::Specification.new do |s|
s.name = %q{albacore}
- s.version = "0.2.7"
+ s.version = "0.2.8"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Derick Bailey", "etc"]
+ s.authors = ["Derick Bailey", "Ben Hall", "Steven Harman",
+ "Hibri Marzook", "Mark Wilkins", "Prabir Shrestha",
+ "Thomas Van Machelen", "Mark Boltuc", "Ivan Eryshov",
+ "Dotan J. Nahum", "Hernan Garcia", "James Gregory",
+ "Steve Hebert", "Mike Nichols", "Henrik Feldt",
+ "Chris Geihsler", "Brett Veenstra", "Steven H Johnson",
+ "Nils Jonsson", "Kevin Colyar", "Peter van der Woude",
+ "Chris O'Dell", "Sean Biefeld", "Andrew Vos",
+ "Louis Salin"]
s.date = %q{2011-07-10}
s.description = %q{Easily build your .NET solutions with Ruby and Rake, using this suite of Rake tasks.}
s.email = %q{albacorebuild@gmail.com}
@@ -8,6 +8,7 @@ class AssemblyInfo
include Albacore::Task
attr_accessor :input_file, :output_file
+ attr_accessor :language
attr_accessor :version, :title, :description, :custom_attributes
attr_accessor :copyright, :com_visible, :com_guid, :company_name, :product_name
attr_accessor :file_version, :trademark, :lang_engine, :custom_data
@@ -50,8 +51,8 @@ def read_input_file(file)
data = []
return data if file.nil?
- File.open(file, 'r') do |file|
- file.each_line do |line|
+ File.open(file, 'r') do |f|
+ f.each_line do |line|
data << line.strip
end
end
@@ -69,26 +70,29 @@ def check_lang_engine
!@lang_engine.nil?
end
- def build_assembly_info_data(data) #data < []
+ def build_assembly_info_data(data)
+ # data < []
+ # requires: @lang_engine.nil? == false
+
if data.empty?
data = build_header
end
data.concat build_using_statements
- build_attribute(data, "AssemblyTitle", @title) if @title != nil
- build_attribute(data, "AssemblyDescription", @description) if @description != nil
- build_attribute(data, "AssemblyCompany", @company_name) if @company_name != nil
- build_attribute(data, "AssemblyProduct", @product_name) if @product_name != nil
+ build_attribute(data, "AssemblyTitle", @title)
+ build_attribute(data, "AssemblyDescription", @description)
+ build_attribute(data, "AssemblyCompany", @company_name)
+ build_attribute(data, "AssemblyProduct", @product_name)
- build_attribute(data, "AssemblyCopyright", @copyright) if @copyright != nil
- build_attribute(data, "AssemblyTrademark", @trademark) if @trademark != nil
+ build_attribute(data, "AssemblyCopyright", @copyright)
+ build_attribute(data, "AssemblyTrademark", @trademark)
- build_attribute(data, "ComVisible", @com_visible) if @com_visible != nil
- build_attribute(data, "Guid", @com_guid) if @com_guid != nil
+ build_attribute(data, "ComVisible", @com_visible)
+ build_attribute(data, "Guid", @com_guid)
- build_attribute(data, "AssemblyVersion", @version) if @version != nil
- build_attribute(data, "AssemblyFileVersion", @file_version) if @file_version != nil
+ build_attribute(data, "AssemblyVersion", @version)
+ build_attribute(data, "AssemblyFileVersion", @file_version)
data << ""
if @custom_attributes != nil
@@ -117,6 +121,7 @@ def build_footer
end
def build_attribute(data, attr_name, attr_data)
+ if attr_data.nil? then return end
attr_value = @lang_engine.build_attribute(attr_name, attr_data)
attr_re = @lang_engine.build_attribute_re(attr_name)
result = nil

0 comments on commit bc529da

Please sign in to comment.