dingtalk-cli 0.0.1 → 0.0.2

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: 60135fff07ea4aeee0c99d0a3cb9823ebaa0f524ab4ffabf8f3eb5ee6635a8e0
4
- data.tar.gz: dba3d7e2e7510183f05418670c6631d043cdd6351c48d68da35a38836393ecf1
3
+ metadata.gz: c1cfd2ecb429f6c23e591687ba275f49cfcb9b234dd56197fe1e6820dd664d71
4
+ data.tar.gz: b409d2b161a6cb631d06c04fb5a94f049a99c5edca5ba72b3a07ee4ad4ea1616
5
5
  SHA512:
6
- metadata.gz: 98f3e29becb9d9ead4affa55e0e73708f768dabe2e2cbf1a7a70b857fc8a2d419b604e89978009916ca227676b29417ae6784e5b74b439a8be33f2397ed55266
7
- data.tar.gz: cd8c4b96fcb6c7b1c3708fe70215715c1998d05bd7acd456205f5ee25e8d361a5e2f1c202f1f52a35aa3bd24ccd6d86c43fbf3661f5d806ec5fce1c1817f7684
6
+ metadata.gz: d7b7bf25cd365c6f23792fcfe04ceaa9564478793769f85ebec2c09b7e580ff76955e5bd11a5fdf580c44c0575342203ba3055e3e409bbb5e4c9d9ecdbc615ff
7
+ data.tar.gz: ecf734e4a572d4dce47edb3c4bc77749fa6f9936b03c6a67734660e1a1cc5216801d08af10a8d20c24f91c754a518ba80170661ac7777f9f526bc044ea2f52a6
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem 'claide', '~> 1.0', '>= 1.0.3'
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Build Status](https://travis-ci.org/iospai/dingtalk.svg?branch=master)](https://travis-ci.com/iospai/dingtalk)
2
+
3
+
1
4
  # DingTalk
2
5
 
3
6
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dingtalk-cli`. To experiment with that code, run `bin/console` for an interactive prompt.
data/bin/dingtalk CHANGED
@@ -1,2 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'dingtalk'
2
3
 
4
+ DingTalk::Command.run(ARGV)
data/dingtalk-cli.gemspec CHANGED
@@ -1,3 +1,4 @@
1
+ require 'open3'
1
2
  require_relative 'lib/DingTalk/version'
2
3
 
3
4
  Gem::Specification.new do |spec|
@@ -6,8 +7,8 @@ Gem::Specification.new do |spec|
6
7
  spec.authors = ["大龙侠"]
7
8
  spec.email = ["396804688@qq.com"]
8
9
 
9
- spec.summary = %q{钉钉群机器人 DingTalk-CLI}
10
- spec.description = %q{群机器人是钉钉群的高级扩展功能。群机器人可以将第三方服务的信息聚合到群聊中,实现自动化的信息同步。目前,大部分机器人在添加后,还需要进行Webhook配置,才可正常使用(配置说明详见操作流程中的帮助链接)。https://ding-doc.dingtalk.com/doc#/serverapi2/krgddi}
10
+ spec.summary = %q{自定义钉钉群机器人}
11
+ spec.description = %q{自定义钉钉群机器人 dingtalk-cli}
11
12
  spec.homepage = "https://ding-doc.dingtalk.com/"
12
13
  spec.license = "MIT"
13
14
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
@@ -23,7 +24,7 @@ Gem::Specification.new do |spec|
23
24
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
25
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
26
  end
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.bindir = "bin"
28
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
28
29
  spec.require_paths = ["lib"]
29
30
  end
data/lib/DingTalk.rb CHANGED
@@ -3,4 +3,5 @@ require "DingTalk/version"
3
3
  module DingTalk
4
4
  class Error < StandardError; end
5
5
  # Your code goes here...
6
+ autoload :Command, 'DingTalk/command'
6
7
  end
@@ -0,0 +1,9 @@
1
+ require 'claide'
2
+
3
+ module DingTalk
4
+ class Command < CLAide::Command
5
+ def run
6
+ p 'Ok'
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module DingTalk
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dingtalk-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 大龙侠
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: 群机器人是钉钉群的高级扩展功能。群机器人可以将第三方服务的信息聚合到群聊中,实现自动化的信息同步。目前,大部分机器人在添加后,还需要进行Webhook配置,才可正常使用(配置说明详见操作流程中的帮助链接)。https://ding-doc.dingtalk.com/doc#/serverapi2/krgddi
13
+ description: 自定义钉钉群机器人 dingtalk-cli
14
14
  email:
15
15
  - 396804688@qq.com
16
- executables: []
16
+ executables:
17
+ - console
18
+ - dingtalk
19
+ - setup
17
20
  extensions: []
18
21
  extra_rdoc_files: []
19
22
  files:
@@ -23,7 +26,6 @@ files:
23
26
  - CHANGELOG.md
24
27
  - CODE_OF_CONDUCT.md
25
28
  - Gemfile
26
- - Gemfile.lock
27
29
  - LICENSE.txt
28
30
  - README.md
29
31
  - Rakefile
@@ -32,6 +34,7 @@ files:
32
34
  - bin/setup
33
35
  - dingtalk-cli.gemspec
34
36
  - lib/DingTalk.rb
37
+ - lib/DingTalk/command.rb
35
38
  - lib/DingTalk/version.rb
36
39
  homepage: https://ding-doc.dingtalk.com/
37
40
  licenses:
@@ -58,5 +61,5 @@ requirements: []
58
61
  rubygems_version: 3.1.2
59
62
  signing_key:
60
63
  specification_version: 4
61
- summary: 钉钉群机器人 DingTalk-CLI
64
+ summary: 自定义钉钉群机器人
62
65
  test_files: []
data/Gemfile.lock DELETED
@@ -1,34 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- dingtalk-cli (0.0.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.3)
10
- rake (12.3.2)
11
- rspec (3.9.0)
12
- rspec-core (~> 3.9.0)
13
- rspec-expectations (~> 3.9.0)
14
- rspec-mocks (~> 3.9.0)
15
- rspec-core (3.9.1)
16
- rspec-support (~> 3.9.1)
17
- rspec-expectations (3.9.0)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.9.0)
20
- rspec-mocks (3.9.1)
21
- diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.9.0)
23
- rspec-support (3.9.2)
24
-
25
- PLATFORMS
26
- ruby
27
-
28
- DEPENDENCIES
29
- dingtalk-cli!
30
- rake (~> 12.0)
31
- rspec (~> 3.0)
32
-
33
- BUNDLED WITH
34
- 2.1.4