canvas_exporting 0.0.1 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87c0ec1e5a813f6c937e22ed3bb51cf1f25297c3
4
- data.tar.gz: c53831121a9dd9ae28e2aa156ad83ebdf81b7311
3
+ metadata.gz: b38fac7f2c28df5b99e5343bd8c8bc8162caad44
4
+ data.tar.gz: 7c995d80dc80924432fbe90276de2668631c775f
5
5
  SHA512:
6
- metadata.gz: 7b23a241c14c8754f7d9fcf461fb7e2428396a42e5d6972f125759541993fb8030eb2578b3f9a78ec881c3833518a658c4d431b4896b741ef6323595fa2cab89
7
- data.tar.gz: dcd0e8a762d7bfe781a061b564c400bc3b7e305566c64e3b922613ca3134743c2fa8a1de259c97cff074339fe948500dedff304ade93b888e7b84911c5d71921
6
+ metadata.gz: e39d4ac6ee367d8114898400725b855d484a2ad754d5512fc3a8a8e79c0a2eff4a781bfe823eac95fae34c0db07c299b2e655e28ddb3ef3be64cae5f3fc7eaf5
7
+ data.tar.gz: 9adf5d7149a4133e0167d1aaaf46dfc0e9abcd754d5b610565da5d36e3da5d515eb51a12ffa7ce7ac1afca4d3762d17dc3df7bdffec0bef49507455963a2322a
@@ -61,15 +61,19 @@ module CanvasExporting
61
61
  end
62
62
 
63
63
  def infile_file
64
- tmp_file = nil
65
- if params[:options]
66
- tmp_file = Tempfile.new(['options', '.json'], tmp_dir)
67
- temp_write(tmp_file, params[:options])
68
- elsif params[:svg]
69
- tmp_file = Tempfile.new(['options', '.svg'], tmp_dir)
70
- temp_write(tmp_file, params[:svg])
64
+ begin
65
+ tmp_file = nil
66
+ if params[:options]
67
+ tmp_file = Tempfile.new(['options', '.json'], tmp_dir)
68
+ temp_write(tmp_file, params[:options])
69
+ elsif params[:svg]
70
+ tmp_file = Tempfile.new(['options', '.svg'], tmp_dir)
71
+ temp_write(tmp_file, params[:svg])
72
+ end
73
+ rescue e
74
+ logger.debug ("infile_file in exporter.rb. Exception: #{e}")
75
+ raise e
71
76
  end
72
-
73
77
  tmp_file
74
78
  end
75
79
 
@@ -1,3 +1,3 @@
1
1
  module CanvasExporting
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_exporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffolen4
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-22 00:00:00.000000000 Z
12
+ date: 2015-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails