fat_core 4.13.0 → 4.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fat_core.gemspec +10 -11
- data/lib/fat_core/date.rb +3 -2
- data/lib/fat_core/version.rb +1 -1
- metadata +20 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8346fec82bf15a334c820d144c1ca1dd1dced6caf277d422d7436d8acc802da4
|
4
|
+
data.tar.gz: 9fd7625a54123c14e2b267d4e0edfd476ec3ed651a0206601146ac56eefb201b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c8af36daf08287547b58ff26f83ec7adec26e3e1965b98ff89cdc7d73befb0c1b7d7d2b36d13c59a9869d73264a07925a85f611e8a9e2f0027f8716e52123ba
|
7
|
+
data.tar.gz: '082df1b45297258a2f313879da999dd19f74a353a69bdcd83343fc84221165f5f7a5c7bcbaea2248e9a1260b35312a1cb4544838872dfe24cfbd74ffe698283f'
|
data/fat_core.gemspec
CHANGED
@@ -9,33 +9,32 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ['ded@ddoherty.net']
|
10
10
|
spec.summary = 'some useful core extensions'
|
11
11
|
spec.description = <<~DESC
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
Useful extensions to Date, String, Range and other classes
|
13
|
+
including useful Date extensions for dealing with US Federal
|
14
|
+
and New York Stock Exchange holidays and working days, a useful
|
15
|
+
Enumerable#each_with_flags for flagging first and last items in the
|
16
|
+
iteration, (also for Hash), set operations on Ranges
|
17
17
|
DESC
|
18
18
|
spec.homepage = 'https://github.com/ddoherty03/fat_core.git'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
spec.required_ruby_version = '>= 2.2.2'
|
21
21
|
spec.metadata['yard.run'] = 'yri' # use "yard" to build full HTML docs.
|
22
22
|
|
23
|
-
spec.files
|
23
|
+
spec.files = %x[git ls-files -z].split("\x0")
|
24
24
|
spec.files.reject! { |fn| fn =~ /^NYSE_closings.pdf/ }
|
25
25
|
spec.executables = spec.files.grep(%r{^bin/easter}) { |f| File.basename(f) }
|
26
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
26
|
spec.require_paths = ['lib']
|
28
27
|
|
29
|
-
spec.add_development_dependency 'simplecov'
|
30
28
|
spec.add_development_dependency 'bundler'
|
31
29
|
spec.add_development_dependency 'debug', '>= 1.0.0'
|
32
|
-
spec.add_development_dependency 'rake'
|
33
|
-
spec.add_development_dependency 'rspec'
|
34
30
|
spec.add_development_dependency 'pry'
|
35
31
|
spec.add_development_dependency 'pry-doc'
|
32
|
+
spec.add_development_dependency 'rake'
|
36
33
|
spec.add_development_dependency 'redcarpet'
|
34
|
+
spec.add_development_dependency 'rspec'
|
35
|
+
spec.add_development_dependency 'simplecov'
|
37
36
|
spec.add_development_dependency 'solargraph'
|
38
37
|
|
39
|
-
spec.add_runtime_dependency 'activesupport'
|
38
|
+
spec.add_runtime_dependency 'activesupport'
|
40
39
|
spec.add_runtime_dependency 'damerau-levenshtein'
|
41
40
|
end
|
data/lib/fat_core/date.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'date'
|
4
|
+
require 'active_support'
|
4
5
|
require 'active_support/core_ext/date'
|
5
6
|
require 'active_support/core_ext/time'
|
6
7
|
require 'active_support/core_ext/numeric/time'
|
@@ -1157,8 +1158,8 @@ module FatCore
|
|
1157
1158
|
end
|
1158
1159
|
alias_method :trading_day?, :nyse_workday?
|
1159
1160
|
|
1160
|
-
# Return
|
1161
|
-
# date.
|
1161
|
+
# Return a new date that is n NYSE trading days after or before (if n < 0)
|
1162
|
+
# this date.
|
1162
1163
|
#
|
1163
1164
|
# @param num [Integer] number of NYSE trading days to add to this date
|
1164
1165
|
# @return [::Date]
|
data/lib/fat_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel E. Doherty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,35 +25,35 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.0.0
|
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:
|
40
|
+
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: pry-doc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: redcarpet
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: activesupport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '0'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: damerau-levenshtein
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,20 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
- !ruby/object:Gem::Version
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.4.9
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: some useful core extensions
|
246
|
-
test_files:
|
247
|
-
- spec/lib/array_spec.rb
|
248
|
-
- spec/lib/bigdecimal_spec.rb
|
249
|
-
- spec/lib/date_spec.rb
|
250
|
-
- spec/lib/enumerable_spec.rb
|
251
|
-
- spec/lib/hash_spec.rb
|
252
|
-
- spec/lib/kernel_spec.rb
|
253
|
-
- spec/lib/nil_spec.rb
|
254
|
-
- spec/lib/numeric_spec.rb
|
255
|
-
- spec/lib/range_spec.rb
|
256
|
-
- spec/lib/string_spec.rb
|
257
|
-
- spec/lib/symbol_spec.rb
|
258
|
-
- spec/spec_helper.rb
|
246
|
+
test_files: []
|