audio_monster 1.0.3 → 1.0.4

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: 90c980e642765f4c35134473c0d92b09fec4c0f2
4
- data.tar.gz: a0b3238eced6fb26cfde4a0175be05202b4ac8c5
3
+ metadata.gz: 428303db73f915f27ee5b0e5745c99d6a699698f
4
+ data.tar.gz: 38457bd9544506d1ea4abb8eba1de6672b8ff1e6
5
5
  SHA512:
6
- metadata.gz: 14c77f7f830adc36820eae515ef2770196254c6521b71672d489b7ec72654d284f54877f44ab03dcee55a7324f321968497c1fd0617780f9da72ab10fe919024
7
- data.tar.gz: 68c00653509a3e9b65fbab46336338a24bfc9afdec1998c73068bc71ee59e236519f6c228cc9619a3fd67272d4abc3516d773fa39905fb7502328896fa5bba75
6
+ metadata.gz: bad7c349554fee6b58a65b48a70373295352318e49526ad1283cd3cdd40b2a5bf7cf1ce8d6820666eb0baba810c2a80a750f1d55b9d4f1afc0df92b1606a4e68
7
+ data.tar.gz: 90b56ca93811c4f120845faa375ebdee77f30be7f46a064065c76b3de41e472f7769464015636dd7d34f7c8d8a6d6cd9eb6cd429a46ed571f518d115505b2f82
data/.gitignore CHANGED
@@ -11,4 +11,5 @@
11
11
  *.so
12
12
  *.o
13
13
  *.a
14
- /test/tmp/
14
+ /test/tmp/
15
+ .ruby-version
@@ -44,10 +44,11 @@ module AudioMonster
44
44
  info = {}
45
45
  lines.each do |i|
46
46
  if i.length == 1 && i[0].length > 0
47
- group = i[0].downcase.gsub(' ', '_')
47
+ group = i[0].downcase.gsub(' ', '_').to_sym
48
48
  info[group] ||= {}
49
49
  elsif i.length == 2
50
- info[group][i[0].downcase.gsub(' ', '_')] = i[1].to_f
50
+ key = i[0].downcase.gsub(' ', '_').to_sym
51
+ info[group][key] = i[1].to_f
51
52
  end
52
53
  end
53
54
  info
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module AudioMonster
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
data/test/monster_test.rb CHANGED
@@ -10,11 +10,11 @@ describe AudioMonster::Monster do
10
10
 
11
11
  it 'measures loudness' do
12
12
  info = monster.loudness_info(in_file('test_long.wav'))
13
- ['integrated_loudness', 'loudness_range', 'true_peak'].
13
+ [:integrated_loudness, :loudness_range, :true_peak].
14
14
  each { |t| info[t].wont_be_nil }
15
- info['integrated_loudness']['i'].must_equal -18.5
16
- info['loudness_range']['lra'].must_equal 7.1
17
- info['true_peak']['peak'].must_equal -2.1
15
+ info[:integrated_loudness][:i].must_equal -18.5
16
+ info[:loudness_range][:lra].must_equal 7.1
17
+ info[:true_peak][:peak].must_equal -2.1
18
18
  end
19
19
 
20
20
  it 'can create an mp2 from a wav file' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_monster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kuklewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nu_wav
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.2.2
175
+ rubygems_version: 2.4.5
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: audio_monster manipulates and transcodes audio