twim 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +6 -4
- data/lib/twim.rb +5 -0
- data/screenshot.png +0 -0
- data/twim.gemspec +1 -1
- metadata +27 -34
data/README.markdown
CHANGED
@@ -22,23 +22,25 @@ for instructions.
|
|
22
22
|
|
23
23
|
# Usage
|
24
24
|
|
25
|
-
twim
|
25
|
+
twim [args]
|
26
26
|
|
27
27
|
This will invoke vim, where you can compose your tweet. Look at the Vim
|
28
28
|
status line to see how many characters you have left before reaching the
|
29
29
|
character limit.
|
30
30
|
|
31
|
+
If you can pass in arguments, they will be pre-inserted in to the tweet text.
|
32
|
+
|
31
33
|
To post the tweet, exit vim with `:wq`. To abort, exit with `:q!`.
|
32
34
|
|
33
35
|
# Turning URLs into TinyURLs
|
34
36
|
|
35
|
-
If you paste or type
|
37
|
+
If you paste or type a long URL, `twim` can condense it into a
|
36
38
|
TinyURL. Just put the cursor somewhere on the URL and type
|
37
39
|
|
38
40
|
<Leader>,
|
39
41
|
|
40
|
-
(That's the leader key followed by a comma). Note that
|
41
|
-
assumes you have `curl` installed on your system.
|
42
|
+
in normal mode. (That's the leader key followed by a comma). Note that
|
43
|
+
this feature assumes you have `curl` installed on your system.
|
42
44
|
|
43
45
|
|
44
46
|
# About
|
data/lib/twim.rb
CHANGED
@@ -8,6 +8,11 @@ class Twim
|
|
8
8
|
options = Twurl::CLI.parse_options ["/1/statuses/update.xml"]
|
9
9
|
vimscript = File.expand_path '../twim.vim', __FILE__
|
10
10
|
f = Tempfile.new('twitter-msg')
|
11
|
+
|
12
|
+
if ARGV.size > 0
|
13
|
+
f.write ARGV.join(' ')
|
14
|
+
f.rewind
|
15
|
+
end
|
11
16
|
msg = begin
|
12
17
|
system "vim -S %s %s" % [vimscript, f.path]
|
13
18
|
f.read
|
data/screenshot.png
CHANGED
Binary file
|
data/twim.gemspec
CHANGED
metadata
CHANGED
@@ -1,39 +1,36 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: twim
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Daniel Choi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-05-05 00:00:00 -04:00
|
12
|
+
date: 2011-07-27 00:00:00.000000000 -04:00
|
14
13
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
17
16
|
name: twurl
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &71649050 !ruby/object:Gem::Requirement
|
20
18
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
24
22
|
version: 0.6.3
|
25
23
|
type: :runtime
|
26
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *71649050
|
27
26
|
description: tail your Twitter timeslines
|
28
|
-
email:
|
27
|
+
email:
|
29
28
|
- dhchoi@gmail.com
|
30
|
-
executables:
|
29
|
+
executables:
|
31
30
|
- twim
|
32
31
|
extensions: []
|
33
|
-
|
34
32
|
extra_rdoc_files: []
|
35
|
-
|
36
|
-
files:
|
33
|
+
files:
|
37
34
|
- .gitignore
|
38
35
|
- README.markdown
|
39
36
|
- Rakefile
|
@@ -45,30 +42,26 @@ files:
|
|
45
42
|
has_rdoc: true
|
46
43
|
homepage: https://github.com/danchoi/twim
|
47
44
|
licenses: []
|
48
|
-
|
49
45
|
post_install_message:
|
50
46
|
rdoc_options: []
|
51
|
-
|
52
|
-
require_paths:
|
47
|
+
require_paths:
|
53
48
|
- lib
|
54
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
50
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
59
54
|
version: 1.9.0
|
60
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
56
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version:
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
66
61
|
requirements: []
|
67
|
-
|
68
62
|
rubyforge_project: twim
|
69
|
-
rubygems_version: 1.6.
|
63
|
+
rubygems_version: 1.6.2
|
70
64
|
signing_key:
|
71
65
|
specification_version: 3
|
72
66
|
summary: tail your Twitter timeslines
|
73
67
|
test_files: []
|
74
|
-
|