json-waveform 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: ae6fa8b7dd587bc93aabb07369419ac3970c2163
4
- data.tar.gz: 3e758570a3a7f1fdf82d0709d1bdc4052db233e1
3
+ metadata.gz: 83938d351b35d92ff6e575264f09bb78a1f88371
4
+ data.tar.gz: fbc56a07a8090835f63b6839c515f32619e7b9e2
5
5
  SHA512:
6
- metadata.gz: 1d8e7ba690cd2d0de0cf0302b198b9435a709db9aacb63dba4d5fd92f85e0f6d4e08ed32d869f3d57c8e7caa535cc01d18c231777dcee2f922562b72b344d1d4
7
- data.tar.gz: 2215729a95823336761941d162967a961e244a5a5cb983f1ce057af2e42adaee863e6b9e0dca3518d81de9fc895e7e7b14f9a726e87084210e3e30becbac5346
6
+ metadata.gz: f2c02e06ce94bf75b535a48954da2fb4ebe578e5db27c709d2e00b50985fec37470a6fc93541c7310b2bd31e0fd322802053c2ede0cc719c11a7375fa494836f
7
+ data.tar.gz: 33257f3fa1b08ae0c7e271c6c14a24c3321a4e5ff97e92eabe83b07761eaccbcb550c8069c6fff10e5898b0c3065911a6ec533150391b278f722e5b4ec571b6d
@@ -7,11 +7,11 @@ optparse = OptionParser.new do |o|
7
7
  o.banner = "Usage: json-waveform [options] source_audio"
8
8
  o.version = JsonWaveform::VERSION
9
9
 
10
- o.on("-s", "--samples SAMPLES", "Samples generated from the original file (i.e.: waveform width) -- Default #{JsonWaveform::DefaultOptions[:samples]}.") do |samples|
10
+ o.on("-s", "--samples SAMPLES", "Samples generated from the original file (i.e.: waveform width) -- Default #{JsonWaveform::DEFAULT_OPTIONS[:samples]}.") do |samples|
11
11
  options[:samples] = samples.to_i
12
12
  end
13
13
 
14
- o.on("-A", "--amplitude AMPLITUDE", "Max amplitude of the waveform values-- Default #{JsonWaveform::DefaultOptions[:amplitude]}.") do |amplitude|
14
+ o.on("-A", "--amplitude AMPLITUDE", "Max amplitude of the waveform values-- Default #{JsonWaveform::DEFAULT_OPTIONS[:amplitude]}.") do |amplitude|
15
15
  options[:amplitude] = amplitude.to_i
16
16
  end
17
17
 
@@ -19,7 +19,7 @@ optparse = OptionParser.new do |o|
19
19
  options[:auto_sample] = msec.to_i
20
20
  end
21
21
 
22
- o.on("-m", "--method METHOD", "Wave analyzation method (can be 'peak' or 'rms') -- Default '#{JsonWaveform::DefaultOptions[:method]}'.") do |method|
22
+ o.on("-m", "--method METHOD", "Wave analyzation method (can be 'peak' or 'rms') -- Default '#{JsonWaveform::DEFAULT_OPTIONS[:method]}'.") do |method|
23
23
  options[:method] = method.to_sym
24
24
  end
25
25
 
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.executables << "json-waveform"
23
23
 
24
- s.add_dependency "ruby-audio"
24
+ s.add_dependency "ruby-audio", "~> 1.6.0"
25
25
  end
@@ -1,3 +1,3 @@
1
1
  class JsonWaveform
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-waveform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban Pastorino
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: ruby-audio
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.6.0
27
27
  description: Generate waveform JSON information from audio files, compatible with
28
28
  http://waveformjs.org/.
29
29
  email: