capistrano-around_chatwork 0.1.1 → 0.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: 9ce6249ea1665ecfcae2726bcd35733e958eb62f
4
- data.tar.gz: aa389d3fe5c7de6ba5e0640c693d7148afcd38e0
3
+ metadata.gz: fe7aa212a935a1142575c6294d6cc6a6fc866190
4
+ data.tar.gz: 25d4d134ae843d346b36840e16030fe19410bf93
5
5
  SHA512:
6
- metadata.gz: 112689a48316c89eff254c41abbec0f5888c03d20e68c7857d2b6ae0e1dd09fc8e1c04151e04553aaa8ee33c0d602c281d4ea011932dbf9b82ff083e8a844ee8
7
- data.tar.gz: db8866438491e603143ed38c7e8821753844eb731a733ca2d0e749510a5c459c97d1fe0d8c10d213618f25da0126b06661d5077df3cb0ce84e6a5bd7ff78af99
6
+ metadata.gz: 62ba7ebee1492675e0a27f11ad7d0f022d210ffc7bd2215b1790aa0f125eeea85b2af30c430ea3519029ab8cdb5229cd9668fb9019a983be60539eef94ce8856
7
+ data.tar.gz: 76f9aac571b8dfb85a92f55926e0511635aa6d0653152bd1f137ad0366c917448c5a04d94624ba2de7a84997be7ad998a89e6850f2d6e6c0e7d27f67cb0a20aa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  ## Unreleased
3
- [full changelog](http://github.com/sue445/capistrano-around_chatwork/compare/v0.1.1...master)
3
+ [full changelog](https://github.com/sue445/capistrano-around_chatwork/compare/v0.2.0...master)
4
+
5
+ ## 0.2.0
6
+ [full changelog](https://github.com/sue445/capistrano-around_chatwork/compare/v0.1.1...v0.2.0)
7
+
8
+ * Use cha gem instead of chatwork gem
9
+ * https://github.com/sue445/capistrano-around_chatwork/pull/2
4
10
 
5
11
  ## 0.1.1
6
12
  [full changelog](https://github.com/sue445/capistrano-around_chatwork/compare/v0.1.0...v0.1.1)
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  spec.add_dependency "capistrano", ">= 3.0.0"
35
- spec.add_dependency "chatwork", ">= 0.4.0"
35
+ spec.add_dependency "cha", ">= 1.2.0"
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 1.9"
38
38
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,5 +1,5 @@
1
1
  require "capistrano/around_chatwork/version"
2
- require "chatwork"
2
+ require "cha"
3
3
 
4
4
  module Capistrano
5
5
  module AroundChatwork
@@ -8,8 +8,8 @@ module Capistrano
8
8
  end
9
9
 
10
10
  def self.post_chatwork(message)
11
- ChatWork.api_key = fetch(:chatwork_api_token)
12
- ChatWork::Message.create(room_id: fetch(:chatwork_room_id), body: message)
11
+ client = Cha.new(api_token: fetch(:chatwork_api_token))
12
+ client.create_room_message(fetch(:chatwork_room_id), message)
13
13
  end
14
14
  end
15
15
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module AroundChatwork
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-around_chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: chatwork
28
+ name: cha
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.0
33
+ version: 1.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.4.0
40
+ version: 1.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement