pulse-analysis 0.0.1 → 0.0.2

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: 13321ee37a8c9ee41fe615fae126c0a3b2837bda
4
- data.tar.gz: 1b6a15cdb0924fb4bd09d64d5f8b6d2a25673455
3
+ metadata.gz: 2096207caf47213e3ff1269eb285e3faf91a789a
4
+ data.tar.gz: ba8476091f123079a2ceaf66804797e1f881aa14
5
5
  SHA512:
6
- metadata.gz: c2a9b965a5210d0629915f5dbffe0aedc6bbb1e5afe4ac6f3d622a78fc3c233ea137f7a4725b8d0b97d2793284c03d74c502a4cab2cfa0027d21ff3f7771cc54
7
- data.tar.gz: 8f2195c44bc4b2f8445a9f5d771977b224c95802e57372286dc57f8093ee24eb3d46e05ecd58b425e1c157fd5703bb5ba414231255f628f0c328ce4ce26515a4
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
@@ -22,7 +22,7 @@ require "pulse-analysis/sound"
22
22
 
23
23
  module PulseAnalysis
24
24
 
25
- VERSION = "0.0.1"
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake