lita 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21f001a7ad45ff1f2e3a87b07a5eecdc94c27669
4
- data.tar.gz: 8e1369a2294bc07f39f0a360daa1b07ba4d4d3d5
3
+ metadata.gz: 1b2fd77c82dffdb6d152eb1376f3868be921d97b
4
+ data.tar.gz: 4bef398d354e621af17bbff01fee340c4eb98d71
5
5
  SHA512:
6
- metadata.gz: 19cb7bc31c045032d5dad49affce04967068ad982288ac63b10374542ad81364daba7fbde3ac2e1d71231b42bc8722e0fcb7d2229f3173b91c22993d95d999f3
7
- data.tar.gz: 1ab1fd0f6b5b81bd1193dfcd2793a15279fb790211988aa6261870a793768f70e7db3ce46923548c27306c173532ac0fc84545ce5bcb4b596281ef05ed211008
6
+ metadata.gz: aa9adeded2fa7941d30bd875e5540603eddae8e210bd86a61eec4ef1778972122678ce952c873d28e0bdb9cb2348e9074f76c71dd58fa58f5cb1812edac80126
7
+ data.tar.gz: 1d1ac3b548b681b8c22fd0804eb306fe10f23756629a15b215a71e3e276f82855c41108fb57a1247aa57090435e1ec4e375f10fd6b6a4100864a13c79601e296
@@ -27,7 +27,7 @@ module Lita
27
27
 
28
28
  # The name of the robot as it will appear in the chat.
29
29
  # @return [String] The robot's name.
30
- attr_reader :name
30
+ attr_accessor :name
31
31
 
32
32
  # The {Registry} for the currently running robot.
33
33
  # @return [Lita::Registry] The registry.
@@ -1,4 +1,4 @@
1
1
  module Lita
2
2
  # The current version of Lita.
3
- VERSION = "4.0.3"
3
+ VERSION = "4.0.4"
4
4
  end
@@ -10,6 +10,18 @@ describe Lita::Robot, lita: true do
10
10
  subject
11
11
  end
12
12
 
13
+ it "can have its name changed" do
14
+ subject.name = "Bongo"
15
+
16
+ expect(subject.name).to eq("Bongo")
17
+ end
18
+
19
+ it "can have its mention name changed" do
20
+ subject.mention_name = "wongo"
21
+
22
+ expect(subject.mention_name).to eq("wongo")
23
+ end
24
+
13
25
  context "with registered handlers" do
14
26
  let(:handler1) { Class.new(Lita::Handler) { namespace :test } }
15
27
  let(:handler2) { Class.new(Lita::Handler) { namespace :test } }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Cuadra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler