Created
July 25, 2008 21:10
-
-
Save ymendel/2525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'class' branch: (refactoring to make Flac2mp3 a class, use instance behavior, &c) | |
53 bin/flac2mp3 | |
151 lib/flac2mp3.rb | |
94 spec/flac2mp3_command_spec.rb | |
746 spec/flac2mp3_spec.rb | |
Total score = 145.244414937566 | |
Flac2mp3#convert_tags: (32.3) | |
20.9: assignment | |
10.4: branch | |
6.6: [] | |
2.6: to_sym | |
2.3: tag_mapping | |
2.3: tag_formats | |
2.3: tag2_fields | |
2.2: gsub | |
2.1: include? | |
1.9: each | |
Flac2mp3#get_flacdata: (26.6) | |
13.2: assignment | |
5.8: branch | |
3.5: to_s | |
2.6: inject | |
1.9: class | |
1.7: string_fields | |
1.7: downcase | |
1.7: new | |
1.6: respond_to? | |
1.6: to_i | |
1.6: match | |
1.5: to_sym | |
1.5: include? | |
1.5: tags | |
Flac2mp3#set_mp3data: (23.6) | |
9.6: send | |
7.5: assignment | |
4.0: branch | |
3.6: [] | |
1.8: class | |
1.6: convert_tags | |
1.4: each | |
1.4: raise | |
1.3: is_a? | |
1.3: open | |
Flac2mp3#convert: (11.2) | |
2.6: branch | |
2.1: new | |
1.9: convert | |
1.9: assignment | |
1.4: delete | |
1.4: raise | |
1.3: process_conversion | |
1.3: file? | |
1.3: delete? | |
Flac2mp3#encoding: (6.1) | |
1.6: class | |
1.6: options | |
1.4: default_encoding | |
1.4: [] | |
1.3: branch | |
Flac2mp3#none: (6.0) | |
6.0: sclass | |
Flac2mp3#mp3_command: (5.6) | |
1.4: << | |
1.3: assignment | |
1.3: silent? | |
1.3: encoding | |
1.3: branch | |
1.3: safequote | |
main#none: (4.6) | |
2.2: require | |
1.3: dirname | |
1.1: unshift | |
Flac2mp3#flac_command: (4.4) | |
1.4: << | |
1.3: assignment | |
1.3: silent? | |
1.3: branch | |
1.3: safequote | |
Flac2mp3#convert_data: (4.3) | |
1.5: flac_command | |
1.5: mp3_command | |
1.3: system | |
Flac2mp3#process_conversion: (4.1) | |
1.3: convert_metadata | |
1.3: assignment | |
1.3: output_filename | |
1.3: convert_data | |
Flac2mp3#delete?: (2.8) | |
1.5: options | |
1.3: [] | |
Flac2mp3#output_filename: (2.8) | |
1.5: chomp | |
1.3: + | |
Flac2mp3#silent?: (2.8) | |
1.5: options | |
1.3: [] | |
Flac2mp3#convert_metadata: (2.8) | |
1.5: get_flacdata | |
1.3: set_mp3data | |
Flac2mp3#initialize: (2.6) | |
2.6: assignment | |
Flac2mp3#options: (1.3) | |
1.3: dup | |
Flac2mp3#safequote: (1.3) | |
1.3: gsub | |
master: (pre-refactoring, version 0.2.8) | |
53 bin/flac2mp3 | |
113 lib/flac2mp3.rb | |
94 spec/flac2mp3_command_spec.rb | |
459 spec/flac2mp3_spec.rb | |
Total score = 160.816488733541 | |
Flac2mp3#convert: (48.7) | |
15.1: assignment | |
9.4: [] | |
9.1: branch | |
7.2: extend | |
4.0: safequote | |
2.2: to_s | |
2.0: << | |
2.0: strip | |
2.0: flacdata | |
1.9: default_encoding | |
1.9: delete | |
1.9: each | |
1.9: raise | |
1.8: output_filename | |
1.8: mp3data | |
1.8: system | |
1.8: file? | |
1.8: empty? | |
Flac2mp3#flacdata: (33.9) | |
19.5: assignment | |
7.8: branch | |
4.5: to_s | |
3.6: inject | |
2.2: downcase | |
2.2: string_fields | |
2.1: to_i | |
2.1: respond_to? | |
2.1: match | |
2.0: include? | |
2.0: to_sym | |
2.0: tags | |
1.8: new | |
Flac2mp3#convert_tags: (30.8) | |
19.9: assignment | |
9.9: branch | |
6.3: [] | |
2.5: to_sym | |
2.2: tag_mapping | |
2.2: tag_formats | |
2.2: tag2_fields | |
2.1: gsub | |
2.0: include? | |
1.8: each | |
Flac2mp3#mp3data: (29.0) | |
12.6: send | |
10.0: assignment | |
5.5: branch | |
4.6: [] | |
2.1: convert_tags | |
1.9: each | |
1.9: raise | |
1.8: is_a? | |
1.8: open | |
Flac2mp3#none: (8.9) | |
5.5: sclass | |
3.4: private | |
main#none: (5.7) | |
3.3: require | |
1.3: dirname | |
1.1: unshift | |
Flac2mp3#output_filename: (3.8) | |
2.0: chomp | |
1.8: + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment