ruboty-calendar 0.0.3 → 0.0.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: bf32cfd557b1f29d1d726a6f5373ba5dba4bb46c
4
- data.tar.gz: dc58ef0183fb731f03e7818ffbf0f3e948879c00
3
+ metadata.gz: b9aee39e9a6db9a7d7d0a1b7b505defa929bafc5
4
+ data.tar.gz: e7b286432a86577b0aadb950575155e51200c3ab
5
5
  SHA512:
6
- metadata.gz: d9f53bea8c59984d2f06e450711218e14265ca9034d096661b54c583d598051a0d8b5073007e0feeb2a182a97a8ebb4331059aff3d976703745536579985eab7
7
- data.tar.gz: e05645c3b1fbf3131d561ddd9c06f5f16c8977379bb2bae63373c1e7a0d18b740a781157a1ae563a6ddeb49bea8a9b265bc5e4b1cd4d821d40e0b3317af21f26
6
+ metadata.gz: c621e3c0e7d9dbd45fcb4ea704fb32bbf0125f3e21809adc6e28c09ea94e097616dd5c1de2a420173f728da2dd1a87dcdbcc53c3408b6fce32c4e44fe22d26e9
7
+ data.tar.gz: 7ee78b0fd61c45acb604f08a361c9504385d268f3f7d88c3463232e2913787dd6c5ec61637631ff27d8b304b89f83f92f43e0a2f427ef460f9332e48c79c67aa
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruboty::Calendar
2
2
 
3
- TODO: Write a gem description
3
+ Display Calendar for ruboty.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,13 +10,7 @@ module Ruboty
10
10
 
11
11
  private
12
12
  def cal
13
- if message[:month].class == Integer and message[:year].class == Integer
14
- Display::Calendar.new.calendar(message[:month],message[:year])
15
- elsif message[:month].class == Integer
16
- Display::Calendar.new.calendar(message[:month],get_year_now)
17
- else
18
- Display::Calendar.new.calendar(get_month_now,get_year_now)
19
- end
13
+ Display::Calendar.new.calendar(get_month_now,get_year_now)
20
14
  end
21
15
 
22
16
  def get_month_now
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Calendar
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require "ruboty/calendar/actions/calendar"
3
3
  module Ruboty
4
4
  module Handlers
5
5
  class Calendar < Base
6
- on /calendar (?<month>.*?) (?<year>.*?)\z/, name: 'calendar', description: 'display calendar.'
6
+ on /calendar\z/, name: 'calendar', description: 'display calendar.'
7
7
 
8
8
  def calendar(msg)
9
9
  Ruboty::Calendar::Actions::Calendar.new(msg).call
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "ruboty"
22
22
  spec.add_development_dependency "bundler", "~> 1.7"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_dependency "display-calendar"
24
+ spec.add_dependency "display-calendar", "~> 0.0.3"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - youyo
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: display-calendar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.0.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.0.3
69
69
  description: Display Calendar for ruboty.
70
70
  email:
71
71
  - 1003ni2@gmail.com