fast_excel 0.2.6 → 0.3.0
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/.dockerignore +2 -0
- data/.gitignore +3 -0
- data/.travis.yml +18 -6
- data/CHANGELOG.md +14 -1
- data/Dockerfile.test +16 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +21 -21
- data/Makefile +13 -2
- data/README.md +148 -38
- data/Rakefile +2 -0
- data/examples/example.rb +3 -3
- data/examples/example_filters.rb +36 -0
- data/examples/example_formula.rb +1 -3
- data/examples/example_hyperlink.rb +20 -0
- data/fast_excel.gemspec +1 -1
- data/lib/fast_excel.rb +36 -12
- data/lib/fast_excel/binding.rb +31 -21
- data/lib/fast_excel/binding/chart.rb +20 -1
- data/lib/fast_excel/binding/workbook.rb +10 -2
- data/lib/fast_excel/binding/worksheet.rb +44 -27
- data/libxlsxwriter/.gitignore +1 -0
- data/libxlsxwriter/.indent.pro +5 -0
- data/libxlsxwriter/CMakeLists.txt +1 -11
- data/libxlsxwriter/CONTRIBUTING.md +1 -1
- data/libxlsxwriter/Changes.txt +84 -0
- data/libxlsxwriter/LICENSE.txt +1 -1
- data/libxlsxwriter/Makefile +7 -5
- data/libxlsxwriter/Readme.md +1 -1
- data/libxlsxwriter/cocoapods/libxlsxwriter-umbrella.h +1 -0
- data/libxlsxwriter/include/xlsxwriter.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/app.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/chart.h +56 -6
- data/libxlsxwriter/include/xlsxwriter/chartsheet.h +544 -0
- data/libxlsxwriter/include/xlsxwriter/common.h +27 -6
- data/libxlsxwriter/include/xlsxwriter/content_types.h +5 -2
- data/libxlsxwriter/include/xlsxwriter/core.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/custom.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/drawing.h +3 -2
- data/libxlsxwriter/include/xlsxwriter/format.h +3 -3
- data/libxlsxwriter/include/xlsxwriter/hash_table.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/packager.h +13 -8
- data/libxlsxwriter/include/xlsxwriter/relationships.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/shared_strings.h +5 -3
- data/libxlsxwriter/include/xlsxwriter/styles.h +9 -4
- data/libxlsxwriter/include/xlsxwriter/theme.h +2 -2
- data/libxlsxwriter/include/xlsxwriter/utility.h +26 -2
- data/libxlsxwriter/include/xlsxwriter/workbook.h +232 -55
- data/libxlsxwriter/include/xlsxwriter/worksheet.h +264 -53
- data/libxlsxwriter/include/xlsxwriter/xmlwriter.h +3 -1
- data/libxlsxwriter/libxlsxwriter.podspec +1 -1
- data/libxlsxwriter/src/Makefile +3 -3
- data/libxlsxwriter/src/app.c +2 -2
- data/libxlsxwriter/src/chart.c +41 -5
- data/libxlsxwriter/src/chartsheet.c +508 -0
- data/libxlsxwriter/src/content_types.c +12 -4
- data/libxlsxwriter/src/core.c +2 -2
- data/libxlsxwriter/src/custom.c +2 -2
- data/libxlsxwriter/src/drawing.c +114 -17
- data/libxlsxwriter/src/format.c +3 -3
- data/libxlsxwriter/src/hash_table.c +1 -1
- data/libxlsxwriter/src/packager.c +369 -65
- data/libxlsxwriter/src/relationships.c +2 -2
- data/libxlsxwriter/src/shared_strings.c +18 -4
- data/libxlsxwriter/src/styles.c +56 -9
- data/libxlsxwriter/src/theme.c +2 -2
- data/libxlsxwriter/src/utility.c +53 -6
- data/libxlsxwriter/src/workbook.c +372 -56
- data/libxlsxwriter/src/worksheet.c +425 -76
- data/libxlsxwriter/src/xmlwriter.c +17 -8
- data/libxlsxwriter/third_party/minizip/ioapi.c +10 -0
- data/libxlsxwriter/third_party/minizip/zip.c +2 -0
- data/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.c +2 -2
- data/libxlsxwriter/version.txt +1 -1
- data/test/tmpfile_test.rb +1 -0
- data/test/validations_test.rb +26 -6
- data/test/worksheet_test.rb +43 -0
- metadata +9 -6
- data/libxlsxwriter/.drone.yml +0 -27
- data/libxlsxwriter/appveyor.yml +0 -65
- data/libxlsxwriter/cmake/FindZLIB.cmake +0 -123
@@ -1,123 +0,0 @@
|
|
1
|
-
# :copyright: (c) 2017 Alex Huszagh.
|
2
|
-
# :license: FreeBSD, see LICENSE.txt for more details.
|
3
|
-
|
4
|
-
# FindZLIB
|
5
|
-
# --------
|
6
|
-
#
|
7
|
-
# Find ZLIB include dirs and libraries
|
8
|
-
#
|
9
|
-
# Use this module by invoking find_package with the form::
|
10
|
-
#
|
11
|
-
# find_package(ZLIB
|
12
|
-
# [version] [EXACT] # Minimum or EXACT version e.g. 1.0.6
|
13
|
-
# [REQUIRED] # Fail with error if ZLIB is not found
|
14
|
-
# )
|
15
|
-
#
|
16
|
-
# You may also set `ZLIB_USE_STATIC_LIBS` to prefer static libraries
|
17
|
-
# to shared ones.
|
18
|
-
#
|
19
|
-
# If found, `ZLIB_FOUND` will be set to true, and `ZLIB_LIBRARIES`
|
20
|
-
# and `ZLIB_INCLUDE_DIRS` will both be set.
|
21
|
-
#
|
22
|
-
# You may optionally set `ZLIB_ROOT` to specify a custom root directory
|
23
|
-
# for the ZLIB installation.
|
24
|
-
#
|
25
|
-
|
26
|
-
include(CheckCXXSourceCompiles)
|
27
|
-
include(FindPackage)
|
28
|
-
|
29
|
-
# PATHS
|
30
|
-
# -----
|
31
|
-
|
32
|
-
set(ZLIB_SEARCH_PATHS)
|
33
|
-
|
34
|
-
if(ZLIB_ROOT)
|
35
|
-
list(APPEND ZLIB_SEARCH_PATHS ${ZLIB_ROOT})
|
36
|
-
endif()
|
37
|
-
|
38
|
-
if(WIN32)
|
39
|
-
list(APPEND ZLIB_SEARCH_PATHS
|
40
|
-
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]"
|
41
|
-
"$ENV{PROGRAMFILES}/zlib"
|
42
|
-
)
|
43
|
-
endif()
|
44
|
-
|
45
|
-
unset(ZLIB_SYSTEM_ROOT)
|
46
|
-
unset(ZLIB_CUSTOM_ROOT)
|
47
|
-
unset(ZLIB_SEARCH_HKEY)
|
48
|
-
|
49
|
-
# FIND
|
50
|
-
# ----
|
51
|
-
|
52
|
-
# INCLUDE DIRECTORY
|
53
|
-
SetSuffixes(ZLIB)
|
54
|
-
foreach(search ${ZLIB_SEARCH_PATHS})
|
55
|
-
FIND_PATH(ZLIB_INCLUDE_DIR
|
56
|
-
NAMES zlib.h
|
57
|
-
PATHS ${search}
|
58
|
-
PATH_SUFFIXES include
|
59
|
-
)
|
60
|
-
endforeach(search)
|
61
|
-
|
62
|
-
if(NOT ZLIB_INCLUDE_DIR)
|
63
|
-
FIND_PATH(ZLIB_INCLUDE_DIR zlib.h PATH_SUFFIXES include)
|
64
|
-
endif()
|
65
|
-
|
66
|
-
# LIBRARY PATHS
|
67
|
-
set(ZLIB_LIBRARY_NAMES z libz zlib zlib1)
|
68
|
-
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
69
|
-
list(APPEND ZLIB_LIBRARY_NAMES zlibd zlibd1)
|
70
|
-
endif()
|
71
|
-
|
72
|
-
foreach(search ${ZLIB_SEARCH_PATHS})
|
73
|
-
FIND_LIBRARY(ZLIB_LIBRARY
|
74
|
-
NAMES ${ZLIB_LIBRARY_NAMES}
|
75
|
-
PATHS ${search}
|
76
|
-
PATH_SUFFIXES lib
|
77
|
-
)
|
78
|
-
endforeach(search)
|
79
|
-
|
80
|
-
if(NOT ZLIB_LIBRARY)
|
81
|
-
FIND_LIBRARY(ZLIB_LIBRARY NAMES ${ZLIB_LIBRARY_NAMES} PATH_SUFFIXES lib)
|
82
|
-
endif()
|
83
|
-
|
84
|
-
set(ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR})
|
85
|
-
set(ZLIB_LIBRARIES ${ZLIB_LIBRARY})
|
86
|
-
|
87
|
-
CheckFound(ZLIB)
|
88
|
-
FindStaticLibs(ZLIB)
|
89
|
-
|
90
|
-
# VERSION
|
91
|
-
# -------
|
92
|
-
|
93
|
-
if(ZLIB_FOUND)
|
94
|
-
file(STRINGS "${ZLIB_INCLUDE_DIRS}/zlib.h" ZLIB_VERSION_CONTENTS REGEX "#define ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+\"")
|
95
|
-
string(REGEX REPLACE ".*ZLIB_VERSION \"([0-9]+)\\.[0-9]+\\.[0-9]+\"" "\\1" ZLIB_VERSION_MAJOR "${ZLIB_VERSION_CONTENTS}")
|
96
|
-
string(REGEX REPLACE ".*ZLIB_VERSION \"[0-9]+\\.([0-9]+)\\.[0-9]+\"" "\\1" ZLIB_VERSION_MINOR "${ZLIB_VERSION_CONTENTS}")
|
97
|
-
string(REGEX REPLACE ".*ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+)\"" "\\1" ZLIB_VERSION_PATCH "${ZLIB_VERSION_CONTENTS}")
|
98
|
-
|
99
|
-
set(ZLIB_VERSION_STRING "${ZLIB_VERSION_MAJOR}.${ZLIB_VERSION_MINOR}.${ZLIB_VERSION_PATCH}")
|
100
|
-
set(ZLIB_VERSION ${ZLIB_VERSION_STRING})
|
101
|
-
|
102
|
-
MatchVersion(ZLIB)
|
103
|
-
endif()
|
104
|
-
|
105
|
-
# COMPILATION
|
106
|
-
# -----------
|
107
|
-
|
108
|
-
set(ZLIB_CODE "
|
109
|
-
#include <zlib.h>
|
110
|
-
int main(void)
|
111
|
-
{
|
112
|
-
const char *version;
|
113
|
-
version = zlibVersion();
|
114
|
-
|
115
|
-
return 0;
|
116
|
-
}
|
117
|
-
"
|
118
|
-
)
|
119
|
-
|
120
|
-
if(ZLIB_FOUND)
|
121
|
-
CheckCompiles(ZLIB)
|
122
|
-
endif()
|
123
|
-
RequiredPackageFound(ZLIB)
|