lita-corporate-bs-generator 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +4 -4
- data/README.md +3 -1
- data/lib/lita/handlers/corporate-bs-generator.rb +2 -2
- data/lita-corporate-bs-generator.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b4d8b0dd48503b6e9a9d5f18d3ac2248f6988b50dee31eb1dafbe654414e45b1
|
4
|
+
data.tar.gz: 055d921fd960a270ed22992c4aedd74622c5b4a870c0eddd0753a5d55259c35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d525921efe1e8bf3b2728fb050e7e7e480f64930601c5632a98619210b4bc4a520c06c0166f184b92ee2f24e7b88786effe4afab489d83b9817ce5150b415a42
|
7
|
+
data.tar.gz: e385bcb1dda3f5b2c9f8f80bbbcfbdc58d0c4a42d5c4a11d03046a64b5429d5e55d38b4a702237e150cf30ffa2a1fcee08a66731befb30029f595f5dbea32f17
|
data/Gemfile.lock
CHANGED
@@ -28,14 +28,14 @@ GEM
|
|
28
28
|
rb-readline (>= 0.5.1)
|
29
29
|
redis-namespace (>= 1.3.0)
|
30
30
|
thor (>= 0.18.1)
|
31
|
-
|
31
|
+
mini_portile2 (2.4.0)
|
32
32
|
multi_json (1.10.1)
|
33
33
|
multipart-post (2.0.0)
|
34
|
-
nokogiri (1.
|
35
|
-
|
34
|
+
nokogiri (1.10.4)
|
35
|
+
mini_portile2 (~> 2.4.0)
|
36
36
|
puma (2.11.1)
|
37
37
|
rack (>= 1.1, < 2.0)
|
38
|
-
rack (1.6.
|
38
|
+
rack (1.6.11)
|
39
39
|
rake (10.4.2)
|
40
40
|
rb-readline (0.5.2)
|
41
41
|
redis (3.2.1)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# lita-corporate-bs-generator
|
2
2
|
|
3
|
-
**lita-corporate-bs-generator** is a handler that will spew some arbitrary corporate garbage at you, taken from the ever-amazing http://
|
3
|
+
**lita-corporate-bs-generator** is a handler that will spew some arbitrary corporate garbage at you, taken from the ever-amazing http://pasta.phyrama.com:8083/cgi-bin/live.exe .
|
4
4
|
|
5
5
|
Inspired heavily by (more or less copy-pasted from) [lita-pugbomb](https://github.com/killpack/lita-pugbomb).
|
6
6
|
|
@@ -14,3 +14,5 @@ gem "lita-corporate-bs-generator"
|
|
14
14
|
### Usage
|
15
15
|
`Lita: corporate bs` - display some corporate garbage
|
16
16
|
|
17
|
+
`> Insights technically empower the stakeholders. A centralized brand pyramid structures global measures.`
|
18
|
+
|
@@ -6,13 +6,13 @@ module Lita
|
|
6
6
|
class CorporateBsGenerator < Handler
|
7
7
|
route(/\bcorporate bs( please)?/i, :bs, :command => true, :help => { "corporate bs (please)" => "Spew some corporate garbage" })
|
8
8
|
|
9
|
-
BASE_URL = "http://
|
9
|
+
BASE_URL = "http://pasta.phyrama.com:8083/cgi-bin/live.exe"
|
10
10
|
|
11
11
|
def bs(response)
|
12
12
|
if (some_bs = redis.lpop("corporate-bs-generator"))
|
13
13
|
response.reply some_bs
|
14
14
|
else
|
15
|
-
data = Nokogiri::HTML.parse(http.post("http://
|
15
|
+
data = Nokogiri::HTML.parse(http.post("http://pasta.phyrama.com:8083/cgi-bin/live.exe").body)
|
16
16
|
bs_list = data.xpath("//li").map(&:children).map { |x| x.text.strip }
|
17
17
|
redis.lpush("corporate-bs-generator", bs_list)
|
18
18
|
response.reply redis.lpop("corporate-bs-generator")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-corporate-bs-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hayworth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -114,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
|
118
|
-
rubygems_version: 2.4.5
|
117
|
+
rubygems_version: 3.0.6
|
119
118
|
signing_key:
|
120
119
|
specification_version: 4
|
121
120
|
summary: Lita handler to spout corporate bs
|