ruboty-ume 1.0.0 → 1.0.1

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: 37fe750f47988a06a682a9615da8fd1719bc0eca
4
- data.tar.gz: a139e292047002e78dc49b790cdf0a6ba3849b53
3
+ metadata.gz: 32cb3446fc8eb0cdce9cd38039e159f2017c8631
4
+ data.tar.gz: d01fc463702e2f2d6f8deccebab54b34f1cf98fa
5
5
  SHA512:
6
- metadata.gz: 275f5c1e016ffada637fc9c7ebd2f5fce4abc428775f27a6489b2f7df6e34f7274da49b7e02cb27ea04fe44d28a97d0135331c777b9ab27465edcb047e79c7eb
7
- data.tar.gz: 6b5289288b3f7f4f969f26d04cc9959801ce16652f61ab0358038f88ae1011814dd1fd7702c122c47d70cd7d53ea21ece49fbae4d99d6c444ae02352c8628a7a
6
+ metadata.gz: d75dd755f0cd717be2e77310c12a5eda7cbc62de2cde967ef08dc753a37949957d962d642a6f35d16ff63c3e2818e7847a9a737100e91ec76a2838efe16917e2
7
+ data.tar.gz: d33336d54f1d25fd118d5b8597b9f639d4ab718c2d68acf61c23e5069b93c2cecd8423a903caf473e89df3a58fcef39150549e9251c81da5cf316d49ef0dbd61
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  An Ruboty Handler + Actions to output N line messages.
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/ruboty-ume.svg)](http://badge.fury.io/rb/ruboty-ume)
5
6
  [![Build Status](https://travis-ci.org/tbpgr/ruboty-ume.png?branch=master)](https://travis-ci.org/tbpgr/ruboty-ume)
6
7
  [![Coverage Status](https://coveralls.io/repos/tbpgr/ruboty-ume/badge.png)](https://coveralls.io/r/tbpgr/ruboty-ume)
7
8
 
@@ -27,13 +28,38 @@ Or install it yourself as:
27
28
  ### Ume empty messages
28
29
 
29
30
  ~~~
30
- now editing...
31
+ > ruboty help
32
+ ruboty /ume (?<count>.*?)\z/ - output empty message N lines (<count> times)
33
+ > ruboty ume 3
34
+
35
+
36
+
37
+
38
+ > ruboty ume 5
39
+
40
+
41
+
42
+
43
+
31
44
  ~~~
32
45
 
33
46
  ### Umec specific text messages
34
47
 
35
48
  ~~~
36
- now editing...
49
+ > ruboty help
50
+ ruboty /umec (?<text>.+?) (?<count>.*?)\z/ - output <text> message N lines (<count> times)
51
+ > ruboty umec hoge 3
52
+ hoge
53
+ hoge
54
+ hoge
55
+
56
+ > ruboty umec hoge 5
57
+ hoge
58
+ hoge
59
+ hoge
60
+ hoge
61
+ hoge
62
+
37
63
  ~~~
38
64
 
39
65
  ## ENV
@@ -46,7 +72,8 @@ nothing
46
72
  nothing
47
73
 
48
74
  ## Reference
49
- nothing
75
+ * This plugin's product code template is generated by [ruboty-gen GitHub](https://github.com/blockgiven/ruboty-gen)
76
+ * This plugin's test code template is generated by [rspec_piccolo GitHub](https://github.com/tbpgr/rspec_piccolo)
50
77
 
51
78
  ## Contributing
52
79
 
@@ -13,7 +13,7 @@ module Ruboty
13
13
 
14
14
  def ume
15
15
  repeat_count = Ruboty::Ume::Actions.normalize_count(message[:count])
16
- "\n" * repeat_count
16
+ ".\n" + ("\n" * (repeat_count - 2)) + ".\n"
17
17
  rescue => e
18
18
  e.message
19
19
  end
@@ -1,6 +1,6 @@
1
1
  module Ruboty
2
2
  # Ume
3
3
  module Ume
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
@@ -19,12 +19,12 @@ describe Ruboty::Ume::Actions::Ume do
19
19
  case_no: 1,
20
20
  case_title: '10 count case',
21
21
  count: '10',
22
- expected: "\n\n\n\n\n\n\n\n\n\n"
22
+ expected: ".\n\n\n\n\n\n\n\n\n.\n"
23
23
  },
24
24
  {
25
25
  case_no: 2,
26
26
  case_title: 'no count case',
27
- expected: "\n" * Ruboty::Ume::Actions::DEFAULT_COUNT
27
+ expected: ".\n" + ("\n" * (Ruboty::Ume::Actions::DEFAULT_COUNT - 2)) + ".\n"
28
28
  },
29
29
  {
30
30
  case_no: 3,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-ume
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tbpgr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty