raykit 0.0.368 → 0.0.371

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: 43f19ae06d03747c52c4b37c0aa31e9df0597b8c8d1d99a67d7eb77a91c9c712
4
- data.tar.gz: f9578c06fa2c67ea0e91af4ef62f1680760652f6c98e075a3fcd4d15c50f7f12
3
+ metadata.gz: af286f03af1fab415981a1d943e5935a099b9da4c98fffcdcc4523c2703af628
4
+ data.tar.gz: 93c4cf5be2f7ada6775efe577f6df453708a4230bba112092076649728ae7d6f
5
5
  SHA512:
6
- metadata.gz: 9b76b8f656653272e3c6f85ce346d4d8840b3b353ddf5a300e38c39b272e3e7576c493343880be2e09ced078c82a2d7f8ec997cc9aa6977920d27c61a1cb97a2
7
- data.tar.gz: 3f7ea6b61e53bb03f573a3e318bd73b7af97c2568cfd02f24ba6ca3b54a7dae08eac91328bd9385d5e9a865251858ce076f7a53489b63c3aa14a4d306ef42f5c
6
+ metadata.gz: cc4f1bc8c1b2efd2ca540ca7ec5da6e3f25ea29e80ed50eb9777d9c684cd0bd50eeb9833fd4066b6df892b7c329c9bd6abe73883d75dbf001a85c0cf478a12f7
7
+ data.tar.gz: bcec44e7954b1a2c6fa591d431c150fccc733e2555b858df3a8257a36221b27395d6afd178fa2e3325ca602818975211958e47b0fa5e630f317c345e6f0ce4a6
@@ -14,6 +14,10 @@ module Raykit
14
14
  @work_directory = Raykit::Git::Directory.new(get_dev_dir("work"))
15
15
  end
16
16
 
17
+ def short_name()
18
+ @url.split("/").last.gsub(".git", "")
19
+ end
20
+
17
21
  def to_json(*_args)
18
22
  JSON.generate({ "url" => @url })
19
23
  end
data/lib/raykit/rake.rb CHANGED
@@ -29,5 +29,11 @@ module Raykit
29
29
  end
30
30
  end
31
31
  end
32
+
33
+ def rake(rakefile, task)
34
+ Dir.chdir(File.dirname(rakefile)) do
35
+ run("rake #{task}")
36
+ end
37
+ end
32
38
  end
33
39
  end
@@ -51,6 +51,12 @@ 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")
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.368
4
+ version: 0.0.371
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-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.2.22
145
+ rubygems_version: 3.3.7
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: ruby gem to support rake ci/cd tasks