conflict-calendars 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/lib/conflict/calendars/version.rb +1 -1
- data/lib/conflict/calendars.rb +5 -2
- metadata +2 -4
- data/lib/.DS_Store +0 -0
- data/lib/conflict/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7aa9cf1862ff62680a2000304318f3236f10dba1
|
|
4
|
+
data.tar.gz: c88ed93929ec68835c7ea8161f93559ccdcc64b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a73e9a5c82b1ed91b140ff56a74f982df57868d9dc14d359abd9be8793c95cf56aa0a85d111106709f8c0bcb8f6b8426db26489ad53a00f93283414b99163e7b
|
|
7
|
+
data.tar.gz: 83cf0a475a869b8de10084577097b350c29ebc1f115a0c12c7928baef237e7ba3e3eda24354024c0e626b031afeee312153a20fab646d53d11c7cb086209ff90
|
data/lib/conflict/calendars.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
require "conflict/calendars/version"
|
|
2
|
+
require "set"
|
|
2
3
|
|
|
3
|
-
module
|
|
4
|
+
module Conflict
|
|
5
|
+
module Calendars
|
|
4
6
|
|
|
5
7
|
class Calendar
|
|
6
8
|
|
|
@@ -33,7 +35,7 @@ module Ccs
|
|
|
33
35
|
calendar_first = comb.first
|
|
34
36
|
calendar_last = comb.last
|
|
35
37
|
comb if overlaps(calendar_first.start_time,calendar_first.end_time,calendar_last.start_time,calendar_last.end_time)
|
|
36
|
-
end.compact
|
|
38
|
+
end.compact
|
|
37
39
|
@conflicts = Graph.new(result).find_maximum_cliques
|
|
38
40
|
end
|
|
39
41
|
|
|
@@ -96,3 +98,4 @@ module Ccs
|
|
|
96
98
|
end
|
|
97
99
|
|
|
98
100
|
end
|
|
101
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conflict-calendars
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tsao
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-01-
|
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -54,8 +54,6 @@ files:
|
|
|
54
54
|
- bin/console
|
|
55
55
|
- bin/setup
|
|
56
56
|
- conflict-calendars.gemspec
|
|
57
|
-
- lib/.DS_Store
|
|
58
|
-
- lib/conflict/.DS_Store
|
|
59
57
|
- lib/conflict/calendars.rb
|
|
60
58
|
- lib/conflict/calendars/version.rb
|
|
61
59
|
homepage: https://github.com/tsaohucn/conflict-calendars.git
|
data/lib/.DS_Store
DELETED
|
Binary file
|
data/lib/conflict/.DS_Store
DELETED
|
Binary file
|