raykit 0.0.445 → 0.0.447

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/tasks.rb +16 -1
  3. data/lib/raykit.rb +0 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '049527926a62d88f12dabb8ba1bd5a627f979a5b8c92c99ca877152f6ba4bbd7'
4
- data.tar.gz: 11911b5cc1d11daefe4126cf25f17f335eddb9dbf30ea8e6d8610d3775471638
3
+ metadata.gz: 52d7a937985a029ae7bebe5cc79f0f8a004161494da2eb87175a241025f25fc0
4
+ data.tar.gz: 3578a64ca693d22760f5576dd1ae59a9054ed3da6d5e1c1a911a4cf872163529
5
5
  SHA512:
6
- metadata.gz: 9c6dbc390b0009bb8d4dacec50703ea99cdbaad04318329eeb0f0ae4c2dea0f9e8092fc849487df604df4564aae63d191d21734dfbe9a13e637ba3bfac92a496
7
- data.tar.gz: a9a0dc81ea6da5972b7bebefdd9eb482790e42c36136f0bda78e78f8e1c1aa7d1c87bbd358eab97fe634e69e1cbd377052ee951e39b8350d4fb1d1b75186635d
6
+ metadata.gz: 11c294b415bfb8f29e6f2c9e982686113017a9b6124d08c8376b2c266ddfb677e90e55df047f704160ffedf85376eaa15b10c2aa52c0ef2e30fba08b5714633d
7
+ data.tar.gz: fa80fce42bc5360b656ad895060689830db15bd36adfaf1a64c9b93154c1d68856a705a68a3f64b5a599839e27e6d22848010ecf0abf46a9d561512d3460fd19
data/lib/raykit/tasks.rb CHANGED
@@ -29,8 +29,8 @@ task :integrate do
29
29
  unless `git status`.include?("nothing to commit")
30
30
  commit_message = "integrate"
31
31
  PROJECT.run("git commit -m\"#{commit_message}\"") if PROJECT.outstanding_commit?
32
- PROJECT.run("git pull", false)
33
32
  end
33
+ PROJECT.run("git pull", false)
34
34
  end
35
35
  end
36
36
  end
@@ -53,6 +53,21 @@ task :clean do
53
53
  PROJECT.run("git clean -dXf", false)
54
54
  end
55
55
 
56
+ desc "tag the git repository at the current version"
57
+ task :tag do
58
+ puts Rainbow(": tag").blue.bright
59
+ if PROJECT.read_only?
60
+ puts " read only state, skipping tag operation"
61
+ else
62
+ if (PROJECT.version != PROJECT.latest_tag)
63
+ PROJECT.run "git tag -a #{PROJECT.version} -m\"version #{PROJECT.version}\""
64
+ PROJECT.try "git push --tags"
65
+ else
66
+ puts " tag #{PROJECT.latest_tag} already exists."
67
+ end
68
+ end
69
+ end
70
+
56
71
  desc "update_source from sourceImports.json"
57
72
  task :update_source do
58
73
  if File.exist?("sourceImports.json")
data/lib/raykit.rb CHANGED
@@ -44,11 +44,6 @@ if defined?(RAYKIT_GLOBALS)
44
44
  FileUtils.mkdir("artifacts") if (!Dir.exist?(name))
45
45
  end
46
46
 
47
- def cpy(source,dest)
48
- FileUtils.mkdir_p(File.dirname(dest)) if !Dir.exist?(File.dirname(dest))
49
- FileUtils.cp(source,dest)
50
- end
51
-
52
47
  def make(artifact, command)
53
48
  if (File.exist?(artifact))
54
49
  puts " #{artifact} exists"
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.445
4
+ version: 0.0.447
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler