lita-toutiao 0.1.0 → 0.1.1

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: ba9190c9fbf48555920ef0546972c255faf19205
4
- data.tar.gz: 27c47f98319e33be2e1c37909db15dae6baffd69
3
+ metadata.gz: 20e0aeffe14db56929032bc15fc7b0d437dafbc6
4
+ data.tar.gz: 3153bd76776afdf74444e10eeef8e4de9d96f9ff
5
5
  SHA512:
6
- metadata.gz: f753f4d9b32764b43d24d202d85d08634a516f8531e589d3df6d210ebbfcf00f1cb8866eaa3d7aaf1f86a514c3c962fc298d16631eb94527393f64d13579c1f7
7
- data.tar.gz: d8372b968cc95467988d7e23188dbd02671355e5cc110e81ca2461fa77e29832a02f90190d991dc867c0359e54dcb13e220f892636a5fe92462ff8de811454d0
6
+ metadata.gz: 9ce576b105666701c0b21faef00edfdc7655a97158a5a2d15405867d981dd728bb6d0aeb7e68b362c294b8c2e0e2f95a1204066efbf8d20490801f5e366ad196
7
+ data.tar.gz: 9153be9f9ec49dea7ebb2750a3436deab953aa6fe015322ff1fefee4fc4d86e6d1c48b9c83e8b812be5a47618e2a645e23a3d94dee83a4074f7eb2c094209125
@@ -5,7 +5,7 @@ module Lita
5
5
  class Toutiao < Handler
6
6
 
7
7
  route(/toutiao/, :fetch_toutiao, command: true, help: {
8
- "v2ex" => "display 10 hot posts of v2ex today"
8
+ "toutiao" => "Display develop posts from toutiao.io"
9
9
  })
10
10
 
11
11
  def fetch_toutiao response
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-toutiao"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["easonhan"]
5
5
  spec.email = ["nbkhic@qq.com"]
6
6
  spec.description = "Fetch everyday's develop news from toutiao.io"
@@ -6,6 +6,6 @@ describe Lita::Handlers::Toutiao, lita_handler: true do
6
6
  it 'should get content form toutiao' do
7
7
  send_command('toutiao')
8
8
  #puts replies.last
9
- expect(replies).not_to be_empty
9
+ expect(replies.last).to include('toutiao.io')
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-toutiao
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - easonhan