gitlab_ci 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15ee2045c80282735e7285a5d197be8948a2e114
4
- data.tar.gz: 8daf4bdd4dcca9c54ddbbb17cbed63a6c15a8e9a
3
+ metadata.gz: e1f7bd8b3a20d28b7a1dd6c2179a86a989a19d7d
4
+ data.tar.gz: 0c5e87b52f140ba5739328dd5e5a785081154cae
5
5
  SHA512:
6
- metadata.gz: 03462ab5a2a3f824af9526e8f1f211b4dd04c7e2bc3c54c116c163a398f64bacb1361479a4960d9cb673358f75c23e12269bc82e095dd530409225343a6edb78
7
- data.tar.gz: 1105941f88dbc687549be06ade8b7c5f8bf4691d6dab48dc68626ec6e76af12d15224a9bf16fd5969fd9e5a1a9a2815cec2f66f8a43715c35df916573dd9ba12
6
+ metadata.gz: 60273806f984acf3c524f3c6bf0065a6e718270623266be901eccfea6a6d4c7b7eac59ca9292d23e79f6ad3ff85e41663602c48e03a60cc61964a52ee5789769
7
+ data.tar.gz: 420d19a14d19129e9cc8fc3d4162eb7b3317dc8c3a0a9dbaded9533b79e7f64d3391352cf6d387ecdb0f4727d8e1f4d92eeb76d58b1175cca604aaf40257fde1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_ci (0.2.0)
4
+ gitlab_ci (0.2.2)
5
5
  gitlab (~> 3.6, >= 3.6.2)
6
6
 
7
7
  GEM
@@ -41,11 +41,12 @@ class Gitlab::CI::Client
41
41
  #
42
42
  # @param [String] name (required) - The name of the project
43
43
  # @param [String] gitlab_id (required) - The ID of the project on the GitLab instance
44
+ # @param [String] path (required) - The gitlab project path
45
+ # @param [String] ssh_url_to_repo (required) - The gitlab SSH url to the repo
44
46
  # @param [String] default_ref (optional) - The branch to run on (default to master)
45
47
  # @return [Gitlab::ObjectifiedHash] Information about created project.
46
- def create_project(name, id, ref='master')
47
- url = "/projects"
48
- post(url, body: { name: name, gitlab_id: id, default_ref: ref })
48
+ def create_project(name, gitlab_id, path, ssh_url_to_repo, default_ref='master')
49
+ post('/projects', body: { name: name, gitlab_id: gitlab_id, path: path, ssh_url_to_repo: ssh_url_to_repo, default_ref: default_ref })
49
50
  end
50
51
 
51
52
  # Updates a GitLab CI project using GitLab project details that the authenticated user has access to.
@@ -1,4 +1,4 @@
1
1
  module GitlabCi
2
2
  # gitlab_ci version
3
- VERSION = "0.2.0"
3
+ VERSION = '0.2.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo De Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab