lolcommits-dotcom 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82afeaad377cfd903f698a0274b91ec9e9c6c6aec2277c3395d8785df54ae3ed
4
- data.tar.gz: 61cde50f4a3528801aa1a6692f1047538753c58a7a4e603cec27dd482ed313c4
3
+ metadata.gz: 5fce6806538836b9a09930cab3e57e3348536441266c2fef957475caf35131e4
4
+ data.tar.gz: c59db4b90e2e81a086cb27546d48bf7ace2dcb9717e3529360dcaa008f8fbe7f
5
5
  SHA512:
6
- metadata.gz: 0c5f611124664d04b336dd8f971b18a3a4f96f3557e894f3f8b8c267f2c637e445f5630594fc14a35b3bf566b74b744146f460746e8d771e4e1141a3df16e06e
7
- data.tar.gz: d2e1e5d97e6d01722260fa5147f7cd4d9efbc36ff6516c88dcc2db8b1d27062ea9b5444030e0afcd2bb159a4546e0180ac1728ef4ed005ccfb6fd066ebe10e37
6
+ metadata.gz: 42bd92b061f1eb5d463581230f1a30543e7b5133eb2dacde65a292996b99978f40f4083c7fd15d7bdb2437d659e3f5f183570b4b853787c3ebab80cbce33cc5c
7
+ data.tar.gz: df0d5a2d83b9978ad67531e3655ba1fb79c001d7128af2a94f5bfed36bf7f4a0c4b2f29e7f584c0bc857bd9ef521ada7809d1e58f0d340e0bdbec59ffc014faa
data/CHANGELOG.md CHANGED
@@ -2,13 +2,23 @@
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
6
+ project adheres to [Semantic Versioning][Semver].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
10
  - Your contribution here!
11
11
 
12
+ ## [0.3.0] - 2019-05-14
13
+ ### Changed
14
+ - lolcommits gem is a runtime dependency
15
+ - Don't upload raw image anymore (`snapshot_loc` no longer available)
16
+ - Use `lolcommit_path` (instead of `main_image`)
17
+ - Requires at least lolcommits >= `0.14.1`
18
+
19
+ ### Removed
20
+ - Support for lolcommits < `0.14.1`
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-dotcom/compare/v0.2.0...HEAD
62
+ [Unreleased]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.3.0...HEAD
63
+ [0.3.0]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.2.0...v0.3.0
53
64
  [0.2.0]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.1.1...v0.2.0
54
65
  [0.1.1]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.1.0...v0.1.1
55
66
  [0.1.0]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.0.5...v0.1.0
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Lolcommits Dotcom
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/lolcommits-dotcom.svg?style=flat)](http://rubygems.org/gems/lolcommits-dotcom)
4
- [![Travis](https://travis-ci.org/lolcommits/lolcommits-dotcom.svg?branch=master)](https://travis-ci.org/lolcommits/lolcommits-dotcom)
4
+ [![Travis](https://img.shields.io/travis/com/lolcommits/lolcommits-dotcom/master.svg?style=flat)](https://travis-ci.com/lolcommits/lolcommits-dotcom)
5
5
  [![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-dotcom.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-dotcom)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/567d172cae75f0dca02c/maintainability)](https://codeclimate.com/github/lolcommits/lolcommits-dotcom/maintainability)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/567d172cae75f0dca02c/test_coverage)](https://codeclimate.com/github/lolcommits/lolcommits-dotcom/test_coverage)
@@ -19,7 +19,7 @@ welcome!
19
19
 
20
20
  ## Requirements
21
21
 
22
- * Ruby >= 2.0.0
22
+ * Ruby >= 2.3
23
23
  * A webcam
24
24
  * [ImageMagick](http://www.imagemagick.org)
25
25
  * [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
@@ -95,7 +95,7 @@ GitHub.
95
95
 
96
96
  When submitting pull requests, remember to add tests covering any new behaviour,
97
97
  and ensure all tests are passing on [Travis
98
- CI](https://travis-ci.org/lolcommits/lolcommits-dotcom). Read the
98
+ CI](https://travis-ci.com/lolcommits/lolcommits-dotcom). Read the
99
99
  [contributing
100
100
  guidelines](https://github.com/lolcommits/lolcommits-dotcom/blob/master/CONTRIBUTING.md)
101
101
  for more details.
@@ -113,7 +113,7 @@ The gem is available as open source under the terms of
113
113
 
114
114
  ## Links
115
115
 
116
- * [Travis CI](https://travis-ci.org/lolcommits/lolcommits-dotcom)
116
+ * [Travis CI](https://travis-ci.com/lolcommits/lolcommits-dotcom)
117
117
  * [Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-dotcom/maintainability)
118
118
  * [Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-dotcom/test_coverage)
119
119
  * [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-dotcom)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module Dotcom
5
- VERSION = "0.2.0".freeze
5
+ VERSION = "0.3.0".freeze
6
6
  end
7
7
  end
@@ -43,7 +43,6 @@ module Lolcommits
43
43
  # `sha` - the commit sha
44
44
  # `repo_external_id` - the `repo_id` from plugin config
45
45
  # `image` - the lolcommit image file (processed)
46
- # `raw` - the original captured camera image
47
46
  #
48
47
  # @return [HTTParty::Response] response object from POST request
49
48
  # @return [Nil] if any error occurs
@@ -58,8 +57,7 @@ module Lolcommits
58
57
  git_commit: {
59
58
  sha: runner.sha,
60
59
  repo_external_id: configuration[:repo_id],
61
- image: File.open(runner.main_image),
62
- raw: File.open(runner.snapshot_loc)
60
+ image: File.open(runner.lolcommit_path),
63
61
  },
64
62
  key: configuration[:api_key],
65
63
  t: t,
@@ -41,8 +41,8 @@ Gem::Specification.new do |spec|
41
41
  spec.required_ruby_version = ">= 2.3"
42
42
 
43
43
  spec.add_runtime_dependency "rest-client"
44
+ spec.add_runtime_dependency "lolcommits", "~> 0.14.1"
44
45
 
45
- spec.add_development_dependency "lolcommits", ">= 0.12.0"
46
46
  spec.add_development_dependency "bundler"
47
47
  spec.add_development_dependency "webmock"
48
48
  spec.add_development_dependency "pry"
@@ -12,8 +12,7 @@ describe Lolcommits::Plugin::Dotcom do
12
12
  def runner
13
13
  # a simple lolcommits runner with an empty configuration Hash
14
14
  @runner ||= Lolcommits::Runner.new(
15
- main_image: Tempfile.new('main_image.jpg'),
16
- snapshot_loc: Tempfile.new('snapshot_loc.jpg'),
15
+ lolcommit_path: Tempfile.new('lolcommit.jpg'),
17
16
  )
18
17
  end
19
18
 
@@ -65,8 +64,7 @@ describe Lolcommits::Plugin::Dotcom do
65
64
  headers: {'Content-Type' => /multipart\/form-data/ } do |req|
66
65
  req.body.must_match 'name="git_commit[sha]"'
67
66
  req.body.must_match 'name="git_commit[repo_external_id]"'
68
- req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[image\]"; filename="main_image.jpg.+"/)
69
- req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[raw\]"; filename="snapshot_loc.jpg.+"/)
67
+ req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[image\]"; filename="lolcommit.jpg.+"/)
70
68
  req.body.must_match 'name="key"'
71
69
  req.body.must_match 'name="t"'
72
70
  req.body.must_match 'name="token"'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-dotcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.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-04-24 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: lolcommits
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.12.0
34
- type: :development
33
+ version: 0.14.1
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.12.0
40
+ version: 0.14.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement