slack_bot 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: c8afb5e23038e92a8eb68fdcb4f3138c262c0b26
4
- data.tar.gz: e7100e41bea635b114b7a2f8e49848bddf33e377
3
+ metadata.gz: a4f79143d206e24974a167f28267706ba1369487
4
+ data.tar.gz: 74ed02606bac22bac054f261f762235afaf37ea9
5
5
  SHA512:
6
- metadata.gz: fa5b7e4998fface2e9a755013592cb0c1c7cbae091899599114ec04e8fb281fbb7decbc912c9e55eabc8c150dba58a6a2d38e9c0fa29f1d63bfa722bfc9adb5e
7
- data.tar.gz: 311c18679cd86bcaa258ad52f61f38db5b48a3703d15d76e7a2b7c06adc2aecc0807f13d6061d0852d30ed56dd47f62a6b4bffdf107e1165802d05ba9d22b824
6
+ metadata.gz: 03894d62329af9c49e1c2ec204a8c62e7c4cf98a5acac8b42255870bff0cd61c7612958b4a08fea9e5effa560483cd43fe44e79177a20944a44e75d21fd90cab
7
+ data.tar.gz: 7e8bd69e4366d6c4909874db9530c7d052950cc9ed0b682233277e36061baad5c7babfc4cbbff97dd711a85747957d8ac24fb9dfec53b0bae769619f0472c529
@@ -2,6 +2,7 @@ module SlackBot
2
2
  class Notify < ActiveRecord::Base
3
3
 
4
4
  def self.execute(body, bot_name, channel)
5
+ return 'SlackBot is unactive mode.' if SlackBot.unactive
5
6
  query = {
6
7
  token: ::SlackBot.token,
7
8
  channel: channel,
data/lib/slack_bot.rb CHANGED
@@ -25,6 +25,10 @@ module SlackBot
25
25
  'SlackBot'
26
26
  end
27
27
 
28
+ mattr_accessor :unactive do
29
+ 'false'
30
+ end
31
+
28
32
  def self.setup
29
33
  yield self if block_given?
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module SlackBot
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kidachi_
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: addressable
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.3.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.3.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: spring-commands-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: SlackBot.
@@ -105,17 +105,17 @@ require_paths:
105
105
  - lib
106
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ">="
113
+ - - '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.2.2
118
+ rubygems_version: 2.4.1
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: SlackBot.