Sha256: 1808166f7e94c22bfa91b00a3cc8635cfa5e9f7f2142353bcfdcb0a484217409

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

module Licenza
  module DefaultSetting
    def self.name
      name = `git config --get user.name` rescue nil
      raise "Default name cannot be obtained from git. Try `-n' option instead." unless $?.success?
      name.chomp
    end

    def self.year
      Time.now.year.to_s
    end

    def self.filename
      "LICENSE"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
licenza-0.2.1 lib/licenza/default_setting.rb
licenza-0.2.0 lib/licenza/default_setting.rb