yol_qy_weixin 0.0.5 → 0.0.6

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: ec8f687f096c1a595ec1f92c3457d79e32767fb1f643ff7452d03ca42fa57f08
4
- data.tar.gz: ff87635fed7356fb2ece92d5106890858abdb3981ec8ee55cc91ed601e73215e
3
+ metadata.gz: 72d2f3b47cce9d26b0c4802ac4c956fa4f68154a077687002b943644e634e6c7
4
+ data.tar.gz: b080c0b4bfae085219afec692be60f5f60079e01b2fd5602b8667717fd4a66da
5
5
  SHA512:
6
- metadata.gz: 3e5b7a876d6589eadc3e5b5f629287b342cc87639baf48986adfe72e2975ab91e7a894f82e8b6e6f9e0da6dbcecaa1b27aed29b77bfe9f56ec3857ffeea95f78
7
- data.tar.gz: 53529d9af3cec7a146f2d34ebf8c886e10ee92572a2bb2398d88497f1b2e45c8631e483dea939aa8c5382ef768338b7809bd31d64169d688b3b6d3af0a1e3106
6
+ metadata.gz: 3cd5c4e58f61948dfbbde37958788ffa12fa9148138f49652dcfeb286eda2559b2f56c41be9c30ecdff71b627e3d2141f43ccc089146c385905d01e0b8b4bf3a
7
+ data.tar.gz: 785f9eb0c73fd16ab701912992db2397bfa42771aec2553ece1905b04ddc35cee4262286baadaf49f2b313459c10a9b0e70bb9c3334b840b4dc94505cb8a0c9c
data/.DS_Store CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yol_qy_weixin (0.0.5)
4
+ yol_qy_weixin (0.0.6)
5
5
  multi_xml
6
6
  nokogiri
7
7
  roxml
@@ -20,7 +20,7 @@ GEM
20
20
  concurrent-ruby (~> 1.0)
21
21
  minitest (5.14.4)
22
22
  multi_xml (0.6.0)
23
- nokogiri (1.11.1-x86_64-darwin)
23
+ nokogiri (1.11.2-x86_64-darwin)
24
24
  racc (~> 1.4)
25
25
  racc (1.5.2)
26
26
  rake (13.0.1)
data/lib/.DS_Store CHANGED
Binary file
Binary file
@@ -8,7 +8,8 @@ module YolQyWeixin
8
8
  include Connection::Qrcode
9
9
  include Connection::Template
10
10
  include Connection::User
11
-
11
+ include Connection::Department
12
+
12
13
  attr_accessor :corpid, :secret, :redis
13
14
 
14
15
  def initialize(options = {})
@@ -0,0 +1,17 @@
1
+ module YolQyWeixin
2
+ module Connection
3
+ module Department
4
+ def department_list(department_id=0)
5
+ http_get(department_list_url(department_id))
6
+ end
7
+
8
+
9
+
10
+ private
11
+
12
+ def department_list_url(department_id)
13
+ "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=#{get_access_token}&id=#{department_id}"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module YolQyWeixin
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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.5
4
+ version: 0.0.6
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-11 00:00:00.000000000 Z
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,9 +96,11 @@ files:
96
96
  - Rakefile
97
97
  - lib/.DS_Store
98
98
  - lib/yol_qy_weixin.rb
99
+ - lib/yol_qy_weixin/.DS_Store
99
100
  - lib/yol_qy_weixin/client.rb
100
101
  - lib/yol_qy_weixin/connection.rb
101
102
  - lib/yol_qy_weixin/connections/base.rb
103
+ - lib/yol_qy_weixin/connections/department.rb
102
104
  - lib/yol_qy_weixin/connections/qrcode.rb
103
105
  - lib/yol_qy_weixin/connections/template.rb
104
106
  - lib/yol_qy_weixin/connections/user.rb