meimei 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +2 -0
  4. data/VERSION +1 -1
  5. data/meimei.gemspec +6 -2
  6. data/plugins/s.rb +13 -0
  7. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc878b66e5e93460cc7cd57452731f5ba8316744
4
- data.tar.gz: c537ed11cf862d8ddfedc7e5d627c07f063aaad9
3
+ metadata.gz: 624e0d6095b542cb8662542c749e1f4441cc6590
4
+ data.tar.gz: dce2d507841260446ad992aa7ee0c1aba59bd861
5
5
  SHA512:
6
- metadata.gz: 146ff41a9820a2477e6b75fe4885d443ba7ad0b70fb565d91031fc63df23cacafc05cf0a5ba4b2b5aef9aa297f4897e6551be43e763f465aa5fb89f646939692
7
- data.tar.gz: 3725e2c4a3624596dbd97099c510a604d59987b6f52fb5c1ea3419a59e5aa4f6db2e011e18a9309d11eabd8dc6ea4b63e3559291e26f91cebc5096a4479d1b89
6
+ metadata.gz: 3d956faaa5a9cda9c0830a0e43f96062fc2f2545eaf419f82c1572baaede0bf02a76914b0b5f17b279f14ba4865a126396a434def348f2004b9914d92c24fedb
7
+ data.tar.gz: 9b0ac9cdf0e4ea43ca539d05929de45b07ecff8f7e492f86aac6dfffed28fef2bd10dac2200bd054cfeef526fb969c60fae93e40de2b1d5c51e9ccdf7b7f16fe
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ gem 'nokogiri'
7
7
  gem 'json'
8
8
  gem 'damerau-levenshtein'
9
9
  gem 'time_difference'
10
- gem 'pry'
10
+ gem 'pry'
11
+ gem 'yahoofinance'
data/Gemfile.lock CHANGED
@@ -72,6 +72,7 @@ GEM
72
72
  activesupport
73
73
  tzinfo (1.2.2)
74
74
  thread_safe (~> 0.1)
75
+ yahoofinance (1.2.2)
75
76
 
76
77
  PLATFORMS
77
78
  ruby
@@ -85,6 +86,7 @@ DEPENDENCIES
85
86
  rake
86
87
  rdoc
87
88
  time_difference
89
+ yahoofinance
88
90
 
89
91
  BUNDLED WITH
90
92
  1.10.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.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.5.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 = "2015-09-21"
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.5.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: 2015-09-21 00:00:00.000000000 Z
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