meimei 0.5.0 → 0.6.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 +6 -2
- data/plugins/s.rb +13 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 624e0d6095b542cb8662542c749e1f4441cc6590
|
4
|
+
data.tar.gz: dce2d507841260446ad992aa7ee0c1aba59bd861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d956faaa5a9cda9c0830a0e43f96062fc2f2545eaf419f82c1572baaede0bf02a76914b0b5f17b279f14ba4865a126396a434def348f2004b9914d92c24fedb
|
7
|
+
data.tar.gz: 9b0ac9cdf0e4ea43ca539d05929de45b07ecff8f7e492f86aac6dfffed28fef2bd10dac2200bd054cfeef526fb969c60fae93e40de2b1d5c51e9ccdf7b7f16fe
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/meimei.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "meimei"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.6.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"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2016-02-19"
|
13
13
|
s.description = "If all you need is a simple infobot and don't need a full RFC1459 implementation."
|
14
14
|
s.email = "r888888888@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -57,6 +57,7 @@ Gem::Specification.new do |s|
|
|
57
57
|
"plugins/reload.rb",
|
58
58
|
"plugins/retard.rb",
|
59
59
|
"plugins/rs.rb",
|
60
|
+
"plugins/s.rb",
|
60
61
|
"plugins/shiningfinger.rb",
|
61
62
|
"plugins/shuffle.rb",
|
62
63
|
"plugins/sugei_inaka.rb",
|
@@ -90,6 +91,7 @@ Gem::Specification.new do |s|
|
|
90
91
|
s.add_runtime_dependency(%q<damerau-levenshtein>, [">= 0"])
|
91
92
|
s.add_runtime_dependency(%q<time_difference>, [">= 0"])
|
92
93
|
s.add_runtime_dependency(%q<pry>, [">= 0"])
|
94
|
+
s.add_runtime_dependency(%q<yahoofinance>, [">= 0"])
|
93
95
|
else
|
94
96
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
95
97
|
s.add_dependency(%q<rake>, [">= 0"])
|
@@ -99,6 +101,7 @@ Gem::Specification.new do |s|
|
|
99
101
|
s.add_dependency(%q<damerau-levenshtein>, [">= 0"])
|
100
102
|
s.add_dependency(%q<time_difference>, [">= 0"])
|
101
103
|
s.add_dependency(%q<pry>, [">= 0"])
|
104
|
+
s.add_dependency(%q<yahoofinance>, [">= 0"])
|
102
105
|
end
|
103
106
|
else
|
104
107
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
@@ -109,6 +112,7 @@ Gem::Specification.new do |s|
|
|
109
112
|
s.add_dependency(%q<damerau-levenshtein>, [">= 0"])
|
110
113
|
s.add_dependency(%q<time_difference>, [">= 0"])
|
111
114
|
s.add_dependency(%q<pry>, [">= 0"])
|
115
|
+
s.add_dependency(%q<yahoofinance>, [">= 0"])
|
112
116
|
end
|
113
117
|
end
|
114
118
|
|
data/plugins/s.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "json"
|
5
|
+
require "yahoofinance"
|
6
|
+
|
7
|
+
define_plugin("!s") do |msg|
|
8
|
+
quotes = YahooFinance::get_standard_quotes(msg)
|
9
|
+
string = quotes.map do |symbol, quote|
|
10
|
+
"#{symbol}: last #{quote.lastTrade}, change #{quote.change}, range #{quote.dayRange}"
|
11
|
+
end.join("; ")
|
12
|
+
reply(string)
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meimei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r888888888
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jeweler
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yahoofinance
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: If all you need is a simple infobot and don't need a full RFC1459 implementation.
|
126
140
|
email: r888888888@gmail.com
|
127
141
|
executables: []
|
@@ -170,6 +184,7 @@ files:
|
|
170
184
|
- plugins/reload.rb
|
171
185
|
- plugins/retard.rb
|
172
186
|
- plugins/rs.rb
|
187
|
+
- plugins/s.rb
|
173
188
|
- plugins/shiningfinger.rb
|
174
189
|
- plugins/shuffle.rb
|
175
190
|
- plugins/sugei_inaka.rb
|