ellen 0.2.6 → 0.2.7

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: 42106e5b3f728f10699b2df58912880a79c5d7db
4
- data.tar.gz: c1eaf31cb606523ad78ba27aee2c6307e19294da
3
+ metadata.gz: fe9068e389d0ffa32102d027f7f16bda97a0fd43
4
+ data.tar.gz: 12af41e5c1793bc7333d4519c3c4d0bbfd07a556
5
5
  SHA512:
6
- metadata.gz: eb5824e7ccd1d278e83fbe1e897bd2fa34232434ad38cb49955789c23739fdf20431043343871226896403e1b06c598b4a2dfb15b2d630e960a8097e48eeeb71
7
- data.tar.gz: e77767ace69af879d7d0effe41e24ae1c24c1cc7ed663d9233001025c08d0f7807c0a98f813743f4ede6690c68a84c9105f8e8d6883d2823fb28d10f7a85a4e0
6
+ metadata.gz: c63584de57ef3187db685e909841be7db0a7dc89ebb45686f919d06773efc6ea63298df0eb57d72e19cba6ccafe34d39b0aeab2576375eaff6710160158f9776
7
+ data.tar.gz: c12864e946fb42f9458215e48def39d7e4304068f9f51e7b62d460a1ef8d694a330f78acb5204b597dfb45b7f0cdc3ed6c352b04fd748905027d84a73c9056fb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.7
2
+ * Add Ellen::Message#from_name for rich chat service
3
+
1
4
  ## 0.2.6
2
5
  * Add `who am i?` handler
3
6
  * Sort commands in help message
data/lib/ellen/message.rb CHANGED
@@ -17,6 +17,12 @@ module Ellen
17
17
  @original[:from]
18
18
  end
19
19
 
20
+ # @note Some chat service such as XMPP has 2 types of address, address and username
21
+ # @return [String] User identifier in the Chat service
22
+ def from_name
23
+ @original[:from_name] || from
24
+ end
25
+
20
26
  def robot
21
27
  @original[:robot]
22
28
  end
data/lib/ellen/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ellen
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ellen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-18 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport