cryptum 0.0.370 → 0.0.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cryptum.gemspec +6 -7
- data/lib/cryptum/ui/key_press_event.rb +6 -0
- data/lib/cryptum/version.rb +1 -1
- data/spec/lib/cryptum/event/history_spec.rb +3 -3
- data/spec/lib/cryptum/option/choice_spec.rb +3 -3
- data/spec/lib/cryptum/order_book/indicator_spec.rb +3 -3
- data/spec/lib/cryptum/ui/key_press_event_spec.rb +3 -3
- data/spec/lib/cryptum/ui/terminal_window_spec.rb +3 -3
- metadata +1 -1
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/cryptum.gemspec
CHANGED
@@ -25,15 +25,14 @@ Gem::Specification.new do |spec|
|
|
25
25
|
cryptum_modules = spec.files.grep(%r{^lib/})
|
26
26
|
|
27
27
|
missing_rspec = false
|
28
|
-
cryptum_modules.each do |
|
29
|
-
|
30
|
-
|
31
|
-
|
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?
|
32
33
|
|
33
34
|
missing_rspec = true
|
34
|
-
|
35
|
-
spec_test = "spec/#{cryptum_mod_dir}/#{spec_test_for_mod}"
|
36
|
-
error_msg = "ERROR: RSpec: #{spec_test} missing for Cryptum Module: #{cryptum_path}"
|
35
|
+
error_msg = "ERROR: No RSpec: #{spec_path_for_mod} for Cryptum Module: #{mod_path}"
|
37
36
|
# Display error message in red (octal encoded ansi sequence)
|
38
37
|
puts "\001\e[1m\002\001\e[31m\002#{error_msg}\001\e[0m\002"
|
39
38
|
end
|
data/lib/cryptum/version.rb
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cryptum::Event::History do
|
6
|
-
it 'should
|
7
|
-
|
8
|
-
expect(
|
6
|
+
it 'should respond to instantiation' do
|
7
|
+
init_response = Cryptum::Event::History
|
8
|
+
expect(init_response).to respond_to :new
|
9
9
|
end
|
10
10
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cryptum::Option::Choice do
|
6
|
-
it 'should
|
7
|
-
|
8
|
-
expect(
|
6
|
+
it 'should respond to instantiation' do
|
7
|
+
init_response = Cryptum::Option::Choice
|
8
|
+
expect(init_response).to respond_to :new
|
9
9
|
end
|
10
10
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cryptum::OrderBook::Indicator do
|
6
|
-
it 'should
|
7
|
-
|
8
|
-
expect(
|
6
|
+
it 'should respond to instantiation' do
|
7
|
+
init_response = Cryptum::OrderBook::Indicator
|
8
|
+
expect(init_response).to respond_to :new
|
9
9
|
end
|
10
10
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cryptum::UI::KeyPressEvent do
|
6
|
-
it 'should
|
7
|
-
|
8
|
-
expect(
|
6
|
+
it 'should respond to instantiation' do
|
7
|
+
init_response = Cryptum::UI::KeyPressEvent
|
8
|
+
expect(init_response).to respond_to :new
|
9
9
|
end
|
10
10
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cryptum::UI::TerminalWindow do
|
6
|
-
it 'should
|
7
|
-
|
8
|
-
expect(
|
6
|
+
it 'should respond to instantiation' do
|
7
|
+
init_response = Cryptum::UI::TerminalWindow
|
8
|
+
expect(init_response).to respond_to :new
|
9
9
|
end
|
10
10
|
end
|