kenai_tools 0.0.7

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.
@@ -0,0 +1,297 @@
1
+ <html><head>
2
+ <!-- $Id: package.html,v 1.18 2004/04/21 13:06:01 dmegginson Exp $ -->
3
+ </head><body>
4
+
5
+ <p> This package provides the core SAX APIs.
6
+ Some SAX1 APIs are deprecated to encourage integration of
7
+ namespace-awareness into designs of new applications
8
+ and into maintenance of existing infrastructure. </p>
9
+
10
+ <p>See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
11
+ for more information about SAX.</p>
12
+
13
+
14
+ <h2> SAX2 Standard Feature Flags </h2>
15
+
16
+ <p> One of the essential characteristics of SAX2 is that it added
17
+ feature flags which can be used to examine and perhaps modify
18
+ parser modes, in particular modes such as validation.
19
+ Since features are identified by (absolute) URIs, anyone
20
+ can define such features.
21
+ Currently defined standard feature URIs have the prefix
22
+ <code>http://xml.org/sax/features/</code> before an identifier such as
23
+ <code>validation</code>. Turn features on or off using
24
+ <em>setFeature</em>. Those standard identifiers are: </p>
25
+
26
+
27
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
28
+ <tr align="center" bgcolor="#ccccff">
29
+ <th>Feature ID</th>
30
+ <th>Access</th>
31
+ <th>Default</th>
32
+ <th>Description</th>
33
+ </tr>
34
+
35
+ <tr>
36
+ <td>external-general-entities</td>
37
+ <td><em>read/write</em></td>
38
+ <td><em>unspecified</em></td>
39
+ <td> Reports whether this parser processes external
40
+ general entities; always true if validating.
41
+ </td>
42
+ </tr>
43
+
44
+ <tr>
45
+ <td>external-parameter-entities</td>
46
+ <td><em>read/write</em></td>
47
+ <td><em>unspecified</em></td>
48
+ <td> Reports whether this parser processes external
49
+ parameter entities; always true if validating.
50
+ </td>
51
+ </tr>
52
+
53
+ <tr>
54
+ <td>is-standalone</td>
55
+ <td>(parsing) <em>read-only</em>, (not parsing) <em>none</em></td>
56
+ <td>not applicable</td>
57
+ <td> May be examined only during a parse, after the
58
+ <em>startDocument()</em> callback has been completed; read-only.
59
+ The value is true if the document specified standalone="yes" in
60
+ its XML declaration, and otherwise is false.
61
+ </td>
62
+ </tr>
63
+
64
+ <tr>
65
+ <td>lexical-handler/parameter-entities</td>
66
+ <td><em>read/write</em></td>
67
+ <td><em>unspecified</em></td>
68
+ <td> A value of "true" indicates that the LexicalHandler will report
69
+ the beginning and end of parameter entities.
70
+ </td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <td>namespaces</td>
75
+ <td><em>read/write</em></td>
76
+ <td>true</td>
77
+ <td> A value of "true" indicates namespace URIs and unprefixed local names
78
+ for element and attribute names will be available.
79
+ </td>
80
+ </tr>
81
+
82
+ <tr>
83
+ <td>namespace-prefixes</td>
84
+ <td><em>read/write</em></td>
85
+ <td>false</td>
86
+ <td> A value of "true" indicates that XML qualified names (with prefixes) and
87
+ attributes (including <em>xmlns*</em> attributes) will be available.
88
+ </td>
89
+ </tr>
90
+
91
+ <tr>
92
+ <td>resolve-dtd-uris</td>
93
+ <td><em>read/write</em></td>
94
+ <td><em>true</em></td>
95
+ <td> A value of "true" indicates that system IDs in declarations will
96
+ be absolutized (relative to their base URIs) before reporting.
97
+ (That is the default behavior for all SAX2 XML parsers.)
98
+ A value of "false" indicates those IDs will not be absolutized;
99
+ parsers will provide the base URI from
100
+ <em>Locator.getSystemId()</em>.
101
+ This applies to system IDs passed in <ul>
102
+ <li><em>DTDHandler.notationDecl()</em>,
103
+ <li><em>DTDHandler.unparsedEntityDecl()</em>, and
104
+ <li><em>DeclHandler.externalEntityDecl()</em>.
105
+ </ul>
106
+ It does not apply to <em>EntityResolver.resolveEntity()</em>,
107
+ which is not used to report declarations, or to
108
+ <em>LexicalHandler.startDTD()</em>, which already provides
109
+ the non-absolutized URI.
110
+ </td>
111
+ </tr>
112
+
113
+ <tr>
114
+ <td>string-interning</td>
115
+ <td><em>read/write</em></td>
116
+ <td><em>unspecified</em></td>
117
+ <td> Has a value of "true" if all XML names (for elements, prefixes,
118
+ attributes, entities, notations, and local names),
119
+ as well as Namespace URIs, will have been interned
120
+ using <em>java.lang.String.intern</em>. This supports fast
121
+ testing of equality/inequality against string constants,
122
+ rather than forcing slower calls to <em>String.equals()</em>.
123
+ </td>
124
+ </tr>
125
+
126
+ <tr>
127
+ <td>unicode-normalization-checking</td>
128
+ <td><em>read/write</em></td>
129
+ <td><em>false</em></td>
130
+ <td> Controls whether the parser reports Unicode normalization
131
+ errors as described in section 2.13 and Appendix B of the
132
+ XML 1.1 Recommendation. If true, Unicode normalization
133
+ errors are reported using the ErrorHandler.error() callback.
134
+ Such errors are not fatal in themselves (though, obviously,
135
+ other Unicode-related encoding errors may be).
136
+ </td>
137
+ </tr>
138
+
139
+ <tr>
140
+ <td>use-attributes2</td>
141
+ <td><em>read-only</em></td>
142
+ <td>not applicable</td>
143
+ <td> Returns "true" if the <em>Attributes</em> objects passed by
144
+ this parser in <em>ContentHandler.startElement()</em>
145
+ implement the <a href="ext/Attributes2.html"
146
+ ><em>org.xml.sax.ext.Attributes2</em></a> interface.
147
+ That interface exposes additional DTD-related information,
148
+ such as whether the attribute was specified in the
149
+ source text rather than defaulted.
150
+ </td>
151
+ </tr>
152
+
153
+ <tr>
154
+ <td>use-locator2</td>
155
+ <td><em>read-only</em></td>
156
+ <td>not applicable</td>
157
+ <td> Returns "true" if the <em>Locator</em> objects passed by
158
+ this parser in <em>ContentHandler.setDocumentLocator()</em>
159
+ implement the <a href="ext/Locator2.html"
160
+ ><em>org.xml.sax.ext.Locator2</em></a> interface.
161
+ That interface exposes additional entity information,
162
+ such as the character encoding and XML version used.
163
+ </td>
164
+ </tr>
165
+
166
+ <tr>
167
+ <td>use-entity-resolver2</td>
168
+ <td><em>read/write</em></td>
169
+ <td><em>true</em></td>
170
+ <td> Returns "true" if, when <em>setEntityResolver</em> is given
171
+ an object implementing the <a href="ext/EntityResolver2.html"
172
+ ><em>org.xml.sax.ext.EntityResolver2</em></a> interface,
173
+ those new methods will be used.
174
+ Returns "false" to indicate that those methods will not be used.
175
+ </td>
176
+ </tr>
177
+
178
+ <tr>
179
+ <td>validation</td>
180
+ <td><em>read/write</em></td>
181
+ <td><em>unspecified</em></td>
182
+ <td> Controls whether the parser is reporting all validity
183
+ errors; if true, all external entities will be read.
184
+ </td>
185
+ </tr>
186
+
187
+ <tr>
188
+ <td>xmlns-uris</td>
189
+ <td><em>read/write</em></td>
190
+ <td><em>false</em></td>
191
+ <td> Controls whether, when the <em>namespace-prefixes</em> feature
192
+ is set, the parser treats namespace declaration attributes as
193
+ being in the <em>http://www.w3.org/2000/xmlns/</em> namespace.
194
+ By default, SAX2 conforms to the original "Namespaces in XML"
195
+ Recommendation, which explicitly states that such attributes are
196
+ not in any namespace.
197
+ Setting this optional flag to "true" makes the SAX2 events conform to
198
+ a later backwards-incompatible revision of that recommendation,
199
+ placing those attributes in a namespace.
200
+ </td>
201
+ </tr>
202
+
203
+ <tr>
204
+ <td>xml-1.1</td>
205
+ <td><em>read-only</em></td>
206
+ <td>not applicable</td>
207
+ <td> Returns "true" if the parser supports both XML 1.1 and XML 1.0.
208
+ Returns "false" if the parser supports only XML 1.0.
209
+ </td>
210
+ </tr>
211
+
212
+ </table>
213
+
214
+ <p> Support for the default values of the
215
+ <em>namespaces</em> and <em>namespace-prefixes</em>
216
+ properties is required.
217
+ Support for any other feature flags is entirely optional.
218
+ </p>
219
+
220
+ <p> For default values not specified by SAX2,
221
+ each XMLReader implementation specifies its default,
222
+ or may choose not to expose the feature flag.
223
+ Unless otherwise specified here,
224
+ implementations may support changing current values
225
+ of these standard feature flags, but not while parsing.
226
+ </p>
227
+
228
+ <h2> SAX2 Standard Handler and Property IDs </h2>
229
+
230
+ <p> For parser interface characteristics that are described
231
+ as objects, a separate namespace is defined. The
232
+ objects in this namespace are again identified by URI, and
233
+ the standard property URIs have the prefix
234
+ <code>http://xml.org/sax/properties/</code> before an identifier such as
235
+ <code>lexical-handler</code> or
236
+ <code>dom-node</code>. Manage those properties using
237
+ <em>setProperty()</em>. Those identifiers are: </p>
238
+
239
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
240
+ <tr align="center" bgcolor="#ccccff">
241
+ <th>Property ID</th>
242
+ <th>Description</th>
243
+ </tr>
244
+
245
+ <tr>
246
+ <td>declaration-handler</td>
247
+ <td> Used to see most DTD declarations except those treated
248
+ as lexical ("document element name is ...") or which are
249
+ mandatory for all SAX parsers (<em>DTDHandler</em>).
250
+ The Object must implement <a href="ext/DeclHandler.html"
251
+ ><em>org.xml.sax.ext.DeclHandler</em></a>.
252
+ </td>
253
+ </tr>
254
+
255
+ <tr>
256
+ <td>document-xml-version</td>
257
+ <td> May be examined only during a parse, after the startDocument()
258
+ callback has been completed; read-only. This property is a
259
+ literal string describing the actual XML version of the document,
260
+ such as "1.0" or "1.1".
261
+ </td>
262
+ </tr>
263
+
264
+ <tr>
265
+ <td>dom-node</td>
266
+ <td> For "DOM Walker" style parsers, which ignore their
267
+ <em>parser.parse()</em> parameters, this is used to
268
+ specify the DOM (sub)tree being walked by the parser.
269
+ The Object must implement the
270
+ <em>org.w3c.dom.Node</em> interface.
271
+ </td>
272
+ </tr>
273
+
274
+ <tr>
275
+ <td>lexical-handler</td>
276
+ <td> Used to see some syntax events that are essential in some
277
+ applications: comments, CDATA delimiters, selected general
278
+ entity inclusions, and the start and end of the DTD
279
+ (and declaration of document element name).
280
+ The Object must implement <a href="ext/LexicalHandler.html"
281
+ ><em>org.xml.sax.ext.LexicalHandler</em></a>.
282
+ </td>
283
+ </tr>
284
+
285
+ <tr>
286
+ <td>xml-string</td>
287
+ <td> Readable only during a parser callback, this exposes a <b>TBS</b>
288
+ chunk of characters responsible for the current event. </td>
289
+ </tr>
290
+
291
+ </table>
292
+
293
+ <p> All of these standard properties are optional;
294
+ XMLReader implementations need not support them.
295
+ </p>
296
+
297
+ </body></html>
Binary file
@@ -0,0 +1,4 @@
1
+ The files in this directory are used for test data.
2
+
3
+ Hi there! This is a file with some text in it. This is a sentence. This is
4
+ another sentence.
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require "kenai_tools"
5
+
6
+ RSpec.configure do |c|
7
+ # c.filter = {:focus => true}
8
+ c.exclusion_filter = {:exclude => true}
9
+ end
metadata ADDED
@@ -0,0 +1,222 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kenai_tools
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 7
10
+ version: 0.0.7
11
+ platform: ruby
12
+ authors:
13
+ - Edwin Goei
14
+ - Project Kenai Team
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-09-27 00:00:00 -07:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: rspec
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ hash: 9
31
+ segments:
32
+ - 2
33
+ - 5
34
+ version: "2.5"
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 0
49
+ version: "1.0"
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: gemcutter
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: rest-client
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 1
77
+ - 6
78
+ version: "1.6"
79
+ type: :runtime
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: json
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ hash: 5
90
+ segments:
91
+ - 1
92
+ - 5
93
+ version: "1.5"
94
+ type: :runtime
95
+ version_requirements: *id005
96
+ - !ruby/object:Gem::Dependency
97
+ name: highline
98
+ prerelease: false
99
+ requirement: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 1
107
+ - 6
108
+ version: "1.6"
109
+ type: :runtime
110
+ version_requirements: *id006
111
+ description: Tools for sites such as java.net that are hosted on the Kenai platform. Use dlutil to upload and download files.
112
+ email:
113
+ - edwin.goei@oracle.com
114
+ executables:
115
+ - dlutil
116
+ extensions: []
117
+
118
+ extra_rdoc_files: []
119
+
120
+ files:
121
+ - .gitignore
122
+ - .idea/.name
123
+ - .idea/.rakeTasks
124
+ - .idea/encodings.xml
125
+ - .idea/kenai_tools.iml
126
+ - .idea/misc.xml
127
+ - .idea/modules.xml
128
+ - .idea/vcs.xml
129
+ - Gemfile
130
+ - README.md
131
+ - Rakefile
132
+ - bin/dlutil
133
+ - kenai_tools.gemspec
134
+ - lib/kenai_tools.rb
135
+ - lib/kenai_tools/downloads_client.rb
136
+ - lib/kenai_tools/kenai_client.rb
137
+ - lib/kenai_tools/version.rb
138
+ - spec/downloads_client_spec.rb
139
+ - spec/fixtures/data/irs_docs/irs-form-1040.pdf
140
+ - spec/fixtures/data/irs_docs/irs-p555.pdf
141
+ - spec/fixtures/data/sax.tgz
142
+ - spec/fixtures/data/sax2/.cvsignore
143
+ - spec/fixtures/data/sax2/CHANGES
144
+ - spec/fixtures/data/sax2/COPYING
145
+ - spec/fixtures/data/sax2/ChangeLog
146
+ - spec/fixtures/data/sax2/Makefile
147
+ - spec/fixtures/data/sax2/README
148
+ - spec/fixtures/data/sax2/build.xml
149
+ - spec/fixtures/data/sax2/src/SAXDump.java
150
+ - spec/fixtures/data/sax2/src/SAXTest.java
151
+ - spec/fixtures/data/sax2/src/org/xml/sax/Attributes.java
152
+ - spec/fixtures/data/sax2/src/org/xml/sax/package.html
153
+ - spec/fixtures/data/sax2r2.jar
154
+ - spec/fixtures/data/text1.txt
155
+ - spec/spec_helper.rb
156
+ has_rdoc: true
157
+ homepage: http://kenai.com/projects/kenaiapis
158
+ licenses: []
159
+
160
+ post_install_message: |+
161
+
162
+ ==============================================================================
163
+
164
+ Thanks for installing kenai_tools. Run the following command for what to do
165
+ next:
166
+
167
+ dlutil --help
168
+
169
+ Warning: this tool is not yet supported on Windows. Please use a unix-based
170
+ OS. For more info, see http://kenai.com/jira/browse/KENAI-2853.
171
+
172
+ ==============================================================================
173
+
174
+
175
+ rdoc_options: []
176
+
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ hash: 3
185
+ segments:
186
+ - 0
187
+ version: "0"
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ hash: 3
194
+ segments:
195
+ - 0
196
+ version: "0"
197
+ requirements: []
198
+
199
+ rubyforge_project: kenai_tools
200
+ rubygems_version: 1.6.2
201
+ signing_key:
202
+ specification_version: 3
203
+ summary: Tools for sites hosted on the Kenai platform. Use dlutil to upload and download files.
204
+ test_files:
205
+ - spec/downloads_client_spec.rb
206
+ - spec/fixtures/data/irs_docs/irs-form-1040.pdf
207
+ - spec/fixtures/data/irs_docs/irs-p555.pdf
208
+ - spec/fixtures/data/sax.tgz
209
+ - spec/fixtures/data/sax2/.cvsignore
210
+ - spec/fixtures/data/sax2/CHANGES
211
+ - spec/fixtures/data/sax2/COPYING
212
+ - spec/fixtures/data/sax2/ChangeLog
213
+ - spec/fixtures/data/sax2/Makefile
214
+ - spec/fixtures/data/sax2/README
215
+ - spec/fixtures/data/sax2/build.xml
216
+ - spec/fixtures/data/sax2/src/SAXDump.java
217
+ - spec/fixtures/data/sax2/src/SAXTest.java
218
+ - spec/fixtures/data/sax2/src/org/xml/sax/Attributes.java
219
+ - spec/fixtures/data/sax2/src/org/xml/sax/package.html
220
+ - spec/fixtures/data/sax2r2.jar
221
+ - spec/fixtures/data/text1.txt
222
+ - spec/spec_helper.rb