capistrano-slackify 2.1.0 → 2.2.0

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: 9b5dafba0cc5d7f3d89a6962a72fc000006f1405
4
- data.tar.gz: d7f9938e73652330237b3e8ad2176ff7ff9f0c67
3
+ metadata.gz: 6efe9edb2bfae9ed432763cc512c2dd71d87779f
4
+ data.tar.gz: 76eced927e78e318647d365931fb86dd891a0268
5
5
  SHA512:
6
- metadata.gz: e95d083bc7f952d2ff386512b00cfe7231d9906bd0d65701feedb852c79005a7e684cb9a3f615bddeb03106f460f97867453c876bc48ef17693eda02dd827f0d
7
- data.tar.gz: cb202d398accaa1e998b329bdee9db9488294ea4707823b32ece765ac835b3cfcd1f9d7a48a26da0c63a842e459529c512167dd77ce6f802cb349ca0915df557
6
+ metadata.gz: aa01862a635434cdaf6edd3174c33d08ef29a6294938430d569b90f7e3745a266f04983a3ccce4d71902567ca3e80f1b1d5e2a2d84e452e3e37bd2611a15813e
7
+ data.tar.gz: 9715200f4b82f656b7e5023171d8a0ef98577e4e433f0a26597cc641ff313d15701f214960044ce935c02646479323dadf28a33135a180363e373a39e4895700
@@ -3,3 +3,4 @@ rvm:
3
3
  - 2.1.0
4
4
  - 2.0.0
5
5
  - 1.9.3
6
+ - jruby
@@ -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 = 'capistrano-slackify'
7
- spec.version = '2.1.0'
7
+ spec.version = '2.2.0'
8
8
  spec.authors = ['seenmyfate']
9
9
  spec.email = ['seenmyfate@gmail.com']
10
10
  spec.summary = %q{Publish deployment notifications to Slack via the incoming webhooks integration}
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
 
20
20
  spec.add_runtime_dependency 'capistrano', '>= 3.1.0'
21
- spec.add_runtime_dependency 'yajl-ruby'
21
+ spec.add_runtime_dependency 'multi_json'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.5'
24
24
  spec.add_development_dependency 'rake'
@@ -1,4 +1,4 @@
1
- require 'yajl/json_gem'
1
+ require 'multi_json'
2
2
 
3
3
  module Slackify
4
4
  class Payload
@@ -19,13 +19,13 @@ module Slackify
19
19
  end
20
20
 
21
21
  def payload
22
- {
22
+ MultiJson.dump({
23
23
  channel: fetch(:slack_channel),
24
24
  username: fetch(:slack_username),
25
25
  text: text,
26
26
  icon_emoji: fetch(:slack_emoji),
27
27
  parse: fetch(:slack_parse)
28
- }.to_json
28
+ })
29
29
  end
30
30
 
31
31
  def fetch(*args, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slackify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - seenmyfate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-27 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.1.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: yajl-ruby
28
+ name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="