flac2mp3 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flac2mp3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yossef Mendelssohn
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-21 00:00:00 -05:00
12
+ date: 2008-07-29 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -63,7 +63,6 @@ files:
63
63
  - config/hoe.rb
64
64
  - config/requirements.rb
65
65
  - lib/flac2mp3.rb
66
- - lib/flac2mp3/string_extensions.rb
67
66
  - lib/flac2mp3/version.rb
68
67
  - log/debug.log
69
68
  - script/destroy
@@ -73,7 +72,6 @@ files:
73
72
  - spec/flac2mp3_spec.rb
74
73
  - spec/spec.opts
75
74
  - spec/spec_helper.rb
76
- - spec/string_extensions_spec.rb
77
75
  - tasks/deployment.rake
78
76
  - tasks/environment.rake
79
77
  - tasks/rspec.rake
@@ -1,7 +0,0 @@
1
- module Flac2mp3
2
- module StringExtensions
3
- def safequote
4
- gsub(/(\W)/, '\\\\\1')
5
- end
6
- end
7
- end
@@ -1,29 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
2
-
3
- describe String, 'in general' do
4
- it 'should not safequote' do
5
- String.new.should_not respond_to(:safequote)
6
- end
7
- end
8
-
9
- describe String, 'extended with string extensions' do
10
- it 'should safequote' do
11
- str = String.new
12
- str.extend(Flac2mp3::StringExtensions)
13
- str.should respond_to(:safequote)
14
- end
15
- end
16
-
17
- describe String, 'safequoting' do
18
- it 'should leave alphanumeric characters alone' do
19
- str = 'abc_123'
20
- str.extend(Flac2mp3::StringExtensions)
21
- str.safequote.should == 'abc_123'
22
- end
23
-
24
- it 'should escape non-alphanumeric characters' do
25
- str = %q[a-b"c 12'3]
26
- str.extend(Flac2mp3::StringExtensions)
27
- str.safequote.should == %q[a\-b\"c\ 12\'3]
28
- end
29
- end