raykit 0.0.407 → 0.0.410

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aff368b9f394bb541af5207577c0754f68e993f0528ad9448824cfdca8179c1
4
- data.tar.gz: d4318a1c92c204b7ccc7acc20fdbb522d134403bad6ad79d19d9f14b39504532
3
+ metadata.gz: ed5d476eb1b2a4f738e1529f476454f0c60369b92b992b5bdb6e46f38e4432dd
4
+ data.tar.gz: a20a5f7f21e6204faf29a37dd857ef8917a0024de811a86c97c739a1b86da4c4
5
5
  SHA512:
6
- metadata.gz: 68ddbd867eaac1254aa388aaa696202864f753dd3326fe6ef0e6bfab5a1a2f7d6cbc1f731e6cf92bb2ed55fdb94e0f3bec5a48cf3d2259c80a99e0fc97b85e6e
7
- data.tar.gz: f8885647b47aee601129570f9818c73419093052e644f92a9da4aa4ee9c6f3861b3e39820aaa1bb2fa469365798b9c482eb7dea13a36281dd968d0debc5b3f38
6
+ metadata.gz: 28ac7fc71c1a027e943fe58c98b4467562601e954da4b1a3458a1ab9818f945df0680714ea4c0876d10265f3d0a6e7c1521e2fd2369854d44eac8e5b6d08bd71
7
+ data.tar.gz: 2f1953a4763a6481717c1d5c4234c6fc14c65eadfc0cc5ebc5d8ea35f5636a2d3b92714f530899cbf7469b82df7b4308572c036dbbbd27c89bf9bd391c78bb56
@@ -204,7 +204,7 @@ module Raykit
204
204
  "#{format("%.0f", elapsed)}s"
205
205
  end
206
206
 
207
- def summary(show_directory = true)
207
+ def summary(show_directory = false)
208
208
  checkmark = "\u2713"
209
209
  # warning="\u26A0"
210
210
  error = "\u0058"
@@ -215,7 +215,8 @@ module Raykit
215
215
  puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
216
216
  puts Rainbow(" #{@directory}").cyan
217
217
  else
218
- puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
218
+ puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} " + Rainbow("#{elapsed_str}").cyan
219
+ #puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
219
220
  end
220
221
  self
221
222
  end
@@ -7,9 +7,25 @@ module Raykit
7
7
  class Environment
8
8
  # Normalize a directory or filename to use forward slashes
9
9
  def self.normalize_path(name)
10
+ if (windows?)
11
+ normalize_windows(name)
12
+ else
13
+ normalize_unix(name)
14
+ end
15
+ end
16
+
17
+ def self.normalize_unix(name)
10
18
  name.gsub('\\', "/")
11
19
  end
12
20
 
21
+ def self.normalize_windows(name)
22
+ name.gsub("/", '\\')
23
+ end
24
+
25
+ def self.windows?
26
+ Gem.win_platform?
27
+ end
28
+
13
29
  # The root directory for the development environment.
14
30
  # May be set using the environment variable DEV_ROOT,
15
31
  # otherwise defaults to the user home directory
@@ -17,14 +33,14 @@ module Raykit
17
33
  if ENV["DEV_ROOT"].nil?
18
34
  Environment.home_dir
19
35
  else
20
- normalize_path(ENV["DEV_ROOT"])
36
+ root = ENV["DEV_ROOT"].gsub("\\", "/").chomp("/")
37
+ normalize_path(root)
21
38
  end
22
39
  end
23
40
 
24
41
  # The user home directory
25
42
  def self.home_dir
26
43
  return normalize_path(ENV["USERPROFILE"]) if ENV.include?("USERPROFILE")
27
-
28
44
  normalize_path(ENV["HOME"])
29
45
  end
30
46
 
@@ -37,9 +53,9 @@ module Raykit
37
53
  dir = Pathname.new("#{Environment.root_dir}/#{name}")
38
54
  dir.mkpath
39
55
  if (dir.to_s.include?("https:") || dir.to_s.include?("http:"))
40
- dir.to_s.gsub("https://", ".").gsub("http://", ".").gsub("//", "/")
56
+ normalize_path(dir.to_s.gsub("https://", ".").gsub("http://", ".").gsub("//", "/"))
41
57
  else
42
- dir
58
+ normalize_path(dir.to_s)
43
59
  end
44
60
  end
45
61
 
data/lib/raykit/tasks.rb CHANGED
@@ -50,7 +50,7 @@ end
50
50
  desc "clean files not tracked by git"
51
51
  task :clean do
52
52
  puts Rainbow(": clean").blue.bright
53
- PROJECT.run("git clean -dXf")
53
+ PROJECT.run("git clean -dXf", false)
54
54
  end
55
55
 
56
56
  desc "update_source from sourceImports.json"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.407
4
+ version: 0.0.410
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow