Class: DevTools::Freshmeat::Release

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_project/release/freshmeat.rb

Overview

Holds all information about a release which should be published.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branch_nameObject

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

#changesObject

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_frontpageObject

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

#licenseObject

Optional: Branch license



87
88
89
# File 'lib/meta_project/release/freshmeat.rb', line 87

def license
  @license
end

#project_nameObject

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_focusObject

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_bsdportObject

Optional: BSD Ports URL



114
115
116
# File 'lib/meta_project/release/freshmeat.rb', line 114

def url_bsdport
  @url_bsdport
end

#url_bz2Object

Optional: Tar/BZ2



96
97
98
# File 'lib/meta_project/release/freshmeat.rb', line 96

def url_bz2
  @url_bz2
end

#url_changelogObject

Optional: Changelog



102
103
104
# File 'lib/meta_project/release/freshmeat.rb', line 102

def url_changelog
  @url_changelog
end

#url_cvsObject

Optional: CVS tree (cvsweb)



120
121
122
# File 'lib/meta_project/release/freshmeat.rb', line 120

def url_cvs
  @url_cvs
end

#url_debObject

Optional: Debian package



108
109
110
# File 'lib/meta_project/release/freshmeat.rb', line 108

def url_deb
  @url_deb
end

#url_demoObject

Optional: Demo site



129
130
131
# File 'lib/meta_project/release/freshmeat.rb', line 129

def url_demo
  @url_demo
end

#url_homepageObject

Optional: Homepage



90
91
92
# File 'lib/meta_project/release/freshmeat.rb', line 90

def url_homepage
  @url_homepage
end

#url_listObject

Optional: Mailing list archive



123
124
125
# File 'lib/meta_project/release/freshmeat.rb', line 123

def url_list
  @url_list
end

#url_mirrorObject

Optional: Mirror site



126
127
128
# File 'lib/meta_project/release/freshmeat.rb', line 126

def url_mirror
  @url_mirror
end

#url_osxObject

Optional: OS X package



111
112
113
# File 'lib/meta_project/release/freshmeat.rb', line 111

def url_osx
  @url_osx
end

#url_purchaseObject

Optional: Purchase



117
118
119
# File 'lib/meta_project/release/freshmeat.rb', line 117

def url_purchase
  @url_purchase
end

#url_rpmObject

Optional: RPM package



105
106
107
# File 'lib/meta_project/release/freshmeat.rb', line 105

def url_rpm
  @url_rpm
end

#url_tgzObject

Optional: Tar/GZ



93
94
95
# File 'lib/meta_project/release/freshmeat.rb', line 93

def url_tgz
  @url_tgz
end

#url_zipObject

Optional: Zip



99
100
101
# File 'lib/meta_project/release/freshmeat.rb', line 99

def url_zip
  @url_zip
end

#versionObject

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_dataObject



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_typeObject



143
144
145
# File 'lib/meta_project/release/freshmeat.rb', line 143

def to_yaml_type
  "!thomasleitner,2005/FreshmeatRelease"
end