musical 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 378b27ab3089eed1a4a51d4639c2ff78dc119643
4
- data.tar.gz: ce72f42da6904205207bfb5a91665c0e4f34c92f
3
+ metadata.gz: e43fc024b34d7ef7ab6ad199b1e04a0df1ecdd7a
4
+ data.tar.gz: 861125020b4e6837c92ea2dff8ee98c9f17b4b69
5
5
  SHA512:
6
- metadata.gz: 83a09271c9eb2c78cf16399d2b6dce680fe0c970fa140ce202448c32b8bcc2cfecf3fc5f4317a4289bbe74e9ef071173ab316e25426229c1a659dea6c8609cf6
7
- data.tar.gz: e996832bcccd44afb3ef5286890c563b64b7510d953b3b4d558904f1518944bf06d75f30f7861a943b66e8f1a5aab669f73fdd5148c83871dbedbbfb7f616749
6
+ metadata.gz: 9baf1be7278ac7bfe993cc29fe539c26b7e51010e67f991fd31db7c08feebe5089c7557d3eff6fab11617e117f4ada794620bb8e6a66c3205556db9f3f1f5902
7
+ data.tar.gz: 643cc8ea19c0afea3252c5c00f5f816e593b95c6c3dd62b0257d1a716de3ded84482e8651fb733e396a29b2873dc838d659d5c0d45fea93026ca66862a935cea
data/README.md CHANGED
@@ -34,7 +34,7 @@ Options:
34
34
  --info, -i: Show your DVD data
35
35
  --ignore-convert-sound, -g: Rip data only, NOT convert them to wav file
36
36
  --ignore-use-itunes, -n: NOT add ripped files to iTunes and encode them
37
- --dev, -d <s>: Set location of DVD device
37
+ --path, -p <s>: Set device path of DVD
38
38
  --title, -t <s>: Set DVD title (default: LIVE)
39
39
  --artist, -a <s>: Set DVD artist (default: Artist)
40
40
  --output, -o <s>: Set location of ripped data (default: ripped)
@@ -11,6 +11,7 @@ require 'musical/version'
11
11
  require 'musical/dvd'
12
12
  require 'musical/dvd/chapter'
13
13
  require 'musical/dvd/wav'
14
+ require 'musical/notification/progress_bar'
14
15
 
15
16
  module Musical
16
17
  extend Musical::Util
@@ -29,7 +30,7 @@ module Musical
29
30
 
30
31
  # parse options
31
32
  options = Trollop::options do
32
- version "Musical #{Musical::VERSION}"
33
+ version "musical #{Musical::VERSION}"
33
34
  opt :info, "Show your DVD data", type: :boolean
34
35
  opt :ignore_convert_sound, "Rip data only, NOT convert them to wav file", type: :boolean
35
36
  opt :ignore_use_itunes, "NOT add ripped files to iTunes and encode them", type: :boolean
@@ -85,7 +85,7 @@ module Musical
85
85
  FileUtils.mkdir_p save_dir
86
86
 
87
87
  chapter_size = title_sets.inject(0){ |size, set| size + set[:chapter] }
88
- progress_bar = ProgressBar.create(title: 'Ripping', total: chapter_size, format: '%a %B %p%% %t')
88
+ progress_bar = Notification::ProgressBar.create(title: 'Ripping', total: chapter_size, format: '%a %B %p%% %t')
89
89
  chapters = []
90
90
 
91
91
  title_sets.each do |title_set|
@@ -0,0 +1,18 @@
1
+ # coding: utf-8
2
+ module Musical
3
+ module Notification
4
+ class ProgressBar < ::ProgressBar
5
+ def self.create(options = {})
6
+ progress_bar = super
7
+
8
+ Thread.new do
9
+ while !progress_bar.finished?
10
+ progress_bar.refresh
11
+ end
12
+ end
13
+ progress_bar
14
+ end
15
+
16
+ end
17
+ end
18
+ end
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Musical
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Musical::VERSION
9
9
  spec.authors = ["ryo katsuma"]
10
10
  spec.email = ["katsuma@gmail.com"]
11
- spec.description = %q{Musical is a simple tool for your favorite music DVD. You can rip vob file by DVD chapter, convert it to wav file and add it to your iTunes library.}
12
- spec.summary = %q{A simple rip, encode and iTunes library tool for your favorite music DVD}
11
+ spec.description = %q{musical is a simple tool for your favorite DVD. You can rip vob file by DVD chapter, convert it to wav file and add it to your iTunes library.}
12
+ spec.summary = %q{A simple rip, encode and iTunes library tool for your favorite DVD}
13
13
  spec.homepage = "http://github.com/katsuma/musical"
14
14
  spec.license = "MIT"
15
15
 
@@ -0,0 +1,13 @@
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+ require 'musical'
4
+
5
+ describe Musical::Notification::ProgressBar do
6
+ describe '.create' do
7
+ subject!(:progress_bar) { described_class.create(total: 3, format: '') }
8
+
9
+ it 'returns unfinished ProgressBar' do
10
+ expect(progress_bar.finished?).to be_false
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musical
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryo katsuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-08 00:00:00.000000000 Z
11
+ date: 2013-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -192,8 +192,8 @@ dependencies:
192
192
  - - ~>
193
193
  - !ruby/object:Gem::Version
194
194
  version: 0.1.2
195
- description: Musical is a simple tool for your favorite music DVD. You can rip vob
196
- file by DVD chapter, convert it to wav file and add it to your iTunes library.
195
+ description: musical is a simple tool for your favorite DVD. You can rip vob file
196
+ by DVD chapter, convert it to wav file and add it to your iTunes library.
197
197
  email:
198
198
  - katsuma@gmail.com
199
199
  executables:
@@ -218,6 +218,7 @@ files:
218
218
  - lib/musical/dvd.rb
219
219
  - lib/musical/dvd/chapter.rb
220
220
  - lib/musical/dvd/wav.rb
221
+ - lib/musical/notification/progress_bar.rb
221
222
  - lib/musical/util.rb
222
223
  - lib/musical/version.rb
223
224
  - musical.gemspec
@@ -225,6 +226,7 @@ files:
225
226
  - spec/musical/dvd/chapter_spec.rb
226
227
  - spec/musical/dvd/wav_spec.rb
227
228
  - spec/musical/dvd_spec.rb
229
+ - spec/musical/notification/progress_bar_spec.rb
228
230
  - spec/musical_spec.rb
229
231
  - spec/spec_helper.rb
230
232
  - spec/util_spec.rb
@@ -251,12 +253,13 @@ rubyforge_project:
251
253
  rubygems_version: 2.0.3
252
254
  signing_key:
253
255
  specification_version: 4
254
- summary: A simple rip, encode and iTunes library tool for your favorite music DVD
256
+ summary: A simple rip, encode and iTunes library tool for your favorite DVD
255
257
  test_files:
256
258
  - spec/musical/configuration_spec.rb
257
259
  - spec/musical/dvd/chapter_spec.rb
258
260
  - spec/musical/dvd/wav_spec.rb
259
261
  - spec/musical/dvd_spec.rb
262
+ - spec/musical/notification/progress_bar_spec.rb
260
263
  - spec/musical_spec.rb
261
264
  - spec/spec_helper.rb
262
265
  - spec/util_spec.rb