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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6673616dd32c9642387841696bd8b826b45bbf2751c9f06a9ce979955a0315a8
4
- data.tar.gz: 3e0fa1a3023631bf50b2f7eafea55a7525e98800c96d22d804f5e5780358fcc6
3
+ metadata.gz: 58a96e62ed38996a463f57956fefd4ce6853f65d1fbc2903fc6573460778884d
4
+ data.tar.gz: df5027fdb018dca6283c1e5da16d75398a488c53cad33598f53e22f002cc1a9a
5
5
  SHA512:
6
- metadata.gz: a2dd6c722ec9ff0de484f3558fd605d2eb23ec8fb0abca12a1b6d3a2431b1112eb44e132a9647d7747f675c413d0cb37a0f3778491b2f811d7081d668068b34f
7
- data.tar.gz: 5b34e9d8d9a2e61c5cfce1e1b18f06d5e4b34e9bd8c6c1276628efe8eab298c02fd202849a5a5d4598f713ae5f665bd0029732d8922ec56538dcf34957ce043c
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-dot-com](http://lolcommits-dot-com.herokuapp.com) is web app hosting
14
- lolcommits for multiple repositories! You can signup for free via GitHub. This
15
- plugin integrates your lolcommits gem with the website. The app itself has been
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](http://lolcommits-dot-com.herokuapp.com) (via GitHub).
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](http://lolcommits-dot-com.herokuapp.com/users/account)' to see
36
- the keys you'll need to configure the gem.
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](http://lolcommits-dot-com.herokuapp.com). To disable use:
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`
@@ -1,5 +1,5 @@
1
1
  module Lolcommits
2
2
  module Dotcom
3
- VERSION = "0.0.3".freeze
3
+ VERSION = "0.0.4".freeze
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ module Lolcommits
5
5
  module Plugin
6
6
  class Dotcom < Base
7
7
 
8
- BASE_URL = 'http://lolcommits-dot-com.herokuapp.com'.freeze
8
+ BASE_URL = 'https://lolcommits.com'.freeze
9
9
 
10
10
  ##
11
11
  # Initialize plugin with runner, config and set all configurable options.
@@ -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, /^http\:\/\/lolcommits-dot-com.herokuapp.com/).to_return(status: 200)
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
- "http://lolcommits-dot-com.herokuapp.com/git_commits.json",
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 /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.+"/
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.3
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-01-22 00:00:00.000000000 Z
11
+ date: 2018-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client