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'
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.
203 204 205 |
# File 'lib/u3d/unity_versions.rb', line 203 def unity_forums @unity_forums end |
Class Method Details
.list_available ⇒ Object
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/u3d/unity_versions.rb', line 205 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 |