ruboty-url 0.1.0 → 1.0.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: 25733544717f76136fc6c0677fb97bd4c1b2a314
4
- data.tar.gz: 633d9cced34f92cd04ce8117b158b2c3d615cf9c
3
+ metadata.gz: 3168c4c9bf673f18d0f1df9874e9f094389449d0
4
+ data.tar.gz: 2697c2800566ab58fa93dd454eade79f3bc6e2ab
5
5
  SHA512:
6
- metadata.gz: 32d7b93275d9faaec3f3c7283a260ca2b110d5899a9f3d7394b4bd073ad72189722ac5ece356e96741672b55b5b6552fac560b8475b8a7d7ee92f7beca8c970f
7
- data.tar.gz: 8470ee94c848d3533a736c89d070845e6070211a4cf1f29e3e7f91c19e45a75e067ff3ea5a73b1805ad0528b739567dbb209e78c0fb405e073cd5b936e4ed337
6
+ metadata.gz: 2ede39de88370f14c89cbf3bb09c0f72d36d5b61b6e3edc451c9f9abf9bd716cd9227c713debe1f249d27a3440aa132627418bc10c1389a8e1df280e29e5738d
7
+ data.tar.gz: 26832f05674469283449cac5ec665ce94b48937f7bbad9ad86cdb6ce0e7b5c4066fb9e06043542e251f85c615e39f4326116c334f9d57d583e72a025a5078c44
data/.travis.yml CHANGED
@@ -1,8 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.5.0
4
+ - 2.3.1
5
+ - 2.5.0
5
6
  before_install: gem install bundler -v 1.16.1
6
7
  notifications:
7
8
  slack:
8
- secure: FaNGHfEjL0lfgQrNGsXz+6knlaGEsiJ3cia3/bcXPEVrvB37poQIzi3ixsYBYmaEDJTpSiFNharYMEQXimlahXLUOwIVMT4hBOFEcqwguU9GOUSms/Qwld0+N1l3xIf5mIM8h6KpVv8rpjTGnBQkQl8mu70wk1omu/P9x4lykhU7ZdttgSgNzsUH81dPmDBCS70CkTNfhmbaWzAtXdrploAcN/eA3mUSRl048v2r2rLLNBeLEbDougL+h8nSg80AF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imv+h1146meASvhtGed7YA7yTrF61Io4thoJxidErw3EdSgIYxBh9c=
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
+ [![Build Status](https://travis-ci.org/zeero/ruboty-url.svg?branch=master)](https://travis-ci.org/zeero/ruboty-url)
2
+
1
3
  # Ruboty::Url
2
4
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruboty/url`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ A Ruboty Handler + Actions to shows HTML title with specified URL.
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
7
+ [Ruboty](https://github.com/r7kamura/ruboty) is Chat bot framework. Ruby + Bot = Ruboty
6
8
 
7
9
  ## Installation
8
10
 
@@ -14,26 +16,39 @@ gem 'ruboty-url'
14
16
 
15
17
  And then execute:
16
18
 
17
- $ bundle
19
+ $ bundle install
18
20
 
19
- Or install it yourself as:
21
+ ## Usage
20
22
 
21
- $ gem install ruboty-url
23
+ This plugin responds with messages including specified URL (such as private URL), and shows HTML title.
22
24
 
23
- ## Usage
25
+ Reply style is Slack attachment. Please use with 'ruboty-slack_rtm' plugin.
24
26
 
25
- TODO: Write usage instructions here
27
+ URL is specified by 'RUBOTY_URL_REGEXP' environmental variable, value is RegExp for url that you want to show HTML title with.
26
28
 
27
- ## Development
29
+ ex:
28
30
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
31
+ ```
32
+ export RUBOTY_URL_REGEXP=(https://foo.com.*|http://bar.org.*)
33
+ ```
30
34
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
35
+ ## ENV
32
36
 
33
- ## Contributing
37
+ |Name|Description|
38
+ |:--|:--|
39
+ |RUBOTY_URL_REGEXP|(required) RegExp for url.|
40
+
41
+ ## Dependency
34
42
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/zeero/ruboty-url.
43
+ |Name|Description|
44
+ |:--|:--|
45
+ |ruboty-slack_rtm|(required) 'ruboty-url' is supposed to work with 'ruboty-slack_rtm' - Ruboty Adapter for Slack Realtime API.|
46
+
47
+ ## Contributing
36
48
 
37
- ## License
49
+ 1. Fork it ( https://github.com/zeero/ruboty-url/fork )
50
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
51
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
52
+ 4. Push to the branch (`git push origin my-new-feature`)
53
+ 5. Create a new Pull Request
38
54
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Url
3
- VERSION = "0.1.0"
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zeero