diff options
| author | Stefan Daschek <[email protected]> | 2013-07-08 14:15:32 +0200 |
|---|---|---|
| committer | Stefan Daschek <[email protected]> | 2013-07-08 14:15:32 +0200 |
| commit | b7e14c242c0d9fc3af7b7ad969ec25df21475547 (patch) | |
| tree | 6e08e812a46ebd19463db88027c77f21760d2c87 /axlsx.gemspec | |
| parent | a60d1889744205dbc86ce0e23f8ed04ba7093d23 (diff) | |
| download | caxlsx-b7e14c242c0d9fc3af7b7ad969ec25df21475547.tar.gz caxlsx-b7e14c242c0d9fc3af7b7ad969ec25df21475547.zip | |
Make sure serializing axlsx packages with identical contents always results in identical zip files.
This improves the possibilites for caching and/or consolidating the generated zip (xlsx) files.
Up to now, serializing the same package at different times resulted in different zip files because of the timestamp in the zip entry metadata.
Note: To generate identical packages (and thus identical zip files), you'll have set Core#created explicitly, eg. with `Package.new(created_at: Time.local(2013, 1, 1)`.
Diffstat (limited to 'axlsx.gemspec')
| -rw-r--r-- | axlsx.gemspec | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/axlsx.gemspec b/axlsx.gemspec index 9249452d..630a9de7 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -22,6 +22,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'yard' s.add_development_dependency 'kramdown' + s.add_development_dependency 'timecop', "~> 0.6.1" s.required_ruby_version = '>= 1.8.7' s.require_path = 'lib' end |
