spok 2.1.0 → 2.1.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/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/spok/version.rb +1 -1
- data/lib/spok/workday.rb +0 -11
- data/pkg/spok-2.1.0.gem +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ade4e2e8c27397b4b96f64e86d0aa8a982951de68bbc660a286d419a7a89eb2
|
4
|
+
data.tar.gz: 0e14523e5784537af1015c30c75eb372a9b2342e06793b3b9feb3cf05f71c994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73617cf09aa51c787c3744f6646b05b87c6c0a65776fa16d0e43a4d7b4678c0fa88e7575ab808f0122af2145494dc5cefd1ef6172db174add875b1eb43074870
|
7
|
+
data.tar.gz: d7e0ded62672c47c778e11c1a0f767239f4cc1b26868dacd7a892e3bf948ef1e680aa3eee5916da1b77be30577f136faa15434cf944fed1270963fbb3bc0e952
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,13 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [2.1.1] - 2020-04-15
|
7
|
+
|
8
|
+
* Remove deprecation warnings and create a note about it on README file.
|
9
|
+
|
6
10
|
## [2.1.0] - 2020-04-13
|
7
11
|
|
8
|
-
* Replace the access of `Spok::Workday` by `Spok` interface.
|
12
|
+
* Replace the access of `Spok::Workday` by `Spok` interface.
|
9
13
|
|
10
14
|
All methods before accessed by `Spok::Workday` module now is accessible by `Spok` interface.
|
11
15
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -25,6 +25,8 @@ Or install it yourself as:
|
|
25
25
|
|
26
26
|
### Dealing with workdays
|
27
27
|
|
28
|
+
NOTE: All methods available on `Spok::Workday` now are available on `Spok` interface, `Spok::Workday` still works but we have plans to make `Spok:: Workday` a private resource, you should update your code to rely on `Spok` interface.
|
29
|
+
|
28
30
|
You can use the Spok to check if a date is either a rest day or a workday:
|
29
31
|
|
30
32
|
```ruby
|
@@ -43,7 +45,7 @@ restday.
|
|
43
45
|
```ruby
|
44
46
|
require 'spok'
|
45
47
|
|
46
|
-
Spok
|
48
|
+
Spok.workday?(Date.new(2012, 12, 24), calendar: :bovespa)
|
47
49
|
# => false
|
48
50
|
```
|
49
51
|
|
data/lib/spok/version.rb
CHANGED
data/lib/spok/workday.rb
CHANGED
@@ -114,16 +114,5 @@ class Spok
|
|
114
114
|
|
115
115
|
next_workday((date + 1.day), calendar: calendar)
|
116
116
|
end
|
117
|
-
|
118
|
-
class << self
|
119
|
-
extend Gem::Deprecate
|
120
|
-
|
121
|
-
deprecate :restday?, 'Spok.restday?', 2020, 12
|
122
|
-
deprecate :workday?, 'Spok.workday?', 2020, 12
|
123
|
-
deprecate :weekend?, 'Spok.weekend?', 2020, 12
|
124
|
-
deprecate :holiday?, 'Spok.holiday?', 2020, 12
|
125
|
-
deprecate :last_workday, 'Spok.last_workday', 2020, 12
|
126
|
-
deprecate :next_workday, 'Spok.next_workday', 2020, 12
|
127
|
-
end
|
128
117
|
end
|
129
118
|
end
|
data/pkg/spok-2.1.0.gem
CHANGED
Binary file
|