Class: Newgem::Rubyforge
- Inherits:
-
Object
- Object
- Newgem::Rubyforge
- Defined in:
- lib/newgem/rubyforge-ext.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#github_username ⇒ Object
readonly
Returns the value of attribute github_username.
Instance Method Summary collapse
-
#initialize ⇒ Rubyforge
constructor
A new instance of Rubyforge.
- #rubyforge ⇒ Object
Constructor Details
#initialize ⇒ Rubyforge
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
11 12 13 |
# File 'lib/newgem/rubyforge-ext.rb', line 11 def email @email end |
#full_name ⇒ Object (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_username ⇒ Object (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
#rubyforge ⇒ Object
20 21 22 |
# File 'lib/newgem/rubyforge-ext.rb', line 20 def rubyforge @rubyforge ||= RubyForge.new(::RubyForge::CONFIG_F).configure end |