togist 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
- Add an 'o' to the end of a shortcut to make it open your browser to the gist
32
- echo 'foo' | 2go # Will open to the private gist url
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
@@ -1,3 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rake/testtask"
2
3
 
3
- task :default => [:install]
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'lib/togist'
6
+ t.test_files = FileList['test/lib/togist/*_test.rb']
7
+ t.verbose = true
8
+ end
9
+
10
+ task :default => [:test]
@@ -1,3 +1,3 @@
1
1
  module Togist
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -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
@@ -0,0 +1,7 @@
1
+ require_relative '../../test_helper'
2
+
3
+ describe Togist do
4
+ it "must be defined" do
5
+ Togist::VERSION.wont_be_nil
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ require 'minitest/autorun'
2
+ require 'minitest/pride'
3
+ require File.expand_path('../../lib/togist.rb', __FILE__)
@@ -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.2
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 00:00:00.000000000 Z
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: -3755979569695005929
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: -3755979569695005929
115
+ hash: -832895396095482599
113
116
  version: '0'
114
117
  requirements: []
115
118
  rubyforge_project:
116
- rubygems_version: 1.8.24
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