myimdb 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/myimdb-catalogue +6 -2
  3. data/myimdb.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -42,8 +42,12 @@ OptionParser.new do |opts|
42
42
  options[:images] = true
43
43
  end
44
44
 
45
+ opts.on("-r", "--recursive", "Generate data on all the directories given in current directory") do
46
+ options[:recursive] = true
47
+ end
48
+
45
49
  if Platform.windows?
46
- opts.on("-r", "--rebuild-permissions", "Rebuilds permissions (useful if the icons have been changed manually)") do
50
+ opts.on("-p", "--rebuild-permissions", "Rebuilds permissions (useful if the icons have been changed manually)") do
47
51
  options[:'rebuild-permissions'] = true
48
52
  end
49
53
  end
@@ -65,7 +69,7 @@ if ARGV.empty?
65
69
  abort "Source directory required - exiting"
66
70
  end
67
71
 
68
- file_paths = Dir["#{ARGV[0]}/*"]
72
+ file_paths = options[:recursive] ? Dir["#{ARGV[0]}/*"] : Dir[ARGV[0]]
69
73
 
70
74
 
71
75
  # helper methods
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{myimdb}
8
- s.version = "0.3.6"
8
+ s.version = "0.3.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gaurav"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myimdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaurav