ruboty-authorization 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
  SHA1:
3
- metadata.gz: 6d80b0bcd894dd9262aefabebdf5db3e90d7e77a
4
- data.tar.gz: 928e0f37108f9619ba9a869f088128aea4f9ad72
3
+ metadata.gz: e062e6c100df5834e8b42370f2100623522a8dfc
4
+ data.tar.gz: 11e005bf3a36d99855d6bb2b810b7e3641019307
5
5
  SHA512:
6
- metadata.gz: 6c26c3500e0cd2c901bb44f5f2541e0eeef57356c68b68591ebfe1a18ec78ba5cc1178a9fba49ea29e8fd244d64e9c6320c0f516726c444803b66b98ba827245
7
- data.tar.gz: 7a58161d8634bd54bebf86b828f535454c19bf4d67112479f6667757eeaed3587bf700a0eec55845fec38e73e0e2e7eeff36d9840dc892a75bd5a1dd4d3f0eee
6
+ metadata.gz: a42f5fa847fd7880f67e6a687a469f16ebb6151ba5b68f777c8181f2bb731ef2d1c4f7b0d385ca9501e499233cf20d5765678d5163815d692c25212aa1638393
7
+ data.tar.gz: d74f19b8a8d922a946fdf9eed9c73bb42b440dff6dd31e4515266c2541f333995d453e95efb32905b55b64a20b390301d464e63569cb5e8ab999827236f67cdf
@@ -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
@@ -41,6 +41,7 @@ return authorized users
41
41
 
42
42
  ```
43
43
  OWNER_NAME - user name who has authority to authorize
44
+ NOT_REPLY_AUTHORIZATION_ERROR - If set to '1', not reply authorization error message
44
45
  ```
45
46
 
46
47
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Authorization
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  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.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-07-27 00:00:00.000000000 Z
12
+ date: 2016-12-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler