miriad 4.1.0.10 → 4.1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +2 -2
  2. data/lib/miriad.rb +6 -4
  3. metadata +4 -3
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: Rakefile 31 2008-05-16 20:11:25Z davidm $
1
+ # $Id: Rakefile 30 2008-05-16 20:10:42Z davidm $
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake/gempackagetask'
@@ -14,7 +14,7 @@ run_swig unless test ?e, 'ext/miriad_wrap.c'
14
14
  spec = Gem::Specification.new do |s|
15
15
  # Basics
16
16
  s.name = 'miriad'
17
- s.version = '4.1.0.10'
17
+ s.version = '4.1.0.12'
18
18
  s.summary = 'Ruby interface to MIRIAD'
19
19
  s.description = <<-EOS
20
20
  The MIRIAD-Ruby package...
@@ -7,7 +7,7 @@
7
7
  # astronomy related methods to Ruby classes.
8
8
  #
9
9
  #--
10
- # $Id: miriad.rb 25 2008-05-09 23:12:54Z davidm $
10
+ # $Id: miriad.rb 32 2008-12-31 00:23:24Z davidm $
11
11
  #++
12
12
 
13
13
  require 'rbconfig'
@@ -157,11 +157,13 @@ class DateTime
157
157
  # UT1-UTC (unit is seconds) at the time represented by +self+
158
158
  #
159
159
  # This is an increasingly out-of-date approximation only. Taken from
160
- # http://www.iers.org/products/6/11136/orig/bulletina-xx-042.txt
160
+ # http://www.iers.org/products/6/11769/orig/bulletina-xxi-052.txt
161
161
  def ut1_utc
162
162
  # TODO Get more accurate measurement of this value from usno
163
- ENV.has_key?('UT1_UTC') ?
164
- ENV['UT1_UTC'].to_f : -0.2221 - 0.00092 * (amjd - 54399) - ut2_ut1
163
+ d = ENV.has_key?('UT1_UTC') ?
164
+ ENV['UT1_UTC'].to_f : 0.3987 - 0.00094 * (amjd - 54832) - ut2_ut1
165
+ d -= 1 if amjd < 54832 # 2009/01/01 (hack for leap second)
166
+ d
165
167
  end
166
168
 
167
169
  # A +DateTime+ object corresponding to the same time as +self+, but
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miriad
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.10
4
+ version: 4.1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David MacMahon
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-16 00:00:00 -07:00
12
+ date: 2008-12-30 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: narray
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  requirements: []
87
88
 
88
89
  rubyforge_project: miriad
89
- rubygems_version: 1.1.1
90
+ rubygems_version: 1.3.1
90
91
  signing_key:
91
92
  specification_version: 2
92
93
  summary: Ruby interface to MIRIAD