lita-bingo 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebc3b003d92b92953f735bea71fd3fe219d36bc8
4
- data.tar.gz: a2fb89bfaceeb4c19f4b70e3af6c214b1d831aab
3
+ metadata.gz: 94fba879fcce4a6cbc79dcd3d648e2d6994bc2dc
4
+ data.tar.gz: e123f3318c2e806bdbd9addf58dc5e75d2818f8a
5
5
  SHA512:
6
- metadata.gz: 97f776b1d9ae6b257a477d97ac5fa49a95066c064561f09884e8b403b40ea56854bfa6f8a57dc241a1a522e119c5ecae06c91b93f4ca32fd7152c0350f0e96e6
7
- data.tar.gz: 20fee194ff85f00c70c47c07dabcc9f332c573c82c4c522f3db66247d0107cb1edd0f0b6846b34a914cf50cf6ca51b828729ba38dd48210389426ff16c75a360
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
- ### Special Thanks
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
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-bingo"
3
- spec.version = "0.2.4"
3
+ spec.version = "0.2.5"
4
4
  spec.authors = ["Sammy Lin"]
5
5
  spec.email = ["sammylintw@gmail.com"]
6
6
  spec.description = %q{A Lita handler that random formats text}
@@ -16,4 +16,4 @@ en:
16
16
  oops:
17
17
  help:
18
18
  oops_key: "SAY 理由 or 出包 or oops"
19
- oops_value: "Radom Format TEXT using bingo"
19
+ oops_value: "Random Format TEXT using bingo"
@@ -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
- end
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
- end
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
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-bingo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sammy Lin