ruboty-chatwork_webhook 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 3f00c97761dde3a7516edfdc1a10293e14cd4e2780acd1ecb8c8e52c7e1aa8ad
4
- data.tar.gz: 021acccecc2e941a80a576830b9591857079dd56652c008a20527348a4a30c66
3
+ metadata.gz: 0fe8a81e297b7617a8c9d1c0c2adab36b7cae8fb9cbad3159f4e103d3ba2650d
4
+ data.tar.gz: 96a51b78183172b46625e84ea80279a224c8c4b31b175145b556c24e969f6e53
5
5
  SHA512:
6
- metadata.gz: 5da4bcf57e026631cff22f3196f82823f443a6ffba628ab3344b0ea4117c6a9b08144f5646607c856ec019911e01647802c5d7256298c77a07286ec407933730
7
- data.tar.gz: 1200ee89f4763db1ce181063180c41479b1439d4eb2e4d0345534b38aaadb5e6c15a10ddf0e4c17a65ac9f14173912a0019a7553c6f39d48912ae3ef9779509d
6
+ metadata.gz: 86d130a5e44ef55f8b3dd73821d48a49bb27e0c818f0655655a4b88abe61a8f88944d3827c1779f91d2ab2e4101fd5ed02ede3a138da01b884c2f51f66f0b82c
7
+ data.tar.gz: 8171a04a9df8c1d91cb49c34532dbd71ea92087c525d0eb8c2ffbaa19715adf1e9d2027af637a1d38fe18160921b9e4152abec58ef418c8594cbc2ed130942c2
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /vendor/
10
10
 
11
11
  .env
12
+ Gemfile.lock
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
data/README.md CHANGED
@@ -1,38 +1,27 @@
1
1
  # Ruboty::ChatworkWebhook
2
2
 
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/chatwork_webhook`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ An [Ruboty](https://github.com/r7kamura/ruboty) adapter for Chatwork. (using Chatwork [Webhook](http://developer.chatwork.com/ja/webhook.html))
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
5
+ ## Usage
10
6
 
11
- ```ruby
12
- gem 'ruboty-chatwork_webhook'
7
+ ```
8
+ # Gemfile
9
+ gem "ruboty-chatwork_webhook"
13
10
  ```
14
11
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install ruboty-chatwork_webhook
22
-
23
- ## Usage
24
12
 
25
- TODO: Write usage instructions here
13
+ ## ENV
26
14
 
27
- ## Development
15
+ ```
16
+ CHATWORK_API_TOKEN - Chatwork API token
17
+ WEBHOOK_LISTEN_PORT - TCP port number for listening webhook
18
+ ```
28
19
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
20
 
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).
32
21
 
33
22
  ## Contributing
34
23
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruboty-chatwork_webhook.
24
+ Bug reports and pull requests are welcome on GitHub at https://github.com/honeniq/ruboty-chatwork_webhook.
36
25
 
37
26
  ## License
38
27
 
@@ -33,7 +33,7 @@ module Ruboty
33
33
  server = WEBrick::HTTPServer.new({
34
34
  Port: ENV['WEBHOOK_LISTEN_PORT'],
35
35
  })
36
- server.mount_proc '/test' do |req, res|
36
+ server.mount_proc '/' do |req, res|
37
37
  mention = Mention.new(req.body)
38
38
  pp 'received-> ' + mention.body
39
39
  robot.receive(body: mention.body,
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module ChatworkWebhook
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -1,4 +1,3 @@
1
-
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "ruboty/chatwork_webhook/version"
@@ -26,7 +25,7 @@ Gem::Specification.new do |spec|
26
25
  spec.add_development_dependency "bundler", "~> 1.16"
27
26
  spec.add_development_dependency "rake", "~> 10.0"
28
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_dependency "chatwork"
29
29
  spec.add_dependency "ruboty"
30
30
  spec.add_dependency "webrick"
31
- spec.add_dependency "chatwork"
32
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-chatwork_webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - honeniq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: ruboty
56
+ name: chatwork
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: webrick
70
+ name: ruboty
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: chatwork
84
+ name: webrick
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -105,7 +105,6 @@ files:
105
105
  - ".rspec"
106
106
  - ".travis.yml"
107
107
  - Gemfile
108
- - Gemfile.lock
109
108
  - LICENSE.txt
110
109
  - README.md
111
110
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,70 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ruboty-chatwork_webhook (0.1.0)
5
- chatwork
6
- ruboty
7
- webrick
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activesupport (5.2.1)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- chatwork (0.10.0)
18
- faraday (~> 0.9)
19
- faraday_middleware
20
- hashie
21
- concurrent-ruby (1.0.5)
22
- diff-lcs (1.3)
23
- dotenv (2.5.0)
24
- faraday (0.15.3)
25
- multipart-post (>= 1.2, < 3)
26
- faraday_middleware (0.12.2)
27
- faraday (>= 0.7.4, < 1.0)
28
- hashie (3.6.0)
29
- i18n (1.1.1)
30
- concurrent-ruby (~> 1.0)
31
- mem (0.1.5)
32
- minitest (5.11.3)
33
- multipart-post (2.0.0)
34
- rake (10.5.0)
35
- rspec (3.8.0)
36
- rspec-core (~> 3.8.0)
37
- rspec-expectations (~> 3.8.0)
38
- rspec-mocks (~> 3.8.0)
39
- rspec-core (3.8.0)
40
- rspec-support (~> 3.8.0)
41
- rspec-expectations (3.8.2)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.8.0)
44
- rspec-mocks (3.8.0)
45
- diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.8.0)
47
- rspec-support (3.8.0)
48
- ruboty (1.3.0)
49
- activesupport
50
- bundler
51
- dotenv
52
- mem
53
- slop
54
- slop (4.6.2)
55
- thread_safe (0.3.6)
56
- tzinfo (1.2.5)
57
- thread_safe (~> 0.1)
58
- webrick (1.4.2)
59
-
60
- PLATFORMS
61
- ruby
62
-
63
- DEPENDENCIES
64
- bundler (~> 1.16)
65
- rake (~> 10.0)
66
- rspec (~> 3.0)
67
- ruboty-chatwork_webhook!
68
-
69
- BUNDLED WITH
70
- 1.16.6