mk_sunmoon 0.1.2 → 0.1.3

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: 712def1dc7bb74b6e2e4b679726ba56fcffc1d1a
4
- data.tar.gz: acc68ffa5f24534fd3e6903ca9d3fbbd3794f730
3
+ metadata.gz: 0f8614283bc4f3deb6a03010ee5f8e225ceafdd8
4
+ data.tar.gz: 4face184424aea5f3f1033910e80e50da6b7ab10
5
5
  SHA512:
6
- metadata.gz: d77610522d299fc58d61ba65a5fc0c33c332b84b3e582267b78977a24ca1a3bbf2f7f6521cb09458cb8120647e33c47d1383f72dd53e32763a03d35943a4debe
7
- data.tar.gz: e43d9662120d775da3a8af37cf1004c775d40aaa7408c7ec01aa596767de00471c915aba32c7c3948e1ae480b6f29b87530aa27af164c13cea45e351e7839f09
6
+ metadata.gz: e6fbc4d572e974fdae79154fa2bbc2028429d4f0e72c801c83a48ccc866f70630f0ba1e31d2c72088a987b4764b2f04e84adc217e05b4a3e01dbd3408013e457
7
+ data.tar.gz: 459525e6c851430ff19289e8a0e059bc3051839111db77be187990965717f7a95e924971fad554987e992500f2ae19d7a6669b791090e5d3e8678ff0c9dff47b
@@ -636,6 +636,14 @@ module MkSunmoon
636
636
  val_m = (val_2 * 60).truncate # (分)計算
637
637
  val_3 = val_2 - (val_m / 60.0) # (秒)計算
638
638
  val_s = (val_3 * 60 * 60).round
639
+ if val_s == 60
640
+ val_s = 0
641
+ val_m +=1
642
+ end
643
+ if val_m == 60
644
+ val_m = 0
645
+ val_h += 1
646
+ end
639
647
  return sprintf("%02d:%02d:%02d", val_h, val_m, val_s)
640
648
  end
641
649
 
@@ -1,3 +1,3 @@
1
1
  module MkSunmoon
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mk_sunmoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.6.4
101
+ rubygems_version: 2.6.6
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Sunrise, Sunset, Moonrise, Moonset library.