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 +4 -4
- data/.gitignore +2 -1
- data/lib/audio_monster/monster.rb +3 -2
- data/lib/audio_monster/version.rb +1 -1
- data/test/monster_test.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 428303db73f915f27ee5b0e5745c99d6a699698f
|
4
|
+
data.tar.gz: 38457bd9544506d1ea4abb8eba1de6672b8ff1e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad7c349554fee6b58a65b48a70373295352318e49526ad1283cd3cdd40b2a5bf7cf1ce8d6820666eb0baba810c2a80a750f1d55b9d4f1afc0df92b1606a4e68
|
7
|
+
data.tar.gz: 90b56ca93811c4f120845faa375ebdee77f30be7f46a064065c76b3de41e472f7769464015636dd7d34f7c8d8a6d6cd9eb6cd429a46ed571f518d115505b2f82
|
data/.gitignore
CHANGED
@@ -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
|
-
|
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
|
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
|
-
[
|
13
|
+
[:integrated_loudness, :loudness_range, :true_peak].
|
14
14
|
each { |t| info[t].wont_be_nil }
|
15
|
-
info[
|
16
|
-
info[
|
17
|
-
info[
|
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.
|
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-
|
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.
|
175
|
+
rubygems_version: 2.4.5
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: audio_monster manipulates and transcodes audio
|