Skip to content

Commit 1901f91

Browse files
committed
add Hooks.EventType.ALL; add Hooks.RequestMethod.JSON
1 parent 448326c commit 1901f91

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/.idea
1+
build/
22
*.gem
33
Gemfile.lock
44
.ruby-gemset

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ Setting ```SMS77_TEST_HTTP=1``` enables live testing with actual API requests.
3030

3131
##### Support
3232

33-
Need help? Feel free to send us an <a href='mailto: support@sms77.io'>email</a>.
33+
Need help? Feel free to [contact us](https://www.sms77.io/en/company/contact/).
34+
35+
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](./LICENSE)

lib/sms77/hooks.rb

+2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ module Action
88
end
99

1010
module EventType
11+
ALL = 'all'
1112
NEW_INBOUND_SMS = 'sms_mo'
1213
SMS_STATUS_UPDATE = 'dlr'
1314
VOICE_STATUS_UPDATE = 'voice_status'
1415
end
1516

1617
module RequestMethod
1718
GET = 'GET'
19+
JSON = 'JSON'
1820
POST = 'POST'
1921
end
2022

lib/sms77/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Sms77
4-
VERSION = '0.3.0'
4+
VERSION = '0.4.0'
55
end

release.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
gem build --strict
4+
5+
gem push "$(find . -name "*.gem" -print0 | xargs -r -0 ls -1 -t | head -1)"

0 commit comments

Comments
 (0)