capistrano-ikachan 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0682f948e9cff88f0a05c6f97a4762c82613adab
4
- data.tar.gz: f5ce1a896b87bee756d627501f1fb735daba7f82
3
+ metadata.gz: 17b8bbdcea7744f47bce9a190fca91875ead758e
4
+ data.tar.gz: da2600e706b984d80c65cbf4d9dcdc571ca6b4e1
5
5
  SHA512:
6
- metadata.gz: 00600b42b51e052202003bfe8c0f3a5fa61e8365f78f98a0e56d4b22acf4e171f5c55f03aba81b067357be0bc3aeaa768aa5e075dada21cb2d6d4bb344a95d13
7
- data.tar.gz: 68d1e7240067c277fb3280b60713b7770064710af2ea6f053f1b6567eed7ffe2ea1c489c5d8b70ec22e83a0f26490c2cc106bc43053e13a6ef269ac045c11954
6
+ metadata.gz: 32191dc1479463259ada627f56bd43da6fb3c809957b0290bb67f644eefe9bcabc9818ddc081d9ba9f34b71f57ec366c76e21ae2598626e993cb511232a63028
7
+ data.tar.gz: 730c7b76da39a2e2072cd31379b156f53ef353df54b6368bd940b97f86a26f69d8c272b645d63f6208fcfc0d56c30aabab71ee35c98e484e64603287a2f91cc0
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  Capistrano::Ikachan
2
2
  ===================
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/capistrano-ikachan.png)][gem]
5
- [gem]: https://rubygems.org/gems/capistrano-ikachan
6
-
7
4
  Irc notification tasks with Ikachan for Capistrano v3.
8
5
 
6
+ [![Gem version](https://img.shields.io/gem/v/capistrano-ikachan.svg?style=flat-square)][gem]
7
+ [gem]: https://rubygems.org/gems/capistrano-ikachan
8
+
9
9
  Installation
10
10
  ------------
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Ikachan
3
- VERSION = '0.1.4'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -1,5 +1,7 @@
1
1
  require 'string-irc'
2
2
  require 'digest/md5'
3
+ require 'net/http'
4
+ require 'uri'
3
5
 
4
6
  namespace :ikachan do
5
7
  start = Time.now
@@ -76,15 +78,8 @@ namespace :ikachan do
76
78
  host = fetch(:ikachan_server)
77
79
  type = fetch(:ikachan_message_type)
78
80
 
79
- run_locally do
80
- execute :curl, '-s',
81
- "-F channel=\##{channel}",
82
- "#{host}/join"
83
- execute :curl, '-s',
84
- "-F channel=\##{channel}",
85
- "-F message=\"#{message}\"",
86
- "#{host}/#{type}"
87
- end
81
+ Net::HTTP.post_form(URI.parse("#{host}/join"), channel: "##{channel}")
82
+ Net::HTTP.post_form(URI.parse("#{host}/#{type}"), channel: "##{channel}", message: message)
88
83
  end
89
84
 
90
85
  desc 'Notify message to IRC with Ikachan'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ikachan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano