[DRE-commits] [gist] 01/02: Rename gist script to gist-paste, to not conflict with yorick. (Closes: #722662)
Christian Hofstaedtler
zeha-guest at alioth.debian.org
Sun Oct 6 18:02:17 UTC 2013
This is an automated email from the git hooks/post-receive script.
zeha-guest pushed a commit to branch master
in repository gist.
commit d69a780b6885ecd91862ffa84a6511a9ebea3aa8
Author: Christian Hofstaedtler <christian at hofstaedtler.name>
Date: Sun Oct 6 20:00:40 2013 +0200
Rename gist script to gist-paste, to not conflict with yorick. (Closes: #722662)
---
debian/control | 3 +
debian/gist.manpages | 2 +-
debian/patches/rename | 159 +++++++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 +-
5 files changed, 169 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index b9b0825..0db63a2 100644
--- a/debian/control
+++ b/debian/control
@@ -19,3 +19,6 @@ Description: Upload gists to gist.github.com
Allows you to convienently create gists ("pastes").
.
Also provides a Ruby library to do this.
+ .
+ The "gist" image viewer from yorick is in the yorick package,
+ not in this package.
diff --git a/debian/gist.manpages b/debian/gist.manpages
index a4fac65..9b3b8c1 100644
--- a/debian/gist.manpages
+++ b/debian/gist.manpages
@@ -1 +1 @@
-build/gist.1
+build/gist-paste.1
diff --git a/debian/patches/rename b/debian/patches/rename
new file mode 100644
index 0000000..8f80b05
--- /dev/null
+++ b/debian/patches/rename
@@ -0,0 +1,159 @@
+Index: gist/README.md
+===================================================================
+--- gist.orig/README.md 2013-09-30 23:53:18.423569296 +0200
++++ gist/README.md 2013-09-30 23:53:18.419569331 +0200
+@@ -1,9 +1,9 @@
+-gist(1) -- upload code to https://gist.github.com
+-=================================================
++gist-paste(1) -- upload code to https://gist.github.com
++=======================================================
+
+ ## Synopsis
+
+-The gist gem provides a `gist` command that you can use from your terminal to
++The gist gem provides a `gist-paste` command that you can use from your terminal to
+ upload content to https://gist.github.com/.
+
+ ## Installation
+@@ -21,54 +21,54 @@ upload content to https://gist.github.co
+
+ To upload the contents of `a.rb` just:
+
+- gist a.rb
++ gist-paste a.rb
+
+ Upload multiple files:
+
+- gist a b c
+- gist *.rb
++ gist-paste a b c
++ gist-paste *.rb
+
+ By default it reads from STDIN, and you can set a filename with `-f`.
+
+- gist -f test.rb <a.rb
++ gist-paste -f test.rb <a.rb
+
+ Alternatively, you can just paste from the clipboard:
+
+- gist -P
++ gist-paste -P
+
+ Use `-p` to make the gist private:
+
+- gist -p a.rb
++ gist-paste -p a.rb
+
+ Use `-d` to add a description:
+
+- gist -d "Random rbx bug" a.rb
++ gist-paste -d "Random rbx bug" a.rb
+
+ You can update existing gists with `-u`:
+
+- gist lib/gist.rb bin/gist -u 42f2c239d2eb57299408
++ gist-paste lib/gist.rb bin/gist-paste -u 42f2c239d2eb57299408
+
+ If you'd like to copy the resulting URL to your clipboard, use `-c`.
+
+- gist -c <a.rb
++ gist-paste -c <a.rb
+
+ If you'd like to copy the resulting embeddable URL to your clipboard, use `-e`.
+
+- 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-paste to open a browser window directly with `-o`.
+
+- gist -o <a.rb
++ gist-paste -o <a.rb
+
+-See `gist --help` for more detail.
++See `gist-paste --help` for more detail.
+
+ ## Login
+
+ 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 github.
+ GitHub username: ConradIrwin
+ GitHub password:
+@@ -80,7 +80,7 @@ file.
+
+ After you've done this, you can still upload gists anonymously with `-a`.
+
+- gist -a a.rb
++ gist-paste -a a.rb
+
+ # Library
+
+@@ -115,22 +115,22 @@ in `~/.gist`, where it can later be read
+
+ ## GitHub enterprise
+
+-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 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 github enterprise instead of the public github.com
+
+ ## Configuration
+
+-If you'd like `-o` or `-c` to be the default when you use the gist executable, add an
++If you'd like `-o` or `-c` to be the default when you use the gist-paste executable, add an
+ alias to your `~/.bashrc` (or equivalent). For example:
+
+- alias gist='gist -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
+@@ -139,7 +139,7 @@ If clipboard or browser integration don'
+ (more ideally) a pull request.
+
+ If you need to use an HTTP proxy to access the internet, export the `HTTP_PROXY` or
+-`http_proxy` environment variable and gist will use it.
++`http_proxy` environment variable and gist-paste will use it.
+
+ ## Meta-fu
+
+Index: gist/Rakefile
+===================================================================
+--- gist.orig/Rakefile 2013-09-30 23:53:18.423569296 +0200
++++ gist/Rakefile 2013-09-30 23:53:18.419569331 +0200
+@@ -14,7 +14,7 @@ task :man do
+ File.write "README.md.ron", File.read("README.md").gsub("\u200c", "* ")
+ sh 'ronn --roff --manual="Gist manual" README.md.ron'
+ rm 'README.md.ron'
+- mv 'README.1', 'build/gist.1'
++ mv 'README.1', 'build/gist-paste.1'
+ end
+
+ task :standalone do
+Index: gist/gist.gemspec
+===================================================================
+--- gist.orig/gist.gemspec 2013-09-30 23:53:18.423569296 +0200
++++ gist/gist.gemspec 2013-09-30 23:53:18.419569331 +0200
+@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
+ s.files = `git ls-files`.split("\n")
+ s.require_paths = ["lib"]
+
+- s.executables << 'gist'
++ s.executables << 'gist-paste'
+
+ s.add_dependency 'json'
+ %w(rake rspec webmock ronn).each do |gem|
diff --git a/debian/patches/series b/debian/patches/series
index b990392..ca9117d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
lib-path
+rename
diff --git a/debian/rules b/debian/rules
index bfa7dfa..a3a4411 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,10 +19,14 @@ override_dh_auto_build:
mv build build.shipped; \
fi
LC_ALL=C.UTF-8 rake man
- LC_ALL=C.UTF-8 rake standalone
+ mv bin/gist bin/gist-paste
override_dh_auto_clean:
if [ -d build.shipped ]; then \
rm -rf build; \
mv build.shipped build; \
fi
+ if [ -f bin/gist-paste ]; then \
+ mv bin/gist-paste bin/gist; \
+ fi
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gist.git
More information about the Pkg-ruby-extras-commits
mailing list