package_cloud 0.2.39 → 0.2.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/package_cloud/config_file.rb +7 -20
- data/lib/package_cloud/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f48d5b071e6e32c8d0731a87cdd327802923c0
|
4
|
+
data.tar.gz: 052380296a532184239640c6f3f806734d4eccb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8145497d1f05d24e15b79135a5a1526cd41a942e2f13cc622de9a366642649b2b78eb149f48caa23b903ddc400541815f1711d8d4a7e50dbaff328e5adf072b2
|
7
|
+
data.tar.gz: fd651e6769d38b2c3d0399c681284e86de2fa9260a790fbc9e58fa4315c0a9f370f65ceb09d5e867f1ecd6b284592cc3d414361f340639d339bb702360ad5e15
|
@@ -49,26 +49,13 @@ module PackageCloud
|
|
49
49
|
|
50
50
|
private
|
51
51
|
def handle_locale
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
else
|
60
|
-
abort_on_incorrect_locale
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
def abort_on_incorrect_locale
|
65
|
-
default_encoding = Encoding.default_external
|
66
|
-
if default_encoding != Encoding::UTF_8
|
67
|
-
message = "It appears your locale is set to #{default_encoding}, " +
|
68
|
-
"please use UTF-8 instead. Run the 'locale' command to get" +
|
69
|
-
"more info or e-mail support@packagecloud.io for help"
|
70
|
-
abort(message.color(:red))
|
71
|
-
end
|
52
|
+
# Force the external encoding to be UTF-8 on windows and everywhere
|
53
|
+
# else. This will somtimes fail on windows because it seems the default
|
54
|
+
# windows encoding on windows is IBM 437 and it
|
55
|
+
# is very painful to change to UTF-8. The failure in this case will
|
56
|
+
# just be 1 "?" being printed per character that isn't
|
57
|
+
# representable.
|
58
|
+
Encoding.default_external = 'UTF-8'
|
72
59
|
end
|
73
60
|
|
74
61
|
def login_from_console
|
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.
|
4
|
+
version: 0.2.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Damato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -160,8 +160,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.4.
|
163
|
+
rubygems_version: 2.4.8
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: https://packagecloud.io
|
167
167
|
test_files: []
|
168
|
+
has_rdoc:
|