Skip to content

Commit f7c0af0

Browse files
committed
Import
0 parents  commit f7c0af0

16 files changed

+1328
-0
lines changed

.github/workflows/test.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright (C) 2020 Sutou Kouhei <[email protected]>
2+
#
3+
# This library is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU Lesser General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This library is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU Lesser General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Lesser General Public License
14+
# along with this library. If not, see <http://www.gnu.org/licenses/>.
15+
16+
name: Test
17+
on:
18+
- push
19+
- pull_request
20+
jobs:
21+
run:
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ruby-version:
26+
- "2.5"
27+
- "2.6"
28+
# - "2.7"
29+
runs-on:
30+
- ubuntu-latest
31+
- macos-latest
32+
- windows-latest
33+
name: ${{ matrix.ruby-version}} on ${{ matrix.runs-on }}
34+
runs-on: ${{ matrix.runs-on }}
35+
steps:
36+
- uses: actions/checkout@master
37+
- uses: actions/setup-ruby@master
38+
with:
39+
ruby-version: ${{ matrix.ruby-version }}
40+
- name: Install Bundler
41+
run: |
42+
gem install bundler
43+
- name: Install dependencies
44+
run: |
45+
bundle install
46+
- name: Test
47+
run: |
48+
bundle exec rake

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.yardoc/
2+
/doc/reference/

.yardopts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--protected
2+
--no-private
3+
--markup markdown
4+
--markup-provider kramdown
5+
--output doc/reference/en
6+
--title "gettext-haml API Reference"
7+
-
8+
doc/text/*

Gemfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- ruby -*-
2+
#
3+
# Copyright (C) 2020 Sutou Kouhei <[email protected]>
4+
#
5+
# This library is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU Lesser General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This library is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU Lesser General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU Lesser General Public License
16+
# along with this library. If not, see <http://www.gnu.org/licenses/>.
17+
18+
source "https://rubygems.org"
19+
20+
gemspec

Gemfile.lock

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
PATH
2+
remote: .
3+
specs:
4+
gettext-haml (1.0.0)
5+
gettext
6+
haml
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
gettext (3.3.0)
12+
locale (>= 2.0.5)
13+
text (>= 1.3.0)
14+
haml (5.1.2)
15+
temple (>= 0.8.0)
16+
tilt
17+
kramdown (2.1.0)
18+
locale (2.1.2)
19+
power_assert (1.1.5)
20+
rake (13.0.1)
21+
temple (0.8.2)
22+
test-unit (3.3.4)
23+
power_assert
24+
text (1.3.1)
25+
tilt (2.0.10)
26+
yard (0.9.23)
27+
28+
PLATFORMS
29+
ruby
30+
31+
DEPENDENCIES
32+
gettext-haml!
33+
kramdown
34+
rake
35+
test-unit
36+
yard
37+
38+
BUNDLED WITH
39+
2.1.2

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# gettext-haml
2+
3+
## Install
4+
5+
```bash
6+
gem install gettext-haml
7+
```
8+
9+
## Usage
10+
11+
If you use `rxgettext`, require `gettext-haml` by `--require`:
12+
13+
```bash
14+
rxgettext --require gettext-haml ...
15+
```
16+
17+
If you use gettext as library, require `gettext-haml` in your Ruby script:
18+
19+
```ruby
20+
require "gettext-haml"
21+
```
22+
23+
## License
24+
25+
LGPLv3 or later. See `doc/text/lgpl-3.0.txt` or
26+
https://www.gnu.org/licenses/lgpl-3.0.txt for details.

Rakefile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- ruby -*-
2+
#
3+
# Copyright (C) 2020 Sutou Kouhei <[email protected]>
4+
#
5+
# This library is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU Lesser General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This library is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU Lesser General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU Lesser General Public License
16+
# along with this library. If not, see <http://www.gnu.org/licenses/>.
17+
18+
require "bundler/gem_helper"
19+
require "yard"
20+
21+
class Bundler::GemHelper
22+
undef_method :version_tag
23+
def version_tag
24+
version
25+
end
26+
end
27+
28+
helper = Bundler::GemHelper.new(__dir__)
29+
helper.install
30+
spec = helper.gemspec
31+
32+
task :default => :test
33+
34+
desc "Run all tests"
35+
task :test do
36+
options = ARGV - Rake.application.top_level_tasks
37+
ruby "test/run-test.rb", *options
38+
end
39+
40+
YARD::Rake::YardocTask.new do |t|
41+
end

0 commit comments

Comments
 (0)