movie-renamer 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/movie-renamer.rb +7 -0
  2. metadata +43 -47
data/lib/movie-renamer.rb CHANGED
@@ -43,6 +43,13 @@ module Imdb
43
43
  end
44
44
  end
45
45
 
46
+ class Movie
47
+ def director
48
+ document.at("h4[text()='Director:'] ~ a").innerHTML.strip.imdb_unescape_html rescue nil
49
+ document.search("h4[text()^='Director'] ~ a").map { |link| link.innerHTML.strip.imdb_unescape_html } rescue []
50
+ end
51
+ end
52
+
46
53
  end
47
54
 
48
55
  module MovieRenamer
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movie-renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ hash: 59
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 18
10
+ version: 0.0.18
5
11
  platform: ruby
6
12
  authors:
7
13
  - ghedamat
@@ -9,69 +15,51 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-09-08 00:00:00 +02:00
18
+ date: 2010-10-07 00:00:00 +02:00
13
19
  default_executable: movie-renamer
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: imdb
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: highline
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: htmlentities
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
40
26
  requirements:
41
27
  - - ">="
42
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
43
32
  version: "0"
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: imdb
47
33
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
34
+ version_requirements: *id001
55
35
  - !ruby/object:Gem::Dependency
56
36
  name: highline
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
60
40
  requirements:
61
41
  - - ">="
62
42
  - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
63
46
  version: "0"
64
- version:
47
+ type: :runtime
48
+ version_requirements: *id002
65
49
  - !ruby/object:Gem::Dependency
66
50
  name: htmlentities
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
70
54
  requirements:
71
55
  - - ">="
72
56
  - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
73
60
  version: "0"
74
- version:
61
+ type: :runtime
62
+ version_requirements: *id003
75
63
  description: rename movies in a folder
76
64
  email: thamayor@gmail.com
77
65
  executables:
@@ -90,29 +78,37 @@ files:
90
78
  - README.rdoc
91
79
  has_rdoc: true
92
80
  homepage: http://github.com/ghedamat/movie-renamer
81
+ licenses: []
82
+
93
83
  post_install_message:
94
84
  rdoc_options:
95
85
  - --charset=UTF-8
96
86
  require_paths:
97
87
  - lib
98
88
  required_ruby_version: !ruby/object:Gem::Requirement
89
+ none: false
99
90
  requirements:
100
91
  - - ">="
101
92
  - !ruby/object:Gem::Version
93
+ hash: 3
94
+ segments:
95
+ - 0
102
96
  version: "0"
103
- version:
104
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
105
99
  requirements:
106
100
  - - ">="
107
101
  - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
108
105
  version: "0"
109
- version:
110
106
  requirements: []
111
107
 
112
108
  rubyforge_project:
113
- rubygems_version: 1.3.1
109
+ rubygems_version: 1.3.7
114
110
  signing_key:
115
- specification_version: 2
111
+ specification_version: 3
116
112
  summary: rename movies in a folder asking questions
117
113
  test_files:
118
114
  - test/helper.rb