ifd_tools 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,11 @@ xml.root do
4
4
  xml.state do
5
5
  xml.name activity.name.downcase
6
6
  xml.activity activity.activity
7
- xml.percent ( activity.activity.to_f / @total_activity ).round(2)
7
+
8
+ percent = ( activity.activity.to_f / @total_activity ).round(2)
9
+ percent = 0 if percent.nan?
10
+
11
+ xml.percent percent
8
12
  xml.users activity.users
9
13
  end
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module IfdTools
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ifd_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: