openxml-package 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +21 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/openxml/builder/element.rb +2 -0
- data/lib/openxml/has_attributes.rb +1 -1
- data/lib/openxml/package.rb +0 -1
- data/lib/openxml-package/version.rb +1 -1
- data/openxml-package.gemspec +1 -1
- metadata +11 -12
- data/.travis.yml +0 -6
- data/lib/openxml/rubyzip_fix.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d979b5a2556bb7813c72892f2b1a9f2d4cb86218c5475f9d7ca687bac05bdbf
|
4
|
+
data.tar.gz: dbe147781818f38c87a18e3657d9333fa5baf661f6d076ce2d92649b3ef6d190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c57f3ba33337a750022adc371ebea813324924645606dedd0b7b2954f696af2aefb04cf8daf0a451ea97a937d180d77a76e5208c983fad570d4e1ab329243711
|
7
|
+
data.tar.gz: a3195773e3c9dd112b929f21cec5618a4522133bc777510d731c09ea6163f5b8c78ee773fad19f4ab2be9e5c83db56f610875168cfd3a43cb3b068edd0322778
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: Tests
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
ruby:
|
6
|
+
name: Ruby Tests
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby-version: [ "3.0", "3.1", "3.2", "3.3" ]
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- name: Checkout
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- name: Setup Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
bundler-cache: true
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
|
+
- name: Run Tests
|
21
|
+
run: bundle exec rake test
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/openxml/package.rb
CHANGED
data/openxml-package.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubyzip"
|
22
|
+
spec.add_dependency "rubyzip", "~> 2.3"
|
23
23
|
spec.add_dependency "nokogiri"
|
24
24
|
spec.add_dependency "ox"
|
25
25
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openxml-package
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,8 +185,8 @@ executables: []
|
|
185
185
|
extensions: []
|
186
186
|
extra_rdoc_files: []
|
187
187
|
files:
|
188
|
+
- ".github/workflows/ci.yml"
|
188
189
|
- ".gitignore"
|
189
|
-
- ".travis.yml"
|
190
190
|
- CHANGELOG.md
|
191
191
|
- Gemfile
|
192
192
|
- LICENSE.txt
|
@@ -223,7 +223,6 @@ files:
|
|
223
223
|
- lib/openxml/properties/value_property.rb
|
224
224
|
- lib/openxml/relationship.rb
|
225
225
|
- lib/openxml/render_when_empty.rb
|
226
|
-
- lib/openxml/rubyzip_fix.rb
|
227
226
|
- lib/openxml/types.rb
|
228
227
|
- lib/openxml/unmet_requirement.rb
|
229
228
|
- openxml-package.gemspec
|
@@ -232,7 +231,7 @@ homepage: https://github.com/openxml/openxml-package
|
|
232
231
|
licenses:
|
233
232
|
- MIT
|
234
233
|
metadata: {}
|
235
|
-
post_install_message:
|
234
|
+
post_install_message:
|
236
235
|
rdoc_options: []
|
237
236
|
require_paths:
|
238
237
|
- lib
|
@@ -247,8 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
246
|
- !ruby/object:Gem::Version
|
248
247
|
version: '0'
|
249
248
|
requirements: []
|
250
|
-
rubygems_version: 3.
|
251
|
-
signing_key:
|
249
|
+
rubygems_version: 3.4.19
|
250
|
+
signing_key:
|
252
251
|
specification_version: 4
|
253
252
|
summary: A Ruby implementation of OpenXmlPackage from Microsoft's Open XML SDK
|
254
253
|
test_files: []
|
data/.travis.yml
DELETED
data/lib/openxml/rubyzip_fix.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require "zip"
|
2
|
-
|
3
|
-
module Zip
|
4
|
-
class InputStream
|
5
|
-
protected
|
6
|
-
|
7
|
-
alias _old_get_io get_io
|
8
|
-
|
9
|
-
# The problem in RubyZip 1.1.0 is that we only call `seek`
|
10
|
-
# when `io` is a File. We need to move the cursor to the
|
11
|
-
# right position when `io` is a StringIO as well.
|
12
|
-
def get_io(io, offset=0)
|
13
|
-
io = ::File.open(io, "rb") unless io.is_a?(IO) || io.is_a?(StringIO)
|
14
|
-
io.seek(offset, ::IO::SEEK_SET)
|
15
|
-
io
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|