bsclient 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 22a325af765fb50f5dabf0a5e6df34c3ad529d5140041e6e83f805b93cab2ecc
4
+ data.tar.gz: fa441d0c76f56e77e16a881dd921da33bb2900097c5c883f496146ce15645f1e
5
+ SHA512:
6
+ metadata.gz: 7b84885f4c2b015a8b49c603119a9b4fe704e94da282244e76cece025dd74a44394af78789540fb581494ad068c897eda73afa9f7ca763836ca20f9223f0afd5
7
+ data.tar.gz: c67a2f8ca5fe2ecaea6287245c91bd16054d85aaa2b0c3750dc0e9067e31a073254bf223d43a02a49597e74667badc5241c400276a58fc9d492cf5953e361ac1
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.0
6
+ before_install: gem install bundler -v 2.1.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at liuxiang@ktjr.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in bsclient.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bsclient (0.1.0)
5
+ faraday
6
+ pry (~> 0.13.1)
7
+ pry-byebug (~> 3.9.0)
8
+ pry-doc (~> 1.1.0)
9
+ thor (~> 0.20.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ byebug (11.1.3)
15
+ coderay (1.1.2)
16
+ diff-lcs (1.3)
17
+ faraday (1.0.1)
18
+ multipart-post (>= 1.2, < 3)
19
+ method_source (1.0.0)
20
+ multipart-post (2.1.1)
21
+ pry (0.13.1)
22
+ coderay (~> 1.1)
23
+ method_source (~> 1.0)
24
+ pry-byebug (3.9.0)
25
+ byebug (~> 11.0)
26
+ pry (~> 0.13.0)
27
+ pry-doc (1.1.0)
28
+ pry (~> 0.11)
29
+ yard (~> 0.9.11)
30
+ rake (12.3.3)
31
+ rspec (3.9.0)
32
+ rspec-core (~> 3.9.0)
33
+ rspec-expectations (~> 3.9.0)
34
+ rspec-mocks (~> 3.9.0)
35
+ rspec-core (3.9.2)
36
+ rspec-support (~> 3.9.3)
37
+ rspec-expectations (3.9.2)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.9.0)
40
+ rspec-mocks (3.9.1)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.9.0)
43
+ rspec-support (3.9.3)
44
+ thor (0.20.3)
45
+ yard (0.9.25)
46
+
47
+ PLATFORMS
48
+ ruby
49
+
50
+ DEPENDENCIES
51
+ bsclient!
52
+ rake (~> 12.0)
53
+ rspec (~> 3.0)
54
+
55
+ BUNDLED WITH
56
+ 2.1.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Liu Xiang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,44 @@
1
+ # BSClient
2
+
3
+ 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/bsclient`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'bsclient'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install bsclient
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lululau/bsclient. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/lululau/bsclient/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the BSClient project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/lululau/bsclient/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "bsclient"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ require_relative 'lib/bsclient/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "bsclient"
5
+ spec.version = BSClient::VERSION
6
+ spec.authors = ["Liu Xiang"]
7
+ spec.email = ["liuxiang@ktjr.com"]
8
+
9
+ spec.summary = %q{Register bs account}
10
+ spec.description = %q{Register bs account}
11
+ spec.homepage = "https://github.com/lululau/bsga"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency 'faraday'
25
+ spec.add_dependency 'thor', '~> 0.20.0'
26
+ spec.add_dependency 'pry', '~> 0.13.1'
27
+ spec.add_dependency 'pry-byebug', '~> 3.9.0'
28
+ spec.add_dependency 'pry-doc', '~> 1.1.0'
29
+ end
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bsclient'
4
+ BSClient::CLI.start
@@ -0,0 +1,7 @@
1
+ require "bsclient/version"
2
+ require "bsclient/config"
3
+ require "bsclient/app"
4
+ require "bsclient/cli"
5
+
6
+ module BSClient
7
+ end
@@ -0,0 +1,176 @@
1
+ require 'digest'
2
+ require 'faraday'
3
+ require 'openssl'
4
+ require 'base64'
5
+
6
+ module BSClient
7
+ class App
8
+ attr_accessor :config, :options
9
+
10
+ def initialize(options, config)
11
+ @options = options
12
+ @config = config
13
+ end
14
+
15
+ def register_account(request)
16
+ post_json(@config.register_url, request)
17
+ end
18
+
19
+ def query_registration(task_id, account)
20
+ url = @config.query_url
21
+ request = {
22
+ taskId: task_id,
23
+ account: account
24
+ }.to_json
25
+ params = build_query_params
26
+ params.merge!(sign: sign(url, params, request))
27
+ resp = Faraday.post(url) do |req|
28
+ req.headers[:content_type] = 'application/json; charset=UTF-8'
29
+ req.params = params
30
+ req.body = request
31
+ end
32
+ format_response(resp)
33
+ end
34
+
35
+ def create_user_image(request)
36
+ post_json(@config.create_user_image_url, request)
37
+ end
38
+
39
+ def download_user_image(params)
40
+ get(@config.download_user_image_url, params)
41
+ end
42
+
43
+ def sign(url, params, body = nil)
44
+ body_digest = if body
45
+ digest_body(body)
46
+ else
47
+ ''
48
+ end
49
+ rsa_sign(build_to_signed(url, params, body_digest))
50
+ end
51
+
52
+ def build_query_params(params = {})
53
+ params.merge(developerId: @config.developer_id,
54
+ rtick: rtick,
55
+ signType: 'rsa')
56
+ end
57
+
58
+ def build_to_signed(url, params, body_digest)
59
+ params = params.sort.map { |kv| kv.join('=') }.join
60
+ path = URI.parse(url).path
61
+ "#{params}#{path}#{body_digest}"
62
+ end
63
+
64
+ def rsa_sign(content)
65
+ Base64.strict_encode64(read_private_key.sign(OpenSSL::Digest::SHA1.new, content))
66
+ end
67
+
68
+ def read_private_key
69
+ raw_key = File.read(File.expand_path(@config.private_key)).chomp
70
+ key = "-----BEGIN RSA PRIVATE KEY-----\n#{raw_key}\n-----END RSA PRIVATE KEY-----\n"
71
+ OpenSSL::PKey::RSA.new(key)
72
+ end
73
+
74
+ def digest_body(body)
75
+ Digest::MD5.hexdigest(body)
76
+ end
77
+
78
+ def rtick
79
+ "#{(Time.now.to_f * 10000).to_i}"
80
+ end
81
+
82
+ def print_response(resp)
83
+ if options[:verbose]
84
+ print format_response(resp)
85
+ else
86
+ print resp.body
87
+ end
88
+ end
89
+
90
+ def get(url, params)
91
+ params = build_query_params(params)
92
+ params.merge!(sign: sign(url, params))
93
+ resp = Faraday.get(url) do |req|
94
+ req.params = params
95
+ end
96
+ format_response(resp)
97
+ end
98
+
99
+ def post_json(url, request)
100
+ params = build_query_params
101
+ params.merge!(sign: sign(url, params, request))
102
+ resp = Faraday.post(url) do |req|
103
+ req.headers[:content_type] = 'application/json; charset=UTF-8'
104
+ req.params = params
105
+ req.body = request
106
+ end
107
+ format_response(resp)
108
+ end
109
+
110
+ def format_response(resp)
111
+ unless options[:verbose]
112
+ return resp.body
113
+ end
114
+ request_body = if resp.env.request_body.nil?
115
+ <<-EOF
116
+ +-------------------------------------------------+
117
+ | No Request Body |
118
+ +-------------------------------------------------+
119
+ EOF
120
+ elsif resp.env.request_headers['content-type'] =~ /multipart/
121
+ <<-EOF
122
+ +-------------------------------------------------+
123
+ | Binary Data |
124
+ +-------------------------------------------------+
125
+ EOF
126
+ elsif resp.env.request_headers['content-type'] =~ /json/
127
+ json = JSON.pretty_generate(JSON.parse(resp.env.request_body))
128
+ json.gsub(/^/, ' ')
129
+ else
130
+ resp.env.request_body
131
+ end
132
+ response_body = if resp.env.response_headers['content-type'] =~ /json/
133
+ json = JSON.pretty_generate(JSON.parse(resp.env.response_body))
134
+ json.gsub(/^/, ' ')
135
+ elsif resp.env.response_headers['content-type'] =~ /text/
136
+ resp.env.response_body
137
+ else
138
+ <<-EOF
139
+ +-------------------------------------------------+
140
+ | Binary Data |
141
+ +-------------------------------------------------+
142
+ EOF
143
+ end
144
+ <<~EOF
145
+
146
+ Request Method: #{resp.env.method.to_s.upcase}
147
+ ----------------------
148
+
149
+ URL: #{resp.env.url}
150
+ ----------------------
151
+
152
+ Request Headers:
153
+ ----------------
154
+
155
+ #{resp.env.request_headers.map { |k, v| " #{k}: #{v}" }.join("\n")}
156
+
157
+ Request Body:
158
+ -------------
159
+ #{request_body}
160
+
161
+ ============================================
162
+
163
+ Response Status: #{resp.status} #{resp.reason_phrase}
164
+ ----------------------
165
+
166
+ Response Headers:
167
+ ----------------
168
+ #{resp.env.response_headers.map { |k, v| " #{k}: #{v}" }.join("\n")}
169
+
170
+ Response Body:
171
+ ----------------
172
+ #{response_body}
173
+ EOF
174
+ end
175
+ end
176
+ end
@@ -0,0 +1,56 @@
1
+ require 'thor'
2
+ require 'json'
3
+
4
+ module BSClient
5
+ class CLI < Thor
6
+
7
+ class_option :env, type: :string, aliases: ['-e'], desc: 'Specify ENVRION'
8
+ class_option :conf, type: :string, aliases: ['-c'], desc: 'Specify config file'
9
+ class_option :verbose, type: :boolean, aliases: ['-v'], desc: 'Verbose printing'
10
+
11
+ desc '', ''
12
+ def register_account(filename = nil)
13
+ req_content = if filename
14
+ IO.read(filename)
15
+ else
16
+ STDIN.read
17
+ end
18
+ req_content = JSON.generate(JSON.parse(req_content))
19
+ app = App.new(options, Config.create(options[:env]))
20
+ print app.register_account(req_content)
21
+ end
22
+
23
+ desc '', ''
24
+ def query_registration(task_id, account)
25
+ app = App.new(options, Config.create(options[:env]))
26
+ print app.query_registration(task_id, account)
27
+ end
28
+
29
+ desc '', ''
30
+ def create_user_image(account, text, color="red")
31
+ req_content = {account: account, text: text, fontColor: color}.to_json
32
+ app = App.new(options, Config.create(options[:env]))
33
+ print app.create_user_image(req_content)
34
+ end
35
+
36
+ desc '', ''
37
+ def download_user_image(account)
38
+ params = {account: account, imageName: ''}
39
+ app = App.new(options, Config.create(options[:env]))
40
+ print app.download_user_image(params)
41
+ end
42
+
43
+ # desc '', ''
44
+ # class_option :out, type: :string, aliases: ['-o'], desc: 'Specify output file'
45
+ # def sign(filename = nil)
46
+ # req_content = if filename
47
+ # IO.read(filename)
48
+ # else
49
+ # STDIN.read
50
+ # end
51
+ # req_content = JSON.generate(JSON.parse(req_content))
52
+ # app = App.new(options, Config.create(options[:env]))
53
+ # print app.sign(req_content)
54
+ # end
55
+ end
56
+ end
@@ -0,0 +1,16 @@
1
+ require 'delegate'
2
+ require 'yaml'
3
+ require 'ostruct'
4
+
5
+ module BSClient
6
+ class Config < SimpleDelegator
7
+ class << self
8
+ def create(env, file = nil)
9
+ file ||= File.expand_path('~/.bsclient.yml')
10
+ yaml = YAML.load(File.read(file)) || {}
11
+ conf = yaml[env] || {}
12
+ new(OpenStruct.new(conf))
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module BSClient
2
+ VERSION = "0.1.0"
3
+ end
Binary file
@@ -0,0 +1,22 @@
1
+ {
2
+ "account": "test@bestsign.cn",
3
+ "mail": "test@bestsign.cn",
4
+ "mobile": "13800001234",
5
+ "name": "浙江xx公司",
6
+ "userType": "2",
7
+ "credential": {
8
+ "regCode": "5566789",
9
+ "taxCode": "5566789",
10
+ "orgCode": "5566789",
11
+ "contactMail": "test@bestsign.cn",
12
+ "contactMobile": "13800001234",
13
+ "legalPerson": "张三",
14
+ "legalPersonIdentity": "100123199001010011",
15
+ "legalPersonIdentityType": "0",
16
+ "legalPersonMobile": "17712341234",
17
+ "province": "浙江省",
18
+ "city": "杭州市",
19
+ "address": "xx路xx号"
20
+ },
21
+ "applyCert": "1"
22
+ }
data/sa.png ADDED
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bsclient
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Liu Xiang
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.20.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.20.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.13.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.13.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.9.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-doc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.1.0
83
+ description: Register bs account
84
+ email:
85
+ - liuxiang@ktjr.com
86
+ executables:
87
+ - bsclient
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - bsclient.gemspec
103
+ - exe/bsclient
104
+ - lib/bsclient.rb
105
+ - lib/bsclient/app.rb
106
+ - lib/bsclient/cli.rb
107
+ - lib/bsclient/config.rb
108
+ - lib/bsclient/version.rb
109
+ - linxiaocheng.png
110
+ - request.json
111
+ - sa.png
112
+ - zhuangbiyang.png
113
+ homepage: https://github.com/lululau/bsga
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.3.0
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubygems_version: 3.1.2
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Register bs account
136
+ test_files: []