Sha256: f93dd23d02deeeff21090136b3eacc306e9f3aec3219f1283cc3cf2fdc2b7c32

Contents?: true

Size: 625 Bytes

Versions: 5

Compression:

Stored size: 625 Bytes

Contents

begin
  require 'rubyforge'
rescue LoadError
  require 'rubygems'
  gem 'rubyforge'
  require 'rubyforge'
end

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

5 entries across 5 versions & 1 rubygems

Version Path
newgem-1.2.0 lib/newgem/rubyforge-ext.rb
newgem-1.2.1 lib/newgem/rubyforge-ext.rb
newgem-1.2.2 lib/newgem/rubyforge-ext.rb
newgem-1.2.3 lib/newgem/rubyforge-ext.rb
newgem-1.3.0 lib/newgem/rubyforge-ext.rb