ruboty-noma 0.1.0 → 0.2.0

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: 054751f8a1730ce208f8d573195096885f118b93
4
- data.tar.gz: c0125683905bbfddf6519d0d3418850ee09a5674
3
+ metadata.gz: bbd6dda72674cfd3e006d6fa56597f793f005420
4
+ data.tar.gz: fccd05b2924ae1bd26401b1cf30c756009afea0e
5
5
  SHA512:
6
- metadata.gz: 1b8d49957062b6d816bb1d1111c8a8210a89fcf7e648fa338f4799183539adf0a029f2f334d24cb528c1670a78bd7769f0f961131c26e7f290e15a4967b673da
7
- data.tar.gz: f053ed793fdbeea794094b717617fae2d92436ec40c4efa43d48b0ce32db8ea7bbcf99644b41fda4eb87b168731f5b814666c02e7f4f7f972da63a1dcc5c55c3
6
+ metadata.gz: b3a445d99984a4e67fcffe458d626dad9e34ecda0f70c516cad0dce3910290b59730a9f0362d52031e70756d1bedcfff856ed2d83ecd7228334b1fb1ef938c39
7
+ data.tar.gz: cf14e96df904c4198b4f2703d975ac3139d03894bef1f94bbb85fd67f4cff0c3538de78efb8cde515306dc06d4a47be69c11a4c8df128429118e8745a778f87f
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
  ## Usage
21
21
 
22
22
  ```
23
- > @ruboty noma 5 @ruboty ping
23
+ > @ruboty noma 5 ping
24
24
  pong
25
25
  pong
26
26
  pong
@@ -10,10 +10,16 @@ module Ruboty
10
10
  def noma(message)
11
11
  message[:count].to_i.times do
12
12
  robot.receive(
13
- message.original.merge(body: message[:body])
13
+ message.original.merge(body: "#{message.body[prefix]}#{message[:body]}")
14
14
  )
15
15
  end
16
16
  end
17
+
18
+ private
19
+
20
+ def prefix
21
+ Ruboty::Action.prefix_pattern(robot.name)
22
+ end
17
23
  end
18
24
  end
19
25
  end
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Noma
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-noma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - izumin5210