hato-plugin-ikachan 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: 8a97cba27f0d5d3df1ac94dcbaabd31805e799b7
4
- data.tar.gz: 62f9f0f02f887dbdc34477d9a8ac5a938e30f410
3
+ metadata.gz: 0ce060d75ee12e9d32a8b5007fd0c68e351bbe51
4
+ data.tar.gz: f782782ac676f750921ad5c8a3b36b2a5bc5a2be
5
5
  SHA512:
6
- metadata.gz: a39e22a9839abd36642ee1aa315a9e428e7264e82908f7433442341630f229745e519b667c81c20aae74f86f697a1e3129cf075149c9737b0af66a1b659a49ca
7
- data.tar.gz: 4e74ecbe8731fb4ccda730ca386ecf270596f8af097d1da8d6b470757b2672231b9e8fda4710b50d5ea369ae5500f6f3b77fd04fba2366ebd7cab4c591d35c56
6
+ metadata.gz: e35db7b4ebea9e0d86ad2a18f53d7b0462544109b922da4e7108892b5737369ab6a23178b2d5a50b158ea5813f37f2061007f310bebf90f924821ce028f428ce
7
+ data.tar.gz: 0352c2d078c6bd2c8bc0699589b607fae65595092ea4e20c03fe373efaa729545fc3443686707dbf0e605464e4c38257c596fb847d2246110481d6b0e7bae930
@@ -3,7 +3,7 @@ require 'hato/plugin'
3
3
  module Hato
4
4
  module Plugin
5
5
  class Ikachan < Base
6
- VERSION = "0.0.2"
6
+ VERSION = "0.0.3"
7
7
  end
8
8
  end
9
9
  end
@@ -31,8 +31,7 @@ module Hato
31
31
  'message' => message,
32
32
  }
33
33
 
34
- res = send_request(url, params)
35
- res.value
34
+ send_request(url, params)
36
35
  end
37
36
 
38
37
  def send_request(url, params)
@@ -89,28 +89,6 @@ describe Hato::Plugin::Ikachan do
89
89
  }.to raise_error(Timeout::Error)
90
90
  }
91
91
  end
92
-
93
- context 'http error' do
94
- subject {
95
- described_class.new(
96
- Hato::Config::Plugin.new('Ikachan') {
97
- scheme 'example.com'
98
- channel 'text'
99
- }
100
- )
101
- }
102
- before {
103
- allow(subject).to receive(:send_request).and_return(
104
- Net::HTTPServerError.new('1.1', '500', 'forbidden')
105
- )
106
- }
107
-
108
- it {
109
- expect {
110
- subject.notify(tag: 'test', message: 'test')
111
- }.to raise_error(Net::HTTPFatalError)
112
- }
113
- end
114
92
  end
115
93
  end
116
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hato-plugin-ikachan
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
  - Kentaro Kuribayashi