raykit 0.0.446 → 0.0.448

Sign up to get free protection for your applications and to get access to all the features.
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: ef6b2a8a69e33b5370df0e1e6f6c729dee671b286272273209ab7898125cc764
4
- data.tar.gz: 244abbaf20e4548893d7bd947a5b644414f801a4219eb454c3fea3f381ace325
3
+ metadata.gz: '09b57d73340918dcb77a7f14d2056fbc605bda4e763ef3431c19e4178e580bd3'
4
+ data.tar.gz: 0ad592ff96a3850a918a3df7d1dacbbd321af832850a6afbfca3d800de6040a8
5
5
  SHA512:
6
- metadata.gz: bb75e39dd162229bc4c71f66c22ceed1b4583e790651ab58f9682b045dc424e329105bfc940359a38a7dd780dfa007ae2cd56088139a383e7637af53e35d7dd7
7
- data.tar.gz: 70b5d0c19afc6673bd085644fac8c44a28f5234ccb6d0c32fc928fd3cb62c4ff88dcddf31d014587aa618e78c053b3b50046a02785f227eda4bbb3ff99df90eb
6
+ metadata.gz: 7830303209765f680da2afbdf4798fc2a2c3a5aca64187d61c168f24b29502399b8d333c6ab3ed3393ab19fa1efccd596094da8be3195c9162b11ea664230e85
7
+ data.tar.gz: af9be09a68e741bc2112560c68cfe58a4b4905810cd3d6903b0f194e482e2ef388ef454ad1a509a2179c7c4cd5e50f3c717d4a3344c2cd49c4f13199cacd05f4
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
+ 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 copy(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.446
4
+ version: 0.0.448
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