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 +4 -4
- data/README.md +1 -1
- data/lib/ruboty/calendar/actions/calendar.rb +1 -7
- data/lib/ruboty/calendar/version.rb +1 -1
- data/lib/ruboty/handlers/calendar.rb +1 -1
- data/ruboty-calendar.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9aee39e9a6db9a7d7d0a1b7b505defa929bafc5
|
4
|
+
data.tar.gz: e7b286432a86577b0aadb950575155e51200c3ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c621e3c0e7d9dbd45fcb4ea704fb32bbf0125f3e21809adc6e28c09ea94e097616dd5c1de2a420173f728da2dd1a87dcdbcc53c3408b6fce32c4e44fe22d26e9
|
7
|
+
data.tar.gz: 7ee78b0fd61c45acb604f08a361c9504385d268f3f7d88c3463232e2913787dd6c5ec61637631ff27d8b304b89f83f92f43e0a2f427ef460f9332e48c79c67aa
|
data/README.md
CHANGED
@@ -10,13 +10,7 @@ module Ruboty
|
|
10
10
|
|
11
11
|
private
|
12
12
|
def cal
|
13
|
-
|
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
|
@@ -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
|
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
|
data/ruboty-calendar.gemspec
CHANGED
@@ -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.
|
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:
|
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:
|
68
|
+
version: 0.0.3
|
69
69
|
description: Display Calendar for ruboty.
|
70
70
|
email:
|
71
71
|
- 1003ni2@gmail.com
|