Class: Newgem::Rubyforge

Inherits:
Object
  • Object
show all
Defined in:
lib/newgem/rubyforge-ext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRubyforge

Returns a new instance of Rubyforge.



13
14
15
16
17
18
# File 'lib/newgem/rubyforge-ext.rb', line 13

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

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



11
12
13
# File 'lib/newgem/rubyforge-ext.rb', line 11

def email
  @email
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



11
12
13
# File 'lib/newgem/rubyforge-ext.rb', line 11

def full_name
  @full_name
end

#github_usernameObject (readonly)

Returns the value of attribute github_username.



11
12
13
# File 'lib/newgem/rubyforge-ext.rb', line 11

def github_username
  @github_username
end

Instance Method Details

#rubyforgeObject



20
21
22
# File 'lib/newgem/rubyforge-ext.rb', line 20

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