hahamut 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c79ae3228c8bab92230850820e2208775960196bfbf12c58dd2d64ba816530f4
4
- data.tar.gz: 155d2098511c6df786216d53134799519d5efb9f29db44d9acfc6e62f3711ea5
3
+ metadata.gz: 98620782f122c735b1b8d86d1df26c30eb6d78e691b6d885b23b9f4241d8ea2b
4
+ data.tar.gz: 87b96823c30bbf69dcc7f090e78ffd3a3d8fd7d8bc98ad2265ce3ac53f1bc196
5
5
  SHA512:
6
- metadata.gz: 3dfb580a52fa7a0e383fefd026fb43410048262726d98aac675ff3372e63b5c1f008aee9cd1beeb2942740544b30b82393d6344bfe1190788e60ebbcf2582a7f
7
- data.tar.gz: b25e2fc592b15fce7a823f768aaf6d6608b5e0acc6cb774140422cbe3d4edd6b4a3317233a42582c0db2787324f12b5f5a9ccd28b3f59e483458d78a64b3838e
6
+ metadata.gz: 8e8053cb4e11ad3ccca28f83fd7b0928be280fad85f254bf881037ba3655c85ee540f2f579e8faeb73a4c87ae75e3e7d2e5a13215da982345ef70c19e5757678
7
+ data.tar.gz: 53f034ece4d1dc3978583e6f26ca5238ce4455fae8187505eb0c4758b1902bc7d7a03d3512c7a00c4a0921b1913f211f34f5f6f8754acf280e12df57cba3d47e
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6.1
6
+ - 2.6.2
7
7
  before_install: gem install bundler -v 1.17.3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hahamut (0.1.1)
4
+ hahamut (0.1.2)
5
5
  rack
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -65,11 +65,11 @@ Hahamut::Engine.setup do |config|
65
65
  end
66
66
 
67
67
  # Option 2
68
- config.on_message ChatbotHandler
68
+ config.handler = ChatbotHandler
69
69
  end
70
70
  ```
71
71
 
72
- > If you want to use the handler object, you must implement a class method `#call`
72
+ > If you want to use the handler object, you must implement a `#call` method
73
73
 
74
74
  ### Sending Message
75
75
 
@@ -86,7 +86,7 @@ To send a message, you have to use bot instance to send a message object.
86
86
 
87
87
  ```ruby
88
88
  message = Hahamut::Message::Text.new(text: 'Hello World')
89
- bot.send_to 'RECEIPIENT_ID', message
89
+ bot.send_to 'RECIPIENT_ID', message
90
90
  ```
91
91
 
92
92
  > BotStart can accept `init` attribute with BotEvent, it can help you write less JSON for it.
@@ -99,7 +99,7 @@ The result is a `Hahamut::Message::Image` object and you can send to the user di
99
99
 
100
100
  ```ruby
101
101
  image = bot.upload('IMAGE_PATH')
102
- bot.send_to 'RECEIPIENT_ID', image
102
+ bot.send_to 'RECIPIENT_ID', image
103
103
  ```
104
104
 
105
105
  ## Development
@@ -5,8 +5,8 @@ require 'hahamut/message/text'
5
5
  require 'hahamut/message/image'
6
6
  require 'hahamut/message/sticker'
7
7
  require 'hahamut/message/command'
8
- require 'Hahamut/message/bot_start'
9
- require 'Hahamut/message/bot_event'
8
+ require 'hahamut/message/bot_start'
9
+ require 'hahamut/message/bot_event'
10
10
 
11
11
  module Hahamut
12
12
  # Hahamut Message
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'Hahamut/support/attributes'
3
+ require 'hahamut/support/attributes'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hahamut
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hahamut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-27 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack