meimei 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +2 -0
- data/VERSION +1 -1
- data/meimei.gemspec +4 -1
- data/plugins/jtime.rb +4 -7
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a3f781c3222d19718ec7f3f0dc5b3b534d0c3e
|
4
|
+
data.tar.gz: 61f2f5ed22cc9989783dfeae00e6d416a9f8d6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934dda7c6918e20e27b37a4c698d55b2dc39f73c5df46cf5c0309baf552c9d99299013834f6190b5d51c223f191d311b1ef53af84f748336b8cbd832074156af
|
7
|
+
data.tar.gz: f2c65a8989581e2535f843b42a0539eeb4a44a8f32afc0fc57d5e7152e2a3cd203ca5350e346363b6c917554c32ebd2b2859bf83c2931e54423b45eaaef71c54
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -70,6 +70,7 @@ GEM
|
|
70
70
|
thread_safe (0.3.5)
|
71
71
|
time_difference (0.4.2)
|
72
72
|
activesupport
|
73
|
+
timezone (0.6.0)
|
73
74
|
tzinfo (1.2.2)
|
74
75
|
thread_safe (~> 0.1)
|
75
76
|
yahoofinance (1.2.2)
|
@@ -86,6 +87,7 @@ DEPENDENCIES
|
|
86
87
|
rake
|
87
88
|
rdoc
|
88
89
|
time_difference
|
90
|
+
timezone
|
89
91
|
yahoofinance
|
90
92
|
|
91
93
|
BUNDLED WITH
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/meimei.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "meimei"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["r888888888"]
|
@@ -92,6 +92,7 @@ Gem::Specification.new do |s|
|
|
92
92
|
s.add_runtime_dependency(%q<time_difference>, [">= 0"])
|
93
93
|
s.add_runtime_dependency(%q<pry>, [">= 0"])
|
94
94
|
s.add_runtime_dependency(%q<yahoofinance>, [">= 0"])
|
95
|
+
s.add_runtime_dependency(%q<timezone>, [">= 0"])
|
95
96
|
else
|
96
97
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
97
98
|
s.add_dependency(%q<rake>, [">= 0"])
|
@@ -102,6 +103,7 @@ Gem::Specification.new do |s|
|
|
102
103
|
s.add_dependency(%q<time_difference>, [">= 0"])
|
103
104
|
s.add_dependency(%q<pry>, [">= 0"])
|
104
105
|
s.add_dependency(%q<yahoofinance>, [">= 0"])
|
106
|
+
s.add_dependency(%q<timezone>, [">= 0"])
|
105
107
|
end
|
106
108
|
else
|
107
109
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
@@ -113,6 +115,7 @@ Gem::Specification.new do |s|
|
|
113
115
|
s.add_dependency(%q<time_difference>, [">= 0"])
|
114
116
|
s.add_dependency(%q<pry>, [">= 0"])
|
115
117
|
s.add_dependency(%q<yahoofinance>, [">= 0"])
|
118
|
+
s.add_dependency(%q<timezone>, [">= 0"])
|
116
119
|
end
|
117
120
|
end
|
118
121
|
|
data/plugins/jtime.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Net::HTTP.start("www.google.com", 80) do |http|
|
3
|
-
resp = http.get("/search?q=tokyo+time")
|
4
|
-
html = resp.body
|
5
|
-
html =~ /<b>(\d+):(\d+)(am|pm)<\/b>/
|
1
|
+
require 'timezone'
|
6
2
|
|
7
|
-
|
8
|
-
|
3
|
+
define_plugin("!jtime") do
|
4
|
+
timezone = Timezone::Zone.new(:zone => "Asia/Tokyo")
|
5
|
+
reply "It is currently #{timezone.strftime('%c')} in Tokyo."
|
9
6
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meimei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r888888888
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: timezone
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
description: If all you need is a simple infobot and don't need a full RFC1459 implementation.
|
140
154
|
email: r888888888@gmail.com
|
141
155
|
executables: []
|