rubyexcel 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyexcel/data.rb +8 -0
- data/lib/rubyexcel/sheet.rb +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e33af53bc3f51434f755feea7e7e4ed88a546835
|
4
|
+
data.tar.gz: afc4d1c1c5e5dd8c69d87305a041708f27d46071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81eaa6abc692eb99c86f1fb2a35554b361dc1f2d2dff487c20bcf7f67878ecbc5044a82edb41251d46967551c42c71e4a4e2ac54c6b0505efe9475521a80cf5f
|
7
|
+
data.tar.gz: e565b35e6946964f1414e76cc2e08c3f83d719349184bf268ac69392e68d71c14695f1890dd060988601e185e91a9515ab889d4e215d66104edb9ea3293cfa0d
|
data/lib/rubyexcel/data.rb
CHANGED
data/lib/rubyexcel/sheet.rb
CHANGED
@@ -174,7 +174,7 @@ module RubyExcel
|
|
174
174
|
#
|
175
175
|
|
176
176
|
def clear_all
|
177
|
-
|
177
|
+
data.delete_all
|
178
178
|
self
|
179
179
|
end
|
180
180
|
alias delete_all clear_all
|
@@ -487,6 +487,7 @@ module RubyExcel
|
|
487
487
|
def reverse_rows!
|
488
488
|
data.reverse_rows!; self
|
489
489
|
end
|
490
|
+
alias reverse! reverse_rows!
|
490
491
|
|
491
492
|
#
|
492
493
|
# Create a Row from an index
|
@@ -513,6 +514,18 @@ module RubyExcel
|
|
513
514
|
end
|
514
515
|
alias each rows
|
515
516
|
|
517
|
+
#
|
518
|
+
# Save the RubyExcel::Sheet as an Excel Workbook
|
519
|
+
#
|
520
|
+
# @param [String] filename the filename to save as
|
521
|
+
# @param [Boolean] invisible leave Excel invisible if creating a new instance
|
522
|
+
# @return [WIN32OLE::Workbook] the Workbook, saved as filename.
|
523
|
+
#
|
524
|
+
|
525
|
+
def save_excel( filename = nil, invisible = false )
|
526
|
+
workbook.dup.clear_all.add( self.dup ).workbook.save_excel( filename, invisible )
|
527
|
+
end
|
528
|
+
|
516
529
|
#
|
517
530
|
# Sort the data by a column, selected by header(s)
|
518
531
|
#
|
@@ -629,7 +642,7 @@ module RubyExcel
|
|
629
642
|
alias unique! uniq!
|
630
643
|
|
631
644
|
#
|
632
|
-
#
|
645
|
+
# Select the used Range in the Sheet
|
633
646
|
#
|
634
647
|
# @return [Range] the Sheet's contents in Range
|
635
648
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A tabular data structure in Ruby, with header-based helper methods for
|
14
14
|
analysis and editing, and some of Excel's API style. Can output as 2D Array, HTML,
|