togist 1.0.1 → 1.0.2

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.
@@ -1,3 +1,3 @@
1
1
  module Togist
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/lib/togist.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "togist/version"
2
+ require "Clipboard"
2
3
 
3
4
  module Togist
4
5
 
@@ -51,7 +52,7 @@ def checkoutput(out)
51
52
  puts "There was an unknown error. Are you sure you can connect to github? \n\n"
52
53
  help
53
54
  else
54
- final = `echo '#{out}' | pbcopy`
55
+ Clipboard.copy(out)
55
56
  puts "Gist: #{out} (copied to clipboard)"
56
57
  `open #{out}` if @open
57
58
  end
data/togist.gemspec CHANGED
@@ -8,12 +8,13 @@ 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 on mac}
12
- gem.summary = %q{A simple wrapper to send something to gist & copy to clipboard on mac}
13
- gem.homepage = "http://github.com/mikesplain/togist"
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}
13
+ gem.homepage = "http://mikesplain.github.com/togist/"
14
14
 
15
15
  gem.add_development_dependency "rake"
16
16
  gem.add_dependency "gist"
17
+ gem.add_dependency "clipboard"
17
18
 
18
19
  gem.files = `git ls-files`.split($/)
19
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: togist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Splain
@@ -43,7 +43,23 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: A simple wrapper to send something to gist & copy to clipboard on mac
46
+ - !ruby/object:Gem::Dependency
47
+ type: :runtime
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ name: clipboard
55
+ prerelease: false
56
+ requirement: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: A simple wrapper to send something to gist & copy to clipboard
47
63
  email:
48
64
  - mike.splain@gmail.com
49
65
  executables:
@@ -70,7 +86,7 @@ files:
70
86
  - lib/togist.rb
71
87
  - lib/togist/version.rb
72
88
  - togist.gemspec
73
- homepage: http://github.com/mikesplain/togist
89
+ homepage: http://mikesplain.github.com/togist/
74
90
  licenses: []
75
91
  post_install_message:
76
92
  rdoc_options: []
@@ -84,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
100
  - !ruby/object:Gem::Version
85
101
  segments:
86
102
  - 0
87
- hash: 12964650513660107
103
+ hash: -3755979569695005929
88
104
  version: '0'
89
105
  required_rubygems_version: !ruby/object:Gem::Requirement
90
106
  none: false
@@ -93,12 +109,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
109
  - !ruby/object:Gem::Version
94
110
  segments:
95
111
  - 0
96
- hash: 12964650513660107
112
+ hash: -3755979569695005929
97
113
  version: '0'
98
114
  requirements: []
99
115
  rubyforge_project:
100
- rubygems_version: 1.8.23
116
+ rubygems_version: 1.8.24
101
117
  signing_key:
102
118
  specification_version: 3
103
- summary: A simple wrapper to send something to gist & copy to clipboard on mac
119
+ summary: A simple wrapper to send something to gist & copy to clipboard
104
120
  test_files: []