sqa 0.0.22 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,8 +24,6 @@ class SQA::Strategy
24
24
  doc_filename = self.name.split('::').last.downcase + ".md"
25
25
  doc_path = Pathname.new(__dir__) + doc_filename
26
26
 
27
- debug_me{[ :doc_path ]}
28
-
29
27
  if doc_path.exist?
30
28
  doc = doc_path.read
31
29
  else
data/lib/sqa/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SQA
4
- VERSION = "0.0.22"
4
+ VERSION = "0.0.24"
5
5
 
6
6
  class << self
7
7
  def version
data/lib/sqa.rb CHANGED
@@ -13,12 +13,27 @@ unless defined?(HOME)
13
13
  HOME = Pathname.new(ENV['HOME'])
14
14
  end
15
15
 
16
+ # TODO: do we want to move the debug_me gem out of the
17
+ # development dependencies into the required?
18
+ #
19
+ if defined?(DebugMe)
20
+ unless respond_to?(:debug_me)
21
+ include DebugMe
22
+ end
23
+ else
24
+ require 'debug_me'
25
+ include DebugMe
26
+ end
27
+
28
+ $DEBUG_ME = true
29
+
16
30
  #############################################
17
31
  ## Additional Libraries
18
32
 
19
33
  require 'alphavantage'
20
34
  require 'api_key_manager'
21
35
  require 'amazing_print'
36
+ require 'dry/cli'
22
37
  require 'faraday'
23
38
  require 'hashie'
24
39
  require 'lite/statistics'
@@ -26,18 +41,23 @@ require 'lite/statistics/monkey_patches' # patch to Enumerable
26
41
  require 'nenv'
27
42
  require 'sem_version'
28
43
  require 'sem_version/core_ext'
29
- require 'tty-option'
30
44
  require 'tty-table'
31
45
 
32
46
 
33
47
  #############################################
34
48
  ## Apply core class monkey patches
35
49
 
50
+ # Using these monkey patches to remove need for
51
+ # ActiveSupport
36
52
  require_relative "patches/string.rb"
37
53
 
54
+ # Adds the global_header, global_footer, header, and footer
55
+ # class methods to enhance the HELP/Usage functionality
56
+ require_relative "patches/dry-cli.rb"
57
+
38
58
 
39
59
  #############################################
40
- ## SQA soecufuc code
60
+ ## SQA specific code
41
61
 
42
62
  require_relative "sqa/version"
43
63
  require_relative "sqa/errors"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alphavantage
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dry-cli
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: faraday
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +123,7 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: tty-option
126
+ name: tty-table
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
@@ -123,13 +137,13 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: tty-table
140
+ name: amazing_print
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ">="
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
- type: :runtime
146
+ type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
@@ -137,7 +151,7 @@ dependencies:
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: amazing_print
154
+ name: bundler
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
@@ -151,7 +165,7 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: bundler
168
+ name: debug_me
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - ">="
@@ -165,7 +179,7 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: debug_me
182
+ name: minitest
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ">="
@@ -179,7 +193,7 @@ dependencies:
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
- name: minitest
196
+ name: rake
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - ">="
@@ -193,7 +207,7 @@ dependencies:
193
207
  - !ruby/object:Gem::Version
194
208
  version: '0'
195
209
  - !ruby/object:Gem::Dependency
196
- name: tocer
210
+ name: simplecov
197
211
  requirement: !ruby/object:Gem::Requirement
198
212
  requirements:
199
213
  - - ">="
@@ -207,7 +221,7 @@ dependencies:
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0'
209
223
  - !ruby/object:Gem::Dependency
210
- name: rake
224
+ name: tocer
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
227
  - - ">="
@@ -249,6 +263,8 @@ files:
249
263
  - checksums/sqa-0.0.20.gem.sha512
250
264
  - checksums/sqa-0.0.21.gem.sha512
251
265
  - checksums/sqa-0.0.22.gem.sha512
266
+ - checksums/sqa-0.0.23.gem.sha512
267
+ - checksums/sqa-0.0.24.gem.sha512
252
268
  - checksums/sqa-0.0.3.gem.sha512
253
269
  - checksums/sqa-0.0.4.gem.sha512
254
270
  - checksums/sqa-0.0.5.gem.sha512
@@ -282,13 +298,18 @@ files:
282
298
  - docs/simple_moving_average.md
283
299
  - docs/stochastic_oscillator.md
284
300
  - docs/strategy.md
301
+ - docs/ta_lib.md
285
302
  - docs/terms_of_use.md
286
303
  - docs/true_range.md
304
+ - lib/patches/dry-cli.rb
287
305
  - lib/patches/string.rb
288
306
  - lib/sqa.rb
289
307
  - lib/sqa/activity.rb
290
- - lib/sqa/analysis.rb
291
308
  - lib/sqa/cli.rb
309
+ - lib/sqa/commands.rb
310
+ - lib/sqa/commands/analysis.rb
311
+ - lib/sqa/commands/base.rb
312
+ - lib/sqa/commands/web.rb
292
313
  - lib/sqa/config.rb
293
314
  - lib/sqa/constants.rb
294
315
  - lib/sqa/data_frame.rb
@@ -318,6 +339,7 @@ files:
318
339
  - lib/sqa/indicator/stochastic_oscillator.rb
319
340
  - lib/sqa/indicator/true_range.rb
320
341
  - lib/sqa/init.rb
342
+ - lib/sqa/plugin_manager.rb
321
343
  - lib/sqa/portfolio.rb
322
344
  - lib/sqa/stock.rb
323
345
  - lib/sqa/strategy.rb
@@ -334,7 +356,6 @@ files:
334
356
  - lib/sqa/ticker.rb
335
357
  - lib/sqa/trade.rb
336
358
  - lib/sqa/version.rb
337
- - lib/sqa/web.rb
338
359
  homepage: https://github.com/MadBomber/sqa
339
360
  licenses:
340
361
  - MIT