circleci 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +268 -82
- data/lib/circleci.rb +1 -0
- data/lib/circleci/api_project_resource.rb +32 -0
- data/lib/circleci/build.rb +6 -96
- data/lib/circleci/config.rb +8 -8
- data/lib/circleci/project.rb +27 -275
- data/lib/circleci/projects.rb +1 -1
- data/lib/circleci/recent_builds.rb +1 -18
- data/lib/circleci/user.rb +4 -29
- metadata +7 -6
- metadata.gz.sig +0 -0
data/lib/circleci/projects.rb
CHANGED
@@ -14,23 +14,6 @@ module CircleCi
|
|
14
14
|
super(nil, nil, conf)
|
15
15
|
end
|
16
16
|
|
17
|
-
##
|
18
|
-
#
|
19
|
-
# Deprecated class methods
|
20
|
-
class << self
|
21
|
-
##
|
22
|
-
#
|
23
|
-
# Get get recent builds for your account
|
24
|
-
#
|
25
|
-
# @deprecated Please use instance method of [CircleCi::RecentBuilds] instead
|
26
|
-
# @param params [Hash] - Params to send for recent builds (limit, offset)
|
27
|
-
# @return [CircleCi::Response] - Response object
|
28
|
-
def get(params = {})
|
29
|
-
default_config.logger.warn('[Deprecated] Use instance method CircleCi::RecentBuilds#get instead')
|
30
|
-
new(default_config).get(params)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
17
|
##
|
35
18
|
#
|
36
19
|
# Get get recent builds for your account
|
@@ -38,7 +21,7 @@ module CircleCi
|
|
38
21
|
# @param params [Hash] - Params to send for recent builds (limit, offset)
|
39
22
|
# @return [CircleCi::Response] - Response object
|
40
23
|
def get(params = {})
|
41
|
-
CircleCi.request(
|
24
|
+
CircleCi.request(conf, '/recent-builds', params).get
|
42
25
|
end
|
43
26
|
end
|
44
27
|
end
|
data/lib/circleci/user.rb
CHANGED
@@ -6,46 +6,21 @@ module CircleCi
|
|
6
6
|
class User < ApiResource
|
7
7
|
##
|
8
8
|
#
|
9
|
-
# Initialize a new
|
9
|
+
# Initialize a new User API interaction
|
10
10
|
#
|
11
11
|
# @param conf [CircleCi::Config] - Optional config to use for request
|
12
|
-
# @return [CircleCi::
|
12
|
+
# @return [CircleCi::User]
|
13
13
|
def initialize(conf = nil)
|
14
14
|
super(nil, nil, conf)
|
15
15
|
end
|
16
16
|
|
17
|
-
class << self
|
18
|
-
##
|
19
|
-
#
|
20
|
-
# Get user account details
|
21
|
-
#
|
22
|
-
# @deprecated Please use instance method of [CircleCi::User] instead
|
23
|
-
# @return [CircleCi::Response] - Response object
|
24
|
-
def me
|
25
|
-
default_config.logger.warn('[Deprecated] Use instance method CircleCi::User#me instead')
|
26
|
-
new(default_config).me
|
27
|
-
end
|
28
|
-
|
29
|
-
##
|
30
|
-
#
|
31
|
-
# Add a Heroku API key to CircleCI
|
32
|
-
#
|
33
|
-
# @deprecated Please use instance method of [CircleCi::User] instead
|
34
|
-
# @param apikey [String] - The Heroku API key
|
35
|
-
# @return [CircleCi::Response] - Response object
|
36
|
-
def heroku_key(apikey)
|
37
|
-
default_config.logger.warn('[Deprecated] Use instance method CircleCi::User#heroku_key instead')
|
38
|
-
new(default_config).heroku_key(apikey)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
17
|
##
|
43
18
|
#
|
44
19
|
# Get user account details
|
45
20
|
#
|
46
21
|
# @return [CircleCi::Response] - Response object
|
47
22
|
def me
|
48
|
-
CircleCi.request(
|
23
|
+
CircleCi.request(conf, '/me').get
|
49
24
|
end
|
50
25
|
|
51
26
|
##
|
@@ -55,7 +30,7 @@ module CircleCi
|
|
55
30
|
# @param apikey [String] - The Heroku API key
|
56
31
|
# @return [CircleCi::Response] - Response object
|
57
32
|
def heroku_key(apikey)
|
58
|
-
CircleCi.request(
|
33
|
+
CircleCi.request(conf, '/user/heroku-key').post(apikey: apikey)
|
59
34
|
end
|
60
35
|
end
|
61
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circleci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chavez
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
7DerzHxWdPmU1DsMCCh7B3R2HH0TONFQ67h7FuJPvLQkvbUuwzzjzpBwfhdCIEFn
|
31
31
|
WUW78NBBFETQzQE3nG9TifbcEDrx/dODsAFzoQ==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2017-
|
33
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: coveralls
|
@@ -318,20 +318,20 @@ dependencies:
|
|
318
318
|
requirements:
|
319
319
|
- - "~>"
|
320
320
|
- !ruby/object:Gem::Version
|
321
|
-
version:
|
321
|
+
version: '3.0'
|
322
322
|
- - ">="
|
323
323
|
- !ruby/object:Gem::Version
|
324
|
-
version:
|
324
|
+
version: '3.0'
|
325
325
|
type: :development
|
326
326
|
prerelease: false
|
327
327
|
version_requirements: !ruby/object:Gem::Requirement
|
328
328
|
requirements:
|
329
329
|
- - "~>"
|
330
330
|
- !ruby/object:Gem::Version
|
331
|
-
version:
|
331
|
+
version: '3.0'
|
332
332
|
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
|
-
version:
|
334
|
+
version: '3.0'
|
335
335
|
- !ruby/object:Gem::Dependency
|
336
336
|
name: yard
|
337
337
|
requirement: !ruby/object:Gem::Requirement
|
@@ -361,6 +361,7 @@ extra_rdoc_files:
|
|
361
361
|
files:
|
362
362
|
- README.md
|
363
363
|
- lib/circleci.rb
|
364
|
+
- lib/circleci/api_project_resource.rb
|
364
365
|
- lib/circleci/api_resource.rb
|
365
366
|
- lib/circleci/build.rb
|
366
367
|
- lib/circleci/config.rb
|
metadata.gz.sig
CHANGED
Binary file
|