raykit 0.0.403 → 0.0.406

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: 87a638c355ecf27ad31cebb32d137ef7be99b7364bb80b024df3b1f90db66340
4
- data.tar.gz: 73cc4db1b21b8f4979eab0037884fe8640e2982c6a23772eef9897ff5ca1e2da
3
+ metadata.gz: 48ee2c1c7928f5c3b70bb16f820593f8b926fcf7348824f1ab69d8e296b73a46
4
+ data.tar.gz: eeb45b473ee3deb4af87174665760001d26ea427cdbc345e727c66a728cceddb
5
5
  SHA512:
6
- metadata.gz: b72587d9510e9990e70d38838b1fa5c37319031f99a8c8a76874aaa5a4bc84a008173263eedc0813df3d754886837b0f8605dc7723748d4303c71489b53c9dfd
7
- data.tar.gz: 16da3264e487ce6da4e73b6c03ed83dd4fce3c3fca410c1bbab38e87c622d4101d6130ff7b24caacc082cc488b076bcfc12661ecc9a4e5fd2a832fbaf7342644
6
+ metadata.gz: 9d296dc071df82c123bb9a199bb1ef78fee1d6b8f5a3130b607c3ef2c312338fb90c1c3f721412591f36e5d9746ca1c82d529cd296a2c4fcfe750ec47fe282bb
7
+ data.tar.gz: c1e9332a4a7a48306a3f5781bdada34425449663db8c15b96b0b493e12b3308df8d36dd24026805189a6de6a3d2310b7ff1f3a71ebe6c3f0b65048b3fcbc4043
@@ -10,8 +10,9 @@ module Raykit
10
10
  end
11
11
 
12
12
  def self.get_version(text, name)
13
- # "roam/0.0.14@my+channel.com/branch"
14
- [/\"#{name}\/([\d\.]+)/].each { |regex|
13
+ # "gtest/0.0.14@my+channel.com/branch"
14
+ # gtest/1.10.0
15
+ [/\b#{name}\/([\d\.]+)/].each { |regex|
15
16
  matches = text.scan(regex)
16
17
  if matches.length > 0 && matches[0].length > 0
17
18
  return matches[0][0]
@@ -21,17 +22,18 @@ module Raykit
21
22
  end
22
23
 
23
24
  def self.set_version(text, name, version)
24
- puts "ConanPackage::set_version"
25
+ #puts "ConanPackage::set_version"
25
26
  new_text = text
26
- [/(\"#{name}\/[\d\.]+)/].each { |regex|
27
+ [/(\b#{name}\/[\d\.]+)/].each { |regex|
27
28
  matches = text.scan(regex)
28
29
  if matches.length > 0 && matches[0].length > 0
29
30
  orig = matches[0][0]
30
31
  oversion = get_version(orig, name)
31
32
  mod = orig.sub(oversion, version)
32
- puts "match[0][0] " + matches[0][0]
33
- puts "old version " + oversion
34
- puts "new version " + version
33
+ #puts "match[0][0] " + matches[0][0]
34
+ #puts "old version " + oversion
35
+ #puts "new version " + version
36
+ #puts "updating from #{orig} to #{mod}"
35
37
  new_text = new_text.gsub(orig, mod)
36
38
  end
37
39
  }
data/lib/raykit.rb CHANGED
@@ -16,6 +16,7 @@ SECRETS = Raykit::Secrets.new
16
16
  REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
17
17
  GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir)
18
18
 
19
+ NUGET_DIR = Raykit::Environment::get_dev_dir("nuget")
19
20
  PUBLISH_DIR = Raykit::Environment::get_dev_dir("publish")
20
21
 
21
22
  # include Raykit::TopLevel to make run method accessible from the global scope
@@ -41,6 +42,14 @@ if defined?(RAYKIT_GLOBALS)
41
42
  Raykit::Log.start_task(task_name)
42
43
  end
43
44
 
45
+ def show(symbol)
46
+ show_binding(symbol, binding)
47
+ end
48
+
49
+ def show_binding(symbol, the_binding)
50
+ show_value symbol.to_s, eval(symbol.to_s, the_binding)
51
+ end
52
+
44
53
  def show_value(name, value)
45
54
  Raykit::Log.show_value(name, value)
46
55
  PROJECT.values[name] = value
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.403
4
+ version: 0.0.406
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.3.7
148
+ rubygems_version: 3.2.22
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: ruby gem to support rake ci/cd tasks