notifu 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/notifu/actors/slack.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b69631e3ea0fbdbb5e28b4b39fd1de5a8d5d491
4
- data.tar.gz: 589bb9be936d20b9a6766220bbb8dafd93d38503
3
+ metadata.gz: 4854010e7da3616c5a97453edc92f874bee9e45f
4
+ data.tar.gz: df68b5961047d135c801ae52905a5c16773ecb2a
5
5
  SHA512:
6
- metadata.gz: f7b97cb854bb4eab2c9a637bcba5de2e2812e106ba0331af16d39ce343a2f8dbd9567319484c20eb3c7bfc49cfc654bfe1123019d6f5b5e79b4bf4d5f8e70943
7
- data.tar.gz: 81da4b166bff5f063ac9761d920c1e2d8e78c95dc2cd627b3d91372ac7d644d4e0e87467fe1eef34cff6ee6a0995ebd1613abd67f00a33aedf1fa42a1d85d969
6
+ metadata.gz: e2bb261159095a91c8a61581827d9b440b8080c1bcbc45a0a0c4ef04f99fd0e4b9ce4827b20e99c8e0271456e3193b53a9ea86c85ddec0a022e2d7551422ccb9
7
+ data.tar.gz: 2e097437c9acd94cb1589235697af481300ef7e26f76e293cab3851e17616a2f5bffc659aba9a2d1cb8737b8c87d951a9539e04f08345584ab87d545503d305a
@@ -78,7 +78,7 @@ module Notifu
78
78
 
79
79
  # fallback simple message (templated, see below)
80
80
  def text(tmpl)
81
- @tmpl_struct ||= OpenStruct.new({
81
+ data = OpenStruct.new({
82
82
  notifu_id: self.issue.notifu_id,
83
83
  datacenter: self.issue.datacenter,
84
84
  host: self.issue.host,
@@ -91,7 +91,7 @@ module Notifu
91
91
  service_icon: self.service_icon,
92
92
  status_icon: self.status_icon
93
93
  })
94
- ERB.new(tmpl).result(@tmpl_struct.instance_eval {binding})
94
+ ERB.new(tmpl).result(data.instance_eval {binding})
95
95
  end
96
96
 
97
97
  # template for fallback message
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek 'blufor' Slavicinsky