lita-bingo 0.2.4 → 0.2.5
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 +4 -4
- data/README.md +11 -2
- data/lita-bingo.gemspec +1 -1
- data/locales/en.yml +1 -1
- data/spec/lita/handlers/bingo/designer_spec.rb +6 -1
- data/spec/lita/handlers/bingo/engineer_spec.rb +6 -1
- data/spec/lita/handlers/bingo/overtime_spec.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94fba879fcce4a6cbc79dcd3d648e2d6994bc2dc
|
4
|
+
data.tar.gz: e123f3318c2e806bdbd9addf58dc5e75d2818f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8da8896fa08d65d6d5d8dcd55979798b8ca4828f0d84dd987d4deaf4027c7bb88ab8bc1968824e96df9ee536ab9fbed3cd78acd2a1d3f5f8499c84f08436409
|
7
|
+
data.tar.gz: e65d838d7f1e468a3ba63b99837fbd013a7fc87daab3700ef75b0e43e903294234dcf1b270231edd0f9827ce9243525982ce55652ae934af66810d539790ba4e
|
data/README.md
CHANGED
@@ -15,9 +15,9 @@ Add lita-bingo to your Lita instance's Gemfile:
|
|
15
15
|
``` ruby
|
16
16
|
gem "lita-bingo"
|
17
17
|
```
|
18
|
-
###
|
18
|
+
### Contributors
|
19
19
|
|
20
|
-
[Huei-Horng Yo](https://github.com/hiroshiyui)
|
20
|
+
- [Huei-Horng Yo](https://github.com/hiroshiyui)
|
21
21
|
|
22
22
|
### TO DO
|
23
23
|
|
@@ -26,3 +26,12 @@ gem "lita-bingo"
|
|
26
26
|
## License
|
27
27
|
|
28
28
|
[MIT](http://opensource.org/licenses/MIT)
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
+
5. Create new Pull Request
|
37
|
+
|
data/lita-bingo.gemspec
CHANGED
data/locales/en.yml
CHANGED
@@ -3,4 +3,9 @@ require "spec_helper"
|
|
3
3
|
describe Lita::Handlers::Bingo::Designer, lita_handler: true do
|
4
4
|
it { is_expected.to route_command("設計師").to(:designer) }
|
5
5
|
it { is_expected.to route_command("找designer").to(:designer) }
|
6
|
-
|
6
|
+
it "should return a random string" do
|
7
|
+
send_command("designer")
|
8
|
+
expect(replies.last).to be_an_instance_of(String)
|
9
|
+
expect(replies.last.length).to be >= 2
|
10
|
+
end
|
11
|
+
end
|
@@ -5,4 +5,9 @@ describe Lita::Handlers::Bingo::Engineer, lita_handler: true do
|
|
5
5
|
it { is_expected.to route_command("找工程師").to(:engineer) }
|
6
6
|
it { is_expected.to route_command("找engineer").to(:engineer) }
|
7
7
|
it { is_expected.to route_command("可以凹他嗎").to(:engineer) }
|
8
|
-
|
8
|
+
it "should return a random string" do
|
9
|
+
send_command("engineer")
|
10
|
+
expect(replies.last).to be_an_instance_of(String)
|
11
|
+
expect(replies.last.length).to be >= 2
|
12
|
+
end
|
13
|
+
end
|
@@ -2,4 +2,10 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Lita::Handlers::Bingo::Overtime, lita_handler: true do
|
4
4
|
it { is_expected.to route_command("我要加班了").to(:overtime) }
|
5
|
-
|
5
|
+
it { is_expected.to route_command("Overtime!").to(:overtime) }
|
6
|
+
it "should return a random string" do
|
7
|
+
send_command("overtime")
|
8
|
+
expect(replies.last).to be_an_instance_of(String)
|
9
|
+
expect(replies.last.length).to be >= 3
|
10
|
+
end
|
11
|
+
end
|