kgl 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a79f55cfe832aa5201063e4889e123bf901f6c32b3f2614b73570785d0a622a4
4
- data.tar.gz: 04d4cd0f6c9aeb34c8c121ade5d35a0877749c96894f3525deabc8817eb14c94
3
+ metadata.gz: 30e20e48ed60a45026814266fff22b53f7f53462aad625ec3768ec13195c0d34
4
+ data.tar.gz: 80731aa26aa804db73782c513985602f00164ffcbfcdde3a0755a7eb094faca8
5
5
  SHA512:
6
- metadata.gz: d7ae7d157744d0cbb6fb68c2012d78c30a377047981b5ceb6b080533b15144a13fa359d39c5a954f2a805e77c9f223554badd056db1cdcc734abeb30f0a605c9
7
- data.tar.gz: 78760ddeee6dd993e5707b46072550f023dceb661f430072f7976db205a555ebe0c3edbd1f4e24c0bd881a1ad9cdd841db59d32cd730bcf002b1e5304edac9f7
6
+ metadata.gz: 736af74321aad6d1d1bbd46ee8a752af68209fbba3eab2caacaff80148b22754fd98dc69e92a4600bff7bfc4981ff25684a4b43fa8bcb04695b3a4324a84c6b2
7
+ data.tar.gz: acea80d6781b37203bf2739a827795635003b1c016d421b29c3df0d5451ac12c09a206240b774c17d75773d4c1f22a3583ca92dbcf63a4cb7d3e268b97be5946
data/CHANGELOG.md CHANGED
@@ -2,3 +2,6 @@
2
2
 
3
3
  ## 0.0.1 2019/08/31
4
4
  - First release.
5
+
6
+ ## 0.0.2 2020/04/23
7
+ - Change default value of the Integer#to_msm's argument to 59.94.
data/README.md CHANGED
@@ -22,13 +22,13 @@ An alias of original `Math.#log`. It returns the natural logarithm of `anti_loga
22
22
  ### `Math.#log(base, anti_logarithm=base.tap{base=Math::E})`
23
23
  Returns the logarithm of `anti_logarithm` to base `base`.
24
24
 
25
- ### `Math.#lg(anti_logarithm)
25
+ ### `Math.#lg(anti_logarithm)`
26
26
  Returns the logarithm of `anti_logarithm` to base 2.
27
27
 
28
28
  ### `Float#to_r`, `String#to_r`
29
29
  Returns `Rational` value of `self`.
30
30
 
31
- ### `Integer#to_msm(fps=60)`
31
+ ### `Integer#to_msm(fps=59.94)`
32
32
  Returns `"[minutes]:[seconds].[milliseconds]"` which corresponds to `self` frames.
33
33
  The submilliseconds will be rounded. `fps` is frames per second.
34
34
 
data/lib/kgl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kgl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/kgl.rb CHANGED
@@ -3,7 +3,7 @@ require "kgl/suu"
3
3
  require "kgl/kmath"
4
4
 
5
5
  class Integer
6
- def to_msm(fps=60)
6
+ def to_msm(fps=59.94)
7
7
  s, f = divmod(fps)
8
8
  ms = (f*1000).quo(fps).round
9
9
  m, s = s.divmod(60)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kgl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - KAZOON
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-30 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.0.6
99
+ rubygems_version: 3.1.2
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A gem for personal use.