Skip to content

Commit

Permalink
Add asciidoctor-reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
APAC\mjd5kor committed Oct 11, 2024
1 parent e6cd44d commit cb33673
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
21 changes: 21 additions & 0 deletions recipes/asciidoctor-reducer/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (C) 2021-present Dan Allen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
43 changes: 43 additions & 0 deletions recipes/asciidoctor-reducer/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set name = "asciidoctor-reducer" %}
{% set version = "1.0.6" %}

package:
name: rb-{{ name|lower }}
version: {{ version }}

source:
url: https://rubygems.org/downloads/{{ name }}-{{ version }}.gem
sha256: 9c6a132414846aaeb4620dceb9687ed3f0e827135b3514c2fc46d8564f9a79b9

build:
noarch: generic
number: 0
script:
- gem install -N -l -V --norc --ignore-dependencies -n $PREFIX/bin {{ name }}-{{ version }}.gem
- gem unpack {{ name }}-{{ version }}.gem
skip: {{ win }}

requirements:
host:
- ruby
run:
- {{ pin_compatible('ruby', lower_bound='2.0') }}
- asciidoctor

test:
commands:
- asciidoctor-reducer -h

about:
home: https://rubygems.org/gems/{{ name }}
license: MIT
license_family: MIT
license_file: LICENSE
summary: A tool to generate a single AsciiDoc document by expanding all the include directives reachable from the parent document.

doc_url: http://www.rubydoc.info/gems/{{ name }}
dev_url: https://github.com/asciidoctor/{{ name }}

extra:
recipe-maintainers:
- ajaypnair09

0 comments on commit cb33673

Please sign in to comment.