togist 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -5
- data/Rakefile +8 -1
- data/lib/togist/version.rb +1 -1
- data/test/lib/togist/checkIfPiped_test.rb +13 -0
- data/test/lib/togist/version_test.rb +7 -0
- data/test/test_helper.rb +3 -0
- data/togist.gemspec +2 -2
- metadata +14 -8
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
# ToGist
|
2
2
|
A simple app that will send command line output into a private or public gist, copy the url to your clipboard, and (if requested) open that url in your browser.
|
3
3
|
|
4
|
-
## Requirements
|
5
|
-
This gem is designed for use on Mac OSX.
|
6
|
-
|
7
4
|
|
8
5
|
## Installation
|
9
6
|
|
@@ -28,10 +25,16 @@ Output files or commands and pipe them into either shortcut:
|
|
28
25
|
2g : Uploads to private gist and copies gist url to mac clipboard
|
29
26
|
2gpub : Same as above except public
|
30
27
|
###Tips:
|
31
|
-
|
32
|
-
|
28
|
+
|
29
|
+
Add an 'o' to the end of a shortcut to make it open your browser to the gist:
|
30
|
+
|
31
|
+
echo 'foo' | 2go # Will open to the private gist url
|
33
32
|
echo 'foo' | 2gpubo # Will open to the public gist url
|
34
33
|
|
34
|
+
## Requirements
|
35
|
+
|
36
|
+
Linux: for clipboard to work, xclip or xsel must be installed. If they're not, togist is basically useless on linux.
|
37
|
+
|
35
38
|
## Contributing
|
36
39
|
|
37
40
|
1. Fork it
|
data/Rakefile
CHANGED
data/lib/togist/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
describe "to check STDIN.tty" do
|
4
|
+
it "must equal true because not pipe " do
|
5
|
+
!STDIN.tty?.must_equal true
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "to check checkIfPiped output" do
|
10
|
+
it "must be equal to STDIN.tty?" do
|
11
|
+
checkIfPiped.must_equal !STDIN.tty?
|
12
|
+
end
|
13
|
+
end
|
data/test/test_helper.rb
ADDED
data/togist.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Togist::VERSION
|
9
9
|
gem.authors = ["Mike Splain"]
|
10
10
|
gem.email = ["mike.splain@gmail.com"]
|
11
|
-
gem.description = %q{A simple wrapper to send something to gist & copy to clipboard}
|
12
|
-
gem.summary = %q{A simple wrapper to send something to gist & copy to clipboard}
|
11
|
+
gem.description = %q{A simple wrapper to send something to gist & copy the URL to the clipboard}
|
12
|
+
gem.summary = %q{A simple wrapper to send something to gist & copy the URL to the clipboard}
|
13
13
|
gem.homepage = "http://mikesplain.github.com/togist/"
|
14
14
|
|
15
15
|
gem.add_development_dependency "rake"
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: togist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mike Splain
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :development
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
description: A simple wrapper to send something to gist & copy to clipboard
|
62
|
+
description: A simple wrapper to send something to gist & copy the URL to the clipboard
|
63
63
|
email:
|
64
64
|
- mike.splain@gmail.com
|
65
65
|
executables:
|
@@ -85,6 +85,9 @@ files:
|
|
85
85
|
- bin/togist
|
86
86
|
- lib/togist.rb
|
87
87
|
- lib/togist/version.rb
|
88
|
+
- test/lib/togist/checkIfPiped_test.rb
|
89
|
+
- test/lib/togist/version_test.rb
|
90
|
+
- test/test_helper.rb
|
88
91
|
- togist.gemspec
|
89
92
|
homepage: http://mikesplain.github.com/togist/
|
90
93
|
licenses: []
|
@@ -100,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
103
|
- !ruby/object:Gem::Version
|
101
104
|
segments:
|
102
105
|
- 0
|
103
|
-
hash: -
|
106
|
+
hash: -832895396095482599
|
104
107
|
version: '0'
|
105
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
109
|
none: false
|
@@ -109,12 +112,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
112
|
- !ruby/object:Gem::Version
|
110
113
|
segments:
|
111
114
|
- 0
|
112
|
-
hash: -
|
115
|
+
hash: -832895396095482599
|
113
116
|
version: '0'
|
114
117
|
requirements: []
|
115
118
|
rubyforge_project:
|
116
|
-
rubygems_version: 1.8.
|
119
|
+
rubygems_version: 1.8.23
|
117
120
|
signing_key:
|
118
121
|
specification_version: 3
|
119
|
-
summary: A simple wrapper to send something to gist & copy to clipboard
|
120
|
-
test_files:
|
122
|
+
summary: A simple wrapper to send something to gist & copy the URL to the clipboard
|
123
|
+
test_files:
|
124
|
+
- test/lib/togist/checkIfPiped_test.rb
|
125
|
+
- test/lib/togist/version_test.rb
|
126
|
+
- test/test_helper.rb
|