conflict-calendars 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62c48a599617b11eeaa345f16874531f0c72e404
4
- data.tar.gz: 6d7a84c0ba8bdb383b717e84ccd7a37f482d3756
3
+ metadata.gz: b8cc57f33fbe6be46bcb6def4f390207edfe2b88
4
+ data.tar.gz: e2aa7a48cd39b93de2e7718c41b536a02726d208
5
5
  SHA512:
6
- metadata.gz: 6bb5c34c51f6a5b9b9f01cab169929f0e4c293a9a0988a85083f3b8b25ea2ca67de72e4f4f62a297a15b94e0c24830ff782e68d71b3dce725ccbe41dba4ff5eb
7
- data.tar.gz: 401d6f2c177bb660fd38bd5eb0c5676933313d4da00cc57fd8c3544971682136e3271c43fe9880d8a4d4654b962ea5d46d1870b2a2b5e52615095546dbffc484
6
+ metadata.gz: 99531c84f844f4eb904a9e0631598c71c1790513eb5b073d5203af3a97906ecb20d5d8bfca692afff5c1c18124c6a9ac2791c3105743a7fae0480747e66e53c1
7
+ data.tar.gz: c55cf5fb3c8e6edadab323f1bc58bc0d361a27a384be5950542c27201a28764e4c7717432556341d34cd02b2cb85c8d3e19502aa30ceff75eaaa30eecad8dd31
data/README.md CHANGED
@@ -19,8 +19,13 @@ Or install it yourself as:
19
19
  $ gem install conflict-calendars
20
20
 
21
21
  ## Usage
22
+ First you should require the library
22
23
 
23
- First you should create Ccs::Calendar object by this way
24
+ ```ruby
25
+ require "conflict/calendars"
26
+ ```
27
+
28
+ Then you can create Ccs::Calendar object by this way
24
29
 
25
30
  ```ruby
26
31
  calendar_A = Ccs::Calendar.new("enter the name of calendar",Time.new(2016,12,10,8,0),Time.new(2016,12,10,13,0)
@@ -30,7 +35,7 @@ calendar_A = Ccs::Calendar.new("enter the name of calendar",Time.new(2016,12,10,
30
35
  calendar_B = Ccs::Calendar.new(Time.new(2016,12,10,9,0),Time.new(2016,12,10,10,30))
31
36
  #=> #<Ccs::Calendar:0x007fa36c55bf38 @name=nil, @start_time=2016-12-10 09:00:00 +0800, @end_time=2016-12-10 10:30:00 +0800>
32
37
  ```
33
- And then you can find the conflicts by this way
38
+ Then you can find the conflicts by this way
34
39
 
35
40
  ```ruby
36
41
  conflicts = Ccs::Conflicts.new(calendar_A,calendar_B)
@@ -39,8 +44,7 @@ conflicts.each do |conflict|
39
44
  p conflict #=> #<Set: {#<Ccs::Calendar:0x007fb..>, #<Ccs::Calendar:0x007fc..>} >
40
45
  end
41
46
  ```
42
- Now, you can know there are exist two calendars that conflict in the same set.
43
- So, you can do that :
47
+ Now, you know there are exist two calendars that conflict in the same set. So, you can get each information of calendar by this way :
44
48
 
45
49
  ```ruby
46
50
  conflict.each do |calendar|
@@ -1,5 +1,5 @@
1
1
  module Conflict
2
2
  module Calendars
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conflict-calendars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tsao