LoginSignup
1
1

More than 5 years have passed since last update.

Ruboty | ruboty-megen が出力する README の gem install の記述を削除した #ruboty

Posted at

Ruboty | ruboty-megen が出力する README の gem install の記述を削除した

:musical_score: 概要

ruboty-megen が出力する README の gem install の記述を削除しました

変更理由

Ruboty の Plugin 利用時に、 gem install する使用法はない。
bundle install する手順だけあればよいので、 README の gem install の文言を削る。

:musical_note: Version

1.0.3 => 1.0.4

サンプルで確認

Rubotyme

バージョンアップ前後ともに、同じ Rubotyme ファイルで確認します。

# encoding: utf-8
user_name "tbpgr"

gem_class_name "Ume"
gem_name "ume"

title "An Ruboty Handler + Actions to output N line messages."

env do |e|
  e.name "ENV1"
  e.description "ENV1 desc"
end

env do |e|
  e.name "ENV2"
  e.description "ENV2 desc"
end

dependency do |d|
  d.name "dependency2"
  d.description "dependency2 description"
end

command do |c|
  c.name "ume"
  c.pattern "/ume (?<count>.*?)\z/"
  c.description "output empty message N lines (<count> times)"
  c.example <<-EOS
> ruboty help
ruboty /ume (?<count>.*?)\z/               - output empty message N lines (<count> times)
> ruboty ume 3
.
.
.
> ruboty ume 5
.
.
.
.
.
  EOS
end

command do |c|
  c.name "umec"
  c.pattern "/umec (?<text>.+?) (?<count>.*?)\z/"
  c.description "output <text> message N lines (<count> times)"
  c.example <<-EOS
> ruboty help
ruboty /umec (?<text>.+?) (?<count>.*?)\z/ - output <text> message N lines (<count> times)
> ruboty umec hoge 3
hoge
hoge
hoge

> ruboty umec hoge 5
hoge
hoge
hoge
hoge
hoge

  EOS
end

:baby_chick: Before

  • 実行
$ ruboty-megen generate --emoji
  • README.md

# Ruboty::Ume

An Ruboty Handler + Actions to An Ruboty Handler + Actions to output N line messages..

[Ruboty](https://github.com/r7kamura/ruboty) is Chat bot framework. Ruby + Bot = Ruboty

## :arrow_down: Installation

Add this line to your application's Gemfile:

```ruby
gem 'ruboty-ume'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ruboty-ume


## :cl: Commands

|Command|Pattern|Description|
|:--|:--|:--|
|[ume](#ume)|/ume (?.*?)z/|output empty message N lines ( times)|
|[umec](#umec)|/umec (?.+?) (?.*?)z/|output  message N lines ( times)|

## :scroll: Usage
### ume
* output empty message N lines ( times)

~~~
> ruboty help
ruboty /ume (?.*?)z/               - output empty message N lines ( times)
> ruboty ume 3
.
.
.
> ruboty ume 5
.
.
.
.
.
~~~

### umec
* output  message N lines ( times)

~~~
> ruboty help
ruboty /umec (?.+?) (?.*?)z/ - output  message N lines ( times)
> ruboty umec hoge 3
hoge
hoge
hoge

> ruboty umec hoge 5
hoge
hoge
hoge
hoge
hoge

~~~

## :earth_asia: ENV

|Name|Description|
|:--|:--|
|ENV1|ENV1 desc|
|ENV2|ENV2 desc|

## :couple: Dependency

|Name|Description|
|:--|:--|
|dependency2|dependency2 description|

## :two_men_holding_hands: Contributing :two_women_holding_hands:

1. Fork it ( https://github.com/tbpgr/ruboty-ume/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

:chicken: After

  • 実行
$ ruboty-megen generate --emoji
  • README.md
Or install it yourself as:

    $ gem install ruboty-ume

の部分がなくなったことを確認できます。


# Ruboty::Ume

An Ruboty Handler + Actions to An Ruboty Handler + Actions to output N line messages..

[Ruboty](https://github.com/r7kamura/ruboty) is Chat bot framework. Ruby + Bot = Ruboty

## :arrow_down: Installation

Add this line to your application's Gemfile:

```ruby
gem 'ruboty-ume'
```

And then execute:

    $ bundle

## :cl: Commands

|Command|Pattern|Description|
|:--|:--|:--|
|[ume](#ume)|/ume (?.*?)z/|output empty message N lines ( times)|
|[umec](#umec)|/umec (?.+?) (?.*?)z/|output  message N lines ( times)|

## :scroll: Usage
### ume
* output empty message N lines ( times)

~~~
> ruboty help
ruboty /ume (?.*?)z/               - output empty message N lines ( times)
> ruboty ume 3
.
.
.
> ruboty ume 5
.
.
.
.
.
~~~

### umec
* output  message N lines ( times)

~~~
> ruboty help
ruboty /umec (?.+?) (?.*?)z/ - output  message N lines ( times)
> ruboty umec hoge 3
hoge
hoge
hoge

> ruboty umec hoge 5
hoge
hoge
hoge
hoge
hoge

~~~

## :earth_asia: ENV

|Name|Description|
|:--|:--|
|ENV1|ENV1 desc|
|ENV2|ENV2 desc|

## :couple: Dependency

|Name|Description|
|:--|:--|
|dependency2|dependency2 description|

## :two_men_holding_hands: Contributing :two_women_holding_hands:

1. Fork it ( https://github.com/tbpgr/ruboty-ume/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

変更後の内容を HTML に変換

ruboty-megen1.png

:pencil: 補足

  • ruboty-articlegem も同様の修正をしてあります。 利用されている場合は gem update ruboty-articlegen を実行してください。
  • ruboty-megen を利用しないで、 ruboty-gen のみを利用する場合は手動で gem install 部を消す必要があります。
    Plugin を作るたびに手動で gem install を消すのが面倒な場合は、
    ruboty-gen にプルリクを送って gem install 部を出力対象外にするようにすればよいでしょう。
    私は必ず ruboty-megen を利用しているので ruboty-gen を直す動機はなかったり。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1