openxml-package 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -14,7 +14,8 @@ rdoc
14
14
  spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
- tmp
17
+ /tmp/*
18
+ !/tmp/.keep
18
19
  *.bundle
19
20
  *.so
20
21
  *.o
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A Ruby implementation of [DocumentFormat.OpenXml.Packaging.OpenXmlPackage](http://msdn.microsoft.com/en-us/library/documentformat.openxml.packaging.openxmlpackage_members(v=office.14).aspx) from Microsoft's Open XML SDK.
4
4
 
5
- The base class for [Rocx::Package](https://github.com/openxml/openxml-docx/blob/master/lib/openxml-docx/package.rb), [Xlsx::Package](https://github.com/openxml/openxml-xlsx/blob/master/lib/openxml-xlsx/package.rb), and [Pptx::Package](https://github.com/openxml/openxml-pptx/blob/master/lib/openxml-pptx/package.rb).
5
+ The base class for [Docx::Package](https://github.com/openxml/openxml-docx/blob/master/lib/openxml/docx/package.rb), [Xlsx::Package](https://github.com/openxml/openxml-xlsx/blob/master/lib/openxml/xlsx/package.rb), and [Pptx::Package](https://github.com/openxml/openxml-pptx).
6
6
 
7
7
 
8
8
  ## Installation
@@ -1,3 +1,3 @@
1
1
  module OpenXmlPackage
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,3 +1,5 @@
1
+ require "nokogiri"
2
+
1
3
  module OpenXml
2
4
  module Parts
3
5
  class ContentTypes < OpenXml::Part
@@ -9,7 +11,7 @@ module OpenXml
9
11
  }.freeze
10
12
 
11
13
  def self.parse(xml)
12
- document = Nokogiri(xml)
14
+ document = Nokogiri::XML(xml)
13
15
  self.new.tap do |part|
14
16
  document.css("Default").each do |default|
15
17
  part.add_default default["Extension"], default["ContentType"]
File without changes
metadata CHANGED
@@ -1,201 +1,228 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-package
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bob Lail
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2016-02-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rubyzip
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: 1.1.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.1.0
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: nokogiri
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: ox
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: bundler
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '1.6'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '1.6'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rake
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rails
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '3.2'
90
- - - "<"
102
+ - - <
91
103
  - !ruby/object:Gem::Version
92
104
  version: '5.0'
93
105
  type: :development
94
106
  prerelease: false
95
107
  version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
96
109
  requirements:
97
- - - ">="
110
+ - - ! '>='
98
111
  - !ruby/object:Gem::Version
99
112
  version: '3.2'
100
- - - "<"
113
+ - - <
101
114
  - !ruby/object:Gem::Version
102
115
  version: '5.0'
103
116
  - !ruby/object:Gem::Dependency
104
117
  name: minitest
105
118
  requirement: !ruby/object:Gem::Requirement
119
+ none: false
106
120
  requirements:
107
- - - ">="
121
+ - - ! '>='
108
122
  - !ruby/object:Gem::Version
109
123
  version: '0'
110
124
  type: :development
111
125
  prerelease: false
112
126
  version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
113
128
  requirements:
114
- - - ">="
129
+ - - ! '>='
115
130
  - !ruby/object:Gem::Version
116
131
  version: '0'
117
132
  - !ruby/object:Gem::Dependency
118
133
  name: minitest-reporters
119
134
  requirement: !ruby/object:Gem::Requirement
135
+ none: false
120
136
  requirements:
121
- - - ">="
137
+ - - ! '>='
122
138
  - !ruby/object:Gem::Version
123
139
  version: '0'
124
140
  type: :development
125
141
  prerelease: false
126
142
  version_requirements: !ruby/object:Gem::Requirement
143
+ none: false
127
144
  requirements:
128
- - - ">="
145
+ - - ! '>='
129
146
  - !ruby/object:Gem::Version
130
147
  version: '0'
131
148
  - !ruby/object:Gem::Dependency
132
149
  name: minitest-reporters-turn_reporter
133
150
  requirement: !ruby/object:Gem::Requirement
151
+ none: false
134
152
  requirements:
135
- - - ">="
153
+ - - ! '>='
136
154
  - !ruby/object:Gem::Version
137
155
  version: '0'
138
156
  type: :development
139
157
  prerelease: false
140
158
  version_requirements: !ruby/object:Gem::Requirement
159
+ none: false
141
160
  requirements:
142
- - - ">="
161
+ - - ! '>='
143
162
  - !ruby/object:Gem::Version
144
163
  version: '0'
145
164
  - !ruby/object:Gem::Dependency
146
165
  name: pry
147
166
  requirement: !ruby/object:Gem::Requirement
167
+ none: false
148
168
  requirements:
149
- - - ">="
169
+ - - ! '>='
150
170
  - !ruby/object:Gem::Version
151
171
  version: '0'
152
172
  type: :development
153
173
  prerelease: false
154
174
  version_requirements: !ruby/object:Gem::Requirement
175
+ none: false
155
176
  requirements:
156
- - - ">="
177
+ - - ! '>='
157
178
  - !ruby/object:Gem::Version
158
179
  version: '0'
159
180
  - !ruby/object:Gem::Dependency
160
181
  name: rr
161
182
  requirement: !ruby/object:Gem::Requirement
183
+ none: false
162
184
  requirements:
163
- - - ">="
185
+ - - ! '>='
164
186
  - !ruby/object:Gem::Version
165
187
  version: '0'
166
188
  type: :development
167
189
  prerelease: false
168
190
  version_requirements: !ruby/object:Gem::Requirement
191
+ none: false
169
192
  requirements:
170
- - - ">="
193
+ - - ! '>='
171
194
  - !ruby/object:Gem::Version
172
195
  version: '0'
173
196
  - !ruby/object:Gem::Dependency
174
197
  name: simplecov
175
198
  requirement: !ruby/object:Gem::Requirement
199
+ none: false
176
200
  requirements:
177
- - - ">="
201
+ - - ! '>='
178
202
  - !ruby/object:Gem::Version
179
203
  version: '0'
180
204
  type: :development
181
205
  prerelease: false
182
206
  version_requirements: !ruby/object:Gem::Requirement
207
+ none: false
183
208
  requirements:
184
- - - ">="
209
+ - - ! '>='
185
210
  - !ruby/object:Gem::Version
186
211
  version: '0'
187
212
  - !ruby/object:Gem::Dependency
188
213
  name: shoulda-context
189
214
  requirement: !ruby/object:Gem::Requirement
215
+ none: false
190
216
  requirements:
191
- - - ">="
217
+ - - ! '>='
192
218
  - !ruby/object:Gem::Version
193
219
  version: '0'
194
220
  type: :development
195
221
  prerelease: false
196
222
  version_requirements: !ruby/object:Gem::Requirement
223
+ none: false
197
224
  requirements:
198
- - - ">="
225
+ - - ! '>='
199
226
  - !ruby/object:Gem::Version
200
227
  version: '0'
201
228
  description: A Ruby implementation of OpenXmlPackage
@@ -205,7 +232,7 @@ executables: []
205
232
  extensions: []
206
233
  extra_rdoc_files: []
207
234
  files:
208
- - ".gitignore"
235
+ - .gitignore
209
236
  - Gemfile
210
237
  - LICENSE.txt
211
238
  - README.md
@@ -231,29 +258,37 @@ files:
231
258
  - test/part_test.rb
232
259
  - test/support/sample.docx
233
260
  - test/test_helper.rb
261
+ - tmp/.keep
234
262
  homepage: https://github.com/openxml/openxml-package
235
263
  licenses:
236
264
  - MIT
237
- metadata: {}
238
265
  post_install_message:
239
266
  rdoc_options: []
240
267
  require_paths:
241
268
  - lib
242
269
  required_ruby_version: !ruby/object:Gem::Requirement
270
+ none: false
243
271
  requirements:
244
- - - ">="
272
+ - - ! '>='
245
273
  - !ruby/object:Gem::Version
246
274
  version: '0'
275
+ segments:
276
+ - 0
277
+ hash: 281021661309613493
247
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
+ none: false
248
280
  requirements:
249
- - - ">="
281
+ - - ! '>='
250
282
  - !ruby/object:Gem::Version
251
283
  version: '0'
284
+ segments:
285
+ - 0
286
+ hash: 281021661309613493
252
287
  requirements: []
253
288
  rubyforge_project:
254
- rubygems_version: 2.4.8
289
+ rubygems_version: 1.8.23.2
255
290
  signing_key:
256
- specification_version: 4
291
+ specification_version: 3
257
292
  summary: A Ruby implementation of OpenXmlPackage
258
293
  test_files:
259
294
  - test/content_types_test.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e4ac578cfd771b07653d4fdc0fec13bf8880369e
4
- data.tar.gz: 03a116e7818d9fcc01c9a1384bc678227a4b2f1e
5
- SHA512:
6
- metadata.gz: be40b47eda1c018675dd49cf3f7979fbd32bf9623a5528ab18697dbb25cce9c4c3c544a57071fca663749bfe015a9fdc8b07f00709c60670fb6b2e978ec1ec81
7
- data.tar.gz: 1a3a835d1deb48d3dd0e376552abda27754a07762fcda8c09236582f01ef800b2349f995e97406fe13699a76aac5b5dcae1b1a6d1b8a28051daed313888413a1