musical 1.0.6 → 1.0.7

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: f9b007dd469e2f958a0c2e10dc5931c43dcaefd5
4
- data.tar.gz: c3263e9715cc23ab9ffdd1686aeb65cde4ae6ace
3
+ metadata.gz: 89bb391ec8e23fe96b84e3bc29220c5fb6a3ea5d
4
+ data.tar.gz: b3c27da7910143752a0c1bbf9b81c9cec63859ff
5
5
  SHA512:
6
- metadata.gz: 28c18e2ffa499c5e557587b3f7cdc29978a409dcc1f9f17ef342b1ff47cf8da38ee7b1afd4ae24728798f89d3fe212c4493fc2e759212b3c377de89a853cb65e
7
- data.tar.gz: 9474284be0662321461d16b1aa4161fb0528080ca8268680f435576a98a203a3de37dd26f80f63fac33eb4f64145de8b832c6fcb1e84e7424c17c349355d54f9
6
+ metadata.gz: 0dfd35e8d0a8a93aa89d4844500a9b3515748d6cbad8c767150b95b797e7fdc70271b517d37ead44456e8d4e49db130ec0673880d32fe917f6dcdf601d91c51c
7
+ data.tar.gz: d86f2437c8dff823d3f27990511a632e8f70ffc2220f49f8ab5c638b5c89ca032e0b9abd67c4c279c9e0092cc952e8c2a2313f40890c0f1b01c4ae61021faec1
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.2.0
@@ -1,5 +1,7 @@
1
1
  language: ruby
2
+ before_install:
3
+ - gem update bundler
2
4
  rvm:
3
- - 2.1.0
4
- - 2.0.0
5
- - 1.9.3
5
+ - 2.2
6
+ - 2.1
7
+ - 2.0
data/Guardfile CHANGED
@@ -1,24 +1,8 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
 
4
- guard 'rspec' do
4
+ guard 'rspec', cmd: 'bundle exec rspec' do
5
5
  watch(%r{^spec/.+_spec\.rb$})
6
6
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
7
  watch('spec/spec_helper.rb') { "spec" }
8
-
9
- # Rails example
10
- watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11
- watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12
- watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14
- watch('config/routes.rb') { "spec/routing" }
15
- watch('app/controllers/application_controller.rb') { "spec/controllers" }
16
-
17
- # Capybara features specs
18
- watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19
-
20
- # Turnip features and steps
21
- watch(%r{^spec/acceptance/(.+)\.feature$})
22
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23
8
  end
24
-
data/README.md CHANGED
@@ -49,13 +49,15 @@ They will help you to manage your music library easily.
49
49
 
50
50
 
51
51
  ## Supported OS
52
- - OSX 10.9 (Mavericks)
53
- - OSX 10.8 (Mountain Lion)
52
+ - OSX El Capitan
53
+ - OSX Yosemite
54
+ - OSX Mavericks
55
+
54
56
 
55
57
  ## Supported Ruby
56
- - 2.1.0
57
- - 2.0.0
58
- - 1.9.3
58
+ - 2.2
59
+ - 2.1
60
+ - 2.0
59
61
 
60
62
 
61
63
  ## License
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Musical
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
@@ -18,17 +18,16 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake", "~> 10.0.3"
23
- spec.add_development_dependency "rspec", "~> 2.14.0"
24
- spec.add_development_dependency "rb-fsevent", "~> 0.3"
25
- spec.add_development_dependency "guard", "~> 1.6.2"
26
- spec.add_development_dependency "guard-rspec", "~> 2.4.1"
21
+ spec.add_development_dependency "rake", "~> 10.3.2"
22
+ spec.add_development_dependency "rspec", "~> 3.0.0"
23
+ spec.add_development_dependency "rb-fsevent", "~> 0.9.4"
24
+ spec.add_development_dependency "guard", "~> 2.6.1"
25
+ spec.add_development_dependency "guard-rspec", "~> 4.3.1"
27
26
  spec.add_development_dependency "growl", "~> 1.0.3"
28
- spec.add_development_dependency "fakefs", "~> 0.4.2"
29
- spec.add_development_dependency "simplecov", "~> 0.7.1"
30
- spec.add_development_dependency "coveralls", "~> 0.6.6"
31
- spec.add_runtime_dependency "ruby-progressbar", ">= 1.2.0"
27
+ spec.add_development_dependency "fakefs", "~> 0.5.3"
28
+ spec.add_development_dependency "simplecov", "~> 0.9.0"
29
+ spec.add_development_dependency "coveralls", "~> 0.7.1"
30
+ spec.add_runtime_dependency "ruby-progressbar", ">= 1.5.1"
32
31
  spec.add_runtime_dependency "trollop", ">= 2.0"
33
- spec.add_runtime_dependency "itunes-client", "~> 0.1.7"
32
+ spec.add_runtime_dependency "itunes-client", "~> 0.2.0"
34
33
  end
@@ -32,7 +32,7 @@ describe Musical::DVD::Chapter do
32
32
  let(:wav_path) { '/tmp/foo.wav' }
33
33
 
34
34
  before do
35
- chapter.should_receive(:execute_command).
35
+ expect(chapter).to receive(:execute_command).
36
36
  with("ffmpeg -i #{vob_path} -ac 2 #{wav_path}", true).
37
37
  and_return(FileUtils.touch(wav_path))
38
38
  end
@@ -11,7 +11,7 @@ describe DVD do
11
11
 
12
12
  context 'when DVD drive is not found' do
13
13
  before do
14
- DVD.should_receive(:execute_command).with(drutil).and_return('')
14
+ expect(DVD).to receive(:execute_command).with(drutil).and_return('')
15
15
  end
16
16
 
17
17
  it 'raises a RuntimeError' do
@@ -28,7 +28,7 @@ MATSHITA DVD-R UJ-85J FM0S
28
28
  Type: No Media Inserted
29
29
  EOM
30
30
  end
31
- before { DVD.should_receive(:execute_command).with(drutil).and_return(drutil_out) }
31
+ before { expect(DVD).to receive(:execute_command).with(drutil).and_return(drutil_out) }
32
32
 
33
33
  it 'raises a RuntimeError' do
34
34
  expect { detect }.to raise_error(RuntimeError)
@@ -51,10 +51,10 @@ EOM
51
51
  EOM
52
52
  end
53
53
  before do
54
- DVD.should_receive(:execute_command).with(drutil).and_return(drutil_out)
54
+ expect(DVD).to receive(:execute_command).with(drutil).and_return(drutil_out)
55
55
  end
56
56
 
57
- it { should == '/dev/disk3' }
57
+ it { is_expected.to eq('/dev/disk3') }
58
58
  end
59
59
  end
60
60
 
@@ -76,7 +76,7 @@ EOM
76
76
 
77
77
  describe '.load' do
78
78
  before { DVD.path = nil }
79
- before { DVD.any_instance.should_receive(:info).and_return('info data') }
79
+ before { expect_any_instance_of(DVD).to receive(:info).and_return('info data') }
80
80
 
81
81
  context 'when options are not given' do
82
82
  subject { DVD.load }
@@ -84,14 +84,14 @@ EOM
84
84
  context 'and if path is set' do
85
85
  before { DVD.path = '/dev/some/path' }
86
86
  it 'does not call DVD.detect' do
87
- DVD.should_not_receive(:detect)
87
+ expect(DVD).not_to receive(:detect)
88
88
  subject
89
89
  end
90
90
  end
91
91
 
92
92
  context 'and if DVD path is not set' do
93
93
  it 'sets path by DVD.detect' do
94
- DVD.should_receive(:detect).and_return('/dev/some/path')
94
+ expect(DVD).to receive(:detect).and_return('/dev/some/path')
95
95
  subject
96
96
  expect(DVD.path).to eq('/dev/some/path')
97
97
  end
@@ -119,7 +119,7 @@ EOM
119
119
  before { DVD.path = '/dev/some/path' }
120
120
 
121
121
  it 'calls DVD.detect forcibly even if path is already set' do
122
- DVD.should_receive(:detect).and_return('/dev/some/path')
122
+ expect(DVD).to receive(:detect).and_return('/dev/some/path')
123
123
  subject
124
124
  end
125
125
  end
@@ -127,7 +127,7 @@ EOM
127
127
 
128
128
  context 'when block is given' do
129
129
  subject { DVD.load { |dvd| dvd.artist = 'some artist' } }
130
- before { DVD.should_receive(:detect).and_return('/dev/path') }
130
+ before { expect(DVD).to receive(:detect).and_return('/dev/path') }
131
131
  it 'calls proc object' do
132
132
  subject
133
133
  expect(DVD.instance.artist).to eq('some artist')
@@ -150,7 +150,7 @@ EOM
150
150
  before { DVD.path = '/dev/path' }
151
151
  let(:info_data) { 'dvd data' }
152
152
  it 'returns DVD disk data' do
153
- dvd.should_receive(:execute_command).with("dvdbackup --info --input='/dev/path'", true).and_return(info_data)
153
+ expect(dvd).to receive(:execute_command).with("dvdbackup --info --input='/dev/path'", true).and_return(info_data)
154
154
  expect(subject).to eq(info_data)
155
155
  end
156
156
  end
@@ -176,7 +176,7 @@ EOM
176
176
  end
177
177
  let(:dvd) { DVD.instance }
178
178
 
179
- before { dvd.should_receive(:info).and_return(info) }
179
+ before { expect(dvd).to receive(:info).and_return(info) }
180
180
 
181
181
  it 'returns each pair of title and chapter data' do
182
182
  expect(subject).to be_an Array
@@ -205,10 +205,10 @@ EOM
205
205
  let(:vob_path) { '/tmp/working/foo.vob' }
206
206
 
207
207
  def stub_methods
208
- Musical.should_receive(:configuration).at_least(1).times.and_return(configuration)
209
- dvd.should_receive(:title_sets).at_least(1).and_return(title_sets)
210
- dvd.should_receive(:execute_command).at_least(1).with(/dvdbackup (.)*/, true) { FileUtils.touch(vob_path) }
211
- dvd.should_receive(:execute_command).at_least(1).with(/find (.)*/).and_return("#{vob_path}\n")
208
+ expect(Musical).to receive(:configuration).at_least(1).times.and_return(configuration)
209
+ expect(dvd).to receive(:title_sets).at_least(1).and_return(title_sets)
210
+ expect(dvd).to receive(:execute_command).at_least(1).with(/dvdbackup (.)*/, true) { FileUtils.touch(vob_path) }
211
+ expect(dvd).to receive(:execute_command).at_least(1).with(/find (.)*/).and_return("#{vob_path}\n")
212
212
  end
213
213
 
214
214
  before do
@@ -7,7 +7,7 @@ describe Musical::Notification::ProgressBar do
7
7
  subject!(:progress_bar) { described_class.create(total: 3, format: '') }
8
8
 
9
9
  it 'returns unfinished ProgressBar' do
10
- expect(progress_bar.finished?).to be_false
10
+ expect(progress_bar.finished?).to be_falsey
11
11
  end
12
12
  end
13
13
  end
@@ -5,21 +5,21 @@ require 'musical'
5
5
  describe Musical do
6
6
  describe '#setup', fakefs: true do
7
7
  subject(:setup) { Musical.setup }
8
- before { Musical.should_receive(:check_env).and_return(true) }
8
+ before { expect(Musical).to receive(:check_env).and_return(true) }
9
9
 
10
10
  context 'when argument `info` is given' do
11
11
  before { stub_const('ARGV', ['--info']) }
12
- it { expect(setup.info).to be_true }
12
+ it { expect(setup.info).to be_truthy }
13
13
  end
14
14
 
15
15
  context 'when argument `ignore-convert-sound` is given' do
16
16
  before { stub_const('ARGV', ['--ignore-convert-sound']) }
17
- it { expect(setup.ignore_convert_sound).to be_true }
17
+ it { expect(setup.ignore_convert_sound).to be_truthy }
18
18
  end
19
19
 
20
20
  context 'when argument `ignore-use-itunes` is given' do
21
21
  before { stub_const('ARGV', ['--ignore-use-itunes']) }
22
- it { expect(setup.ignore_use_itunes).to be_true }
22
+ it { expect(setup.ignore_use_itunes).to be_truthy }
23
23
  end
24
24
 
25
25
  context 'when argument `path` is given' do
@@ -8,7 +8,7 @@ require 'coveralls'
8
8
  Bundler.setup(:default, :development)
9
9
 
10
10
  RSpec.configure do |config|
11
- config.color_enabled = true
11
+ config.color = true
12
12
  config.tty = true
13
13
  #config.formatter = :documentation
14
14
  config.include FakeFS::SpecHelpers, fakefs: true
@@ -13,7 +13,7 @@ describe Musical::Util do
13
13
 
14
14
  context 'when app is not installed' do
15
15
  before do
16
- klass.should_receive(:installed?).and_return(false)
16
+ expect(klass).to receive(:installed?).and_return(false)
17
17
  end
18
18
 
19
19
  it 'raises a RuntimeError' do
@@ -23,10 +23,10 @@ describe Musical::Util do
23
23
 
24
24
  context 'when app is installed' do
25
25
  before do
26
- klass.should_receive(:installed?).twice.and_return(true)
26
+ expect(klass).to receive(:installed?).twice.and_return(true)
27
27
  end
28
28
 
29
- it { should be_true }
29
+ it { is_expected.to be_truthy }
30
30
  end
31
31
  end
32
32
 
@@ -36,16 +36,16 @@ describe Musical::Util do
36
36
 
37
37
  context 'when app is not installed' do
38
38
  before do
39
- klass.should_receive(:execute_command).with("which #{app}").and_return('')
39
+ expect(klass).to receive(:execute_command).with("which #{app}").and_return('')
40
40
  end
41
- it { should be_false }
41
+ it { is_expected.to be_falsey }
42
42
  end
43
43
 
44
44
  context 'when spp is installed' do
45
45
  before do
46
- klass.should_receive(:execute_command).with("which #{app}").and_return('/path/to/app')
46
+ expect(klass).to receive(:execute_command).with("which #{app}").and_return('/path/to/app')
47
47
  end
48
- it { should be_true }
48
+ it { is_expected.to be_truthy }
49
49
  end
50
50
  end
51
51
 
@@ -55,13 +55,13 @@ describe Musical::Util do
55
55
 
56
56
  context 'when silent options is not given' do
57
57
  subject { klass.execute_command(cmd) }
58
- before { Open3.should_receive(:capture2).with(cmd).and_return(path) }
58
+ before { expect(Open3).to receive(:capture2).with(cmd).and_return(path) }
59
59
  it { expect(subject).to eq(path) }
60
60
  end
61
61
 
62
62
  context 'when silent option is given' do
63
63
  subject { klass.execute_command(cmd, true) }
64
- before { Open3.should_receive(:capture2).with("#{cmd} 2>/dev/null").and_return(path) }
64
+ before { expect(Open3).to receive(:capture2).with("#{cmd} 2>/dev/null").and_return(path) }
65
65
  it { expect(subject).to eq(path) }
66
66
  end
67
67
  end
metadata CHANGED
@@ -1,99 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musical
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryo katsuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-06 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.3'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 10.0.3
19
+ version: 10.3.2
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 10.0.3
26
+ version: 10.3.2
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: 2.14.0
33
+ version: 3.0.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: 2.14.0
40
+ version: 3.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rb-fsevent
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0.3'
47
+ version: 0.9.4
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0.3'
54
+ version: 0.9.4
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: guard
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 1.6.2
61
+ version: 2.6.1
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 1.6.2
68
+ version: 2.6.1
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: guard-rspec
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 2.4.1
75
+ version: 4.3.1
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 2.4.1
82
+ version: 4.3.1
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: growl
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,56 +100,56 @@ dependencies:
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 0.4.2
103
+ version: 0.5.3
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 0.4.2
110
+ version: 0.5.3
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: simplecov
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 0.7.1
117
+ version: 0.9.0
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: 0.7.1
124
+ version: 0.9.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: coveralls
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 0.6.6
131
+ version: 0.7.1
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 0.6.6
138
+ version: 0.7.1
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: ruby-progressbar
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - ">="
158
144
  - !ruby/object:Gem::Version
159
- version: 1.2.0
145
+ version: 1.5.1
160
146
  type: :runtime
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - ">="
165
151
  - !ruby/object:Gem::Version
166
- version: 1.2.0
152
+ version: 1.5.1
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: trollop
169
155
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +170,14 @@ dependencies:
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 0.1.7
173
+ version: 0.2.0
188
174
  type: :runtime
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: 0.1.7
180
+ version: 0.2.0
195
181
  description: musical is a simple tool for your favorite DVD. You can rip vob file
196
182
  by DVD chapter, convert it to wav file and add it to your iTunes library.
197
183
  email:
@@ -250,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
236
  version: '0'
251
237
  requirements: []
252
238
  rubyforge_project:
253
- rubygems_version: 2.2.0
239
+ rubygems_version: 2.4.5
254
240
  signing_key:
255
241
  specification_version: 4
256
242
  summary: A simple rip, encode and iTunes library tool for your favorite DVD