circleci 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module CircleCi
20
20
  #
21
21
  # @return [CircleCi::Response] - Response object
22
22
  def get
23
- CircleCi.request(@conf, '/projects').get
23
+ CircleCi.request(conf, '/projects').get
24
24
  end
25
25
  end
26
26
  end
@@ -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(@conf, '/recent-builds', params).get
24
+ CircleCi.request(conf, '/recent-builds', params).get
42
25
  end
43
26
  end
44
27
  end
@@ -6,46 +6,21 @@ module CircleCi
6
6
  class User < ApiResource
7
7
  ##
8
8
  #
9
- # Initialize a new RecentBuilds API interaction
9
+ # Initialize a new User API interaction
10
10
  #
11
11
  # @param conf [CircleCi::Config] - Optional config to use for request
12
- # @return [CircleCi::RecentBuilds]
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(@conf, '/me').get
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(@conf, '/user/heroku-key').post(apikey: apikey)
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: 1.1.0
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-03-20 00:00:00.000000000 Z
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: 2.1.0
321
+ version: '3.0'
322
322
  - - ">="
323
323
  - !ruby/object:Gem::Version
324
- version: 2.1.0
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: 2.1.0
331
+ version: '3.0'
332
332
  - - ">="
333
333
  - !ruby/object:Gem::Version
334
- version: 2.1.0
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