raykit 0.0.313 → 0.0.317

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: 8839dd1ee6d8bc35860782bc4b65a61f92d58795c1743b50510c9deb9d2b850f
4
- data.tar.gz: 763f2edf43e117900f49e6461f26af73303e0abe132a96f5cc268c9027c38ba2
3
+ metadata.gz: aa07fead18ef9902e82769149e1a8e3726c32a6a1cea7a71c76d71bdafb15129
4
+ data.tar.gz: 48e9c08682afe3ea23b32c0eb965ac30bc0c6aaeeddeb588090bab3b4d322475
5
5
  SHA512:
6
- metadata.gz: 4325125dba203aee38255ab97378f4c6706259b084bb407bf1732e13e90f65680774be5dc36397be9296d4bc40c4edf92e6d9a4ea6f6a0847ffc74c2e3be05d9
7
- data.tar.gz: 8d87e46821bc6f4b2df6537122162761ebe6d9484e24cad6703e6c2bfd4519a36b31e60b7d039f4cd691a0bcad2271ed2f17d04a8019989f1f61bdde7aa545b3
6
+ metadata.gz: 760aa8b3e3c8711796478bf57f1588dc70feec024901be41961c91ad6e77a270f83c719e88c22678e3bbcd2ddd4c8ae7d4542a0ef32f89ba5d343840c23eaeda
7
+ data.tar.gz: 402a930944e26707f778d65a8dec9d67d0f7478fbe808d764634b408d9bb776023d305f96c0b6abc10f9f48b83a53e067b5314c9938945684081585283b88140
@@ -95,6 +95,7 @@ module Raykit
95
95
  end
96
96
 
97
97
  def detached?
98
+ return true if @git_directory.nil?
98
99
  @git_directory.detached?
99
100
  end
100
101
 
@@ -184,7 +185,7 @@ module Raykit
184
185
  puts 'PROJECT.name'.ljust(ljust) + Rainbow(PROJECT.name).yellow.bright
185
186
  puts 'PROJECT.version'.ljust(ljust) + Rainbow(PROJECT.version).yellow.bright
186
187
  puts 'PROJECT.remote'.ljust(ljust) + Rainbow(PROJECT.remote).yellow.bright
187
- puts 'PROJECT.branch'.ljust(ljust) + Rainbow(PROJECT.branch).yellow.bright
188
+ puts 'PROJECT.branch'.ljust(ljust) + Rainbow(PROJECT.branch).yellow.bright if !branch.nil?
188
189
  puts 'PROJECT.detached?'.ljust(ljust) + Rainbow(PROJECT.detached?).yellow.bright
189
190
  # puts "PROJECT.target".ljust(ljust) + Rainbow(PROJECT.target).yellow.bright
190
191
  # puts "PROJECT.target_md5".ljust(ljust) + Rainbow(PROJECT.target_md5).yellow.bright
data/lib/raykit/text.rb CHANGED
@@ -10,8 +10,10 @@ module Raykit
10
10
  text1 = IO.read(filename)
11
11
  text2 = text1.gsub(search) { |_str| str = replace }
12
12
  unless text1 == text2
13
- File.open(filename, 'w') { |f| f.puts text2 }
14
- return true
13
+ if File.writable?(filename)
14
+ File.open(filename, 'w') { |f| f.puts text2 }
15
+ return true
16
+ end
15
17
  end
16
18
  false
17
19
  end
data/lib/raykit.rb CHANGED
@@ -14,4 +14,4 @@ SECRETS = Raykit::Secrets.new
14
14
  # TIMER=Raykit::Timer.new
15
15
 
16
16
  REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir('log')}/Raykit.Git.Repositories.json")
17
- GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir) if Dir.exist?('.git')
17
+ GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir) #if Dir.exist?('.git')
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.313
4
+ version: 0.0.317
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow