lolcommits-twitter 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -18
- data/CHANGELOG.md +12 -4
- data/README.md +11 -1
- data/lib/lolcommits/plugin/twitter.rb +2 -0
- data/lib/lolcommits/twitter.rb +2 -0
- data/lib/lolcommits/twitter/client.rb +2 -0
- data/lib/lolcommits/twitter/version.rb +3 -1
- data/lolcommits-twitter.gemspec +9 -11
- data/test/lolcommits/plugin/twitter_test.rb +2 -0
- data/test/test_helper.rb +2 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19972629f8a661669c7ab25899eab5d3091fb48997634beeef854a9729c3b5ea
|
4
|
+
data.tar.gz: 952c38f31cb81af9c8602dfefea18a368915a96421fbbc6edc80ac1607504927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0966cd6a608c45ec1af1221ad09916682c590e8134fb5bca182ce52a093f9cddb1be26ca3ec5820da489d591c11890b11d03036e690aa21cf91b7b93d227934
|
7
|
+
data.tar.gz: b798641a76345f4b75cb3fe04bfa9828824b4ac4e6a0ebc58ced33458575ec067bd762a35c94e8c2841357472172bf79c9a4fc74ac1a3d5738d2db2b6ec2c81d
|
data/.travis.yml
CHANGED
@@ -2,31 +2,28 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
-
|
10
|
-
- ruby-head
|
5
|
+
- 2.3.8
|
6
|
+
- 2.4.6
|
7
|
+
- 2.5.5
|
8
|
+
- 2.6.3
|
9
|
+
- ruby-head
|
11
10
|
|
12
11
|
before_install:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- git config --global user.email "lol@commits.org"
|
17
|
-
- git config --global user.name "Lolcommits"
|
12
|
+
- git --version
|
13
|
+
- git config --global user.email "lol@commits.org"
|
14
|
+
- git config --global user.name "Lolcommits"
|
18
15
|
|
19
16
|
matrix:
|
20
17
|
allow_failures:
|
21
|
-
|
18
|
+
- rvm: ruby-head
|
22
19
|
|
23
20
|
env:
|
24
21
|
global:
|
25
|
-
|
26
|
-
|
22
|
+
- CC_TEST_REPORTER_ID=d05d34f48230381d001225814f03f19b92c757fa9b795a7f5b16a17ebd027ee8
|
23
|
+
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
|
27
24
|
before_script:
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
26
|
+
- chmod +x ./cc-test-reporter
|
27
|
+
- ./cc-test-reporter before-build - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
|
31
28
|
after_script:
|
32
|
-
|
29
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/CHANGELOG.md
CHANGED
@@ -2,13 +2,20 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
The format is based on [Keep a Changelog]
|
6
|
-
adheres to [Semantic Versioning]
|
5
|
+
The format is based on [Keep a Changelog][KeepAChangelog] and this project
|
6
|
+
adheres to [Semantic Versioning][Semver].
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
10
|
- Your contribution here!
|
11
11
|
|
12
|
+
## [0.2.0] - 2019-04-24
|
13
|
+
### Removed
|
14
|
+
- Support for Ruby < 2.3 (older rubies no longer supported)
|
15
|
+
|
16
|
+
### Added
|
17
|
+
- `frozen_string_literal: true` to all ruby files
|
18
|
+
|
12
19
|
## [0.1.1] - 2018-05-24
|
13
20
|
### Changed
|
14
21
|
- Updated gemspec meta data links.
|
@@ -46,7 +53,8 @@ adheres to [Semantic Versioning](Semver).
|
|
46
53
|
### Changed
|
47
54
|
- Initial release
|
48
55
|
|
49
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.
|
56
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.2.0...HEAD
|
57
|
+
[0.2.0]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.1.1...v0.2.0
|
50
58
|
[0.1.1]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.1.0...v0.1.1
|
51
59
|
[0.1.0]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.0.6...v0.1.0
|
52
60
|
[0.0.6]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.0.5...v0.0.6
|
@@ -54,6 +62,6 @@ adheres to [Semantic Versioning](Semver).
|
|
54
62
|
[0.0.4]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.0.3...v0.0.4
|
55
63
|
[0.0.3]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.0.2...v0.0.3
|
56
64
|
[0.0.2]: https://github.com/lolcommits/lolcommits-twitter/compare/v0.0.1...v0.0.2
|
57
|
-
[0.0.1]: https://github.com/lolcommits/lolcommits-twitter/compare/
|
65
|
+
[0.0.1]: https://github.com/lolcommits/lolcommits-twitter/compare/e064e4c...v0.0.1
|
58
66
|
[KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
|
59
67
|
[Semver]: http://semver.org/spec/v2.0.0.html
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ auto-open the tweet in your default browser.
|
|
18
18
|
|
19
19
|
## Requirements
|
20
20
|
|
21
|
-
* Ruby >= 2.
|
21
|
+
* Ruby >= 2.3
|
22
22
|
* A webcam
|
23
23
|
* [ImageMagick](http://www.imagemagick.org)
|
24
24
|
* [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
|
@@ -100,6 +100,16 @@ Covenant](http://contributor-covenant.org) code of conduct. See
|
|
100
100
|
[here](https://github.com/lolcommits/lolcommits-twitter/blob/master/CODE_OF_CONDUCT.md)
|
101
101
|
for more details.
|
102
102
|
|
103
|
+
## TODO
|
104
|
+
|
105
|
+
- [ ] Refactor Client to include Request/Response classes (see twitter gem approach)
|
106
|
+
- [ ] Tests for Client lib classes
|
107
|
+
- [ ] Tests for Plugin class (port tests from lolcommits)
|
108
|
+
- [ ] Test running `capture_ready` method (stub with webmock?)
|
109
|
+
- [ ] Correctly stub out launcher, or have it do nothing in tests
|
110
|
+
- [ ] Update README
|
111
|
+
- [ ] Check gem dependencies are correct
|
112
|
+
|
103
113
|
## License
|
104
114
|
|
105
115
|
The gem is available as open source under the terms of
|
data/lib/lolcommits/twitter.rb
CHANGED
data/lolcommits-twitter.gemspec
CHANGED
@@ -1,18 +1,16 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'lolcommits/twitter/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
spec.summary
|
12
|
-
spec.
|
13
|
-
|
14
|
-
spec.
|
15
|
-
spec.license = "LGPL-3"
|
6
|
+
spec.name = "lolcommits-twitter"
|
7
|
+
spec.version = Lolcommits::Twitter::VERSION
|
8
|
+
spec.authors = ["Matthew Hutchinson"]
|
9
|
+
spec.email = ["matt@hiddenloop.com"]
|
10
|
+
spec.summary = %q{Post lolcommits to Twitter}
|
11
|
+
spec.homepage = "https://github.com/lolcommits/lolcommits-twitter"
|
12
|
+
spec.license = "LGPL-3"
|
13
|
+
spec.description = %q{Automatically tweet your lolcommits}
|
16
14
|
|
17
15
|
spec.metadata = {
|
18
16
|
"homepage_uri" => "https://github.com/lolcommits/lolcommits-twitter",
|
@@ -36,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
36
34
|
spec.executables = []
|
37
35
|
spec.require_paths = ["lib"]
|
38
36
|
|
39
|
-
spec.required_ruby_version = ">= 2.
|
37
|
+
spec.required_ruby_version = ">= 2.3"
|
40
38
|
|
41
39
|
spec.add_runtime_dependency "rest-client"
|
42
40
|
spec.add_runtime_dependency "oauth"
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -208,15 +208,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version: '2.
|
211
|
+
version: '2.3'
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
|
219
|
-
rubygems_version: 2.7.6
|
218
|
+
rubygems_version: 3.0.3
|
220
219
|
signing_key:
|
221
220
|
specification_version: 4
|
222
221
|
summary: Post lolcommits to Twitter
|