cryptum 0.0.369 → 0.0.372
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/cryptum.gemspec +18 -0
- data/lib/cryptum/ui/key_press_event.rb +6 -0
- data/lib/cryptum/version.rb +1 -1
- data/spec/lib/cryptum/bot_conf_spec.rb +10 -0
- data/spec/lib/cryptum/event/bot_conf_spec.rb +10 -0
- data/spec/lib/cryptum/event/buy_spec.rb +10 -0
- data/spec/lib/cryptum/event/cancel_spec.rb +10 -0
- data/spec/lib/cryptum/event/exit_spec.rb +10 -0
- data/spec/lib/cryptum/event/gtfo_spec.rb +10 -0
- data/spec/lib/cryptum/event/history_spec.rb +10 -0
- data/spec/lib/cryptum/event/key_press_spec.rb +10 -0
- data/spec/lib/cryptum/event/order_book_spec.rb +10 -0
- data/spec/lib/cryptum/event/pane_spec.rb +10 -0
- data/spec/lib/cryptum/event/parse_spec.rb +10 -0
- data/spec/lib/cryptum/event/scroll_spec.rb +10 -0
- data/spec/lib/cryptum/event/sell_spec.rb +10 -0
- data/spec/lib/cryptum/matrix_spec.rb +10 -0
- data/spec/lib/cryptum/open_ai_spec.rb +10 -0
- data/spec/lib/cryptum/option/choice_spec.rb +10 -0
- data/spec/lib/cryptum/order_book/indicator_spec.rb +10 -0
- data/spec/lib/cryptum/order_book/profit_margin_spec.rb +10 -0
- data/spec/lib/cryptum/portfolio/balance_spec.rb +10 -0
- data/spec/lib/cryptum/portfolio_spec.rb +10 -0
- data/spec/lib/cryptum/ui/key_press_event_spec.rb +10 -0
- data/spec/lib/cryptum/ui/market_trend_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_execute_details_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_execution_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_plan_details_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_plan_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_timer_spec.rb +10 -0
- data/spec/lib/cryptum/ui/portfolio_spec.rb +10 -0
- data/spec/lib/cryptum/ui/signal_engine_spec.rb +10 -0
- data/spec/lib/cryptum/ui/terminal_window_spec.rb +10 -0
- data/spec/lib/cryptum/version_spec.rb +17 -0
- data/spec/lib/cryptum/web_sock/coinbase_spec.rb +10 -0
- data/spec/lib/cryptum/web_sock/event_machine_spec.rb +10 -0
- metadata +42 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aa120fa4d511dc9bf69d5a1ab014f6a64a25240c2c82d24e3b5174577f909db
|
4
|
+
data.tar.gz: 635cd8ee8edc14f8af8fb0e231f93ec56b9ca2ca8ef76c956437545fa2237cd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e9e47b4ed784434434e59d26ce36d6390570800f2121d69062afefe9a7b298c2b5efb672454541ea7d8341f2221a1a6e8e0ad10105fc764a0117b9d1149376
|
7
|
+
data.tar.gz: d8c64d255c32e4f7c93e0dd9bf6266001c1d4d3c8f8753ca8e5db88ec8821c65661dafc0654e22e474c5df39fde6460fcf896c41e0206b1f62b749580aba6dbd
|
data/Gemfile
CHANGED
@@ -12,7 +12,7 @@ gemspec
|
|
12
12
|
# to build appropriately. Defer to ./reinstall_coinbot_gemset.sh
|
13
13
|
# to review these custom flags
|
14
14
|
gem 'addressable', '2.8.1'
|
15
|
-
gem 'bundler', '>=2.4.
|
15
|
+
gem 'bundler', '>=2.4.9'
|
16
16
|
gem 'bundler-audit', '0.9.1'
|
17
17
|
gem 'curses', '1.4.4'
|
18
18
|
gem 'eventmachine', '1.2.7'
|
@@ -26,9 +26,9 @@ gem 'rdoc', '6.5.0'
|
|
26
26
|
gem 'require_all', '3.0.0'
|
27
27
|
gem 'rest-client', '2.1.0'
|
28
28
|
gem 'rspec', '3.12.0'
|
29
|
-
gem 'rubocop', '1.
|
29
|
+
gem 'rubocop', '1.48.1'
|
30
30
|
gem 'rubocop-rake', '0.6.0'
|
31
|
-
gem 'rubocop-rspec', '2.
|
31
|
+
gem 'rubocop-rspec', '2.19.0'
|
32
32
|
gem 'ruby-prof', '1.6.1'
|
33
33
|
gem 'rvm', '1.11.3.9'
|
34
34
|
gem 'sinatra', '3.0.5'
|
data/cryptum.gemspec
CHANGED
@@ -21,6 +21,24 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.files = `git ls-files -z`.split("\x0")
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
24
|
+
spec_tests = spec.files.grep(%r{^spec/})
|
25
|
+
cryptum_modules = spec.files.grep(%r{^lib/})
|
26
|
+
|
27
|
+
missing_rspec = false
|
28
|
+
cryptum_modules.each do |mod_path|
|
29
|
+
spec_dirname_for_mod = "spec/#{File.dirname(mod_path)}"
|
30
|
+
spec_test_for_mod = "#{File.basename(mod_path).split('.').first}_spec.rb"
|
31
|
+
spec_path_for_mod = "#{spec_dirname_for_mod}/#{spec_test_for_mod}"
|
32
|
+
next unless spec_tests.grep(/#{spec_path_for_mod}/).empty?
|
33
|
+
|
34
|
+
missing_rspec = true
|
35
|
+
error_msg = "ERROR: No RSpec: #{spec_path_for_mod} for Cryptum Module: #{mod_path}"
|
36
|
+
# Display error message in red (octal encoded ansi sequence)
|
37
|
+
puts "\001\e[1m\002\001\e[31m\002#{error_msg}\001\e[0m\002"
|
38
|
+
end
|
39
|
+
|
40
|
+
raise if missing_rspec
|
41
|
+
|
24
42
|
spec.require_paths = ['lib']
|
25
43
|
|
26
44
|
dev_dependency_arr = %i[
|
data/lib/cryptum/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::OrderBook::ProfitMargin do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::OrderBook::ProfitMargin
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::Portfolio::Balance do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::Portfolio::Balance
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderExecuteDetails do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderExecuteDetails
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderExecution do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderExecution
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderPlanDetails do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderPlanDetails
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::VERSION do
|
6
|
+
it 'is defined' do
|
7
|
+
expect(Cryptum::VERSION).not_to be_nil
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'is a string' do
|
11
|
+
expect(Cryptum::VERSION).to be_a(String)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'matches the expected pattern' do
|
15
|
+
expect(Cryptum::VERSION).to match(/\d+\.\d+\.\d+/)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::WebSock::Coinbase do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::WebSock::Coinbase
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::WebSock::EventMachine do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::WebSock::EventMachine
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.372
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.4.
|
33
|
+
version: 2.4.9
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.4.
|
40
|
+
version: 2.4.9
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler-audit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,14 +226,14 @@ dependencies:
|
|
226
226
|
requirements:
|
227
227
|
- - '='
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 1.
|
229
|
+
version: 1.48.1
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - '='
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 1.
|
236
|
+
version: 1.48.1
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: rubocop-rake
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - '='
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 2.
|
257
|
+
version: 2.19.0
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - '='
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 2.
|
264
|
+
version: 2.19.0
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: ruby-prof
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,15 +454,48 @@ files:
|
|
454
454
|
- order_books/.gitkeep
|
455
455
|
- reinstall_cryptum_gemset.sh
|
456
456
|
- spec/lib/cryptum/api_spec.rb
|
457
|
+
- spec/lib/cryptum/bot_conf_spec.rb
|
458
|
+
- spec/lib/cryptum/event/bot_conf_spec.rb
|
459
|
+
- spec/lib/cryptum/event/buy_spec.rb
|
460
|
+
- spec/lib/cryptum/event/cancel_spec.rb
|
461
|
+
- spec/lib/cryptum/event/exit_spec.rb
|
462
|
+
- spec/lib/cryptum/event/gtfo_spec.rb
|
463
|
+
- spec/lib/cryptum/event/history_spec.rb
|
464
|
+
- spec/lib/cryptum/event/key_press_spec.rb
|
465
|
+
- spec/lib/cryptum/event/order_book_spec.rb
|
466
|
+
- spec/lib/cryptum/event/pane_spec.rb
|
467
|
+
- spec/lib/cryptum/event/parse_spec.rb
|
468
|
+
- spec/lib/cryptum/event/scroll_spec.rb
|
469
|
+
- spec/lib/cryptum/event/sell_spec.rb
|
457
470
|
- spec/lib/cryptum/event_spec.rb
|
458
471
|
- spec/lib/cryptum/log_spec.rb
|
472
|
+
- spec/lib/cryptum/matrix_spec.rb
|
473
|
+
- spec/lib/cryptum/open_ai_spec.rb
|
474
|
+
- spec/lib/cryptum/option/choice_spec.rb
|
459
475
|
- spec/lib/cryptum/option_spec.rb
|
460
476
|
- spec/lib/cryptum/order_book/generate_spec.rb
|
477
|
+
- spec/lib/cryptum/order_book/indicator_spec.rb
|
461
478
|
- spec/lib/cryptum/order_book/market_trend_spec.rb
|
479
|
+
- spec/lib/cryptum/order_book/profit_margin_spec.rb
|
462
480
|
- spec/lib/cryptum/order_book_spec.rb
|
481
|
+
- spec/lib/cryptum/portfolio/balance_spec.rb
|
482
|
+
- spec/lib/cryptum/portfolio_spec.rb
|
463
483
|
- spec/lib/cryptum/ui/command_spec.rb
|
484
|
+
- spec/lib/cryptum/ui/key_press_event_spec.rb
|
485
|
+
- spec/lib/cryptum/ui/market_trend_spec.rb
|
486
|
+
- spec/lib/cryptum/ui/order_execute_details_spec.rb
|
487
|
+
- spec/lib/cryptum/ui/order_execution_spec.rb
|
488
|
+
- spec/lib/cryptum/ui/order_plan_details_spec.rb
|
489
|
+
- spec/lib/cryptum/ui/order_plan_spec.rb
|
490
|
+
- spec/lib/cryptum/ui/order_timer_spec.rb
|
491
|
+
- spec/lib/cryptum/ui/portfolio_spec.rb
|
492
|
+
- spec/lib/cryptum/ui/signal_engine_spec.rb
|
493
|
+
- spec/lib/cryptum/ui/terminal_window_spec.rb
|
464
494
|
- spec/lib/cryptum/ui/ticker_spec.rb
|
465
495
|
- spec/lib/cryptum/ui_spec.rb
|
496
|
+
- spec/lib/cryptum/version_spec.rb
|
497
|
+
- spec/lib/cryptum/web_sock/coinbase_spec.rb
|
498
|
+
- spec/lib/cryptum/web_sock/event_machine_spec.rb
|
466
499
|
- spec/lib/cryptum/web_sock_spec.rb
|
467
500
|
- spec/lib/cryptum_spec.rb
|
468
501
|
- spec/spec_helper.rb
|
@@ -490,7 +523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
490
523
|
- !ruby/object:Gem::Version
|
491
524
|
version: '0'
|
492
525
|
requirements: []
|
493
|
-
rubygems_version: 3.4.
|
526
|
+
rubygems_version: 3.4.9
|
494
527
|
signing_key:
|
495
528
|
specification_version: 4
|
496
529
|
summary: Coinbase Pro High-Frequency Trading Bot
|