Sha256: 3e591b7032b218430dbb1a3091e0bf70839d41f0ca3f4e5377ba49c413c6fc75

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

module Licensor
  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

4 entries across 4 versions & 1 rubygems

Version Path
licensor-0.1.3 lib/licensor/default_setting.rb
licensor-0.1.2 lib/licensor/default_setting.rb
licensor-0.1.1 lib/licensor/default_setting.rb
licensor-0.1.0 lib/licensor/default_setting.rb