youpy-scissor 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/scissor.rb +9 -3
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ DESCRIPTION = "utility to chop mp3 files"
17
17
  RUBYFORGE_PROJECT = "scissor"
18
18
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
19
  BIN_FILES = %w( )
20
- VERS = "0.0.4"
20
+ VERS = "0.0.5"
21
21
 
22
22
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
23
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
data/lib/scissor.rb CHANGED
@@ -70,7 +70,7 @@ class Scissor
70
70
  (raise CommandNotFound.new(command + ' not found'))
71
71
  end
72
72
 
73
- def +(other)
73
+ def concat(other)
74
74
  other.fragments.each do |fragment|
75
75
  add_fragment(fragment)
76
76
  end
@@ -78,7 +78,9 @@ class Scissor
78
78
  self
79
79
  end
80
80
 
81
- def *(count)
81
+ alias + concat
82
+
83
+ def loop(count)
82
84
  orig_fragments = @fragments.clone
83
85
 
84
86
  (count - 1).times do
@@ -90,7 +92,9 @@ class Scissor
90
92
  self
91
93
  end
92
94
 
93
- def /(count)
95
+ alias * loop
96
+
97
+ def split(count)
94
98
  splitted_duration = duration / count.to_f
95
99
  results = []
96
100
 
@@ -101,6 +105,8 @@ class Scissor
101
105
  results
102
106
  end
103
107
 
108
+ alias / split
109
+
104
110
  def to_file(filename, options = {})
105
111
  if @fragments.empty?
106
112
  raise EmptyFragment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youpy-scissor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - youpy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-31 00:00:00 -07:00
12
+ date: 2009-04-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency