Class: DevTools::Freshmeat::Release
- Inherits:
-
Object
- Object
- DevTools::Freshmeat::Release
- Defined in:
- lib/meta_project/release/freshmeat.rb
Overview
Holds all information about a release which should be published.
Instance Attribute Summary collapse
-
#branch_name ⇒ Object
Branch name to submit a release for.
-
#changes ⇒ Object
Changes list, no HTML, character limit 600 chars.
-
#hide_from_frontpage ⇒ Object
Set to ‘Y’ if release is to be hidden from frontpage, everything else does not hide it.
-
#license ⇒ Object
Optional: Branch license.
-
#project_name ⇒ Object
Project name to submit a release for.
-
#release_focus ⇒ Object
Release focus ID of new release.
-
#url_bsdport ⇒ Object
Optional: BSD Ports URL.
-
#url_bz2 ⇒ Object
Optional: Tar/BZ2.
-
#url_changelog ⇒ Object
Optional: Changelog.
-
#url_cvs ⇒ Object
Optional: CVS tree (cvsweb).
-
#url_deb ⇒ Object
Optional: Debian package.
-
#url_demo ⇒ Object
Optional: Demo site.
-
#url_homepage ⇒ Object
Optional: Homepage.
-
#url_list ⇒ Object
Optional: Mailing list archive.
-
#url_mirror ⇒ Object
Optional: Mirror site.
-
#url_osx ⇒ Object
Optional: OS X package.
-
#url_purchase ⇒ Object
Optional: Purchase.
-
#url_rpm ⇒ Object
Optional: RPM package.
-
#url_tgz ⇒ Object
Optional: Tar/GZ.
-
#url_zip ⇒ Object
Optional: Zip.
-
#version ⇒ Object
Version string of new release.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#branch_name ⇒ Object
Branch name to submit a release for
72 73 74 |
# File 'lib/meta_project/release/freshmeat.rb', line 72 def branch_name @branch_name end |
#changes ⇒ Object
Changes list, no HTML, character limit 600 chars
78 79 80 |
# File 'lib/meta_project/release/freshmeat.rb', line 78 def changes @changes end |
#hide_from_frontpage ⇒ Object
Set to ‘Y’ if release is to be hidden from frontpage, everything else does not hide it
84 85 86 |
# File 'lib/meta_project/release/freshmeat.rb', line 84 def hide_from_frontpage @hide_from_frontpage end |
#license ⇒ Object
Optional: Branch license
87 88 89 |
# File 'lib/meta_project/release/freshmeat.rb', line 87 def license @license end |
#project_name ⇒ Object
Project name to submit a release for
69 70 71 |
# File 'lib/meta_project/release/freshmeat.rb', line 69 def project_name @project_name end |
#release_focus ⇒ Object
Release focus ID of new release
81 82 83 |
# File 'lib/meta_project/release/freshmeat.rb', line 81 def release_focus @release_focus end |
#url_bsdport ⇒ Object
Optional: BSD Ports URL
114 115 116 |
# File 'lib/meta_project/release/freshmeat.rb', line 114 def url_bsdport @url_bsdport end |
#url_bz2 ⇒ Object
Optional: Tar/BZ2
96 97 98 |
# File 'lib/meta_project/release/freshmeat.rb', line 96 def url_bz2 @url_bz2 end |
#url_changelog ⇒ Object
Optional: Changelog
102 103 104 |
# File 'lib/meta_project/release/freshmeat.rb', line 102 def url_changelog @url_changelog end |
#url_cvs ⇒ Object
Optional: CVS tree (cvsweb)
120 121 122 |
# File 'lib/meta_project/release/freshmeat.rb', line 120 def url_cvs @url_cvs end |
#url_deb ⇒ Object
Optional: Debian package
108 109 110 |
# File 'lib/meta_project/release/freshmeat.rb', line 108 def url_deb @url_deb end |
#url_demo ⇒ Object
Optional: Demo site
129 130 131 |
# File 'lib/meta_project/release/freshmeat.rb', line 129 def url_demo @url_demo end |
#url_homepage ⇒ Object
Optional: Homepage
90 91 92 |
# File 'lib/meta_project/release/freshmeat.rb', line 90 def url_homepage @url_homepage end |
#url_list ⇒ Object
Optional: Mailing list archive
123 124 125 |
# File 'lib/meta_project/release/freshmeat.rb', line 123 def url_list @url_list end |
#url_mirror ⇒ Object
Optional: Mirror site
126 127 128 |
# File 'lib/meta_project/release/freshmeat.rb', line 126 def url_mirror @url_mirror end |
#url_osx ⇒ Object
Optional: OS X package
111 112 113 |
# File 'lib/meta_project/release/freshmeat.rb', line 111 def url_osx @url_osx end |
#url_purchase ⇒ Object
Optional: Purchase
117 118 119 |
# File 'lib/meta_project/release/freshmeat.rb', line 117 def url_purchase @url_purchase end |
#url_rpm ⇒ Object
Optional: RPM package
105 106 107 |
# File 'lib/meta_project/release/freshmeat.rb', line 105 def url_rpm @url_rpm end |
#url_tgz ⇒ Object
Optional: Tar/GZ
93 94 95 |
# File 'lib/meta_project/release/freshmeat.rb', line 93 def url_tgz @url_tgz end |
#url_zip ⇒ Object
Optional: Zip
99 100 101 |
# File 'lib/meta_project/release/freshmeat.rb', line 99 def url_zip @url_zip end |
#version ⇒ Object
Version string of new release
75 76 77 |
# File 'lib/meta_project/release/freshmeat.rb', line 75 def version @version end |
Class Method Details
.from_data(data = nil) ⇒ Object
131 132 133 |
# File 'lib/meta_project/release/freshmeat.rb', line 131 def self.from_data( data=nil ) YAML::load( data ) end |
Instance Method Details
#to_rpc_data ⇒ Object
135 136 137 138 139 140 141 |
# File 'lib/meta_project/release/freshmeat.rb', line 135 def to_rpc_data rpc_data = {} instance_variables.each do |iv| rpc_data[iv[1..-1]] = eval( iv ) end rpc_data end |
#to_yaml_type ⇒ Object
143 144 145 |
# File 'lib/meta_project/release/freshmeat.rb', line 143 def to_yaml_type "!thomasleitner,2005/FreshmeatRelease" end |