html_email_creator 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,13 +13,11 @@ program :description, HtmlEmailCreator::DESCRIPTION
13
13
  command :create do |c|
14
14
  c.syntax = 'html_email_creator create <email or directory>'
15
15
  c.description = 'Creates a single email or all emails from the directory'
16
- c.option '--recursive', 'If creating directory, find from sub directories too.'
16
+ c.option '--norecursive', 'If creating directory, don\'t look into sub directories.'
17
17
  c.action do |args, options|
18
18
  # TODO implement me
19
- recursive = options.recursive ? true : false
20
- full_path = File.expand_path(args.first)
21
- # run in this directory
22
- Dir.chdir(File.dirname(full_path))
19
+ recursive = options.norecursive ? false : true
20
+ full_path = File.expand_path(args.first, Dir.pwd)
23
21
  results = HtmlEmailCreator::EmailCreator.new.save_emails(full_path, recursive)
24
22
  say "Creation completed!\n\n"
25
23
  results.each_pair do |file, format|
@@ -1,3 +1,3 @@
1
1
  module HtmlEmailCreator
2
- VERSION = "1.0.0" unless defined?(::HtmlEmailCreator::VERSION)
2
+ VERSION = "1.0.1" unless defined?(::HtmlEmailCreator::VERSION)
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pekka Mattila