cotcube-bardata 0.1.17 → 0.1.18

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: 2bb98a590c08cbd0dafba80850aab164befd778fb6425e67e304a7fc909f9411
4
- data.tar.gz: cc3ec5166d4610605c0afd14c16f07798e092c537c82b2ed19d9a3326c10b642
3
+ metadata.gz: 748713da1657b8a6793d565bb512e4b75e5e42eac3f8358f0539fdc68bf01b15
4
+ data.tar.gz: b5f2357bec4f8a2bef007deaae1bfa03ebf55f8cfdeee4ed7a3ad54070d1b0a4
5
5
  SHA512:
6
- metadata.gz: 8a85816eefa18b6b72d98c9f6642881784678a99d1b4e402129bdcbe613ee0827ffd389bf996da31408306bf6a2f3ba8fe3cbd992b462460362b935d3e24dde2
7
- data.tar.gz: 0f227bf5199375e04cda8382787170e2654689278eb93ac59f0573523030aecde9771f9a035a1b321f626e500a040ab01c5a35199ea54a63293adbf97357f2a0
6
+ metadata.gz: 14390b66e537a384dd769d228e6f48ecf27fffb0cfcfdaf3f459cd01ad3db911ab886f450fdc4ba097aa79a27c0ee31ea820553d084d967a597dd71a1f508ea4
7
+ data.tar.gz: c92e81d2d6488ed4b7fcffc8b000fcde62ec94ebe5e6e0ff461b40febb4ac19cadb6126b8a3c7241ec0e647cde9c43126176ae573a18769e42287eb206c02c2b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.18 (December 23, 2021)
2
+ - gemspec: raised activesupport to v7
3
+ - daily: added check for valid/allowed month pattern in continuous_overview
4
+
1
5
  ## 0.1.17 (December 06, 2021)
2
6
  - changed parameter for building of continuous (in daily.rb)
3
7
  - added bin/intra + symbols. improved bin/daily
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.17
1
+ 0.1.18
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_dependency 'activesupport', '~> 6'
29
+ spec.add_dependency 'activesupport', '~> 7'
30
30
  spec.add_dependency 'colorize', '~> 0.8'
31
31
  spec.add_dependency 'cotcube-helpers', '~> 0.2'
32
32
  spec.add_dependency 'cotcube-indicators', '~> 0.1'
@@ -7,7 +7,7 @@ module Cotcube
7
7
  def provide_daily(contract:, # rubocop:disable Metrics/ParameterLists
8
8
  symbol: nil, id: nil,
9
9
  range: nil,
10
- timezone: Time.find_zone('America/Chicago'),
10
+ timezone: Cotcube::Helpers::CHICAGO,
11
11
  keep_last: false,
12
12
  add_eods: true,
13
13
  indicators: {},
@@ -29,7 +29,7 @@ module Cotcube
29
29
 
30
30
  unless range.nil?
31
31
  range_begin = range.begin.nil? ? nil : timezone.parse(range.begin.to_s)
32
- range_end = range.end.nil? ? nil : timezone.parse(range.end.to_s)
32
+ range_end = range.end.nil? ? nil : timezone.parse(range. end.to_s)
33
33
  range = (range_begin..range_end)
34
34
  end
35
35
 
@@ -366,6 +366,7 @@ module Cotcube
366
366
  ytoday = date.yday
367
367
  data = continuous_overview(id: id, selector: selector, filter: filter, human: false, config: init, measure: measure)
368
368
  .reject { |k, _| k[-2..].to_i >= date.year % 2000 }
369
+ .select { |k, _| sym[:months].chars.include? k[2] }
369
370
  .group_by { |k, _| k[2] }
370
371
  measuring.call("Retrieved continous_overview")
371
372
  long_output = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cotcube-bardata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin L. Tischendorf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
19
+ version: '7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6'
26
+ version: '7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement