Skip to content

Commit

Permalink
Merge pull request spox#6 from DavidEGrayson/pull_request_130121
Browse files Browse the repository at this point in the history
Fixed usage of DateTime#sec_fraction
  • Loading branch information
swalterd committed Feb 21, 2013
2 parents 82ee3a7 + 50f0052 commit b2a8f31
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4,817 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/pkg
*.gem
.DS_Store

4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'rake/gempackagetask'
require 'rubygems/package_task'
load 'soap4r.gemspec'

task :default => :gem

Rake::GemPackageTask.new(SPEC) do |pkg|
Gem::PackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
4 changes: 2 additions & 2 deletions lib/xsd/datatypes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def _to_s
s << ".#{ @secfrac }"
else
s << sprintf("%.16f",
(@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '')
@data.sec_fraction.to_f).sub(/^0/, '').sub(/0*$/, '')
end
end
add_tz(s)
Expand Down Expand Up @@ -705,7 +705,7 @@ def _to_s
s << ".#{ @secfrac }"
else
s << sprintf("%.16f",
(@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '')
@data.sec_fraction.to_f).sub(/^0/, '').sub(/0*$/, '')
end
end
add_tz(s)
Expand Down
Loading

0 comments on commit b2a8f31

Please sign in to comment.