socialcast 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/socialcast +2 -1
  3. data/socialcast.gemspec +2 -2
  4. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
data/bin/socialcast CHANGED
@@ -46,13 +46,14 @@ command :share do |c|
46
46
  c.summary = 'share a message'
47
47
  c.description = 'post a message into your socialcast stream'
48
48
  c.example 'socialcast share "some text"', 'basic usage'
49
+ c.option '--url STRING', String, 'referenced url for the message'
49
50
  c.action do |args, options|
50
51
  message = args.first
51
52
 
52
53
  url = ['https://', credentials[:domain], '/api/messages.json'].join
53
54
  say "Posting message from #{credentials[:user]} to: #{url}"
54
55
  resource = RestClient::Resource.new url, :user => credentials[:user], :password => credentials[:password]
55
- params = {:message => {:body => message}}
56
+ params = {:message => {:body => message, :url => options.url}}
56
57
  resource.post params do |response|
57
58
  say "API response:" if options.trace
58
59
  say response.body.to_s if options.trace
data/socialcast.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{socialcast}
8
- s.version = "0.2.1"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Sonnek"]
12
- s.date = %q{2010-11-22}
12
+ s.date = %q{2010-11-25}
13
13
  s.default_executable = %q{socialcast}
14
14
  s.description = %q{publish messages to your stream from a command line interface}
15
15
  s.email = %q{ryan@socialcast.com}
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-22 00:00:00 -06:00
18
+ date: 2010-11-25 00:00:00 -06:00
19
19
  default_executable: socialcast
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency