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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22d36ee2167a981ce1fc72e0cefc07618351e216
4
- data.tar.gz: af9678e8f60affbd96d365ea7c0ea45b372fc8c2
3
+ metadata.gz: ae45eeab78fa99bdbc87098624e7c14c1de47c20
4
+ data.tar.gz: f2ebff5d427fe370ea6b005ff35fdb5b65897570
5
5
  SHA512:
6
- metadata.gz: fd6c0fcc4bae90e1c7870c5e0a308112b6721ac481d6ed7dbbcc30bbb7faba6f574394d9fdb30d63e3d59c18792ec5b8a11576d04241871b3cb7da403c4d9323
7
- data.tar.gz: 8d354addae176ef034c198c3c0d0e9801143bdb67fe9d729046d14b3a3b0f7975486d15b5f040567631bbbc258162ed159e67347e8eb805a582bed390fc7abcd
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
7
- - 2.2.4
8
- - 2.3.3
9
- - 2.4.1
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
- [![Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-uploldz/badges/coverage.svg)](https://codeclimate.com/github/lolcommits/lolcommits-uploldz/coverage)
6
- [![Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-uploldz/badges/gpa.svg)](https://codeclimate.com/github/lolcommits/lolcommits-uploldz)
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 frm POST request
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
@@ -1,5 +1,5 @@
1
1
  module Lolcommits
2
2
  module Uploldz
3
- VERSION = "0.0.1".freeze
3
+ VERSION = "0.0.2".freeze
4
4
  end
5
5
  end
@@ -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.1
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-09-12 00:00:00.000000000 Z
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
Binary file