tweet_sanitizer 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: f81ed3decd1defa109db3cb5dcd3ff146b9d2377
4
- data.tar.gz: f788cc11a47f4ccbc626846f3977ca6170ea99f0
2
+ SHA256:
3
+ metadata.gz: 4c5714c30ff280753252d5c0a6bfe3365b329199edb2d670190d069e9ff7820b
4
+ data.tar.gz: 0157a784bc6b12391389d14a34a27f41b61805cefbbc272b2e3d1a1066e0fbe3
5
5
  SHA512:
6
- metadata.gz: d76f6708fdb977de53aa3f00155d4292203ffaa730a9828ec5af244b5539b4fef23e39e195f945f911383fbe10d0a0825662179be6d71b51dae129e3d6aa4551
7
- data.tar.gz: 365728cef1fe75877b00cff14e0a0ebbd0d088fecb1a0b51a3fa5654989ee5ce49867d3454b2c05f5a612754a63f8c2f3c972d85d5dac9e7356f20b9d4322aa1
6
+ metadata.gz: 18982482212aa7c854803a6770bb14b9d8990e9581fe7f3d27bc6896fd9645c6c408512d1b4e859d3c2c654095f7ce2ea7acb7e85686e542f49cdbdfb751f4d6
7
+ data.tar.gz: 6f82ab38dfdc1bcd8046d2cd1f4c8b28f239d5e5d4dd7f6d4a4af8c943d06a5a41e02d0ec2ab4129347dd610bb5cd203a60f9b9ef1c72bf851c022ea8757df48
@@ -0,0 +1,111 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.2
30
+ - ruby:2.3
31
+ - ruby:2.4
32
+ - ruby:2.5
33
+ - ruby:2.6
34
+ - ruby:2.7
35
+ - ruby:3.0
36
+ - rubylang/ruby:master-nightly-bionic
37
+ include:
38
+ - ruby: rubylang/ruby:master-nightly-bionic
39
+ allow_failures: "true"
40
+
41
+ steps:
42
+ - uses: actions/checkout@v2
43
+
44
+
45
+ - name: Cache vendor/bundle
46
+ uses: actions/cache@v1
47
+ id: cache_gem
48
+ with:
49
+ path: vendor/bundle
50
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
51
+ restore-keys: |
52
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
53
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
54
+
55
+ - name: bundle update
56
+ run: |
57
+ set -xe
58
+ bundle config path vendor/bundle
59
+ bundle update --jobs $(nproc) --retry 3
60
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
61
+
62
+ - name: Setup Code Climate Test Reporter
63
+ uses: aktions/codeclimate-test-reporter@v1
64
+ with:
65
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
66
+ command: before-build
67
+ if: matrix.ruby >= 'ruby:2.4'
68
+ continue-on-error: true
69
+
70
+ - name: Run test
71
+ run: |
72
+ set -xe
73
+ bundle exec rspec
74
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
75
+
76
+ - name: Teardown Code Climate Test Reporter
77
+ uses: aktions/codeclimate-test-reporter@v1
78
+ with:
79
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
80
+ command: after-build
81
+ if: matrix.ruby >= 'ruby:2.4' && always()
82
+ continue-on-error: true
83
+
84
+ - name: Slack Notification (not success)
85
+ uses: lazy-actions/slatify@master
86
+ if: "! success()"
87
+ continue-on-error: true
88
+ with:
89
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
90
+ type: ${{ job.status }}
91
+ icon_emoji: ":octocat:"
92
+ url: ${{ secrets.SLACK_WEBHOOK }}
93
+ token: ${{ secrets.GITHUB_TOKEN }}
94
+
95
+ notify:
96
+ needs:
97
+ - test
98
+
99
+ runs-on: ubuntu-latest
100
+
101
+ steps:
102
+ - name: Slack Notification (success)
103
+ uses: lazy-actions/slatify@master
104
+ if: always()
105
+ continue-on-error: true
106
+ with:
107
+ job_name: '*build*'
108
+ type: ${{ job.status }}
109
+ icon_emoji: ":octocat:"
110
+ url: ${{ secrets.SLACK_WEBHOOK }}
111
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/sue445/tweet_sanitizer/compare/v0.2.0...master)
2
+ [full changelog](https://github.com/sue445/tweet_sanitizer/compare/v0.2.1...master)
3
+
4
+ ## v0.2.1
5
+ [full changelog](https://github.com/sue445/tweet_sanitizer/compare/v0.2.0...v0.2.1)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/tweet_sanitizer/pull/32
3
9
 
4
10
  ## v0.2.0
5
11
  [full changelog](https://github.com/sue445/tweet_sanitizer/compare/v0.1.1...v0.2.0)
data/Gemfile CHANGED
@@ -4,3 +4,10 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in tweet_sanitizer.gemspec
6
6
  gemspec
7
+
8
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
9
+ group :test do
10
+ # NOTE: unparser v0.3.0+ requires Ruby 2.5+
11
+ gem "unparser", "< 0.3.0"
12
+ end
13
+ end
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # TweetSanitizer
2
2
  [![Gem Version](https://badge.fury.io/rb/tweet_sanitizer.svg)](https://badge.fury.io/rb/tweet_sanitizer)
3
- [![Build Status](https://travis-ci.org/sue445/tweet_sanitizer.svg?branch=master)](https://travis-ci.org/sue445/tweet_sanitizer)
3
+ [![Build Status](https://github.com/sue445/tweet_sanitizer/workflows/test/badge.svg?branch=master)](https://github.com/sue445/tweet_sanitizer/actions?query=workflow%3Atest)
4
4
  [![Code Climate](https://codeclimate.com/github/sue445/tweet_sanitizer.png)](https://codeclimate.com/github/sue445/tweet_sanitizer)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/sue445/tweet_sanitizer/badge.svg?branch=master)](https://coveralls.io/github/sue445/tweet_sanitizer?branch=master)
6
- [![Dependency Status](https://gemnasium.com/badges/github.com/sue445/tweet_sanitizer.svg)](https://gemnasium.com/github.com/sue445/tweet_sanitizer)
7
6
 
8
7
  This is extension of [twitter](https://github.com/sferik/twitter). Sanitize `Twitter::Tweet#text`
9
8
 
@@ -1,3 +1,3 @@
1
1
  module TweetSanitizer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/tweet_sanitizer"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.required_ruby_version = ">= 2.1.0"
18
23
 
19
24
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -25,13 +30,13 @@ Gem::Specification.new do |spec|
25
30
 
26
31
  spec.add_dependency "twitter"
27
32
 
28
- spec.add_development_dependency "bundler", "~> 1.15"
29
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
33
+ spec.add_development_dependency "bundler", ">= 1.15"
30
34
  spec.add_development_dependency "coveralls"
31
35
  spec.add_development_dependency "dotenv"
32
36
  spec.add_development_dependency "pry-byebug"
33
- spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_development_dependency "rake", ">= 10.0"
34
38
  spec.add_development_dependency "rspec", "~> 3.0"
35
39
  spec.add_development_dependency "rspec-parameterized"
36
40
  spec.add_development_dependency "simplecov"
41
+ spec.add_development_dependency "unparser", ">= 0.4.5"
37
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tweet_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-03 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
@@ -28,30 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.15'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.15'
41
- - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: coveralls
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +84,14 @@ dependencies:
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - "~>"
87
+ - - ">="
102
88
  - !ruby/object:Gem::Version
103
89
  version: '10.0'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - "~>"
94
+ - - ">="
109
95
  - !ruby/object:Gem::Version
110
96
  version: '10.0'
111
97
  - !ruby/object:Gem::Dependency
@@ -150,6 +136,20 @@ dependencies:
150
136
  - - ">="
151
137
  - !ruby/object:Gem::Version
152
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: unparser
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 0.4.5
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 0.4.5
153
153
  description: sanitize tweet
154
154
  email:
155
155
  - sue445@sue445.net
@@ -159,9 +159,9 @@ extra_rdoc_files: []
159
159
  files:
160
160
  - ".coveralls.yml"
161
161
  - ".env.example"
162
+ - ".github/workflows/test.yml"
162
163
  - ".gitignore"
163
164
  - ".rspec"
164
- - ".travis.yml"
165
165
  - CHANGELOG.md
166
166
  - Gemfile
167
167
  - LICENSE.txt
@@ -176,8 +176,12 @@ files:
176
176
  homepage: https://github.com/sue445/tweet_sanitizer
177
177
  licenses:
178
178
  - MIT
179
- metadata: {}
180
- post_install_message:
179
+ metadata:
180
+ homepage_uri: https://github.com/sue445/tweet_sanitizer
181
+ source_code_uri: https://github.com/sue445/tweet_sanitizer
182
+ changelog_uri: https://github.com/sue445/tweet_sanitizer/blob/master/CHANGELOG.md
183
+ rubygems_mfa_required: 'true'
184
+ post_install_message:
181
185
  rdoc_options: []
182
186
  require_paths:
183
187
  - lib
@@ -192,9 +196,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
196
  - !ruby/object:Gem::Version
193
197
  version: '0'
194
198
  requirements: []
195
- rubyforge_project:
196
- rubygems_version: 2.6.11
197
- signing_key:
199
+ rubygems_version: 3.2.22
200
+ signing_key:
198
201
  specification_version: 4
199
202
  summary: sanitize tweet
200
203
  test_files: []
data/.travis.yml DELETED
@@ -1,27 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.1
5
- - 2.2
6
- - 2.3
7
- - 2.4.1
8
- - ruby-head
9
- bundler_args: "--jobs=2"
10
- cache: bundler
11
- before_install: gem install bundler -v 1.15.3
12
- before_script:
13
- - export CODECLIMATE_REPO_TOKEN=b275edefb84b9adf2e55846adb2c2649072895873f85eacafff3cb9a31aec846
14
- - export CI=true
15
- script:
16
- - bundle exec rspec
17
- - bundle exec codeclimate-test-reporter
18
- branches:
19
- only:
20
- - master
21
- notifications:
22
- email: false
23
- slack:
24
- secure: Sv+kslA+VVRafEOYfWVM7f+9Tryw+OKFdyqLOodduDexNoLedeqCqYSASJsw33vxgSGhRnWgcCHLzpLdK211bn6H6q3JgKKJQdO9Zxci7iftqn2lXiltL8EdIIHreW7qKYUJhWeM0CCpdLD7R8IGvPv7HbWko2g3JRYqmAmPMBZBU99uX0Sa0pWirEGAY7asqbz4yU2ugCEIRiD5/Ao9y8AltTn4r7m3puIKgm/3WhjJJtasWZFohFf3d/QEybefYoTcEOmRK3WI1yeRC2t0fK55yOLRgndUggSz1DSIad+f+PeyaTG24ErmkaxfGg086OIT8fB/39UNqrxC9xIMWGKLF0g2Xb09JrnvZbl9QVhdTqre/jbaflsQLanSd/nGA3f1uXk/QESL7zYz1qxgXkcREmrQxrZ0yC11L7Xz6nqigkAt/V5/zRM2LOuYBEO+d4hPHAO7IJMyLfppPd8P07QAW9jSmYoDIRqmZfKz/hQ2aUlubc5D64VcLECgbtMUbj6mOEVl4H8ygAJvBOkrx4gJGEU5YxMDDRJt3yAb8VD7Ek2fw5ovLFqkNTp+a8TjksGTA2s2vpNE1dnDhJb6OrCgQNC8hkFkkVhV1V5a0bNuJE+lybErzWzaT/y8YSCCcY8FCytOZOs63zfIWqCDLjJq9/juThUx3hKndYXtc70=
25
- matrix:
26
- allow_failures:
27
- - rvm: ruby-head