Sha256: b5039d806d19cadcd43f9ae3c20d5c1a6c488fae3335d065596f254265e186d9

Contents?: true

Size: 695 Bytes

Versions: 14

Compression:

Stored size: 695 Bytes

Contents

require_relative 'project'
module Albacore
  class FsharpProject < Project
    def initialize(project_path)
      super(project_path)
      sanity_checks
    end

    def default_assembly_version
      begin
        info= File.read(assembly_info_path)
        v   = info.each_line
                  .select { |l| !(l.start_with?('//')||l.start_with?('(*')) && l.include?('AssemblyVersion(') }.first
        reg = /"(.*?)"/
        reg.match(v).captures.first
      rescue
        '1.0.0.0'
      end

    end

    private
    def sanity_checks
      super
       warn { "project '#{@proj_filename}' is not an fsharp project." } unless (File.extname(@proj_filename) =='.fsproj')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
albacore-3.0.1 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha.6 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha.5 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha.4 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha.3 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha.2 ./lib/albacore/fsharp_project.rb
albacore-3.0.0.pre.alpha ./lib/albacore/fsharp_project.rb
albacore-2.8.0 ./lib/albacore/fsharp_project.rb
albacore-2.7.0 ./lib/albacore/fsharp_project.rb
albacore-2.6.8 ./lib/albacore/fsharp_project.rb
albacore-2.6.7 ./lib/albacore/fsharp_project.rb
albacore-2.6.6 ./lib/albacore/fsharp_project.rb
albacore-2.6.4 ./lib/albacore/fsharp_project.rb
albacore-2.6.3 ./lib/albacore/fsharp_project.rb