lita-envy 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lita-envy.gemspec +1 -1
- data/locales/en.yml +5 -5
- data/spec/lita/handlers/envy_spec.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3382a49b02d8bf9ab3f5190529787667d975f304
|
4
|
+
data.tar.gz: e7f324873cc380a1eb6ae908a43b7744d8e60598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b6951c27d82a1a682ca068866be89587a3a20bda2b5c1119247725a90b23727c6675b9a0cbdb61ced6d679a26b5347e213fe20fc86a2f784a44cf3ed0615365
|
7
|
+
data.tar.gz: 866d4e082ff358e748174f1192a037e6b24587e00e305a309bc12e1caa1cb61473f143bcf10440b8e0f516fd8472e3f315297e106e103827501f0a20efae7141
|
data/lita-envy.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-envy"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.7"
|
4
4
|
spec.authors = ["Ingo Weiss"]
|
5
5
|
spec.email = ["ingo@ingoweiss.com"]
|
6
6
|
spec.description = "Helps with management of environment ussage. Adds commands for claiming and releasing environments"
|
data/locales/en.yml
CHANGED
@@ -3,24 +3,24 @@ en:
|
|
3
3
|
handlers:
|
4
4
|
envy:
|
5
5
|
claim_environment:
|
6
|
-
success:
|
6
|
+
success: It's all yours!
|
7
7
|
failure:
|
8
8
|
env_in_use_by_user: "Hmm, you are already using %{env_id}"
|
9
9
|
env_in_use_by_other_user: "Hmm, %{env_id} is currently in use by %{user}"
|
10
10
|
release_environment:
|
11
|
-
success:
|
11
|
+
success: Thanks!
|
12
12
|
failure:
|
13
13
|
env_unknown: "Hmm, I do not know about %{env_id}"
|
14
14
|
env_not_in_use_by_user: "Hmm, you are not currently using %{env_id}"
|
15
15
|
env_in_use_by_other_user: "Hmm, you are not currently using %{env_id} (%{user} is)"
|
16
16
|
forget_environment:
|
17
|
-
success:
|
17
|
+
success: Poof! It's gone!
|
18
18
|
failure:
|
19
19
|
env_unknown: "Hmm, I do not know about %{env_id}"
|
20
20
|
env_in_use_by_user: "Hmm, you are currently using %{env_id}"
|
21
21
|
env_in_use_by_other_user: "Hmm, %{env_id} is currently in use by %{user}"
|
22
22
|
claim_used_environment:
|
23
|
-
success:
|
23
|
+
success: It's all yours!
|
24
24
|
failure:
|
25
25
|
env_unknown: "Hmm, I do not know about %{env_id}"
|
26
26
|
env_not_in_use: "Hmm, %{env_id} is not currently in use"
|
@@ -28,5 +28,5 @@ en:
|
|
28
28
|
env_in_use_by_user_other_than_specified_one: "Hmm, %{env_id} is currently in use by %{user}, not %{specified_user}"
|
29
29
|
list_environments:
|
30
30
|
failure:
|
31
|
-
no_environments: "I do not know about any environments yet"
|
31
|
+
no_environments: "Hmm, I do not know about any environments yet"
|
32
32
|
|
@@ -32,7 +32,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
32
32
|
|
33
33
|
it "should reply with confirmation" do
|
34
34
|
send_command('claim ENV123')
|
35
|
-
expect(replies.first).to eq("
|
35
|
+
expect(replies.first).to eq("It's all yours!")
|
36
36
|
end
|
37
37
|
|
38
38
|
end
|
@@ -51,7 +51,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
51
51
|
|
52
52
|
it "should reply with confirmation" do
|
53
53
|
send_command('claim ENV123')
|
54
|
-
expect(replies.first).to eq("
|
54
|
+
expect(replies.first).to eq("It's all yours!")
|
55
55
|
end
|
56
56
|
|
57
57
|
end
|
@@ -117,7 +117,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
117
117
|
it "should reply with confirmation" do
|
118
118
|
alicia = Lita::User.create(123, name: "Alicia")
|
119
119
|
send_command('release ENV234', :as => alicia)
|
120
|
-
expect(replies.first).to eq("
|
120
|
+
expect(replies.first).to eq("Thanks!")
|
121
121
|
end
|
122
122
|
|
123
123
|
end
|
@@ -209,7 +209,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
209
209
|
|
210
210
|
it "should respond with notification" do
|
211
211
|
send_command('envs')
|
212
|
-
expect(replies.first).to eq("I do not know about any environments yet")
|
212
|
+
expect(replies.first).to eq("Hmm, I do not know about any environments yet")
|
213
213
|
end
|
214
214
|
|
215
215
|
end
|
@@ -231,7 +231,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
231
231
|
|
232
232
|
it "should confirm" do
|
233
233
|
send_command('forget ENV345')
|
234
|
-
expect(replies.first).to eq("
|
234
|
+
expect(replies.first).to eq("Poof! It's gone!")
|
235
235
|
end
|
236
236
|
|
237
237
|
end
|
@@ -306,7 +306,7 @@ describe Lita::Handlers::Envy, lita_handler: true do
|
|
306
306
|
|
307
307
|
it "should reply with confirmation" do
|
308
308
|
send_command('wrestle ENV123 from Alicia')
|
309
|
-
expect(replies.first).to eq("
|
309
|
+
expect(replies.first).to eq("It's all yours!")
|
310
310
|
end
|
311
311
|
|
312
312
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-envy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingo Weiss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|