console_tweet 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/console_tweet/cli.rb +1 -1
- data/lib/console_tweet/version.rb +1 -1
- metadata +7 -9
data/lib/console_tweet/cli.rb
CHANGED
@@ -83,7 +83,7 @@ module ConsoleTweet
|
|
83
83
|
tweet_text = STDIN.gets.strip
|
84
84
|
end
|
85
85
|
return failtown("Empty Tweet") if tweet_text.empty?
|
86
|
-
return failtown("Tweet is too long!") if tweet_text.size > 140
|
86
|
+
return failtown("Tweet is too long!") if tweet_text.scan(/./mu).size > 140
|
87
87
|
return failtown("Unauthorized, re-run setup!") unless @client && @client.authorized?
|
88
88
|
# actually post it
|
89
89
|
@client.update(tweet_text)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console_tweet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-12-06 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rspec
|
17
|
-
requirement: &
|
16
|
+
requirement: &70320363965940 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: '0'
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70320363965940
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: twitter_oauth
|
28
|
-
requirement: &
|
27
|
+
requirement: &70320363964460 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,7 +32,7 @@ dependencies:
|
|
33
32
|
version: '0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70320363964460
|
37
36
|
description: CLI Twitter Client - with OAuth
|
38
37
|
email: john@crepezzi.com
|
39
38
|
executables:
|
@@ -45,7 +44,6 @@ files:
|
|
45
44
|
- lib/console_tweet/version.rb
|
46
45
|
- lib/console_tweet.rb
|
47
46
|
- bin/twitter
|
48
|
-
has_rdoc: true
|
49
47
|
homepage: http://seejohnrun.github.com/console_tweet/
|
50
48
|
licenses: []
|
51
49
|
post_install_message:
|
@@ -66,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
64
|
version: '0'
|
67
65
|
requirements: []
|
68
66
|
rubyforge_project: console_tweet
|
69
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.8.10
|
70
68
|
signing_key:
|
71
69
|
specification_version: 3
|
72
70
|
summary: CLI Twitter Client
|