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.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module WoopleTheme
2
- VERSION = '0.5.14'
2
+ VERSION = '0.5.15'
3
3
  end
metadata CHANGED
@@ -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: