lita-boardgamegeek 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 +4 -4
- data/README.md +3 -6
- data/lib/lita/handlers/boardgamegeek.rb +4 -1
- data/lita-boardgamegeek.gemspec +1 -1
- metadata +3 -4
- data/Vagrantfile +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c04af9a8129a1af69bfdcb337832ec5889f7b7fb
|
4
|
+
data.tar.gz: 464bcb1acb1ef42654a9acd759fce4c77aedd071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27c8da77ef33752efe8aee7bc379301efa45aefd5c441e215ae0514a69ba1d074592da4d7eb199d74912b34b74cfbe0bf1342d2244f32ea80e02bd705b473fdf
|
7
|
+
data.tar.gz: 7ae362a19818017528f17530187015ae4cbdd34b5cb45078874e3ed31017532b8c701a759ff71c283f2759b7a8b78e36ae83279a6b03e2ab9a9018d628aedd70
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# lita-boardgamegeek
|
2
2
|
|
3
|
-
|
3
|
+
Get a link to BGG entry for a game
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -10,10 +10,7 @@ Add lita-boardgamegeek to your Lita instance's Gemfile:
|
|
10
10
|
gem "lita-boardgamegeek"
|
11
11
|
```
|
12
12
|
|
13
|
-
## Configuration
|
14
|
-
|
15
|
-
TODO: Describe any configuration attributes the plugin exposes.
|
16
|
-
|
17
13
|
## Usage
|
18
14
|
|
19
|
-
|
15
|
+
lita bgg agricola
|
16
|
+
lita bgg me agricola
|
@@ -3,7 +3,10 @@ require 'bgg-api'
|
|
3
3
|
module Lita
|
4
4
|
module Handlers
|
5
5
|
class Boardgamegeek < Handler
|
6
|
-
route(/bgg(?: me)?\s+(.+)/, :search, command: true
|
6
|
+
route(/bgg(?: me)?\s+(.+)/, :search, command: true, help: {
|
7
|
+
"bgg GAME" => "returns link to BGG entry for GAME",
|
8
|
+
"bgg me GAME" => "returns link to BGG entry for GAME"
|
9
|
+
})
|
7
10
|
|
8
11
|
def search(response)
|
9
12
|
term = response.match_data[1]
|
data/lita-boardgamegeek.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-boardgamegeek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Chalfant
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- LICENSE
|
123
123
|
- README.md
|
124
124
|
- Rakefile
|
125
|
-
- Vagrantfile
|
126
125
|
- lib/lita-boardgamegeek.rb
|
127
126
|
- lib/lita/handlers/boardgamegeek.rb
|
128
127
|
- lita-boardgamegeek.gemspec
|
@@ -151,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
150
|
version: '0'
|
152
151
|
requirements: []
|
153
152
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.4.6
|
155
154
|
signing_key:
|
156
155
|
specification_version: 4
|
157
156
|
summary: lita handler for boardgamegeek searches
|
data/Vagrantfile
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
# vi: set ft=ruby :
|
3
|
-
|
4
|
-
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
-
VAGRANTFILE_API_VERSION = "2"
|
6
|
-
|
7
|
-
REQUIRED_PLUGINS = %w(vagrant-vbguest)
|
8
|
-
exit unless REQUIRED_PLUGINS.all? do |plugin|
|
9
|
-
Vagrant.has_plugin?(plugin) || (
|
10
|
-
puts "The #{plugin} plugin is required. Please install it with:"
|
11
|
-
puts "$ vagrant plugin install #{plugin}"
|
12
|
-
false
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
17
|
-
config.ssh.forward_agent = true
|
18
|
-
config.vm.box = "litaio/development-environment"
|
19
|
-
config.vm.hostname = "lita-dev"
|
20
|
-
config.vm.network "forwarded_port", guest: 8080, host: 8080
|
21
|
-
end
|