rise-cli 0.3.2 → 0.3.4
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 +4 -4
- data/bin/rise +0 -1
- data/lib/core/constants.rb +1 -1
- data/lib/core/text.rb +1 -1
- data/lib/core/transport.rb +2 -1
- data/lib/core/util.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1448484a9d76dc737c9367fe40a4373ea2ab04d2
|
4
|
+
data.tar.gz: 19e6626d123919b178d4959f7be18e04040a550d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e144ce38c89096e99b7bf545d2bd1d5612caec0fb388af0b497024442641e111ded7f48cb8af7e90144e65e6f99cb87c4a53ed591b2318ef60ad66b21d5c7d
|
7
|
+
data.tar.gz: 8229f46a4a97db4086b0b8a07fbd61bcb1dc91529359b29340b98edfcbe54f6759fe7458cd039ac0d757edaba5ec59107fe61210f4b6997e773c453b33da70af
|
data/bin/rise
CHANGED
@@ -104,7 +104,6 @@ Whirly.start(spinner: 'dots10', status: "Uploading files (#{uploader.total_files
|
|
104
104
|
beginning_time = Time.now
|
105
105
|
result_url = uploader.upload! # Do the file upload
|
106
106
|
|
107
|
-
Whirly.status = "Done!\n"
|
108
107
|
Clipboard.copy(result_url)
|
109
108
|
print Paint["Your url is: #{result_url} (copied to clipboard) ", :bold]
|
110
109
|
puts Paint["[#{((Time.now - beginning_time)).round(2)}s]", '#95a5a6']
|
data/lib/core/constants.rb
CHANGED
data/lib/core/text.rb
CHANGED
@@ -18,7 +18,7 @@ module Rise
|
|
18
18
|
# Prints +msg+ if the +RISE_VERBOSE+ environment variable is set to 'yes' (set with --verbose)
|
19
19
|
#
|
20
20
|
def self.vputs(msg='')
|
21
|
-
puts("[" + Paint["VERBOSE"] + "] - " + msg) if ENV['RISE_VERBOSE'] == 'yes'
|
21
|
+
puts("[" + Paint["VERBOSE", "yellow"] + "] - " + msg) if ENV['RISE_VERBOSE'] == 'yes'
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/core/transport.rb
CHANGED
@@ -3,6 +3,7 @@ require 'uri'
|
|
3
3
|
require 'json'
|
4
4
|
require 'http'
|
5
5
|
require 'active_support'
|
6
|
+
require 'core'
|
6
7
|
|
7
8
|
|
8
9
|
module Rise
|
@@ -54,7 +55,7 @@ module Rise
|
|
54
55
|
File.expand_path(folder_path), '')
|
55
56
|
uri = URI.parse("#{upload_uri_base}/#{final_path.gsub(' ', '')}?dir=#{isdir}")
|
56
57
|
begin
|
57
|
-
vputs
|
58
|
+
Rise::Text.vputs("Uploading #{File.basename(f)}")
|
58
59
|
res = HTTP.auth("#{key}").put(uri.to_s, body: ActiveSupport::Gzip.compress(File.read(f)))
|
59
60
|
abort(Paint["Upload failed. Got error code #{res.code} with message: #{JSON.parse(res)['message']}", :red]) unless (!res.code.nil? && res.code == 200)
|
60
61
|
rescue Errno::EISDIR
|
data/lib/core/util.rb
CHANGED
@@ -43,11 +43,11 @@ module Rise
|
|
43
43
|
def self.check_for_update!
|
44
44
|
src = Rise::Util.git_or_gem?
|
45
45
|
if src == 2
|
46
|
-
Rise::Text.vputs("
|
46
|
+
Rise::Text.vputs("Update source: RubyGems")
|
47
47
|
elsif src == 1
|
48
|
-
Rise::Text.vputs("
|
48
|
+
Rise::Text.vputs("Update source: git")
|
49
49
|
else
|
50
|
-
Rise::Text.vputs("
|
50
|
+
Rise::Text.vputs("Update source: unknown")
|
51
51
|
end
|
52
52
|
|
53
53
|
begin
|