lolcommits-twitter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -7
- data/README.md +18 -13
- data/lib/lolcommits/twitter/version.rb +1 -1
- data/lolcommits-twitter.gemspec +0 -1
- data/test/lolcommits/plugin/twitter_test.rb +0 -1
- data/test/test_helper.rb +1 -6
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '085150b335fa98f9e497082c7b31b71659eec2c3'
|
4
|
+
data.tar.gz: e9b8aa9fd6df2f740f96a411e5653717baaa7b0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac2262795e95bb0350fa09dcedc18b78f052b8b21eb3f766537258f462658cc8e4d38f8f064941481d84f66c41372676727b323217e35ed9989bca90a1ffe0b
|
7
|
+
data.tar.gz: 78e3bab3d965b53332aff5045c4bf46f3f2c9500fc2b37d93f4d976405898d5814c6ee074283207d89a94acae6fae89cbf52305d6e3e15c3437d72d817a22073
|
data/.travis.yml
CHANGED
@@ -3,10 +3,10 @@ language: ruby
|
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
5
|
- 2.0.0
|
6
|
-
- 2.1.
|
7
|
-
- 2.2.
|
8
|
-
- 2.3.
|
9
|
-
- 2.4.
|
6
|
+
- 2.1.10
|
7
|
+
- 2.2.8
|
8
|
+
- 2.3.5
|
9
|
+
- 2.4.2
|
10
10
|
- ruby-head
|
11
11
|
|
12
12
|
before_install:
|
@@ -19,6 +19,13 @@ matrix:
|
|
19
19
|
allow_failures:
|
20
20
|
- rvm: ruby-head
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
-
|
22
|
+
env:
|
23
|
+
global:
|
24
|
+
- CC_TEST_REPORTER_ID=d05d34f48230381d001225814f03f19b92c757fa9b795a7f5b16a17ebd027ee8
|
25
|
+
- 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)
|
26
|
+
before_script:
|
27
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
28
|
+
- chmod +x ./cc-test-reporter
|
29
|
+
- ./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)
|
30
|
+
after_script:
|
31
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://img.shields.io/gem/v/lolcommits-twitter.svg?style=flat)](http://rubygems.org/gems/lolcommits-twitter)
|
4
4
|
[![Travis Build Status](https://travis-ci.org/lolcommits/lolcommits-twitter.svg?branch=master)](https://travis-ci.org/lolcommits/lolcommits-twitter)
|
5
|
-
[![
|
6
|
-
[![
|
5
|
+
[![Maintainability](https://img.shields.io/codeclimate/maintainability/lolcommits/lolcommits-twitter.svg)](https://codeclimate.com/github/lolcommits/lolcommits-twitter/maintainability)
|
6
|
+
[![Test Coverage](https://img.shields.io/codeclimate/c/lolcommits/lolcommits-twitter.svg)](https://codeclimate.com/github/lolcommits/lolcommits-twitter/test_coverage)
|
7
7
|
[![Gem Dependency Status](https://gemnasium.com/badges/github.com/lolcommits/lolcommits-twitter.svg)](https://gemnasium.com/github.com/lolcommits/lolcommits-twitter)
|
8
8
|
|
9
9
|
[lolcommits](https://lolcommits.github.io/) takes a snapshot with your webcam
|
@@ -11,11 +11,10 @@ every time you git commit code, and archives a lolcat style image with it. Git
|
|
11
11
|
blame has never been so much fun!
|
12
12
|
|
13
13
|
This plugin automatically posts your Lolcommit to Twitter. The tweet features
|
14
|
-
your commit message (shortened
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
You can optionally open the new tweet in your default browser.
|
14
|
+
your commit message (shortened, with some optional surrounding text) and the
|
15
|
+
captured image. See the [#lolcommits](https://twitter.com/hashtag/lolcommits)
|
16
|
+
hash tag for some examples in the wild. You can also configure the plugin to
|
17
|
+
auto-open the tweet in your default browser.
|
19
18
|
|
20
19
|
## Requirements
|
21
20
|
|
@@ -30,11 +29,15 @@ After installing the lolcommits gem, install this plugin with:
|
|
30
29
|
|
31
30
|
$ gem install lolcommits-twitter
|
32
31
|
|
33
|
-
|
32
|
+
The configure the plugin to enable it and auth with Twitter
|
34
33
|
|
35
34
|
$ lolcommits --config -p twitter
|
36
35
|
# set enabled to `true` (then set your own options or choose the defaults)
|
37
36
|
|
37
|
+
*NOTE*: if you enable this plugin on another repository you may want to copy the
|
38
|
+
credentials from `~/.lolcommits/{your-repo}/config.yml` (so Twitter does not
|
39
|
+
de-authorize the connection).
|
40
|
+
|
38
41
|
### Configuration
|
39
42
|
|
40
43
|
The following options are available:
|
@@ -43,11 +46,13 @@ The following options are available:
|
|
43
46
|
* suffix (default: #lolcommits)
|
44
47
|
* auto-open tweet url?
|
45
48
|
|
46
|
-
You can always reconfigure the plugin
|
47
|
-
Twitter.
|
49
|
+
You can always reconfigure the plugin later, to change these options without
|
50
|
+
having to re-authenicate with Twitter.
|
51
|
+
|
52
|
+
To disable - set `enabled: false` and revoke plugin access to your twitter
|
53
|
+
account [here](https://twitter.com/settings/applications).
|
54
|
+
|
48
55
|
|
49
|
-
To disable - set `enabled: false` and you can always revoke access to your
|
50
|
-
twitter account [here](https://twitter.com/settings/applications).
|
51
56
|
|
52
57
|
## Development
|
53
58
|
|
@@ -103,7 +108,7 @@ The gem is available as open source under the terms of
|
|
103
108
|
## Links
|
104
109
|
|
105
110
|
* [Travis CI](https://travis-ci.org/lolcommits/lolcommits-twitter)
|
106
|
-
* [Test Coverage](https://
|
111
|
+
* [Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-twitter/test_coverage)
|
107
112
|
* [Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-twitter)
|
108
113
|
* [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-twitter)
|
109
114
|
* [Issues](http://github.com/lolcommits/lolcommits-twitter/issues)
|
data/lolcommits-twitter.gemspec
CHANGED
@@ -40,7 +40,6 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency "rake"
|
41
41
|
spec.add_development_dependency "minitest"
|
42
42
|
spec.add_development_dependency "simplecov"
|
43
|
-
spec.add_development_dependency "coveralls"
|
44
43
|
spec.add_development_dependency "webmock"
|
45
44
|
spec.add_development_dependency "pry"
|
46
45
|
end
|
data/test/test_helper.rb
CHANGED
@@ -11,12 +11,7 @@ require 'lolcommits/test_helpers/git_repo'
|
|
11
11
|
require 'lolcommits/test_helpers/fake_io'
|
12
12
|
|
13
13
|
if ENV['COVERAGE']
|
14
|
-
|
15
|
-
require 'coveralls'
|
16
|
-
Coveralls.wear!
|
17
|
-
else
|
18
|
-
require 'simplecov'
|
19
|
-
end
|
14
|
+
require 'simplecov'
|
20
15
|
end
|
21
16
|
|
22
17
|
# plugin gem test libs
|
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: coveralls
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: webmock
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
196
|
version: '0'
|
211
197
|
requirements: []
|
212
198
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.6.
|
199
|
+
rubygems_version: 2.6.13
|
214
200
|
signing_key:
|
215
201
|
specification_version: 4
|
216
202
|
summary: Post lolcommits to Twitter
|