lolcommits-uploldz 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -8
- data/README.md +2 -2
- data/lib/lolcommits/plugin/uploldz.rb +1 -1
- data/lib/lolcommits/uploldz/version.rb +1 -1
- data/test/lolcommits/plugin/uploldz_test.rb +6 -4
- metadata +2 -3
- data/vendor/fonts/Impact.ttf +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae45eeab78fa99bdbc87098624e7c14c1de47c20
|
4
|
+
data.tar.gz: f2ebff5d427fe370ea6b005ff35fdb5b65897570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b72af5118e0a9c8e3c66d6b89319ad11e5c9c33bf9a529fbf0cf4aa5a343b975b20adc43dfc95c86e161c7e37f279360c1fced40662d1f0ff5d668148600cbd4
|
7
|
+
data.tar.gz: 69b948bf52f86b49cb4f0ff712a672ba210677ac3e3c02aa3fa6e127d76e31309ab18126c4b49035e28216b051348050731b9060c2ad548a923a6828e175d1d2
|
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,10 +19,6 @@ matrix:
|
|
19
19
|
allow_failures:
|
20
20
|
- rvm: ruby-head
|
21
21
|
|
22
|
-
branches:
|
23
|
-
except:
|
24
|
-
- gh-pages
|
25
|
-
|
26
22
|
env:
|
27
23
|
global:
|
28
24
|
- CC_TEST_REPORTER_ID=a11f4b88e9bad7b922ca0ce5c70e369d1fd704c1b7c08c5b9e273e29a8c73345
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://img.shields.io/gem/v/lolcommits-uploldz.svg?style=flat)](http://rubygems.org/gems/lolcommits-uploldz)
|
4
4
|
[![Travis Build Status](https://travis-ci.org/lolcommits/lolcommits-uploldz.svg?branch=master)](https://travis-ci.org/lolcommits/lolcommits-uploldz)
|
5
|
-
[![
|
6
|
-
[![
|
5
|
+
[![Maintainability](https://img.shields.io/codeclimate/maintainability/lolcommits/lolcommits-uploldz.svg)](https://codeclimate.com/github/lolcommits/lolcommits-uploldz/maintainability)
|
6
|
+
[![Test Coverage](https://img.shields.io/codeclimate/c/lolcommits/lolcommits-uploldz.svg)](https://codeclimate.com/github/lolcommits/lolcommits-uploldz/test_coverage)
|
7
7
|
[![Gem Dependency Status](https://gemnasium.com/badges/github.com/lolcommits/lolcommits-uploldz.svg)](https://gemnasium.com/github.com/lolcommits/lolcommits-uploldz)
|
8
8
|
|
9
9
|
[lolcommits](https://lolcommits.github.io/) takes a snapshot with your webcam
|
@@ -69,7 +69,7 @@ module Lolcommits
|
|
69
69
|
# `author_name` - the commit author name
|
70
70
|
# `author_email` - the commit author email address
|
71
71
|
#
|
72
|
-
# @return [RestClient::Response] response object
|
72
|
+
# @return [RestClient::Response] response object from POST request
|
73
73
|
# @return [Nil] if any error occurs
|
74
74
|
#
|
75
75
|
def run_capture_ready
|
@@ -85,11 +85,13 @@ describe Lolcommits::Plugin::Uploldz do
|
|
85
85
|
|
86
86
|
assert_requested :post, "https://uploldz.com/uplol", times: 1,
|
87
87
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
88
|
+
req.body.must_match(/Content-Disposition: form-data;.+name="file"; filename="main_image.jpg.+"/)
|
89
|
+
req.body.must_match 'name="repo"'
|
90
|
+
req.body.must_match 'name="author_name"'
|
91
|
+
req.body.must_match 'name="author_email"'
|
92
|
+
req.body.must_match 'name="sha"'
|
93
|
+
req.body.must_match 'name="key"'
|
88
94
|
req.body.must_match "plugin-test-repo"
|
89
|
-
req.body.must_match "sha"
|
90
|
-
req.body.must_match "author_name"
|
91
|
-
req.body.must_match "author_email"
|
92
|
-
req.body.must_match "name=\"file\"; filename="
|
93
95
|
req.body.must_match "first commit!"
|
94
96
|
end
|
95
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-uploldz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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
|
@@ -148,7 +148,6 @@ files:
|
|
148
148
|
- lolcommits-uploldz.gemspec
|
149
149
|
- test/lolcommits/plugin/uploldz_test.rb
|
150
150
|
- test/test_helper.rb
|
151
|
-
- vendor/fonts/Impact.ttf
|
152
151
|
homepage: https://github.com/lolcommits/lolcommits-uploldz
|
153
152
|
licenses:
|
154
153
|
- LGPL-3
|
data/vendor/fonts/Impact.ttf
DELETED
Binary file
|