kitabu 2.0.3 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +5 -5
  2. data/.github/CODEOWNERS +4 -0
  3. data/.github/FUNDING.yml +4 -0
  4. data/.github/ISSUE_TEMPLATE/bug_report.md +41 -0
  5. data/.github/ISSUE_TEMPLATE/config.yml +5 -0
  6. data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
  7. data/.github/PULL_REQUEST_TEMPLATE.md +38 -0
  8. data/.github/dependabot.yml +15 -0
  9. data/.github/workflows/ruby-tests.yml +61 -0
  10. data/.gitignore +1 -0
  11. data/.rubocop.yml +17 -0
  12. data/CHANGELOG.md +40 -1
  13. data/CODE_OF_CONDUCT.md +74 -0
  14. data/CONTRIBUTING.md +79 -0
  15. data/Gemfile +2 -0
  16. data/LICENSE.md +20 -0
  17. data/README.md +145 -85
  18. data/Rakefile +7 -0
  19. data/bin/kitabu +4 -0
  20. data/kitabu.gemspec +20 -14
  21. data/lib/kitabu/cli.rb +54 -39
  22. data/lib/kitabu/dependency.rb +11 -5
  23. data/lib/kitabu/errors.rb +2 -0
  24. data/lib/kitabu/exporter/base.rb +13 -11
  25. data/lib/kitabu/exporter/css.rb +6 -14
  26. data/lib/kitabu/exporter/epub.rb +24 -18
  27. data/lib/kitabu/exporter/html.rb +33 -20
  28. data/lib/kitabu/exporter/mobi.rb +7 -1
  29. data/lib/kitabu/exporter/pdf.rb +9 -3
  30. data/lib/kitabu/exporter.rb +15 -16
  31. data/lib/kitabu/extensions/rouge.rb +7 -1
  32. data/lib/kitabu/extensions/string.rb +5 -3
  33. data/lib/kitabu/footnotes/base.rb +2 -0
  34. data/lib/kitabu/footnotes/html.rb +18 -13
  35. data/lib/kitabu/footnotes/pdf.rb +17 -11
  36. data/lib/kitabu/generator.rb +16 -8
  37. data/lib/kitabu/helpers.rb +12 -9
  38. data/lib/kitabu/markdown.rb +15 -3
  39. data/lib/kitabu/source_list.rb +15 -12
  40. data/lib/kitabu/stats.rb +3 -1
  41. data/lib/kitabu/syntax/highlight.rb +4 -11
  42. data/lib/kitabu/toc/epub.rb +5 -2
  43. data/lib/kitabu/toc/html/stream.rb +33 -0
  44. data/lib/kitabu/toc/html.rb +19 -9
  45. data/lib/kitabu/version.rb +4 -2
  46. data/lib/kitabu.rb +11 -12
  47. data/spec/kitabu/cli/export_spec.rb +6 -4
  48. data/spec/kitabu/cli/new_spec.rb +6 -4
  49. data/spec/kitabu/cli/permalinks_spec.rb +4 -2
  50. data/spec/kitabu/cli/stats_spec.rb +19 -15
  51. data/spec/kitabu/cli/version_spec.rb +3 -1
  52. data/spec/kitabu/exporter/css_spec.rb +3 -1
  53. data/spec/kitabu/exporter/epub_spec.rb +2 -0
  54. data/spec/kitabu/exporter/html_spec.rb +17 -4
  55. data/spec/kitabu/exporter/mobi_spec.rb +5 -5
  56. data/spec/kitabu/exporter/pdf_spec.rb +8 -4
  57. data/spec/kitabu/extensions/string_spec.rb +14 -9
  58. data/spec/kitabu/footnotes/html_spec.rb +35 -33
  59. data/spec/kitabu/generator_spec.rb +3 -1
  60. data/spec/kitabu/markdown_spec.rb +15 -3
  61. data/spec/kitabu/source_list_spec.rb +8 -2
  62. data/spec/kitabu/stats_spec.rb +10 -6
  63. data/spec/kitabu/toc/html_spec.rb +55 -35
  64. data/spec/spec_helper.rb +23 -8
  65. data/spec/support/exit_with_code.rb +7 -5
  66. data/spec/support/have_tag.rb +44 -32
  67. data/spec/support/helper.rb +5 -3
  68. data/spec/support/mybook/code/code.rb +2 -0
  69. data/spec/support/mybook/config/helper.rb +2 -0
  70. data/spec/support/mybook/fonts/OpenSans-CondBold.ttf +0 -0
  71. data/spec/support/shared.rb +12 -6
  72. data/templates/Gemfile +5 -3
  73. data/templates/Guardfile +3 -1
  74. data/templates/helper.rb +8 -6
  75. data/templates/templates/styles/epub.css +1 -0
  76. data/templates/templates/styles/files/normalize.css +351 -0
  77. data/templates/templates/styles/{html.scss → html.css} +28 -26
  78. data/templates/templates/styles/{pdf.scss → pdf.css} +49 -47
  79. data/templates/templates/styles/print.css +2 -0
  80. data/templates/text/01_Getting_Started.md +27 -9
  81. data/templates/text/02_Creating_Chapters.md +9 -3
  82. data/templates/text/{03_Syntax_Highlighting.erb → 03_Syntax_Highlighting.md.erb} +12 -7
  83. data/templates/text/04_Dynamic_Content.md.erb +48 -0
  84. data/templates/text/05_Exporting_Files.md +17 -8
  85. metadata +42 -50
  86. data/.gitmodules +0 -3
  87. data/.travis.yml +0 -18
  88. data/Gemfile.lock +0 -108
  89. data/lib/kitabu/exporter/txt.rb +0 -18
  90. data/lib/kitabu/stream.rb +0 -27
  91. data/lib/kitabu/toc.rb +0 -6
  92. data/spec/kitabu/exporter/txt_spec.rb +0 -14
  93. data/templates/ebook.png +0 -0
  94. data/templates/templates/styles/epub.scss +0 -1
  95. data/templates/templates/styles/files/_normalize.scss +0 -427
  96. data/templates/templates/styles/print.scss +0 -2
  97. data/templates/text/04_Dynamic_Content.erb +0 -64
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bd86f5ee69244e8b29bfaece12650d010841a669
4
- data.tar.gz: 9e091f5f94a6c452f6e76722ad690902999c52a4
2
+ SHA256:
3
+ metadata.gz: e126b39636b3d6a78fb02e979c631f3f4e4694e8122e5009c09ed272bb81ceb4
4
+ data.tar.gz: 1d09aa18b28b24e7f6edbb96a1d3c689a8548ba58608737f92a354deb79a9c8c
5
5
  SHA512:
6
- metadata.gz: ab2dd6d9710198b3a7da0027826b108e074e4ef35c43c3012cc89e160c9d2d13d39723c26dffae53b9a00f665f95b0bf92a98417a737ca317a67ba46832abcfb
7
- data.tar.gz: 345c9f9fb488991a3c7507c4eb15d5b2454b75846a85cc29b30881b1fe81aba00203eded8401be5a13ef5385787ac81abb700a3d4bd4b95ae60f6973aed3ad26
6
+ metadata.gz: 997c2d38c02eab984c598a6d7af5ba55f921fada0073ecc46e118548b58ea718ecd10d613689aaa100a7eaec74549f260495e160ed6fd862d73abb18e57d7926
7
+ data.tar.gz: 89a810a3e676097b92f320fc9e821bcfc15e098c19824da0d03ebd71ef2d6388fa68ee67497329921bdcc6020450ecab301651f99c32062cd691716ecd86ed28
@@ -0,0 +1,4 @@
1
+ # You can read more about CODEOWNERS at
2
+ # https://help.github.com/github/creating-cloning-and-archiving-repositories/about-code-owners
3
+
4
+ * @fnando
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+ ---
3
+ github: [fnando]
4
+ custom: ["https://paypal.me/nandovieira/🍕"]
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: "🐛 Bug Report"
3
+ about: Report a reproducible bug or regression.
4
+ title: 'Bug: '
5
+ labels: 'Status: Unconfirmed'
6
+
7
+ ---
8
+
9
+ <!--
10
+ - Please provide a clear and concise description of what the bug is.
11
+ - If possible, add an example reproducing your issue.
12
+ - Please test using the latest version of kitabu
13
+ to make sure your issue has not already been fixed.
14
+ -->
15
+
16
+ ## Description
17
+
18
+ [Add bug description here]
19
+
20
+ ## How to reproduce
21
+
22
+ [Add steps on how to reproduce this issue]
23
+
24
+ ## What do you expect
25
+
26
+ [Describe what do you expect to happen]
27
+
28
+ ## What happened instead
29
+
30
+ [Describe the actual results]
31
+
32
+ ## Software:
33
+
34
+ - Gem version: [Add gem version here]
35
+ - Ruby version: [Add version here]
36
+
37
+ ## Full backtrace
38
+
39
+ ```text
40
+ [Paste full backtrace here]
41
+ ```
@@ -0,0 +1,5 @@
1
+ ---
2
+ contact_links:
3
+ - name: "🤨 Q&A"
4
+ url: https://github.com/fnando/kitabu/discussions/new?category=q-a
5
+ about: Have a question? Ask it away here!
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: "💡 Feature request"
3
+ about: Have an idea that may be useful? Make a suggestion!
4
+ title: 'Feature Request: '
5
+ labels: 'Feature request'
6
+
7
+ ---
8
+
9
+ ## Description
10
+
11
+ _A clear and concise description of what the problem is._
12
+
13
+ ## Describe the solution
14
+
15
+ _A clear and concise description of what you want to happen._
16
+
17
+ ## Alternatives you considered
18
+
19
+ _A clear and concise description of any alternative solutions or features you've considered._
20
+
21
+ ## Additional context
22
+
23
+ _Add any other context, screenshots, links, etc about the feature request here._
@@ -0,0 +1,38 @@
1
+ <!--
2
+ If you're making a doc PR or something tiny where the below is irrelevant,
3
+ delete this template and use a short description, but in your description aim to
4
+ include both what the change is, and why it is being made, with enough context
5
+ for anyone to understand.
6
+ -->
7
+
8
+ <details>
9
+ <summary>PR Checklist</summary>
10
+
11
+ ### PR Structure
12
+
13
+ - [ ] This PR has reasonably narrow scope (if not, break it down into smaller
14
+ PRs).
15
+ - [ ] This PR avoids mixing refactoring changes with feature changes (split into
16
+ two PRs otherwise).
17
+ - [ ] This PR's title starts is concise and descriptive.
18
+
19
+ ### Thoroughness
20
+
21
+ - [ ] This PR adds tests for the most critical parts of the new functionality or
22
+ fixes.
23
+ - [ ] I've updated any docs, `.md` files, etc… affected by this change.
24
+
25
+ </details>
26
+
27
+ ### What
28
+
29
+ [TODO: Short statement about what is changing.]
30
+
31
+ ### Why
32
+
33
+ [TODO: Why this change is being made. Include any context required to understand
34
+ the why.]
35
+
36
+ ### Known limitations
37
+
38
+ [TODO or N/A]
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Documentation:
3
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4
+
5
+ version: 2
6
+ updates:
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
11
+
12
+ - package-ecosystem: bundler
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: ruby-tests
3
+
4
+ on:
5
+ pull_request_target:
6
+ push:
7
+ branches:
8
+ - main
9
+ workflow_dispatch:
10
+ inputs: {}
11
+
12
+ jobs:
13
+ build:
14
+ name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
15
+ runs-on: "ubuntu-latest"
16
+ if: |
17
+ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
18
+ github.actor != 'dependabot[bot]'
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby: ["2.7", "3.0", "3.1"]
23
+ gemfile:
24
+ - Gemfile
25
+
26
+ steps:
27
+ - name: Install deps
28
+ run: sudo apt install -y calibre gdebi
29
+
30
+ - name: Install princexml
31
+ run: |
32
+ wget https://www.princexml.com/download/prince_14.2-1_ubuntu20.04_amd64.deb
33
+ sudo gdebi --non-interactive prince_14.2-1_ubuntu20.04_amd64.deb
34
+
35
+ - uses: actions/checkout@v2.4.0
36
+
37
+ - uses: actions/cache@v2
38
+ with:
39
+ path: vendor/bundle
40
+ key: >
41
+ ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
42
+ hashFiles(matrix.gemfile) }}
43
+
44
+ - name: Set up Ruby
45
+ uses: ruby/setup-ruby@v1
46
+ with:
47
+ ruby-version: ${{ matrix.ruby }}
48
+
49
+ - name: Install gem dependencies
50
+ env:
51
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
52
+ run: |
53
+ gem install bundler
54
+ bundle config path vendor/bundle
55
+ bundle update --jobs 4 --retry 3
56
+
57
+ - name: Run Tests
58
+ env:
59
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
60
+ run: |
61
+ bundle exec rake
data/.gitignore CHANGED
@@ -4,3 +4,4 @@
4
4
  /spec/support/mybook/output
5
5
  /coverage
6
6
  .sass-cache
7
+ *.lock
data/.rubocop.yml ADDED
@@ -0,0 +1,17 @@
1
+ ---
2
+ inherit_gem:
3
+ rubocop-fnando: .rubocop.yml
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.7
7
+ NewCops: enable
8
+ Exclude:
9
+ - db/schema.rb
10
+ - bin/**/*
11
+ - vendor/**/*
12
+
13
+ Style/OpenStructUse:
14
+ Enabled: false
15
+
16
+ Performance/MethodObjectAsBlock:
17
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,9 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.0.1
4
+
5
+ - Add accessor methods `Kitabu::Markdown.default_renderer_options` and
6
+ `Kitabu::Markdown.default_markdown_options`.
7
+ - Set Redcarpet's `hard_wrap` to `false`.
8
+
9
+ ## v3.0.0
10
+
11
+ - Drop Sass support; the `styles` directory will now be copied to the `output`
12
+ directory when exporting files.
13
+ - Drop support for `html2text`; the output wasn't that good.
14
+ - Drop support for notifier; this gem is no longer maintained.
15
+ - Use calibre to generate mobi files; kindlegen has been deprecated.
16
+ - Make it run with modern Ruby.
17
+
18
+ ## v2.1.0
19
+
20
+ - Lock Rouge version to ~>2.0.
21
+
22
+ ## v2.0.4
23
+
24
+ - Support fonts directory
25
+ - Allow having any element as the chapter title (e.g. h1). Previously you could
26
+ only use h2.
27
+ - Bug fix: unknown Rouge lexer was raising an error.
28
+
29
+ ## v2.0.3
30
+
31
+ - Bug fix: footnote label wasn't updated with current count
32
+
33
+ ## v2.0.2
34
+
35
+ - Bug fix: generate valid HTML markup
36
+
37
+ ## v2.0.1
38
+
39
+ - Improve footnote generation
40
+
3
41
  ## v2.0.0
4
42
 
5
43
  - Remove support for different markdown processors; now using Redcarpet.
6
44
  - Remove support for other file types like textile and html.
7
45
  - Remove support for pygments.rb highlighter; now using Rouge.
8
- - Add support for .erb files; helpers can be defined within the `Kitabu::Helpers` module.
46
+ - Add support for .erb files; helpers can be defined within the
47
+ `Kitabu::Helpers` module.
9
48
  - Add support for media format stylesheets (print, pdf, html, epub).
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at me@fnando.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,79 @@
1
+ # Contributing to kitabu
2
+
3
+ 👍🎉 First off, thanks for taking the time to contribute! 🎉👍
4
+
5
+ The following is a set of guidelines for contributing to this project. These are
6
+ mostly guidelines, not rules. Use your best judgment, and feel free to propose
7
+ changes to this document in a pull request.
8
+
9
+ ## Code of Conduct
10
+
11
+ Everyone interacting in this project's codebases, issue trackers, chat rooms and
12
+ mailing lists is expected to follow the [code of conduct](https://github.com/fnando/kitabu/blob/main/CODE_OF_CONDUCT.md).
13
+
14
+ ## Reporting bugs
15
+
16
+ This section guides you through submitting a bug report. Following these
17
+ guidelines helps maintainers and the community understand your report, reproduce
18
+ the behavior, and find related reports.
19
+
20
+ - Before creating bug reports, please check the open issues; somebody may
21
+ already have submitted something similar, and you may not need to create a new
22
+ one.
23
+ - When you are creating a bug report, please include as many details as
24
+ possible, with an example reproducing the issue.
25
+
26
+ ## Contributing with code
27
+
28
+ Before making any radicals changes, please make sure you discuss your intention
29
+ by [opening an issue on Github](https://github.com/fnando/kitabu/issues).
30
+
31
+ When you're ready to make your pull request, follow checklist below to make sure
32
+ your contribution is according to how this project works.
33
+
34
+ 1. [Fork](https://help.github.com/forking/) kitabu
35
+ 2. Create a topic branch - `git checkout -b my_branch`
36
+ 3. Make your changes using [descriptive commit messages](#commit-messages)
37
+ 4. Update CHANGELOG.md describing your changes by adding an entry to the
38
+ "Unreleased" section. If this section is not available, create one right
39
+ before the last version.
40
+ 5. Push to your branch - `git push origin my_branch`
41
+ 6. [Create a pull request](https://help.github.com/articles/creating-a-pull-request)
42
+ 7. That's it!
43
+
44
+ ## Styleguides
45
+
46
+ ### Commit messages
47
+
48
+ - Use the present tense ("Add feature" not "Added feature")
49
+ - Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
50
+ - Limit the first line to 72 characters or less
51
+ - Reference issues and pull requests liberally after the first line
52
+
53
+ ### Changelog
54
+
55
+ - Add a message describing your changes to the "Unreleased" section. The
56
+ changelog message should follow the same style as the commit message.
57
+ - Prefix your message with one of the following:
58
+ - `[Added]` for new features.
59
+ - `[Changed]` for changes in existing functionality.
60
+ - `[Deprecated]` for soon-to-be removed features.
61
+ - `[Removed]` for now removed features.
62
+ - `[Fixed]` for any bug fixes.
63
+ - `[Security]` in case of vulnerabilities.
64
+
65
+ ### Ruby code
66
+
67
+ - This project uses [Rubocop](https://rubocop.org) to enforce code style. Before
68
+ submitting your changes, make sure your tests are passing and code conforms to
69
+ the expected style by running `rake`.
70
+ - Do not change the library version. This will be done by the maintainer
71
+ whenever a new version is about to be released.
72
+
73
+ ### JavaScript code
74
+
75
+ - This project uses [ESLint](https://eslint.org) to enforce code style. Before
76
+ submitting your changes, make sure your tests are passing and code conforms to
77
+ the expected style by running `yarn test:ci`.
78
+ - Do not change the library version. This will be done by the maintainer
79
+ whenever a new version is about to be released.
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
  gemspec
data/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Nando Vieira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ 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, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.