xls_to_csv-paperclip-processor 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -28,7 +28,14 @@ class Paperclip::XlsToCsv < Paperclip::Processor
28
28
  protected
29
29
 
30
30
  def command
31
- @current_format == '.xls' ? 'xls2csv' : 'cp'
31
+ case @current_format
32
+ when '.xls'
33
+ 'xls2csv'
34
+ when '.xlsx'
35
+ 'xlsx2csv'
36
+ else
37
+ 'cp'
38
+ end
32
39
  end
33
40
 
34
41
  def parameters(src, dst)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "xls_to_csv-paperclip-processor"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Alexandrov"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xls_to_csv-paperclip-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: 2906243392911871525
95
+ hash: 2558121774742673023
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements: