Sha256: 44b4164f8e5dd91b1c491e03400ad991f79a9b92d35d55ca0c96ed28258ff100

Contents?: true

Size: 554 Bytes

Versions: 13

Compression:

Stored size: 554 Bytes

Contents

require 'rubygems'
require 'rubyforge'

module Newgem
  class Rubyforge
    attr_reader :full_name, :email, :github_username

    def initialize
      @full_name = rubyforge.userconfig['full_name'] || ENV['NAME']  || 'FIXME full name'
      @email     = rubyforge.userconfig['email']     || ENV['EMAIL'] || 'FIXME email'
      @github_username =
        rubyforge.userconfig['github_username'] || ENV['GITHUB_USERNAME'] || 'GITHUB_USERNAME'
    end

    def rubyforge
      @rubyforge ||= RubyForge.new(::RubyForge::CONFIG_F).configure
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
newgem-0.25.0 lib/newgem/rubyforge.rb
newgem-0.29.0 lib/newgem/rubyforge.rb
newgem-0.28.0 lib/newgem/rubyforge.rb
newgem-0.27.0 lib/newgem/rubyforge.rb
newgem-1.0.0 lib/newgem/rubyforge.rb
newgem-1.0.1 lib/newgem/rubyforge.rb
newgem-1.0.3 lib/newgem/rubyforge.rb
newgem-1.0.4 lib/newgem/rubyforge.rb
newgem-1.0.5 lib/newgem/rubyforge.rb
newgem-1.0.2 lib/newgem/rubyforge.rb
newgem-1.0.6 lib/newgem/rubyforge.rb
newgem-1.0.7 lib/newgem/rubyforge.rb
newgem-1.1.0 lib/newgem/rubyforge.rb