Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engageRename cla.yml to cla.ympythonengage #185

Open
wants to merge 34 commits into
base: add_tls_to_urls
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5b03096
[bug fix] Stop manual URI parsing/escaping and use CGI::parse (#119)
smaeda-ks Dec 4, 2019
1890ab9
make username option settable on requests (#125)
smaeda-ks Dec 4, 2019
65632de
Use IO.binread instead of IO.read (#110)
smaeda-ks Dec 4, 2019
6fb3c08
Fix PIN authorization (#111)
raethlo Dec 6, 2019
d037cf6
Add twurl version to user agent header (#126)
smaeda-ks Dec 8, 2019
c872a7d
Update Code-Of-Conduct / LICENSE (#127)
smaeda-ks Dec 9, 2019
ded1136
Add --timeout and --connection-timeout options (#128)
smaeda-ks Dec 10, 2019
5a7cee4
Make aliases work again Closes: #93 (#114)
flaviomartins Dec 10, 2019
03984a2
Release v0.9.4 (#129)
smaeda-ks Dec 10, 2019
d082264
Support authorization options on request (#131)
smaeda-ks Dec 13, 2019
f81ec26
Add -j (--json-pretty) option (#130)
smaeda-ks Dec 16, 2019
1f6dcac
Documentation improvements (#133)
andypiper Dec 17, 2019
3a1a055
fix newline in README (#134)
andypiper Dec 17, 2019
e9cb1a0
Support Bearer Token (#132)
smaeda-ks Dec 26, 2019
f276355
bump version -> v0.9.5 (#135)
smaeda-ks Dec 26, 2019
b9818b8
Fix .gemspec (#136)
smaeda-ks Dec 26, 2019
4e8b5f9
Add Ruby 2.7.0 to .travis.yml (#137)
smaeda-ks Dec 27, 2019
23a8374
Add VSCode remote container setting files (#138)
smaeda-ks Dec 30, 2019
0dd7c29
Doc fix (#140)
andypiper Dec 30, 2019
837882d
Update INSTALL.md
andypiper Dec 30, 2019
3c78a05
Set theme jekyll-theme-modernist
andypiper Jun 30, 2020
138c978
2020-03 patch (#145)
smaeda-ks Aug 27, 2020
f986f11
prepare 0.9.6 release (#152)
andypiper Aug 27, 2020
73593e5
Update issue templates
andypiper Sep 11, 2020
f7c6a14
Create config.yml
andypiper Sep 11, 2020
671ef6c
Delete ISSUE_TEMPLATE.md
andypiper Sep 11, 2020
f89553f
Update issue templates
andypiper Sep 11, 2020
6c2f7bb
Update config.yml
andypiper Sep 11, 2020
1dff739
Add .github/workflows/cla.yml through file_replicator. (#162)
twitter-service Feb 11, 2021
96ee80d
Use https for GitHub link (#174)
mishina2228 Apr 15, 2022
3604e65
Migrate CI from Travis CI to GitHub Actions (#173)
mishina2228 Apr 15, 2022
3d8a490
0.9.7 (#161)
smaeda-ks Apr 26, 2023
c256756
bump version -> v0.9.7
smaeda-ks Apr 26, 2023
9747b0d
Rename cla.yml to cla.ympythonengage
richbloodfuckin Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ruby:latest

WORKDIR /usr/src/app

COPY . .
RUN bundle install
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "twurl dev container",
"dockerComposeFile": "./docker-compose.yml",
"service": "twurl",
"workspaceFolder": "/usr/src/app",
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"args": ["-l"]
}
}
},
"extensions": [
"rebornix.Ruby"
]
}
9 changes: 9 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"
services:
twurl:
build:
context: ..
dockerfile: ./.devcontainer/Dockerfile
command: /bin/sh -c "while sleep 1000; do :; done"
volumes:
- ../:/usr/src/app
13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question about the Twitter API? Ask the Twitter Developer Community
url: https://twittercommunity.com/
about: For general API functionality questions, please ask in the developer forums.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
- push
- pull_request

jobs:
test:
strategy:
fail-fast: false
matrix:
ruby:
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- 'ruby-head'
- 'jruby-head'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run unit tests
run: bundle exec rake
25 changes: 25 additions & 0 deletions .github/workflows/cla.ympython
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Alpha Release
uses: cla-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_PAT }}
with:
remote-organization-name: twitter
remote-repository-name: .github-private
path-to-signatures: 'cla/signatures.json'
path-to-document: 'https://gist.github.com/twitter-service/a1ad5818c024dc4265f8b60e6d043f26'
custom-allsigned-prcomment: 'All Contributors have signed the CLA. If the commit check is not passing, a maintainer must go the Checks tab of this PR and rerun the GitHub Action.'
branch: 'main'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ test/version_tmp
tmp
tmtags
tramp
.vscode
vendor
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

48 changes: 48 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Code of Conduct v2.0

This code of conduct outlines our expectations for participants within the [@TwitterOSS](https://twitter.com/twitteross) community, as well as steps to reporting unacceptable behavior. We are committed to providing a welcoming and inspiring community for all and expect our code of conduct to be honored. Anyone who violates this code of conduct may be banned from the community.

Our open source community strives to:

* **Be friendly and patient.**
* **Be welcoming**: We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
* **Be considerate**: Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
* **Be respectful**: Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one.
* **Be careful in the words that you choose**: we are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable. This includes, but is not limited to:
* Violent threats or language directed against another person.
* Discriminatory jokes and language.
* Posting sexually explicit or violent material.
* Posting (or threatening to post) other people's personally identifying information ("doxing").
* Personal insults, especially those using racist or sexist terms.
* Unwelcome sexual attention.
* Advocating for, or encouraging, any of the above behavior.
* Repeated harassment of others. In general, if someone asks you to stop, then stop.
* **When we disagree, try to understand why**: Disagreements, both social and technical, happen all the time. It is important that we resolve disagreements and differing views constructively. Remember that we’re different. The strength of our community comes from its diversity, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes.

This code is not exhaustive or complete. It serves to distill our common understanding of a collaborative, shared environment, and goals. We expect it to be followed in spirit as much as in the letter.

### Diversity Statement

We encourage everyone to participate and are committed to building a community for all. Although we may not be able to satisfy everyone, we all agree that everyone is equal. Whenever a participant has made a mistake, we expect them to take responsibility for it. If someone has been harmed or offended, it is our responsibility to listen carefully and respectfully, and do our best to right the wrong.

Although this list cannot be exhaustive, we explicitly honor diversity in age, gender, gender identity or expression, culture, ethnicity, language, national origin, political beliefs, profession, race, religion, sexual orientation, socioeconomic status, and technical ability. We will not tolerate discrimination based on any of the protected
characteristics above, including participants with disabilities.

### Reporting Issues

If you experience or witness unacceptable behavior—or have any other concerns—please report it by contacting us via [[email protected]](mailto:[email protected]). All reports will be handled with discretion. In your report please include:

- Your contact information.
- Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional witnesses, please
include them as well. Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly available record (e.g. a mailing list archive or a public IRC logger), please include a link.
- Any additional information that may be helpful.

After filing a report, a representative will contact you personally. If the person who is harassing you is part of the response team, they will recuse themselves from handling your incident. A representative will then review the incident, follow up with any additional questions, and make a decision as to how to respond. We will respect confidentiality requests for the purpose of protecting victims of abuse.

Anyone asked to stop unacceptable behavior is expected to comply immediately. If an individual engages in unacceptable behavior, the representative may take any action they deem appropriate, up to and including a permanent ban from our community without warning.

## Thanks

This code of conduct is based on the [Open Code of Conduct](https://github.com/todogroup/opencodeofconduct) from the [TODOGroup](http://todogroup.org).

We are thankful for their work and all the communities who have paved the way with code of conducts.
39 changes: 39 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# How to Contribute

We'd love to get patches from you!

## Getting Started

We follow the [GitHub Flow Workflow](https://guides.github.com/introduction/flow/)

1. Fork the project
2. Check out the `master` branch
3. Create a feature branch
4. Write code and tests for your change

```sh
$ cd ./twurl

# install twurl from source
$ bundle install

# run twurl from source
$ bundle exec twurl -v

# run tests
$ bundle exec rake
```

5. From your branch, make a pull request against `twitter/twurl/master`
6. Work with repo maintainers to get your change reviewed
7. Wait for your change to be pulled into `twitter/twurl/master`
8. Delete your feature branch

## License

By contributing your code, you agree to license your contribution under the
terms of the MIT License: https://github.com/twitter/twurl/blob/master/LICENSE

## Code of Conduct

Read our [Code of Conduct](CODE_OF_CONDUCT.md) for the project.
18 changes: 0 additions & 18 deletions COPYING

This file was deleted.

3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ gem 'jruby-openssl', :platforms => :jruby
gem 'rake'

group :test do
gem 'coveralls'
gem 'minitest', '>= 5'
gem 'rr', '>= 1.1'
gem 'rr', '~> 3.0.9'
gem 'simplecov', '>= 0.9'
end

Expand Down
23 changes: 0 additions & 23 deletions INSTALL

This file was deleted.

36 changes: 36 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Install

## Install with RubyGems (recommended)

```sh
# installing the latest release
$ gem install twurl
```

```sh
# verify installation
$ twurl -v
0.9.7
```

## Install from source

In case if you haven't installed `bundler` you need to install it first:

```sh
$ gem install bundler
```

```sh
$ git clone https://github.com/twitter/twurl
$ cd twurl
$ bundle install
```

If you don't want to install Twurl globally on your system, use `--path` [option](https://bundler.io/v2.0/bundle_install.html):

```
$ bundle install --path path/to/directory
$ bundle exec twurl -v
0.9.7
```
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2009 Marcel Molina <[email protected]>, 2019 Twitter, Inc.

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.
Loading
Loading