Class: U3d::UnityVersions::LinuxVersions
- Inherits:
-
Object
- Object
- U3d::UnityVersions::LinuxVersions
- Defined in:
- lib/u3d/unity_versions.rb
REGEX: expressions to interpret data collapse
- JSON_OS =
'linux'.freeze
REGEX: expressions to interpret data collapse
-
.unity_forums ⇒ Object
Returns the value of attribute unity_forums.
REGEX: expressions to interpret data collapse
Class Attribute Details
.unity_forums ⇒ Object
Returns the value of attribute unity_forums.
198 199 200 |
# File 'lib/u3d/unity_versions.rb', line 198 def unity_forums @unity_forums end |
Class Method Details
.list_available ⇒ Object
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/u3d/unity_versions.rb', line 200 def list_available UI. 'Loading Unity releases' versions = @unity_forums.pagination_urls(UNITY_LINUX_DOWNLOADS).map do |page_url| list_available_from_page(@unity_forums, unity_forums.page_content(page_url)) end.reduce({}, :merge) versions_fetcher = VersionsFetcher.new(pattern: LINUX_INSTALLER) versions.merge!(versions_fetcher.fetch_json('linux')) if versions.count.zero? UI.important 'Found no releases' else UI.success "Found #{versions.count} releases." end versions end |