epubcheck-ruby 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/epubcheck-ruby.gemspec +26 -0
- data/exe/epubcheck +7 -0
- data/jar/epubcheck-4.0.2/COPYING.txt +19 -0
- data/jar/epubcheck-4.0.2/README.txt +60 -0
- data/jar/epubcheck-4.0.2/THIRD-PARTY.txt +44 -0
- data/jar/epubcheck-4.0.2/epubcheck.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/Saxon-HE-9.5.1-5.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/common-image-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/common-io-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/common-lang-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/commons-compress-1.5.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/guava-14.0.1.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/imageio-core-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/imageio-jpeg-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/imageio-metadata-3.1.2.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/jackson-core-asl-1.9.12.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/jackson-mapper-asl-1.9.12.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/jing-20120724.0.0.jar +0 -0
- data/jar/epubcheck-4.0.2/lib/sac-1.3.jar +0 -0
- data/jar/epubcheck-4.0.2/licenses/Apache-2.0.txt +201 -0
- data/jar/epubcheck-4.0.2/licenses/BSD-3-Clause.txt +27 -0
- data/jar/epubcheck-4.0.2/licenses/MPL-1.0.txt +360 -0
- data/jar/epubcheck-4.0.2/licenses/W3C.txt +16 -0
- data/lib/epubcheck/ruby.rb +7 -0
- data/lib/epubcheck/ruby/cli.rb +16 -0
- data/lib/epubcheck/ruby/version.rb +5 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9daa189c6532de3ff1549767dd2c391358c77207
|
4
|
+
data.tar.gz: bab3b93d2e4b945f8a9ca88c8c3ba1c1843cc1a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1454c5fcfc1fa57da03e94c9a9e798141b8c8bb66205421396b8faaf41a1258b1743cd5cfe06e8ec10c9a11025586fc225736ecdd5984ada073a61f2330e5fd8
|
7
|
+
data.tar.gz: 2ef1b34b4d2e0b5360886d594de7282e4cc041e7771aabb8fc38dbdd893d20043074d9afd4d35895eda24d5e3eca719c72579b6f63ece5b676f60dbfb5b97fc4
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 takahashim
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Epubcheck::Ruby
|
2
|
+
|
3
|
+
This rubygem provide simple wrapper command of epubcheck, epub cheker library in Java by IDPF (https://github.com/IDPF/epubcheck)
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
$ epubcheck some-epub-file.epub
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Before installation of this command, you need to install Java and Ruby.
|
12
|
+
|
13
|
+
Install it yourself with `gem` command as:
|
14
|
+
|
15
|
+
$ gem install epubcheck-ruby
|
16
|
+
|
17
|
+
Or add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'epubcheck-ruby'
|
21
|
+
```
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
$ bundle
|
26
|
+
|
27
|
+
|
28
|
+
## Development
|
29
|
+
|
30
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
31
|
+
|
32
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/takahashim/epubcheck-ruby.
|
37
|
+
|
38
|
+
|
39
|
+
## License
|
40
|
+
|
41
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
42
|
+
|
43
|
+
Original epubcheck library is available under the terms of the [New BSD License](https://opensource.org/licenses/BSD-3-Clause)
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "epubcheck/ruby"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'epubcheck/ruby/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "epubcheck-ruby"
|
8
|
+
spec.version = Epubcheck::Ruby::VERSION
|
9
|
+
spec.authors = ["takahashim"]
|
10
|
+
spec.email = ["takahashimm@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{wrapper command of epubcheck (IDPF)}
|
13
|
+
spec.description = %q{wrapper command of epubcheck (IDPF)}
|
14
|
+
spec.homepage = "https://github.com/takahashim/epubcheck-ruby"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
end
|
data/exe/epubcheck
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2007 Adobe Systems Incorporated
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
+
subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
@@ -0,0 +1,60 @@
|
|
1
|
+
This folder contains the distribution of epubcheck project.
|
2
|
+
|
3
|
+
EpubCheck is a tool to validate IDPF Epub files. It can detect many
|
4
|
+
types of errors in Epub. OCF container structure, OPF and OPS mark-up,
|
5
|
+
and internal reference consistency are checked. EpubCheck can be run
|
6
|
+
as a standalone command-line tool, installed as a web application or
|
7
|
+
used as a library.
|
8
|
+
|
9
|
+
EpubCheck project home: https://github.com/idpf/epubcheck
|
10
|
+
|
11
|
+
|
12
|
+
RUNNING
|
13
|
+
|
14
|
+
To run the tool you need Java Runtime (1.6 or above). Any OS should do. Run
|
15
|
+
it from the command line:
|
16
|
+
|
17
|
+
java -jar epubcheck.jar file.epub
|
18
|
+
|
19
|
+
All detected errors are simply printed to stderr.
|
20
|
+
|
21
|
+
|
22
|
+
USING AS A LIBRARY
|
23
|
+
|
24
|
+
You can also use EpubCheck as a library in your Java application. EpubCheck
|
25
|
+
public interfaces can be found in com.adobe.epubcheck.api package. EpubCheck
|
26
|
+
class can be used to instantiate a validation engine. Use one of its
|
27
|
+
constructors and then call validate() method. Report is an interface that
|
28
|
+
you can implement to get a list of the errors and warnings reported by the
|
29
|
+
validation engine (instead of the error list being printed out).
|
30
|
+
|
31
|
+
|
32
|
+
LICENSING
|
33
|
+
|
34
|
+
See COPYING.txt and THIRD-PARTY.txt
|
35
|
+
|
36
|
+
|
37
|
+
AUTHORS / CONTRIBUTORS
|
38
|
+
|
39
|
+
Peter Sorotokin
|
40
|
+
Garth Conboy
|
41
|
+
Markus Gylling
|
42
|
+
Piotr Kula
|
43
|
+
Paul Norton
|
44
|
+
Jessica Hekman
|
45
|
+
Liza Daly
|
46
|
+
George Bina
|
47
|
+
Bogdan Iordache
|
48
|
+
Ionut-Maxim Margelatu
|
49
|
+
Romain Deltour
|
50
|
+
Thomas Ledoux
|
51
|
+
Tobias Fischer
|
52
|
+
Steve Antoch
|
53
|
+
Arwen Pond
|
54
|
+
Masayoshi Takahashi
|
55
|
+
Satoshi KOJIMA
|
56
|
+
|
57
|
+
|
58
|
+
Most of the EpubCheck functionality comes from the schema validation tool Jing
|
59
|
+
and schemas that were developed by IDPF and DAISY. EpubCheck development was
|
60
|
+
largely done at Adobe Systems.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Licenses of third-party dependencies
|
2
|
+
------------------------------------
|
3
|
+
|
4
|
+
Guava: Google Core Libraries for Java, 14.0.1
|
5
|
+
The Apache Software License, Version 2.0
|
6
|
+
|
7
|
+
TwelveMonkeys :: Common :: Image, 3.1.2
|
8
|
+
New BSD License
|
9
|
+
|
10
|
+
TwelveMonkeys :: Common :: IO, 3.1.2
|
11
|
+
New BSD License
|
12
|
+
|
13
|
+
TwelveMonkeys :: Common :: Language support, 3.1.2
|
14
|
+
New BSD License
|
15
|
+
|
16
|
+
TwelveMonkeys :: ImageIO :: Core, 3.1.2
|
17
|
+
New BSD License
|
18
|
+
|
19
|
+
TwelveMonkeys :: ImageIO :: JPEG plugin, 3.1.2
|
20
|
+
New BSD License
|
21
|
+
|
22
|
+
TwelveMonkeys :: ImageIO :: Metadata, 3.1.2
|
23
|
+
New BSD License
|
24
|
+
|
25
|
+
Saxon-HE, 9.5.1-5
|
26
|
+
Mozilla Public License Version 2.0
|
27
|
+
|
28
|
+
Commons Compress, 1.5
|
29
|
+
The Apache Software License, Version 2.0
|
30
|
+
|
31
|
+
Jackson, 1.9.12
|
32
|
+
The Apache Software License, Version 2.0
|
33
|
+
|
34
|
+
Data Mapper for Jackson, 1.9.12
|
35
|
+
The Apache Software License, Version 2.0
|
36
|
+
|
37
|
+
Jing, 20120724.0.0
|
38
|
+
New BSD License
|
39
|
+
|
40
|
+
Simple API for CSS, 1.3
|
41
|
+
The W3C Software License
|
42
|
+
|
43
|
+
|
44
|
+
Copies of the licenses are provided in the 'licenses' directory.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Copyright (c) {{YEAR}}, {{OWNER}}
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or
|
12
|
+
other materials provided with the distribution.
|
13
|
+
|
14
|
+
Neither the name of {{the ORGANIZATION nor the names of its contributors}} may
|
15
|
+
be used to endorse or promote products derived from this software without
|
16
|
+
specific prior written permission.
|
17
|
+
|
18
|
+
THIS SOFTWARE IS PROVIDED BY {{THE COPYRIGHT HOLDERS AND CONTRIBUTORS}} "AS IS"
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL {{THE COPYRIGHT HOLDER OR CONTRIBUTORS}} BE
|
22
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
23
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
24
|
+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
25
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
26
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
27
|
+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,360 @@
|
|
1
|
+
MOZILLA PUBLIC LICENSE
|
2
|
+
Version 1.0
|
3
|
+
|
4
|
+
----------------
|
5
|
+
|
6
|
+
1. Definitions.
|
7
|
+
|
8
|
+
1.1. ``Contributor'' means each entity that creates or contributes to
|
9
|
+
the creation of Modifications.
|
10
|
+
|
11
|
+
1.2. ``Contributor Version'' means the combination of the Original
|
12
|
+
Code, prior Modifications used by a Contributor, and the Modifications
|
13
|
+
made by that particular Contributor.
|
14
|
+
|
15
|
+
1.3. ``Covered Code'' means the Original Code or Modifications or the
|
16
|
+
combination of the Original Code and Modifications, in each case
|
17
|
+
including portions thereof.
|
18
|
+
|
19
|
+
1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
|
20
|
+
accepted in the software development community for the electronic
|
21
|
+
transfer of data.
|
22
|
+
|
23
|
+
1.5. ``Executable'' means Covered Code in any form other than Source
|
24
|
+
Code.
|
25
|
+
|
26
|
+
1.6. ``Initial Developer'' means the individual or entity identified as
|
27
|
+
the Initial Developer in the Source Code notice required by Exhibit A.
|
28
|
+
|
29
|
+
1.7. ``Larger Work'' means a work which combines Covered Code or
|
30
|
+
portions thereof with code not governed by the terms of this License.
|
31
|
+
|
32
|
+
1.8. ``License'' means this document.
|
33
|
+
|
34
|
+
1.9. ``Modifications'' means any addition to or deletion from the
|
35
|
+
substance or structure of either the Original Code or any previous
|
36
|
+
Modifications. When Covered Code is released as a series of files, a
|
37
|
+
Modification is:
|
38
|
+
|
39
|
+
A. Any addition to or deletion from the contents of a file
|
40
|
+
containing Original Code or previous Modifications.
|
41
|
+
|
42
|
+
B. Any new file that contains any part of the Original Code or
|
43
|
+
previous Modifications.
|
44
|
+
|
45
|
+
1.10. ``Original Code'' means Source Code of computer software code
|
46
|
+
which is described in the Source Code notice required by Exhibit A as
|
47
|
+
Original Code, and which, at the time of its release under this License
|
48
|
+
is not already Covered Code governed by this License.
|
49
|
+
|
50
|
+
1.11. ``Source Code'' means the preferred form of the Covered Code for
|
51
|
+
making modifications to it, including all modules it contains, plus any
|
52
|
+
associated interface definition files, scripts used to control
|
53
|
+
compilation and installation of an Executable, or a list of source code
|
54
|
+
differential comparisons against either the Original Code or another
|
55
|
+
well known, available Covered Code of the Contributor's choice. The
|
56
|
+
Source Code can be in a compressed or archival form, provided the
|
57
|
+
appropriate decompression or de-archiving software is widely available
|
58
|
+
for no charge.
|
59
|
+
|
60
|
+
1.12. ``You'' means an individual or a legal entity exercising rights
|
61
|
+
under, and complying with all of the terms of, this License or a future
|
62
|
+
version of this License issued under Section 6.1. For legal entities,
|
63
|
+
``You'' includes any entity which controls, is controlled by, or is
|
64
|
+
under common control with You. For purposes of this definition,
|
65
|
+
``control'' means (a) the power, direct or indirect, to cause the
|
66
|
+
direction or management of such entity, whether by contract or
|
67
|
+
otherwise, or (b) ownership of fifty percent (50%) or more of the
|
68
|
+
outstanding shares or beneficial ownership of such entity.
|
69
|
+
|
70
|
+
2. Source Code License.
|
71
|
+
|
72
|
+
2.1. The Initial Developer Grant.
|
73
|
+
The Initial Developer hereby grants You a world-wide, royalty-free,
|
74
|
+
non-exclusive license, subject to third party intellectual property
|
75
|
+
claims:
|
76
|
+
|
77
|
+
(a) to use, reproduce, modify, display, perform, sublicense and
|
78
|
+
distribute the Original Code (or portions thereof) with or without
|
79
|
+
Modifications, or as part of a Larger Work; and
|
80
|
+
|
81
|
+
(b) under patents now or hereafter owned or controlled by Initial
|
82
|
+
Developer, to make, have made, use and sell (``Utilize'') the
|
83
|
+
Original Code (or portions thereof), but solely to the extent that
|
84
|
+
any such patent is reasonably necessary to enable You to Utilize
|
85
|
+
the Original Code (or portions thereof) and not to any greater
|
86
|
+
extent that may be necessary to Utilize further Modifications or
|
87
|
+
combinations.
|
88
|
+
|
89
|
+
2.2. Contributor Grant.
|
90
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
91
|
+
non-exclusive license, subject to third party intellectual property
|
92
|
+
claims:
|
93
|
+
|
94
|
+
(a) to use, reproduce, modify, display, perform, sublicense and
|
95
|
+
distribute the Modifications created by such Contributor (or
|
96
|
+
portions thereof) either on an unmodified basis, with other
|
97
|
+
Modifications, as Covered Code or as part of a Larger Work; and
|
98
|
+
|
99
|
+
(b) under patents now or hereafter owned or controlled by
|
100
|
+
Contributor, to Utilize the Contributor Version (or portions
|
101
|
+
thereof), but solely to the extent that any such patent is
|
102
|
+
reasonably necessary to enable You to Utilize the Contributor
|
103
|
+
Version (or portions thereof), and not to any greater extent that
|
104
|
+
may be necessary to Utilize further Modifications or combinations.
|
105
|
+
|
106
|
+
3. Distribution Obligations.
|
107
|
+
|
108
|
+
3.1. Application of License.
|
109
|
+
The Modifications which You create or to which You contribute are
|
110
|
+
governed by the terms of this License, including without limitation
|
111
|
+
Section 2.2. The Source Code version of Covered Code may be distributed
|
112
|
+
only under the terms of this License or a future version of this
|
113
|
+
License released under Section 6.1, and You must include a copy of this
|
114
|
+
License with every copy of the Source Code You distribute. You may not
|
115
|
+
offer or impose any terms on any Source Code version that alters or
|
116
|
+
restricts the applicable version of this License or the recipients'
|
117
|
+
rights hereunder. However, You may include an additional document
|
118
|
+
offering the additional rights described in Section 3.5.
|
119
|
+
|
120
|
+
3.2. Availability of Source Code.
|
121
|
+
Any Modification which You create or to which You contribute must be
|
122
|
+
made available in Source Code form under the terms of this License
|
123
|
+
either on the same media as an Executable version or via an accepted
|
124
|
+
Electronic Distribution Mechanism to anyone to whom you made an
|
125
|
+
Executable version available; and if made available via Electronic
|
126
|
+
Distribution Mechanism, must remain available for at least twelve (12)
|
127
|
+
months after the date it initially became available, or at least six
|
128
|
+
(6) months after a subsequent version of that particular Modification
|
129
|
+
has been made available to such recipients. You are responsible for
|
130
|
+
ensuring that the Source Code version remains available even if the
|
131
|
+
Electronic Distribution Mechanism is maintained by a third party.
|
132
|
+
|
133
|
+
3.3. Description of Modifications.
|
134
|
+
You must cause all Covered Code to which you contribute to contain a
|
135
|
+
file documenting the changes You made to create that Covered Code and
|
136
|
+
the date of any change. You must include a prominent statement that the
|
137
|
+
Modification is derived, directly or indirectly, from Original Code
|
138
|
+
provided by the Initial Developer and including the name of the Initial
|
139
|
+
Developer in (a) the Source Code, and (b) in any notice in an
|
140
|
+
Executable version or related documentation in which You describe the
|
141
|
+
origin or ownership of the Covered Code.
|
142
|
+
|
143
|
+
3.4. Intellectual Property Matters
|
144
|
+
|
145
|
+
(a) Third Party Claims.
|
146
|
+
If You have knowledge that a party claims an intellectual property
|
147
|
+
right in particular functionality or code (or its utilization
|
148
|
+
under this License), you must include a text file with the source
|
149
|
+
code distribution titled ``LEGAL'' which describes the claim and
|
150
|
+
the party making the claim in sufficient detail that a recipient
|
151
|
+
will know whom to contact. If you obtain such knowledge after You
|
152
|
+
make Your Modification available as described in Section 3.2, You
|
153
|
+
shall promptly modify the LEGAL file in all copies You make
|
154
|
+
available thereafter and shall take other steps (such as notifying
|
155
|
+
appropriate mailing lists or newsgroups) reasonably calculated to
|
156
|
+
inform those who received the Covered Code that new knowledge has
|
157
|
+
been obtained.
|
158
|
+
|
159
|
+
(b) Contributor APIs.
|
160
|
+
If Your Modification is an application programming interface and
|
161
|
+
You own or control patents which are reasonably necessary to
|
162
|
+
implement that API, you must also include this information in the
|
163
|
+
LEGAL file.
|
164
|
+
|
165
|
+
3.5. Required Notices.
|
166
|
+
You must duplicate the notice in Exhibit A in each file of the Source
|
167
|
+
Code, and this License in any documentation for the Source Code, where
|
168
|
+
You describe recipients' rights relating to Covered Code. If You
|
169
|
+
created one or more Modification(s), You may add your name as a
|
170
|
+
Contributor to the notice described in Exhibit A. If it is not possible
|
171
|
+
to put such notice in a particular Source Code file due to its
|
172
|
+
structure, then you must include such notice in a location (such as a
|
173
|
+
relevant directory file) where a user would be likely to look for such
|
174
|
+
a notice. You may choose to offer, and to charge a fee for, warranty,
|
175
|
+
support, indemnity or liability obligations to one or more recipients
|
176
|
+
of Covered Code. However, You may do so only on Your own behalf, and
|
177
|
+
not on behalf of the Initial Developer or any Contributor. You must
|
178
|
+
make it absolutely clear than any such warranty, support, indemnity or
|
179
|
+
liability obligation is offered by You alone, and You hereby agree to
|
180
|
+
indemnify the Initial Developer and every Contributor for any liability
|
181
|
+
incurred by the Initial Developer or such Contributor as a result of
|
182
|
+
warranty, support, indemnity or liability terms You offer.
|
183
|
+
|
184
|
+
3.6. Distribution of Executable Versions.
|
185
|
+
You may distribute Covered Code in Executable form only if the
|
186
|
+
requirements of Section 3.1-3.5 have been met for that Covered Code,
|
187
|
+
and if You include a notice stating that the Source Code version of the
|
188
|
+
Covered Code is available under the terms of this License, including a
|
189
|
+
description of how and where You have fulfilled the obligations of
|
190
|
+
Section 3.2. The notice must be conspicuously included in any notice in
|
191
|
+
an Executable version, related documentation or collateral in which You
|
192
|
+
describe recipients' rights relating to the Covered Code. You may
|
193
|
+
distribute the Executable version of Covered Code under a license of
|
194
|
+
Your choice, which may contain terms different from this License,
|
195
|
+
provided that You are in compliance with the terms of this License and
|
196
|
+
that the license for the Executable version does not attempt to limit
|
197
|
+
or alter the recipient's rights in the Source Code version from the
|
198
|
+
rights set forth in this License. If You distribute the Executable
|
199
|
+
version under a different license You must make it absolutely clear
|
200
|
+
that any terms which differ from this License are offered by You alone,
|
201
|
+
not by the Initial Developer or any Contributor. You hereby agree to
|
202
|
+
indemnify the Initial Developer and every Contributor for any liability
|
203
|
+
incurred by the Initial Developer or such Contributor as a result of
|
204
|
+
any such terms You offer.
|
205
|
+
|
206
|
+
3.7. Larger Works.
|
207
|
+
You may create a Larger Work by combining Covered Code with other code
|
208
|
+
not governed by the terms of this License and distribute the Larger
|
209
|
+
Work as a single product. In such a case, You must make sure the
|
210
|
+
requirements of this License are fulfilled for the Covered Code.
|
211
|
+
|
212
|
+
4. Inability to Comply Due to Statute or Regulation.
|
213
|
+
|
214
|
+
If it is impossible for You to comply with any of the terms of this
|
215
|
+
License with respect to some or all of the Covered Code due to statute
|
216
|
+
or regulation then You must: (a) comply with the terms of this License
|
217
|
+
to the maximum extent possible; and (b) describe the limitations and
|
218
|
+
the code they affect. Such description must be included in the LEGAL
|
219
|
+
file described in Section 3.4 and must be included with all
|
220
|
+
distributions of the Source Code. Except to the extent prohibited by
|
221
|
+
statute or regulation, such description must be sufficiently detailed
|
222
|
+
for a recipient of ordinary skill to be able to understand it.
|
223
|
+
|
224
|
+
5. Application of this License.
|
225
|
+
|
226
|
+
This License applies to code to which the Initial Developer has
|
227
|
+
attached the notice in Exhibit A, and to related Covered Code.
|
228
|
+
|
229
|
+
6. Versions of the License.
|
230
|
+
|
231
|
+
6.1. New Versions.
|
232
|
+
Netscape Communications Corporation (``Netscape'') may publish revised
|
233
|
+
and/or new versions of the License from time to time. Each version will
|
234
|
+
be given a distinguishing version number.
|
235
|
+
|
236
|
+
6.2. Effect of New Versions.
|
237
|
+
Once Covered Code has been published under a particular version of the
|
238
|
+
License, You may always continue to use it under the terms of that
|
239
|
+
version. You may also choose to use such Covered Code under the terms
|
240
|
+
of any subsequent version of the License published by Netscape. No one
|
241
|
+
other than Netscape has the right to modify the terms applicable to
|
242
|
+
Covered Code created under this License.
|
243
|
+
|
244
|
+
6.3. Derivative Works.
|
245
|
+
If you create or use a modified version of this License (which you may
|
246
|
+
only do in order to apply it to code which is not already Covered Code
|
247
|
+
governed by this License), you must (a) rename Your license so that the
|
248
|
+
phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or
|
249
|
+
any confusingly similar phrase do not appear anywhere in your license
|
250
|
+
and (b) otherwise make it clear that your version of the license
|
251
|
+
contains terms which differ from the Mozilla Public License and
|
252
|
+
Netscape Public License. (Filling in the name of the Initial Developer,
|
253
|
+
Original Code or Contributor in the notice described in Exhibit A shall
|
254
|
+
not of themselves be deemed to be modifications of this License.)
|
255
|
+
|
256
|
+
7. DISCLAIMER OF WARRANTY.
|
257
|
+
|
258
|
+
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
|
259
|
+
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
260
|
+
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
|
261
|
+
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
|
262
|
+
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
|
263
|
+
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
|
264
|
+
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
|
265
|
+
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
|
266
|
+
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
|
267
|
+
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
268
|
+
|
269
|
+
8. TERMINATION.
|
270
|
+
|
271
|
+
This License and the rights granted hereunder will terminate
|
272
|
+
automatically if You fail to comply with terms herein and fail to cure
|
273
|
+
such breach within 30 days of becoming aware of the breach. All
|
274
|
+
sublicenses to the Covered Code which are properly granted shall
|
275
|
+
survive any termination of this License. Provisions which, by their
|
276
|
+
nature, must remain in effect beyond the termination of this License
|
277
|
+
shall survive.
|
278
|
+
|
279
|
+
9. LIMITATION OF LIABILITY.
|
280
|
+
|
281
|
+
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
|
282
|
+
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL
|
283
|
+
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
|
284
|
+
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER
|
285
|
+
PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
286
|
+
OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
|
287
|
+
GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND
|
288
|
+
ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE
|
289
|
+
BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
|
290
|
+
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
|
291
|
+
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
|
292
|
+
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
|
293
|
+
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT
|
294
|
+
EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
295
|
+
|
296
|
+
10. U.S. GOVERNMENT END USERS.
|
297
|
+
|
298
|
+
The Covered Code is a ``commercial item,'' as that term is defined in
|
299
|
+
48 C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer
|
300
|
+
software'' and ``commercial computer software documentation,'' as such
|
301
|
+
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
|
302
|
+
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
|
303
|
+
all U.S. Government End Users acquire Covered Code with only those
|
304
|
+
rights set forth herein.
|
305
|
+
|
306
|
+
11. MISCELLANEOUS.
|
307
|
+
|
308
|
+
This License represents the complete agreement concerning subject
|
309
|
+
matter hereof. If any provision of this License is held to be
|
310
|
+
unenforceable, such provision shall be reformed only to the extent
|
311
|
+
necessary to make it enforceable. This License shall be governed by
|
312
|
+
California law provisions (except to the extent applicable law, if any,
|
313
|
+
provides otherwise), excluding its conflict-of-law provisions. With
|
314
|
+
respect to disputes in which at least one party is a citizen of, or an
|
315
|
+
entity chartered or registered to do business in, the United States of
|
316
|
+
America: (a) unless otherwise agreed in writing, all disputes relating
|
317
|
+
to this License (excepting any dispute relating to intellectual
|
318
|
+
property rights) shall be subject to final and binding arbitration,
|
319
|
+
with the losing party paying all costs of arbitration; (b) any
|
320
|
+
arbitration relating to this Agreement shall be held in Santa Clara
|
321
|
+
County, California, under the auspices of JAMS/EndDispute; and (c) any
|
322
|
+
litigation relating to this Agreement shall be subject to the
|
323
|
+
jurisdiction of the Federal Courts of the Northern District of
|
324
|
+
California, with venue lying in Santa Clara County, California, with
|
325
|
+
the losing party responsible for costs, including without limitation,
|
326
|
+
court costs and reasonable attorneys fees and expenses. The application
|
327
|
+
of the United Nations Convention on Contracts for the International
|
328
|
+
Sale of Goods is expressly excluded. Any law or regulation which
|
329
|
+
provides that the language of a contract shall be construed against the
|
330
|
+
drafter shall not apply to this License.
|
331
|
+
|
332
|
+
12. RESPONSIBILITY FOR CLAIMS.
|
333
|
+
|
334
|
+
Except in cases where another Contributor has failed to comply with
|
335
|
+
Section 3.4, You are responsible for damages arising, directly or
|
336
|
+
indirectly, out of Your utilization of rights under this License, based
|
337
|
+
on the number of copies of Covered Code you made available, the
|
338
|
+
revenues you received from utilizing such rights, and other relevant
|
339
|
+
factors. You agree to work with affected parties to distribute
|
340
|
+
responsibility on an equitable basis.
|
341
|
+
|
342
|
+
EXHIBIT A.
|
343
|
+
|
344
|
+
``The contents of this file are subject to the Mozilla Public License
|
345
|
+
Version 1.0 (the "License"); you may not use this file except in
|
346
|
+
compliance with the License. You may obtain a copy of the License at
|
347
|
+
http://www.mozilla.org/MPL/
|
348
|
+
|
349
|
+
Software distributed under the License is distributed on an "AS IS"
|
350
|
+
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
351
|
+
License for the specific language governing rights and limitations
|
352
|
+
under the License.
|
353
|
+
|
354
|
+
The Original Code is ______________________________________.
|
355
|
+
|
356
|
+
The Initial Developer of the Original Code is ________________________.
|
357
|
+
Portions created by ______________________ are Copyright (C) ______
|
358
|
+
_______________________. All Rights Reserved.
|
359
|
+
|
360
|
+
Contributor(s): ______________________________________.''
|
@@ -0,0 +1,16 @@
|
|
1
|
+
W3C® SOFTWARE NOTICE AND LICENSE
|
2
|
+
|
3
|
+
Copyright © 1994-2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
|
4
|
+
|
5
|
+
This W3C work (including software, documents, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
|
6
|
+
|
7
|
+
Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
|
8
|
+
|
9
|
+
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
|
10
|
+
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
|
11
|
+
Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
|
12
|
+
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
13
|
+
|
14
|
+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
|
15
|
+
|
16
|
+
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'epubcheck/ruby'
|
2
|
+
|
3
|
+
module Epubcheck
|
4
|
+
module Ruby
|
5
|
+
class CLI
|
6
|
+
JAR_FILE = File.join(Epubcheck::Ruby::JAR_DIR, 'epubcheck-4.0.2/epubcheck.jar')
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
end
|
10
|
+
|
11
|
+
def execute(args)
|
12
|
+
system("java", "-jar", JAR_FILE, *args)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: epubcheck-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- takahashim
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: wrapper command of epubcheck (IDPF)
|
42
|
+
email:
|
43
|
+
- takahashimm@gmail.com
|
44
|
+
executables:
|
45
|
+
- epubcheck
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- Gemfile
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/console
|
55
|
+
- bin/setup
|
56
|
+
- epubcheck-ruby.gemspec
|
57
|
+
- exe/epubcheck
|
58
|
+
- jar/epubcheck-4.0.2/COPYING.txt
|
59
|
+
- jar/epubcheck-4.0.2/README.txt
|
60
|
+
- jar/epubcheck-4.0.2/THIRD-PARTY.txt
|
61
|
+
- jar/epubcheck-4.0.2/epubcheck.jar
|
62
|
+
- jar/epubcheck-4.0.2/lib/Saxon-HE-9.5.1-5.jar
|
63
|
+
- jar/epubcheck-4.0.2/lib/common-image-3.1.2.jar
|
64
|
+
- jar/epubcheck-4.0.2/lib/common-io-3.1.2.jar
|
65
|
+
- jar/epubcheck-4.0.2/lib/common-lang-3.1.2.jar
|
66
|
+
- jar/epubcheck-4.0.2/lib/commons-compress-1.5.jar
|
67
|
+
- jar/epubcheck-4.0.2/lib/guava-14.0.1.jar
|
68
|
+
- jar/epubcheck-4.0.2/lib/imageio-core-3.1.2.jar
|
69
|
+
- jar/epubcheck-4.0.2/lib/imageio-jpeg-3.1.2.jar
|
70
|
+
- jar/epubcheck-4.0.2/lib/imageio-metadata-3.1.2.jar
|
71
|
+
- jar/epubcheck-4.0.2/lib/jackson-core-asl-1.9.12.jar
|
72
|
+
- jar/epubcheck-4.0.2/lib/jackson-mapper-asl-1.9.12.jar
|
73
|
+
- jar/epubcheck-4.0.2/lib/jing-20120724.0.0.jar
|
74
|
+
- jar/epubcheck-4.0.2/lib/sac-1.3.jar
|
75
|
+
- jar/epubcheck-4.0.2/licenses/Apache-2.0.txt
|
76
|
+
- jar/epubcheck-4.0.2/licenses/BSD-3-Clause.txt
|
77
|
+
- jar/epubcheck-4.0.2/licenses/MPL-1.0.txt
|
78
|
+
- jar/epubcheck-4.0.2/licenses/W3C.txt
|
79
|
+
- lib/epubcheck/ruby.rb
|
80
|
+
- lib/epubcheck/ruby/cli.rb
|
81
|
+
- lib/epubcheck/ruby/version.rb
|
82
|
+
homepage: https://github.com/takahashim/epubcheck-ruby
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.6.8
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: wrapper command of epubcheck (IDPF)
|
106
|
+
test_files: []
|