slack_webhooks 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87d94f9648f93f317b9dfc4e8849bf27698d023f
4
- data.tar.gz: 7c8ed99fc380f96d3b2c9434c85e5ba9adf3aefa
3
+ metadata.gz: fad94820f8d3dd81d3760d6328386819e89ceb61
4
+ data.tar.gz: ce6699c25362df460b38059239a873bab2bbeadc
5
5
  SHA512:
6
- metadata.gz: e1a82264d814f23db2cdbcf2911b33ce5fc495f2e3786a76bf1e2d9fb26060584316255c3b54b4df7d405ba10fb971f7b594f430aa56c82acbac4c2a88df72f6
7
- data.tar.gz: 27169b54ceb33e6abd11b514e93b9728fd188902bafaff4554ccf3c1b0cecf57940b0e5f6a2ca13de9a1b4418cf283d7b3aa27cdb3df66dc619e27751305b245
6
+ metadata.gz: 8a91caac4047fb548ea47098ef912132f7695ff21f8d78350f3e323c5e824e5a2e6619485bb3a7d0f4b697cf60470cf0459fadd75581d9e27004a5a98e04b518
7
+ data.tar.gz: 111aa98b4557a8a414b219a9cbc301fa9a57f1ff7d5b36968e2987b4e687be9008c8083f656bf1b62bef8715eeb26233fd43c21b5501d670f268b5033443b848
@@ -1,3 +1,3 @@
1
1
  module SlackWebhooks
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -5,7 +5,8 @@ require_relative 'slack_webhooks/version'
5
5
  module SlackWebhooks
6
6
  class Hook
7
7
 
8
- attr_accessor :command, :trigger_word, :channel, :username, :text, :webhook_url, :botname
8
+ attr_accessor :command, :trigger_word, :channel, :username, :text, :webhook_url,
9
+ :botname, :icon_url
9
10
  alias_method :user_name, :username
10
11
 
11
12
  # botname is the name to post to the channel with.
@@ -56,6 +57,10 @@ module SlackWebhooks
56
57
  resp = nil
57
58
  attachment = options.delete(:attachment)
58
59
  options[:attachments] = [attachment]
60
+ if self.icon_url != nil
61
+ options[:icon_url] = self.icon_url
62
+ end
63
+
59
64
  resp = notifier.ping s, options
60
65
 
61
66
  p resp
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder