xls_to_csv-paperclip-processor 0.4.2 → 0.4.3

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.
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = %Q{If you want to convert .xls to .csv simply and unwittingly, then this gem is for you!}
22
22
  gem.email = "igor.alexandrov@gmail.com"
23
23
  gem.authors = ["Igor Alexandrov"]
24
- gem.executables = [ 'xls2csv', 'xlsx2csv']
24
+ gem.executables = [ 'xls2csv.rb', 'xlsx2csv.rb']
25
25
  # dependencies defined in Gemfile
26
26
  end
27
27
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/bin/xls2csv.rb ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/xls2csv"
5
+
6
+ exec "#{cmd} #{args.join(' ')}"
data/bin/xlsx2csv.rb ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/xlsx2csv"
5
+
6
+ exec "#{cmd} #{args.join(' ')}"
@@ -29,9 +29,9 @@ protected
29
29
  def command
30
30
  case @current_format
31
31
  when '.xls'
32
- 'xls2csv'
32
+ 'xls2csv.rb'
33
33
  when '.xlsx'
34
- 'xlsx2csv'
34
+ 'xlsx2csv.rb'
35
35
  else
36
36
  'cp'
37
37
  end
@@ -40,7 +40,7 @@ protected
40
40
  def parameters(src, dst)
41
41
  p = []
42
42
 
43
- if self.command == 'xls2csv'
43
+ if self.command == 'xls2csv.rb'
44
44
  p << [@params, "#{File.expand_path(src.path)}", "> #{File.expand_path(dst.path)}"]
45
45
  else
46
46
  p << ["#{File.expand_path(src.path)}", "#{File.expand_path(dst.path)}"]
File without changes
File without changes
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "xls_to_csv-paperclip-processor"
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
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"]
12
12
  s.date = "2012-11-27"
13
13
  s.description = "If you want to convert .xls to .csv simply and unwittingly, then this gem is for you!"
14
14
  s.email = "igor.alexandrov@gmail.com"
15
- s.executables = ["xls2csv", "xlsx2csv"]
15
+ s.executables = ["xls2csv.rb", "xlsx2csv.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "README.md"
18
18
  ]
@@ -21,9 +21,11 @@ Gem::Specification.new do |s|
21
21
  "README.md",
22
22
  "Rakefile",
23
23
  "VERSION",
24
- "bin/xls2csv",
25
- "bin/xlsx2csv",
24
+ "bin/xls2csv.rb",
25
+ "bin/xlsx2csv.rb",
26
26
  "lib/xls_to_csv-paperclip-processor.rb",
27
+ "libexec/xls2csv",
28
+ "libexec/xlsx2csv",
27
29
  "xls_to_csv-paperclip-processor.gemspec"
28
30
  ]
29
31
  s.homepage = "http://github.com/igor-alexandrov/xls_to_csv-paperclip-processor"
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.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -63,8 +63,8 @@ description: If you want to convert .xls to .csv simply and unwittingly, then th
63
63
  gem is for you!
64
64
  email: igor.alexandrov@gmail.com
65
65
  executables:
66
- - xls2csv
67
- - xlsx2csv
66
+ - xls2csv.rb
67
+ - xlsx2csv.rb
68
68
  extensions: []
69
69
  extra_rdoc_files:
70
70
  - README.md
@@ -73,9 +73,11 @@ files:
73
73
  - README.md
74
74
  - Rakefile
75
75
  - VERSION
76
- - bin/xls2csv
77
- - bin/xlsx2csv
76
+ - bin/xls2csv.rb
77
+ - bin/xlsx2csv.rb
78
78
  - lib/xls_to_csv-paperclip-processor.rb
79
+ - libexec/xls2csv
80
+ - libexec/xlsx2csv
79
81
  - xls_to_csv-paperclip-processor.gemspec
80
82
  homepage: http://github.com/igor-alexandrov/xls_to_csv-paperclip-processor
81
83
  licenses:
@@ -92,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
94
  version: '0'
93
95
  segments:
94
96
  - 0
95
- hash: -2105694367349826607
97
+ hash: -2923987881379209445
96
98
  required_rubygems_version: !ruby/object:Gem::Requirement
97
99
  none: false
98
100
  requirements: