robust_excel_ole 1.19.6 → 1.19.7

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
  SHA256:
3
- metadata.gz: 7b949aa2fed26a88132ccdca420cc2f313944e5229859baf28868dd9b4ff877d
4
- data.tar.gz: 7af761e4080a48e9191b0f430c32abc5af63ec9415fb345253e9aa28b68c8a72
3
+ metadata.gz: 902415638a1e88a9060ae003c0f470fd555fe064001993e92a20e4c3f89749e2
4
+ data.tar.gz: 89b78060bd55544926d1f521c9fa33cd9e8040b28abe59774be2f9497dc02487
5
5
  SHA512:
6
- metadata.gz: 1a79bf3958fbd615cdb97e7310e6ef9d9b64f37e1e130eea5f1a1c21b9444e49444ebfcf794d492b6f99b019716150d2c2d4b59db4b681c92ea71ed129a044cf
7
- data.tar.gz: 482eaaaaa91608e0da49a241e34489e0717226f9ef123bd81785f2e1187fd67f5cea5aff9ff0e885a2fe7b28c0abb55aeaaed2879f67403d5f4c4b01e109203d
6
+ metadata.gz: 2a8763d8a6b12ca7cccb7fa8dd79e5d49b1ebc2336a3b470a48121efb8d021417be97b6fbd6076430f6d1e9ff1a0326ebadbe0eb2eb5eeb023364c8e3c3d8ca8
7
+ data.tar.gz: 4607fa695e3802427e93baa8cb2de9ad4f53bb08ae0e474a35cc8f72a3812445223504b7cf9029363ed9fa906603163726cea4dcb157b6fe1e11a56177d60765
@@ -0,0 +1,4 @@
1
+
2
+ @echo off
3
+
4
+ jruby reo
data/bin/reo ADDED
@@ -0,0 +1,21 @@
1
+ require 'pry'
2
+ require '../lib/robust_excel_ole'
3
+ include REO
4
+ # include RobustExcelOle
5
+ include General
6
+
7
+ puts 'REO console started'
8
+ puts
9
+
10
+
11
+ # some pry configuration
12
+ Pry.config.windows_console_warning = false
13
+ Pry.config.history.should_save = true
14
+ #Pry.editor = 'notepad' # 'subl', 'vi'
15
+ #Pry.config.prompt =
16
+ # [
17
+ # ->(_obj, _nest_level, _) { ">> " },
18
+ # ->(*) { " " }
19
+ # ]
20
+
21
+ pry
@@ -0,0 +1,4 @@
1
+
2
+ @echo off
3
+
4
+ ruby reo
@@ -74,6 +74,8 @@ module RobustExcelOle
74
74
  end
75
75
  end
76
76
 
77
+ private
78
+
77
79
  def define_getting_setting_method(ole_cell,name_str)
78
80
  if name_str[-1] != '='
79
81
  self.class.define_method(name_str) do
@@ -85,7 +87,7 @@ module RobustExcelOle
85
87
  end
86
88
  end
87
89
  end
88
- end
90
+ end
89
91
 
90
92
  # accesses a table row object
91
93
  # @param [Integer] a row number (>= 1)
@@ -96,6 +98,22 @@ module RobustExcelOle
96
98
 
97
99
  end
98
100
 
101
+ def column_names
102
+ @ole_table.HeaderRowRange.Value.first
103
+ end
104
+
105
+ # @private
106
+ def to_s
107
+ @ole_table.Name.to_s
108
+ end
109
+
110
+ # @private
111
+ def inspect
112
+ "#<ListObject:" + "#{@ole_table.Name}" +
113
+ " size:#{@ole_table.ListRows.Count}x#{@ole_table.ListColumns.Count}" +
114
+ " worksheet:#{@ole_table.Parent.Name}" + " workbook:#{@ole_table.Parent.Parent.Name}" + ">"
115
+ end
116
+
99
117
  private
100
118
 
101
119
  def method_missing(name, *args)
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.19.6"
2
+ VERSION = "1.19.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robust_excel_ole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.6
4
+ version: 1.19.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths
@@ -47,7 +47,10 @@ description: "RobustExcelOle helps controlling Excel. \n This
47
47
  are supported.\n It runs on Windows and uses the win32ole library."
48
48
  email:
49
49
  - Thomas.Raths@gmx.net
50
- executables: []
50
+ executables:
51
+ - jreo.bat
52
+ - reo
53
+ - reo.bat
51
54
  extensions: []
52
55
  extra_rdoc_files:
53
56
  - README.rdoc
@@ -76,6 +79,9 @@ files:
76
79
  - benchmarking/sample_excel_files/xlsx_500_rows.xlsx
77
80
  - benchmarking/simple_xlsx_reader_example.rb
78
81
  - benchmarking/spreadsheet_example.rb
82
+ - bin/jreo.bat
83
+ - bin/reo
84
+ - bin/reo.bat
79
85
  - docs/README_excel.rdoc
80
86
  - docs/README_open.rdoc
81
87
  - docs/README_ranges.rdoc
@@ -128,7 +134,6 @@ files:
128
134
  - lib/robust_excel_ole/workbook.rb
129
135
  - lib/robust_excel_ole/worksheet.rb
130
136
  - lib/spec_helper.rb
131
- - reo.bat
132
137
  - robust_excel_ole.gemspec
133
138
  - spec/address_tool_spec.rb
134
139
  - spec/base_spec.rb
data/reo.bat DELETED
@@ -1,5 +0,0 @@
1
- @echo off
2
-
3
- irb -f -r ./lib/reo_console.rb
4
-
5
- #irb -f -r ./lib/robust_excel_ole -r ./lib/reo_console.rb