carve_range 0.1.1 → 0.1.2
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/README.md +12 -0
- data/lib/carve_range/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03ce5e8ae91a0f815d268e54e81b2c5659a491ce
|
|
4
|
+
data.tar.gz: 461488480587d54223584d995512e580a7a7bef8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e3b092474d9769d9afa0b0c512866a9912afb7a9ee9ddfdb0b5b1657bc76b89d94b86465586e040d32d448d9102fe0d9d6720098ae961ff05574b0c0e0d10ad
|
|
7
|
+
data.tar.gz: 139da83f7df0a69bc08488da7c6d76acae306a7215b50ebeab37a6d2eb8f074f8c8af5ec2177c7d64086f46ef520b39a0cee86a4cf1089c891705d1bf812e1b8
|
data/README.md
CHANGED
|
@@ -5,33 +5,45 @@ Takes two date ranges (A,B) and returns an array of date ranges in A that do not
|
|
|
5
5
|
## Example 1
|
|
6
6
|
|
|
7
7
|
Date Range A: #########
|
|
8
|
+
|
|
8
9
|
Date Range B: #####
|
|
10
|
+
|
|
9
11
|
Carve(A,B): [##, ##, ####]
|
|
10
12
|
|
|
11
13
|
## Example 1 Why?
|
|
12
14
|
|
|
13
15
|
Date Range A: #########
|
|
16
|
+
|
|
14
17
|
Date Range B: #####
|
|
18
|
+
|
|
15
19
|
Date Range A': ##
|
|
20
|
+
|
|
16
21
|
Date Range A'': ##
|
|
22
|
+
|
|
17
23
|
A' + A'' + B: [##, ##, ####]
|
|
18
24
|
|
|
19
25
|
## Example 2
|
|
20
26
|
|
|
21
27
|
Date Range A: #####
|
|
28
|
+
|
|
22
29
|
Date Range B: #####
|
|
30
|
+
|
|
23
31
|
Carve(A,B): [##,#####]
|
|
24
32
|
|
|
25
33
|
## Example 3
|
|
26
34
|
|
|
27
35
|
Date Range A: #####
|
|
36
|
+
|
|
28
37
|
Date Range B: ###
|
|
38
|
+
|
|
29
39
|
Carve(A,B): [##,###]
|
|
30
40
|
|
|
31
41
|
## Example 4
|
|
32
42
|
|
|
33
43
|
Date Range A: #####
|
|
44
|
+
|
|
34
45
|
Date Range B: #######
|
|
46
|
+
|
|
35
47
|
Carve(A,B): [#######]
|
|
36
48
|
|
|
37
49
|
## Use Case
|
data/lib/carve_range/version.rb
CHANGED