boty 0.1.1 → 0.1.2

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: a7102960a8cdaa6f3a18a7015c1338f2c62a28b7
4
- data.tar.gz: dfd326ea4c467506825ac473f47636682e366bab
3
+ metadata.gz: 232044d6e49a24255c5b5a554a6897ec473cdf1d
4
+ data.tar.gz: fe980e1c3d03a64200a8d62f2ac8fa52f616aab8
5
5
  SHA512:
6
- metadata.gz: bab25a32347e1c4e6cb9cc3b8f995fc4d971f094072ef6c5e54018e0d50b5fe37d8c86c9be5e4291a8e4c823cad802ffc2d8f86603a36141eed1ac4adfa7b0da
7
- data.tar.gz: fb8d9bfa67bcbf7f624b69dc4f7866e7280ccb3be1a655c7117a124f26147ab7002bec1ec1f6736154ac0a57d33173a0f1a4a50e81d707ac703655586328c007
6
+ metadata.gz: c3a0dac85b60abc7aa9c9e58dd2edc1942ced52d729c710ff22330d7d34526ba028c5a64a09b318fd9a715c2d468d4f0a53c1a751d1dfb44a34bbc844760ba59
7
+ data.tar.gz: 5ab990e551d97057bab55722c61971eae5dd855b75af806ad24d136eb826b8d6c4ef98e20985be4f70845f0861b5476a5b9516ba3a2e16bed6137d2709c2d648
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boty (0.1.1)
4
+ boty (0.1.2)
5
5
  eventmachine
6
6
  faraday
7
7
  faye-websocket
@@ -1,3 +1,3 @@
1
1
  module Boty
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,6 +6,7 @@ en:
6
6
  knows: "List all the commands known by this bot."
7
7
  pug_me: "Send some nice pug in the channel."
8
8
  pug_bomb: "Send X pugs in the channel."
9
+ pug_max: "wow! so many pugs! sending 5 instead."
9
10
  remember:
10
11
  command: "remember: [some stuff about you]"
11
12
  desc: "Instructs %{name} about something happening or about you."
@@ -6,6 +6,7 @@ pt-br:
6
6
  knows: "Lista os comandos conhecidos por esse bot."
7
7
  pug_me: "Manda um belo pug no canal."
8
8
  pug_bomb: "Manda X belos pugs no canal."
9
+ pug_max: "QUANTO PUG! É muito pug. Vou mandar só 5..."
9
10
  remember:
10
11
  command: "remember: [alguma coisa sobre você]"
11
12
  desc: "Ensina %{name} algo sobre você."
@@ -9,7 +9,7 @@ command(/pug bomb( \d+)?/i) do |count|
9
9
  count = (count || "5").strip
10
10
  if count.to_i > 5
11
11
  count = "5"
12
- say "wow! so many pugs! sendind 5 instead."
12
+ say I18n.t :"scripts.pug_max"
13
13
  end
14
14
  response = http.get "http://pugme.herokuapp.com/bomb", count: count
15
15
  response["pugs"].each do |pug| say "<#{pug}>" end
@@ -59,7 +59,7 @@ RSpec.describe "script/pug", :session do
59
59
  { "Content-Type" => "application/json;charset=utf-8" },
60
60
  { pugs: %w(1 2 3 4 5) }.to_json]
61
61
  end
62
- expect(bot).to receive(:say).with("wow! so many pugs! sendind 5 instead.")
62
+ expect(bot).to receive(:say).with("wow! so many pugs! sending 5 instead.")
63
63
  (1..5).each do |num|
64
64
  expect(bot).to receive(:say).with("<#{num}>")
65
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Valeriano