lita-notify 0.0.1 → 0.0.2

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: 3fea5c1aed2549522372140a1f040385eb44da0d
4
- data.tar.gz: b2af76b8b0127a17b83ac7c55365b4ef5aeebbad
3
+ metadata.gz: 11fba9be4c7488b936c3e47b6aa5be85a00677fd
4
+ data.tar.gz: 8df3b04815becac730f543688a58481c3058bbd5
5
5
  SHA512:
6
- metadata.gz: 355c165cef2c24cf39e2ec4ca4431931fdc3e4ba779795231efb84da9e06ac8f65be22cd7ff413a3615c04f5aba981a47e4a27db85ea8e8a75f5418c6d8f8d87
7
- data.tar.gz: d11bfaf545974884c7bf4e92fda1607f445b1038d49738f9fabc3131b0b1d85249bf5f23112465ca114df54c9a0eed031510855b52d952ad0a139fd6e9e20051
6
+ metadata.gz: 38dffd444591d9c82ae93b669d0c16c7179e01a5fbff74776a6d0a5e2a048ee028b2aca6bd2f9b5df7e7060b9bd474c89caacac29b691d43f3dd039854b5ba2e
7
+ data.tar.gz: 485d922dfc87875e2a0bf00f5c27610ba8b0f78dd4f106f7d02b82dc28de8a6860aaaedfe17c8f0ee30730bf4a0368c19f7dcab3980f17d715591a2c094cda91
@@ -24,18 +24,30 @@ module Lita
24
24
 
25
25
  # Web API
26
26
  # -----------------------------------------------------------------------
27
- http.get "/notify", :web
27
+ http.post "/notify", :web
28
28
 
29
-
30
- # Web
31
- # -----------------------------------------------------------------------
32
29
  def web(_request, response)
30
+ puts '***'
31
+ puts 'request', _request
32
+ puts 'response', response
33
+ puts '***'
33
34
  response.headers["Content-Type"] = "application/json"
34
35
  json = MultiJson.dump(
35
36
  lita: notify
36
37
  )
37
38
  response.write(json)
38
39
  end
40
+
41
+ def self.default_config(config)
42
+ puts '***'
43
+ puts 'config', config
44
+ puts '***'
45
+ config.key = ""
46
+ end
47
+
48
+ def self.namespace
49
+ 'notify'
50
+ end
39
51
  end
40
52
 
41
53
  Lita.register_handler(Notify)
data/lita-notify.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "lita-notify"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["Jesse La Russo"]
9
9
  spec.email = ["jesselarusso@gmail.com"]
10
10
  spec.summary = %q{Lita Notify}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse La Russo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-06 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita