ruboty-authorization 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +1 -0
- data/lib/ruboty/authorization.rb +5 -1
- data/lib/ruboty/authorization/version.rb +1 -1
- data/ruboty-authorization.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e062e6c100df5834e8b42370f2100623522a8dfc
|
4
|
+
data.tar.gz: 11e005bf3a36d99855d6bb2b810b7e3641019307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a42f5fa847fd7880f67e6a687a469f16ebb6151ba5b68f777c8181f2bb731ef2d1c4f7b0d385ca9501e499233cf20d5765678d5163815d692c25212aa1638393
|
7
|
+
data.tar.gz: d74f19b8a8d922a946fdf9eed9c73bb42b440dff6dd31e4515266c2541f333995d453e95efb32905b55b64a20b390301d464e63569cb5e8ab999827236f67cdf
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2016 Morioka Shuhei
|
3
|
+
Copyright (c) 2016 Morioka Shuhei and Speee, Inc.
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
data/lib/ruboty/authorization.rb
CHANGED
@@ -15,7 +15,7 @@ module Ruboty
|
|
15
15
|
authorized!(message)
|
16
16
|
!!handler.send(name, message)
|
17
17
|
rescue => e
|
18
|
-
message.reply(e.message)
|
18
|
+
message.reply(e.message) if reply_error?
|
19
19
|
end
|
20
20
|
|
21
21
|
def authorized!(message)
|
@@ -30,5 +30,9 @@ module Ruboty
|
|
30
30
|
def owner_name
|
31
31
|
ENV["OWNER_NAME"]
|
32
32
|
end
|
33
|
+
|
34
|
+
def reply_error?
|
35
|
+
ENV['NOT_REPLY_AUTHORIZATION_ERROR'].nil?
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
@@ -6,7 +6,7 @@ require 'ruboty/authorization/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "ruboty-authorization"
|
8
8
|
spec.version = Ruboty::Authorization::VERSION
|
9
|
-
spec.authors = ["Morioka Shuhei"]
|
9
|
+
spec.authors = ["Morioka Shuhei", "Speee, Inc."]
|
10
10
|
spec.email = ["selmertsx@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{ Authorization Library for Ruboty plugin tasks }
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-authorization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morioka Shuhei
|
8
|
+
- Speee, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|