lolcommits-protonet 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +28 -25
- data/lib/lolcommits/plugin/protonet.rb +1 -1
- data/lib/lolcommits/protonet/version.rb +1 -1
- data/lolcommits-protonet.gemspec +9 -16
- data/test/lolcommits/plugin/protonet_test.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa8d7ac6adc6cda07eb5d09478e180bf280f48adc73418e318039d66fac1683b
|
4
|
+
data.tar.gz: 93381ac7848e1af780e0ebaddb8b8e42c1e03cd40acc6274b0f7d4132f0e3668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20dc684900edb6ff521c174838490a8476be421fd60bb6991af564b6dd58b9409b42508de75318ecc6d4518399372a3426e9a42c3e8dd009c5d2d1291c098cd7
|
7
|
+
data.tar.gz: b586931b8f3db65b435e6ac7da1dea47b7f9d9e9bacfffa86595a6044f97a93ddf83f8c8b683bc81b716b8e065f7d8d8b782ab06169b3276c5f0b8bbccea325d
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,16 @@ adheres to [Semantic Versioning][Semver].
|
|
9
9
|
|
10
10
|
- Your contribution here!
|
11
11
|
|
12
|
+
## [0.3.0] - 2019-05-20
|
13
|
+
### Changed
|
14
|
+
- lolcommits gem is a runtime dependency
|
15
|
+
- Use `lolcommit_path` (instead of `main_image`)
|
16
|
+
- Requires at least lolcommits >= `0.14.2`
|
17
|
+
- Update gemspec and README
|
18
|
+
|
19
|
+
### Removed
|
20
|
+
- Support for lolcommits < `0.14.2`
|
21
|
+
|
12
22
|
## [0.2.0] - 2019-04-24
|
13
23
|
### Removed
|
14
24
|
- Support for Ruby < 2.3 (older rubies no longer supported)
|
@@ -49,7 +59,8 @@ adheres to [Semantic Versioning][Semver].
|
|
49
59
|
### Changed
|
50
60
|
- Initial release
|
51
61
|
|
52
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.
|
62
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.3.0...HEAD
|
63
|
+
[0.3.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.2.0...v0.3.0
|
53
64
|
[0.2.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.1.1...v0.2.0
|
54
65
|
[0.1.1]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.1.0...v0.1.1
|
55
66
|
[0.1.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.0.4...v0.1.0
|
data/README.md
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
# Lolcommits Protonet
|
2
2
|
|
3
3
|
[![Gem](https://img.shields.io/gem/v/lolcommits-protonet.svg?style=flat)](http://rubygems.org/gems/lolcommits-protonet)
|
4
|
-
[![Travis](https://
|
4
|
+
[![Travis](https://img.shields.io/travis/com/lolcommits/lolcommits-protonet/master.svg?style=flat)](https://travis-ci.com/lolcommits/lolcommits-protonet)
|
5
5
|
[![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-protonet.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-protonet)
|
6
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/5754a7b62824fe86a9e4/maintainability)](https://codeclimate.com/github/lolcommits/lolcommits-protonet/maintainability)
|
7
7
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/5754a7b62824fe86a9e4/test_coverage)](https://codeclimate.com/github/lolcommits/lolcommits-protonet/test_coverage)
|
8
8
|
|
9
|
-
[lolcommits](https://lolcommits.github.io/) takes a snapshot with your
|
10
|
-
every time you git commit code, and archives a lolcat style image
|
11
|
-
blame has never been so much fun!
|
9
|
+
[lolcommits](https://lolcommits.github.io/) takes a snapshot with your
|
10
|
+
webcam every time you git commit code, and archives a lolcat style image
|
11
|
+
with it. Git blame has never been so much fun!
|
12
12
|
|
13
|
-
This plugin allows you to push lolcommits to your Protonet box. The
|
14
|
-
|
15
|
-
commit sha and branch name.
|
13
|
+
This plugin allows you to push lolcommits to your Protonet box. The
|
14
|
+
captured lolcommit is uploaded with a randomly generated message that
|
15
|
+
includes the commit sha and branch name.
|
16
16
|
|
17
|
-
You should follow the API documentation found on your box under
|
18
|
-
REST API" to get an API token.
|
17
|
+
You should follow the API documentation found on your box under
|
18
|
+
Help/"Protonet REST API" to get an API token.
|
19
19
|
|
20
20
|
## Requirements
|
21
21
|
|
@@ -44,12 +44,12 @@ That's it! To disable uninstall this gem or:
|
|
44
44
|
|
45
45
|
## Development
|
46
46
|
|
47
|
-
Check out this repo and run `bin/setup`, this will install all
|
48
|
-
generate docs. Use `bundle exec rake` to run all tests
|
49
|
-
report.
|
47
|
+
Check out this repo and run `bin/setup`, this will install all
|
48
|
+
dependencies and generate docs. Use `bundle exec rake` to run all tests
|
49
|
+
and generate a coverage report.
|
50
50
|
|
51
|
-
You can also run `bin/console` for an interactive prompt that will allow
|
52
|
-
experiment with the gem code.
|
51
|
+
You can also run `bin/console` for an interactive prompt that will allow
|
52
|
+
you to experiment with the gem code.
|
53
53
|
|
54
54
|
## Tests
|
55
55
|
|
@@ -67,24 +67,27 @@ Generate docs for this gem with:
|
|
67
67
|
|
68
68
|
If you think something is broken or missing, please raise a new
|
69
69
|
[issue](https://github.com/lolcommits/lolcommits-protonet/issues). Take
|
70
|
-
a moment to check it hasn't been raised in the past (and possibly
|
70
|
+
a moment to check it hasn't been raised in the past (and possibly
|
71
|
+
closed).
|
71
72
|
|
72
73
|
## Contributing
|
73
74
|
|
74
|
-
Bug [reports](https://github.com/lolcommits/lolcommits-protonet/issues)
|
75
|
-
|
76
|
-
|
75
|
+
Bug [reports](https://github.com/lolcommits/lolcommits-protonet/issues)
|
76
|
+
and [pull
|
77
|
+
requests](https://github.com/lolcommits/lolcommits-protonet/pulls) are
|
78
|
+
welcome on GitHub.
|
77
79
|
|
78
|
-
When submitting pull requests, remember to add tests covering any new
|
79
|
-
and ensure all tests are passing on [Travis
|
80
|
-
CI](https://travis-ci.
|
80
|
+
When submitting pull requests, remember to add tests covering any new
|
81
|
+
behaviour, and ensure all tests are passing on [Travis
|
82
|
+
CI](https://travis-ci.com/lolcommits/lolcommits-protonet). Read the
|
81
83
|
[contributing
|
82
84
|
guidelines](https://github.com/lolcommits/lolcommits-protonet/blob/master/CONTRIBUTING.md)
|
83
85
|
for more details.
|
84
86
|
|
85
|
-
This project is intended to be a safe, welcoming space for
|
86
|
-
contributors are expected to adhere to the
|
87
|
-
Covenant](http://contributor-covenant.org) code of conduct.
|
87
|
+
This project is intended to be a safe, welcoming space for
|
88
|
+
collaboration, and contributors are expected to adhere to the
|
89
|
+
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
90
|
+
See
|
88
91
|
[here](https://github.com/lolcommits/lolcommits-protonet/blob/master/CODE_OF_CONDUCT.md)
|
89
92
|
for more details.
|
90
93
|
|
@@ -95,7 +98,7 @@ The gem is available as open source under the terms of
|
|
95
98
|
|
96
99
|
## Links
|
97
100
|
|
98
|
-
* [Travis CI](https://travis-ci.
|
101
|
+
* [Travis CI](https://travis-ci.com/lolcommits/lolcommits-protonet)
|
99
102
|
* [Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-protonet/maintainability)
|
100
103
|
* [Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-protonet/test_coverage)
|
101
104
|
* [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-protonet)
|
data/lolcommits-protonet.gemspec
CHANGED
@@ -9,28 +9,21 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["matt@hiddenloop.com"]
|
10
10
|
spec.summary = %q{Posts lolcommits to a Protonet box}
|
11
11
|
spec.homepage = "https://github.com/lolcommits/lolcommits-protonet"
|
12
|
-
spec.license = "LGPL-3"
|
12
|
+
spec.license = "LGPL-3.0"
|
13
13
|
|
14
14
|
spec.description = <<-DESC
|
15
|
-
Automatically post lolcommit images (with a message) to your Protonet
|
15
|
+
Automatically post lolcommit images (with a message) to your Protonet
|
16
|
+
box.
|
16
17
|
DESC
|
17
18
|
|
18
19
|
spec.metadata = {
|
19
|
-
"homepage_uri"
|
20
|
-
"changelog_uri"
|
21
|
-
"source_code_uri"
|
22
|
-
"bug_tracker_uri"
|
20
|
+
"homepage_uri" => "https://github.com/lolcommits/lolcommits-protonet",
|
21
|
+
"changelog_uri" => "https://github.com/lolcommits/lolcommits-protonet/blob/master/CHANGELOG.md",
|
22
|
+
"source_code_uri" => "https://github.com/lolcommits/lolcommits-protonet",
|
23
|
+
"bug_tracker_uri" => "https://github.com/lolcommits/lolcommits-protonet/issues",
|
24
|
+
"allowed_push_host" => "https://rubygems.org"
|
23
25
|
}
|
24
26
|
|
25
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
26
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
27
|
-
if spec.respond_to?(:metadata)
|
28
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
29
|
-
else
|
30
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
31
|
-
"public gem pushes."
|
32
|
-
end
|
33
|
-
|
34
27
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(assets|test|features)/}) }
|
35
28
|
spec.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
36
29
|
spec.bindir = "bin"
|
@@ -40,8 +33,8 @@ Gem::Specification.new do |spec|
|
|
40
33
|
spec.required_ruby_version = ">= 2.3"
|
41
34
|
|
42
35
|
spec.add_runtime_dependency "rest-client"
|
36
|
+
spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
|
43
37
|
|
44
|
-
spec.add_development_dependency "lolcommits", ">= 0.12.0"
|
45
38
|
spec.add_development_dependency "bundler"
|
46
39
|
spec.add_development_dependency "webmock"
|
47
40
|
spec.add_development_dependency "pry"
|
@@ -11,7 +11,7 @@ describe Lolcommits::Plugin::Protonet do
|
|
11
11
|
def runner
|
12
12
|
# a simple lolcommits runner with an empty configuration Hash
|
13
13
|
@runner ||= Lolcommits::Runner.new(
|
14
|
-
|
14
|
+
lolcommit_path: Tempfile.new('lolcommit.jpg'),
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
@@ -63,7 +63,7 @@ describe Lolcommits::Plugin::Protonet do
|
|
63
63
|
|
64
64
|
assert_requested :post, api_endpoint, times: 1,
|
65
65
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
66
|
-
req.body.must_match(/Content-Disposition: form-data;.+name="files\[\]"; filename="
|
66
|
+
req.body.must_match(/Content-Disposition: form-data;.+name="files\[\]"; filename="lolcommit.jpg.+"/)
|
67
67
|
req.body.must_match 'name="message"'
|
68
68
|
req.body.must_match "plugin-test-repo"
|
69
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-protonet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2019-
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
34
|
-
type: :
|
33
|
+
version: 0.14.2
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.14.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,8 +122,9 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description:
|
126
|
-
|
125
|
+
description: |2
|
126
|
+
Automatically post lolcommit images (with a message) to your Protonet
|
127
|
+
box.
|
127
128
|
email:
|
128
129
|
- matt@hiddenloop.com
|
129
130
|
executables: []
|
@@ -151,7 +152,7 @@ files:
|
|
151
152
|
- test/test_helper.rb
|
152
153
|
homepage: https://github.com/lolcommits/lolcommits-protonet
|
153
154
|
licenses:
|
154
|
-
- LGPL-3
|
155
|
+
- LGPL-3.0
|
155
156
|
metadata:
|
156
157
|
homepage_uri: https://github.com/lolcommits/lolcommits-protonet
|
157
158
|
changelog_uri: https://github.com/lolcommits/lolcommits-protonet/blob/master/CHANGELOG.md
|