scissor 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/scissor/tape.rb +1 -1
  3. data/lib/scissor.rb +1 -1
  4. metadata +74 -98
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ DESCRIPTION = "utility to chop sound files"
18
18
  RUBYFORGE_PROJECT = "scissor"
19
19
  HOMEPATH = "http://github.com/youpy/scissor"
20
20
  BIN_FILES = %w( )
21
- VERS = "0.2.3"
21
+ VERS = "0.2.4"
22
22
 
23
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
24
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
data/lib/scissor/tape.rb CHANGED
@@ -193,7 +193,7 @@ module Scissor
193
193
  end
194
194
 
195
195
  def stretch(factor)
196
- factor_for_pitch = ((100 / factor.to_f) * 100).to_i
196
+ factor_for_pitch = 1 / (factor.to_f / 100) * 100
197
197
  pitch(factor_for_pitch, true)
198
198
  end
199
199
 
data/lib/scissor.rb CHANGED
@@ -6,7 +6,7 @@ require 'scissor/sequence'
6
6
  require 'scissor/writer'
7
7
 
8
8
  def Scissor(filename_or_url = nil)
9
- if filename_or_url && filename_or_url =~ /^http/
9
+ if filename_or_url && filename_or_url.to_s =~ /^http/
10
10
  Scissor::Tape.new_from_url(filename_or_url)
11
11
  else
12
12
  Scissor::Tape.new(filename_or_url)
metadata CHANGED
@@ -1,108 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: scissor
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 3
9
- version: 0.2.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - youpy
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-12-02 00:00:00 +09:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: open4
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: &70095431035380 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - <=
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 1
20
+ - !ruby/object:Gem::Version
31
21
  version: 1.0.1
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: ruby-mp3info
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
24
+ version_requirements: *70095431035380
25
+ - !ruby/object:Gem::Dependency
26
+ name: ruby-mp3info
27
+ requirement: &70095431034520 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
44
33
  type: :runtime
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: riff
48
34
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
50
- requirements:
35
+ version_requirements: *70095431034520
36
+ - !ruby/object:Gem::Dependency
37
+ name: riff
38
+ requirement: &70095431033220 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
51
41
  - - <=
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- - 3
56
- - 0
42
+ - !ruby/object:Gem::Version
57
43
  version: 0.3.0
58
44
  type: :runtime
59
- version_requirements: *id003
60
- - !ruby/object:Gem::Dependency
61
- name: tempdir
62
45
  prerelease: false
63
- requirement: &id004 !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
46
+ version_requirements: *70095431033220
47
+ - !ruby/object:Gem::Dependency
48
+ name: tempdir
49
+ requirement: &70095431032300 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
70
55
  type: :runtime
71
- version_requirements: *id004
72
- - !ruby/object:Gem::Dependency
73
- name: streamio-ffmpeg
74
56
  prerelease: false
75
- requirement: &id005 !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- version: "0"
57
+ version_requirements: *70095431032300
58
+ - !ruby/object:Gem::Dependency
59
+ name: streamio-ffmpeg
60
+ requirement: &70095431031440 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
82
66
  type: :runtime
83
- version_requirements: *id005
84
- - !ruby/object:Gem::Dependency
85
- name: fakeweb
86
67
  prerelease: false
87
- requirement: &id006 !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
- version: "0"
68
+ version_requirements: *70095431031440
69
+ - !ruby/object:Gem::Dependency
70
+ name: fakeweb
71
+ requirement: &70095431030540 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
94
77
  type: :development
95
- version_requirements: *id006
78
+ prerelease: false
79
+ version_requirements: *70095431030540
96
80
  description: utility to chop sound files
97
81
  email: youpy@buycheapviagraonlinenow.com
98
82
  executables: []
99
-
100
83
  extensions: []
101
-
102
- extra_rdoc_files:
84
+ extra_rdoc_files:
103
85
  - README.rdoc
104
86
  - ChangeLog
105
- files:
87
+ files:
106
88
  - README.rdoc
107
89
  - ChangeLog
108
90
  - Rakefile
@@ -114,12 +96,10 @@ files:
114
96
  - lib/scissor/writer.rb
115
97
  - lib/scissor.rb
116
98
  - data/silence.mp3
117
- has_rdoc: true
118
99
  homepage: http://github.com/youpy/scissor
119
100
  licenses: []
120
-
121
101
  post_install_message:
122
- rdoc_options:
102
+ rdoc_options:
123
103
  - --title
124
104
  - scissor documentation
125
105
  - --charset
@@ -132,28 +112,24 @@ rdoc_options:
132
112
  - --inline-source
133
113
  - --exclude
134
114
  - ^(examples|extras)/
135
- require_paths:
115
+ require_paths:
136
116
  - lib
137
- required_ruby_version: !ruby/object:Gem::Requirement
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- segments:
142
- - 0
143
- version: "0"
144
- required_rubygems_version: !ruby/object:Gem::Requirement
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- segments:
149
- - 0
150
- version: "0"
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
151
129
  requirements: []
152
-
153
130
  rubyforge_project: scissor
154
- rubygems_version: 1.3.6
131
+ rubygems_version: 1.8.10
155
132
  signing_key:
156
133
  specification_version: 3
157
134
  summary: utility to chop sound files
158
135
  test_files: []
159
-