mpxj 9.5.0 → 9.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mpxj might be problematic. Click here for more details.

Binary file
@@ -1,4 +1,3 @@
1
- require 'duration'
2
1
  require 'time'
3
2
 
4
3
  module MPXJ
@@ -16,9 +15,9 @@ module MPXJ
16
15
 
17
16
  def get_duration_value(attribute_value)
18
17
  if attribute_value.nil?
19
- Duration.new(0)
18
+ 0.0
20
19
  else
21
- Duration.new(attribute_value.to_i)
20
+ attribute_value.to_f
22
21
  end
23
22
  end
24
23
 
Binary file
Binary file
data/lib/mpxj/mpxj.jar CHANGED
Binary file
data/lib/mpxj/project.rb CHANGED
@@ -69,7 +69,7 @@ module MPXJ
69
69
  # @return [Task] if the requested task is found
70
70
  # @return [nil] if the requested task is not found
71
71
  def get_task_by_id(id)
72
- @tasks_by_unique_id[id]
72
+ @tasks_by_id[id]
73
73
  end
74
74
 
75
75
  # For a particular entity type (task, resource, and so on), retrieve