RubyGems
npm
Organizations
Log in
Sign up
RubyGems
woople-theme
Versions diffs
0.5.14 → 0.5.15
woople-theme 0.5.14 → 0.5.15
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/app/presenters/woople_theme/dashboard/points_presenter.rb
+2
-0
data/lib/woople-theme/version.rb
+1
-1
metadata
+1
-1
data/app/presenters/woople_theme/dashboard/points_presenter.rb
CHANGED
Viewed
@@ -6,6 +6,8 @@ module WoopleTheme
6
6
enforce_definitions :earned, :total
7
7
8
8
def percent_complete
9
+
return 100 if data.total.zero?
10
+
9
11
( (data.earned.to_f / data.total.to_f) * 100 ).round
10
12
end
11
13
data/lib/woople-theme/version.rb
CHANGED
Viewed
@@ -1,3 +1,3 @@
1
1
module WoopleTheme
2
-
VERSION = '0.5.
14
'
2
+
VERSION = '0.5.
15
'
3
3
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: woople-theme
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.5.
14
4
+
version: 0.5.
15
5
5
prerelease:
6
6
platform: ruby
7
7
authors: