Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4052748
D473.id1159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D473.id1159.diff
View Options
diff --git a/tommy.rb b/tommy.rb
--- a/tommy.rb
+++ b/tommy.rb
@@ -29,11 +29,11 @@
returned_projects << Project.new( :name => project['displayName'].gsub('-', ' '),
:build_score => project['healthReport'].first['score'].to_i,
:last_build_number => project['builds'].first['number'],
- :last_build_url => (project['lastBuild'].blank? ? "" : project['lastBuild']['url']),
- :last_stable_build => (project['lastStableBuild'].blank? ? "" : project['lastStableBuild']['number']),
+ :last_build_url => (project['lastBuild'].blank? ? '' : project['lastBuild']['url']),
+ :last_stable_build => (project['lastStableBuild'].blank? ? '' : project['lastStableBuild']['number']),
:health_report => project['healthReport'].first['description'],
- :last_complete_url => (project['lastCompletedBuild'].blank? ? "" : project['lastCompletedBuild']['url']),
- :last_failed_url => (project['lastFailedBuild'].blank? ? "" : project['lastFailedBuild']['url'] ),
+ :last_complete_url => (project['lastCompletedBuild'].blank? ? '' : project['lastCompletedBuild']['url']),
+ :last_failed_url => (project['lastFailedBuild'].blank? ? '' : project['lastFailedBuild']['url'] ),
:colour => project['color'])
end
@@ -61,20 +61,20 @@
score = project.build_score
if project.is_green?
if score == 100
- "best"
+ 'best'
elsif score >= 80
- "better"
+ 'better'
elsif score >= 60
- "good"
+ 'good'
elsif score >= 40
- "bad"
+ 'bad'
else
- "worse"
+ 'worse'
end
elsif project.is_building?
- "building"
+ 'building'
else
- "worst"
+ 'worst'
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 05:13 (10 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2375318
Default Alt Text
D473.id1159.diff (2 KB)
Attached To
Mode
D473: Style: single-quoted strings
Attached
Detach File
Event Timeline
Log In to Comment