rybit 0.0.1 → 0.1.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: 4b87d46a903b720e3c79f5362b869e4b9abbce7cf2a5d99189a8647e95936928
4
- data.tar.gz: 27ff657dd99dc3d720b21f3bc89ef95272b380cebdf4398385a810aa9111d3c6
3
+ metadata.gz: a466b6a116e153db499f7755b86ccab85e332eb733543a8322e9b29ae6ab3e7a
4
+ data.tar.gz: d8736683b11f35ad9f75e398ae86a5e86f978b5bcb5cdfe2f956820fc0d75db0
5
5
  SHA512:
6
- metadata.gz: f68f4b34fca2e49b09a76ad65664d8cf83f9d7dd64b567d441eaa68ec82ffbc8c2d51372e7918f5311b2166fd1ce0d85047f81c1103a82655abce68db3dd1be0
7
- data.tar.gz: 79b59a2b9b21ca9c6b6733a04aca4159743d5fae71f2ff06e83c0b4da4339d0fbd91e84bc6adbe633976febc645cbfc72dc92a16cc984e74fecd490e013ad2eb
6
+ metadata.gz: 99ec0473683f089ea92434def111ad54788db11ff4af8ff751428341e43d20d68b1735bc492615c6b3541ee7fb90b07de6de3e350db3c7bd21917e1079018a21
7
+ data.tar.gz: 14c57e0c679dddf4e7896b9fe6ba88409a4705e5d7dd5df9bb06e0aca30ae62781df8600563c3dc3f4941d77f6e443551fb665baffa6812b3228c2474ca39143
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,14 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ Enabled: true
9
+
10
+ Layout/LineLength:
11
+ Max: 120
12
+
13
+ Style/Documentation:
14
+ Enabled: false
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Rybit
2
+
3
+ Bybit API client
4
+
5
+ ## Installation
6
+
7
+ ```ruby
8
+ gem 'rybit' # in your Gemfile
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ruby
14
+ client = Rybit::Client.new(
15
+ key: '<your API KEY>',
16
+ secret: '<your SECRET KEY>'
17
+ )
18
+
19
+ client.get_wallet_balance
20
+ ```
21
+
22
+ ## Development
23
+
24
+ * `bin/setup` to install dependencies
25
+ * `rake spec` to run the tests
26
+ * `bin/console` for an interactive prompt
27
+ ---
28
+ * `bundle exec rake install` to install this gem onto your local machine
29
+
30
+ ## Release
31
+
32
+ 1. Update the version number in `version.rb`
33
+ 2. Run `bundle exec rake release`
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/light-flight/rybit.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-initializer'
4
+
5
+ module Rybit
6
+ class Client
7
+ extend Dry::Initializer
8
+
9
+ option :endpoint, default: -> { 'https://api.bybit.com' }
10
+ option :key
11
+ option :secret
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rybit
4
+ VERSION = '0.1.2'
5
+ end
data/lib/rybit.rb CHANGED
@@ -1,5 +1,4 @@
1
- class Rybit
2
- def self.hi
3
- puts "Hello world!"
4
- end
5
- end
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'rybit/version'
4
+ require_relative 'rybit/client'
data/sig/rybit.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Rybit
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata CHANGED
@@ -1,26 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rybit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgy Yuriev
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-12-06 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Bybit connector
14
- email: georgy.yuriev@gmail.com
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-initializer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.1.1
27
+ description: Bybit API connector
28
+ email:
29
+ - georgy.yuriev@gmail.com
15
30
  executables: []
16
31
  extensions: []
17
32
  extra_rdoc_files: []
18
33
  files:
34
+ - ".rspec"
35
+ - ".rubocop.yml"
36
+ - README.md
37
+ - Rakefile
19
38
  - lib/rybit.rb
39
+ - lib/rybit/client.rb
40
+ - lib/rybit/version.rb
41
+ - sig/rybit.rbs
20
42
  homepage: https://rubygems.org/gems/rybit
21
43
  licenses:
22
44
  - MIT
23
- metadata: {}
45
+ metadata:
46
+ homepage_uri: https://rubygems.org/gems/rybit
47
+ source_code_uri: https://github.com/light-flight/rybit
24
48
  post_install_message:
25
49
  rdoc_options: []
26
50
  require_paths:
@@ -29,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
29
53
  requirements:
30
54
  - - ">="
31
55
  - !ruby/object:Gem::Version
32
- version: '0'
56
+ version: 2.6.0
33
57
  required_rubygems_version: !ruby/object:Gem::Requirement
34
58
  requirements:
35
59
  - - ">="