raykit 0.0.366 → 0.0.369

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
  SHA256:
3
- metadata.gz: 180ac511defd4161c81482e51b1f60d6e8abe6ea9f0a7535bbde37111599c850
4
- data.tar.gz: c981a98425de47ff17049e32ea51c914c6dd89d72a199a685955baeb973186ca
3
+ metadata.gz: 2937aae4a1a4f74565c8f6f5f4b53b43864db29284d6588f64850f38909ca5cc
4
+ data.tar.gz: 2b57ca37b299c269c20d6cfaab95ef7ebf8ce57fc5ccfc8b67d37ed81bceaa0d
5
5
  SHA512:
6
- metadata.gz: f2f214454f5963db6597a9cddbeecb52baee07c6f5263c40abf76ec637737cf1ca37d8a3a8fccc1bc21452cef3452cb9487acb2ecc594a0b7e71f216d1f9e269
7
- data.tar.gz: 7219ca94d94eff2cd389c52b9f59d691e04d0f541f36cc6585459333c8d3d4535eed9b222ef79f029394e2f4bd39b72403fed34bcfbb6614363906666975914d
6
+ metadata.gz: 87e9bde8729b0623271eeddeff4aaebd993781b8447fa9fa0e74549186da0d2fb579169273a6094dc1d8406ee40584039b1f1e1a8cf04be9dc350e1534ec64fa
7
+ data.tar.gz: c24b12ca86ee38d54f0baa709184fb918a75ebc2e8f2d7c051caf131d70d7dcd861f5d576845c894e6031a2590e61f43bc7097a3191c73ae558e81de321a7bfd
@@ -11,7 +11,7 @@ module Raykit
11
11
  end
12
12
  end
13
13
 
14
- def self.Filcopy_file_to_dir(file, dir)
14
+ def self.copy_file_to_dir(file, dir)
15
15
  dest = "#{dir}/#{File.basename(file)}"
16
16
  if (File.exists?(dest))
17
17
  return "#{dest} already exists"
@@ -51,10 +51,17 @@ module Raykit
51
51
  version
52
52
  end
53
53
 
54
+ def self.set_version_in_glob(glob_pattern, version)
55
+ Dir.glob(glob_pattern).each { |f|
56
+ Raykit::Version::set_version_in_file(f, version)
57
+ }
58
+ end
59
+
54
60
  def self.set_version_in_file(filename, version)
55
61
  text = IO.read(filename)
56
62
  new_text = text.gsub(/version\s?=\s?['|"]([.\d]+)['|"]/, "version='#{version}'") if filename.include?(".gemspec")
57
63
  new_text = text.gsub(/<Version>([-\w\d.]+)</, "<Version>#{version}<") if filename.include?(".csproj")
64
+ new_text = text.gsub(/<version>([-\w\d.]+)</, "<version>#{version}<") if filename.include?(".nuspec")
58
65
  # new_text=text.gsub(/<Version>([-\w\d.]+)</,"<Version>#{version}<")
59
66
  # new_text=new_text.gsub(/version[\s]+=\s?['|"]([.\d]+)['|"]/,"version='#{version}'")
60
67
  # new_text=new_text.gsub(/Version="([.\d]+)"/,"Version=\"#{version}\"")
data/lib/raykit.rb CHANGED
@@ -38,6 +38,10 @@ if defined?(RAYKIT_GLOBALS)
38
38
  Raykit::Log.show_value(name, value)
39
39
  end
40
40
 
41
+ def copy_files(src_dir, target_dir, glob)
42
+ Raykit::FileSystem::copy_files(src_dir, target_dir, glob)
43
+ end
44
+
41
45
  def copy_file_to_dir(file, dir)
42
46
  Raykit::FileSystem::copy_file_to_dir(file, dir)
43
47
  end
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.366
4
+ version: 0.0.369
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow