slackbotsy 0.0.5 → 0.0.6

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: 30964255a6df4d2c0e7c4e6dd5ca3eefc86627b9
4
- data.tar.gz: 34276a9c8cf0fde396acd7676c60cd432fbeaed6
3
+ metadata.gz: 5efc0ca0dbfe9cf018f18bd0d50e5d27968a3b1d
4
+ data.tar.gz: ba603e898d9cf5aadc05451c076476576d2f3928
5
5
  SHA512:
6
- metadata.gz: 7c26111f57610cb2e6b2c99f0c38d6aba0cac9ff49848f0005b9781a92fae73acb39905bf153b57dd2b36772bc294db17c36c67a4dddec2b240be1ed32290d26
7
- data.tar.gz: 1ef3e8f6deb4e913b078af0bf5549780cc2e80cebae40b66521264a3d1e3dda95ec49f6b7b6aa16cc9d49d28e1d38d46d36d6b5e185890fa9902b9f2bdd4a547
6
+ metadata.gz: e0b9ad63c80f87a0792066bb46d3b80788ac4ef63a32a303b54283e7dea2a60fe61a8a5e8e945924f13e710b44984d0af728adbe4410b7d87a0a587a6e780396
7
+ data.tar.gz: 33e0f65c5594fec3082f4cbd788c3839e87d796e73209a3ce55ccbe0a81be85cd1abd3c273773d86d24621194510a6a6d0d57459c36d98e037d18d2e2096dc09
@@ -16,6 +16,13 @@ module Slackbotsy
16
16
  @caller.say(text, options)
17
17
  end
18
18
 
19
+ ## convenience getter methods for message properties
20
+ %w[ token team_id channel_id channel_name timestamp user_id user_name text ].each do |method|
21
+ define_method(method) do
22
+ self.fetch(method, nil)
23
+ end
24
+ end
25
+
19
26
  end
20
27
 
21
28
  end
@@ -1,3 +1,3 @@
1
1
  module Slackbotsy
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackbotsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister