lita-onewheel-doc 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 960d720cc52d9f8e4faf0a54b95beb2760454e9a
4
- data.tar.gz: 354400a1f858a1df48459859cc11f6ee8d4cccd8
3
+ metadata.gz: ff06f1d01f4cf26548b22f9a90bb32d397f9b6d3
4
+ data.tar.gz: efbe2b7a3c3aa25a49adaf07b0ebb6c70f276233
5
5
  SHA512:
6
- metadata.gz: 88da5d4edc0fdc97d49b25fc84a2159b9a20940220054eb0f526ac457195252588563861ebeacd2f9036cca54391366cb78234bfbac8b770620e45b4a213653b
7
- data.tar.gz: a99ec6de36519fa707f848cb7fa675794f807a57c438f0494fae63c3afc82de4f361eacd46937bc8117210dcee7ca35f6bc1656f0b70cfc3e1fa206b26107cc5
6
+ metadata.gz: 0b42f22a3a7824c83a57aeeeb0f236885a43ff4abade5de921c0e8df0c21f232341f1f64d5eeae35a50a8e8be4699d5d1bbfa6541db4efa9493f6825c0a581af
7
+ data.tar.gz: ecd063a2ce9da871287cbba09b4877f95ec06f2b4eea0b58de307b2f9af7154c7260f5a35670d74f2e1d1c86e1e2a34b4fc0a5d54197c35f1c6dd89e7ec1c88f
@@ -30,12 +30,7 @@ module Lita
30
30
  def command_fetch_key(response)
31
31
  key = response.matches[0][0]
32
32
 
33
- reply = redis.hget(REDIS_KEY, key)
34
-
35
- # If we didn't find an exact key, perform a substring match
36
- if reply.nil?
37
- reply = get_values_that_start_with_key(key)
38
- end
33
+ reply = get_values_that_start_with_key(key)
39
34
  response.reply reply
40
35
  end
41
36
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-doc'
3
- spec.version = '1.0.1'
3
+ spec.version = '2.0.0'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Basic key/value store designed for http links.'
@@ -9,7 +9,7 @@ describe Lita::Handlers::OnewheelDoc, lita_handler: true do
9
9
  it 'gets a document' do
10
10
  send_command 'doc one http://one'
11
11
  send_command 'doc one'
12
- expect(replies.last).to eq('http://one')
12
+ expect(replies.last).to eq('one: http://one')
13
13
  end
14
14
 
15
15
  it 'lists documents' do
@@ -30,7 +30,7 @@ describe Lita::Handlers::OnewheelDoc, lita_handler: true do
30
30
  expect(replies.last).to eq('Document deleted: one')
31
31
  end
32
32
 
33
- it 'finds by parties key' do
33
+ it 'finds by partial key' do
34
34
  send_command 'doc pacone http://one'
35
35
  send_command 'doc pactwo http://two'
36
36
  send_command 'doc pac'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-10 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita