yol_qy_weixin 0.0.7 → 0.0.8

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
  SHA256:
3
- metadata.gz: 7fd51806c4a783b0b7a8cb03fa60960965f9d0c12122b2db29cce0a6df0cfd5b
4
- data.tar.gz: e6d68198664aa0632b1ad7a2353c01fc1efa51b26222ef0f9c016ff69eabb574
3
+ metadata.gz: 8c3296070570a8d242429f4760872498d01b4155403847934e10e406bf91bf17
4
+ data.tar.gz: d251b119311c4561e461b64048d224be817a20a51c9539bca0653be959853d3d
5
5
  SHA512:
6
- metadata.gz: 92b6cb136f1cb73bf9c6cffe11cb8ca0f138f9f34e3e36ecea9188e2db9b73cef3597e07be5fd4f8554a8946d331ebaba889eaf1e3aadb331cee540927f44254
7
- data.tar.gz: b90841f36db06762c32d5e8ec8e80b60f0ac0d1c9867cf04d4bce163fe61a94595bb0d46c812d809ea1dc4ad0fde6bd8412ff59d112a6a2f39fbfe7876af20e0
6
+ metadata.gz: 4401f01855e21bb4663085604a075b80d5e38be6844c1d3fe0cfee8f190a00858ce1d07de239bfd32566178cd3bb8d68eb6c088eeab74247185b4a54fa44e4b0
7
+ data.tar.gz: 5d5e0e83e5ba92d7c0375dc7327c77b7b0f6aec0914e69955a4434efa2232df1ee05cb80d689e95a2ad31fd7da0b47fe7ffbc80cb631ad70d3ccbe994bb4aa20
data/.gitignore CHANGED
@@ -54,3 +54,6 @@ build-iPhoneSimulator/
54
54
 
55
55
  # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
56
  # .rubocop-https?--*
57
+
58
+
59
+ *.DS_Store
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yol_qy_weixin (0.0.7)
4
+ yol_qy_weixin (0.0.8)
5
5
  multi_xml
6
6
  nokogiri
7
7
  roxml
@@ -16,11 +16,11 @@ GEM
16
16
  tzinfo (~> 1.1)
17
17
  zeitwerk (~> 2.2, >= 2.2.2)
18
18
  concurrent-ruby (1.1.8)
19
- i18n (1.8.9)
19
+ i18n (1.8.10)
20
20
  concurrent-ruby (~> 1.0)
21
21
  minitest (5.14.4)
22
22
  multi_xml (0.6.0)
23
- nokogiri (1.11.2-x86_64-darwin)
23
+ nokogiri (1.11.3-x86_64-darwin)
24
24
  racc (~> 1.4)
25
25
  racc (1.5.2)
26
26
  rake (13.0.1)
@@ -9,6 +9,7 @@ module YolQyWeixin
9
9
  include Connection::Template
10
10
  include Connection::User
11
11
  include Connection::Department
12
+ include Connection::Message
12
13
 
13
14
  attr_accessor :corpid, :secret, :redis
14
15
 
@@ -0,0 +1,15 @@
1
+ module YolQyWeixin
2
+ module Connection
3
+ module Message
4
+ def send_message(body)
5
+ http_post(send_url, body)
6
+ end
7
+
8
+ private
9
+
10
+ def send_url
11
+ "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=#{get_access_token}&debug=1"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module YolQyWeixin
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yol_qy_weixin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - luojie2019
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,20 +87,18 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".DS_Store"
91
90
  - ".gitignore"
92
91
  - Gemfile
93
92
  - Gemfile.lock
94
93
  - LICENSE.txt
95
94
  - README.md
96
95
  - Rakefile
97
- - lib/.DS_Store
98
96
  - lib/yol_qy_weixin.rb
99
- - lib/yol_qy_weixin/.DS_Store
100
97
  - lib/yol_qy_weixin/client.rb
101
98
  - lib/yol_qy_weixin/connection.rb
102
99
  - lib/yol_qy_weixin/connections/base.rb
103
100
  - lib/yol_qy_weixin/connections/department.rb
101
+ - lib/yol_qy_weixin/connections/message.rb
104
102
  - lib/yol_qy_weixin/connections/qrcode.rb
105
103
  - lib/yol_qy_weixin/connections/template.rb
106
104
  - lib/yol_qy_weixin/connections/user.rb
data/.DS_Store DELETED
Binary file
data/lib/.DS_Store DELETED
Binary file
Binary file