xi_wechat_corp 1.2.4 → 1.2.5

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: beaff6e4d5ef6eaa878a785b55d4fb0741f85bb5
4
- data.tar.gz: 635c19daf807474e610d21e0cb4209636ff0e47c
3
+ metadata.gz: 8b38bea829adac092f376c9da96b60ff69f43cea
4
+ data.tar.gz: 758e07a392ec12b92da069a4099747341c290bfa
5
5
  SHA512:
6
- metadata.gz: 502dc58825e9407ad5a6adfeefefd3a052ac8fd9bad969ed966f22b7289e1a348f0ffba990cf5660f0c235c92d5dc5284cc43b5d60a8110660471c06f0f9dbdb
7
- data.tar.gz: d2eeb6f2e12b3b1ea658dfc58de0245b7297674fc0c817c4333cd7f491b4ea76e3ea448ca315e90ed4feb6bb8e33130d3737e1eebdcad6a1e75697b5a784b720
6
+ metadata.gz: a3ff8e78105fea038c561d08b36b64cea6a216379f8c053613c6ebfae27c9234a71c542ae0a11cbd72fd666e196db56e4b4772975afb94c8a88f7dd191630524
7
+ data.tar.gz: 47a9f44b6db7e4afbfa188dad817a9458de083fed563b6e4cc38aa5ab024115c5380d96e1746b187f0938ad2748ed3d87055d5e574e3884f86f9cf2e8d157c09
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'xi_wechat_corp/api/cli'
4
4
 
5
- puts 'Input JSON Body Below (Ctrl+D to send request):' if $stdin.tty?
5
+ puts 'Input text to send below (Ctrl+D to send request):' if $stdin.tty?
6
6
  text = $stdin.read
7
7
  ARGV.unshift text
8
8
  ARGV.unshift '--text'
@@ -30,7 +30,7 @@ module XiWechatCorp
30
30
  def run(args)
31
31
  options = verify(parse(args))
32
32
  conn = establish_connection(options)
33
- puts MultiJson.load(conn.send(options[:method], options[:path], options[:params]).body).inspect
33
+ puts conn.send(options[:method], options[:path], options[:params]).body
34
34
  rescue MultiJson::ParseError => e
35
35
  $stderr.puts 'BAD JSON: ' + e.message
36
36
  exit 1
@@ -1,3 +1,3 @@
1
1
  module XiWechatCorp
2
- VERSION = '1.2.4'
2
+ VERSION = '1.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xi_wechat_corp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Yang