movie-garnish 0.0.3 → 0.0.4

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: ae84f7b9c38bfe3799bb7dc14d2ec10438f54a41
4
- data.tar.gz: ec6c974bbe9fd28daf9b37de2ce46c9e2656590d
3
+ metadata.gz: 157bb227504f2c69c3c54e3c6aff883be9754147
4
+ data.tar.gz: a84bf7e852e9164749b91ebbd430b93f8b0f63aa
5
5
  SHA512:
6
- metadata.gz: e2b06dc29bdc2c419bc13b94ad17ed95e01f60c38b1ea2a2a8b7c5a8381109de8c917aa62e76729632845eeda7c031924ee8d9081b1a21e26b46e4f497ad546e
7
- data.tar.gz: 7af0028d754fcff81e112c5a4e9b043ec08838674af223ad71070f7fd942b45d89090f663829bcd0df6f94f3a471be6e951e4fa54531c7f28f55599742463abf
6
+ metadata.gz: 434b0e0e4de621f2aed35926aa83f20ead3dd8249a658bf58f2afe7f71d89570df68736c19fadc44a90c53457a5916270b89fbb763afbc1c02ce489fec1967d2
7
+ data.tar.gz: 32a1d74bc66dc51890f246280027c544f839b0e7f8628c6a719f1642689c2c221a4f10ab1e05821396ab9e74199d3360d2cfcd306af2f97aae80b59814309d30
data/bin/mg-cli CHANGED
@@ -6,8 +6,10 @@ require 'imdb'
6
6
  class MGCLI < Thor
7
7
  desc "imdb", "Encodes video with attributes from imdb."
8
8
  method_option :video, :type => :string, :required => true
9
+ method_option :overwrite, :type => :boolean, :required => false, :default =>true
9
10
  method_option :title, :type => :string, :required => false
10
11
  def imdb
12
+ overwrite = options[:overwrite]
11
13
  search_term = options[:title]
12
14
  search_term ||= File.basename(options[:video], ".*")
13
15
 
@@ -29,11 +31,11 @@ class MGCLI < Thor
29
31
 
30
32
  media.encode do |config|
31
33
  config.title movie.title
32
- #config.year DateTime.parse(movie.release_date).year
33
34
  config.genre movie.genres.first
34
35
  config.artist movie.cast_members.join(", ")
35
36
  config.description movie.plot
36
37
  config.artwork img_name
38
+ config.overwrite overwrite
37
39
  end
38
40
 
39
41
  end
@@ -1,3 +1,3 @@
1
1
  module MovieGarnish
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movie-garnish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cparratto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-07 00:00:00.000000000 Z
11
+ date: 2014-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
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: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: imdb
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
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: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: atomic-parsley-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
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: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.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: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
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: '0'
97
97
  description: Auto tags movies with imdb meta data.
@@ -102,7 +102,7 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - .gitignore
105
+ - ".gitignore"
106
106
  - Gemfile
107
107
  - LICENSE.txt
108
108
  - MV5BMTQwMDU4MDI3MV5BMl5BanBnXkFtZTcwMjU1NDgyOQ@@.jpg
@@ -122,17 +122,17 @@ require_paths:
122
122
  - lib
123
123
  required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>='
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.0.3
135
+ rubygems_version: 2.2.2
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Combines the atomic-parsley-ruby api with the ruby imdb api