lita-ironio 0.1.0.pre.beta → 0.2.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lita/handlers/ironio.rb +1 -6
- data/lita-ironio.gemspec +1 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6d4dea78311482e9c9592c1da57ea4d5d5067ea
|
4
|
+
data.tar.gz: bbcbebfc5b00544aba2d63965b57c19ab3f541bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf03ee6cf8687e96a91c7b1d741830d8501ccbe98ec73714634df1e0035d5d0509b0231f8db34d34e1808e923acc655231e6a781848b98ec46331c1dfea9d07e
|
7
|
+
data.tar.gz: 4d38d0a6741ec90fc43af323c0d9cebd013f7c33c8b41051a3aecd40a07880ef6f4de5c511ad487eb15825d8acc12b17e6b7c01f80b19ac32e76226224df445b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# lita-ironio [![Gem Version](https://badge.fury.io/rb/lita-ironio.svg)](http://badge.fury.io/rb/lita-ironio)
|
2
2
|
|
3
|
-
**lita-ironio** is an handler for [Lita](https://www.lita.io) that gives your bot the power to interact with [Iron.io](https://iron.io)'s [IronWorker](http://www.iron.io/worker)
|
3
|
+
**lita-ironio** is an handler for [Lita](https://www.lita.io) that gives your bot the power to interact with [Iron.io](https://iron.io)'s [IronWorker](http://www.iron.io/worker) and [IronMQ](http://www.iron.io/mq).
|
4
4
|
|
5
5
|
TODO: Add a description of the plugin.
|
6
6
|
|
data/lib/lita/handlers/ironio.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'iron_worker_ng'
|
2
|
-
require 'iron_cache'
|
3
2
|
require 'iron_mq'
|
4
3
|
require 'lita/utils/factory'
|
5
4
|
|
@@ -18,12 +17,11 @@ module Lita
|
|
18
17
|
self.iron = nil
|
19
18
|
end
|
20
19
|
|
21
|
-
route /^ir(?:on)?\s(tasks|stacks|
|
20
|
+
route /^ir(?:on)?\s(tasks|stacks|schedules|queues|caches)$/i, :list, help: {
|
22
21
|
"iron tasks" => "list project tasks",
|
23
22
|
"iron stacks" => "list available stacks",
|
24
23
|
"iron codes" => "list project code packages",
|
25
24
|
"iron queues" => "list project queues",
|
26
|
-
"iron caches" => "list project caches"
|
27
25
|
}
|
28
26
|
|
29
27
|
route /^ir(?:on)?\s(tasks|stacks|codes|schedules|queues)?\s(.+)$/i, :get, help: {
|
@@ -65,15 +63,12 @@ module Lita
|
|
65
63
|
plugin = {
|
66
64
|
[:stacks, :tasks, :codes] => :worker,
|
67
65
|
[:queues] => :mq,
|
68
|
-
[:caches] => :cache
|
69
66
|
}.select {|k,v| k.include?(lib) }.values
|
70
67
|
case plugin.first
|
71
68
|
when :worker
|
72
69
|
self.class.iron ||= IronWorkerNG::Client.new({token: config.token, project_id: config.project_id})
|
73
70
|
when :mq
|
74
71
|
self.class.iron ||= IronMQ::Client.new({token: config.token, project_id: config.project_id})
|
75
|
-
when :cache
|
76
|
-
self.class.iron ||= IronCache::Client.new({token: config.token, project_id: config.project_id})
|
77
72
|
else
|
78
73
|
self.class.iron ||= IronWorkerNG::Client.new({token: config.token, project_id: config.project_id})
|
79
74
|
end
|
data/lita-ironio.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-ironio"
|
3
|
-
spec.version = "0.
|
3
|
+
spec.version = "0.2.0-beta"
|
4
4
|
spec.authors = ["Jurnell Cockhren"]
|
5
5
|
spec.email = ["jurnell.cockhren@sophicware.com"]
|
6
6
|
spec.description = "IronIO handler for Lita Bot"
|
@@ -16,7 +16,6 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.add_runtime_dependency "lita", "~> 4.3"
|
18
18
|
spec.add_runtime_dependency "iron_worker_ng", "~> 1.6"
|
19
|
-
spec.add_runtime_dependency "iron_cache", "~> 0"
|
20
19
|
spec.add_runtime_dependency "iron_mq", "~> 5.0"
|
21
20
|
|
22
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-ironio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.pre.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurnell Cockhren
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: iron_cache
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: iron_mq
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|