package_cloud 0.2.44 → 0.2.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a62b096fe5f34a03b636c6e23e85f0f594d60bb
4
- data.tar.gz: 4434346fce72a318222c0d837db7889ed438805b
3
+ metadata.gz: ff9976b5ed2a8e4fb8d06c0938bce3ca88664d3e
4
+ data.tar.gz: 43a414ae832bac4f3e7bd975d7d82295894545e0
5
5
  SHA512:
6
- metadata.gz: a2f0caf82796b4486293e2083c83919c22731800a191ea0dd6cd51abcf82a781f56d9557cca49022488d9cbc56fd4528419f3ec5f8fe15b49494b9066960b6ce
7
- data.tar.gz: 6830a9268a95f8a66d565d42867a40bb108c05bd0783f5d6c9e9f1948051ebe5cfb95b3e8a44c390cfdb4c20a7758a2d01d29fc81951b938a3def8f09216ac84
6
+ metadata.gz: 161ebba39b971941e11f6a2e1a7309d15d2ebb7381263a38bead8d1b5c870ae9b0c6485486891a91d855400f37bb862f434cf8bc5a9a755f0d29b1e5d7f970ee
7
+ data.tar.gz: 9cb1c54eaf5dcf605ef0480f22c4edd02c70f99a18c1a75430854c20aeb81229b69ef1840a448dda25f04dd9aa7c8ea538f795656fcb9bc0da0d316169690c90
data/README.md CHANGED
@@ -53,6 +53,22 @@ You can create a package repository named 'example' on [packagecloud](https://pa
53
53
  $ package_cloud repository create example
54
54
  ```
55
55
 
56
+ ### Environment variables
57
+
58
+ There are two environment variables that you can use with package_cloud CLI
59
+ that will override the settings found in `~/.packagecloud`:
60
+
61
+ 1. `PACKAGECLOUD_TOKEN`: This environment variable can be set to your API
62
+ token (available [here](https://packagecloud.io/api_token)). If set, the
63
+ CLI *will not* read the `~/.packagecloud` configuration file to get the API
64
+ token.
65
+ 2. If and only if the `PACKAGECLOUD_TOKEN` variable is set, you may also set
66
+ `PACKAGECLOUD_URL`. This environment should only be used by
67
+ packagecloud:enterprise customers. It allows you to set the URL of the
68
+ packagecloud installation. Customers using our hosted, cloud based product
69
+ should not set this variable; it is defaulted to http://packagecloud.io
70
+ automatically.
71
+
56
72
  ### Pushing a package
57
73
 
58
74
  You can upload Debian, RPM, RubyGem, Python, or Java packages to any
@@ -14,7 +14,7 @@ module PackageCloud
14
14
  begin
15
15
  resp = RestClient::Request.execute(:method => 'post',
16
16
  :url => url,
17
- :timeout => -1,
17
+ :timeout => nil,
18
18
  :payload => { :package => {:package_file => file_data,
19
19
  :distro_version_id => dist_id}})
20
20
  resp = JSON.parse(resp)
@@ -51,7 +51,7 @@ module PackageCloud
51
51
 
52
52
  RestClient::Request.execute(:method => 'post',
53
53
  :url => url,
54
- :timeout => -1,
54
+ :timeout => nil,
55
55
  :payload => { :package => params })
56
56
  print "success!\n".color(:green)
57
57
  end
@@ -88,7 +88,7 @@ module PackageCloud
88
88
  begin
89
89
  RestClient::Request.execute(:method => 'post',
90
90
  :url => url,
91
- :timeout => -1,
91
+ :timeout => nil,
92
92
  :payload => { :gpg_key => params })
93
93
  rescue RestClient::UnprocessableEntity => e
94
94
  print "error: ".color(:red)
@@ -1,7 +1,7 @@
1
1
  module PackageCloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "2"
4
- PATCH_VERSION = "44"
4
+ PATCH_VERSION = "45"
5
5
 
6
6
  VERSION = [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION].join(".")
7
7
  end
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_runtime_dependency "thor", "~> 0.18"
23
23
  spec.add_runtime_dependency "highline", "1.6.20"
24
- spec.add_runtime_dependency "rest-client", "~> 1.6.7"
24
+ spec.add_runtime_dependency "rest-client", "~> 1.7.3"
25
25
  spec.add_runtime_dependency "json_pure", "1.8.1"
26
- spec.add_runtime_dependency "rainbow", "2.1.0"
26
+ spec.add_runtime_dependency "rainbow", "2.2.2"
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.3"
29
29
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: package_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.44
4
+ version: 0.2.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Damato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.7
47
+ version: 1.7.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.6.7
54
+ version: 1.7.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json_pure
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.1.0
75
+ version: 2.2.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.1.0
82
+ version: 2.2.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.4.4
166
+ rubygems_version: 2.6.13
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: The https://packagecloud.io CLI for uploading Debian, RPM, RubyGem, Python,