twpipe 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/twpipe +3 -2
- data/lib/twpipe/version.rb +1 -1
- data/twpipe.gemspec +2 -2
- metadata +4 -4
data/bin/twpipe
CHANGED
@@ -6,7 +6,7 @@ require 'optparse'
|
|
6
6
|
|
7
7
|
options = {}
|
8
8
|
ARGV.options do |opt|
|
9
|
-
opt.version =
|
9
|
+
opt.version = Twpipe::VERSION
|
10
10
|
opt.banner = <<EOF
|
11
11
|
This is a simply Twitter Command-Line client.
|
12
12
|
|
@@ -28,7 +28,7 @@ Options:
|
|
28
28
|
|
29
29
|
EOF
|
30
30
|
|
31
|
-
opt.on('-c CONFIG_FILE', '--config CONFIG_FILE', 'path to configuration file') {|v| options['config_path'] }
|
31
|
+
opt.on('-c CONFIG_FILE', '--config CONFIG_FILE', 'path to configuration file') {|v| options['config_path'] = File.expand_path(v) }
|
32
32
|
|
33
33
|
opt.permute!
|
34
34
|
end
|
@@ -44,6 +44,7 @@ end
|
|
44
44
|
|
45
45
|
begin
|
46
46
|
Twpipe.config_path = options['config_path'] if options['config_path']
|
47
|
+
p Twpipe.config_path
|
47
48
|
pipe = Twpipe.new
|
48
49
|
pipe.tweet(message)
|
49
50
|
rescue Twpipe::ConfigError => e
|
data/lib/twpipe/version.rb
CHANGED
data/twpipe.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{twpipe}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["koshigoe"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-25}
|
13
13
|
s.default_executable = %q{twpipe}
|
14
14
|
s.description = %q{This is a simply Twitter Command-Line client.}
|
15
15
|
s.email = %q{KoshigoeBushou@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twpipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- koshigoe
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-25 00:00:00 +09:00
|
19
19
|
default_executable: twpipe
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|