fourchette 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/fourchette/heroku.rb +2 -1
- data/lib/fourchette/version.rb +1 -1
- data/spec/lib/fourchette/heroku_spec.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebf1374141bdde2186a13a2039505907d8760f2b
|
4
|
+
data.tar.gz: 176bcc5f827e23b58139b1a96ea54234f20db267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1be728e5c20fffeab03a0f8ec975b76628d1a7524e23e8ec9579d9f617f5fc5e89455325d0e313f7e8952c069f5f211e1556670bda7dda52eeea0207615fde2
|
7
|
+
data.tar.gz: e0b44a8c10b071f476fcfdacaf381aa0bb81cdcb54edaf119e21b7c203c9ecaa90feeb9daddda89ba8028b7024d12e818f796fecbbdde01dc0960814b35fcd58
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ We use it a lot at [Rainforest QA](https://www.rainforestqa.com/). If you want t
|
|
59
59
|
- `export FOURCHETTE_GITHUB_PERSONAL_TOKEN='a token here...'` # You can create one here: https://github.com/settings/applications
|
60
60
|
- `export FOURCHETTE_HEROKU_API_KEY="API key here"`
|
61
61
|
- `export FOURCHETTE_HEROKU_APP_TO_FORK='the name of the app to fork from'`
|
62
|
-
- `export FOURCHETTE_APP_URL="
|
62
|
+
- `export FOURCHETTE_APP_URL="https://fourchette-app.herokuapp.com"`
|
63
63
|
- `export FOURCHETTE_HEROKU_APP_PREFIX="fourchette"` # This is basically to namespace your forks. In that example, they would be named "fourchette-pr-1234" where "1234" is the PR number. Beware, the name can't be more than 30 characters total! It will be changed to be lowercase only, so you should probably just use lowercase characters anyways.
|
64
64
|
|
65
65
|
**IMPORTANT**: the GitHub user needs to be an admin of the repo to be able to add, enable or disable the web hook used by Fourchette. You could create it by hand if you prefer.
|
@@ -98,6 +98,10 @@ Adding `[qa skip]` to the title of your pull request will cause Fourchette to ig
|
|
98
98
|
|
99
99
|
Fourchette uses [Sucker Punch](https://github.com/brandonhilkert/sucker_punch), "a single-process Ruby asynchronous processing library". No need for redis or extra processes. It also mean you can run it for free on Heroku, if this is what you want.
|
100
100
|
|
101
|
+
## License
|
102
|
+
|
103
|
+
See [here](LICENSE.txt)
|
104
|
+
|
101
105
|
## Contribute
|
102
106
|
|
103
107
|
- fork & clone
|
data/lib/fourchette/heroku.rb
CHANGED
@@ -42,8 +42,9 @@ class Fourchette::Heroku
|
|
42
42
|
def copy_config from, to
|
43
43
|
logger.info "Copying configs from #{from} to #{to}"
|
44
44
|
from_congig_vars = config_vars(from)
|
45
|
-
# WE SHOULD NOT MOVE THE HEROKU_POSTGRES_*_URL...
|
45
|
+
# WE SHOULD NOT MOVE THE HEROKU_POSTGRES_*_URL or DATABASE_URL...
|
46
46
|
from_congig_vars.reject! { |k, v| k.start_with?('HEROKU_POSTGRESQL_') && k.end_with?('_URL') }
|
47
|
+
from_congig_vars.reject! { |k, v| k == ('DATABASE_URL') }
|
47
48
|
client.config_var.update(to, from_congig_vars)
|
48
49
|
end
|
49
50
|
|
data/lib/fourchette/version.rb
CHANGED
@@ -73,7 +73,13 @@ describe Fourchette::Heroku do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
describe '#copy_config' do
|
76
|
-
let(:vars)
|
76
|
+
let(:vars) do
|
77
|
+
{
|
78
|
+
'WHATEVER' => 'ok',
|
79
|
+
'HEROKU_POSTGRESQL_SOMETHING_URL' => 'FAIL@POSTGRES/DB',
|
80
|
+
'DATABASE_URL' => 'FAIL@POSTGRES/DB'
|
81
|
+
}
|
82
|
+
end
|
77
83
|
let(:cleaned_vars) { { 'WHATEVER' => 'ok'} }
|
78
84
|
|
79
85
|
it 'calls #config_vars' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fourchette
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Philippe Boily
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -295,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
295
295
|
version: '0'
|
296
296
|
requirements: []
|
297
297
|
rubyforge_project:
|
298
|
-
rubygems_version: 2.2.
|
298
|
+
rubygems_version: 2.2.2
|
299
299
|
signing_key:
|
300
300
|
specification_version: 4
|
301
301
|
summary: Your new best friend for isolated testing environments on Heroku.
|