flowdock 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -33,14 +33,14 @@ Example
33
33
  # send message to the flow
34
34
  flow.send_message(:subject => "Greetings from Flowdock API Gem!",
35
35
  :content => "<h2>It works!</h2><p>Now you can start developing your awesome application for Flowdock.</p>",
36
- :tags => ["cool", "stuff"])
36
+ :tags => ["cool", "stuff"], :link => "http://www.flowdock.com/")
37
37
 
38
38
  API methods
39
39
  -----------
40
40
 
41
41
  * Flow methods
42
42
 
43
- send_message(params) - Send message to flow. Required parameters for message are :subject and :content. Optional parameter :tags can be used to add tags to message. Currently messages are always sent in the HTML format.
43
+ send_message(params) - Send message to flow. See documentation for details: http://www.flowdock.com/help/api_documentation
44
44
 
45
45
 
46
46
  Copyright
@@ -31,6 +31,8 @@ module Flowdock
31
31
 
32
32
  tags = (params[:tags].kind_of?(Array)) ? params[:tags] : []
33
33
  tags.reject! { |tag| !tag.kind_of?(String) || tag.blank? }
34
+
35
+ link = (!params[:link].blank?) ? params[:link] : nil
34
36
 
35
37
  params = {
36
38
  :source => @source,
@@ -38,10 +40,11 @@ module Flowdock
38
40
  :from_name => from[:name],
39
41
  :from_address => from[:address],
40
42
  :subject => params[:subject],
41
- :content => params[:content]
43
+ :content => params[:content],
42
44
  }
43
45
  params[:tags] = tags.join(",") if tags.size > 0
44
46
  params[:project] = @project unless @project.blank?
47
+ params[:link] = link unless link.blank?
45
48
 
46
49
  # Send the request
47
50
  resp = self.class.post(get_flowdock_api_url, :body => params)
@@ -1,3 +1,3 @@
1
1
  module Flowdock
2
- GEM_VERSION = "0.1.0"
2
+ GEM_VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowdock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - anttipitkanen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-11 00:00:00 Z
18
+ date: 2011-08-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: httparty