socialcast 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/socialcast/cli.rb +2 -1
- data/lib/socialcast/version.rb +1 -1
- metadata +4 -4
data/lib/socialcast/cli.rb
CHANGED
@@ -22,11 +22,12 @@ module Socialcast
|
|
22
22
|
|
23
23
|
desc "authenticate", "Authenticate using your Socialcast credentials"
|
24
24
|
method_option :user, :type => :string, :aliases => '-u', :desc => 'email address for the authenticated user'
|
25
|
+
method_option :password, :type => :string, :aliases => '-p', :desc => 'password for the authenticated user'
|
25
26
|
method_option :domain, :type => :string, :default => 'api.socialcast.com', :desc => 'Socialcast community domain'
|
26
27
|
method_option :proxy, :type => :string, :desc => 'HTTP proxy options for connecting to Socialcast server'
|
27
28
|
def authenticate
|
28
29
|
user = options[:user] || ask('Socialcast username: ')
|
29
|
-
password = HighLine.new.ask("Socialcast password: ") { |q| q.echo = false }
|
30
|
+
password = options[:password] || HighLine.new.ask("Socialcast password: ") { |q| q.echo = false }
|
30
31
|
domain = options[:domain]
|
31
32
|
|
32
33
|
url = ['https://', domain, '/api/authentication.json'].join
|
data/lib/socialcast/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-07-
|
19
|
+
date: 2011-07-20 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rest-client
|