stock_market_days 1.3.0 → 1.4.1
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/.gitignore +2 -1
- data/CHANGELOG.md +6 -0
- data/README.md +4 -4
- data/Rakefile +6 -6
- data/lib/market_open_days/nyse_market_days.csv +6300 -0
- data/lib/stock_market_days/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bddb3b1d05325356714d9f6e11b4756786f69ae227bd5b66666fbd3daa70646c
|
4
|
+
data.tar.gz: 39ef59865cb3eefcc68cdedc8beedff8bc8ddb6cdaa905add9c229d83ec40bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 764b10f435b3da3135bdef3aeae5fdec1e4d28b55dcbeea0da5bc3f07953856671b86de74438ed9b596e83d2c84153ef12d3b58ca1cd0d3d18bdc4c4f71ca00b
|
7
|
+
data.tar.gz: 807409ab2bc05a5c696f1e91bebae51e13d1563eb9cd6c35849cf1b2e4ad85a1f6ed7b447855ed072da92054dc1ab5c9e3e8d0d3ef247768fde8b3f3f9016fac
|
data/.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
pkg/
|
1
|
+
pkg/
|
2
|
+
Gemfile.lock
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Typically, markets are closed on weekends and the following holidays:
|
|
8
8
|
* New Year's Day (January 1st, or first Monday of January if on weekend)
|
9
9
|
* Martin Luther King Day (third Monday of January)
|
10
10
|
* Washington's Birthday (third Monday of Feburary)
|
11
|
-
* Good Friday (Determined by
|
11
|
+
* Good Friday (Determined by [https://spider.seds.org/spider/ScholarX/publ_holidays.html](https://spider.seds.org/spider/ScholarX/publ_holidays.html))
|
12
12
|
* Memorial Day (last Monday of May)
|
13
13
|
* Juneteenth (June 19, or nearest Monday or Friday if on a weekend)
|
14
14
|
* Independence Day (July 4, or July 3rd if on Saturday, July 5th if on Sunday)
|
@@ -29,9 +29,9 @@ gem 'stock_market_days'
|
|
29
29
|
|
30
30
|
## Available Methods
|
31
31
|
|
32
|
-
`is_market_day?` - tells you whether the given date is a date US markets are open
|
33
|
-
`market_days_between` - tells number of trading days between two dates
|
34
|
-
`market_days_from` - gives you the trading day of given date, plus number of trading days
|
32
|
+
* `is_market_day?` - tells you whether the given date is a date US markets are open
|
33
|
+
* `market_days_between` - tells number of trading days between two dates
|
34
|
+
* `market_days_from` - gives you the trading day of given date, plus number of trading days
|
35
35
|
|
36
36
|
|
37
37
|
Look at the test suite for examples of usage.
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require '
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# end
|
4
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
5
|
+
t.pattern = 'spec/**/*_spec.rb'
|
6
|
+
end
|
8
7
|
|
8
|
+
task default: :spec
|