Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit 8c28a1c

Browse files
author
Philippe Lafoucrière
committed
Minor fixes and prepare for 0.2.1
1 parent b6415e8 commit 8c28a1c

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
0.0.2 / unreleased
1+
0.2.1 / 2014-07-01
2+
3+
* Rename env vars to make them consistent (#10, #4)
4+
* Fix live evaluation (#9)
5+
* Minor bug fixes
6+
7+
0.2.0 / 2014-06-30
28

39
* Auto-update for ruby (http://docs.gemnasium.apiary.io/#autoupdate)
410
* Dependency files support (list / pust) (http://docs.gemnasium.apiary.io/#dependencyfiles)
511

6-
0.0.1 / 2014-06-18
12+
0.1.0 / 2014-06-18
713

814
Initial release

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ The configuration can be saved in ```.gemnasium.yml``` files in the project dire
9696
Options set in ```.gemnasium.yml``` are overriden by env vars:
9797

9898

99-
* **PROJECT_SLUG**: override -project flag and project_slug in .gemnasium.yml.
99+
* **GEMNASIUM_PROJECT_SLUG**: override -project flag and project_slug in .gemnasium.yml.
100100
* **GEMNASIUM_TESTSUITE**: will be run for each iteration over update sets. This is typically your test suite script.
101101
* **GEMNASIUM_BUNDLE_INSTALL_CMD**: [Ruby Only] during each iteration, the new bundle will be installed. Default: "bundle install"
102102
* **GEMNASIUM_BUNDLE_UPDATE_CMD**: [Ruby Only] during each iteration, some gems might be updated. This command will be used. Default: "bundle update"
103103
* **BRANCH**: Current branch can be specified with this var, if the git command fails to run (git rev-parse --abbrev-ref HEAD).
104104
* **REVISION**: Current revision can be specified with this var, if the git command fails to run (git rev-parse --abbrev-ref HEAD)
105105
* **GEMNASIUM_TOKEN**: Your API private token (available in your account settings https://gemnasium.com/settings)
106-
* **IGNORED_PATHS**: A list of paths separated by "," where dependency files are ignored.
107-
* **RAW_FORMAT**: Display API raw json output (for debug)
106+
* **GEMNASIUM_IGNORED_PATHS**: A list of paths separated by "," where dependency files are ignored.
107+
* **GEMNASIUM_RAW_FORMAT**: Display API raw json output (for debug)
108108

109109
and env vars are overriden by command line options.
110110
Ex:
111111

112112
```
113-
echo 'project_slug: tic' > .gemnasium.yml ; PROJECT_SLUG="tac" gemnasium projects show toe
113+
echo 'project_slug: tic' > .gemnasium.yml ; GEMNASIUM_PROJECT_SLUG="tac" gemnasium projects show toe
114114
=> [toe project details]
115115
```
116116

commands/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func App() (*cli.App, error) {
125125
Name: "push",
126126
ShortName: "p",
127127
Usage: "Push dependency files on Gemnasium",
128-
Description: "All dependency files supported by Gemnasium found in the current path will be sent to Gemnasium API. You can ignore paths with IGNORED_PATHS",
128+
Description: "All dependency files supported by Gemnasium found in the current path will be sent to Gemnasium API. You can ignore paths with GEMNASIUM_IGNORED_PATHS",
129129
Action: DependenciesPush,
130130
},
131131
},

config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const (
2424
ENV_API_ENDDPOINT = "GEMNASIUM_API_ENDPOINT"
2525
ENV_TOKEN = "GEMNASIUM_TOKEN"
2626
ENV_PROJECT_SLUG = "GEMNASIUM_PROJECT_SLUG"
27-
ENV_PROJECT_BRANCH = "PROJECT_BRANCH"
28-
ENV_IGNORED_PATHS = "IGNORED_PATHS"
29-
ENV_RAW_FORMAT = "RAW_FORMAT"
27+
ENV_PROJECT_BRANCH = "GEMNASIUM_PROJECT_BRANCH"
28+
ENV_IGNORED_PATHS = "GEMNASIUM_IGNORED_PATHS"
29+
ENV_RAW_FORMAT = "GEMNASIUM_RAW_FORMAT"
3030

3131
DEFAULT_API_ENDPOINT = "https://api.gemnasium.com/v1"
3232
DEFAULT_PROJECT_BRANCH = "master"

models/project.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ func LiveEvaluation(files []string) error {
312312
Result: &jsonResp,
313313
}
314314
err := gemnasium.APIRequest(opts)
315+
if err != nil {
316+
return err
317+
}
315318

316319
// Wait until job is done
317320
url := fmt.Sprintf("%s%s/%s", config.APIEndpoint, LIVE_EVAL_PATH, jsonResp["job_id"])

0 commit comments

Comments
 (0)