cryptum 0.0.370 → 0.0.372

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: 53bdb2d2da6bf7e78c5623af1b88d27bb8c7942e19911b00306f0b6bfef912eb
4
- data.tar.gz: 9882b53b7be9185eb84ba21a8a52ac8a8773b098830786556a94ecfe92abbf4b
3
+ metadata.gz: 9aa120fa4d511dc9bf69d5a1ab014f6a64a25240c2c82d24e3b5174577f909db
4
+ data.tar.gz: 635cd8ee8edc14f8af8fb0e231f93ec56b9ca2ca8ef76c956437545fa2237cd4
5
5
  SHA512:
6
- metadata.gz: 51b81e6d2e78d0cc9d9151d7b0186ff13fe6e55ba4b5c29d176fee5818fb13d5a06baa281ef255306669d18c3e320c389667615f66a41965a939a8e57cf96c22
7
- data.tar.gz: 1d764d72578d39ab049c462499f1885a26b3aa1f07aa5d02ba06688306b3a3faa65378e6dc26523588820823b17377f8b6bb319ec7b68ee9ed86c2dee94ff71e
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 |cryptum_path|
29
- spec_test_for_mod = "#{File.dirname(cryptum_path)}/#{File.basename(cryptum_path).split('.').first}_spec.rb"
30
-
31
- next unless spec_tests.grep(/#{spec_test_for_mod}/).empty?
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
- cryptum_mod_dir = File.dirname(cryptum_path)
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
@@ -29,5 +29,11 @@ module Cryptum
29
29
  Curses.close_screen
30
30
  raise e
31
31
  end
32
+
33
+ # Display a List of Every UI Module
34
+
35
+ public_class_method def self.help
36
+ constants.sort
37
+ end
32
38
  end
33
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.370'
4
+ VERSION = '0.0.372'
5
5
  end
@@ -3,8 +3,8 @@
3
3
  require 'spec_helper'
4
4
 
5
5
  describe Cryptum::Event::History do
6
- it 'should display information for existing help method' do
7
- help_response = Cryptum::Event::History
8
- expect(help_response).to respond_to :help
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 return data for help method' do
7
- help_response = Cryptum::Option::Choice.help
8
- expect(help_response).not_to be_nil
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 display information for existing help method' do
7
- help_response = Cryptum::OrderBook::Indicator
8
- expect(help_response).to respond_to :help
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 display information for existing help method' do
7
- help_response = Cryptum::UI::KeyPressEvent
8
- expect(help_response).to respond_to :help
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 display information for existing help method' do
7
- help_response = Cryptum::UI::TerminalWindow
8
- expect(help_response).to respond_to :help
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.370
4
+ version: 0.0.372
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.