Skip to content

Commit 3c51254

Browse files
committed
Update documentation files according to the newer templates
Also configure GitHub workflows to keep the README and SECURITY files up-to-date.
1 parent 5d5cbf3 commit 3c51254

6 files changed

Lines changed: 94 additions & 9 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: update-templates
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- README.md
9+
workflow_dispatch:
10+
11+
jobs:
12+
update-templates:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
pages: write
17+
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: update-security
2+
3+
on:
4+
push:
5+
paths:
6+
- SECURITY.md
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
update-security:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
pages: write
17+
uses: thoughtbot/templates/.github/workflows/dynamic-security.yaml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
We love pull requests. Here's a quick guide.
44

5-
Fork the repo:
5+
Fork the repo.
66

7-
git clone git@github.com:thoughtbot/flutie.git
7+
Clone your fork:
8+
9+
git clone git@github.com:your-username/flutie.git
810

911
Set up your machine:
1012

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2010-2013 thoughtbot, inc
3+
Copyright (c) thoughtbot, inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flutie
22

3-
[![Build Status](https://travis-ci.org/thoughtbot/flutie.svg?branch=master)](https://travis-ci.org/thoughtbot/flutie)
3+
# Flutie [![Build Status][ci-image]][ci] [![Gem Version][version-image]][version]
44

55
Flutie provides some utility view helpers for use with Rails applications.
66

@@ -9,7 +9,7 @@ There are helpers for setting a page title and for generating body classes.
99
## Installation & Upgrading
1010

1111
Flutie is a Railtie. We support the versions of Ruby and Rails listed in
12-
[.travis.yml](.travis.yml).
12+
[.github/workflows/build.yml](.github/workflows/build.yml).
1313

1414
It should be run as a gem and included in your `Gemfile`:
1515

@@ -46,7 +46,7 @@ These can be overridden by passing an options hash including `:app_name`,
4646

4747
```ruby
4848
content_for(:site_page_title, 'My title of my page')
49-
page_title(:app_name => 'My app name', :page_title_symbol => :site_page_title, :separator => " | ")
49+
page_title(app_name: 'My app name', page_title_symbol: :site_page_title, separator: " | ")
5050
```
5151

5252
would produce:
@@ -60,7 +60,7 @@ values by using the `:reverse` option. For example:
6060

6161
```ruby
6262
content_for(:site_page_title, 'My title of my page')
63-
page_title(:app_name => 'My app name', :page_title_symbol => :site_page_title, reverse: true)
63+
page_title(app_name: 'My app name', page_title_symbol: :site_page_title, reverse: true)
6464
```
6565

6666
would produce:
@@ -98,9 +98,13 @@ would produce:
9898
<body class="widgets widgets-show special-page">
9999
```
100100

101-
## How to contribute
101+
## Contributing
102102

103-
Please see the [CONTRIBUTING](CONTRIBUTING.md) file for details.
103+
See the [CONTRIBUTING] document.
104+
Thank you, [contributors]!
105+
106+
[CONTRIBUTING]: CONTRIBUTING.md
107+
[contributors]: https://github.com/thoughtbot/flutie/graphs/contributors
104108

105109
## Credits
106110

@@ -121,3 +125,25 @@ Flutie is Copyright © 2010 thoughtbot, inc. It is free software, and may be
121125
redistributed under the terms specified in the [LICENSE](LICENSE) file.
122126

123127
[the contributors]: https://github.com/thoughtbot/flutie/contributors
128+
129+
<!-- START /templates/footer.md -->
130+
## About thoughtbot
131+
132+
![thoughtbot](https://thoughtbot.com/thoughtbot-logo-for-readmes.svg)
133+
134+
This repo is maintained and funded by thoughtbot, inc.
135+
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
136+
137+
We love open source software!
138+
See [our other projects][community].
139+
We are [available for hire][hire].
140+
141+
[community]: https://thoughtbot.com/community?utm_source=github
142+
[hire]: https://thoughtbot.com/hire-us?utm_source=github
143+
144+
<!-- END /templates/footer.md -->
145+
146+
[ci-image]: https://github.com/thoughtbot/flutie/actions/workflows/build.yml/badge.svg?branch=main
147+
[ci]: https://github.com/thoughtbot/flutie/actions?query=workflow%3ABuild+branch%3Amain
148+
[version-image]: https://badge.fury.io/rb/flutie.svg
149+
[version]: https://badge.fury.io/rb/flutie

SECURITY.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- START /templates/security.md -->
2+
# Security Policy
3+
4+
## Supported Versions
5+
6+
Only the the latest version of this project is supported at a given time. If
7+
you find a security issue with an older version, please try updating to the
8+
latest version first.
9+
10+
If for some reason you can't update to the latest version, please let us know
11+
your reasons so that we can have a better understanding of your situation.
12+
13+
## Reporting a Vulnerability
14+
15+
For security inquiries or vulnerability reports, visit
16+
<https://thoughtbot.com/security>.
17+
18+
If you have any suggestions to improve this policy, visit <https://thoughtbot.com/security>.
19+
<!-- END /templates/security.md -->

0 commit comments

Comments
 (0)