rise-cli 0.3.2 → 0.3.4

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: 244626d212aaa0bfe6a4705cb479a7efc8a59683
4
- data.tar.gz: 91ea61b97c71fd13a4302795f0553a14c4ec112b
3
+ metadata.gz: 1448484a9d76dc737c9367fe40a4373ea2ab04d2
4
+ data.tar.gz: 19e6626d123919b178d4959f7be18e04040a550d
5
5
  SHA512:
6
- metadata.gz: 33324381bd77e85474ff5ccb353e75ebb2fee5df866f4dfe6aeddd498f28b874fbadcea5603855001a34618078a8d9e1dfd1780dd8a8098139e15492b3d0595f
7
- data.tar.gz: 613e4cbd5078142af4a337e43a77c9355f836c427ceb0dfe3e8eafe30dccd3dea143ed59c228b2379ded3dba3a8d078974ecbc8762f7ca75b918b123c2ae2ab9
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']
@@ -8,7 +8,7 @@ module Rise
8
8
  # Holds constants used throughout the framework
9
9
  #
10
10
  module Constants
11
- VERSION = '0.3.2'.freeze
11
+ VERSION = '0.3.4'.freeze
12
12
  EMAIL = '0xCB@protonmail.com'.freeze
13
13
  AUTHORS = ['Carter Brainerd']
14
14
  NAME = 'rise-cli'.freeze
@@ -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
@@ -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 ("Uploading #{f.basename}")
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
@@ -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("Source: RubyGems")
46
+ Rise::Text.vputs("Update source: RubyGems")
47
47
  elsif src == 1
48
- Rise::Text.vputs("Source: git")
48
+ Rise::Text.vputs("Update source: git")
49
49
  else
50
- Rise::Text.vputs("Source: unknown")
50
+ Rise::Text.vputs("Update source: unknown")
51
51
  end
52
52
 
53
53
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rise-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carter Brainerd