ruboty-ume 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +30 -3
- data/lib/ruboty/ume/actions/ume.rb +1 -1
- data/lib/ruboty/ume/version.rb +1 -1
- data/spec/ruboty/ume/actions/ume_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32cb3446fc8eb0cdce9cd38039e159f2017c8631
|
|
4
|
+
data.tar.gz: d01fc463702e2f2d6f8deccebab54b34f1cf98fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
[](http://badge.fury.io/rb/ruboty-ume)
|
|
5
6
|
[](https://travis-ci.org/tbpgr/ruboty-ume)
|
|
6
7
|
[](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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
data/lib/ruboty/ume/version.rb
CHANGED
|
@@ -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: "
|
|
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.
|
|
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-
|
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruboty
|