lita-espn-fantasy-football 0.3.2 → 0.3.3

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: 2f088a8806af8d7d4a7c30a3088ac55bf76ca81e
4
- data.tar.gz: 8f117b5d941e0ac0e28c01e579fbe3a1f9c8cd4b
3
+ metadata.gz: b638b658162f5cccc785215bafd772f3fc6a3e6f
4
+ data.tar.gz: 483b50ef3753316258aab8f79cd61a027cd6958a
5
5
  SHA512:
6
- metadata.gz: 87bc09e8efd823d0ec45a6ad02f4cec0adc9cf019384d6575b6710a378867193cdd973fdb57ed27d3d1c6a8efe94b4a9590b841a1a36f401c53d08bd38af126d
7
- data.tar.gz: 524075e9d54783851320fc9f88dec27eb9924519f55f6bcc16dee43622ca3ab8c3cbe5ff49c9b2ec28a11de5c6d30af14cdef9f2bc3172dea2e3faf45d2ff7cf
6
+ metadata.gz: b4d0a0f1e5629ce004b8f480a511fed7629db0f9bcbce965dd8ec8dc0ca2144e56e9762addb4e2932077a12744a39803c8b04a56d85a79f1fe7a82ac07254056
7
+ data.tar.gz: ecbe1a34aad2404419473ee19d2b916fe9a46920ec71de304078c363f67048ef83629b6a4435f299ccbc468aac19c8f55bd2f6c5c8cf02512c0dbfd9b84d33e9
@@ -1,21 +1,22 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-09-06 11:34:06 -0500 using RuboCop version 0.49.1.
3
+ # on 2017-09-14 12:37:43 -0500 using RuboCop version 0.49.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
9
  # Offense count: 1
10
- Lint/UselessAssignment:
10
+ # Cop supports --auto-correct.
11
+ Layout/LeadingCommentSpace:
11
12
  Exclude:
12
- - 'lib/lita/handlers/espn_fantasy_football.rb'
13
+ - 'lita_config.rb'
13
14
 
14
15
  # Offense count: 5
15
16
  Metrics/AbcSize:
16
- Max: 70
17
+ Max: 72
17
18
 
18
- # Offense count: 2
19
+ # Offense count: 3
19
20
  # Configuration parameters: CountComments, ExcludedMethods.
20
21
  Metrics/BlockLength:
21
22
  Max: 28
@@ -23,9 +24,9 @@ Metrics/BlockLength:
23
24
  # Offense count: 1
24
25
  # Configuration parameters: CountComments.
25
26
  Metrics/ClassLength:
26
- Max: 206
27
+ Max: 210
27
28
 
28
- # Offense count: 1
29
+ # Offense count: 2
29
30
  Metrics/CyclomaticComplexity:
30
31
  Max: 8
31
32
 
@@ -34,7 +35,7 @@ Metrics/CyclomaticComplexity:
34
35
  Metrics/MethodLength:
35
36
  Max: 48
36
37
 
37
- # Offense count: 1
38
+ # Offense count: 2
38
39
  Metrics/PerceivedComplexity:
39
40
  Max: 9
40
41
 
@@ -264,6 +264,11 @@ module Lita
264
264
  .gsub(/(\S+\straded)/, ':revolving_hearts: \\1')
265
265
  .gsub(/(\S+\sdrafted)/, ':heavy_plus_sign: \\1')
266
266
  end
267
+ elsif type == 'Trophy Assigned'
268
+ # subtype has more info in it than detail alone
269
+ events = [
270
+ "#{subtype.gsub(/.*(awarded to)/, ':trophy: \\1')} — #{detail}"
271
+ ]
267
272
  end
268
273
 
269
274
  resp << events.join("\n")
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'lita-espn-fantasy-football'
3
- s.version = '0.3.2'
3
+ s.version = '0.3.3'
4
4
  s.authors = ['Kevin Reedy', 'Miles Evenson']
5
5
  s.email = ['kevinreedy@gmail.com', 'miles.evenson@gmail.com']
6
6
  s.description = 'Lita handler for ESPN Fantasy Football'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-espn-fantasy-football
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Reedy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-06 00:00:00.000000000 Z
12
+ date: 2017-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lita