lolcommits-dotcom 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/lib/lolcommits/dotcom/version.rb +1 -1
- data/lib/lolcommits/plugin/dotcom.rb +1 -1
- data/test/lolcommits/plugin/dotcom_test.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a96e62ed38996a463f57956fefd4ce6853f65d1fbc2903fc6573460778884d
|
4
|
+
data.tar.gz: df5027fdb018dca6283c1e5da16d75398a488c53cad33598f53e22f002cc1a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0967ada6e6be042952375f663df79852ebded18a1de8af96f0614d980da3104899ab552068ca36a56b9db4f908c6694751a86de357d0b51ea7591e73f41bfe
|
7
|
+
data.tar.gz: 19a2ca4ab662e5863bacd35f32e1100d96b3443277bbe9f72fbbd16944773ad7eca20e5ef1e7bde8538fde1191a11f2e1579196a88268727972933e3a5228c65
|
data/README.md
CHANGED
@@ -10,9 +10,9 @@
|
|
10
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
|
-
[lolcommits
|
14
|
-
|
15
|
-
|
13
|
+
[lolcommits.com](https://lolcommits.com) is web app hosting lolcommits for
|
14
|
+
multiple repositories! You can signup for free via GitHub. This plugin
|
15
|
+
integrates your lolcommits gem with the website. The app itself has been
|
16
16
|
open-sourced and lives on
|
17
17
|
[GitHub](https://github.com/lolcommits/lolcommits-dot-com), pull-requests are
|
18
18
|
welcome!
|
@@ -30,10 +30,11 @@ After installing the lolcommits gem, install this plugin with:
|
|
30
30
|
|
31
31
|
$ gem install lolcommits-dotcom
|
32
32
|
|
33
|
-
Sign up (for free) [here](
|
33
|
+
Sign up (for free) [here](https://lolcommits.com) (via GitHub).
|
34
|
+
|
34
35
|
From the top menu, click 'New Repo' (give your repository a name). Then click
|
35
|
-
'[Account Info](
|
36
|
-
|
36
|
+
'[Account Info](https://lolcommits.com/users/account)' to see the keys you'll
|
37
|
+
need to configure the gem.
|
37
38
|
|
38
39
|
Then configure to enable and set these keys:
|
39
40
|
|
@@ -42,7 +43,7 @@ Then configure to enable and set these keys:
|
|
42
43
|
# paste your api key, secret api and repo (external) id
|
43
44
|
|
44
45
|
That's it! Your next lolcommit will be sent to
|
45
|
-
[lolcommits-dot-com](
|
46
|
+
[lolcommits-dot-com](https://lolcommits.com). To disable use:
|
46
47
|
|
47
48
|
$ lolcommits --config -p dotcom
|
48
49
|
# and set enabled to `false`
|
@@ -57,18 +57,18 @@ describe Lolcommits::Plugin::Dotcom do
|
|
57
57
|
it "uploads lolcommits to dot com server endpoint" do
|
58
58
|
in_repo do
|
59
59
|
plugin.configuration = valid_enabled_config
|
60
|
-
stub_request(:post, /^
|
60
|
+
stub_request(:post, /^https\:\/\/lolcommits.com/).to_return(status: 200)
|
61
61
|
|
62
62
|
plugin.run_capture_ready
|
63
63
|
|
64
64
|
assert_requested :post,
|
65
|
-
"
|
65
|
+
"https://lolcommits.com/git_commits.json",
|
66
66
|
times: 1,
|
67
67
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
68
68
|
req.body.must_match 'name="git_commit[sha]"'
|
69
69
|
req.body.must_match 'name="git_commit[repo_external_id]"'
|
70
|
-
req.body.must_match
|
71
|
-
req.body.must_match
|
70
|
+
req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[image\]"; filename="main_image.jpg.+"/)
|
71
|
+
req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[raw\]"; filename="snapshot_loc.jpg.+"/)
|
72
72
|
req.body.must_match 'name="key"'
|
73
73
|
req.body.must_match 'name="t"'
|
74
74
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|