raykit 0.0.446 → 0.0.447

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: 52d7a937985a029ae7bebe5cc79f0f8a004161494da2eb87175a241025f25fc0
4
+ data.tar.gz: 3578a64ca693d22760f5576dd1ae59a9054ed3da6d5e1c1a911a4cf872163529
5
5
  SHA512:
6
- metadata.gz: bb75e39dd162229bc4c71f66c22ceed1b4583e790651ab58f9682b045dc424e329105bfc940359a38a7dd780dfa007ae2cd56088139a383e7637af53e35d7dd7
7
- data.tar.gz: 70b5d0c19afc6673bd085644fac8c44a28f5234ccb6d0c32fc928fd3cb62c4ff88dcddf31d014587aa618e78c053b3b50046a02785f227eda4bbb3ff99df90eb
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 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.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