console_tweet 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,7 @@ module ConsoleTweet
48
48
  request_token = @client.request_token
49
49
  # ask the user to visit the auth url
50
50
  puts "To authenticate your client, visit the URL: #{request_token.authorize_url}"
51
+ open_link request_token.authorize_url
51
52
  # wait for the user to give us the PIN back
52
53
  print 'Enter PIN: '
53
54
  begin
@@ -230,6 +231,14 @@ module ConsoleTweet
230
231
  end
231
232
  end
232
233
 
234
+ def open_link url
235
+ exec "open #{url}" if is_mac?
236
+ end
237
+
238
+ def is_mac?
239
+ RUBY_PLATFORM.downcase.include?("darwin")
240
+ end
241
+
233
242
  end
234
243
 
235
244
  end
@@ -1,5 +1,5 @@
1
- module ConsoleTweet
2
-
3
- VERSION = '0.1.3'
1
+ module ConsoleTweet
2
+
3
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-06 00:00:00.000000000Z
12
+ date: 2012-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70320363965940 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70320363965940
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: twitter_oauth
27
- requirement: &70320363964460 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70320363964460
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: CLI Twitter Client - with OAuth
37
47
  email: john@crepezzi.com
38
48
  executables:
@@ -64,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
74
  version: '0'
65
75
  requirements: []
66
76
  rubyforge_project: console_tweet
67
- rubygems_version: 1.8.10
77
+ rubygems_version: 1.8.21
68
78
  signing_key:
69
79
  specification_version: 3
70
80
  summary: CLI Twitter Client