musical 1.0.4 → 1.0.5

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: 8c0e3eed1e21640f605dd3be2378d305bb487389
4
- data.tar.gz: 28c05bdec7551b0181b4de684428ab0b9c6bdd96
3
+ metadata.gz: ae616ac404796fcc5659d6fee021e9a32b155eb6
4
+ data.tar.gz: ff6d42c448226758d772f799ea60148e961ec719
5
5
  SHA512:
6
- metadata.gz: f9c74c2cc5c4f260ee84f4ae57b0cddf6d925f90fa6eba470787bcd28d09afa41646bd147b32d6aec6b6381b064dee765451d59065076202517be20852bb94a2
7
- data.tar.gz: 36d9d57a9501d8f491175c3aaaecc85d71e70baddd059a1179e6aa0d2375b9a8e48518616b66300a4784b922fff1064b66790a5fb98ea67b1f04b70284fffee0
6
+ metadata.gz: cf63d3350a61f75f03347ac82815339165cbe59566fe18bf16a81719523a26bf27e9b5b68b33ba691f826f75c03448b7947f0bcd63cc68fe05b383365c83f44b
7
+ data.tar.gz: 57dafb62f9164231155ff73d5ffa7fe2b29b5ad244393521c17a3a8feb157e9979ca46cebeeaa4d734417ccf2b2d3ef959a66d03af9bd8494bc05db45311e0d9
@@ -1 +1 @@
1
- 2.0.0-p247
1
+ 2.1.0
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.0
3
4
  - 2.0.0
4
5
  - 1.9.3
data/README.md CHANGED
@@ -37,12 +37,13 @@ Options:
37
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
+ --year, -y <i>: Set year DVD was recorded (default: 2013)
40
41
  --output, -o <s>: Set location of ripped data (default: ripped)
41
42
  --version, -v: Print version and exit
42
43
  --help, -h: Show this message
43
44
  ```
44
45
 
45
- When you use iTunes, you should use `--title` and `--artist` options.
46
+ When you use iTunes, you should use `--title`, `--artist` and `--year` options.
46
47
 
47
48
  They will help you to manage your music library easily.
48
49
 
@@ -29,24 +29,29 @@ DVD.load(dvd_options) do |dvd|
29
29
 
30
30
  chapters.each do |chapter|
31
31
  wav = chapter.to_wav
32
- next if Musical.configuration.ignore_use_itunes
33
-
34
- track = Itunes::Player.add(wav.expand_path)
35
32
 
36
- converted_track = track.convert
37
- converted_track.update_attributes(
38
- name: chapter.name,
39
- album: dvd.title,
40
- artist: dvd.artist,
41
- year: dvd.year,
42
- track_count: chapters.size,
43
- track_number: chapter.chapter_number,
44
- )
45
-
46
- wav.delete!
47
- track.delete!
33
+ next if Musical.configuration.ignore_use_itunes
48
34
 
49
- converting_progress_bar.increment
35
+ begin
36
+ track = Itunes::Player.add(wav.expand_path)
37
+
38
+ converted_track = track.convert
39
+ converted_track.update_attributes(
40
+ name: chapter.name,
41
+ album: dvd.title,
42
+ artist: dvd.artist,
43
+ year: dvd.year,
44
+ track_count: chapters.size,
45
+ track_number: chapter.chapter_number,
46
+ )
47
+ wav.delete!
48
+ track.delete!
49
+
50
+ rescue Itunes::Player::FileNotFoundError, Itunes::Player::EmptyFileError
51
+ # We can ignore these errors.
52
+ ensure
53
+ converting_progress_bar.increment
54
+ end
50
55
  end
51
56
  end
52
57
 
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Musical
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "coveralls", "~> 0.6.6"
31
31
  spec.add_runtime_dependency "ruby-progressbar", ">= 1.2.0"
32
32
  spec.add_runtime_dependency "trollop", ">= 2.0"
33
- spec.add_runtime_dependency "itunes-client", "~> 0.1.4"
33
+ spec.add_runtime_dependency "itunes-client", "~> 0.1.7"
34
34
  end
metadata CHANGED
@@ -1,197 +1,197 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musical
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
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-11-04 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.0.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.0.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.14.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.14.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rb-fsevent
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.6.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.4.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.4.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: growl
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.0.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.0.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: fakefs
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.4.2
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.4.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.7.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.7.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: coveralls
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.6.6
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.6.6
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: ruby-progressbar
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: 1.2.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: 1.2.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: trollop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '2.0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '2.0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: itunes-client
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.1.4
187
+ version: 0.1.7
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.1.4
194
+ version: 0.1.7
195
195
  description: musical is a simple tool for your favorite DVD. You can rip vob file
196
196
  by DVD chapter, convert it to wav file and add it to your iTunes library.
197
197
  email:
@@ -201,12 +201,12 @@ executables:
201
201
  extensions: []
202
202
  extra_rdoc_files: []
203
203
  files:
204
- - .coveralls.yml
205
- - .document
206
- - .gitignore
207
- - .rspec
208
- - .ruby-version
209
- - .travis.yml
204
+ - ".coveralls.yml"
205
+ - ".document"
206
+ - ".gitignore"
207
+ - ".rspec"
208
+ - ".ruby-version"
209
+ - ".travis.yml"
210
210
  - Gemfile
211
211
  - Guardfile
212
212
  - LICENSE.txt
@@ -240,17 +240,17 @@ require_paths:
240
240
  - lib
241
241
  required_ruby_version: !ruby/object:Gem::Requirement
242
242
  requirements:
243
- - - '>='
243
+ - - ">="
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - '>='
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.0.3
253
+ rubygems_version: 2.2.0
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: A simple rip, encode and iTunes library tool for your favorite DVD