ruboty-shibuyarin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e764846d89ce647859c39455dd835bfc064f8f10
4
+ data.tar.gz: 39a981c3c31ee9451f10eba3439fcc0754c077e5
5
+ SHA512:
6
+ metadata.gz: c16fc558196ab14c5170c7b7a101ba1d024d68e8168ec21a1aedeaceeb00e55e7c113fb2a48d9df5cad0b36a91e0bc0ff4950dc2a198120a4ace5d38f108ce37
7
+ data.tar.gz: 3081b6a8338fc2fdc61d7d452c82bc362f15465cb0be0b2cca181164b62fa56477771abedef92395e95b7a8a1bcf590a308702d6526b4f69dd105c4b3eeec8ee
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format d
3
+ --require spec_helper
@@ -0,0 +1 @@
1
+ 2.2.3
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ notifications:
5
+ email:
6
+ on_success: never
7
+ on_failure: never
8
+ slack:
9
+ secure: ZMVe41EgR4X/SW0yyR19YXe/Z5u0S+f1z/iMcni+iQrvecdMM8oUAtWnt9ww+lI0Sosg9r2oS56ZE792S5w3UM3tujipPRTMleZla+Otge6e+6LHEte76IMGUQO2NiZicq+tibaAadHu/XMYO6rabq9aLoyMX4CkFLMurT7inO0do9mnSR4Qoy2i6ApRyD4tTrF4izBth0mPCRRdsrfgz0uo5Zk7HLK4MIqY3ewBcfQMinlBry9gYyyNnLSzv3BlmrClZwADje2D+17z4APiC3JBflyOvqNsFlbWRpNVVwrr82sFZWhWGjYcLyMykL/p9IRe54yiV/uS0rLStXUUZbRSuqNVxfQ7CLkXvZIsS3chOwiF/rdotn9xdqIlBFPPFNTlGkNWxhEPW9LGiMMX5RkVYq0OUuzC0lq8AQYNOTyKI+qsi+F4K9tzgoA94HyS9NNz+JRBusVSoHGdPqVZyMzKfGOoACjxXj1NSVnQDDTcSQxSUyUvaAul0xDOxvTlrxU92CB53eb6L0dqwIoPUGsbrq6CbMEXgtqXK8coiXhN1iwkYoYmtExrwABx2F22/LIo9kKDoDvmWw1EJpHOi3he/DNcDNYnMFCnNL05eH7HbuMVdd1AnJWotb2cwrnTsv+31DO3FOUsPlo/z3QkjFDqhghfnKuqJqXUS6Lgk9U=
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruboty-shibuyarin.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Yusuke Nakamura
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ # Ruboty::Shibuyarin
2
+
3
+ [![Build Status](https://travis-ci.org/unasuke/ruboty-shibuyarin.svg)](https://travis-ci.org/unasuke/ruboty-shibuyarin)
4
+
5
+ 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/shibuyarin`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'ruboty-shibuyarin'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install ruboty-shibuyarin
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ 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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it ( https://github.com/[my-github-username]/ruboty-shibuyarin/fork )
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create a new Pull Request
@@ -0,0 +1,5 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new('spec')
5
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ruboty/shibuyarin"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,17 @@
1
+ module Ruboty
2
+ module Handlers
3
+ class Shibuyarin < Base
4
+ on(
5
+ /rin|(?<!星空|遠坂)凛|渋谷凛|しぶりん/i,
6
+ all: true,
7
+ name: 'reaction',
8
+ description: 'Reaction to rin',
9
+ )
10
+
11
+ def reaction(message)
12
+ Ruboty::Shibuyarin::Actions::Reaction.new(message).call
13
+ end
14
+
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,4 @@
1
+ require "ruboty"
2
+ require "ruboty/shibuyarin/version"
3
+ require "ruboty/shibuyarin/actions/reaction"
4
+ require "ruboty/handlers/shibuyarin"
@@ -0,0 +1,11 @@
1
+ module Ruboty
2
+ module Shibuyarin
3
+ module Actions
4
+ class Reaction < Ruboty::Actions::Base
5
+ def call
6
+ message.reply('呼んだ?')
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Ruboty
2
+ module Shibuyarin
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ruboty/shibuyarin/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ruboty-shibuyarin"
8
+ spec.version = Ruboty::Shibuyarin::VERSION
9
+ spec.authors = ["Yusuke Nakamura"]
10
+ spec.email = ["yusuke1994525@gmail.com"]
11
+
12
+ spec.summary = %q{Shibuya Rin for Ruboty.}
13
+ spec.description = %q{It's a Ruboty pulgin. Respond shiburin-like messages. Shibuya Rin(shiburin) is the character of THE IDOLM @ STER CINDERELLA GIRLS.}
14
+ spec.homepage = "https://github.com/unasuke/ruboty-shibuyarin"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "ruboty"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.9"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec"
27
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruboty-shibuyarin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Yusuke Nakamura
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruboty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.9'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: It's a Ruboty pulgin. Respond shiburin-like messages. Shibuya Rin(shiburin)
70
+ is the character of THE IDOLM @ STER CINDERELLA GIRLS.
71
+ email:
72
+ - yusuke1994525@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".ruby-version"
80
+ - ".travis.yml"
81
+ - Gemfile
82
+ - LICENSE.txt
83
+ - README.md
84
+ - Rakefile
85
+ - bin/console
86
+ - bin/setup
87
+ - lib/ruboty/handlers/shibuyarin.rb
88
+ - lib/ruboty/shibuyarin.rb
89
+ - lib/ruboty/shibuyarin/actions/reaction.rb
90
+ - lib/ruboty/shibuyarin/version.rb
91
+ - ruboty-shibuyarin.gemspec
92
+ homepage: https://github.com/unasuke/ruboty-shibuyarin
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.4.5.1
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Shibuya Rin for Ruboty.
116
+ test_files: []