blip 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +3 -5
  2. data/bin/blip +5 -9
  3. data/blip.gemspec +4 -4
  4. metadata +5 -15
data/README CHANGED
@@ -1,7 +1,5 @@
1
- paste:
2
- blip
3
-
4
- copy:
5
- echo -n 42 | blip
1
+ PASTE: blip
2
+ COPY: echo -n 42 | blip
3
+ COPY(alt): blip file_name.txt
6
4
 
7
5
  J-_-L
data/bin/blip CHANGED
@@ -1,16 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- begin
4
- require 'clipboard'
5
- rescue LoadError
6
- require 'rubygems'
7
- require 'clipboard'
8
- end
3
+ require 'rubygems' unless defined? Gem
4
+ require 'clipboard'
9
5
 
10
- if !$stdin.tty?
11
- Clipboard.copy $stdin.read
12
- else
6
+ if $stdin.tty? && $*.empty?
13
7
  puts Clipboard.paste # the trailing new-line is intended ;)
8
+ else
9
+ Clipboard.copy ARGF.read
14
10
  end
15
11
 
16
12
  # J-_-L
@@ -3,17 +3,17 @@ require 'rubygems' unless defined? Gem
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'blip'
6
- s.version = '1.0.0'
6
+ s.version = '1.1.0'
7
7
 
8
8
  s.author = 'Jan Lelis'
9
- s.date = '2011-01-16'
9
+ s.date = '2011-02-11'
10
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.'
11
+ s.description = 'A little command line utility for accessing the clipboard: Pipe into blip (or pass args) for copying, simpy call it for pasting.'
12
12
  s.email = 'mail@janlelis.de'
13
13
  s.homepage = 'https://gist.github.com/781835'
14
- s.rubygems_version = '1.3.7'
15
14
  s.add_dependency 'clipboard'
16
15
  s.files = %w{bin/blip blip.gemspec README}
17
16
  s.executables = %w(blip)
18
17
  s.default_executable = 'blip'
18
+ s.has_rdoc = false
19
19
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blip
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
4
+ prerelease:
5
+ version: 1.1.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Jan Lelis
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-16 00:00:00 +01:00
13
+ date: 2011-02-11 00:00:00 +01:00
18
14
  default_executable: blip
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,12 +21,10 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
24
  version: "0"
31
25
  type: :runtime
32
26
  version_requirements: *id001
33
- description: "A little command line utility for accessing the clipboard: Pipe into blip for copying, simpy call it for pasting."
27
+ description: "A little command line utility for accessing the clipboard: Pipe into blip (or pass args) for copying, simpy call it for pasting."
34
28
  email: mail@janlelis.de
35
29
  executables:
36
30
  - blip
@@ -56,21 +50,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
50
  requirements:
57
51
  - - ">="
58
52
  - !ruby/object:Gem::Version
59
- segments:
60
- - 0
61
53
  version: "0"
62
54
  required_rubygems_version: !ruby/object:Gem::Requirement
63
55
  none: false
64
56
  requirements:
65
57
  - - ">="
66
58
  - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
59
  version: "0"
70
60
  requirements: []
71
61
 
72
62
  rubyforge_project:
73
- rubygems_version: 1.3.7
63
+ rubygems_version: 1.5.0
74
64
  signing_key:
75
65
  specification_version: 3
76
66
  summary: A little command line utility for accessing the clipboard.