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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module ConsoleTweet
2
2
 
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
 
5
5
  end
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.2
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-11-06 01:00:00.000000000 -04:00
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: &70232062474580 !ruby/object:Gem::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: *70232062474580
24
+ version_requirements: *70320363965940
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: twitter_oauth
28
- requirement: &70232062474060 !ruby/object:Gem::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: *70232062474060
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.6.2
67
+ rubygems_version: 1.8.10
70
68
  signing_key:
71
69
  specification_version: 3
72
70
  summary: CLI Twitter Client