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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c7afb4ee02482c198e8363c8af48f6308770b4f
4
- data.tar.gz: 1b126180c369001438dc04657d034f37e1bbd32f
3
+ metadata.gz: 7aa9cf1862ff62680a2000304318f3236f10dba1
4
+ data.tar.gz: c88ed93929ec68835c7ea8161f93559ccdcc64b2
5
5
  SHA512:
6
- metadata.gz: e0aaf2dfd45334b53623f76549574639d903c90f9561f57eeff8a100f360182c5c17fb844ed218880671516734ad33cf020e2689d344048c60ae062010ae4f99
7
- data.tar.gz: '090837b0584785249bd554fda7c0c7ddf814882ca98ba27881bb1384a55d7b52c31da1381ab00dca138a34eccba9a8aa3103c8b4028263944ab24b1306eb52f8'
6
+ metadata.gz: a73e9a5c82b1ed91b140ff56a74f982df57868d9dc14d359abd9be8793c95cf56aa0a85d111106709f8c0bcb8f6b8426db26489ad53a00f93283414b99163e7b
7
+ data.tar.gz: 83cf0a475a869b8de10084577097b350c29ebc1f115a0c12c7928baef237e7ba3e3eda24354024c0e626b031afeee312153a20fab646d53d11c7cb086209ff90
@@ -1,5 +1,5 @@
1
1
  module Conflict
2
2
  module Calendars
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -1,6 +1,8 @@
1
1
  require "conflict/calendars/version"
2
+ require "set"
2
3
 
3
- module Ccs
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.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-30 00:00:00.000000000 Z
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
Binary file