Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gist
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Ruby Team
gist
Commits
4b9ebd08
Verified
Commit
4b9ebd08
authored
5 years ago
by
Daniel Leidert
Browse files
Options
Downloads
Patches
Plain Diff
Refresh patch to remove fuzz
* d/patches/rename: Refresh and update patch.
parent
9aaf9ac2
No related branches found
No related tags found
No related merge requests found
Pipeline
#121912
passed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+1
-0
1 addition, 0 deletions
debian/changelog
debian/patches/rename
+29
-22
29 additions, 22 deletions
debian/patches/rename
with
30 additions
and
22 deletions
debian/changelog
+
1
−
0
View file @
4b9ebd08
...
...
@@ -3,6 +3,7 @@ gist (5.1.0-1) UNRELEASED; urgency=medium
* Team upload.
* New upstream release.
* d/copyright: Add Upstream-Contact field.
* d/patches/rename: Refresh and update patch.
* d/upstream/metadata: Add Archive field and make it valid YAML.
-- Daniel Leidert <dleidert@debian.org> Thu, 02 Apr 2020 00:01:33 +0200
...
...
This diff is collapsed.
Click to expand it.
debian/patches/rename
+
29
−
22
View file @
4b9ebd08
...
...
@@ -4,14 +4,14 @@ Subject: Rename gist script to gist-paste, to not conflict with yorick.
Bug-Debian: https://bugs.debian.org/722662
---
README.md |
5
6 ++++++++++++++++++++++++++++----------------------------
README.md | 6
2
++++++++++++++++++++++++++++
++--
----------------------------
Rakefile | 2 +-
build/gist.1 | 26 ++++++++++++
+
-------------
build/gist.1 | 26 ++++++++++++-------------
gist.gemspec | 2 +-
4 files changed, 4
3
insertions(+), 4
3
deletions(-)
4 files changed, 4
6
insertions(+), 4
6
deletions(-)
diff --git a/README.md b/README.md
index
7c31de7..8fa414e
100644
index
a2c1f60..8a13ba0
100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
...
...
@@ -27,7 +27,7 @@ index 7c31de7..8fa414e 100644
upload content to https://gist.github.com/.
## Installation
@@ -
25,57 +25,57
@@
upload content to https://gist.github.com/.
@@ -
30,65 +30,65
@@
upload content to https://gist.github.com/.
To upload the contents of `a.rb` just:
...
...
@@ -78,7 +78,8 @@ index 7c31de7..8fa414e 100644
- gist -e <a.rb
+ gist-paste -e <a.rb
And you can just ask gist to open a browser window directly with `-o`.
-And you can just ask gist to open a browser window directly with `-o`.
+And you can just ask gist-open to open a browser window directly with `-o`.
- gist -o <a.rb
+ gist-paste -o <a.rb
...
...
@@ -102,34 +103,40 @@ index 7c31de7..8fa414e 100644
## Login
@@ -83,7 +83,7 @@
If you want to associate your gists with your GitHub account, you need to login
with gist. It doesn't store your username and password, it just uses them to get
If you want to associate your gists with your GitHub account, you need to login
-with gist. It doesn't store your username and password, it just uses them to get
+with gist-paste. It doesn't store your username and password, it just uses them to get
an OAuth2 token (with the "gist" permission).
- gist --login
+ gist-paste --login
Obtaining OAuth2 access_token from
g
it
h
ub.
Obtaining OAuth2 access_token from
G
it
H
ub.
GitHub username: ConradIrwin
GitHub password:
@@ -
96,7 +96,7 @@
file
.
@@ -
116,19 +116,19 @@
The `umask` ensures that the file is only accessible from your user account
.
After you've done this, you can still upload gists anonymously with `-a`.
### GitHub Enterprise
- gist -a a.rb
+ gist-paste -a a.rb
#### Password-less login
@@ -118,7 +118,7 @@
you need to export the `GITHUB_URL` environment variable (usually done in your `
-If you'd like `gist` to use your locally installed [GitHub Enterprise](https://enterprise.github.com/),
+If you'd like `gist-paste` to use your locally installed [GitHub Enterprise](https://enterprise.github.com/),
you need to export the `GITHUB_URL` environment variable (usually done in your `~/.bashrc`).
export GITHUB_URL=http://github.internal.example.com/
-Once you've done this and restarted your terminal (or run `source ~/.bashrc`), gist will
+Once you've done this and restarted your terminal (or run `source ~/.bashrc`), gist-paste will
automatically use
g
it
h
ub
e
nterprise instead of the public github.com
automatically use
G
it
H
ub
E
nterprise instead of the public github.com
Your token for GitHub Enterprise will be stored in `.gist.<protocol>.<server.name>[.<port>]` (e.g.
@@ -133,7 +133,7 @@
setting it to the public URL will not work. Use `unset GITHUB_URL`
`~/.gist.http.github.internal.example.com` for the GITHUB_URL example above) instead of `~/.gist`.
If you have multiple servers or use Enterprise and public GitHub often, you can work around this by creating scripts
-that set the env var and then run `gist`. Keep in mind that to use the public GitHub you must unset the env var. Just
+that set the env var and then run `gist-paste`. Keep in mind that to use the public GitHub you must unset the env var. Just
setting it to the public URL will not work. Use `unset GITHUB_URL`
### Token file format
@@ -136,7 +136,7 @@
setting it to the public URL will not work. Use `unset GITHUB_URL`
If you cannot use passwords, as most Enterprise installations do, you can generate the token via the web interface
and then simply save the string in the correct file. Avoid line breaks or you might see:
```
...
...
@@ -138,7 +145,7 @@ index 7c31de7..8fa414e 100644
Error: Bad credentials
```
@@ -17
0
,12 +17
0
,12 @@
in `~/.gist`, where it can later be read by `Gist.gist`
@@ -17
2
,12 +17
2
,12 @@
in `~/.gist`, where it can later be read by `Gist.gist`
## Configuration
...
...
@@ -147,14 +154,14 @@ index 7c31de7..8fa414e 100644
alias to your `~/.bashrc` (or equivalent). For example:
- alias gist='gist -c'
+ alias gist='gist-paste -c'
+ alias gist
-paste
='gist-paste -c'
-If you'd prefer gist to open a different browser, then you can export the BROWSER
+If you'd prefer gist-paste to open a different browser, then you can export the BROWSER
environment variable:
export BROWSER=google-chrome
@@ -18
4
,7 +18
4
,7 @@
If clipboard or browser integration don't work on your platform, please file a b
@@ -18
6
,7 +18
6
,7 @@
If clipboard or browser integration don't work on your platform, please file a b
(more ideally) a pull request.
If you need to use an HTTP proxy to access the internet, export the `HTTP_PROXY` or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment