pulse-analysis 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 +4 -4
- data/lib/pulse-analysis/conversion.rb +1 -1
- data/lib/pulse-analysis.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2096207caf47213e3ff1269eb285e3faf91a789a
|
4
|
+
data.tar.gz: ba8476091f123079a2ceaf66804797e1f881aa14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a34470268195debecad448f598950504333451dd49f8da0db220690199db2a05986b7eef8ddedf0d7ab8cf7ff5f273f2ada47a91ec196421cb1bb6ea74e14af
|
7
|
+
data.tar.gz: c27d19ef642453bba21843abd6368a870e302fa4e5165b29cf9930a6019bfdb776287b4ca184252358d69518b7dfd091aef35189d48aa72077ee6d4e524dd1b9
|
@@ -21,7 +21,7 @@ module PulseAnalysis
|
|
21
21
|
def num_samples_to_formatted_time(sample_rate, num_samples)
|
22
22
|
min, sec = *num_samples_to_seconds(sample_rate, num_samples).divmod(60)
|
23
23
|
# convert seconds to int if it has no decimal value
|
24
|
-
if sec.to_i % sec == 0
|
24
|
+
if !sec == 0 && sec.to_i % sec == 0
|
25
25
|
sec = sec.to_i
|
26
26
|
end
|
27
27
|
# only include minutes if there is a value
|
data/lib/pulse-analysis.rb
CHANGED
@@ -22,7 +22,7 @@ require "pulse-analysis/sound"
|
|
22
22
|
|
23
23
|
module PulseAnalysis
|
24
24
|
|
25
|
-
VERSION = "0.0.
|
25
|
+
VERSION = "0.0.2"
|
26
26
|
|
27
27
|
# Analyze the given audio file with the given options and generate a report
|
28
28
|
# @param [::File, String] file_or_path File or path to audio file to run analysis on
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulse-analysis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|