You need to sign in or sign up before continuing.
rubyXL 3.4.41 → 3.4.43
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 +4 -4
- data/Rakefile +5 -67
- data/lib/rubyXL/convenience_methods/worksheet.rb +10 -2
- data/lib/rubyXL/convenience_methods.rb +5 -5
- data/lib/rubyXL/objects/border.rb +2 -2
- data/lib/rubyXL/objects/calculation_chain.rb +4 -2
- data/lib/rubyXL/objects/cell_style.rb +2 -2
- data/lib/rubyXL/objects/chartsheet.rb +7 -5
- data/lib/rubyXL/objects/color.rb +2 -2
- data/lib/rubyXL/objects/column_range.rb +3 -1
- data/lib/rubyXL/objects/comments.rb +4 -2
- data/lib/rubyXL/objects/connection.rb +5 -3
- data/lib/rubyXL/objects/container_nodes.rb +2 -2
- data/lib/rubyXL/objects/content_types.rb +3 -1
- data/lib/rubyXL/objects/data_validation.rb +5 -3
- data/lib/rubyXL/objects/document_properties.rb +4 -2
- data/lib/rubyXL/objects/extensions.rb +3 -1
- data/lib/rubyXL/objects/external_links.rb +4 -0
- data/lib/rubyXL/objects/fill.rb +2 -2
- data/lib/rubyXL/objects/filters.rb +5 -3
- data/lib/rubyXL/objects/font.rb +3 -3
- data/lib/rubyXL/objects/formula.rb +4 -2
- data/lib/rubyXL/objects/ooxml_object.rb +1 -1
- data/lib/rubyXL/objects/query_table.rb +7 -5
- data/lib/rubyXL/objects/reference.rb +13 -1
- data/lib/rubyXL/objects/relationships.rb +1 -1
- data/lib/rubyXL/objects/root.rb +6 -4
- data/lib/rubyXL/objects/shared_strings.rb +5 -3
- data/lib/rubyXL/objects/sheet_common.rb +4 -2
- data/lib/rubyXL/objects/sheet_data.rb +9 -6
- data/lib/rubyXL/objects/storage.rb +4 -0
- data/lib/rubyXL/objects/stylesheet.rb +8 -6
- data/lib/rubyXL/objects/text.rb +7 -5
- data/lib/rubyXL/objects/theme.rb +2 -2
- data/lib/rubyXL/objects/workbook.rb +17 -14
- data/lib/rubyXL/objects/worksheet.rb +17 -15
- data/lib/rubyXL/parser.rb +2 -0
- data/lib/rubyXL/version.rb +1 -1
- data/lib/rubyXL.rb +3 -3
- data/rubyXL.gemspec +3 -3
- metadata +3 -4
- data/VERSION +0 -1
- /data/lib/rubyXL/{cell.rb → legacy_cell.rb} +0 -0
- /data/lib/rubyXL/{worksheet.rb → legacy_worksheet.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c38719194f3da18925c1c37082fa50cbbfa47fa17e321168bfcdec4f5ca168cf
|
|
4
|
+
data.tar.gz: 4aefa3b8e09271c02a89b1e3d24bd90e211c67768716f4a4636a81061a5bcee7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b87639b975fae904fac5c8d389db395ee6d10b7cf58cbf15b4ca718a0bdd5ed1df6a83b90bac0b04f91798e2a59e6b90f8ce37b400f69a220e5b342a317fb1d8
|
|
7
|
+
data.tar.gz: b481c323a0a2875e768fe95a29f859cff4066c2a775e58baa1629824ec4f70ea9c6a80da81aad17b879a575926670ae841a24a0cc5faef5b932bca7803c54dfc
|
data/Rakefile
CHANGED
|
@@ -14,21 +14,6 @@ if defined?(Psych::ClassLoader) && defined?(Psych::ClassLoader::ALLOWED_CLASSES)
|
|
|
14
14
|
Psych::ClassLoader::ALLOWED_CLASSES << 'Gem::Specification'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#require 'juwelier'
|
|
18
|
-
#Juwelier::Tasks.new do |gem|
|
|
19
|
-
# # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
20
|
-
# gem.name = 'rubyXL'
|
|
21
|
-
# gem.homepage = 'http://github.com/gilt/rubyXL'
|
|
22
|
-
# gem.license = 'MIT'
|
|
23
|
-
# gem.summary = %q{rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents}
|
|
24
|
-
# gem.description = %q{rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents}
|
|
25
|
-
# gem.email = 'bhagwat.vivek@gmail.com'
|
|
26
|
-
# gem.authors = ['Vivek Bhagwat', 'Wesha']
|
|
27
|
-
## gem.required_ruby_version = '>2.1'
|
|
28
|
-
# dependencies defined in Gemfile
|
|
29
|
-
#end
|
|
30
|
-
#Juwelier::RubygemsDotOrgTasks.new
|
|
31
|
-
|
|
32
17
|
require 'rake/testtask'
|
|
33
18
|
Rake::TestTask.new(:test) do |test|
|
|
34
19
|
test.libs << 'lib' << 'test'
|
|
@@ -43,10 +28,9 @@ task :default => :rspec
|
|
|
43
28
|
|
|
44
29
|
require 'rdoc/task'
|
|
45
30
|
Rake::RDocTask.new do |rdoc|
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
require_relative 'lib/rubyXL/version'
|
|
48
32
|
rdoc.rdoc_dir = 'rdoc'
|
|
49
|
-
rdoc.title = "rubyXL #{
|
|
33
|
+
rdoc.title = "rubyXL #{RubyXL::VERSION}"
|
|
50
34
|
rdoc.rdoc_files.include('README*')
|
|
51
35
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
52
36
|
end
|
|
@@ -122,7 +106,6 @@ task :version => :preload_library do
|
|
|
122
106
|
puts RubyXL::VERSION
|
|
123
107
|
end
|
|
124
108
|
|
|
125
|
-
|
|
126
109
|
desc 'Releases the current version'
|
|
127
110
|
task :release => :preload_library do
|
|
128
111
|
`gem release`
|
|
@@ -132,7 +115,7 @@ namespace :version do
|
|
|
132
115
|
namespace :bump do
|
|
133
116
|
desc 'Bump the major version by 1'
|
|
134
117
|
task :major do
|
|
135
|
-
`gem bump major`
|
|
118
|
+
`gem bump major --no-commit`
|
|
136
119
|
end
|
|
137
120
|
end
|
|
138
121
|
end
|
|
@@ -141,7 +124,7 @@ namespace :version do
|
|
|
141
124
|
namespace :bump do
|
|
142
125
|
desc 'Bump the minor version by 1'
|
|
143
126
|
task :minor do
|
|
144
|
-
`gem bump minor`
|
|
127
|
+
`gem bump minor --no-commit`
|
|
145
128
|
end
|
|
146
129
|
end
|
|
147
130
|
end
|
|
@@ -150,52 +133,7 @@ namespace :version do
|
|
|
150
133
|
namespace :bump do
|
|
151
134
|
desc 'Bump the patch version by 1'
|
|
152
135
|
task :patch do
|
|
153
|
-
`gem bump patch`
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
namespace :gemspec do
|
|
159
|
-
desc 'Generate gemspec'
|
|
160
|
-
task :generate do
|
|
161
|
-
Gem::Specification.new do |s|
|
|
162
|
-
s.name = "rubyXL"
|
|
163
|
-
|
|
164
|
-
require_relative 'lib/rubyXL/version'
|
|
165
|
-
s.version = RubyXL::VERSION
|
|
166
|
-
File.open('VERSION', 'w') { |f| f << s.version }
|
|
167
|
-
|
|
168
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
169
|
-
s.require_paths = ["lib".freeze]
|
|
170
|
-
s.authors = ["Vivek Bhagwat".freeze, "Wesha".freeze]
|
|
171
|
-
s.date = Date.today.to_s
|
|
172
|
-
s.description = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents".freeze
|
|
173
|
-
s.email = "bhagwat.vivek@gmail.com".freeze
|
|
174
|
-
s.homepage = "http://github.com/gilt/rubyXL".freeze
|
|
175
|
-
s.licenses = ["MIT".freeze]
|
|
176
|
-
s.rubygems_version = `gem -v`.strip
|
|
177
|
-
s.summary = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents".freeze
|
|
178
|
-
|
|
179
|
-
s.files = Dir.chdir(__dir__) do
|
|
180
|
-
Dir.glob('{lib,bin}/**/*').select { |f| File.file?(f) }
|
|
181
|
-
end + ['Rakefile', 'rubyXL.gemspec', 'VERSION']
|
|
182
|
-
|
|
183
|
-
s.extra_rdoc_files = [
|
|
184
|
-
"LICENSE.txt",
|
|
185
|
-
"README.rdoc"
|
|
186
|
-
]
|
|
187
|
-
|
|
188
|
-
Bundler::Dsl.evaluate(File.expand_path("Gemfile", __dir__), nil, {}).dependencies.each do |dep|
|
|
189
|
-
reqs = dep.requirement.requirements.collect{ |op, ver| "#{op} #{ver.to_s}" }
|
|
190
|
-
if dep.groups.include?(:default) then
|
|
191
|
-
s.add_runtime_dependency(dep.name, reqs)
|
|
192
|
-
elsif !(dep.groups & [:development, :test]).empty? then
|
|
193
|
-
s.add_development_dependency(dep.name, reqs)
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
File.write("#{s.name}.gemspec", s.to_ruby)
|
|
136
|
+
`gem bump patch --no-commit`
|
|
198
137
|
end
|
|
199
|
-
|
|
200
138
|
end
|
|
201
139
|
end
|
|
@@ -724,8 +724,16 @@ module RubyXL
|
|
|
724
724
|
end
|
|
725
725
|
|
|
726
726
|
self.merged_cells ||= RubyXL::MergedCells.new
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
new_merged_cell = RubyXL::Reference.new(row_from, row_to, col_from, col_to)
|
|
728
|
+
|
|
729
|
+
colliding_cell = merged_cells.find { |mc| mc.ref.intersect?(new_merged_cell) ||
|
|
730
|
+
mc.ref.cover?(new_merged_cell) || new_merged_cell.cover?(mc.ref) }
|
|
731
|
+
|
|
732
|
+
raise ArgumentError, "New merged cell (#{new_merged_cell}} intersects with existing merged cell (#{colliding_cell.ref})" if colliding_cell
|
|
733
|
+
|
|
734
|
+
merged_cells << RubyXL::MergedCell.new(:ref => new_merged_cell)
|
|
735
|
+
|
|
736
|
+
# TODO: copy the style from the top left cell of the ramge to the rest
|
|
729
737
|
end
|
|
730
738
|
|
|
731
739
|
def add_validation_list(ref, list_arr)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
require_relative 'convenience_methods/workbook'
|
|
2
|
+
require_relative 'convenience_methods/worksheet'
|
|
3
|
+
require_relative 'convenience_methods/cell'
|
|
4
|
+
require_relative 'convenience_methods/font'
|
|
5
|
+
require_relative 'convenience_methods/color'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'extensions'
|
|
6
|
+
require_relative 'relationships'
|
|
7
|
+
require_relative 'sheet_common'
|
|
6
8
|
|
|
7
9
|
module RubyXL
|
|
8
10
|
# http://www.datypic.com/sc/ooxml/e-ssml_sheetProtection-4.html
|
data/lib/rubyXL/objects/color.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'extensions'
|
|
4
6
|
|
|
5
7
|
# Connections
|
|
6
8
|
# https://msdn.microsoft.com/en-us/library/dd908547(v=office.12).aspx
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'formula'
|
|
4
6
|
|
|
5
7
|
module RubyXL
|
|
6
8
|
# http://www.datypic.com/sc/ooxml/e-ssml_dataValidation-1.html
|
data/lib/rubyXL/objects/fill.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'extensions'
|
|
4
6
|
|
|
5
7
|
module RubyXL
|
|
6
8
|
# http://www.datypic.com/sc/ooxml/e-ssml_dateGroupItem-1.html
|
data/lib/rubyXL/objects/font.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'container_nodes'
|
|
5
|
+
require_relative 'color'
|
|
6
6
|
|
|
7
7
|
module RubyXL
|
|
8
8
|
# http://www.datypic.com/sc/ooxml/e-ssml_font-1.html
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'extensions'
|
|
6
|
+
require_relative 'relationships'
|
|
7
|
+
require_relative 'sheet_common'
|
|
6
8
|
|
|
7
9
|
# Query Tables
|
|
8
10
|
# https://msdn.microsoft.com/en-us/library/hh643563(v=office.12).aspx
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require_relative 'ooxml_object'
|
|
2
|
+
|
|
1
3
|
module RubyXL
|
|
2
4
|
class Reference
|
|
3
5
|
ROW_MAX = 1024 * 1024
|
|
@@ -74,7 +76,7 @@ module RubyXL
|
|
|
74
76
|
|
|
75
77
|
def cover?(other)
|
|
76
78
|
return false unless other.is_a?(RubyXL::Reference)
|
|
77
|
-
return false
|
|
79
|
+
return false if @sheet_name != other.sheet_name
|
|
78
80
|
|
|
79
81
|
(@first_row <= other.first_row) &&
|
|
80
82
|
(@last_row >= other.last_row) &&
|
|
@@ -82,6 +84,16 @@ module RubyXL
|
|
|
82
84
|
(@last_col >= other.last_col)
|
|
83
85
|
end
|
|
84
86
|
|
|
87
|
+
def intersect?(other)
|
|
88
|
+
return false unless other.is_a?(RubyXL::Reference)
|
|
89
|
+
return false if @sheet_name != other.sheet_name
|
|
90
|
+
|
|
91
|
+
(((@first_row <= other.first_row) && (@last_row >= other.first_row)) ||
|
|
92
|
+
((@first_row <= other.last_row) && (@last_row >= other.last_row))) &&
|
|
93
|
+
(((@first_col <= other.first_col) && (@last_col >= other.first_col)) ||
|
|
94
|
+
((@first_col <= other.last_col) && (@last_col >= other.last_col)))
|
|
95
|
+
end
|
|
96
|
+
|
|
85
97
|
def to_s
|
|
86
98
|
result = +''
|
|
87
99
|
|
data/lib/rubyXL/objects/root.rb
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'zip'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require_relative 'relationships'
|
|
5
|
+
require_relative 'document_properties'
|
|
6
|
+
require_relative 'content_types'
|
|
7
|
+
require_relative 'workbook'
|
|
6
8
|
|
|
7
9
|
module RubyXL
|
|
8
10
|
class WorkbookRoot
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'text'
|
|
5
|
+
require_relative 'extensions'
|
|
4
6
|
|
|
5
7
|
module RubyXL
|
|
6
8
|
# http://www.datypic.com/sc/ooxml/e-ssml_sst.html
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'text'
|
|
6
|
+
require_relative 'formula'
|
|
7
|
+
|
|
8
|
+
require_relative '../legacy_cell'
|
|
6
9
|
|
|
7
10
|
module RubyXL
|
|
8
11
|
# http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.cellvalues(v=office.14).aspx
|
|
@@ -112,7 +115,7 @@ module RubyXL
|
|
|
112
115
|
when RubyXL::DataType::SHARED_STRING then workbook.shared_strings_container[r.to_i].to_s
|
|
113
116
|
when RubyXL::DataType::INLINE_STRING then is.to_s
|
|
114
117
|
when RubyXL::DataType::RAW_STRING then
|
|
115
|
-
raw_value
|
|
118
|
+
raw_value&.gsub(RubyXL::Text::ESCAPED_UNICODE) { Regexp.last_match(1).hex.chr(::Encoding::UTF_8) }
|
|
116
119
|
when RubyXL::DataType::DATE then raw_value && DateTime.parse(raw_value)
|
|
117
120
|
when RubyXL::DataType::ERROR then nil
|
|
118
121
|
else
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'cell_style'
|
|
5
|
+
require_relative 'font'
|
|
6
|
+
require_relative 'fill'
|
|
7
|
+
require_relative 'border'
|
|
8
|
+
require_relative 'extensions'
|
|
7
9
|
|
|
8
10
|
module RubyXL
|
|
9
11
|
# http://www.datypic.com/sc/ooxml/e-ssml_numFmt-1.html
|
data/lib/rubyXL/objects/text.rb
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'container_nodes'
|
|
6
|
+
require_relative 'color'
|
|
5
7
|
|
|
6
8
|
module RubyXL
|
|
7
9
|
# http://www.datypic.com/sc/ooxml/e-ssml_t-1.html
|
|
@@ -59,7 +61,7 @@ module RubyXL
|
|
|
59
61
|
define_element_name 'r'
|
|
60
62
|
|
|
61
63
|
def to_s
|
|
62
|
-
t
|
|
64
|
+
t&.to_s
|
|
63
65
|
end
|
|
64
66
|
end
|
|
65
67
|
|
data/lib/rubyXL/objects/theme.rb
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
1
4
|
require 'date'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
require_relative 'ooxml_object'
|
|
6
|
+
require_relative 'shared_strings'
|
|
7
|
+
require_relative 'stylesheet'
|
|
8
|
+
require_relative 'theme'
|
|
9
|
+
require_relative 'calculation_chain'
|
|
10
|
+
require_relative 'worksheet'
|
|
11
|
+
require_relative 'chartsheet'
|
|
12
|
+
require_relative 'connection'
|
|
13
|
+
require_relative 'relationships'
|
|
14
|
+
require_relative 'simple_types'
|
|
15
|
+
require_relative 'extensions'
|
|
16
|
+
require_relative 'external_links'
|
|
14
17
|
|
|
15
18
|
module RubyXL
|
|
16
19
|
# Eventually, the entire code for Workbook will be moved here.
|
|
@@ -437,13 +440,13 @@ module RubyXL
|
|
|
437
440
|
def num_to_date(num)
|
|
438
441
|
return nil if num.nil?
|
|
439
442
|
|
|
440
|
-
# Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058
|
|
443
|
+
# Bug-for-bug Excel compatibility (https://web.archive.org/web/20070403035139/http://support.microsoft.com/kb/214058)
|
|
441
444
|
if num < MARCH_1_1900 then
|
|
442
445
|
num += 1 unless workbook_properties&.date1904
|
|
443
446
|
end
|
|
444
447
|
|
|
445
448
|
dateparts = num.divmod(1)
|
|
446
|
-
base_date + (dateparts[0] + ((dateparts[1] * 86400).round(6)
|
|
449
|
+
base_date + (dateparts[0] + ((dateparts[1] * 86400).round(6).quo(86400)))
|
|
447
450
|
end
|
|
448
451
|
|
|
449
452
|
include Enumerable
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'ooxml_object'
|
|
4
|
+
require_relative 'simple_types'
|
|
5
|
+
require_relative 'extensions'
|
|
6
|
+
require_relative 'relationships'
|
|
7
|
+
require_relative 'sheet_common'
|
|
8
|
+
require_relative 'text'
|
|
9
|
+
require_relative 'formula'
|
|
10
|
+
require_relative 'sheet_data'
|
|
11
|
+
require_relative 'column_range'
|
|
12
|
+
require_relative 'filters'
|
|
13
|
+
require_relative 'data_validation'
|
|
14
|
+
require_relative 'comments'
|
|
15
|
+
require_relative 'connection'
|
|
16
|
+
require_relative 'query_table'
|
|
17
|
+
require_relative '../legacy_worksheet'
|
|
16
18
|
|
|
17
19
|
module RubyXL
|
|
18
20
|
# Eventually, the entire code for Worksheet will be moved here. One small step at a time!
|
data/lib/rubyXL/parser.rb
CHANGED
data/lib/rubyXL/version.rb
CHANGED
data/lib/rubyXL.rb
CHANGED
data/rubyXL.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: rubyXL 3.4.
|
|
2
|
+
# stub: rubyXL 3.4.43 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rubyXL".freeze
|
|
6
|
-
s.version = "3.4.
|
|
6
|
+
s.version = "3.4.43".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
s.description = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents".freeze
|
|
13
13
|
s.email = "bhagwat.vivek@gmail.com".freeze
|
|
14
14
|
s.extra_rdoc_files = ["LICENSE.txt".freeze, "README.rdoc".freeze]
|
|
15
|
-
s.files = ["LICENSE.txt".freeze, "README.rdoc".freeze, "Rakefile".freeze, "
|
|
15
|
+
s.files = ["LICENSE.txt".freeze, "README.rdoc".freeze, "Rakefile".freeze, "bin/console".freeze, "bin/setup".freeze, "lib/rubyXL.rb".freeze, "lib/rubyXL/legacy_cell.rb".freeze, "lib/rubyXL/convenience_methods.rb".freeze, "lib/rubyXL/convenience_methods/cell.rb".freeze, "lib/rubyXL/convenience_methods/color.rb".freeze, "lib/rubyXL/convenience_methods/font.rb".freeze, "lib/rubyXL/convenience_methods/workbook.rb".freeze, "lib/rubyXL/convenience_methods/worksheet.rb".freeze, "lib/rubyXL/objects/border.rb".freeze, "lib/rubyXL/objects/calculation_chain.rb".freeze, "lib/rubyXL/objects/cell_style.rb".freeze, "lib/rubyXL/objects/chartsheet.rb".freeze, "lib/rubyXL/objects/color.rb".freeze, "lib/rubyXL/objects/column_range.rb".freeze, "lib/rubyXL/objects/comments.rb".freeze, "lib/rubyXL/objects/connection.rb".freeze, "lib/rubyXL/objects/container_nodes.rb".freeze, "lib/rubyXL/objects/content_types.rb".freeze, "lib/rubyXL/objects/data_validation.rb".freeze, "lib/rubyXL/objects/document_properties.rb".freeze, "lib/rubyXL/objects/extensions.rb".freeze, "lib/rubyXL/objects/external_links.rb".freeze, "lib/rubyXL/objects/fill.rb".freeze, "lib/rubyXL/objects/filters.rb".freeze, "lib/rubyXL/objects/font.rb".freeze, "lib/rubyXL/objects/formula.rb".freeze, "lib/rubyXL/objects/ooxml_object.rb".freeze, "lib/rubyXL/objects/query_table.rb".freeze, "lib/rubyXL/objects/reference.rb".freeze, "lib/rubyXL/objects/relationships.rb".freeze, "lib/rubyXL/objects/root.rb".freeze, "lib/rubyXL/objects/shared_strings.rb".freeze, "lib/rubyXL/objects/sheet_common.rb".freeze, "lib/rubyXL/objects/sheet_data.rb".freeze, "lib/rubyXL/objects/simple_types.rb".freeze, "lib/rubyXL/objects/storage.rb".freeze, "lib/rubyXL/objects/stylesheet.rb".freeze, "lib/rubyXL/objects/text.rb".freeze, "lib/rubyXL/objects/theme.rb".freeze, "lib/rubyXL/objects/workbook.rb".freeze, "lib/rubyXL/objects/worksheet.rb".freeze, "lib/rubyXL/parser.rb".freeze, "lib/rubyXL/version.rb".freeze, "lib/rubyXL/legacy_worksheet.rb".freeze, "rubyXL.gemspec".freeze]
|
|
16
16
|
s.homepage = "http://github.com/gilt/rubyXL".freeze
|
|
17
17
|
s.licenses = ["MIT".freeze]
|
|
18
18
|
s.rubygems_version = "3.6.9".freeze
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubyXL
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.43
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vivek Bhagwat
|
|
@@ -204,17 +204,17 @@ files:
|
|
|
204
204
|
- LICENSE.txt
|
|
205
205
|
- README.rdoc
|
|
206
206
|
- Rakefile
|
|
207
|
-
- VERSION
|
|
208
207
|
- bin/console
|
|
209
208
|
- bin/setup
|
|
210
209
|
- lib/rubyXL.rb
|
|
211
|
-
- lib/rubyXL/cell.rb
|
|
212
210
|
- lib/rubyXL/convenience_methods.rb
|
|
213
211
|
- lib/rubyXL/convenience_methods/cell.rb
|
|
214
212
|
- lib/rubyXL/convenience_methods/color.rb
|
|
215
213
|
- lib/rubyXL/convenience_methods/font.rb
|
|
216
214
|
- lib/rubyXL/convenience_methods/workbook.rb
|
|
217
215
|
- lib/rubyXL/convenience_methods/worksheet.rb
|
|
216
|
+
- lib/rubyXL/legacy_cell.rb
|
|
217
|
+
- lib/rubyXL/legacy_worksheet.rb
|
|
218
218
|
- lib/rubyXL/objects/border.rb
|
|
219
219
|
- lib/rubyXL/objects/calculation_chain.rb
|
|
220
220
|
- lib/rubyXL/objects/cell_style.rb
|
|
@@ -250,7 +250,6 @@ files:
|
|
|
250
250
|
- lib/rubyXL/objects/worksheet.rb
|
|
251
251
|
- lib/rubyXL/parser.rb
|
|
252
252
|
- lib/rubyXL/version.rb
|
|
253
|
-
- lib/rubyXL/worksheet.rb
|
|
254
253
|
- rubyXL.gemspec
|
|
255
254
|
homepage: http://github.com/gilt/rubyXL
|
|
256
255
|
licenses:
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.4.41
|
|
File without changes
|
|
File without changes
|