brutalismbot 1.4.1 → 1.4.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
  SHA256:
3
- metadata.gz: a72b1c4d21abcea336cc4b366d6a0b1a9761e5b6d90c19ae57682e8f39cbb226
4
- data.tar.gz: 13c8672fa5d6461e22e625d97a244d4bdfd8041ad790b85e14416e89bfa045c7
3
+ metadata.gz: dc1ba11c168e37902b3ea59200a059f5ae7e190956a638e9abbdd09d917a73db
4
+ data.tar.gz: 18023af36fe5d70d116456997d1294fa4c8f0dcb250904d5c10f50b04d7b14c4
5
5
  SHA512:
6
- metadata.gz: fb7938216e02a6e542d57266c446a9c5d184f1a2285e02193be82e45cc8164945bd8313997dc71bcd50dfeceee6e68c59e6fd313499fa4d1897290647e16d3d4
7
- data.tar.gz: 870d89f7f3cfde5d353dd2b3fdf99856a726ca3187ab8866732bbe99e8252e93b5fa6b732c9aa897fa707835d62554813a04ce5f338cc3bd6390e6b4b062c236
6
+ metadata.gz: 2c76e0bd05b3988dfec3d775565225753cdef53278b18d0ed62e7a62905d4733bb4191f5bdbbdd0b21f7d8d82decb70333fba2686eba986b286d52aec4542c42
7
+ data.tar.gz: 5f91106efcf53fafc4a3827fa1086a23765e97fca686c23aaa8ac8bb92d4f9758868a06691a6992ef8e8a0148424134523d9fec32f96612befda9f6033ad8f11
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <img alt="brutalismbot" src="https://brutalismbot.com/banner.png"/>
2
2
 
3
- [![Build Status](https://travis-ci.com/brutalismbot/gem.svg)](https://travis-ci.com/brutalismbot/gem)
3
+ [![rspec](https://github.com/brutalismbot/gem/workflows/rspec/badge.svg)](https://github.com/brutalismbot/gem/actions)
4
4
  [![Gem Version](https://badge.fury.io/rb/brutalismbot.svg)](http://badge.fury.io/rb/brutalismbot)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/83275cbdbf10f9fd2df7/test_coverage)](https://codeclimate.com/github/brutalismbot/gem/test_coverage)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/83275cbdbf10f9fd2df7/maintainability)](https://codeclimate.com/github/brutalismbot/gem/maintainability)
@@ -114,7 +114,9 @@ module Brutalismbot
114
114
  end
115
115
 
116
116
  def to_twitter
117
- [title, permalink].join("\n")
117
+ max = 280 - permalink.length - 1
118
+ text = title.length <= max ? title : "#{title[0...max - 1]}…"
119
+ [text, permalink].join("\n")
118
120
  end
119
121
 
120
122
  def url
@@ -1,3 +1,3 @@
1
1
  module Brutalismbot
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brutalismbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Mancevice
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.2'
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.2'
26
+ version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk-s3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.12'
75
+ version: '0.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.12'
82
+ version: '0.13'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - "<"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.16'
117
+ version: '0.18'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - "<"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.16'
124
+ version: '0.18'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement