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.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +2 -0
  3. data/.gitignore +3 -0
  4. data/.travis.yml +18 -6
  5. data/CHANGELOG.md +14 -1
  6. data/Dockerfile.test +16 -0
  7. data/Gemfile +1 -1
  8. data/Gemfile.lock +21 -21
  9. data/Makefile +13 -2
  10. data/README.md +148 -38
  11. data/Rakefile +2 -0
  12. data/examples/example.rb +3 -3
  13. data/examples/example_filters.rb +36 -0
  14. data/examples/example_formula.rb +1 -3
  15. data/examples/example_hyperlink.rb +20 -0
  16. data/fast_excel.gemspec +1 -1
  17. data/lib/fast_excel.rb +36 -12
  18. data/lib/fast_excel/binding.rb +31 -21
  19. data/lib/fast_excel/binding/chart.rb +20 -1
  20. data/lib/fast_excel/binding/workbook.rb +10 -2
  21. data/lib/fast_excel/binding/worksheet.rb +44 -27
  22. data/libxlsxwriter/.gitignore +1 -0
  23. data/libxlsxwriter/.indent.pro +5 -0
  24. data/libxlsxwriter/CMakeLists.txt +1 -11
  25. data/libxlsxwriter/CONTRIBUTING.md +1 -1
  26. data/libxlsxwriter/Changes.txt +84 -0
  27. data/libxlsxwriter/LICENSE.txt +1 -1
  28. data/libxlsxwriter/Makefile +7 -5
  29. data/libxlsxwriter/Readme.md +1 -1
  30. data/libxlsxwriter/cocoapods/libxlsxwriter-umbrella.h +1 -0
  31. data/libxlsxwriter/include/xlsxwriter.h +2 -2
  32. data/libxlsxwriter/include/xlsxwriter/app.h +2 -2
  33. data/libxlsxwriter/include/xlsxwriter/chart.h +56 -6
  34. data/libxlsxwriter/include/xlsxwriter/chartsheet.h +544 -0
  35. data/libxlsxwriter/include/xlsxwriter/common.h +27 -6
  36. data/libxlsxwriter/include/xlsxwriter/content_types.h +5 -2
  37. data/libxlsxwriter/include/xlsxwriter/core.h +2 -2
  38. data/libxlsxwriter/include/xlsxwriter/custom.h +2 -2
  39. data/libxlsxwriter/include/xlsxwriter/drawing.h +3 -2
  40. data/libxlsxwriter/include/xlsxwriter/format.h +3 -3
  41. data/libxlsxwriter/include/xlsxwriter/hash_table.h +1 -1
  42. data/libxlsxwriter/include/xlsxwriter/packager.h +13 -8
  43. data/libxlsxwriter/include/xlsxwriter/relationships.h +2 -2
  44. data/libxlsxwriter/include/xlsxwriter/shared_strings.h +5 -3
  45. data/libxlsxwriter/include/xlsxwriter/styles.h +9 -4
  46. data/libxlsxwriter/include/xlsxwriter/theme.h +2 -2
  47. data/libxlsxwriter/include/xlsxwriter/utility.h +26 -2
  48. data/libxlsxwriter/include/xlsxwriter/workbook.h +232 -55
  49. data/libxlsxwriter/include/xlsxwriter/worksheet.h +264 -53
  50. data/libxlsxwriter/include/xlsxwriter/xmlwriter.h +3 -1
  51. data/libxlsxwriter/libxlsxwriter.podspec +1 -1
  52. data/libxlsxwriter/src/Makefile +3 -3
  53. data/libxlsxwriter/src/app.c +2 -2
  54. data/libxlsxwriter/src/chart.c +41 -5
  55. data/libxlsxwriter/src/chartsheet.c +508 -0
  56. data/libxlsxwriter/src/content_types.c +12 -4
  57. data/libxlsxwriter/src/core.c +2 -2
  58. data/libxlsxwriter/src/custom.c +2 -2
  59. data/libxlsxwriter/src/drawing.c +114 -17
  60. data/libxlsxwriter/src/format.c +3 -3
  61. data/libxlsxwriter/src/hash_table.c +1 -1
  62. data/libxlsxwriter/src/packager.c +369 -65
  63. data/libxlsxwriter/src/relationships.c +2 -2
  64. data/libxlsxwriter/src/shared_strings.c +18 -4
  65. data/libxlsxwriter/src/styles.c +56 -9
  66. data/libxlsxwriter/src/theme.c +2 -2
  67. data/libxlsxwriter/src/utility.c +53 -6
  68. data/libxlsxwriter/src/workbook.c +372 -56
  69. data/libxlsxwriter/src/worksheet.c +425 -76
  70. data/libxlsxwriter/src/xmlwriter.c +17 -8
  71. data/libxlsxwriter/third_party/minizip/ioapi.c +10 -0
  72. data/libxlsxwriter/third_party/minizip/zip.c +2 -0
  73. data/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.c +2 -2
  74. data/libxlsxwriter/version.txt +1 -1
  75. data/test/tmpfile_test.rb +1 -0
  76. data/test/validations_test.rb +26 -6
  77. data/test/worksheet_test.rb +43 -0
  78. metadata +9 -6
  79. data/libxlsxwriter/.drone.yml +0 -27
  80. data/libxlsxwriter/appveyor.yml +0 -65
  81. 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)