eph_jcg 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b4e4f51f6d5b519bf2c078ee23b9cf2dbb69df
4
- data.tar.gz: 31a7e336da57f59f4052474d0eb4b09d34d7f2a4
3
+ metadata.gz: a214b533e7f0649aac502afeff00d1cf75007005
4
+ data.tar.gz: 34f544eb989e2190d939af9e1afb7bcd08a13231
5
5
  SHA512:
6
- metadata.gz: 3bc4a837e1ab52e96c8d14d267fe602cb1277a6340b76ead0f339fca1f7ff87d55b2e85831d1ce451940c12b04f3f19dfb973309ccb0378fc21b8c73aed9c4aa
7
- data.tar.gz: fa128870f145d6b0f3c01f16017e5b03f08d8fc8dab1d4d381263a1d8be28a5d54b1e6e7f0593c125d30e3d32b12068215c6b0e8e58322e465eb81520e4e7ec5
6
+ metadata.gz: 900ac0a02822b8d089f071f80b68946d8d585c7627cd1dccd44978d5b316d46db53e38af02831781df48015b16694f47ba03077a9bffded8aa1cfd7e820f6ada
7
+ data.tar.gz: ea85c4e817c1191e71bee2c7b4111c7a4ba847a072daca44614a1a6e462eada07e3049ac6a9bbd5c14dc3f54e1abff4d653685015904d1ec2b2797909507b02c
@@ -317,8 +317,8 @@ module EphJcg
317
317
  def calc_theta(a, b, t)
318
318
  b = t if b < t # 年末のΔT秒分も計算可能とするための応急処置
319
319
  theta = (2 * t - (a + b)) / (b - a).to_f
320
- while theta > 1.0; theta -= 1.0; end
321
- while theta < -1.0; theta += 1.0; end
320
+ theta = 1.0 if theta > 1.0
321
+ theta = -1.0 if theta < -1.0
322
322
  return Math.acos(theta) * 180 / PI
323
323
  end
324
324
 
@@ -1,3 +1,3 @@
1
1
  module EphJcg
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eph_jcg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru