sharp_office_bruce 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ module SharpOffice
8
8
  include Singleton
9
9
 
10
10
  def start(path, options)
11
+ @options = options
11
12
  @path = File.expand_path(path)
12
13
 
13
14
  system_or_exit(convert_to_pdf) unless options[:ignore_pdf]
@@ -39,7 +40,7 @@ module SharpOffice
39
40
  end
40
41
 
41
42
  def pdf_path
42
- if options[:ignore_pdf]
43
+ if @options[:ignore_pdf]
43
44
  return @path if @path.end_with?('pdf')
44
45
  end
45
46
  @path.gsub('.', '-').to_s+'.pdf'
@@ -47,12 +48,12 @@ module SharpOffice
47
48
  end
48
49
 
49
50
  def cover_path
50
- return '' if options[:ignore_cover]
51
+ return '' if @options[:ignore_cover]
51
52
  @path.gsub('.', '-').to_s+'.png'
52
53
  end
53
54
 
54
55
  def swf_path
55
- return '' if options[:ignore_swf]
56
+ return '' if @options[:ignore_swf]
56
57
  @path.gsub('.', '-').to_s+'.swf'
57
58
  end
58
59
 
@@ -1,3 +1,3 @@
1
1
  module SharpOffice
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - heimirror