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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 519933531a95fb0a022b8442368cf982b25b00e782844b71e74aa12aefcb386f
4
- data.tar.gz: cee81a0d0485573a4d19cd4895ab00c44ec306cb9aaec5fb35f2d8edd4b481fe
3
+ metadata.gz: 19972629f8a661669c7ab25899eab5d3091fb48997634beeef854a9729c3b5ea
4
+ data.tar.gz: 952c38f31cb81af9c8602dfefea18a368915a96421fbbc6edc80ac1607504927
5
5
  SHA512:
6
- metadata.gz: d7fb401312f721f25631eebbaff3890f7aac74a7010363b62c12cab117c2b5bce0c0078abc3d677922d3aedcfe1a0f3852cbd45794768d7930d55922de7ecdde
7
- data.tar.gz: 20b36cec6acef638f2d05872d9add2453cd92b0d2720a44886ceb071dfdcddc6d8b0482c1400008df8a0e515402e2df306b253b60cceff6c4893b59de368af4a
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
- - 2.1.10
6
- - 2.2.9
7
- - 2.3.6
8
- - 2.4.3
9
- - 2.5.1
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
- - gem update --system
14
- - gem install bundler
15
- - git --version
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
- - rvm: ruby-head
18
+ - rvm: ruby-head
22
19
 
23
20
  env:
24
21
  global:
25
- - CC_TEST_REPORTER_ID=d05d34f48230381d001225814f03f19b92c757fa9b795a7f5b16a17ebd027ee8
26
- - 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)
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
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
29
- - chmod +x ./cc-test-reporter
30
- - ./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)
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
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
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](KeepAChangelog) and this project
6
- adheres to [Semantic Versioning](Semver).
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.1.1...HEAD
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/76488bb...v0.0.1
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.0.0
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'lolcommits/plugin/base'
2
4
  require 'lolcommits/cli/launcher'
3
5
  require 'lolcommits/twitter/client'
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'lolcommits/twitter/version'
2
4
  require 'lolcommits/plugin/twitter'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'oauth'
2
4
  require 'simple_oauth'
3
5
  require 'rest_client'
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Lolcommits
2
4
  module Twitter
3
- VERSION = "0.1.1".freeze
5
+ VERSION = "0.2.0".freeze
4
6
  end
5
7
  end
@@ -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 = "lolcommits-twitter"
8
- spec.version = Lolcommits::Twitter::VERSION
9
- spec.authors = ["Matthew Hutchinson"]
10
- spec.email = ["matt@hiddenloop.com"]
11
- spec.summary = %q{Post lolcommits to Twitter}
12
- spec.description = %q{Automatically tweet your lolcommits}
13
-
14
- spec.homepage = "https://github.com/lolcommits/lolcommits-twitter"
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.1"
37
+ spec.required_ruby_version = ">= 2.3"
40
38
 
41
39
  spec.add_runtime_dependency "rest-client"
42
40
  spec.add_runtime_dependency "oauth"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe Lolcommits::Plugin::Twitter do
data/test/test_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
4
 
3
5
  # lolcommits gem
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.1.1
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: 2018-05-24 00:00:00.000000000 Z
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.1'
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
- rubyforge_project:
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