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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 624e0d6095b542cb8662542c749e1f4441cc6590
4
- data.tar.gz: dce2d507841260446ad992aa7ee0c1aba59bd861
3
+ metadata.gz: 75a3f781c3222d19718ec7f3f0dc5b3b534d0c3e
4
+ data.tar.gz: 61f2f5ed22cc9989783dfeae00e6d416a9f8d6ae
5
5
  SHA512:
6
- metadata.gz: 3d956faaa5a9cda9c0830a0e43f96062fc2f2545eaf419f82c1572baaede0bf02a76914b0b5f17b279f14ba4865a126396a434def348f2004b9914d92c24fedb
7
- data.tar.gz: 9b0ac9cdf0e4ea43ca539d05929de45b07ecff8f7e492f86aac6dfffed28fef2bd10dac2200bd054cfeef526fb969c60fae93e40de2b1d5c51e9ccdf7b7f16fe
6
+ metadata.gz: 934dda7c6918e20e27b37a4c698d55b2dc39f73c5df46cf5c0309baf552c9d99299013834f6190b5d51c223f191d311b1ef53af84f748336b8cbd832074156af
7
+ data.tar.gz: f2c65a8989581e2535f843b42a0539eeb4a44a8f32afc0fc57d5e7152e2a3cd203ca5350e346363b6c917554c32ebd2b2859bf83c2931e54423b45eaaef71c54
data/Gemfile CHANGED
@@ -8,4 +8,5 @@ gem 'json'
8
8
  gem 'damerau-levenshtein'
9
9
  gem 'time_difference'
10
10
  gem 'pry'
11
- gem 'yahoofinance'
11
+ gem 'yahoofinance'
12
+ gem 'timezone'
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.6.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.6.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
- define_plugin("!jtime") do
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
- reply "It is currently #{$1}:#{$2} #{$3} in Japan."
8
- end
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.6.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: []