xlsx_writer 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1764266278de144b2b092f520beb3f9e6664a911
4
- data.tar.gz: 6d6cc387b494b82393dd286bfbdebfc488c8f104
3
+ metadata.gz: 580013c39a4eb341f9b6ea0e1293f20d6fab726c
4
+ data.tar.gz: 066438af1d66a2200367faec8cd09223df78fffa
5
5
  SHA512:
6
- metadata.gz: 4d4514e6c7d1cc29f86529455e052cb61625780df4eabcd2b52a0ef304e089ede7893fa19dd908b14aa38ed9e28e4804c38cd98dafd94b61816c6abcb5871b9c
7
- data.tar.gz: b5547de43d51b73b160a5835da2d9af3f8aef476e1524b3823b4b60395ee731905543d887f6e27e153ecb3e630655b72123a9edbf643a79d3a4e4df4aca7004d
6
+ metadata.gz: 703364ebfc7194612cc0fa212565a3a5034eeb2afce75a208e0ef0b8804923e9966f211f0001a237bf490ed94f5d53a4da0c164d876e91e465eb48c723b604db
7
+ data.tar.gz: 2d9347237ef92fb5a1303227d89eaf6d1b27b92e8169785e814f4063aed58fb2caf67fa20c185afe03fd08fbfd75715e32c01a2f14b027c89c1f774b6b06bdbb
data/CHANGELOG CHANGED
@@ -1,3 +1,14 @@
1
+ 0.4.3 / 2014-05-20
2
+
3
+ * Enhancements
4
+
5
+ * note in gemspec that this is MIT license
6
+ * use MurmurHash3::V128.str_digest instead of Digest::MD5 for shared strings
7
+
8
+ * Bug fixes
9
+
10
+ * change `builtinId` to `numFmtId` so it works in Excel 2007 and others
11
+
1
12
  0.4.2 / 2014-04-18
2
13
 
3
14
  * Enhancements
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Dee Zsombor, Justin Beck, Seamus Abshere
1
+ Copyright (c) 2014 Dee Zsombor, Justin Beck, Seamus Abshere
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
19
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown CHANGED
@@ -2,12 +2,6 @@
2
2
 
3
3
  Writes (doesn't read or modify) XLSX files.
4
4
 
5
- ## Real-world usage
6
-
7
- <p><a href="http://brighterplanet.com"><img src="https://s3.amazonaws.com/static.brighterplanet.com/assets/logos/flush-left/inline/green/rasterized/brighter_planet-160-transparent.png" alt="Brighter Planet logo"/></a></p>
8
-
9
- We use `xlsx_writer` for [sustainability analytics at Brighter Planet](http://brighterplanet.com/case_studies).
10
-
11
5
  ## Credit
12
6
 
13
7
  Based on the [original simple\_xlsx\_writer gem](https://github.com/harvesthq/simple_xlsx_writer) and [patches by mumboe](https://github.com/mumboe/simple_xlsx_writer)
@@ -27,7 +21,14 @@ Features not present in simple_xlsx_writer:
27
21
 
28
22
  ## Wishlist
29
23
 
30
- 1. Optional shared string optimizer
24
+ 1. real documentation
25
+ 1. real tests
26
+
27
+ ## Corporate support
28
+
29
+ <p><a href="http://faraday.io"><img src="https://s3.amazonaws.com/creative.faraday.io/logo.png" alt="Faraday logo"/></a></p>
30
+
31
+ We use `xlsx_writer` for [marketing analytics at Faraday](http://faraday.io).
31
32
 
32
33
  ## Example
33
34
 
@@ -92,4 +93,4 @@ Features not present in simple_xlsx_writer:
92
93
 
93
94
  ## Copyright
94
95
 
95
- Copyright (c) 2012 Dee Zsombor, Justin Beck, Seamus Abshere. See LICENSE for details.
96
+ Copyright (c) 2014 Dee Zsombor, Justin Beck, Seamus Abshere. See LICENSE for details.
@@ -1,4 +1,4 @@
1
- require 'digest/md5'
1
+ require 'murmurhash3'
2
2
 
3
3
  class XlsxWriter
4
4
  class SharedStrings
@@ -18,12 +18,12 @@ class XlsxWriter
18
18
  end
19
19
 
20
20
  def relative_path
21
- 'xl/sharedstrings.xml'
21
+ 'xl/sharedStrings.xml'
22
22
  end
23
23
 
24
24
  def ndx(str)
25
25
  @mutex.synchronize do
26
- digest = Digest::MD5.digest str
26
+ digest = MurmurHash3::V128.str_digest str
27
27
  unless ndx = indexes[digest]
28
28
  ndx = indexes.length
29
29
  indexes[digest] = ndx
@@ -1,3 +1,3 @@
1
1
  class XlsxWriter
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
@@ -29,7 +29,7 @@
29
29
  <!-- general -->
30
30
  <xf />
31
31
  <!-- currency -->
32
- <xf builtinId="4" />
32
+ <xf numFmtId="4" />
33
33
  </cellStyleXfs>
34
34
 
35
35
  <cellXfs count="10">
data/xlsx_writer.gemspec CHANGED
@@ -9,10 +9,12 @@ Gem::Specification.new do |s|
9
9
  s.homepage = "https://github.com/seamusabshere/xlsx_writer"
10
10
  s.summary = %{Writes XLSX files. Minimal XML and style. Supports autofilters and headers/footers with images and page numbers.}
11
11
  s.description = %{Writes XLSX files. Minimal XML and style. Supports autofilters and headers/footers with images and page numbers.}
12
+ s.license = 'MIT'
12
13
 
13
14
  s.add_runtime_dependency 'activesupport'
14
15
  s.add_runtime_dependency 'fast_xs'
15
16
  s.add_runtime_dependency 'unix_utils'
17
+ s.add_runtime_dependency 'murmurhash3', '>=0.1.4'
16
18
 
17
19
  s.add_development_dependency 'minitest'
18
20
  s.add_development_dependency 'minitest-reporters'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlsx_writer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dee Zsombor
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-18 00:00:00.000000000 Z
13
+ date: 2014-05-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -54,6 +54,20 @@ dependencies:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: murmurhash3
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.1.4
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 0.1.4
57
71
  - !ruby/object:Gem::Dependency
58
72
  name: minitest
59
73
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +193,8 @@ files:
179
193
  - unpack.rb
180
194
  - xlsx_writer.gemspec
181
195
  homepage: https://github.com/seamusabshere/xlsx_writer
182
- licenses: []
196
+ licenses:
197
+ - MIT
183
198
  metadata: {}
184
199
  post_install_message:
185
200
  rdoc_options: []
@@ -207,3 +222,4 @@ test_files:
207
222
  - test/support/image1.emf
208
223
  - test/support/image2.emf
209
224
  - test/test_xlsx_writer.rb
225
+ has_rdoc: