blip 1.0.0

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.
Files changed (4) hide show
  1. data/README +7 -0
  2. data/bin/blip +16 -0
  3. data/blip.gemspec +19 -0
  4. metadata +78 -0
data/README ADDED
@@ -0,0 +1,7 @@
1
+ paste:
2
+ blip
3
+
4
+ copy:
5
+ echo -n 42 | blip
6
+
7
+ J-_-L
data/bin/blip ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ require 'clipboard'
5
+ rescue LoadError
6
+ require 'rubygems'
7
+ require 'clipboard'
8
+ end
9
+
10
+ if !$stdin.tty?
11
+ Clipboard.copy $stdin.read
12
+ else
13
+ puts Clipboard.paste # the trailing new-line is intended ;)
14
+ end
15
+
16
+ # J-_-L
data/blip.gemspec ADDED
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require 'rubygems' unless defined? Gem
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'blip'
6
+ s.version = '1.0.0'
7
+
8
+ s.author = 'Jan Lelis'
9
+ s.date = '2011-01-16'
10
+ s.summary = 'A little command line utility for accessing the clipboard.'
11
+ s.description = 'A little command line utility for accessing the clipboard: Pipe into blip for copying, simpy call it for pasting.'
12
+ s.email = 'mail@janlelis.de'
13
+ s.homepage = 'https://gist.github.com/781835'
14
+ s.rubygems_version = '1.3.7'
15
+ s.add_dependency 'clipboard'
16
+ s.files = %w{bin/blip blip.gemspec README}
17
+ s.executables = %w(blip)
18
+ s.default_executable = 'blip'
19
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blip
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - Jan Lelis
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-01-16 00:00:00 +01:00
18
+ default_executable: blip
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: clipboard
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ description: "A little command line utility for accessing the clipboard: Pipe into blip for copying, simpy call it for pasting."
34
+ email: mail@janlelis.de
35
+ executables:
36
+ - blip
37
+ extensions: []
38
+
39
+ extra_rdoc_files: []
40
+
41
+ files:
42
+ - bin/blip
43
+ - blip.gemspec
44
+ - README
45
+ has_rdoc: true
46
+ homepage: https://gist.github.com/781835
47
+ licenses: []
48
+
49
+ post_install_message:
50
+ rdoc_options: []
51
+
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ requirements: []
71
+
72
+ rubyforge_project:
73
+ rubygems_version: 1.3.7
74
+ signing_key:
75
+ specification_version: 3
76
+ summary: A little command line utility for accessing the clipboard.
77
+ test_files: []
78
+