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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8203f05d9317b3b0e4e0043d7ed4894f97d56d10d990df315ddfeb4dc9c458ef
4
- data.tar.gz: 60d008280404cc98f1682df8ab7338e6c16ed7c50ec1529fe8211a166e098a6a
3
+ metadata.gz: 2ade4e2e8c27397b4b96f64e86d0aa8a982951de68bbc660a286d419a7a89eb2
4
+ data.tar.gz: 0e14523e5784537af1015c30c75eb372a9b2342e06793b3b9feb3cf05f71c994
5
5
  SHA512:
6
- metadata.gz: 1a71ef39e9b0092271ecd301968039700b0bf7600b873360cc33a445d2ff252fcebc3a50293ebcf988f4331a0d7f76ecdbba449ce3edab41fc6a8ae656cf0997
7
- data.tar.gz: b398c9efc2c68a675e2773b586a0652b46f0037b6e0bcd9820bf47958c525fee9aee704b14fbca4b7e6226f3017d5d3199209a381574501aafca5e5205abcad1
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spok (2.0.1)
4
+ spok (2.1.1)
5
5
  activesupport (>= 5.1, < 7.0)
6
6
 
7
7
  GEM
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::Workday.workday?(Date.new(2012, 12, 24), calendar: :bovespa)
48
+ Spok.workday?(Date.new(2012, 12, 24), calendar: :bovespa)
47
49
  # => false
48
50
  ```
49
51
 
data/lib/spok/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Spok
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spok
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnetis Staff