audio_waveform-ruby 1.0.4 → 1.0.6

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
- SHA1:
3
- metadata.gz: c42331eb9e75d969a07dbe02224d4ecfa8a2143c
4
- data.tar.gz: a57ddd46a467686aae7a2ec28738a6ba29913cd1
2
+ SHA256:
3
+ metadata.gz: '06987df0c40edf308eb9767c2efd9e0a6d8464718fd2b8e1491209b742096bbb'
4
+ data.tar.gz: b3aca0aae4da3fbe1e510258000721ee30e34d070431cff7db578e2e6e75c70a
5
5
  SHA512:
6
- metadata.gz: 3d93571e124298290b8fe0c323ce38373272e61b7b8cdf65bfc49cec72dbb34880eab25ee3fd21a8f3d75d4a4376d8213c327c6edbe62c5d0bbc1c646c9c2296
7
- data.tar.gz: 8aeddc0db40d06a511ca5cd5dd94cd2b720bdf5419490ef05803a676d02c70d926afe31b707aad5f494aa368b7c55a26f5a373178918f53b346b20b848b7c325
6
+ metadata.gz: 81b34f1f01193dcb0acf0434423077df588e21d22e14ce985145f9c674885d70181032135d309fe17df0230b05a5a9e10a6bb0117d227872be92ab2f1d96e04e
7
+ data.tar.gz: 6ed34220d907be74781e11d527167a618dbf25ad583ad99ce3d337f122e5bee67b2a0396c1ee0cbfd1db651a48fb42307d379d8a9224f9b1f61e31bb5f8f1d7e
@@ -1,10 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.10
5
- - 2.2.9
6
- - 2.3.6
7
- - 2.4.3
3
+ - 2.3.8
4
+ - 2.4.9
5
+ - 2.5.7
6
+ - 2.6.5
8
7
 
9
8
  before_install:
10
9
  - gem install bundler
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- audio_waveform-ruby (1.0.4)
4
+ audio_waveform-ruby (1.0.6)
5
5
  json (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -30,7 +30,7 @@ GEM
30
30
  json (>= 1.8, < 3)
31
31
  simplecov-html (~> 0.10.0)
32
32
  simplecov-html (0.10.2)
33
- yard (0.9.12)
33
+ yard (0.9.20)
34
34
 
35
35
  PLATFORMS
36
36
  ruby
@@ -44,4 +44,4 @@ DEPENDENCIES
44
44
  yard (~> 0.9.11)
45
45
 
46
46
  BUNDLED WITH
47
- 1.16.0
47
+ 1.17.3
data/README.md CHANGED
@@ -111,4 +111,4 @@ This software was written by [Chris Needham](https://github.com/chrisn), chris.n
111
111
 
112
112
  ## Copyright
113
113
 
114
- Copyright 2017 British Broadcasting Corporation
114
+ Copyright 2019 British Broadcasting Corporation
@@ -2,5 +2,5 @@ module AudioWaveform
2
2
 
3
3
  # AudioWaveform gem version.
4
4
  #
5
- VERSION = "1.0.4"
5
+ VERSION = "1.0.6"
6
6
  end
@@ -2,7 +2,13 @@ require 'spec_helper'
2
2
 
3
3
  require 'digest'
4
4
  require 'tempfile'
5
- require 'tmpdir'
5
+
6
+ def get_temp_filename(prefix)
7
+ temp_file = Tempfile.new(prefix)
8
+ path = temp_file.path
9
+ temp_file.unlink
10
+ path
11
+ end
6
12
 
7
13
  describe AudioWaveform::WaveformDataFile do
8
14
  context "with valid 8-bit data file" do
@@ -31,7 +37,7 @@ describe AudioWaveform::WaveformDataFile do
31
37
 
32
38
  describe "save_as_binary" do
33
39
  let(:temp_filename) {
34
- File.join(Dir.tmpdir, Dir::Tmpname.make_tmpname("waveform", 1))
40
+ get_temp_filename('waveform')
35
41
  }
36
42
 
37
43
  after do
@@ -74,7 +80,7 @@ describe AudioWaveform::WaveformDataFile do
74
80
 
75
81
  describe "save_as_json" do
76
82
  let(:temp_filename) {
77
- File.join(Dir.tmpdir, Dir::Tmpname.make_tmpname("waveform", 1))
83
+ get_temp_filename('waveform')
78
84
  }
79
85
 
80
86
  after do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_waveform-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Needham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-21 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -143,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.6.8
146
+ rubygems_version: 3.0.6
148
147
  signing_key:
149
148
  specification_version: 4
150
149
  summary: Reads, writes, and rescales audio waveform data files